CoolFace
Apppublic

mr-robot369/indian-road-accident-dashboard

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes
App README

๐Ÿšฆ Indian Road Accident Dashboard ๐Ÿ‡ฎ๐Ÿ‡ณ

๐Ÿ”— Live Demo:\ https://mr-robot369-indian-road-accident-dashboard.hf.space/ <p align="center"> <img src="assets/dashboard.png" alt="Dashboard Preview" width="95%" height="100%"> </p> ------------------------------------------------------------------------

๐Ÿ“Œ Overview

The Indian Road Accident Dashboard is an interactive data visualization application built using Plotly Dash to analyze and explore road accident statistics across India.\ It provides state-wise, temporal, and trend-based insights into road accidents through dynamic charts and maps.

The dashboard is deployed for free on Hugging Face Spaces using Docker, ensuring public accessibility and reproducibility.


๐ŸŽฏ Objectives

  • โ€”Analyze road accident patterns in India\
  • โ€”Visualize state-wise accident distribution\
  • โ€”Study year-wise and trend-based variations\
  • โ€”Provide an interactive, user-friendly dashboard for analysis and awareness

๐Ÿงฉ Key Features

  • โ€”Interactive Plotly charts with hover, zoom, and filters\
  • โ€”State-wise road accident analysis\
  • โ€”Year-wise and trend-based visualizations\
  • โ€”Choropleth map of India showing accident intensity\
  • โ€”Optimized performance using modular chart functions\
  • โ€”Plotly and Dash assets served locally\
  • โ€”Clean, scalable, and modular codebase\
  • โ€”Public deployment on Hugging Face Spaces

๐Ÿ› ๏ธ Tech Stack

  • โ€”Frontend / Visualization: Plotly, Dash\
  • โ€”Backend: Python\
  • โ€”Data Handling: Pandas, NumPy\
  • โ€”Deployment: Docker, Hugging Face Spaces\
  • โ€”Version Control: Git

๐Ÿ“‚ Project Structure

indian-road-accident-dashboard/ โ”‚ โ”œโ”€โ”€ app.py โ”œโ”€โ”€ charts.py โ”œโ”€โ”€ data/ โ”‚ โ””โ”€โ”€ accident_preprocessed.csv โ”‚ โ”œโ”€โ”€ assets/ โ”‚ โ””โ”€โ”€ styles.css โ”‚ โ”œโ”€โ”€ requirements.txt โ”œโ”€โ”€ Dockerfile โ””โ”€โ”€ README.md


๐Ÿš€ Deployment Details

  • โ€”Platform: Hugging Face Spaces\
  • โ€”Deployment Type: Docker-based\
  • โ€”Hosting Cost: Free\
  • โ€”Public URL:\ https://mr-robot369-indian-road-accident-dashboard.hf.space/

๐Ÿง  Performance Optimizations

  • โ€”Local serving of Plotly and Dash assets to avoid CDN latency\
  • โ€”Lazy-loaded charts using callback-based rendering\
  • โ€”Modularized chart generation logic\
  • โ€”Pinned dependencies for stable and reproducible builds

๐Ÿ“ˆ Use Cases

  • โ€”Academic projects and research\
  • โ€”Data visualization demonstrations\
  • โ€”Road safety analysis and awareness\
  • โ€”Resume and portfolio showcase

๐Ÿ”ฎ Future Enhancements

  • โ€”Accident severity and cause-based analysis\
  • โ€”District-level visualizations\
  • โ€”Predictive analytics using Machine Learning\
  • โ€”Downloadable reports (CSV / PDF)

๐Ÿ‘จโ€๐Ÿ’ป Author

Anubhav Shukla\ M.Sc. Data Science\ Python \| Data Science \| Visualization \| Dash


โญ Acknowledgements

  • โ€”Government open datasets on road accidents\
  • โ€”Plotly & Dash community\
  • โ€”Hugging Face Spaces for free hosting

๐Ÿ“Œ Note

This project is created for educational and analytical purposes using publicly available data.