Back to Home

AI Highway Safety & Incident Detection Platform

Production-grade vehicle detection, tracking, and near-miss classification deployed on Google Cloud Run.

AI Highway Safety & Incident Detection Platform
YOLOv8sGCPFastAPI

1. Problem

Highway fatalities remain one of the leading causes of preventable death in the US — 38,000 annually. Most crashes are preceded by detectable warning signs: tailgating, sudden braking, and dangerous following distances. This project builds a real-time AI pipeline that detects those warning signs from overhead highway camera footage before they escalate into incidents.

2. Approach

3. Tech Stack

YOLOv8s · PyTorch · OpenCV · ByteTrack · FastAPI · Docker · GCP (Cloud Run · Pub/Sub · BigQuery · Vertex AI · Artifact Registry) · Streamlit · Kalman Filter · Python

4. Results

5. Architecture

Camera frames → YOLOv8s detection → ByteTrack tracking
→ TTC near-miss analysis → Behavior classification
→ GCP Pub/Sub (real-time) → BigQuery (warehouse)
→ FastAPI (Cloud Run) → Streamlit dashboard

6. Next Steps