The Data Behind Traffic
Hey everyone!
I was interested in the data behind traffic, but more specifically, how traffic jams start and how we can predict them. Here are some interesting things I found in a dataset of 16,990 five-minute readings from one Bay Area freeway detector.
First off, the difference between traffic at 8 am on a weekday vs. weekends was huge, as I expected. It was 33.8 mph on weekdays versus 68.5 mph on weekends, meaning speed nearly halved. What surprised me a lot was the data about the detector: the five-minute readings showed that when a vehicle covered the detector 5-10% of the time, the median speed was 66.7 mph and about 402 cars passed through; however, surprisingly, the cars that passed through barely budged when vehicles covered the detector at 20% occupancy: 388 cars, a difference of 14 cars, while speed dropped significantly to 33.0 mph.I also tried to predict the next 5-minute average speed; however, the simplest prediction was almost the best (predicting the next 5-minute interval was most accurate when you used the previous 5-minute interval as your prediction), yielding a 0.92 mph prediction error. However, I also built a linear regression model trained on time of day and the previous speed, count, and occupancy, which reduced that to 0.87 mph.![]() |
| Five-minute speed forecasts during morning commute (2/5/18) |
Overall, we can't definitively say why these findings hold true. This dataset is just a two-month snapshot of a specific Bay Area freeway. What we do know is that the queue can grow even when hundreds of cars pass through the bottleneck.
One hypothesis for why the number of cars passing through doesn't reflect the speed reduction is that during rush hour, cars are packed closer together, so nearly as many can pass the detector even when speed drops over 5 minutes, but deeper research could help confirm why.
Here is the GitHub link to the dataset I used if you want to check it out: https://github.com/Davidham3/ASTGCN-2019-mxnet/tree/master/data/PEMS04




Comments
Post a Comment