Road accidents are a major safety concern, and travelling through accident-prone areas can increase the risk of road users. This project presents an AI-based Road Accident Risk Prediction and Safe Route Recommendation System that helps users choose routes by considering not only distance and travel time but also accident risk.
The system uses historical accident data and geographical information to identify high-risk locations and estimate their risk levels. It displays accident-prone areas on an interactive map and compares the shortest, fastest, and safer routes between a user\'s current location and destination. During a journey, the system tracks the user\'s location and provides warnings about relevant high-risk areas along the selected route.
By combining accident risk analysis with route recommendations, the proposed system aims to improve road safety awareness and help users make more informed travel decisions. It serves as a supportive navigation tool that encourages safer route choices based on historical accident patterns.
Introduction
The project, SafeRoute AI: AI-Based Road Accident Risk Prediction and Safe Route Recommendation System, aims to improve road safety by helping users select routes based on accident risk, distance, and travel time rather than choosing only the shortest or fastest route.
The system uses historical road accident data and geographical information to identify accident-prone locations. It applies machine learning techniques and rule-based risk assessment to analyse accident patterns and classify locations into three categories: LOW, MEDIUM, and HIGH risk. These accident hotspots are displayed on an interactive map to help users identify potentially dangerous areas before starting their journey.
The project addresses the limitations of traditional navigation systems, which mainly focus on distance and travel time without considering historical accident risks. SafeRoute AI provides three route options: the shortest route, the fastest route, and the safer route. Users can compare these options and select a suitable route according to their preferences.
The proposed system follows several important steps, including accident data collection, data preprocessing, geographical location mapping, accident hotspot identification, risk scoring, route optimization, and map visualization. Algorithms such as Dijkstra's are used for route calculation by considering distance and accident risk as different routing costs.
The system uses machine learning models such as Linear Regression, Random Forest, and Gradient Boosting to estimate accident counts and support risk assessment. Python is used for backend processing, JavaScript and Leaflet are used for interactive map visualization, and Firebase supports Google-based user authentication. GPS tracking also helps monitor the user's journey and provide warnings about high-risk locations along the selected route.
The results demonstrate how historical accident data can be used to identify accident-prone areas, classify risk levels, and compare different route options through an interactive web application. The system helps users understand potential road risks and make more informed travel decisions.
The future scope includes integrating real-time traffic and accident information, weather conditions, road conditions, voice navigation, emergency SOS alerts, automatic accident detection, and personalised route recommendations. It may also be connected with smart-city systems, traffic authorities, and emergency services to improve road safety.
Conclusion
SafeRoute AI was developed with the aim of making route selection safer and more informed. Instead of choosing a route based only on distance, the system helps users understand the accident risks associated with different locations. By using historical accident data and geographical information, it identifies accident-prone areas, assesses their risk levels, and displays them on an interactive map.
One of the main features of the system is its ability to compare the shortest route with an alternative route that considers historical accident risk. This gives users a better understanding of their available options and helps them choose a route based on both convenience and safety. The map-based interface also makes it easier to view accident hotspots and understand potential risks before starting a journey.
Overall, SafeRoute AI shows how accident data and geographical mapping can be used to support better travel decisions. Although it cannot prevent every accident or guarantee a completely safe journey, it helps users become more aware of accident-prone locations and encourages them to consider road safety when planning their trips. With further improvements and more updated accident data, the system could become even more useful in supporting safer journeys.
References
[1] H. Li and L. Chen, “Traffic accident risk prediction based on deep learning and spatiotemporal features of vehicle trajectories,” PLOS ONE, vol. 20, no. 5, Art. no. e0320656, May 2025. [Online]. Available: https://doi.org/10.1371/journal.pone.0320656
[2] Y. Berhanu, D. Schröder, B. T. Wodajo, and E. Alemayehu, “Machine learning for predictions of road traffic accidents and spatial network analysis for safe routing on accident and congestion-prone road networks,” Results in Engineering, vol. 23, Art. no. 102737, Sep. 2024. [Online]. Available: https://doi.org/10.1016/j.rineng.2024.102737
[3] A. B. Z. Chai, B. T. Lau, M. K. T. Tee, and C. McCarthy, “Enhancing road safety with machine learning: Current advances and future directions in accident prediction using non-visual data,” Engineering Applications of Artificial Intelligence, vol. 137, pt. A, Art. no. 109086, Nov. 2024. [Online]. Available: https://doi.org/10.1016/j.engappai.2024.109086
[4] Y. Pei, Y. Wen, and S. Pan, “Road traffic accident risk prediction and key factor identification framework based on explainable deep learning,” IEEE Access, vol. 12, pp. 120597–120611, 2024. [Online]. Available: https://doi.org/10.1109/ACCESS.2024.3451522
[5] S. Huang, H. Chen, X. Wen, and H. Zhang, “Predicting highway risk event with trajectory data: A joint approach of traffic flow and vehicle kinematics,” Electronics, vol. 13, no. 3, Art. no. 625, Feb. 2024. [Online]. Available: https://doi.org/10.3390/electronics13030625
[6] Soheil Sohrabi, Yanmo Weng, Subasish Das, and Stephanie German Paal, “Safe route-finding: A review of literature and future directions,” Accident Analysis & Prevention, vol. 177, Art. no. 106816, Nov. 2022. [Online]. Available: https://doi.org/10.1016/j.aap.2022.106816