Digital twin · anomaly detection · on the real month
Sample anomaly replay.
What the design would have flagged at one agency, had it been watching in September 2024. MiWay's stop-level arrival and passenger-count files stand in for the live feed: delay and load per route every 5 minutes, a band for each route and hour, an alert when a route stays outside it.
- 48delay alerts on a typical weekday, across 63 routes
- 46crowding alerts beside them
- 10 minhow long a typical delay alert lasts; one in ten lasts 20 or more
- 27%of delay alerts sit on a route a neighbour's riders use
How many alerts a day.
Twenty weekdays. An alert is a route above its band for two windows in a row, ten minutes. Late and crowded sides only: that is what a control room acts on.
The dial: alerts against patience.
Two settings decide how often a control room is interrupted: how wide the band is, and how long a route must stay outside it. The design point is the middle of this table.
One evening on route 18.
The longest incident of the month: 2024-09-26, above its band from 16:25 for 170 minutes. Live, the first alert would have gone out ten minutes in.
The rules, on the sample.
Feed gap: testable
- 0.6% of trips reported no time at any stop.
- 4.9% of stop visits have no arrival time.
- Live, each silent trip is an alert to the agency.
Dead counter: none found
- 0 of 9,521 vehicle blocks read zero all day.
- The file may already be cleaned before export.
- The rule stays; the sample cannot show its rate.
Frozen and jump: not testable
- Both need raw GPS positions.
- The sample holds arrivals at stops, not pings.
- They wait for a real live feed.
Who else would hear.
20 of MiWay's 63 routes serve one of the twelve busiest cross-agency transfer stops from the sample transfer analysis. 270 of the month's 1,003 delay alerts were on those routes: the ones a neighbour would be told about. The rest stay between MiWay and the region.
Caveats.
One agency, one month. The band here is a median and a spread per route and time of day over the same twenty weekdays, so it sees the whole month at once; a live detector sees only the past, and CloudWatch's also follows trends. Treat the counts as the right order of magnitude, not a forecast. Arrivals at stops stand in for live positions. Routes and days are named; no vehicle, trip or card is. Every figure comes from explorations/anomaly-sample/; nothing here is deployed.