Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Aug 6;20(8):e0329303.
doi: 10.1371/journal.pone.0329303. eCollection 2025.

Automatic detection of foreign object intrusion along railway tracks based on MACENet

Affiliations

Automatic detection of foreign object intrusion along railway tracks based on MACENet

Xichun Chen et al. PLoS One. .

Abstract

Ensuring high accuracy and efficiency in foreign object intrusion detection along railway lines is critical for guaranteeing railway operational safety under limited resource conditions. However, current visual detection methods generally exhibit limitations in effectively handling diverse object shapes, scales, and varying environmental conditions, while typically incurring substantial computational overhead. To overcome these limitations, this study proposes a multi-level feature aggregation and context enhancement network (MACE-Net). The network architecture integrates the GOLD-YOLO module, an advanced object detection approach, alongside the updated deformable convolutional networks (DCNv3). The incorporation of DCNv3 allows the model to dynamically adapt its sampling positions according to actual object shapes, significantly enhancing feature extraction accuracy, especially for irregularly shaped intrusions. Additionally, the convolutional block attention module (CBAM) is employed to refine spatial and channel-wise feature representation, enabling the model to emphasize crucial object characteristics without substantially increasing computational complexity. Meanwhile, to improve localization robustness, the generalized intersection over union (GIoU) loss function is implemented, offering more reliable detection across various object sizes and shapes. Furthermore, to address the shortage of domain-specific datasets, we created a railway intrusion dataset comprising 7,200 images. Experimental results demonstrate that MACE-Net achieves superior detection performance, improving mAP@0.5 from 78.9% (baseline YOLOv8) to 83.8%-a notable increase of 4.9%. Meanwhile, the F1-score also rises by 5.2%. Importantly, despite significant accuracy gains, MACE-Net maintains computational efficiency similar to that of the baseline, affirming its suitability for real-time railway foreign object detection tasks under constrained energy and computational environments.

PubMed Disclaimer

Conflict of interest statement

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Figures

Fig 1
Fig 1. Multi-level feature aggregation and context enhancement network.
Fig 2
Fig 2. Architecture of GOLD-YOLO.
Fig 3
Fig 3. Low-stage gather-and-distribute branch.
Fig 4
Fig 4. High-stage gather-and-distribute branch.
Fig 5
Fig 5. Standard convolution kernel and deformable convolution kernel.
Fig 6
Fig 6. Schematic diagram of the structure perception module.
(a) illustration of DCNv3; (b) illustration of C2f_DCNv3.
Fig 7
Fig 7. Architecture of CBAM.
Fig 8
Fig 8. Diagram of IoU ratio.
Fig 9
Fig 9. Illustration of the dataset.
Fig 10
Fig 10. Performance comparison of mainstream detection models for railway intrusion detection.
Fig 11
Fig 11. Visualized railway intrusion detection results of comparative models.
Fig 12
Fig 12. Examples of false-positive and false-negative detections.

Similar articles

References

    1. Ning S, Ding F, Chen B. Research on the method of foreign object detection for railway tracks based on deep learning. Sensors (Basel). 2024;24(14):4483. doi: 10.3390/s24144483 - DOI - PMC - PubMed
    1. Zhang Z, Chen P, Huang Y, Dai L, Xu F, Hu H. Railway obstacle intrusion warning mechanism integrating YOLO-based detection and risk assessment. J Indust Inf Integrat. 2024;38:100571.
    1. Wang J, Zhai H, Yang Y, Xu N, Li H, Fu D. A review of intrusion detection for railway perimeter using deep learning-based methods. IEEE Access. 2024.
    1. Song X, Song H, Wang H, Zhang Z, Dong H. Deep learning-based railway foreign object intrusion intelligent perception using attention-aggregated semantic segmentation. IEEE/ASME Trans Mechatron. 2024.
    1. Cao Z, Qin Y, Jia L, Xie Z, Gao Y, Wang Y. Railway intrusion detection based on machine vision: a survey, challenges, and perspectives. IEEE Trans Intell Transp Syst. 2024.

LinkOut - more resources