Robust LiDAR-Based Train Detection via Point Cloud Segmentation for Railway Safety
Abstract
1. Introduction
- The railway train detection task is reformulated from a comparison-based paradigm to a segmentation-driven framework to enhance the semantic understanding of railway scenarios.
- A geometry-aware post-processing method, which combines rail-region constraints and distance-based filtering, is introduced to improve the detection stability under background disturbance and adverse weather conditions.
- The proposed framework can identify different types of train samples under different weather and lighting conditions, with empirical evidence provided through cross-scene and adverse-condition evaluations.
- Extensive experimental evaluations on train detection efficiency, accuracy, and robustness demonstrate that the proposed framework can achieve a balance between detection performance and operational requirements.
2. Related Work
2.1. Train Detection for Railway Safety
2.2. Background Comparison for Transportation Scenarios
2.3. Point Cloud Segmentation for Transportation Scenarios
3. Methodology
3.1. Problem Statement
3.2. Pre-Processing
3.2.1. Downsampling
3.2.2. Outlier Removal
3.2.3. KD-Tree Construction
3.3. Point Cloud Segmentation Network
3.4. Point-Level and Object-Level Train Detection
| Algorithm 1 Post-processing for train detection |
|
4. Experiments
4.1. Datasets
4.2. Implementation Details and Evaluation Metrics
4.3. Training Loss and Validation Loss
4.4. Segmentation Comparison with Other Point Cloud Segmentation Methods
4.5. Train Detection Comparison with the Industrial Background Comparison Method
4.6. Analysis of Train Detection in Rainy Weather Conditions
4.7. Ablation Study
4.7.1. Analysis of Voxel Size and KNNs
4.7.2. Analysis of Inference Time and Probability Threshold
4.8. Visualization of Train Detection and Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Jin, M.; Lin, K.C.; Shi, W.; Lee, P.T.; Li, K.X. Impacts of High-Speed Railways on Economic Growth and Disparity in China. Transp. Res. Part A Policy Pract. 2020, 138, 158–171. [Google Scholar] [CrossRef]
- Qu, J.; Li, S.; Li, Y.; Liu, L. Research on Railway Obstacle Detection Method Based on Developed Euclidean Clustering. Electronics 2023, 12, 1175. [Google Scholar] [CrossRef]
- Mukojima, H.; Deguchi, D.; Kawanishi, Y.; Ide, I.; Murase, H.; Ukai, M.; Nagamine, N.; Nakasone, R. Moving Camera Background-Subtraction for Obstacle Detection on Railway Tracks. In IEEE International Conference on Image Processing (ICIP); IEEE: New York, NY, USA, 2016; pp. 3967–3971. [Google Scholar]
- Sasy Chan, Y.W.; Wang, H.P.; Xiang, P. Optical Fiber Sensors for Monitoring Railway Infrastructures: A Review Towards Smart Concept. Symmetry 2021, 13, 2251. [Google Scholar] [CrossRef]
- Wang, T.; Zhang, Z.; Yang, F.; Tsui, K.L. Intelligent Railway Foreign Object Detection: A Semi-supervised Convolutional Autoencoder Based Method. arXiv 2021, arXiv:2108.02421. [Google Scholar] [CrossRef]
- Duan, Y.; Qiu, S.; Jin, W.; Lu, T.; Li, X. High-Speed Rail Tunnel Panoramic Inspection Image Recognition Technology Based on Improved YOLOv5. Sensors 2023, 23, 5986. [Google Scholar] [CrossRef] [PubMed]
- Poyyamozhi, M.; Devadharshini, A.S.K.; Murugesan, B.; Novak, T.; Mlcak, T.; R, N. Enhancing railway track maintenance with real-time ultrasonic and moisture sensing: Proactive and zone-specific management strategies. Results Eng. 2024, 24, 103472. [Google Scholar] [CrossRef]
- Ristić-Durrant, D.; Franke, M.; Michels, K. A Review of Vision-Based On-Board Obstacle Detection and Distance Estimation in Railways. Sensors 2021, 21, 3452. [Google Scholar] [CrossRef]
- Nan, Z.; Zhu, G.; Zhang, X.; Lin, X.; Yang, Y. Development of a High-Precision Lidar System and Improvement of Key Steps for Railway Obstacle Detection Algorithm. Remote Sens. 2024, 16, 1761. [Google Scholar] [CrossRef]
- Nan, Z.; Liu, W.; Zhu, G.; Zhao, H.; Xia, W.; Lin, X.; Yang, Y. LiDAR-Camera joint obstacle detection algorithm for railway track area. Expert Syst. Appl. 2025, 275, 127089. [Google Scholar] [CrossRef]
- Biasutti, P.; Lepetit, V.; Aujol, J.F.; Brédif, M.; Bugeau, A. LU-Net: An Efficient Network for 3D LiDAR Point Cloud Semantic Segmentation Based on End-to-End-Learned 3D Features and U-Net. In Proceedings of the IEEE/CVF International Conference on Computer Vision Workshops, Seoul, Republic of Korea, 27–28 October 2019. [Google Scholar]
- Zhou, Z.; Siddiquee, M.M.R.; Tajbakhsh, N.; Liang, J. UNet++: Redesigning Skip Connections to Exploit Multiscale Features in Image Segmentation. IEEE Trans. Med. Imaging 2020, 39, 1856–1867. [Google Scholar] [CrossRef]
- Wu, B.; Zhou, X.; Zhao, S.; Yue, X.; Keutzer, K. SqueezeSegV2: Improved Model Structure and Unsupervised Domain Adaptation for Road-Object Segmentation from a LiDAR Point Cloud. In 2019 International Conference on Robotics and Automation (ICRA); IEEE: New York, NY, USA, 2018. [Google Scholar]
- Hasecke, F.; Colling, P.; Kummert, A. Fake it, Mix it, Segment it: Bridging the Domain Gap Between Lidar Sensors. arXiv 2022, arXiv:2212.09517. [Google Scholar] [CrossRef]
- Sun, B.; Ma, M.; Yuan, N.; Li, J.; Yu, T. Detecting the Background-Similar Objects in Complex Transportation Scenes. IEEE Trans. Intell. Transp. Syst. 2024, 25, 2920–2932. [Google Scholar] [CrossRef]
- Allotta, B.; Colla, V.; Pugi, L.; D’Adamio, P.; Innocenti, A.; Meli, E. An Innovative Algorithm for Train Detection. Mech. Syst. Signal Process. 2015, 60–61, 190–202. [Google Scholar]
- Cai, B.; Liu, Y.; Fan, Q.; Zhang, Y.; Zhang, M. Integrated Sensing and Safety Monitoring for Railway Systems. Eng. Appl. Artif. Intell. 2019, 82, 260–272. [Google Scholar]
- Santos, M.; Almeida, A.; Ferreira, P. Sensing Techniques and Detection Methods for Train Approach Detection: A Review. Measurement 2018, 125, 227–239. [Google Scholar]
- Zhang, P.; Yang, X.; Chen, Z. Neural network gain scheduling design for large envelope curve flight control law. J. Beijing Univ. Aeronaut. Astronaut. 2005, 31, 604–608. [Google Scholar]
- Yang, X.; Gong, G.; Wang, X. Virtual sound modeling and real-time rendering in aircraft simulator. Acta Aeronaut. Astronaut. Sin. 2009, 7, 1305–1311. [Google Scholar]
- Pamuła, T.; Pamuła, W. Detection of Safe Passage for Trains at Rail Level Crossings Using Deep Learning. Sensors 2021, 21, 6281. [Google Scholar] [CrossRef] [PubMed]
- Qiu, B.; Zhou, Y.; Dai, L.; Wang, B.; Li, J.; Dong, Z.; Wen, C.; Ma, Z.; Yang, B. WHU-Railway3D: A Diverse Dataset and Benchmark for Railway Point Cloud Semantic Segmentation. IEEE Trans. Intell. Transp. Syst. 2024, 25, 20900–20916. [Google Scholar] [CrossRef]
- Geng, Y.; Wang, Z.; Jia, L.; Qin, Y.; Chai, Y.; Liu, K.; Tong, L. 3DGraphSeg: A Unified Graph Representation-Based Point Cloud Segmentation Framework for Full-Range High-Speed Railway Environments. IEEE Trans. Ind. Inform. 2023, 19, 11430–11443. [Google Scholar] [CrossRef]
- Xu, X.; Wu, B.; Xie, L.; Teixeira, P.A.; Yan, X. A Novel Ship Speed and Heading Estimation Approach Using Radar Sequential Images. IEEE Trans. Intell. Transp. Syst. 2023, 24, 11107–11120. [Google Scholar] [CrossRef]
- Qi, Q.; Yu, X.; Lei, P.; He, W.; Zhang, G.; Wu, J.; Tu, B. Background Subtraction via Regional Multi-Feature-Frequency Model in Complex Scenes. Soft Comput. 2023, 27, 15305–15318. [Google Scholar] [CrossRef]
- Zheng, J.; Yang, S.; Wang, X.; Xiao, Y.; Li, T. Background Noise Filtering and Clustering with 3D LiDAR Deployed in Roadside of Urban Environments. IEEE Sens. J. 2021, 21, 20629–20639. [Google Scholar] [CrossRef]
- Zhang, J.; Jin, P. Roadside LiDAR Vehicle Detection and Tracking Using Range and Intensity Background Subtraction. IEEE Trans. Intell. Transp. Syst. 2022, 23, 23926–23937. [Google Scholar] [CrossRef]
- Wisultschew, C.; Mujica, G.; Lanza-Gutierrez, M.J.; Portilla, J. 3D-LiDAR Based Object Detection and Tracking on the Edge of IoT for Railway Level Crossing. IEEE Access 2021, 9, 35718–35729. [Google Scholar] [CrossRef]
- Endo, Y.; Javanmardi, E.; Gu, Y.; Kamijo, S. High Definition Map Aided Object Detection for Autonomous Driving in Urban Areas. Int. J. Automot. Technol. 2023, 24, 469–481. [Google Scholar] [CrossRef]
- Zhou, S.; Xu, H.; Zhang, G.; Ma, T.; Yang, Y. Leveraging Deep Convolutional Neural Networks Pre-trained on Autonomous Driving Data for Vehicle Detection from Roadside LiDAR Data. IEEE Trans. Intell. Transp. Syst. 2022, 23, 22367–22377. [Google Scholar] [CrossRef]
- Gómez, J.; Aycard, O.; Baber, J. Efficient Detection and Tracking of Human Using 3D LiDAR Sensor. Sensors 2023, 23, 4720. [Google Scholar] [CrossRef] [PubMed]
- Wang, Z.; Yu, G.; Wu, X.; Li, H.; Li, D. A Camera and LiDAR Data Fusion Method for Railway Object Detection. IEEE Sens. J. 2021, 21, 13442–13454. [Google Scholar]
- Park, J.; Kim, C.; Jo, K. PCSCNet: Fast 3D Semantic Segmentation of LiDAR Point Cloud for Autonomous Car using Point Convolution and Sparse Convolution Network. Expert Syst. Appl. 2022, 212, 118815. [Google Scholar] [CrossRef]
- Zhao, S.; Wang, Y.; Li, B.; Wu, B.; Gao, Y.; Xu, P.; Darrell, T.; Keutzer, K. ePointDA: An End-to-End Simulation-to-Real Domain Adaptation Framework for LiDAR Point Cloud Segmentation. In Proceedings of the AAAI Conference on Artificial Intelligence, Online, 2–9 February 2021. [Google Scholar]
- Fayjie, A.R.; Lens, M.; Vandewalle, P. Few-Shot Segmentation of 3D Point Clouds Under Real-World Distributional Shifts in Railroad Infrastructure. Sensors 2025, 25, 1072. [Google Scholar] [CrossRef]
- Sun, N.; Li, K.; Liu, J.; Chai, L.; Wu, C. Learning and fusing the rasterized and serialized point cloud for 3D semantic segmentation in railway scenes. Expert Syst. Appl. 2026, 295, 128897. [Google Scholar] [CrossRef]
- Münger, N.; Ronecker, M.P.; Diaz, X.; Karner, M.; Watzenig, D.; Skaloud, J. A Data-Centric Approach to 3D Semantic Segmentation of Railway Scenes. arXiv 2025, arXiv:2504.18213. [Google Scholar] [CrossRef]
- Chen, Z.; Yang, J.; Chen, L.; Li, F.; Feng, Z.; Jia, L.; Li, P. RailVoxelDet: A Lightweight 3-D Object Detection Method for Railway Transportation Driven by Onboard LiDAR Data. IEEE Internet Things J. 2025, 12, 37175–37189. [Google Scholar] [CrossRef]
- Yuan, Z.; Wen, C.; Cheng, M.; Su, Y.; Liu, W.; Yu, S.; Wang, C. Category-Level Adversaries for Outdoor LiDAR Point Clouds Cross-Domain Semantic Segmentation. IEEE Trans. Intell. Transp. Syst. 2023, 24, 1982–1993. [Google Scholar] [CrossRef]
- Yu, X.; He, W.; Qian, X.; Yang, Y.; Ou, L. Real-time Rail Recognition Based on 3D Point Clouds. arXiv 2022, arXiv:2201.02726. [Google Scholar] [CrossRef]
- Wang, Z.; Yu, G.; Chen, P.; Zhou, B.; Yang, S. FarNet: An Attention-Aggregation Network for Long-Range Rail Track Point Cloud Segmentation. IEEE Trans. Intell. Transp. Syst. 2022, 23, 13118–13126. [Google Scholar] [CrossRef]
- Jiang, T.; Yang, B.; Wang, Y.; Dai, L.; Qiu, B.; Liu, S.; Li, S.; Zhang, Q.; Jin, X.; Zeng, W. RailSeg: Learning Local–Global Feature Aggregation With Contextual Information for Railway Point Cloud Semantic Segmentation. IEEE Trans. Geosci. Remote Sens. 2023, 61, 5704929. [Google Scholar] [CrossRef]
- Liang, Z.; Lai, X.; Zhang, L. Active Learning-Driven Semantic Segmentation for Railway Point Clouds with Limited Labels. Autom. Constr. 2025, 171, 106016. [Google Scholar] [CrossRef]
- Wu, R.; Chowdhury, Z.; Sanchez, G.V.; Gao, X.; Villa, C.; Jiang, X. Real-time Vehicle Detection System for Intelligent Transportation using Machine Learning. In IEEE Green Energy and Smart Systems Conference (IGESSC); IEEE: New York, NY, USA, 2022. [Google Scholar]
- Thomas, H.; Qi, C.R.; Deschaud, J.E.; Marcotegui, B.; Goulette, F.; Guibas, L.J. KPConv: Flexible and Deformable Convolution for Point Clouds. In Proceedings of the IEEE International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019. [Google Scholar]
- Charles, R.Q.; Su, H.; Mo, K.; Guibas, L.J. PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 22–25 July 2017; pp. 77–85. [Google Scholar]
- Zhao, H.; Jiang, L.; Jia, J.; Torr, P.; Koltun, V. Point Transformer. In Proceedings of the 2021 IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada, 11–17 October 2021; pp. 16239–16248. [Google Scholar]









| Methods | OA | mIoU | mACC | Rail | Tunnel | Wires | |||
| IoU | ACC | IoU | ACC | IoU | ACC | ||||
| KPConv | 81.17 | 66.54 | 82.02 | 66.76 | 85.10 | 42.78 | 75.18 | 64.06 | 73.71 |
| PointNet | 80.58 | 54.05 | 72.13 | 56.31 | 76.44 | 32.09 | 71.81 | 33.71 | 46.68 |
| Point Transformer | 85.01 | 64.30 | 80.43 | 67.15 | 83.00 | 36.54 | 71.51 | 61.72 | 73.22 |
| Ours | 91.32 | 75.94 | 86.86 | 75.24 | 87.38 | 64.74 | 77.68 | 64.89 | 81.78 |
| Methods | Train | Other | FPS | ||||||
| IoU | ACC | Precision | Recall | F1 | IoU | ACC | |||
| KPConv | 77.36 | 90.48 | 84.21 | 90.48 | 87.24 | 81.74 | 85.64 | 2.07 | |
| PointNet | 72.22 | 83.38 | 84.37 | 83.38 | 83.87 | 75.92 | 82.36 | 2.81 | |
| Point Transformer | 74.91 | 89.17 | 82.41 | 89.17 | 85.66 | 81.17 | 85.25 | 0.96 | |
| Ours | 87.14 | 95.49 | 90.88 | 95.49 | 93.13 | 87.69 | 91.98 | 2.35 | |
| Method | MDR | FDR | FPS |
|---|---|---|---|
| Comparison-based | 3.31% | 2.76% | 3.24 |
| Segmentation-based | 0.76% | 1.31% | 1.44 |
| Weather | OA | mIoU | mACC | Train | ||||
|---|---|---|---|---|---|---|---|---|
| IoU | ACC | Precision | Recall | F1 | ||||
| Sunny | 96.82 | 92.36 | 95.46 | 98.87 | 99.89 | 98.98 | 99.89 | 99.43 |
| Rainy | 94.00 | 82.00 | 92.77 | 94.01 | 94.83 | 99.09 | 94.83 | 96.91 |
| Parameters | OA | mIoU | mACC | Train | FPS | ||||
|---|---|---|---|---|---|---|---|---|---|
| IoU | ACC | Precision | Recall | F1 | |||||
| Voxel Size = 0.06 | 86.85 | 69.96 | 84.92 | 87.07 | 87.74 | 99.13 | 87.74 | 93.09 | 0.41 |
| Voxel Size = 0.2 | 86.77 | 70.96 | 86.46 | 90.43 | 90.94 | 99.38 | 90.94 | 94.98 | 2.04 |
| Voxel Size = 0.6 | 80.52 | 60.58 | 80.27 | 79.92 | 80.94 | 98.44 | 80.94 | 88.84 | 5.51 |
| KNN = 8 | 79.22 | 60.93 | 78.03 | 76.89 | 79.18 | 96.38 | 79.18 | 86.94 | 3.37 |
| KNN = 16 | 84.15 | 67.41 | 83.75 | 83.27 | 83.98 | 99.01 | 83.98 | 90.87 | 2.84 |
| KNN = 32 | 86.77 | 70.96 | 86.46 | 90.43 | 90.94 | 99.38 | 90.94 | 94.98 | 2.04 |
| Parameters | OA | mIoU | mACC | Train | FPS | ||||
|---|---|---|---|---|---|---|---|---|---|
| IoU | ACC | Precision | Recall | F1 | |||||
| Probability = 0.01 | 85.49 | 69.43 | 86.02 | 87.77 | 88.50 | 99.06 | 88.50 | 93.48 | 2.26 |
| Probability = 0.1 | 86.77 | 70.96 | 86.46 | 90.43 | 90.94 | 99.38 | 90.94 | 94.98 | 2.04 |
| Probability = 1 | 86.67 | 70.74 | 86.44 | 90.55 | 90.98 | 99.48 | 90.98 | 95.04 | 1.11 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Yang, Y.; Yu, S.; Xiao, J. Robust LiDAR-Based Train Detection via Point Cloud Segmentation for Railway Safety. Sensors 2026, 26, 1514. https://doi.org/10.3390/s26051514
Yang Y, Yu S, Xiao J. Robust LiDAR-Based Train Detection via Point Cloud Segmentation for Railway Safety. Sensors. 2026; 26(5):1514. https://doi.org/10.3390/s26051514
Chicago/Turabian StyleYang, Yuxing, Siyue Yu, and Jimin Xiao. 2026. "Robust LiDAR-Based Train Detection via Point Cloud Segmentation for Railway Safety" Sensors 26, no. 5: 1514. https://doi.org/10.3390/s26051514
APA StyleYang, Y., Yu, S., & Xiao, J. (2026). Robust LiDAR-Based Train Detection via Point Cloud Segmentation for Railway Safety. Sensors, 26(5), 1514. https://doi.org/10.3390/s26051514
