Problem
Traffic counts carry strong daily and weekly patterns, noise, and event-driven spikes, so an anomaly detector can forecast well and still raise poor alerts.
NLP & ML Research · 202554% lower RMSE
Cut hourly traffic forecast error by 54% with a GRU, then showed the simpler Poisson GLM is the better anomaly alarm (ROC-AUC 0.94 vs 0.71).
Traffic counts carry strong daily and weekly patterns, noise, and event-driven spikes, so an anomaly detector can forecast well and still raise poor alerts.
I trained a Poisson GLM and a GRU sequence model on 2020-2024 hourly counts, tested both on held-out 2025 data, and scored anomalies with KL divergence.
The GRU cut forecast RMSE by 54% (890 to 407) on an unseen year, but the interpretable GLM was the better alarm: ROC-AUC 0.94 vs 0.71 and F1 0.49 vs 0.14.
Step 1 of 5: Hourly traffic counts
Solo course paper for Probabilistic Models & Machine Learning at York University.
This project was less about chasing one model score and more about understanding what different anomaly detectors assume.
The better forecaster was not the better detector. If the anomaly score is poorly calibrated, a more complex model can still produce noisy operational signals, so evaluation had to stay tied to practical alert usefulness, not just loss curves.