Data science for rail

From your sales, network and vehicle data we forecast utilisation and cancellations and detect fraud. The models run in operations and feed operational and incident processes.

Focus

Fraud in ticket sales

Some patterns sit in single records, others in relations.

  • Tabular model and graph neural networks
  • Links between account, payment method and device
  • Automated pipeline for retraining and inference
  • Shapley values per classification in a dashboard

XGBoost · Graph Neural Networks · AWS SageMaker · Shapley

Utilisation and cancellations

Operations control needs forecasts that are available during daily service.

Python · PyTorch · FastAPI · Power BI

Bottlenecks and measures in the network

Finding bottlenecks and estimating what a planned measure will achieve.

Neo4j · PostgreSQL · AWS Glue · Athena

Planning field staff deployment

Field staff should work where and when they have the most effect.

Our practice area in rail

Data scientists, data engineers and MLOps engineers in one team. Your specialists decide which action follows.

  1. Prepare data

    ETL pipelines on raw, infrastructure and vehicle data.

  2. Build models

    For time series, tabular data, graphs and causal questions.

  3. Deploy

    As a REST API or endpoint, connected to dashboards and operational processes.

  4. Operate

    Tests, deployment across three environments and automatic retraining.

How a model reaches operations

  1. Step 1

    Consolidate data

    Raw, infrastructure and vehicle data in ETL pipelines

  2. Step 2

    Develop the model

    Time series, tabular data, graphs, causal methods

  3. Step 3

    Put it into production

    REST API or endpoint, retraining automated

  4. Step 4

    Explain decisions

    Domain experts see why the model decides as it does

References

Projects in rail

  • AWS

Fraud detection · ongoing

Detecting fraud in ticket sales

Challenge

Fraud in online ticket purchases was to be predicted at high throughput.

What we did

A tabular model and graph neural networks in an automated pipeline.

Outcome: The model is live, with Shapley values per classification.

  • XGBoost
  • Graph Neural Networks
  • AWS SageMaker
  • Shapley
  • Python
  • PyTorch
  • FastAPI
  • Microsoft Power BI

Forecasting · ongoing

Forecasting utilisation

Challenge

The analysts needed an on-demand utilisation forecast.

What we did

Several time-series models compared, provided as a REST API.

Outcome: The forecasts run alongside the Power BI dashboards.

  • Python
  • PyTorch
  • FastAPI
  • Power BI
  • Python
  • Polars
  • AWS

Digital twin · ongoing

Analysing train journeys as digital twins

Challenge

Domain experts were to derive measures for capacity and punctuality.

What we did

ETL pipelines combine raw data into journey objects, plus analysis tools and dashboards.

  • Python
  • Polars
  • AWS Neptune
  • AWS CDK
  • Neo4j
  • PostgreSQL
  • AWS

Network analysis · completed

Finding network bottlenecks and assessing measures

Challenge

Bottlenecks were to be detected and the effect of planned measures estimated.

What we did

An analysis platform on graph and relational databases with causal methods.

Outcome: The platform is live.

  • Neo4j
  • PostgreSQL
  • AWS Glue
  • Athena

Questions from rail

Do the models run in operations or in an analysis pipeline?

In operations. We provide the models as a REST API or endpoint, roll them out across dev, test and production and retrain them automatically. They feed operational and incident processes and the analysts' dashboards. We do not replace control or dispatching systems.

What happens when the data situation is unclear?

Then we start with data sourcing and consolidation. In several projects in this industry, ETL pipelines and query performance were a bigger task than the model. A model on an unclear data basis costs budget and yields no reliable result.

When is a graph model worth it, when is a tabular model enough?

A graph model pays off when the signal sits in relations, for example between account, payment method, session and device. When it sits in well-engineered features of a single record, a gradient boosting model is enough. In this industry, both approaches run in operations.

Can domain experts follow the model's decisions?

Yes. In fraud detection, domain experts see each classification with its Shapley values in a dashboard. Explainability for graph models is less mature than for tabular models. There, research on explainable AI accompanies the work.

How large are the teams and how long do the initiatives run?

One to two consultants per project. Durations range from six months to three and a half years, and several projects are still running. Most running projects get extended.

Get started

Move a model into rail operations

In the first conversation we clarify the data situation, how to frame the question and what the model should trigger in operations.