Dataset Viewer
The dataset could not be loaded because the splits use different data file formats, which is not supported. Read more about the splits configuration. Click for more details.
Couldn't infer the same data file format for all splits. Got {NamedSplit('train'): ('imagefolder', {}), NamedSplit('validation'): ('text', {}), NamedSplit('test'): ('csv', {})}
Error code:   FileFormatMismatchBetweenSplitsError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

SafeVixAI Dataset Hub

The Intelligence Layer for the SafeVixAI platform β€” IIT Madras Road Safety Hackathon 2026

This repository hosts the curated datasets, pre-trained ONNX exports, reproducible data pipelines, and Google Colab notebooks powering SafeVixAI across 11,098 repository files (~4.45 GB uncompressed).


Quickstart (Google Colab / Python)

# Clone the full dataset hub
!git clone https://huggingface.co/datasets/SafeVixAI/SafeVixAI-Dataset-Hub /content/data

# Symlink chatbot knowledge assets into the app workspace
import os
os.makedirs("/content/SafeVixAI/chatbot_service", exist_ok=True)
!ln -sfn /content/data/data/chatbot_service/data /content/SafeVixAI/chatbot_service/data

Or download individual files selectively via huggingface_hub:

from huggingface_hub import hf_hub_download

blackspots = hf_hub_download(
    repo_id="SafeVixAI/SafeVixAI-Dataset-Hub",
    filename="data/frontend/offline-data/blackspot_seed.csv",
    repo_type="dataset",
)

Repository Structure (11,098 Files Β· 4.45 GB)

SafeVixAI-Dataset-Hub/
β”œβ”€β”€ README.md, LICENSE, requirements.txt
β”œβ”€β”€ notebooks/                          ← 5 reproducible Colab training/processing notebooks + README.md
β”œβ”€β”€ data/                               ← 11,000 intelligence & dataset files (~4.44 GB)
β”‚   β”œβ”€β”€ backend/
β”‚   β”‚   β”œβ”€β”€ data/civic_intel/           ← Civic infrastructure, OSM road segments & boundary metadata
β”‚   β”‚   └── datasets/                   ← AccidentsBig.csv, india_road_accident_coords.csv, city road CSVs
β”‚   β”œβ”€β”€ chatbot_service/                ← 10,511 files: pothole_training, PMGSY roads, legal PDFs, ChromaDB, QA pairs
β”‚   └── frontend/
β”‚       β”œβ”€β”€ offline-data/               ← PWA bundles, blackspots & 11 Indian language translation JSONs
β”‚       └── public/
β”‚           β”œβ”€β”€ models/                 ← Edge ONNX exports (pothole.onnx, risk_model.onnx)
β”‚           └── offline-data/           ← Static PWA offline bundles
└── scripts/                            ← 88 reproducible data, backend & QA validation scripts
    β”œβ”€β”€ backend/
    β”‚   β”œβ”€β”€ app/                        ← DB seeding, RLS audit, vectorstore & offline bundle scripts
    β”‚   └── data/                       ← Road source manifests, PMGSY sampler & MVA 2019 violation seeders
    β”œβ”€β”€ chatbot_service/
    β”‚   β”œβ”€β”€ app/                        ← Emergency service seeding helpers
    β”‚   └── data/                       ← Retrying Overpass GIS fetchers (hospitals, police, ambulance, fire)
    └── scripts/
        β”œβ”€β”€ app/, data/, docs/          ← Master data bootstrapper, MoRTH PDF extractors & verification scripts
        └── chatbot_service/data/       ← Reference Motor Vehicles Act & WHO Trauma Care PDFs

Data Contents

Category Key Paths Scale Primary Sources
Pothole Vision Training data/chatbot_service/pothole_training/ 9,928 files (~1.65 GB) Roboflow Pothole v3 + Kaggle RDD2022
Road Infrastructure data/chatbot_service/data/roads/ (pmgsy_roads.geojson, pmgsy-geosadak-master.zip) ~1.98 GB PMGSY GeoSadak / NHAI
Legal & RAG Corpus data/chatbot_service/legal/, scripts/scripts/chatbot_service/data/legal/, qa_pairs/, chroma_db/ ~483 MB Motor Vehicles Act 1988 & Amendment 2019, MoRTH, WHO Trauma Care
Accident & Blackspots data/backend/datasets/, data/chatbot_service/accidents/, data/frontend/offline-data/ ~256 MB MoRTH / Kaggle India Road Accidents
Emergency Services GIS data/chatbot_service/hospitals/, emergency_services/, emergency/ ~42 MB OpenStreetMap Overpass API, NHP / NIN
PWA Multilingual Bundles data/frontend/offline-data/translations/*.json (11 languages: bn, en, gu, hi, kn, ml, mr, pa, ta, te, ur) ~26 MB SafeVixAI PWA Localization
Edge ONNX Exports data/frontend/public/models/pothole.onnx, risk_model.onnx ~12.3 MB Exported from SafeVixAI Colab pipelines

Reproducible Data Pipelines (scripts/)

# 1. Setup Kaggle auth (one-time)
pwsh scripts/scripts/data/setup_kaggle.ps1

# 2. Fetch emergency service GIS data (with retries + backoff)
python scripts/chatbot_service/data/fetch_hospitals.py
python scripts/chatbot_service/data/fetch_police.py
python scripts/chatbot_service/data/fetch_ambulance.py
python scripts/chatbot_service/data/fetch_blood_banks.py
python scripts/chatbot_service/data/fetch_fire.py

# 3. Download legal PDFs & extract MoRTH tables
python scripts/scripts/data/download_legal_pdfs.py
python scripts/scripts/data/extract_morth2022_tables.py

# 4. Verify dataset integrity
python scripts/scripts/data/verify_data.py

Research Notebooks (notebooks/)

# Notebook Output Open in Colab
1 YOLOv8 Pothole Detector Training ONNX + PyTorch road damage detector Open In Colab
2 ChromaDB RAG Vectorstore Build ChromaDB index for legal & first-aid RAG Open In Colab
3 Accident EDA & Hotspot Generator Blackspot seed CSV + hotspot summaries Open In Colab
4 Roads Data Processing Sampled PMGSY road network GeoJSON Open In Colab
5 Risk Model ONNX Training GradientBoosting ONNX segment risk scorer Open In Colab

Recommended run order: 1 β†’ 2 β†’ 3 β†’ 4 β†’ 5


License & Attribution

Licensed under Apache 2.0 β€” see LICENSE.

Third-party upstream data incorporates OpenStreetMap (ODbL), MoRTH / Government of India Open Data, PMGSY GeoSadak, National Health Portal, WHO Trauma Care Guidelines, and Kaggle / Roboflow road damage benchmarks under their respective upstream terms.

Downloads last month
2,742

Models trained or fine-tuned on SafeVixAI/SafeVixAI-Dataset-Hub

Space using SafeVixAI/SafeVixAI-Dataset-Hub 1

Collection including SafeVixAI/SafeVixAI-Dataset-Hub