Skip to content

Hrithik-Kumar/RTA-Streamlit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Road Traffic Accidents Severity Prediction App

Project: Predicting the Road Traffic Accident Severity


Alt text

Dataset Description

The data set is collected from Addis Ababa Sub-city police departments for master's research work. The data set has been prepared from manual records of road traffic accidents of the year 2017-20. All the sensitive information has been excluded during data encoding and finally it has 32 features and 12316 instances of the accident. Then it is preprocessed and for identification of major causes of the accident by analyzing it using different machine learning classification algorithms.

Source of Dataset: Click here

Probelm Statement

The target feature is Accident_severity which is a multi-class variable. The task is to classify this variable based on the other 31 features step-by-step by going through each day's task. The metric used for evaluation is f1-score


Install

This project requires Python and the following Python Libraries installed:

RTSA Notebook

Following two packages are optional

  • Shap (Required only for Explainable AI)
  • Joblib (Required only for Saving and loading the model)

RTSA_Pycaret Notebook


  • Streamlit (Only required to run the web application)

You will also need to have software installed to run and execute a Jupyter Notebook or you can use Google Collab

If you do not have Python installed yet, it is highly recommended that you install the Anaconda distribution of Python, which already has the above packages and more included.

Code

Python Notebooks are provided in the Notebook folder. The required datasets are included in the Dataset Folder.

Running the Python Notebooks Locally

In a terminal or command window, navigate to the top-level project directory RTA-PROJECT/ (that contains this README) and then navigate to Notebook and run one of the following commands:

ipython notebook "Notebook_name"

or

jupyter notebook "Notebook_name"

or open with Juoyter Lab

jupyter lab

This will open the Jupyter Notebook software and project file in your browser.

Running the Application Locally

In a terminal or command window, navigate to the top-level project directory RTA-PROJECT/ (that contains this README) and run the following command:

streamlit run app.py

About

Road Traffic Accidents Severity Prediction App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors