Anomaly detection for railway safety
Context
I worked on this as an ML engineer at Infrabel, the Belgian railway infrastructure manager, on the RideOnTrack project from January to August 2025.
Constraints
- Two separate problems in one system. Anomalies on the track and train signals both had to be handled.
- Signal recognition in real time. The YOLOv8 model had to recognise train signals as they appear.
- Detection depends on what the model looks at. The critical areas of each track image had to be isolated first.
What I built
- Anomaly detection on railway tracks using machine learning and computer vision.
- A U-Net segmentation model and an autoencoder that isolate the critical areas of each track image, which improves detection.
- YOLOv8 for real-time train signal recognition, which reached 91% accuracy.
Design choices
Isolate the critical areas before detecting. A U-Net segmentation model and an autoencoder isolate the critical areas of each track image, which improves detection.
YOLOv8 for the signals. Signal recognition is a separate task from anomaly detection and has to run in real time, which is what YOLOv8 is built for. It reached 91% accuracy.
Stack
Python, TensorFlow, U-Net, YOLOv8, AWS SageMaker, Git