An Explainable Spatial Analytics and Machine Learning Framework for Highway–Rail Grade Crossing Safety Assessment
Source abstract
Abstract
Highway–rail grade crossing (HRGC) incidents remain a persistent safety concern due to repeated interactions between roadway users and rail operations under varying environmental and operational conditions. Existing studies rely on raw incident counts or partial exposure measures that can be influenced by differences in infrastructure exposure and do not account for spatial dependence, limiting consistent comparison across locations. This study developed an exposure-normalized framework to model incident intensity at the county level using accumulated incidents per crossing (AIPC), which normalizes cumulative incidents by crossing exposure. The analysis integrated statistical distribution modeling, spatial clustering, and supervised machine learning. The study combined county-level HRGC data for the contiguous United States from 1975 to 2025 with infrastructure, traffic, environmental, and accessibility variables. Results showed that AIPC was consistent with a gamma distribution, indicating a continuous representation of incident intensity without discrete risk regimes. Local Moran’s I identified statistically significant high-intensity clusters in specific regions, confirming spatial dependence in incident intensity. Machine learning models achieved strong predictive performance, with the extra trees model reaching AUC = 0.907 (F1 = 0.528) and ensemble methods consistently outperforming linear and kernel approaches. SHAP and permutation-based feature importance analysis identified temperature, train frequency, and accessibility measures as the most influential predictors, while aggregate density measures contributed the least. The results provided consistent evidence that incident intensity was associated with environmental conditions, operational exposure, and network structure. The proposed framework supports exposure-based risk assessment and enables identification of high-intensity counties for targeted intervention. This approach provides a transparent and transferable method for improving HRGC safety analysis and prioritizing resource allocation across large geographic areas.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Traffic and Road Safety · Risk and Safety Analysis · Occupational Health and Safety Research
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Supply Chain and Transportation, College of Business, North Dakota State University, P.O. Box 6050, Fargo, ND 58108-6050, USA
Funding
United States Department of Transportation
References (64)
Show source-provided references
1. Why Has Safety Improved at Rail-Highway Grade Crossings?10.1111/j.1539-6924.2005.00642.x ↗
2. Accident Prediction Model for Railway-Highway Interfaces10.1016/j.aap.2005.10.004 ↗
3. Using Hierarchical Tree-Based Regression Model to Predict Train-Vehicle Crashes at Passive Highway-Rail Grade Crossings10.1016/j.aap.2009.07.003 ↗
4. Modelling Driver Behaviour Towards Innovative Warning Devices at Railway Level Crossings10.1016/j.aap.2012.11.002 ↗
5. Conceptual Framework for Improving Safety at Level Crossings in the European Union10.1016/j.trpro.2025.10.074 ↗
6. Anagnostopoulos, A. (2025). Assessing Safety and Infrastructure Design at Railway Level Crossings Through Microsimulation Analysis. Future Transp., 5.10.3390/futuretransp5010024 ↗
7. Contributing Factors of Crash Injury Severity at Public Highway-Railroad Grade Crossings in the U.S.10.1016/j.jsr.2015.03.005 ↗
8. The Impact of Aggressive Driving Behavior on Driver-Injury Severity at Highway-Rail Grade Crossings Accidents10.1155/2018/9841498 ↗
9. Gate-Violation Behavior at Highway-Rail Grade Crossings and the Consequences: Using Geo-Spatial Modeling Integrated with Path Analysis10.1016/j.aap.2017.10.010 ↗
10. Analysis of the Effects of Visibility and Warning Devices on Driver Injury Severity at Highway-Rail Grade Crossings Considering Temporal Transferability of Data10.1080/17457300.2020.1737139 ↗
11. Driver Injury Severity Study for Truck Involved Accidents at Highway-Rail Grade Crossings in the United States10.1016/j.trf.2016.09.001 ↗
12. Injury Severity of Truck Drivers in Crashes at Highway-Rail Grade Crossings in the United States10.1177/0361198118781183 ↗
13. Badshah, I., Ali, A., Lu, P., and Keramati, A. (2026). Evaluating the Impact of Road User Actions on Crash Severity at Highway–Rail Grade Crossings: A Data-Driven Analytics Approach. Infrastructures, 11.10.3390/infrastructures11030089 ↗
14. Uncovering the risks for driver injury severities for truck-trailer and passenger car crashes at highway-railroad crossings
15. Effectiveness of signs for pedestrian-railroad crossings: Colors, shapes, and messaging strategies10.1016/j.jsr.2024.01.003 ↗
16. Strategies to mitigate safety and associated problems at gated rail road grade crossing: A structural equation modelling approach10.1016/j.tranpol.2023.11.002 ↗
17. Analysing driver behaviour and crash frequency at railway level crossings using connected vehicle and GIS data10.1016/j.tbs.2024.100957 ↗
18. Accident and Hazard Prediction Models for Highway–Rail Grade Crossings: A State-of-the-Practice Review for the USA10.1007/s40534-020-00215-w ↗
19. Geometric Effect Analysis of Highway-Rail Grade Crossing Safety Performance10.1016/j.aap.2020.105470 ↗
20. Singh, P., Pasha, J., Khorram-Manesh, A., Goniewicz, K., Roshani, A., and Dulebenets, M.A. (2021). A Holistic Analysis of Train-Vehicle Accidents at Highway-Rail Grade Crossings in Florida. Sustainability, 13.10.3390/su13168842 ↗
21. Fatal Crashes at Highway Rail Grade Crossings: A U.S. Based Study10.1016/j.ijtst.2021.03.002 ↗
22. Assessing visibility at highway-rail grade crossings using light detection and ranging (LiDAR) technology10.1016/j.heliyon.2024.e40347 ↗
23. Data Accuracy Matters: Improving Highway-Rail Grade Crossings Crash Predictions through Inventory Verification10.1177/03611981241270179 ↗
24. Yang, Z., Zhang, C., Li, G., and Xu, H. (2025). Analysis of the Impact of Different Road Conditions on Accident Severity at Highway-Rail Grade Crossings Based on Explainable Machine Learning. Symmetry, 17.10.3390/sym17010147 ↗
25. Risk assessment of main accident causes at highway-rail grade crossings10.1016/j.ress.2024.110764 ↗
26. Cost Analysis and Prediction of Railroad Level Crossing Accidents for Indian Railways10.1007/s40864-024-00220-w ↗
27. Bayesian Spatial Models of Crash Frequency at Highway-Railway Crossings10.3141/2608-04 ↗
28. Cluster-Based Approach to Analyzing Crash Injury Severity at Highway-Rail Grade Crossings10.3141/2608-07 ↗
29. Benchmarking Regions Using a Heteroskedastic Grouped Random Parameters Model with Heterogeneity in Mean and Variance: Applications to Grade Crossing Safety Analysis
30. Accounting for Unobserved Heterogeneity and Spatial Instability in the Analysis of Crash Injury-Severity at Highway-Rail Grade Crossings: A Random Parameters with Heterogeneity in the Means and Variances Approach
31. Se, C., Champahom, T., Laphrom, W., Jomnonkwao, S., and Ratanavaraha, V. (2023). Analysis of Factors Influencing Crash Injury Severities at Highway-Rail Grade Crossings Accommodating for Unobserved Heterogeneity. Front. Built Environ., 9.10.3389/fbuil.2023.1255762 ↗
32. Applying Machine Learning, Text Mining, and Spatial Analysis Techniques to Develop a Highway-Railroad Grade Crossing Consolidation Model10.1016/j.aap.2021.105985 ↗
33. Machine Learning Approach to Enhance Highway Railroad Grade Crossing Safety by Analyzing Crash Data and Identifying Hotspot Crash Locations10.1177/03611981231212162 ↗
34. Quantifying emergency response system risk caused by grade crossing blockages10.1080/03081060.2025.2480692 ↗
35. Mitigating Grade Crossing Blockage Queues by Modifying Signal Timing Plans: A Network-Level Microsimulation Approach Using Train Detection and Probe-Based Traffic Data10.1061/JTEPBS.TEENG-8821 ↗
36. Integrating Railroad Crossing Blockage Information in First Responder Dispatching Route Planning10.1061/JTEPBS.TEENG-7925 ↗
37. Hybrid Machine Learning and Geographic Information Systems Approach—A Case for Grade Crossing Crash Data Analysis10.1142/S2424922X20500035 ↗
38. Senkondo, E., Chimba, D., Madalo, M., Yeboah, A., and Blue, S. (2025). Comparative Analysis of Machine Learning and Statistical Models for Railroad–Highway Grade Crossing Safety. Vehicles, 7.10.3390/vehicles7040163 ↗
39. Wang, D., He, Q., Peng, J., and Li, G. (2025). Enhancing Intelligent Transportation Safety with Explainable AI: A Framework for Uncovering Crash Severity Factors at Highway–Rail Grade Crossings. World Electr. Veh. J., 16.10.3390/wevj16110637 ↗
40. Interpretable Accident Prediction at Highway-Rail Grade Crossings: A Deep Learning Approach10.1016/j.cie.2025.111337 ↗
41. Modeling Highway-Rail Grade Crossing (HRGC) Crash Severity Using Statistical and Machine Learning Methods10.1080/17457300.2025.2541666 ↗
42. Integrating AI and edge computing for advanced safety at railroad grade crossings
43. Accident prediction model for Railway Level Crossings (RLCs) in Bangladesh10.1016/j.kscej.2025.100296 ↗
44. Assessment of the Long-Term Impacts of Highway–Railway Grade Crossing Countermeasures: A Bayesian Vector Autoregression Modeling Approach10.1061/JTEPBS.TEENG-9018 ↗
45. Are train horns improving road safety? Road users’ perspective10.1080/00140139.2024.2333965 ↗
46. Improving Reliability of Safety Countermeasure Evaluation at Highway-Rail Grade Crossings Through Aleatoric Uncertainty Modeling with Machine Learning Techniques10.1016/j.ress.2025.111082 ↗
47. Bridgelall, R. (2026). Hierarchical Reconciliation of Fifty-One Years of Highway–Rail Grade Crossing Data with Verified Multistage Inference. Algorithms, 19.10.20944/preprints202603.0832.v1 ↗
48. Federal Railroad Administration (FRA) (2026, March 21). Highway-Rail Grade Crossing Incident Data (Form 57), Available online: https://data.transportation.gov/Railroads/Highway-Rail-Grade-Crossing-Incident-Data-Form-57-/7wn6-i5b9/about_data.
49. Federal Railroad Administration (FRA) (2026, March 21). Crossing Inventory Data (Form 71)-Current, Available online: https://data.transportation.gov/Railroads/Crossing-Inventory-Data-Form-71-Current/m2f8-22s6/about_data.
50. U.S. Census Bureau (USCB) (2026, March 21). TIGER Shape File, Available online: https://www2.census.gov/geo/tiger/GENZ2021/shp/cb_2021_us_county_20m.zip.
51. U.S. Department of Transportation, and BTS (2026, March 21). Marine Highways: ArcGIS Online, Available online: https://geodata.bts.gov/datasets/2f8f522f630e4cf5b754ab9e4b64e37e_0/explore?location=37.702581%2C-89.633808%2C5.
52. United States Census Bureau (USCB) (2026, March 21). Geographies, Available online: https://www.census.gov/programs-surveys/cfs/technical-documentation/geographies.html.
53. U.S. Department of Transportation, and BTS (2026, March 21). Intermodal Freight Facilities Rail TOFC/COFC, Available online: https://geodata.bts.gov/datasets/e6332597fcd546d3899f60ec9b9157b9_0/explore?location=33.817576%2C-92.494861%2C5.
54. (2026, March 11). United States Census Bureau (USCB), Available online: https://www2.census.gov/programs-surveys/popest/datasets/2010-2020/counties/totals/.
55. Bureau of Transportation Statistics (BTS) (2026, March 21). County Transportation Profile, Available online: https://www.bts.gov/ctp.
56. Federal Highway Administration (FHWA) (2026, March 21). HPMS County Summary 2023, Available online: https://data.transportation.gov/Roadways-and-Bridges/HPMS-County-Summary-2023/8j5p-a5aj/about_data.
57. National Oceanic and Atmospheric Administration (NOAA) (2026, March 21). County Average Temperature 1901–2000 Mean, Available online: https://www.ncei.noaa.gov/access/monitoring/climate-at-a-glance/county/mapping/110/tavg/202412/12/mean.
58. National Oceanic and Atmospheric Administration (NOAA) (2026, March 21). County Precipitation 1901–2000 Mean, Available online: https://www.ncei.noaa.gov/access/monitoring/climate-at-a-glance/county/mapping/110/pcp/202412/12/mean.
59. Burnham, K.P., and Anderson, D.R. (2002). Model Selection and Multimodel Inference: A Practical Information-Theoretic Approach, Springer.
60. Casella, G., and Berger, R. (2024). Statistical Inference, Chapman and Hall/CRC. [2nd ed.].10.1201/9781003456285 ↗
61. Local indicators of spatial association—LISA10.1111/j.1538-4632.1995.tb00338.x ↗
62. Aggarwal, C.C. (2015). Data Mining, Springer International Publishing.10.1007/978-3-319-14142-8 ↗
63. Forbes, C., Evans, M., Hastings, N., and Peacock, B. (2011). Statistical Distributions, John Wiley & Sons. [4th ed.].10.1002/9780470627242 ↗
64. Bridgelall, R. (2022). Tutorial on Support Vector Machines. Preprints, 2022010232.10.21203/rs.3.rs-1200362/v1 ↗