← All cases

case() // transport · computer vision

Railroad segmentation

Railway track segmentation for a GoA4 driverless train: an attention-based neural network that sees the track beyond 150 m from the cab at IoU 0.98, trained on a 70 000-image dataset we built and published.

// brief

challenge

A GoA4 driverless train needs a module that makes emergency decisions on its own: in most abnormal situations on the track, onboard navigation cannot be trusted. At 60–70 km/h the braking distance is 118–157 m, and no published solution guaranteed track detection at 150 m or more.

goal

Detect obstacles on the track with no connectivity and independently of any other system: an image and video algorithm that recognises the railway track at 150 m or more with a latency under 50 ms.

approach

An independent computing unit in the cab and a neural network that uses optical flow and temporal information to segment the track far from the locomotive, localising the area where abnormal situations are detected.

// key results

>150 m

detection range, was <118

0.983

IoU, was 0.898

+35%

frames per second

70 000

images in the dataset

// what we did

Scope of work

01

Dataset and camera selection

No open railway-track dataset existed for CIS standards, and no camera had been chosen.

  • One-month research phase; built a data-labelling scheme and ran it as an internal company service.
  • Collected a 70 000-image industrial dataset in varied conditions, verified with automatic checks.
  • Set up data collection with cross-validation conditions for training.
  • Reviewed industrial machine-vision cameras; computed camera parameters and tracking-system dynamics.
  • Ran an internal model competition and 4 hackathons to source ideas.
02

RailCNN: single-frame segmentation

Standard segmentation networks lose the track in the distance, where braking decisions are made.

  • U-Net-like architecture with Attention and spatial pyramid pooling modules, ResNet-34 encoder pretrained on ImageNet.
  • SPP gathers encoder features at several pooling scales; Attention captures global context via average pooling.
  • Split the frame into a far region A (12% of the height around the horizon) and a near region B to sharpen distant predictions.
  • Trained with a weighted IoU loss that emphasises the far end of the track.
03

Video stream: temporal modules

A single frame does not carry enough information at 150 m; the network has to use the previous frames.

  • Added an Attention Propagation Module that carries attention from the three previous frames.
  • Added a memory module storing three previous frames, drawing on Space-Time Memory Networks and Temporally Distributed Networks.
  • Published the frame-stitching and attention methods in an IEEE Xplore paper, cited more than 10 times since.
  • Tested on real data and put into operation.
metricbeforeafterΔ
Detection range, m<118>150+27.1%
IoU0.8980.983+9.5%
Weighted IoU0.8750.955+9.1%
FPS2027+35%

// business value

  • An emergency decision module for a GoA4 driverless train, a prerequisite for the certification needed to run unmanned rolling stock.
  • Automated track recognition that also serves as the basis for detecting obstacles and other abnormal situations.
  • Works on single images and video streams and can be deployed on embedded operating systems.

// stack

  • Python
  • U-Net
  • ResNet-34
  • Attention modules
  • Spatial pyramid pooling
  • Optical flow
  • Space-Time Memory Networks
  • Temporally Distributed Networks
  • Industrial machine-vision cameras
  • Embedded OS

Got an X?

Start with the free discovery. In a week you'll know where your Z is.

Start discovery