Sector · Rail and transportation
Physical AI for rail and transportation
These are the questions engineers ask first, answered from 3 published CodeNinja Atoms reference architectures.
- What does a physical AI system for rail and transportation look like?
- Which AI models can a rail and transportation operator run on its own hardware?
- How much compute and hardware does AI in rail and transportation need?
- Is it cheaper to own AI hardware or rent cloud GPUs in rail and transportation?
- What ontology or object model does a rail and transportation AI system need?
- Who approves the decisions an AI system makes in rail and transportation?
What does a physical AI system for rail and transportation look like?
A complete physical AI design for rail and transportation names what to sense, which existing systems to join, the object model that joins them, the models and hardware, the three-year cost and the person who approves every action. CodeNinja Atoms has published 3 such reference architectures for rail and transportation, each free to reuse under CC BY 4.0.
| Design | Country | What it does |
|---|---|---|
| Consist Watch | United States | An open reference architecture for system design in physical AI. A real time condition monitoring system for a 225-car commuter fleet in the United States: onboard modules read 64 named signals per car and execute the operator's own fault-logic table at the car, telemetry rides the car system's existing cellular routers to a contractor-hosted US cloud, and severity-ranked faults reach the mechanical desk and the yard through one fleet ontology. |
| Wayside Trend Watch | United States | An open reference architecture for system design in physical AI. A predictive maintenance system for a freight railroad in the United States: the 29 wayside detectors the railroad already runs are trended per axle, keyed to serialized bearings, wheelsets and traction motors, and joined to work orders, interchange records and digitized contractor track reports in one object model, so the mechanical and track teams act on one ranked queue days or weeks before a single-reading stop alarm. |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Saudi Arabia | An open reference architecture for system design in physical AI, built for a national passenger and freight railway in Saudi Arabia that runs long distance push pull trainsets over desert routes with depots at the ends of the line, where owning the inference node that runs it costs about 570,000 US dollars over three years. When a traction converter on one locomotive drifts over a week, the design joins the builder's diagnostic events, the depot's work orders, the maintenance system's confirmed causes, the timetable's diagrams and the spare parts stock into one argument, so the fleet engineer sees the condition case, the matching closed work orders and the recommended depot slot, and the fleet controller approves the swap out of the diagram before the desert decides. The model runs entirely on the operator's own hardware in the country under the Railway Law safety certificate articles, the regulator's change control, the national data protection law and export control on the GPU node. |
Which AI models can a rail and transportation operator run on its own hardware?
Each published rail and transportation design names its models and why, and every model is open-weight or no model is used at all, so the operator can run it on hardware it owns.
| Design | Models |
|---|---|
| Consist Watch | Mistral Large 3 675B (Apache-2.0, self-hosted with vLLM) for the agentic work surface over the fleet ontology; Chronos-2 (Apache-2.0) for analog anomaly detection and seasonal trending; no training run |
| Wayside Trend Watch | gpt-oss-120b (Apache-2.0, self-hosted with vLLM) for the ranked queue and the ontology-maintaining agents; Chronos-2 (Apache-2.0) for zero-shot per-axle trend forecasting; D-FINE and PP-OCRv6 (Apache-2.0) for defect detection and reporting-mark OCR at the portal; no training run |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | A frontier class of open weights, self hosted for sovereignty, for the command centre's conversational reasoning, judging agent drafts and drafting diagram swaps; GLM 5.3 at FP8 is the named candidate (about 756 GB of weights on one node with roughly 280 GB of KV cache ceiling) and no row is committed until a person verifies it live; nothing is trained, fine tuned or distilled; no third party model service |
| Design | Choice | What was picked | Why |
|---|---|---|---|
| Consist Watch | Model | Mistral Large 3 675B Instruct, Apache-2.0, served with vLLM | Reasons over the fleet ontology for the agentic work surface and ontology maintenance, self-hosted in the contractor's US cloud with no training run |
| Consist Watch | Model | Amazon Chronos-2, a universal time series forecasting model, Apache-2.0 | Analog channel anomaly detection and seasonal trending over 64 signals per car without a training run |
| Consist Watch | Hardware class | 141 GB HBM GPU class, one node | Holds the 675B model at eight bits with KV headroom |
| Consist Watch | Hardware class | Onboard monitoring module, EN 50155 and IEC 60571 railway electronics, IP62, 24 to 48 VDC, CFR 238 materials | Executes the operator's own fault-logic table at the car, so a fault is visible before it reaches the cloud |
| Consist Watch | Tool: event streaming and messaging | Apache Kafka 4.3 (KRaft mode, three dedicated controllers), Apache License 2.0 | 225 cars bursting over intermittent cellular links need a buffered backbone that decouples onboard store-and-forward from the fault engine and the dashboard, and Kafka 4.3 KRaft is the self-managed production pattern the customer owns outright. |
| Consist Watch | Tool: time series and telemetry storage | InfluxDB 3 Core, dual licensed MIT OR Apache 2.0 at the user's choosing | 64 channels on 225 cars for 13 months of tabular and graphical history (C8, intake A3) is a telemetry-store workload first, and InfluxDB 3 Core is the permissive, self-hosted default the customer owns; TimescaleDB was weighed and set aside because its compression and continuous-aggregate features sit behind the non-OSI Timescale License. |
| Consist Watch | Tool: on site language model serving | vLLM, Apache-2.0 | The agent work surface model is self-hosted on the contractor's US cloud so the operator owns the weights, and vLLM 0.29.0 serves the 675B FP8 checkpoint with paged attention and continuous batching behind an OpenAI-compatible API; the version is pinned and change-boarded because the release cadence moves memory behaviour between minor versions. |
| Consist Watch | Tool: time synchronisation across sensors and systems | chrony 4.9 with linuxptp 4.x where sub-second ordering is required, GPL-2.0 | Slippery-rail hotspot logic joins slip/slide events across all trains by location and time (§3.4), so unsynchronised module clocks would produce confident wrong orderings; GNSS time from the Digi router disciplines onboard clocks and NTP/PTP discipline the cloud tier. |
| Consist Watch | Tool: observability of the running system | Prometheus with Grafana and Loki, Prometheus Apache-2.0; Grafana and Loki AGPL-3.0 (run unmodified for internal use) | A monitoring system must itself be monitored: message delivery per car, queue depth behind cellular gaps, module heartbeats and alert delivery latency are the metrics whose silence is the first sign the fleet has gone blind. |
| Consist Watch | Tool: identity and access on site | Keycloak, Apache-2.0 | A4 commits standalone user accounts with role-based access and MFA over an internet-facing view with unlimited user-specific licences, and Keycloak provides exactly that — OIDC login for the desk, yard and agent surfaces with roles mapped to mechanical-desk, yard, engineer and administrator. |
| Wayside Trend Watch | Work surface model | gpt-oss-120b, 120B MoE, MXFP4, Apache-2.0, central tier | Largest permissive US-origin open weights; GLM 5.3 set aside on the Entity List; one 141 GB card in the railroad's own data center |
| Wayside Trend Watch | Portal detector | D-FINE, Apache-2.0, COCO checkpoints, wayside NPU box | No field-of-use restriction; Objects365 terms not cleared; runs at yard speed on the edge |
| Wayside Trend Watch | Portal OCR | PP-OCRv6 small, 7.7M parameters, CTC head pinned | Car number becomes a join key at the edge; runs on CPU well inside 1 GB of RAM |
| Wayside Trend Watch | Trend forecasting | Chronos-2, Apache-2.0, zero-shot, central tier | Multivariate forecasts with covariates; residual thresholding; nothing fine tuned under the system of context |
| Wayside Trend Watch | Central hardware class | 141 GB HBM GPU class, one card, one node | About 65.2 GB of MXFP4 and 16 bit weights plus a 13 GB planning reserve fits with about 63 GB spare |
| Wayside Trend Watch | Edge compute sizing | Octa-core NPU edge box sized from its streams | D-FINE and PP-OCRv6 occupy a fraction of the box; buffer and video pipeline take the rest |
| Wayside Trend Watch | Wayside sensing | 29 detectors: 22 hot box and hot wheel, 4 wheel impact load, 2 acoustic bearing, 1 wheel profile; pilot locomotive vibration and temperature sensing | The existing network is the trend corpus; new onboard sensing is pilot only, rolled out through scheduled shop visits |
| Wayside Trend Watch | Portal sensing | Four cameras at yard entry: left side, right side, wheel line, yard throat overview | Bought by class against pixel-density and blur-budget arithmetic; detections span car, door, wheel, brake shoe, journal box and dragging equipment |
| Wayside Trend Watch | Pattern: trend, do not build | Cross-detector trending over the existing 29 detectors, keyed to serialized bearings and axles | Shortens the observed gap without new detector sites, which are the railroad's capital decision |
| Wayside Trend Watch | Pattern: findings cross, pixels stay | Edge inference at the portal with store-and-forward buffers | A cellular link that drops for hours cannot carry video; detections, OCR strings and evidence frames cross |
| Wayside Trend Watch | Pattern: advise, never act | No train control, signal or PTC interface | The single-reading stop alarm to the dispatcher stays exactly as it is; people decide every set out |
| Wayside Trend Watch | Ground | The railroad's own data center and wayside boxes, Harbor air-gapped registry | Open weights let the operator hold its weights, its data and its decision record with no permission to renew |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Frontier work surface model | Frontier class open weights, self hosted for sovereignty (Kimi class); no model row committed on this run | The command centre converses and judges drafts on weights the operator holds outright; no catalogue entry survived this run's live checks, so the class is committed and the weights wait for a verified row (ch 8.1, Table 4) |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Reasoning model (named candidate) | GLM 5.3 at FP8, about 756 GB of weights, on one node of the 141 GB HBM class with roughly 280 GB of KV cache ceiling; licence terms not asserted | The house's named sovereign frontier candidate for conversational reasoning, judging agent drafts and drafting diagram swaps; the smallest of the three footprints considered (FP8 on one node over BF16 on two or a 256 to 288 GB class node); the row awaits live verification before any GPU count is derived (ch 7.1, 8.1, Table 2, Table 4) |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Depot vision detector (offered tier) | No detection model named; wired cameras with Frigate NVR on one depot's inspection road and siding overview, detecting locomotive, coach, trainset, converter bay, door and wheelset | Route based condition watching is what phase one commits; continuous sensing on the critical tier is offered, not committed, and the depot cameras are context for that offered tier (ch 1.3, Table 1, Table 4, Table 7) |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Frontier hardware | 141 GB HBM GPU class, eight GPUs per node, about 1,038 GB usable per node, one node in the operator's existing data centre | Holds the named candidate's FP8 weights with KV headroom; GPU capacity is procured and warranted against measured load, and the node is ordered at engagement start so delivery is confirmed before the quarter begins (ch 7.1, 7.3, 9.4, Table 4) |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Frontier footprint sizing rule | Frontier Model GPU Footprint Sizing Rule (vLLM, SGLang) | Weights against usable memory fix the KV cache ceiling before any serving decision (Table 4) |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Node count rule | GLM 5.3 Node Count By GPU Class | One node of eight 141 GB GPUs for the named candidate at FP8; no count is derived until a model row stands (ch 11.4) |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Sensing | Builder remote monitoring telemetry, wayside vibration monitoring service reports, on board diagnostic logs | The condition picture arrives as streams the ontology binds to serialized vehicles and components; no new field hardware in phase one (Table 3 |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Event backbone | Apache Kafka 4.4 in KRaft mode | Per source key ordering, at least once delivery with deduplication at ingest, buffering for moving assets whose links drop on desert routes, replication inside the country (ch 6.3) |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Ontology store | Hyper Ontology v0.9 (Semantics and Kinetics) | Holds the fourteen objects and their typed links as a projection over the systems of record (ch 4.2 |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Time series store | By class (InfluxDB 3 Core, TimescaleDB, QuestDB named as the class), unsized | Telemetry volume is unmeasured until events per day are counted in phase one (Table 7) |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Registry | Harbor, air gapped artifact and model registry | Updates arrive as artifacts pulled inside the boundary; a failed update leaves the platform serving the versions it holds (ch 6.3 |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Identity | Keycloak on site | Identities issued inside the boundary; no external links (ch 5.2) |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Observability | Prometheus 3.13 LTS with Grafana and Loki | Observability of the running system (Table 7) |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Time synchronisation | Software time class over existing GNSS disciplined sources, per source offsets kept | Every causal claim depends on the builders' and the depot's clocks agreeing; no sub microsecond requirement exists (ch 6.2 |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Depot enclosure class | Rugged enclosures on the 230/400 V supply with UPS clean shutdown (Rugged Enclosure Mounting Power UPS NUT SABER class) | Desert heat sets the enclosure thermal budget before any camera is chosen; a UPS backed clean shutdown protects recordings and indexes (ch 7.3 |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Pattern: memory | Memory of confirmed outcomes, nothing trained into weights | The requirement states memory without training a model on the fly; fault histories in a fleet of this size are small and precious (ch 3.3) |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Pattern: validation | The join proven on a week of real extracts from both builders before any agent is built | The riskiest assumption is that two builders' vocabularies join into one history a fleet engineer trusts (ch 9.1 |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Pattern: boundary | The operator's own hardware in its own in country data centre; read only adapters, no write path into any system of record, no third party model service | Fleet and passenger data never leave the operator's network; the platform stays advisory and non vital outside the CENELEC safety case (ch 3.1 |
How much compute and hardware does AI in rail and transportation need?
The compute follows from the models: the published rail and transportation designs size it as follows, from no new hardware to a full GPU node.
| Design | Part | The design |
|---|---|---|
| Consist Watch | Compute | At the car, an EN 50155 and IEC 60571 module (8 by 8 by 8 inches, IP62, 24 to 48 VDC, CFR 238 materials); centrally, one 141 GB HBM GPU class node in a contractor-hosted US cloud |
| Wayside Trend Watch | Compute | At the new four-camera yard-entry portal, an octa-core NPU edge box sized from its streams, so only detections, OCR strings and short evidence frames cross a cellular link that drops for hours; centrally, one 141 GB HBM GPU class card in one node in the railroad's own data center, holding the 65.2 GB checkpoint with a 1.2 planning factor and about 63 GB to spare |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Compute | One inference tier, the operator's existing in country data centre, on the 141 GB HBM class with eight GPUs per node (about 1,038 GB usable); one node holds the named candidate; no on vehicle compute and no edge tier in phase one; the node is ordered at engagement start because GPU lead time into the country is the one dependency that can idle every workstream, and Saudi Arabia is a D:3 and D:4 destination for which a 4A090 class node needs a US export licence (Appendix A) |
Is it cheaper to own AI hardware or rent cloud GPUs in rail and transportation?
Each rail and transportation design prices three years of ownership in its Appendix A, with every price cited, against renting the same capacity from a cloud region at its deepest three-year commitment where hardware is bought.
| Design | Line | Three years |
|---|---|---|
| Consist Watch | Three-year cost | About 625,000 US dollars to run the eight-card node for three years on the deepest AWS commitment in US East, about three eighths of the 1.66 million on demand; the 225 modules are priced by quotation (Appendix A) |
| Wayside Trend Watch | Three-year cost | About 54,000 US dollars to own the central card for three years (a range of 52,000 to 57,000, card, support and power, host server by quotation), against about 625,000 dollars to rent the smallest AWS instance that holds one such card on the deepest three-year commitment in US East and about 1.66 million on demand; the edge box, portal cameras and pilot locomotive sensing are priced by quotation (Appendix A) |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Three-year cost | About 570,000 US dollars to own the named node for three years (a range of 542,000 to 594,000: server, support and power at the national commercial electricity tariff), against about 751,000 to rent the same eight cards on the deepest three year commitment in AWS Middle East (UAE), so ownership costs about three quarters of it, and about 2.00 million on demand, against which ownership costs a little over a quarter. Renting is a price reference only, because AWS lists no Saudi region on the day read and every rented option would carry fleet data across the border (Appendix A) |
What ontology or object model does a rail and transportation AI system need?
The object model is the part that makes the system an ontology rather than a pipeline: typed objects for the things in the rail and transportation operation, with properties, status values and typed links. Every published design ships its object model as hyper-ontology/1 JSON that loads into Hyper Ontology.
| Design | Size | Objects | Download |
|---|---|---|---|
| Consist Watch | 14 objects, 13 links | Commuter car, Onboard monitoring module, Car system router, Digital input channel, Analog input channel, Active fault, Fault history record, Alert notification, Mechanical desk controller, Yard employee, Control center mechanical desk, Yard office, Slippery rail hotspot, Notification recipient group | objects.json |
| Wayside Trend Watch | 14 objects, 13 links | Freight Car, Locomotive, Axle Bearing (Roller Bearing), Wheelset, Traction Motor, Wayside Detector, Track Segment, Detector Reading, Trend Flag, Work Order, Track Geometry Exception, Rail Flaw Indication, AAR Interchange Record, Train | objects.json |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | 14 objects, 12 links | Trainset, Vehicle, Component, Diagnostic event, Fault, Work order, Part, Depot slot, Diagram, Journey, Delay, Incident, Condition case, Agent draft | objects.json |
Who approves the decisions an AI system makes in rail and transportation?
In every published rail and transportation design a named person makes the decision that changes the physical world; the system prepares it.
| Design | Human control |
|---|---|
| Consist Watch | The module executes the operator's own fault logic verbatim; a named mechanical desk controller owns every active fault in that car's territory, and alerts go by severity to named recipient groups |
| Wayside Trend Watch | The system advises and never acts: it touches no signal, train control or PTC system, the single-reading stop alarm to the dispatcher is unchanged, and a named person decides every set out and every slow order |
| Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia | Agents draft and people decide, by name: every condition case carries an approving fleet engineer and a recommended depot slot, every agent draft carries an approval state and a citation set, nothing reaches a depot slot or a diagram swap without a named person deciding, and the platform stays advisory and non vital, outside the safety case and inside the governance; every confirmed cause and accepted swap is kept as memory the next case reads |
Every answer on this page is drawn from the papers linked in it: each paper's At a glance table, model register and cost appendix. Full text for agents: llms-full.txt. Designed on Praxis; object models load into Hyper Ontology.
Want one of these designs for your own operation? Talk to us.