Read cofounder Muhammad Umar's memo, Compression and Reinflation
CodeNinja AtomsUnited StatesSaudi ArabiaPakistan

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.

  1. What does a physical AI system for rail and transportation look like?
  2. Which AI models can a rail and transportation operator run on its own hardware?
  3. How much compute and hardware does AI in rail and transportation need?
  4. Is it cheaper to own AI hardware or rent cloud GPUs in rail and transportation?
  5. What ontology or object model does a rail and transportation AI system need?
  6. 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.

DesignCountryWhat it does
Consist WatchUnited StatesAn 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 WatchUnited StatesAn 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 ArabiaSaudi ArabiaAn 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.

DesignModels
Consist WatchMistral 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 Watchgpt-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 ArabiaA 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
DesignChoiceWhat was pickedWhy
Consist WatchModelMistral Large 3 675B Instruct, Apache-2.0, served with vLLMReasons 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 WatchModelAmazon Chronos-2, a universal time series forecasting model, Apache-2.0Analog channel anomaly detection and seasonal trending over 64 signals per car without a training run
Consist WatchHardware class141 GB HBM GPU class, one nodeHolds the 675B model at eight bits with KV headroom
Consist WatchHardware classOnboard monitoring module, EN 50155 and IEC 60571 railway electronics, IP62, 24 to 48 VDC, CFR 238 materialsExecutes the operator's own fault-logic table at the car, so a fault is visible before it reaches the cloud
Consist WatchTool: event streaming and messagingApache Kafka 4.3 (KRaft mode, three dedicated controllers), Apache License 2.0225 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 WatchTool: time series and telemetry storageInfluxDB 3 Core, dual licensed MIT OR Apache 2.0 at the user's choosing64 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 WatchTool: on site language model servingvLLM, Apache-2.0The 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 WatchTool: time synchronisation across sensors and systemschrony 4.9 with linuxptp 4.x where sub-second ordering is required, GPL-2.0Slippery-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 WatchTool: observability of the running systemPrometheus 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 WatchTool: identity and access on siteKeycloak, Apache-2.0A4 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 WatchWork surface modelgpt-oss-120b, 120B MoE, MXFP4, Apache-2.0, central tierLargest 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 WatchPortal detectorD-FINE, Apache-2.0, COCO checkpoints, wayside NPU boxNo field-of-use restriction; Objects365 terms not cleared; runs at yard speed on the edge
Wayside Trend WatchPortal OCRPP-OCRv6 small, 7.7M parameters, CTC head pinnedCar number becomes a join key at the edge; runs on CPU well inside 1 GB of RAM
Wayside Trend WatchTrend forecastingChronos-2, Apache-2.0, zero-shot, central tierMultivariate forecasts with covariates; residual thresholding; nothing fine tuned under the system of context
Wayside Trend WatchCentral hardware class141 GB HBM GPU class, one card, one nodeAbout 65.2 GB of MXFP4 and 16 bit weights plus a 13 GB planning reserve fits with about 63 GB spare
Wayside Trend WatchEdge compute sizingOcta-core NPU edge box sized from its streamsD-FINE and PP-OCRv6 occupy a fraction of the box; buffer and video pipeline take the rest
Wayside Trend WatchWayside sensing29 detectors: 22 hot box and hot wheel, 4 wheel impact load, 2 acoustic bearing, 1 wheel profile; pilot locomotive vibration and temperature sensingThe existing network is the trend corpus; new onboard sensing is pilot only, rolled out through scheduled shop visits
Wayside Trend WatchPortal sensingFour cameras at yard entry: left side, right side, wheel line, yard throat overviewBought by class against pixel-density and blur-budget arithmetic; detections span car, door, wheel, brake shoe, journal box and dragging equipment
Wayside Trend WatchPattern: trend, do not buildCross-detector trending over the existing 29 detectors, keyed to serialized bearings and axlesShortens the observed gap without new detector sites, which are the railroad's capital decision
Wayside Trend WatchPattern: findings cross, pixels stayEdge inference at the portal with store-and-forward buffersA cellular link that drops for hours cannot carry video; detections, OCR strings and evidence frames cross
Wayside Trend WatchPattern: advise, never actNo train control, signal or PTC interfaceThe single-reading stop alarm to the dispatcher stays exactly as it is; people decide every set out
Wayside Trend WatchGroundThe railroad's own data center and wayside boxes, Harbor air-gapped registryOpen 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 ArabiaFrontier work surface modelFrontier class open weights, self hosted for sovereignty (Kimi class); no model row committed on this runThe 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 ArabiaReasoning 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 assertedThe 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 ArabiaDepot 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 wheelsetRoute 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 ArabiaFrontier hardware141 GB HBM GPU class, eight GPUs per node, about 1,038 GB usable per node, one node in the operator's existing data centreHolds 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 ArabiaFrontier footprint sizing ruleFrontier 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 ArabiaNode count ruleGLM 5.3 Node Count By GPU ClassOne 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 ArabiaSensingBuilder remote monitoring telemetry, wayside vibration monitoring service reports, on board diagnostic logsThe 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 ArabiaEvent backboneApache Kafka 4.4 in KRaft modePer 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 ArabiaOntology storeHyper 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 ArabiaTime series storeBy class (InfluxDB 3 Core, TimescaleDB, QuestDB named as the class), unsizedTelemetry 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 ArabiaRegistryHarbor, air gapped artifact and model registryUpdates 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 ArabiaIdentityKeycloak on siteIdentities issued inside the boundary; no external links (ch 5.2)
Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi ArabiaObservabilityPrometheus 3.13 LTS with Grafana and LokiObservability of the running system (Table 7)
Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi ArabiaTime synchronisationSoftware time class over existing GNSS disciplined sources, per source offsets keptEvery 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 ArabiaDepot enclosure classRugged 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 ArabiaPattern: memoryMemory of confirmed outcomes, nothing trained into weightsThe 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 ArabiaPattern: validationThe join proven on a week of real extracts from both builders before any agent is builtThe 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 ArabiaPattern: boundaryThe 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 serviceFleet 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.

DesignPartThe design
Consist WatchComputeAt 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 WatchComputeAt 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 ArabiaComputeOne 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.

DesignLineThree years
Consist WatchThree-year costAbout 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 WatchThree-year costAbout 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 ArabiaThree-year costAbout 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.

DesignSizeObjectsDownload
Consist Watch14 objects, 13 linksCommuter 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 groupobjects.json
Wayside Trend Watch14 objects, 13 linksFreight 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, Trainobjects.json
Sovereign AI Reference Architectures for Passenger Rail Fleet Maintenance in Saudi Arabia14 objects, 12 linksTrainset, Vehicle, Component, Diagnostic event, Fault, Work order, Part, Depot slot, Diagram, Journey, Delay, Incident, Condition case, Agent draftobjects.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.

DesignHuman control
Consist WatchThe 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 WatchThe 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 ArabiaAgents 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.