AI-Based Traffic Management & Monitoring System
Adaptive signal control · Graduation flagship
An end-to-end adaptive traffic signal control platform that replaces fixed-timer lights with AI-powered cameras. Perception, policy, and dashboard ship as one deployable system.
The problem
Fixed-timer signals cannot react to demand. Queues build on one approach while a green phase burns on an empty one — wasting fuel, time, and emergency response minutes. Cities need control that reads the road as it actually is, right now.
›View process & reasoningProcess & reasoning(6 steps)
- 01Framed the problem as perception → state estimation → policy, so each layer could be evaluated in isolation before integration.
- 02Built a 12,064-image synthetic dataset in CARLA across 13 weather presets to cover the long tail (night, rain, fog) that real footage rarely provides, then validated on real-world traffic camera video to check the sim-to-real gap.
- 03Fine-tuned YOLOv11m over larger variants after measuring the accuracy/latency tradeoff at real-time frame budgets.
- 04Added ByteTrack for identity-stable tracking, and OpenCV homography to map pixels to a road plane for true speed, queue length, and violation detection.
- 05Kept the policy layer pluggable — actuated, ALINEA, and a custom CompositePolicy — behind one interface, so control strategies could be swapped and benchmarked on identical traffic demand profiles.
- 06Wrapped it in a FastAPI WebSocket backend feeding a Next.js 14 dashboard, with a reproducible evaluation harness and Supabase Postgres storing every experiment run.
Stack
What I learned
The model was never the hard part — the evaluation harness was. Once every policy could be replayed against identical demand profiles, progress became measurable instead of anecdotal. Next time I'd build that harness on day one, and invest earlier in domain randomisation to narrow the sim-to-real gap before scaling the dataset.