TransitAI Core

Track 3 · fourth draft, for review

Fifteen use cases, four groups, one system.

The instructor's list of reports, analyses and models, grouped by the data each needs and where that data may live. One architecture serves all four groups, drawn three times at rising detail, with every AWS service named and priced. Cloud only: no salaries on this page.

Start at level 1Compare with the third draft

Four groups, by the data they need.

Grouped so that each group has one custody story. Three use what agencies already publish or total at home. The fourth needs card records, so it never leaves home.

1 · Data health

Runs Checks run at home before anything leaves and again on arrival; the live watch runs at the region.

Boxes All four boxes

Needs Counters against fare taps per trip, gaps in vehicle locations, the live feeds

2 · Service

  • Service reliability
  • Running and dwell time
  • Schedule evaluation
  • Arrival time prediction
  • Bunching prediction
  • Dwell time model

Runs At the region, mostly on the open feeds and their archive. Running times are totalled at home; the dwell model trains at home.

Boxes Offline and online supply

Needs Open live feeds, running times by segment, stop visits for dwell

3 · Crowding and ridership

  • Crowding
  • Ridership summaries
  • Ridership and load forecast

Runs Counters are totalled per stop per 15 minutes at home; forecasts train at the region.

Boxes Offline and online demand

Needs Passenger counters, fullness in the open feed

4 · Rider journeys

Runs At home only, on card records. Only totals of ten or more cards cross; each agency counts its own transfers.

Boxes Offline demand

Needs Fare taps with the card, joined to stop visits at home

Level 1: the whole idea.

Nine boxes. Pick a group, then press Play to follow its data one step at a time.

Agencies keep their records; the region holds public feeds, totals and scores; readers get data, not dashboards.

Level 2: the functions.

Each box is one job, with the service that would do it. Parts a group does not use fade out; Play walks its path hop by hop.

Two kinds of account: each agency's own, where everything with a card or a stop visit stays, and the exchange's.

Level 3: every service.

Full resolution, one group at a time. Every AWS service the group touches runs across the top, by account; every hop runs top to bottom, with what crosses.

A sequence diagram: read it like a packet trace. Dashed arrows are side steps. Service choices are proposals for review; MiWay stands for a full sharer.

One picture per group.

The same system, one group at a time, in a few words.

1 · Data health

Inside the agency

Quality checks

every file, nightly

Quality score

one per feed per day
The region

Checker

again on arrival

Live watch

gaps, odd readings
Readers

Planners

quality report

Control rooms

alerts
What crosses is a score per feed per day, never the records. The instructor's advice: do this first, since it affects everything else.

2 · Service

Inside the agency

Open feed

already public

Running times

totalled at home
The region

Feed archive

every position seen

Models

arrival, bunching

Reports

on-time, headways
Readers

Control rooms

predictions, alerts

Planners

reliability, schedules
Built mostly from feeds already public, so an agency that shares nothing else still counts. The dwell model needs stop visits, so it trains at home.

3 · Crowding and ridership

Inside the agency

Counters

per stop visit

15-min loads

no rider in it
The region

Load totals

by stop and route

Forecast

next hours and days
Readers

Planners

crowding, ridership

The public

fullness
An agency that shares no loads shows unknown, never an estimate from its neighbour.

4 · Rider journeys

Inside the agency

Fare taps

never leave

Trip chaining

origin-destination, segments

Ten-card check

small counts hidden
The region

Totals

added across agencies
Readers

Planners

journeys, transfers
The whole analysis runs at home. Each agency counts its own transfers; the region adds the counts.

Every service, and what it costs.

One row per service per job, tagged with the group that needs it. Per month, typical case.

TierServiceWhat it does hereGroupPer month
The region$939
EdgeCloudFrontpublic positions, cachedService$103
EdgeCloudFrontpublic fullness, cachedCrowding and ridership$103
EdgeAWS WAFone web ACL in front of every callShared$51
EdgeAppSyncGraphQLShared$24
EdgeAPI Gateway (HTTP API)REST and JSONShared$20
EdgeData transfer outAPI responses not served by the CDNShared$9.00
EdgeRoute 53names for the APIs and feedsShared$5.86
IdentityCognitoapp and staff sign-in, tokensShared$34
IdentityVerified Permissionsa decision per uncached requestShared$15
IngestKinesis Data Streamsthe live lane, three readersShared$67
IngestECS on Fargatethe feed pollerShared$20
IngestData Firehoselive lane into the archive, as ParquetService$6.70
IngestLambdathe checker, one call per snapshotShared$2.75
IngestS3 requeststhe batch laneShared$1.87
IngestSQSrejected recordsData health$0.40
CoreCloudTraildata events into the audit logShared$61
CoreAurora PostgreSQL Serverless v2registry: agreements, contract status, shared namesShared$56
CoreStep Functionsfan-out of fare questionsRider journeys$0.12
CoreEventBridgealerts to control roomsData health$0.10
CoreEventBridgequestions to agencies' busesRider journeys$0.00
StoreDynamoDBlive state: positions and delaysService$71
StoreDynamoDBlive state: fullnessCrowding and ridership$31
StoreS3 Object Lockthe audit logShared$15
StoreS3regional aggregates and quality scoresShared$7.50
StoreS3 and Glacier IRthe feed archiveService$3.55
AnalyseGlue ETLnightly reliability, running and dwell time, schedule reportsService$16
AnalyseLambdaarrival predictionsService$13
AnalyseGlue ETLnightly crowding and ridership reportsCrowding and ridership$7.92
AnalyseAthenaad hoc questions and the what-ifShared$5.50
AnalyseGlue ETLnightly quality reportData health$2.64
AnalyseSageMaker trainingarrival time and bunching riskService$2.57
AnalyseLambdalive watch: feed gaps and odd readingsData health$1.88
AnalyseLambdalive watch: bunchingService$1.88
AnalyseSageMaker trainingload forecastCrowding and ridership$1.54
AnalyseSageMaker traininganomaly baselinesData health$1.03
AnalyseLambdaload forecastsCrowding and ridership$0.08
OperateCloudWatchmetrics, logs, alarmsShared$140
OperateStaging environmenta smaller copy of the always-on parts, for testingShared$29
OperateKMSthe region's keysShared$6.00
One full agency$42
OperateCloudWatchmetrics, logs, alarmsShared$13
LandGlue Data Qualitynightly rules, counters against fare tapsData health$6.60
LandS3raw vendor files kept three years, and TIDES tablesShared$1.52
TranslateGlue ETLnightly: TIDES tables, running times, daily totalsShared$13
TranslateKMSthe agency's keysShared$4.60
TranslateLambda15-minute loadsCrowding and ridership$0.12
AnswerSageMaker Processingtrip chaining, origin-destination, rider segmentsRider journeys$2.06
AnswerAthenafare questions answered at homeRider journeys$1.10
AnswerSageMaker trainingthe dwell model, trained at homeService$0.51
AnswerStep Functionsruns each allowed questionRider journeys$0.04
AnswerEventBridgethe agency's question busRider journeys$0.00
One thin agency$1.16
LandS3the totals filesShared$0.03
TranslateKMSthe agency's keyShared$1.00
TranslateGlue Python shellmonthly totals fileShared$0.13

Typical case, USD, list prices for Canada (Central). Free in this design: Lake Formation, Glue Schema Registry, Glue Data Catalog under a million objects, IAM Identity Center, S3 Object Lock, S3 transfers between accounts in the same region, Cognito user sign-ins under 10,000 a month. A mobility provider pays nothing: the region polls its open feed.

The cloud bill.

Cloud only, at list prices. No salaries, support plan or tax.

Who pays. The region pays for the exchange: about $939 a month, $11.3k a year, typical. A full agency pays about $42 a month for what the draft adds to its own account. A thin agency pays about a dollar a month; a mobility provider pays nothing.

What drives it. Serving: the CDN, the live state and monitoring. Training and reports are small, because the models are simple and run weekly or nightly. The group that sounds hardest, rider journeys, is the cheapest: a few questions a month on one agency's own data.

Caveats. A design estimate, not a quote. The workload is the drafts' sizing footer and our sample month; the bands run the whole model low and high together. Free tiers are ignored, which overstates the low case. Every number comes from explorations/draft4-cost/model.py.

Scenario
2 full agencies, 1 thin agency, 4 mobility providers; 2,500 vehicles
Whole region, per year
$4.9k low, $12.3k typical, $48.2k high
Backfill a year of history at both full agencies
$21
Train the first models
$10
Run the region before go-live
$1,878
Run the agencies' parts before go-live
$170
First year, typical
$14.4k with setup

What changed from the third draft.

Grey is the third draft. White is this one.

  1. 1

    One use case, the digital twin

    Fifteen use cases from the instructor, in four groups, on one system

  2. 2

    Candidate services named loosely

    Every AWS service named, in two kinds of account, with a role and a price

  3. 3

    A public mirror for live views only

    An archive of the public feeds, so arrival and bunching models train without asking agencies for anything. Deleted for an agency that leaves

  4. 4

    One model demo

    Each model placed where its data lives: the region trains on public feeds and totals; the dwell model and journey analysis run at home

  5. 5

    Quality left implicit

    Quality checked at home and on arrival, with a score per feed per day, built first

  6. 6

    A yearly bill with salaries

    A cloud-only bill per service, per group and per payer, plus the one-time setup

Where it stands.

Everything decided in the third draft still holds. What this draft adds is proposed.

Proposed

  • The four groups and where each runs
  • The feed archive, and deleting an agency's part when it leaves
  • Every service choice on this page
  • Hide fare counts under ten distinct cards
  • Two full sharers and one thin one, as the costing scenario

Open

  • Weather and event data for the arrival model: not yet sourced
  • Joining one card's taps across agencies, for regional origin-destination
  • Models trained on a party that has left
  • Who confirms the 15-minute load aggregate with the instructors

The use cases are the instructor's, from 2 November 2026. Nothing here is built, and no agency has agreed to any of it.

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