Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traffic Accident Prediction Model using Deep Learning #930

Merged
merged 22 commits into from
Oct 26, 2024

Conversation

alo7lika
Copy link
Contributor

Pull Request for DL-Simplified 💡

#905

Issue Title: Traffic Accident Prediction Model Using Deep Learning

  • Info about the related issue (Aim of the project): The goal of this project is to develop a machine learning model that predicts the likelihood of traffic accidents based on historical data, weather conditions, traffic volume, and road characteristics. The model aims to provide insights that can help in making informed decisions to enhance road safety.

  • Name: Alolika Bhowmik

  • GitHub ID: alo7lika

  • Email ID: [email protected]

  • Identify yourself: Gssoc Ext 24 Contributor

Closes: #905

Describe the add-ons or changes you've made 📃

I have implemented a deep learning model using LSTM (Long Short-Term Memory) networks to analyze and predict traffic accident probabilities. The following changes have been made:

  • Developed data preprocessing scripts to clean and prepare the dataset for training.
  • Created and trained an LSTM model to predict accident occurrences.
  • Added evaluation metrics to assess model performance, including accuracy and F1-score.
  • Updated the README file to include instructions on how to run the model and interpret the results.

Type of change ☑️

What sort of change have you made:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, local variables)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested? ⚙️

The model has been tested using a separate validation dataset. I have verified the accuracy of the predictions against known accident data. Additionally, the code has been run in a local environment to ensure that all components work together seamlessly without errors.

Checklist: ☑️

  • My code follows the guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly wherever it was hard to understand.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added things that prove my fix is effective or that my feature works.
  • Any dependent changes have been merged and published in downstream modules.

Copy link

Our team will soon review your PR. Thanks @alo7lika :)

@alo7lika
Copy link
Contributor Author

@abhisheks008 the task has been completed.
Kindly review it.
Thank you!

Copy link
Owner

@abhisheks008 abhisheks008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @alo7lika please go through the README.md and follow the project structure.

Sharing the project structure,

Project Folder
|- Dataset
   |- dataset.csv (dataset used for the particula project)
   |- README.md (brief about the dataset)
|- Images
   |- img1.png
   |- img2.png
   |- img3.png
|- Model
   |- project_folder.ipynb
   |- README.md
|- requirements.txt

@alo7lika
Copy link
Contributor Author

Hi @alo7lika please go through the README.md and follow the project structure.

Sharing the project structure,

Project Folder
|- Dataset
   |- dataset.csv (dataset used for the particula project)
   |- README.md (brief about the dataset)
|- Images
   |- img1.png
   |- img2.png
   |- img3.png
|- Model
   |- project_folder.ipynb
   |- README.md
|- requirements.txt

done @abhisheks008

@alo7lika
Copy link
Contributor Author

@abhisheks008

Copy link
Owner

@abhisheks008 abhisheks008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find the required project structure for this project.
image

This has to be like this,

Project Folder
|- Dataset
   |- dataset.csv (dataset used for the particula project)
   |- README.md (brief about the dataset)
|- Images
   |- img1.png
   |- img2.png
   |- img3.png
|- Model
   |- project_folder.ipynb
   |- README.md
|- requirements.txt

@alo7lika

@alo7lika
Copy link
Contributor Author

Screenshot 2024-10-25 171114

@abhisheks008

Copy link
Owner

@abhisheks008 abhisheks008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about the Images and Dataset folder. You need to do them as well.
@alo7lika

@alo7lika
Copy link
Contributor Author

What about the Images and Dataset folder. You need to do them as well. @alo7lika

My project doesn't contain dataset since I have used synthetic dataset and also no images as well

@abhisheks008
Copy link
Owner

abhisheks008 commented Oct 25, 2024

What about the Images and Dataset folder. You need to do them as well. @alo7lika

My project doesn't contain dataset since I have used synthetic dataset and also no images as well

You haven't perform any EDA?

If you don't have a dataset, then just create a folder named as Dataset. Inside that, put a README.md file and mention a brief about the dataset you have used there.

@alo7lika
Copy link
Contributor Author

done @abhisheks008

Copy link
Owner

@abhisheks008 abhisheks008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Approved!
@alo7lika

@abhisheks008 abhisheks008 added Status: Approved Approved PR by the PA. level 2 Level 2 for GSSOC hacktoberfest-accepted hacktoberfest and removed Status: Requested Changes Changes requested. labels Oct 26, 2024
@abhisheks008 abhisheks008 merged commit c5ccc15 into abhisheks008:main Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Traffic Accident Prediction Model using Deep Learning
2 participants