Zing Forum

Reading

Routezone: A Machine Learning-Based System for Predicting the Severity of Road Traffic Accidents in France

A machine learning system that predicts the severity of road traffic accidents (fatal/hospitalization vs minor injury/no injury), integrating official BAAC data, meteorological information, and rescue response time analysis.

道路交通事故预测机器学习LightGBMOSRM应急响应MLOpsFastAPIStreamlit
Published 2026-05-11 01:56Recent activity 2026-05-11 02:02Estimated read 5 min
Routezone: A Machine Learning-Based System for Predicting the Severity of Road Traffic Accidents in France
1

Section 01

Routezone: A Machine Learning-Based System for Predicting the Severity of Road Traffic Accidents in France (Introduction)

Routezone is a machine learning system that predicts the severity of road traffic accidents in France (fatal/hospitalization vs minor injury/no injury). It integrates official BAAC data, meteorological information, and rescue response time analysis to support emergency response decision-making. Core technologies include LightGBM, OSRM, MLOps, FastAPI, and Streamlit.

2

Section 02

Project Background and Data Sources

Road traffic accidents are a major global public safety issue. Traditional emergency responses rely on initial call descriptions, making it difficult to quickly determine the true severity of an accident. Routezone identifies factors affecting severity by analyzing historical data. Data sources include: BAAC (over 410,000 accident records from 2022 to 2024), Open-Meteo (meteorological conditions), ONISR (safety statistics), and data.gouv.fr (location information for emergency units SAU and fire stations CIS).

3

Section 03

Core Innovation: Golden Rescue Time and OSRM Integration

Routezone introduces 'Golden Rescue Time' analysis. Medical research shows that the first hour after an accident is a critical period for rescue, and statistical verification confirms a significant correlation between response time and mortality rate (p<1e-26). To accurately calculate response time, the V3 version integrates the OSRM Docker service to compute travel time based on real road networks, replacing the early Haversine formula (straight-line distance ×1.3) and improving estimation accuracy.

4

Section 04

Technical Architecture and Model Evolution

A complete MLOps tech stack is adopted: After data preprocessing (cleaning, deduplication, missing value handling), 37 features are generated (accident information, meteorology, road features, OSRM response time). Model iteration: V1 baseline model → V2 class imbalance optimization + Haversine vs OSRM comparison → V3 production version (LightGBM + Optuna hyperparameter optimization, recall rate 0.78, AUC 0.857, good generalization ability).

5

Section 05

System Deployment and Interaction Design

The backend FastAPI (port 8001) provides authentication, data query, and prediction services (receives accident information to compute OSRM time, returns severity and probability). The frontend Streamlit (port 8501) supports user registration and login (JWT), accident form submission, rescue route visualization (Leaflet map), and historical record viewing.

6

Section 06

Technical Highlights and Engineering Practices

Multi-source data fusion (official statistics, third-party APIs, geographic information); real-world constraint modeling (OSRM introduces road networks); end-to-end system design (complete application from data to interface); interpretability (probability + map visualization to assist decision-making).

7

Section 07

Application Value and Social Significance

Emergency dispatch: Optimize resource allocation to prioritize high-risk accidents; traffic management: Guide road safety improvements; research: Provide a data analysis framework. At the macro level, it demonstrates the potential of AI in the public safety field, and data-driven decisions can save lives.

8

Section 08

Conclusion

Routezone is an excellent case of AI applied to public safety. It has solid technology and focuses on practical problems, providing AI developers in the fields of intelligent transportation, emergency response, or public safety with a reference-worthy technical route and engineering practice example.