Deutsche Bahn's AI helps S-Bahn dispatchers avoid delays
Deutsche Bahn built KI-Dispo, an in-house AI tool that simulates live S-Bahn traffic and recommends dispatching actions, so that control-center dispatchers can head off delays during disruptions.
Deutsche BahnGermanyRailPilot since 2021
- Scale
- Pilot operation on the Stuttgart, Rhine-Main, Munich and Berlin S-Bahn systems
- Scenario
- Real-time train dispatching recommendations
- Business function
- Supply chain and logistics
- Kind of solution
- Scheduling and routing optimization
- Who built it
- Built in-house (German Aerospace Center (DLR))
- Human oversight
- Assists people
- Organization
- Enterprise
- AI types
- Optimization
- People served
- 435,000
tl;drKI-Dispo helped Deutsche Bahn avoid about 95,000 minutes of S-Bahn delays in 2025.See the results
Deutsche Bahn (DB) uses KI-Dispo, an AI dispatching tool that it developed in-house, to give S-Bahn dispatchers recommendations in their day-to-day work1, 4. The tool simulates live traffic, flags conflicts early and proposes actions that keep delays down1.
KI-Dispo is in pilot operation on the Stuttgart, Rhine-Main and Munich S-Bahn systems, and on the Berlin S-Bahn since 20251. In the first half of 2026, DB added two interfaces that pass the proposed measures straight to passenger information2.
In 2025, the tool helped DB avoid about 95,000 minutes of delays1.
Before the deployment
S-Bahn dispatchers monitor the operational situation to keep passengers’ connections intact, and they change trains and schedules to restore punctuality3. Before KI-Dispo, each dispatcher built a picture of the situation by hand from several digital systems8.
- Growing load: Traffic volume and the network kept growing, while resources stayed limited3.
- Effects that are hard to judge: The knock-on effects of each possible decision were hard to assess. The constant flow of events left no time to review past decisions8.
- Rules of thumb: Dispatchers mostly relied on heuristics, such as a fast ICE almost always getting priority over an S-Bahn train8.
- Dense traffic: The Stuttgart S-Bahn, where the work started, carries 435,000 passengers each weekday on a 215 km network with 83 stations. It runs 838 trains each weekday8.
In a 2024 presentation, DB wrote that at some point the human eye can no longer keep track of everything and calculate the impact of every decision3.
What was built
KI-Dispo processes the current operational situation in seconds and generates targeted recommendations for dispatchers at control centers2. It simulates traffic on real-time data and alerts dispatchers to conflicts early, so that they can respond to delays as they emerge1.
- Digital twin: Models the railway network, analyzes the best traffic flow and identifies conflicts3.
- Reinforcement learning agent: Learns in the simulation and proposes preventive actions that solve conflicts before they happen3.
- User interface: Shows each recommendation with a data-based, quantitative evaluation, and shows its impact up to one hour ahead3.
- Dispatchers: Keep full authority to act on every recommendation3.
- DB AI Factory: Its rail operations team is responsible for expanding the AI approaches in dispatching3.
KI-Dispo serves the dispatchers of the railway company that runs the trains, and it aims at passenger punctuality. DB InfraGO, the infrastructure manager, runs a separate assistant called ADA-PMB for its own dispatchers3.
Rollout
The Elmshorn to Sylt test was the first use outside a closed S-Bahn system, with freight, regional and long-distance trains on the same line4. During the pilot, DB keeps refining the system to include more factors that influence dispatching1.
Technology and architecture
| Layer | What they used | Role | Source |
|---|---|---|---|
| Solution platform | KI-Dispo | In-house tool that recommends dispatching actions to S-Bahn dispatchers | 1, 4 |
| Control and autonomy model | Reinforcement learning agent | Proposes preventive actions that solve conflicts in advance | 3 |
| Simulation or surrogate model | Digital twin of the railway network | Analyzes traffic flow, identifies conflicts and projects an action’s impact | 3 |
| Framework or library | SUMO | Open-source traffic simulation from DLR that trains the AI and evaluates interventions | 7 |
| Operations console | Dispatcher user interface | Fits the tool into the dispatcher’s daily routine and collects feedback | 3 |
| APIs and connectors | Passenger information interfaces | Pass proposed measures straight to passenger information | 2 |
The agent learns by acting in the simulation. A training and evaluation workflow runs it against the digital twin, which holds the infrastructure, the routes and auxiliary data3. SUMO compares the punctuality of all trains under each intervention with operation without one, which is how the best intervention is found7. The simulation is designed to run at about 100 times real time and play through variants of the traffic situation5.
DB has used SUMO since 2018 to train the AI and to evaluate dispatching interventions7. The German Aerospace Center (DLR) develops SUMO as open-source software and works with DB to make the simulation and the infrastructure model more realistic7.
Data inputs
- Live operational situation: The current traffic situation of the S-Bahn network, which KI-Dispo processes in seconds and simulates forward on real-time data1.
- Infrastructure and routes: The network data that make up the environment in which the agent acts3.
- Historical train runs: For the Stuttgart prototype, DB explored 8 million train position reports from two years8.
- Real train trajectories: DLR uses geo-trajectories of real train journeys to validate the simulation and raise its accuracy7.
How one conflict flows through the system
This example is the one DB gave when it announced the Berlin and Hamburg plans in June 20234.
- KI-Dispo reads the live situation and simulates how traffic will develop. It reports conflicts early1.
- The simulation shows two delayed trains that will reach a single-track section at almost the same time4.
- The AI considers the near future and all trains in the network. In fractions of a second, it calculates which train should enter the section first, with the least impact on punctuality4.
- The user interface shows the recommendation and its projected impact up to one hour ahead3.
- The dispatcher decides. With the recommendation, dispatchers can decide faster which trains enter a station first4.
- Since 2026, a proposed measure can go straight to passenger information through the new interfaces2.
Results
| Metric | Before | After | Scope and timeframe | Reported by |
|---|---|---|---|---|
| Delay minutes avoided | Not disclosed | About 95,000 minutes | Stuttgart, Rhine-Main, Munich and Berlin S-Bahn pilots, 2025 | Deutsche Bahn, pilot1 |
| Delay minutes avoided | Not disclosed | 58,000 | Stuttgart, Rhine-Main and Munich S-Bahn, year before June 2023 | Deutsche Bahn, pilot4 |
- Delay minutes avoided: DB counts the minutes of delay that the tool helped avoid in a year across its pilot systems1, 4. The 2025 figure includes Berlin, where the pilot started that year1.
- Delay made up in Stuttgart: In February 2022, DB said the tool could make up delays of up to eight minutes on the Stuttgart S-Bahn6.
- Projections: DB calculated that the approach would allow 17 more trains per day in each direction on the Stuttgart trunk line6. In June 2023, it expected about 90,000 avoided delay minutes nationwide for 20235.
Lessons learned
The figures are Deutsche Bahn’s own. They come from its 2025 annual report and from earlier statements that dpa and t3n relayed1, 4, 5.
The avoided delay minutes rose from the figure DB gave in June 2023 to the 2025 figure, as the pilot grew from three S-Bahn systems to four1, 4. DB still calls KI-Dispo a pilot in its 2026 interim report, five years after the Stuttgart start2. DLR, which works on the simulation, describes the assistance system as already in productive operation7.
The rollout took longer than planned. In June 2023, DB planned Berlin for the second half of 2023 and Hamburg for the year after. The Berlin pilot started in 20254, 1. The Süddeutsche Zeitung pointed out at the time that DB’s plans for far-reaching digitalization of rail traffic had been carried out only slowly in past years5.
The simulation has documented limits, and they matter because the agent learns and is tested in it. A dispatcher’s intervention can break the planned train sequence, which makes operations hard to predict and sometimes leads to incorrect simulation states7. Deadlocks can occur in disrupted operations and after AI-controlled interventions, and DLR’s Spurplan-4 project worked to prevent them7.
DB’s team put dispatchers at the center from the first day. Test phases, monthly control-center visits and feedback in the interface aimed at a product that is effective and accepted3. DB’s authors had concluded early on that moving reinforcement learning from games to dispatching depends less on the algorithm than on how the problem is modeled8.
Case study scorecard
Sources by publication date
- Organization 5
- Vendors and partners 1
- Press, academic, and regulators 4
- 1 undated
Build this solution yourself
Analysis
What you need
- A simulation of your network that matches real train runs: KI-Dispo learns and tests its actions in a SUMO digital twin that DLR validates against real trajectories7. A simulation that deadlocks after interventions gives you recommendations you can’t trust7.
- A live feed of the operational situation: The tool processes the current situation in seconds and simulates it forward, so you need real-time train data1.
- Dispatchers who take part in development: DB’s dispatchers keep full authority and shape the tool through test phases and feedback3. Check that your control center has time for that work.
- Links to the systems that carry out a decision: DB added interfaces in 2026 so that a proposed measure reaches passenger information at once2.
Reference architecture
Scheduling and routing optimization
A scheduling and routing optimization solution computes who or what goes where, in what order, and when, within the constraints that apply. An optimizer builds a plan from the work, live positions and conditions, and the organization's rules, and rebuilds it as conditions change. Planners approve or finish the plan or steer it through limits, and the people who carry it out can depart from it.
- Operational system
- Live positions and conditions
- Network and reference data
- Rules and priorities
- Forecasting model
- Optimizer
- Planner console (documented in this case study)
- Field app
- Customer app or website
- Planning platform (documented in this case study)
- Machine learning platform
- Offline evaluation
A check mark shows a building block that this case study's sources document.
Open the reference architectureOthers who built it
- DB InfraGO: Its ADA-PMB assistant combines mathematical optimization, heuristics and machine learning to give infrastructure dispatchers real-time recommendations in four regions9.
- Network Rail: Its Western route has used the Luminate traffic management system since 2018, which supports control and signaller teams in their decisions10.
In the library
- Alaska Airlines cuts fuel burn with AI route optimization Alaska Airlines
- How American Airlines uses AI to save tight connections American Airlines
- AI production planning takes 91.6% less time at Atlas Copco Atlas Copco
- UPS's ORION cuts 6 to 8 miles from each delivery route UPS
- GlobalFoundries fills idle fab tool time with AI dispatching GlobalFoundries
- AI disruption tools cut Heathrow delays at British Airways British Airways
Cite this case study
Enterprise AI Case Studies. "Deutsche Bahn's AI helps S-Bahn dispatchers avoid delays." Updated Nov 24, 2026. https://case-studies.ai/case-studies/operational-technology/OT-040-ai-train-dispatching-deutsche-bahn/
@misc{csai-ot-040,
author = {{Enterprise AI Case Studies}},
title = {{Deutsche Bahn's AI helps S-Bahn dispatchers avoid delays}},
year = {2026},
note = {Updated 2026-11-24},
url = {https://case-studies.ai/case-studies/operational-technology/OT-040-ai-train-dispatching-deutsche-bahn/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
Supporting excerpts (6)
the AI dispatch tool supports dispatchers with intelligent recommendations in their day-to-day work
processes the current operational situation in a matter of seconds and uses this information to generate targeted
simulates traffic conditions based on real-time data and alerts users to potential conflicts early on
The AI dispatch tool is already in pilot operation on the Stuttgart, Rhine-Main and Munich S-Bahn (metro) systems, and the pilot program has been underway on the Berlin S-Bahn (metro) system since 2025.
As part of the pilot program, the system is being continuously refined to incorporate additional factors that influence scheduling.
As a result, the AI dispatch tool helped to avoid about 95,000 minutes of delays in 2025.
- Source 2:
Supporting excerpts (3)
KI-Dispo processes the current operational situation in a matter of seconds and uses this information to generate targeted recommendations for dispatchers at control centers.
KI-Dispo is already in pilot operation on the Stuttgart, Rhine-Main and Munich S-Bahn (metro) systems, and the pilot program has been underway on the Berlin S-Bahn (metro) system since 2025.
In the first half of 2026, for example, two new interfaces were created in close cooperation with DB InfraGO and DB Regional that make it possible to immediately implement the proposed measures for passenger information.
- Source 3:
KI in der Disposition für eine modernere Bahn
Supporting excerpts (26)
Improving of passenger/customer punctuality by dispatching suggestions for railway company dispatchers with a focus on traffic and resource dispatchment
Artificial intelligence/ reinforcement learning in combination with simulation
Head of Lane Rail Operations, AI Factory
Responsible for expansion of existing AI approaches in dispatching
Monitoring of the current operational situation to secure the traveller chain
Responsible for train changes & schedule to increase the punctuality
Increasing traffic volume
Network extensions ▪ Limited ressources
The traffic dispatcher is under high pressure. At some point, the human eye is no longer able to keep track of everything and calculate the impact of every decision.
THE DISPATCHER RETAINS FULL AUTHORITY TO ACT
Data-based and quantitative evaluation of recommendation
Digital twin of the railway network
Analysing optimal traffic flow
Identification of conflicts
Training and evaluation workflow that interacts with the Simulation
Generation of proposals to solve possible conflicts in advance through preventive actions
Integrate the tool into the daily routine of the dispatcher
Combination of simulation and AI enables to visualize the impact of an action up to one hour in the future
ENVIRONMENT Infrastructure Routes Auxiliary
Intensive test phases
Visit control centres on a monthly basis
Integration of feedback opportunities in UI
Sharing information via different channels to ensure knowledge exchange
E-learning videosUser involvement from day one!
Product is effective and accepted
While ADA-PMB aims to improve overall punctuality within the railway network, KI Dispo improves passenger/customer punctuality
- Source 4:
Weniger Verspätungen: Bahn weitet KI-Projekt auf S-Bahnbetrieb in Hamburg und Berlin aus
Supporting excerpts (10)
Die Bahn setzt dafür seit 2021 ein selbst entwickeltes Tool ein.
Bereits jetzt wird in Stuttgart, im Rhein-Main-Gebiet und in München ein von der Bahn entwickeltes Tool genutzt.
Im letzten Jahr konnten dort insgesamt 58 000 Verspätungsminuten vermieden werden
In der zweiten Jahreshälfte 2023 soll die Anwendung nun auch in Berlin eingesetzt werden, im kommenden Jahr dann in Hamburg.
Die Disponenten in den Leitstellen können mit Hilfe der Algorithmen schneller entscheiden, welche Züge wann zuerst in den Bahnhof einfahren sollen.
wenn zwei Züge durch Verspätungen fast zeitgleich an einen eingleisigen Streckenabschnitt kommen
Die KI berechnet dann unter Einbeziehung der näheren Zukunft und aller Züge im Netz in Sekundenbruchteilen, welcher Zug den Abschnitt zuerst befahren sollte
immer unter der Maßgabe der geringsten Auswirkungen auf die Pünktlichkeit
Getestet wird die Anwendung derzeit auf der Strecke zwischen Elmshorn und Sylt.
In diesem Abschnitt operiert die KI erstmals außerhalb eines geschlossenen S-Bahn-Systems und muss mit Mischverkehr, also Güter-, Nah- und Fernverkehrszügen umgehen
- Source 5:
Wie KI die Bahn pünktlicher machen könnte
Supporting excerpts (4)
Zum Einsatz kommt dabei eine selbst entwickelte KI-Software.
Die KI soll den Bahnbetrieb in circa 100-facher Echtzeit simulieren und verschiedene Varianten der Verkehrslage durchspielen können.
Die DB erwartet dadurch für das Jahr 2023 deutschlandweit etwa 90.000 vermiedene Verspätungsminuten
Die Süddeutsche Zeitung verwies aber auch darauf, dass Pläne für eine weit reichende Digitalisierung des Bahnverkehrs in den vergangenen Jahren nur langsam umgesetzt worden seien.
- Source 6:
KI soll in Deutschland für effizienteren S-Bahn-Verkehr sorgen
Supporting excerpts (4)
Ein Pilotprojekt bei der S-Bahn Stuttgart will der Konzern nun auf die S-Bahnen Rhein-Main und München ausweiten.
In Stuttgart etwa könnten auf diese Weise Verspätungen von bis zu acht Minuten ausgeglichen werden
Die KI simuliere zudem auf Basis des Live-Betriebs laufend die Entwicklung der Verkehrslage und melde Konflikte frühzeitig.
Umgerechnet auf das Beispiel der S-Bahn Stuttgart wären 17 Züge pro Tag und Richtung mehr auf der Stammstrecke möglich.
- Source 7:
Supporting excerpts (10)
further development of the SUMO railway simulation in the context of the DB project
geo-trajectories of real train journeys are used to validate and, if necessary, increase the accuracy of the simulation
The investigation also focuses on deadlocks that can occur in the simulation of disrupted operations and after AI-controlled dispatching interventions.
The SUMO traffic simulation has been developed at DLR as open source software since 2002
The latter has been used by DB since 2018 to train AI assistance for rail transport scheduling and to evaluate scheduling interventions.
The assistance system developed here is already in productive operation
This makes it possible to compare the punctuality of all trains by comparing different interventions with intervention-free operation.
However, as soon as a dispatcher has carried out an intervention, it may no longer be possible to adhere to planned train sequences
This makes it difficult to predict the operational sequence and occasionally leads to incorrect simulation states.
The Spurplan-4 project contributes or contributed to preventing the occurrence of these erroneous states.
- Source 8:
Wie kann die KI helfen, bessere Dispositionsentscheidungen zu treffen?
Supporting excerpts (12)
Die Integration dieser Informationen zu einem Lagebild ist jedoch ein manueller Prozess, den jeder Disponent selbst übernehmen muss.
Jedoch verhindert die permanente Folge von Ereignissen im Verkehr eine regelmäßige Rekapitulation und Auswertung der getroffenen Entscheidungen.
Insbesondere die komplexen Folgeeffekte der möglichen Entscheidungen sind schwer einschätzen
In der Disposition wird diesen Anforderungen meist durch Heuristiken Rechnung getragen.
So wird ein schnell fahrender ICE fast immer Vorrang vor einer S-Bahn haben.
435.000 Fahrgäste auf einem Streckennetz von 215 km mit 83 Haltestellen
Die 838 Züge pro Werktag fahren nach Fahrplan
Der Einsatz von Verfahren des überwachten Lernens würde an der nicht ausreichenden Verfügbarkeit von Daten über Entscheidungen der Vergangenheit scheitern.
doch ihnen würde jedes Jahr ein neuer Fahrplan bzw. geänderte Infrastruktur zu Grunde liegen, die nicht in den Daten repräsentiert sind
Denn allein die Berechnungszeiten würden die notwendigen Antwortzeiten von wenigen Minuten überschreiten.
Für die Analyse standen 8 Millionen dieser Meldungen aus zwei Jahren zur Verfügung.
Vielmehr stellt sich die Frage nach der Modellierung, sodass ein Mehrwert in der realen Welt erzielt werden kann.
- Source 9:
DB InfraGO embraces artificial intelligence to support train dispatchers
Supporting excerpts (2)
ADA-PMB combines mathematical optimisation, heuristics and machine learning to provide real-time recommendations for train dispatchers
ADA-PMB is now active in four regions
- Source 10:
Fewer delays and cancellations for passengers following launch of innovative pilot scheme
Supporting excerpts (3)
The Luminate traffic management system was first deployed on Network Rail
Western route in 2018
as we support control and signaller teams in their decision-making
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.