Handling motor vehicle accidents is a constant challenge for local governments. Accident response teams are in a race against the clock to attend to accidents. Late responses lead to an increase in mortality. When accidents aren’t adequately tracked, governments aren’t able to address the underlying issues.
Embedded analytics in motor vehicle accident analysis provides insights that help emergency teams more quickly and efficiently respond to and manage accidents. Tracking metrics and KPIs helps identify the causes of accidents and contributes to informed decision-making to reduce the rate of accidents occurring in a year.
In this blog, we will discuss the following subtopics around embedded analytics applied to motor vehicle accidents:
- What is embedded analytics?
- Benefits of embedded analytics in motor vehicle accidents analysis
- Bold BI’s Motor Vehicle Accidents Analysis Dashboard example
- How to embed analytical tools into government domain apps
What is embedded analytics?
Benefits of embedded analytics in motor vehicle accidents analysis
Embedded analytics helps accident response teams reduce the number of accidents by providing insights into road, human, and environmental causes of accidents. It also helps teams analyze accident data through different lenses to uncover ways to curb and manage accidents. In this section, I will discuss the benefits of working with embedded analytics in a vehicular accident tracking application. They include:
- Improve decision-making
- Efficiently assess accident causes
- Improve vehicle mechanization
- Better visualization of data
Tracking accident counts by state on daily, monthly, and yearly bases using embedded analytics helps government at all levels make better decisions regarding accident management and develop ideas to prevent accidents. By monitoring accident counts, the appropriate governing body can implement laws to modify driver behavior in such way that accidents are reduced. Monitoring accident count also enables governments and regulators to drill into the common causes of accidents and in turn put proper measures in place to protect drivers. For example, to curb high incidence of impaired driving that results in accidents, the government can impose higher financial and criminal penalties on intoxicated drivers. With the wealth of data at hand by tracking accident counts, governments can easily make informed decisions to lower accident counts now and prevent them in the future.
Efficiently assess accident causes
Applying embedded analytics to motor vehicle accident data helps response teams track key metrics and KPIs such as speed limits, road infrastructure safety, and accident count by vehicle manufacture year. Using these metrics, teams can quickly narrow down the true cause of accidents, saving time and resources spent on investigations. Proper actions can be taken swiftly, and accident issues can be resolved in a timely manner. Thoroughly documented accident inspections also help the same accidents from happening again. For instance, if the road structure is determined to be the cause of the accident, the accident response team can request the right authority to improve the road and set up proper road signs for motorists.
Improve vehicle mechanization
Embedded analytics in motor vehicle accident analysis enables accident inspectors to engage with car manufacturers to develop safer vehicles. Using key metrics and KPI insights like accident count by vehicle type, accident inspectors are able to determine the types of vehicles that need modification. They can then inform the manufacturers or regulating bodies of their findings to reduce not only the rate of crashes, but also their severity. Through the insights gained, unroadworthy vehicles are kept off the roads, resulting in a reduction in accidents and protecting lives.
Better visualization of data
Using embedded analytics in motor vehicle accident analysis helps accident response team managers visualize every operational activity within the unit. By tracking accident summary analysis metrics, managers can predict accident occurrence in the coming months, which helps the team prepare properly. It also helps with budgeting and getting the right team in place to respond to accidents. This insight helps the manager to increase the rate of decline in accidents.
Bold BI’s Motor Vehicle Accident Analysis Dashboard example
Embedding the Bold BI Motor Vehicle Accident Analysis Dashboard example provides detailed insights into motor vehicle crashes that happen across the U.S., along with their primary and secondary contributing factors.
The following are the metrics and KPIs in the Motor Vehicle Accident Analysis Dashboard:
- Accident count by state
- Accident count by vehicle manufacture year
- Monthly accident numbers
- Contributing factors
- Accident count by day of the week
- Accident count by vehicle type
Accident count by state
This choropleth map chart shows the accident count by U.S. state for the selected month. A higher accident count is noted with a darker color.
Accident count by vehicle manufacture year
This spline area chart shows the accident count based on the vehicle manufacture year for the selected month. It helps government vehicle inspectors identify unroadworthy vehicles.
Monthly accident numbers
This line chart shows the number of accidents that occur monthly. It helps the emergency team predict and prepare for future accidents based on historical data.
This column chart shows the number of accidents attributed to factors like human error, environmental, and vehicular. It helps the government better understand the reasons behind accidents and put measures in place to mitigate the reasons.
Accident count by day of the week
This column graph shows the accident count over a week. This gives the accident response team an idea of when their busiest days may be, and when they may need to have more resources on hand.
Accident count by vehicle type
This pie chart shows the accident count based on vehicle type. It helps governing bodies know which vehicles are frequently involved in accidents and provide data to manufacturers to improve their vehicles.
To learn more about the metrics and KPIs used in this dashboard example, refer to the Motor Vehicle Accident Analysis Dashboard demo.
How to embed analytical tools into government domain apps
Let’s see how analytics can be embedded into government web applications. Bold BI can embed your dashboards in more than 18 web platforms, including React with ASP.NET Core, React with Go, WinForms, Node.js, Vue with Go, and Vue with ASP.NET Core. In the rest of this blog, I am going to explain how to embed dashboards into an Angular application.
Consider a scenario where your company has a website like the one shown in the following image.
You can embed dashboards easily using Bold BI and avoid building an analytics or BI solution yourself. Follow these steps to embed your dashboard successfully.
Step 1: Create an Angular application.
To successfully embed a dashboard in your application, you first need to create an Angular application. Create a new Angular project in Visual Studio Code and add the necessary TS files to the project as shown in the following image.
For more guidance, refer to the sample code in the Bold BI documentation.
In this demonstration, the Angular application acts as a client, and an ASP.NET Core application acts as a server. You need to add several properties in the app.component.ts file as shown in the following table and screenshot.
Property Value Descriptions
Bold BI dashboard server URL. Example: http://localhost:58094/bi.
For Bold BI, it should follow the format site/site1. For Bold BI Cloud Analytics Server, it should be an empty string.
Your Bold BI application environment. If using Bold BI Cloud Analytics Server, you should use cloud. If using Bold BI, you should use enterprise.
An ASP.NET Core application would be run on http://localhost:5000/, which needs to be set as apiHost.
After adding these properties, we need to create the Bold BI instance.
Step 2: Create a Bold BI instance.
After the Angular web application is created, you need to create a Bold BI instance to communicate between the server side (any web application) and the client side (Angular application), which allows us to embed a Bold BI dashboard in the Angular application.
Step 3: Create an authorization server to authenticate the Bold BI server.
Every application that embeds a Bold BI dashboard or widget must be authorized with the Bold BI server. This authentication step requires sending confidential information to the Bold BI server, such as users’ email addresses, group data, and embed signatures. So, in your server application, implement this authentication flow and provide the URL for connecting to your server in the Bold BI instance.
Step 4: Run the Angular application to view the embedded dashboard.
In the Angular application, update the authorization URL and dashboard URL that were defined in the ASP.NET Core application. Finally, you can that see the dashboard created in the Bold BI server is embedded in your web application.
Bold BI helps you integrate dashboards in your applications written in ASP.NET Core, ASP.NET MVC, ASP.NET, and Ruby on Rails. It will save you time and prevent you from doing redundant work. Click this link to explore its features. To learn more about embedding dashboards into your application, refer to this blog and our help documentation.
Get started with Bold BI by signing up for a free 15-day trial and create interactive business intelligence dashboards. You can contact us by submitting questions through the Bold BI website or, if you already have an account, you can log in to submit your support question.