Introduction

      After Carl Benz invented the first automobile, the risk of road accidents involving cars was presented. Accompanied by the rapid development of the United States Interstate Highway System, the risk of being injured or dying in an automobile accident was more widespread than ever before. As of today, the concern could affect almost every one of us. Especially people who live in urban areas.

      Throughout the year, studies looking into the relationship between road accident injury and driver practice and automobile condition were thoroughly examined, and various improvement advice, policies, and restrictions were implied. But besides the driver’s condition and the vehicle’s state, what could also be a factor that could cause a driver to suffer injury from a road accident?

      To answer this question, our team wants to look into the hidden side of the road injury and find out what external factors could cause the driver to suffer injury.



Data Source and Importing Data

Overview

      The data set reports details of all traffic collisions occurring on county and local roadways within Montgomery county, as collected via the the Automated Crash Reporting System, and reported by the Montgomery county police department.And use to tracks injuries, damages, and road conditions related to car accidents occurring within the county limits.

      Our purpose is to track the amount of injuries that occur depending on road conditions and weather conditions.


Source

Crash Reporting - Drivers Data

      The data was found on the website of DATA.GOV, you can get to the data source directly through this link: a https://catalog.data.gov/dataset/crash-reporting-drivers-data



Social Good

      Thousands of people die in car accidents each year in the U.S.Being aware of the risks involved during certain days could help lower these statistics.By tracking injuries across weather and road conditions we can deduce when it is most dangerous to be on the road, this information would be useful for civilians who want to remain safe, as well as police departments so they can be prepared for an increase in injuries and accidents



Hypothesis

Null Hypothesis: The selected factor would not affect the injury rate significantly (p>0.05)

Alternative Hypothesis: The selected factor would affect the injury rate significantly (p<0.05)



Clean Up the Data

Step 1: Clean and select condition

      As the goal of the tests following is to find relationships between Driver Injury and the different weather conditions/Road Surface Conditions, variables (columns) like Report Number and Agency Name which would not affect the final result would not be selected.

      Further, as we only want to see the sole effect of different weather conditions and road surface conditions on the driver injury, the effect of other factors should be ruled out.

      As we only want to examine the cars that are moving in a normal condition with no traffic control and 0mph speed limit should appear in the data we are going to look at. Also, the defect of unsafe driving should be eliminated. So the number of drivers having substance abuse, and driving distraction should be 0. Finally, the car should have no equipment (mechanism) problems.

      The injury was also changed into a binary factor as injured (1) and uninjured (0).


Step 2: More Clean Up

      Generally exclude the “N/A”, “OTHER”, and “UNKNOWN” in the data set, also reorganize the different surface conditions to an estimated sequence, from the least friction to the highest friction. Then, rename the column “Injury Severity” into “Injury”. We now, have a data set road_accident_clean that is ready for analysis.



Injury vs Weather

Bar Chart

Bar Chart: Injury Count vs Weather.

      Using ggplot, a Bar chart was generated with Weather as the Independent variable, and injury count as the Dependent variable. (The injured were colored into blue while the uninjured were colored into red)

      Apparently, this bar chart would not reflect data efficiently, so an alternative choice was made. By replacing the Injury count with Injury Rate, a new bar chart was generated.

      As shown in the graph, the injury rate of the driver regarding different weather conditions was organized as the high injury rate to low injury rate order. We can know that when the weather is Blowing snow, the injury rate is the highest, when the weather is wintry mix, the injury rate is the lowest.

      But some discrepancy with expectation was already noticed. In the graph, “Severe Winds”; “Sleet”; and “Wintry Mix” all consider severe weather conditions to have a lower injury rate. This could be caused by a lack of data collected from these certain conditions. This hypothesis could be supported by the previous graph. We can hardly see these three data from the graph.


Logistic Regression Model
      Head back to the Injury count, since the “Injury” variable is binary, a Logistic Regression Model would be used to examine the data set as follows.

Table: Injury.Severity vs Weather(Severe Condition)

Model: Injury ~ Weather
Estimate Std. Error z value Pr(>&#124;z&#124;)
(Intercept) -1.099 0.516 -2.127 0.0334
WeatherCLEAR -0.319 0.517 -0.617 0.5375
WeatherCLOUDY -0.225 0.518 -0.435 0.6639
WeatherFOGGY -0.266 0.567 -0.469 0.6392
WeatherRAINING -0.213 0.518 -0.412 0.6803
WeatherSEVERE WINDS -0.406 0.686 -0.591 0.5544
WeatherSLEET -0.511 0.683 -0.748 0.4546
WeatherSNOW -0.137 0.537 -0.255 0.7986
WeatherWINTRY MIX -0.678 0.611 -1.110 0.2670

      From the table, since the p value are all bigger than p=0.05, we failed to reject the Null Hypothesis, thus we can see no significant relationship between the injury count with the weather condition.



Injury vs Surface

Chart: Injury vs Surface

      Now, moving on to the relationship between the Injury count and Road Surface Condition. Using ggplot as last time, a Bar chart was generated with Surface Condition as the Independent variable, and injury count as the Dependent variable. (The injured were colored into blue while the uninjured were colored into red)

      Making a similar bar chart results in a similar dilemma, so the alternative choice was again selected. The Injury Rate would be examined instead of the Injury count.

      As shown in the graph, the injury rate of the driver regarding different road surface conditions was organized as the high injury rate to low injury rate order. We can know that when the surface is mud/dirt/gravel, the injury rate is the highest, when the surface is snow, the injury rate is the lowest.

      But here’s also some discrepancy with expectation as the “DRY” condition was not the lowest injury rate holder. This could also be caused by a lack of data collected from these certain conditions. This hypothesis could be supported by the previous graph. We can hardly see these three data from the graph.


Logistic Regression Model
      Similar to the weather case, since the “Injury” variable is binary, a Logistic Regression Model would be used to examine the data set as follows.

Model: Injury ~ Surface.Condition
Estimate Std. Error z value Pr(>&#124;z&#124;)
(Intercept) -1.3148 0.148 -8.8907 0.000
Surface.ConditionOIL 0.7552 0.644 1.1727 0.241
Surface.ConditionSNOW -0.1133 0.228 -0.4961 0.620
Surface.ConditionSLUSH -0.0351 0.449 -0.0781 0.938
Surface.ConditionWATER(STANDING/MOVING) 0.1362 0.591 0.2306 0.818
Surface.ConditionWET -0.0194 0.152 -0.1277 0.898
Surface.ConditionMUD, DIRT, GRAVEL 0.8040 0.745 1.0790 0.281
Surface.ConditionDRY -0.0906 0.149 -0.6075 0.543

      From the table, since the p value are all bigger than p=0.05, we failed to reject the Null Hypothesis, thus we can see no significant relationship between the injury count with the weather condition.



Injury Count vs Weather + Surface Condition

Model: Injury ~ Weather + Surface.Condition
Estimate Std. Error z value Pr(>&#124;z&#124;)
(Intercept) -0.8712 0.540 -1.6119 0.107
WeatherCLEAR -0.4491 0.535 -0.8390 0.402
WeatherCLOUDY -0.3523 0.536 -0.6571 0.511
WeatherFOGGY -0.3852 0.583 -0.6606 0.509
WeatherRAINING -0.3311 0.537 -0.6160 0.538
WeatherSEVERE WINDS -0.5352 0.697 -0.7679 0.443
WeatherSLEET -0.6691 0.693 -0.9650 0.335
WeatherSNOW -0.0849 0.541 -0.1570 0.875
WeatherWINTRY MIX -0.8134 0.619 -1.3134 0.189
Surface.ConditionOIL 0.6427 0.651 0.9869 0.324
Surface.ConditionSNOW -0.4069 0.277 -1.4710 0.141
Surface.ConditionSLUSH -0.1279 0.455 -0.2809 0.779
Surface.ConditionWATER(STANDING/MOVING) 0.0486 0.598 0.0813 0.935
Surface.ConditionWET -0.1137 0.172 -0.6621 0.508
Surface.ConditionMUD, DIRT, GRAVEL 0.7973 0.748 1.0656 0.287
Surface.ConditionDRY -0.0974 0.163 -0.5963 0.551

      Still, from the table,since the p value are all bigger than p=0.05, we failed to reject the Null Hypothesis, thus, we can see no significant relationship between the injury count with the weather nor the surface condition.


Sample Predictions

Construction

Case 1

The chance of suffering injuries in a road accident when happens for a driver driving on dry surface, on a foggy day is 0.205.


Case 2

The chance of suffering injuries in a road accident when happens for a driver driving on an icy surface, on a snowy day is 0.278.


Case 3

The chance of suffering injuries in a road accident when happens for a driver driving on an dry surface, on a clear day is 0.195.



Discussion & Conclusion

Conclusion

      Toward the end of the research, what could be found is that there is no significant connection between the Driver’s Injury and the Weather/Surface condition. However, from the data we gathered, the overall data still shows that the injury rate is higher when a driver faces harsh weather/surface conditions. So for a driver who wants to take a drive, it would be better for him/her to check the weather report before he/she goes.


Limitation

      Even though the database is enormous (43 rows and over 100,000 columns), some data (especially the ones gathered from harsh weather and road conditions) are still too scarce to form a real objective view. So next time when looking into the same topic, different aspects should be examined.E.g. When trying to find the connection between Driver’s Injury and Road Surface Condition, observer could examine the effect of different friction do to a car in a certain speed. Similar to the Weather, visibility could be a great attitude to start.

      Finally, thank you all for reading, we appreciate your patience.


Reference

Publisher data.montgomerycountymd.gov. (2024, February 9). Montgomery County of maryland - crash reporting - drivers data.

         Catalog. https://catalog.data.gov/dataset/crash-reporting-drivers-data