The question
The Dutch railway runs one of the densest timetables in Europe: on main lines an intercity and a local train every 10 to 15 minutes, sharing tracks, platforms, drivers and rolling stock. That density makes trouble contagious. A late train blocks a platform, a crew misses its next train, a cancelled service leaves the next one overcrowded and slow to board. Railway planners call this secondary, or reactionary, delay, and on busy networks it can cause as much lateness as the original faults.
So how far does it spread? If one broken-down train near Schiphol can slow trains in Groningen, the network is fragile; if the trouble stays local, it is resilient. I wanted to measure the spread with open data, compare every incident with normal weekdays at the same place and time, and show one evening as an animated map in which the ripple comes from the data, not from a drawing.
The data
| What | Source | Period |
|---|---|---|
| Every passenger train stop: planned times, arrival and departure delay, cancellations (5.6 million rows; 5.15 million train stops at Dutch stations after cleaning) | Rijden de Treinen, train archive | 1 Sep to 30 Nov 2025 |
| Disruptions: cause, start, end, lines and stations affected (1,699 in the period) | Rijden de Treinen, disruptions | 2025 |
| Stations: code, name, type, coordinates (397) | Rijden de Treinen, stations | 2023 version |
| Country outline for the map | Natural Earth | 1:10 million |
A stop counts as late at 5 minutes or more, or when it is cancelled. An incident is a weekday disruption starting between 06:00 and 20:00 and lasting at least 30 minutes; rows for the same event are merged (719 rows into 634 incidents). Normal means the same place and time of day on the other weekdays of the period, leaving out days when that place was itself disrupted (a median of 41 comparison days); 553 incidents have at least five. Travel time from an incident is the shortest scheduled running time along the network, built from the timetable itself. These are derived measures, defined in the notebooks, not figures published by the railway.
One evening, six notebooks
| Part | What it answers |
|---|---|
| Animated map | How one evening's trouble spread: stations and lines coloured by how much later or more cancelled their trains were than normal, the late trains moving, and pulses travelling along the lines at the measured speed. Opens on the Randstad and zooms out to the whole country. |
| Counters and chart | How many late trains ran on, how many were cancelled, how many stations were clearly above normal, and the average by travel-time band, minute by minute. |
| Normal Friday and stations | A real normal Friday (19 September 2025) measured the same way, and any station's evening against its normal share. |
| Notebooks (Python) | 00 loads and checks three months of stops; 01 tests one incident; 02 measures all 634; 03 builds the network and tests timing; 04 prepares the animation; 05 makes the charts below. |
What the data shows
The knock-on stays local
For each incident I counted the stations whose late share rose at least 25 points above normal within four hours, and compared that with the incident's own normal weekdays. Close to the incident, a fifth more stations than usual are hit (+19.6 points within 15 minutes of scheduled travel). The extra falls quickly with distance: +9.5 points at 15 to 30 minutes, +4.9 at 30 to 60, +2.0 at 60 to 90, and nothing beyond. Measured in a straight line the pattern is the same (+28 points within 10 km, about +1 beyond 75 km). A typical Dutch incident is a local shock, not a national one.
It spreads along the lines, at about the speed of the trains
On normal days, stations cross the threshold at random moments, so the median lands near the middle of the four-hour window, 50 minutes, at every distance. On incident days, near stations are hit after 20 minutes, those 15 to 30 minutes away after 30, those 30 to 60 minutes away after 40, and beyond that the timing cannot be told apart from normal. The trouble moves outward at roughly the speed of the trains that carry it. Distance along the network describes the timing better than straight-line distance in 70% of incidents, which is why the animation shows pulses along the lines rather than circles. The order is clear on average but weak for single incidents: stations at a single incident are hit in distance order more clearly than on any normal day in only 8% of incidents (3% expected by chance), because small stations are noisy.
Cancelling trains cuts the ripple short
During an incident, far more trains pass the incident area late or cancelled: a median of 36% in the first two hours, against 11% normally. I followed every late train to its later stops and measured how far its delay travelled (the travel time within which 90% of its still-late stops lie). Surprisingly, it travels less far than an ordinary late train at the same place on a normal day: 47 minutes of scheduled travel against 59 (67 against 81 km), shorter in six out of ten incidents and longer in three. The likely reason is visible on the map: during an incident, trains are cancelled or turned back instead of running on late. On the evening of 21 November, 57 of the 71 trains that were late or cancelled at the incident area in the first two hours were cancelled there, and only 14 ran on. Cancelling keeps the delay from riding outward, at the cost of the passengers on those trains.
Where it happens matters more than why
The size of the first shock depends most on place. Incidents involving one of the six largest stations (Amsterdam, Utrecht, Rotterdam, Den Haag, Eindhoven and Schiphol) put a median of 27 extra trains late or cancelled in two hours; incidents at intercity junctions and at smaller stations, 14 to 15. By cause, weather (38, 14 incidents) and engineering work that over-runs (37, 16 incidents) are the largest, then accidents such as collisions and people on the track (28). Broken-down trains are by far the most common cause (225 incidents) but among the smallest shocks (12). Weather, engineering work and staff each have fewer than 20 incidents, so those three medians are uncertain.
Problems in the data, and how they were handled
- A station code read as "missing". Nieuw Amsterdam's code is "NA", which pandas turns into a missing value by default; 2,295 stops lost their station before this was caught. Every file is now read with that rule switched off.
- Planned works look like disruptions. On some days most trains at a place are cancelled with no disruption listed: the archive keeps the cancelled regular trains next to the adjusted timetable. Such days (50% or more cancelled at the incident area) are left out of the normal comparison.
- One event, several rows. The disruptions file adds a row per line, or when the expected end changes. Rows with the same cause starting within 30 minutes and sharing a station are merged.
- Diverted trains in the network. Partly cancelled or diverted trains join stations that are not neighbours; the first network had Utrecht to Rotterdam in 5 minutes. The network now uses only trains that ran in full and links run by at least 60 trains, and it matches the timetable (Utrecht to Amsterdam 26 minutes, to Rotterdam 35).
- A biased baseline. A median of many small shares sits below their average, so measuring "above normal" against a median made normal days look about 8 points above normal. The comparisons of incidents with normal days are unaffected, because both were measured the same way; the animation uses the mean, against which normal days average zero.
- An evening that was not normal anywhere. The first example chosen for the map, 29 October 2025, turned out to sit on top of a nationwide disturbance (late shares of 21% to 29% across the country, with a Microsoft Azure outage hitting NS's systems). Candidates are now checked against the national background, and 21 November was chosen, when the rest of the country was within a few points of normal.
- Trouble before the report. On 21 November, stations between Leiden and Hoofddorp were already well above normal 30 to 60 minutes before the disruption was registered at 19:34. The map starts at 18:30 so this is visible, and the page says so.
- Small stations are noisy. With two trains in 10 minutes, one late train makes a station look 50 points above normal. Findings average over many stations and incidents, and the map smooths over 20 minutes and colours only clear excess.
Limits
The data shows where and when trains were late, not why: which incident caused which train's delay is inferred from time and place, and some lateness near an incident has other causes. A railway's own delay attribution records that link (the UK publishes it); the Dutch open data does not. Delays are recorded only from 0 minutes upward, so early running is invisible, and passengers are not counted, so a cancelled train full of people weighs the same as an empty one. Three autumn months are a short period: weather, engineering work and staff each have fewer than 20 incidents. The single evening on the map illustrates the averages; it does not prove them. Nothing here has been through peer review.
Where this could be useful
- Infrastructure managers and operators: evidence on where delay spreads and how far, to target recovery time in the timetable, spare crews and rolling stock at the places that send out the largest shocks.
- Transport planners and regulators: a simple, repeatable measure of network resilience from public data, which can be tracked over time or compared between networks.
- Analytics and consulting teams: a worked example of turning millions of event records into checked comparisons with control days, honest about noise and chance, and of an animation whose every effect comes from the data.
The approach transfers to any network that publishes stop-level times and disruptions, such as Switzerland's actual-time data or, if it becomes available, train running data for the Klang Valley.
About
Lik Ren Tai applies data science in two fields: environmental science and railway systems. This project was built with Python (pandas, matplotlib, fontTools) and deck.gl.
Data: Rijden de Treinen (rijdendetreinen.nl/en/open-data): train archive and disruptions, CC BY 4.0; stations, CC0 1.0. Country outline: Natural Earth, public domain. News on 29 October 2025: Hart van Nederland. Fonts: Bricolage Grotesque and Newsreader, SIL Open Font License. This is an independent project, not affiliated with or endorsed by NS, ProRail, Rijden de Treinen or any of the sources.