This project provides a web-based tool for predicting and classifying road accidents based on various input parameters. It utilizes machine learning models to analyze accident severity given specific conditions.
- HTML
- CSS
- JavaScript
- Bootstrap
- Machine Learning:
- CatBoostClassifier (from
catboostlibrary) - pandas
- scikit-learn
- CatBoostClassifier (from
- Data Visualization:
- Matplotlib
- Tabula
- Shivam Sharma
- Krishnan Lakshmi Narayana
- Bhavya Vishal
- Madhuri
- Clone the repository:
git clone https://github.com/theshivam7/Accident_data_analysis.git
- Open
index.htmlin a web browser to access the accident prediction dashboard. - Input relevant parameters such as police attendance, location coordinates, driver age, vehicle type, weather conditions, etc.
- Click the "Predict" button to see the predicted accident severity.
- Ensure you have Python installed on your machine.
- Install required libraries:
pip install pandas catboost scikit-learn matplotlib
- Use the provided machine learning script (
ml_model.py) to train and test the CatBoostClassifier model. - Example usage:
import pandas as pd from catboost import CatBoostClassifier from sklearn.model_selection import train_test_split import matplotlib.pyplot as plt from sklearn.metrics import accuracy_score import time