SynRailObs: A Synthetic Dataset for Obstacle Detection in Railway Scenarios
Qiushi Guo, Jason Rambach
TL;DR
SynRailObs tackles data scarcity and distribution shift in railway obstacle detection by introducing a high-fidelity synthetic dataset generated from diverse background rail scenes and diffusion-generated foreground obstacles. The pipeline leverages SAM for obstacle extraction, perspective-aware pasting, and image harmony to produce realistic, annotation-free images, further enriched by zero-shot obstacle generation. Real-world evaluations across ballastless and ballasted tracks under multiple weather conditions show robust detection performance and strong zero-shot capabilities, with some degradation in extreme conditions due to limited adverse-weather backgrounds. The dataset is publicly available on Kaggle, enabling broader research and practical training of obstacle detectors for railway safety across distances and environments. Overall, SynRailObs demonstrates the potential of synthetic data to bridge gaps in real-world railway safety benchmarks and support safer high-speed railway operations.
Abstract
Detecting potential obstacles in railway environments is critical for preventing serious accidents. Identifying a broad range of obstacle categories under complex conditions requires large-scale datasets with precisely annotated, high-quality images. However, existing publicly available datasets fail to meet these requirements, thereby hindering progress in railway safety research. To address this gap, we introduce SynRailObs, a high-fidelity synthetic dataset designed to represent a diverse range of weather conditions and geographical features. Furthermore, diffusion models are employed to generate rare and difficult-to-capture obstacles that are typically challenging to obtain in real-world scenarios. To evaluate the effectiveness of SynRailObs, we perform experiments in real-world railway environments, testing on both ballasted and ballastless tracks across various weather conditions. The results demonstrate that SynRailObs holds substantial potential for advancing obstacle detection in railway safety applications. Models trained on this dataset show consistent performance across different distances and environmental conditions. Moreover, the model trained on SynRailObs exhibits zero-shot capabilities, which are essential for applications in security-sensitive domains. The data is available in https://www.kaggle.com/datasets/qiushi910/synrailobs.
