ThomasVortex/Interactive-Traffic-Causality
0
Traffic Causality Reviewer
A human-in-the-loop system for discovering congestion propagation links between freeway stations using 5-minute speed data.
Features
- Interactive Review Interface: Label causal relationships between traffic stations
- Impact-Based Selection: Intelligently suggests pairs that would most improve model accuracy
- Real-time Model Updates: See AUC improvements after each review session
- Geographic Visualization: Interactive maps showing station locations and relationships
- Active Learning: Focuses on uncertain predictions to maximize learning efficiency
How It Works
- Event Detection: Converts speed data to binary slowdown events using median-week baseline
- Causal Analysis: Computes contingency tables and closed-form causal probability (p_c) for all station pairs
- Machine Learning: Random Forest classifier predicts causal relationships
- Human Review: Users label uncertain pairs through interactive interface
- Model Improvement: Instant retraining shows AUC improvements from user feedback
Usage
The app presents traffic station pairs for review with:
- Interactive maps showing cause/effect locations
- Statistical metrics (causal probability, uncertainty scores)
- Distance and time lag information
- Simple Yes/No/Unsure labeling interface
Your labels immediately improve the model and help discover real traffic congestion patterns!
