Road Safe HRM is an interactive tool designed to improve road safety in Halifax Regional Municipality (HRM) by analyzing historical traffic collision data. By leveraging advanced machine learning and visualization techniques, the project identifies high-risk areas, analyzes collision trends, and predicts potential risks under specific conditions.
- Interactive Visualizations:
- Heatmaps and clustering to highlight accident hotspots.
- Temporal analysis of collision trends by hour, day, and year.
- Correlation heatmaps to uncover contributing factors to collisions.
- Machine Learning Models:
- DBSCAN Clustering: Identifies accident-prone areas based on geospatial data.
- Naïve Bayes Prediction: Calculates the likelihood of collisions under specific conditions.
- Geospatial and Temporal Insights:
- Analysis of environmental factors like weather and lighting.
- Identification of high-risk roads and intersections.
- Customizability:
- Adjustable clustering parameters for fine-grained analysis.
- Filters for targeted exploration of data subsets.
- Programming Language: Python
- Visualization:
- Machine Learning:
- Scikit-learn
- SMOTE for class imbalance handling
- Data Sources:
- Data Exploration: Users interact with collision data via dynamic visualizations.
- Hotspot Identification: DBSCAN clustering identifies areas with high collision severity.
- Predictive Analytics: Naïve Bayes calculates collision likelihood, displayed via intuitive gauge charts.
- Interactive Modules: Explore correlations, trends, and specific conditions influencing road safety.
- Collision Statistics: Summarizes total collisions, fatalities, and trends by categories.
- EDA (Exploratory Data Analysis): Animated graphs and correlation heatmaps to explore data distributions.
- Hot Routes: Highlights the most collision-prone roads and their specific risk factors.
- Clustering Tab: Uses DBSCAN to reveal accident clusters and their severity.
- Collision Likelihood: Predicts risk levels based on conditions like weather, lighting, and location.
- Source: Halifax Open Data Portal
- Size: 35,414 rows and 31 columns after preprocessing.
- Key Features:
- Geospatial data (latitude, longitude)
- Environmental factors (weather, lighting)
- Temporal data (year, month, hour)
- Collision severity metrics
- Real-time data integration for dynamic monitoring.
- Advanced predictive models like Gradient Boosting or Neural Networks.
- IoT-enabled safety interventions via smart infrastructure.
- Inclusion of demographic and vehicle data for deeper insights.
This project is licensed under the MIT License. See the LICENSE
file for details.
We welcome contributions to improve Road Safe HRM! To get started:
- Fork the repository from the Git Repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Commit your changes (
git commit -m "Add your feature or fix"
). - Push to the branch (
git push origin feature/your-feature-name
). - Open a pull request.
- Ensure your code adheres to the project's coding standards.
- Write clear and concise commit messages.
- Document any new features or significant changes in the README file.
- Himanshi Verma ([email protected])
- Ashish Kumar Guntipalli ([email protected])
- Rishi Varman Rathimala Thangaravi ([email protected])