TransitAI Core

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.

Back to the storyHow an alert is found

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 window, 3 MADs
206 alerts a weekday: every blip
Two windows, 3 MADs
48: the design point
Three windows, 4 MADs
8: only what lasts a quarter of an hour
Why not 1 minute
61% of one-minute route-windows hold three stop visits, against 96% of five-minute ones; a median of one bus is that bus

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.

↑ ↓ to move · ↵ to open · esc to close