Renfe: Real-Time Train Positioning with Higson

Renfe uses Higson to determine the position of 600 trains from live data, including in tunnels and mountain areas where GPS fails.

About the Client

Renfe is Spain’s national state-owned railway company, operating passenger and freight trains across the country’s rail network. In 2024, Renfe carried 535 million passengers. The company implemented Higson to run the rules that determine each train’s position on the map, based on live data from multiple tracking sources.

The Challenge

A train’s position is the starting point for everything that happens downstream. Operations control relies on it to manage traffic and react to delays, and other Renfe systems receive it as a live data stream or request it through an API. If the position is wrong or missing, every decision that depends on it is wrong too.

No single source can be trusted all the time. GPS drops out in tunnels, cuttings and mountain areas. Other sources report late or with lower accuracy. And when several of them report at once, they often disagree. Renfe needed one position for every train that downstream systems could rely on, at every moment and on every section of the network.

Project Needs

Renfe needed a system that could:

  • Determine exactly where every train is at any given moment.
  • Keep track of trains in tunnels, cuttings and mountain areas, where GPS cannot connect to satellites, and when other tracking systems fail.
  • Combine position readings from many sources at once (GPS, the mobile network, track circuits, on-board systems, odometers and inertial sensors), each with different reliability and different delays.
  • Make a decision for every single reading in a live data stream, with new readings from each train every 30 seconds.

The Role of Higson

Renfe selected Higson to run three complex rules on live data. Together, they decide which data to trust, how to fill gaps in GPS coverage and when something doesn’t add up.

Source Selection

When several readings of a train’s position arrive at the same time, each from a source with different reliability, Higson picks the most reliable source and rejects readings that are too old or untrustworthy.

Position Estimation Without GPS

When GPS disappears, for example in a tunnel, Higson first decides whether the position should be estimated at all. If so, it uses odometer and sensor data, and only as a last resort calculates the position from the last known location, speed and elapsed time.

Position Verification and Alerts

Higson checks whether each train is where it should be by comparing its speed, location and checkpoint data. If these don’t match, it generates an alert.

One Reliable Train Position

The result of all three rules is one reliable position for each train. Downstream systems rely on this single position.

The result: Renfe knows where every train is, at every moment and on every section of the network, including the stretches where GPS alone would leave a gap on the map. Downstream systems work from one trusted position, so they no longer have to reconcile conflicting signals themselves.

Benefits

  • Decisions in Real Time

    Higson decides on over 2.5 million position readings a day, one for every reading from 600 trains as it arrives in the live data stream. Performance was the key argument when Renfe selected Higson.

  • Continuous Position Data

    Renfe keeps information about each train's position on sections where GPS alone isn't enough, including tunnels and mountain routes.

  • Rule Changes Without a Release

    All rules are visible and editable in Higson. Changing a source's priority is a change in a decision table, with no programming and no new system release.

Take Full Control of Your Product Logic

We provide a free Proof of Concept, so you can see how Higson can work with your individual business logic.