Skip to content

๐Ÿ“ˆ Visual EDA of traffic accidents using Python libraries to uncover time, location & condition-based trends.

License

Notifications You must be signed in to change notification settings

Yeeyash/Visual-Traffic-Accident-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›ฐ๏ธ Visual Traffic Accident Analysis

This project presents a visual and statistical analysis of traffic accident data to uncover patterns, trends, and high-risk zones. Through compelling visualizations, we aim to improve understanding of accident dynamics and support informed decisions in traffic safety, urban planning, and public awareness.


๐Ÿ“Œ Objective

To visually explore traffic accident datasets and answer key questions such as:

  • When are accidents most likely to occur?
  • What locations are most accident-prone?
  • How do weather, lighting, and road conditions affect accident rates?
  • What vehicle types are involved most frequently?

๐Ÿ› ๏ธ Tools & Technologies

  • Python ๐Ÿ
  • Pandas โ€“ data manipulation
  • Seaborn & Matplotlib โ€“ advanced visualizations
  • Plotly โ€“ interactive visual analysis
  • Jupyter Notebook โ€“ exploratory environment

๐Ÿ“ Dataset

The dataset contains real-world traffic accident records with variables like:

  • Time & Date
  • Weather & Lighting conditions
  • Location / Coordinates
  • Vehicle type involved
  • Casualties / Severity

๐Ÿ—‚๏ธ Dataset Source: A kaggle dataset, Same used for previous analysis


๐Ÿ“Š Sample Visualizations

Here are some types of plots generated in the analysis:

  • ๐Ÿ“† Heatmap of accidents by weekday and hour
  • ๐Ÿ›ฃ๏ธ Choropleth maps or scatter maps showing geographic hotspots
  • ๐ŸŒง๏ธ Bar plots comparing accidents by weather condition

Heatmap-Injuries


๐Ÿ” Key Insights

  • Accidents peak during evening rush hours on weekdays
  • Fog, rain, and low light conditions are correlated with higher accident severity
  • Urban intersections are frequent hotspots

๐Ÿ”ฎ Possible Extensions

  • Create a dashboard using Streamlit or Dash
  • Use clustering to identify accident-prone zones
  • Integrate real-time weather or traffic data for predictive analysis

๐Ÿ“„ License

This project is open-source under the MIT License.
Feel free to explore, use, or contribute!


๐Ÿ‘จโ€๐Ÿ’ป Connect?

Linkedin: Yash Ghansham Thakare


๐Ÿ™Œ Acknowledgements

Thanks to "Yuri Kashnitsky" for his notebook

About

๐Ÿ“ˆ Visual EDA of traffic accidents using Python libraries to uncover time, location & condition-based trends.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published