To address the challenge of low accuracy of detecting unknown forward foreign objects in suspended monorail systems, an efficient, end-to-end unsupervised learning detection method, termed DPMF-Flow is proposed. Initially, a Cross-Scale Feature Extraction module is employed to concurrently capture fine-grained local details and high-level global semantics, thereby enhancing the feature representation of multi-scale foreign objects against complex backgrounds. Subsequently, a Dual-Path Fusion Flow module is used to extract local and global features respectively, and the generative complementary latent variables are estimated through complementary probability density, effectively improving localization precision. Finally, an Object Segmentation and Localization module integrates the latent variables information from dual-path to generate pixel-level object localization heatmaps. The results show that on a Suspended Monorail Foreign Object Intrusion dataset, the proposed method achieves a detection accuracy of 99.34%, and detects foreign objects in real-time at a frame rate of 66.04 FPS. Compared to other unsupervised methods such as Padim and Fastflow, the approach demonstrates a significant performance advantage. Furthermore, it exhibits strong generalization on the public MVTec AD dataset, offering a practical and advanced technical solution for rail transit safety.
CAOZhiwei, GEXuanyu, QINYong, et al. Forward Obstacle Detection Algorithm for Train Based on LiDAR [J]. China Railway Science, 2024, 45 (6): 183-193. in Chinese
[4]
CAOZ W, QINY, JIAL M, et al. Railway Intrusion Detection Based on Machine Vision: a Survey, Challenges, and Perspectives [J]. IEEE Transactions on Intelligent Transportation Systems, 2024, 25 (7): 6427-6448.
WANGNan, HOUTao, NIUHongxia. Research on Railway Track Foreign Object Intrusion Detection Based on Multi-Scale Feature Fusion [J]. Journal of Xi’an Jiaotong University, 2024, 58 (9): 139-153. in Chinese
FUHaochen, BAITangbo, XUGuiyang, et al. Crack Detection in Track Slabs Based on an Improved YOLOv8 Algorithm [J]. Journal of Beijing Jiaotong University, 2024, 48 (6): 133-143. in Chinese
JIANGXiangju, FENGHaizhao, LITao. Improved Rapid Detection Method for Foreign Object Intrusion on Railroads Based on FasterNet and YOLOv8s [J]. Journal of Beijing Jiaotong University, 2024, 48 (5): 39-48. in Chinese
MENGCaixia, WANGZhaonan, SHILei, et al. Improved Railroad Foreign Object Intrusion Detection Algorithm for YOLOv5s [J]. Journal of Chinese Computer Systems, 2024, 45 (4): 879-886. in Chinese
LIULi, GOUJunnian. Research on Detection Method of Railway Intrusion Obstacles Based on YOLO v4 [J]. Journal of Railway Science and Engineering, 2022, 19 (2): 528-536. in Chinese
BAITangbo, DUANJiaming, YANGJianwei, et al. Quantitative Detection of Rail Fasteners Based on Edge AI Computing [J]. China Railway Science, 2025, 46 (1): 60-69. in Chinese
MAXiaojun, WANGDong, LIUDesheng, et al. Obstacle Detection of High-Speed Train in Snowfall Weather Based on Improved YOLOv5 [J]. Computer Simulation, 2025, 42 (1): 155-161, 451. in Chinese
WANGQianxuan, LIANGXifeng, LIUYinglong, et al. Visual Detection Method for the Invasion of Slowly Changing Foreign Matters to Railway Lines [J]. China Railway Science, 2014, 35 (3): 137-143. in Chinese
[21]
PERIĆS, MILOJKOVIĆM, STANS D, et al. Dealing with Low Quality Images in Railway Obstacle Detection System [J]. Applied Sciences, 2022, 12 (6): 3041.
CHENYong, LUChentao, WANGZhen. Detection of Railway Foreign Object Intrusion under Infrared Low Light Environment Based on Multi-Scale Dense Attention Network [J]. Journal of the China Railway Society, 2022, 44 (7): 63-71. in Chinese
[24]
LIANL R, CAOZ W, QINY, et al. RAE3D: Multiscale Aggregation-Enhanced 3D Object Detection for Rail Transit Obstacle Perception [J]. IEEE Transactions on Industrial Informatics, 2025, 21 (5): 4221-4232.
[25]
SHENT, ZHOUJ H, YUANT F, et al. LiDAR-Based Urban Three-Dimensional Rail Area Extraction for Improved Train Collision Warnings [J]. Sensors, 2024, 24 (15): 4963.
PANWenbo, LICheng, YUANXiwen, et al. Research on Lidar Target Detection for Metro Scene [J]. Electric Drive for Locomotives, 2022 (2): 89-96. in Chinese
[28]
LIUW T, WANGY F, YUG Z, et al. RailFusion: a Lidar-Camera Data Interaction Network for 3-D Railway Object Detection [J]. IEEE Transactions on Intelligent Transportation Systems, 2025, 26 (8): 12761-12773.
[29]
FANZ W, CHENGG Z, SUNT, et al. A Method for Railway Intrusion Objects Detection with LiDAR and Image Fusion [C]// Proceedings of the 2024 8th International Conference on Computer Science and Artificial Intelligence. Beijing: ACM, 2024: 39-44.
[30]
SHENT, XIEY X, YUANT F, et al. A Detection Methods with Image Recognition for Specific Obstacles in the Urban Rail Area [J]. IEEE Access, 2024, 12: 142772-142783.
HEQing, LIUZhen, WANGQihang, et al. Anomaly Detection of High-Speed Railway Inspection Images Based on Improved Skip-GAN [J]. Journal of the China Railway Society, 2024, 46 (9): 121-128. in Chinese
[33]
GAOY, CAOZ W, QINY, et al. Segmented-Aggregated Framework with Internal-External Constraint Mechanism for Unsupervised Track Anomaly Detection [J]. IEEE Transactions on Instrumentation and Measurement, 2025, 74: 2523612.
[34]
WANGG, HANS, DINGE, et al. Student-Teacher Feature Pyramid Matching for Anomaly Detection [C]// Proceedings of the British Machine Vision Conference. UK: BMVA, 2021.
[35]
COHENN, HOSHENY. Sub-Image Anomaly Detection with Deep Pyramid Correspondences [J]. arXiv:2005.02357 [cs.CV], 2020.
[36]
DEFARDT, SETKOVA, LOESCHA, et al. PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localization [C]// Pattern Recognition. ICPR International Workshops and Challenges. Cham: Springer International Publishing, 2021: 475-489.
[37]
RUDOLPHM, WANDTB, ROSENHAHNB. Same Same but DifferNet: Semi-Supervised Defect Detection with Normalizing Flows [C]// 2021 IEEE Winter Conference on Applications of Computer Vision (WACV). New York: IEEE Press, 2021: 1907-1916.
[38]
GUDOVSKIYD, ISHIZAKAS, KOZUKAK. CFLOW-AD: Real-Time Unsupervised Anomaly Detection with Localization via Conditional Normalizing Flows [C]// 2022 IEEE/CVF, CVF Winter Conference on Applications of Computer Vision (WACV). New York: IEEE Press, 2022: 1819-1828.
[39]
RUDOLPHM, WEHRBEINT, ROSENHAHNB, et al. Fully Convolutional Cross-Scale-Flows for Image-Based Defect Detection [C]// 2022 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV). New York: IEEE Press, 2022: 1829-1838.
[40]
YUJ, ZHENGY, WANGX, et al. FastFlow: Unsupervised Anomaly Detection and Localization via 2D Normalizing Flows [J]. arXiv:2111.07677 [cs.CV], 2021.
[41]
LIUZ, HUH, LINY, et al. Swin Transformer V2: Scaling up Capacity and Resolution [C]// 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). New York: IEEE Press, 2022: 11999-12009.
[42]
BERGMANNP, FAUSERM, SATTLEGGERD, et al. MVTec AD-a Comprehensive Real-World Dataset for Unsupervised Anomaly Detection [C]// 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). New York: IEEE Press, 2019: 9584-9592.
[43]
LEES, LEES, SONGB C. CFA: Coupled-Hypersphere-Based Feature Adaptation for Target-Oriented Anomaly Localization [J]. IEEE Access, 2022, 10: 78446-78454.