AI in public transport
We build models using your check-in and check-out data, journey data and passenger counts, and keep them up to date in production, as with GVB’s passenger travel behaviour model.
Insights into travel behaviour: we set up a consistent, robust MLOps lifecycle for GVB
A segmentation model based on travel behaviour gives GVB more insight into how passengers travel, for example so it can offer suitable travel products. To keep the model up to date over the years, we set up an MLOps workflow in Databricks using reusable templates.
What do our check-ins and check-outs tell us about where the timetable falls short?
Each month, the transport planner receives figures on passengers boarding and alighting and reads complaints about crowded services. But they still adjust service frequencies based on experience and isolated counts. A model that combines these sources shows where and when demand exceeds capacity. The planner makes the decision.
Travel behaviour, occupancy and maintenance: models that stay accurate as the network changes
Segmenting travel behaviour
For GVB, we keep a travel behaviour segmentation model up to date with an MLOps workflow in Databricks, so it reflects how passengers move.
Counting passengers with video
For GVB, we built software that uses computer vision to count passengers in existing camera footage from vehicles. Only the model analyses the footage.
Anomalies in maintenance hours
For GVB’s Rail Materiaal department, we developed anomaly detection for logged hours to improve the planning of tram and metro maintenance.
Sensor data along the railway
With ProRail’s data lab, we investigated how machine learning can detect trains, railway components and wheel defects using fibre-optic cables.
A forecast for one line or hub first, then the entire network
-
Planning decisions and data sources
Which decision about frequency, vehicles or ticket products needs to improve, and which checks, KV6 trip data and passenger counts are needed?
-
Pilot model using previous years’ data
We train on earlier timetable years and test against a later period, accounting for works, diversions and holidays.
-
Forecasts in the planning process
The forecast becomes part of the planning process, with drift monitoring. The transport planner still makes the decisions.
How good does our passenger data need to be for a forecast by route or stop?
A good fit if
You have check-in and check-out records, journey data or counts spanning several timetable years, and a recurring decision to make, such as how frequently to run a busy route or whether to add more vehicles.
Not a good fit if
Routes and stops have been renumbered without a mapping table, counts were collected only once, or you mainly need insight into the figures. In that case, you start with the data or a dashboard, and we'll tell you so.
What determines the scope
The number of routes and sources, such as check-in and check-out records, KV6, NeTEx and camera footage; whether you forecast by hour or by timetable; whether it remains a pilot model; and who will manage the model afterwards.
Can we use travel data?
Check-in and check-out records remain personal data as long as they can be traced back to individuals, even when pseudonymised. We work with aggregated or pseudonymised data; your privacy officer or legal adviser assesses the legal basis.
Passenger demand forecasts, crowding or the timetable itself: where will a model deliver value first?
Passenger demand forecasts
Choose this if you want to predict demand by route and hour. We recommend starting here: this is where the richest historical data lies, and the forecast can then inform crowding predictions and timetables; see forecasting.
Crowding by service
Choose this if passengers need to see in advance how busy a service will be. DOVA’s concession annex specifies an interface for expected occupancy, with forecasts supplied daily.
Timetables and vehicle deployment
Choose this if you want to optimise frequencies, vehicle rotations or fleet deployment. This requires a forecast as input and an optimisation model; read more about optimising planning.
We worked with GVB from data strategy through to models in production
Data Science Lab has worked with data and AI from Amsterdam since 2016, as a Databricks and Microsoft partner. For GVB, we selected data use cases and built models for travel behaviour, passenger counts and maintenance; with ProRail, we worked on sensor data.

One route, transport hub or scheduling decision is enough for an initial conversation
Stef Stoelwinder
Business DevelopmentStef is your first point of contact. In our first conversation, we’ll discuss one decision about your timetable and the passenger data you already have.
E-mail info@datasciencelab.nl
Phone +31 (0)20 3636 724
Which timetable decision are you looking to support with data?
Describe the route or decision and the data you already have. We’ll reply by email or arrange an initial conversation.
Message sent
Thanks for your message. We’ll be in touch as soon as possible.
Frequently asked questions
AI in public transport means training a model on data an operator already has: tap-ins and tap-outs, journey data, passenger counts and timetables. You can use it to forecast how many passengers will use a route, see where a service becomes crowded, or plan maintenance and staffing more effectively. It is one of the AI applications we build.
For GVB, we first helped select the data use cases with the greatest impact. You can find more of our work in the sector under mobility and logistics.
With a model that combines historical tap-ins and tap-outs by route, stop and hour with calendar information: school holidays, events, weather and planned works. This lets you forecast demand for a new timetable or a busy period.
The pitfall is that the past is not always a reliable guide. A new route, a diversion or a change in working-from-home patterns affects demand, and the model needs to learn from that. Read more about forecasting.
More than you might think. Operators submit their timetables in NeTEx, current vehicle positions and punctuality data in KV6, and changes such as cancelled services in KV17 to the NDOV data portals. This source data is open data under a CC-0 licence.
Operators also provide monitoring data to public transport authorities under MIPOV, including boardings, alightings, transfers and occupancy. To see how these sources can be combined with your own tap-in and tap-out data, read about our data and AI platform.
Tap-in data misses passengers who do not tap in, while manual counts are labour-intensive and provide only a snapshot. For GVB, we built software that uses computer vision to count passengers in footage from existing security cameras on vehicles. No one views or shares the footage; only the model analyses it.
This gives you insights over a longer period, such as which routes have more passengers travelling without a valid ticket. Read more about computer vision.
By monitoring and retraining it. A new timetable, a closed stop or a change in travel behaviour affects the inputs, making the results less accurate. This is called drift. For GVB, we therefore set up an MLOps workflow in Databricks with reusable templates, so its travel behaviour segmentation model stays up to date over the years.
Read how this works under MLOps. Your team can manage the model, or we can do it through management and continuous improvement.
Tap-in and tap-out records are personal data if they can be linked to an individual passenger. According to the EDPB, pseudonymised data remains personal data under the GDPR. Transdev and Translink’s OVpay privacy notice states that technical payment card data is processed only in pseudonymised form.
Annex III of the AI Act lists AI used as a safety component in critical digital infrastructure and road traffic as high-risk. Your legal or compliance team must assess whether your application falls into that category; we can help identify the relevant uses. See AI Act and Responsible AI.
Yes, if maintenance data is recorded properly. For GVB’s Rail Equipment department, we developed an anomaly detection model that identifies unusual logged hours. It provides insight into productivity, completeness of time records, overtime and absence for each project, helping teams plan projects more effectively.
If you want to anticipate equipment failures, predictive maintenance is the next step. With ProRail, we used this approach to investigate the detection of wheel defects via fibre-optic cables alongside the tracks.
When you mainly need to know how many passengers travelled, rather than how many will travel. In that case, a Power BI dashboard based on your tap-in and tap-out data and MIPOV figures is more useful than a model. A fixed scheduling rule may also be enough if a route follows the same pattern every year.
If stops and routes cannot be linked across your data sources, start with the data foundation. If a simpler solution fits, we will say so.
Where public transport operations meet forecasting and image-based counting
- Data and AI for mobility and logisticsHow we help planners spot deviations in schedules and capacity sooner.
- Forecasting and predictive modelsHow a model uses historical data and the calendar to make forecasts, and when a simple rule works better.
- Developing computer visionHow a model counts and recognises what appears in camera footage without anyone watching.