A research team has engineered an integrated computer vision framework that combines an adaptive illumination enhancement model with an ultra-lightweight object detection architecture to identify hazardous foreign objects lodged in the critical mechanical assemblies of operational high-speed trains. Operating data compiled across five consecutive years indicates that foreign object intrusions into vital high-speed train assemblies account for up to twenty-three percent of operational failures, presenting severe safety risks that can trigger emergency braking procedures, unscheduled train stoppages, and widespread disruptions across rail networks. The primary physical monitoring infrastructure deployed across railway lines is the trouble of moving EMU detection system, commonly known as TEDS, which captures trackside imagery as train sets pass inspection checkpoints. However, technical inspectors operating under strict operational protocols must manually analyze these massive photographic streams within an exacting fifteen-minute technical inspection window per train set. Human visual labeling under sustained high-pressure workloads frequently suffers from inconsistent judgment standards, high operational costs, and operational fatigue, creating an urgent operational requirement for reliable, automated detection algorithms capable of operating in real-time edge environments.
Deploying automated visual defect detection within operational railway corridors presents formidable technical hurdles due to severe environmental fluctuations and mechanical geometry. TEDS imaging sensors are permanently installed outdoors, exposing image capture systems to drastic day-to-night transitions, hostile weather conditions, and uneven environmental glare. These factors frequently produce severely underexposed, low-contrast, and noisy photographs of critical undercarriage areas, while mechanical components such as bottom plates, brake calipers, wheel shafts, car bodies, and sanding devices display densely packed mechanical structures and complex visual backgrounds. Existing object detection algorithms typically falter when processing small-scale foreign objects against visually cluttered metallic surfaces under poor illumination. Furthermore, railway engineering research has historically been constrained by a pronounced scarcity of publicly available, high-quality, annotated defect datasets specifically tailored to high-speed railway components. To resolve these intersecting performance barriers, the newly formulated framework establishes a two-stage decoupled processing pipeline comprising the adaptive brightness enhancement network, designated as ABEN, paired with the lightweight train foreign object detection network, designated as LTFD-Net.
The front-end illumination module, ABEN, incorporates the physical principles of classical Retinex theory into a dynamic neural network to normalize extreme illumination variances without human intervention or excessive latency. The core analytical engine of ABEN is its light condition learning module, or LCLM, which evaluates the ambient luminance profile of incoming railway imagery and routes each image along a tailored processing pathway. LCLM normalizes the input image using its global mean and standard deviation before estimating an initial reflection component through Gaussian filtering. To preserve critical textural and spatial details without incurring heavy computational burdens, LCLM extracts features from this reflection component using depthwise separable convolutions, followed by a dynamic channel attention mechanism that emphasizes channels most sensitive to luminance shifts. Global average pooling subsequently compresses these multidimensional spatial representations into a fixed-length global feature vector, which passes through a fully connected layer to compute a continuous scalar light score. During inference, this score is compared against a fixed decision threshold derived during model validation: images exceeding the threshold are identified as relatively bright and routed to a rapid denoising module, while images registering at or below the threshold are categorized as dark and directed into an advanced dark light enhancement module.
For images falling into the relatively bright category, conventional low-light boosting algorithms risk introducing distracting image noise and highlight overexposure, which degrades the detection accuracy of fine structural defects. To prevent this deterioration, ABEN processes bright images through a specialized fast denoising module that synthesizes nonlinear gamma correction and multi-scale Retinex algorithms via pixel-wise summation to simultaneously calibrate global contrast and restore natural color balance. The resulting fused image is immediately filtered through a five-by-five Gaussian kernel to suppress high-frequency noise introduced during luminance correction while safeguarding edge boundaries against over-smoothing. Chromatic consistency across color channels is further stabilized through point-wise convolutions and normalization based on local color statistics, followed by an unsharp masking operation utilizing a three-by-three convolutional kernel to accentuate subtle structural edges and small defect boundaries. Conversely, images routed to the dark light enhancement module are processed through a dual-branch architecture adapted from the illumination adaptive transformer. Its local branch deploys three local branch enhancement modules driven by depthwise separable convolutions and parameter-free simple attention modules to dynamically sharpen pixel-level structural details, while its global branch leverages cross-attention mechanisms over learnable query embeddings to compute an optimal three-by-three color transformation matrix and adaptive gamma parameters, resolving non-uniform shadows and restoring visibility across darkened train components.
Following visual enhancement, images are delivered directly to LTFD-Net, an efficient detector structured upon the foundational design principles of HGNetV2 and PANet to execute accurate localization of small foreign objects while operating under strict computational budgets. In standard convolutional backbones, parameter counts and floating-point operations expand rapidly as depth increases, causing elevated computational latency on edge hardware. To circumvent this limitation, the authors replaced conventional convolutions in the backbone with custom Ghost HGBlocks. Ghost convolution splits feature generation into three distinct stages: a primary one-by-one convolution compresses channel dimensionality to yield intrinsic feature representations, a series of cheap linear operations synthesizes secondary ghost feature maps from those representations, and channel concatenation accompanied by batch normalization and rectified linear unit activations merges both feature streams. Spatial pyramid pooling-fast is incorporated into the terminal layer of the backbone, executing parallel maximum pooling operations across receptive field kernel sizes of one, three, five, and seven to maximize multi-scale contextual aggregation without introducing significant computational delay.
To bolster detection capabilities against complex mechanical backgrounds and multi-scale defect profiles, the authors integrated a multi-dimensional feature enhancement module, termed MFEM, into the neck structure of LTFD-Net. MFEM captures comprehensive visual features by processing intermediate feature representations through three parallel pathways: a channel attention branch, a spatial attention branch, and a scale branch. In the channel attention branch, the input feature tensor undergoes dimension permutation to swap channel and spatial height dimensions, whereas the spatial attention branch permutes width and channel dimensions. Both branches subsequently apply global average pooling and global maximum pooling along the modified axes to compress spatial dimensions and extract comprehensive global statistics. Convolutional layers and sigmoid activation functions convert these aggregated vectors into dynamic attention weight coefficients, which dynamically scale the channel-wise and spatial feature maps before they are recombined through element-wise summation. By replacing rigid, static weighting schemes with learnable scaling factors that adapt during model training, MFEM amplifies critical defect regions and suppresses background visual interference while maintaining minimal parameter overhead.
To rigorously evaluate the framework under authentic high-speed railway conditions, the researchers constructed the high-speed train foreign object detection dataset, known as HTFD, comprising 3,904 defect images captured by operational TEDS line installations across five critical locomotive components. The annotated collection incorporates 932 defect instances on bottom plates, 1,086 on brake calipers, 982 on wheel shafts, 417 on car bodies, and 487 on sanding devices, accurately annotated with bounding boxes using LabelImg in standard YOLO formatting and split randomly into training, validation, and test subsets according to an 8:1:1 ratio. Because acquiring naturally paired low-light and normal-light images across dynamic high-speed railway environments is physically impractical, ABEN was trained on a synthetic pseudo-paired dataset. The investigators selected one hundred high-quality, normal-light reference images from HTFD, sampling twenty balanced examples from each component class, and generated corresponding degraded low-light counterparts by applying randomized gamma transformations between 1.8 and 2.8, brightness attenuation factors between 0.45 and 0.75, contrast compression factors between 0.85 and 0.98, and mild Gaussian noise perturbations with standard deviations ranging from 0.01 to 0.03.
Experimental validation was executed on an Ubuntu 20.04 computing environment utilizing the PyTorch software framework, driven by an Intel Xeon Silver 4210 central processor clocked at 2.20 gigahertz and dual NVIDIA RTX 2080Ti graphics processing units. Model training proceeded over 300 epochs with a batch size of 64, an initial learning rate of 0.01, a weight decay coefficient of 0.0005, and mosaic data augmentation applied at a coefficient of 1.0 on images resized to 640 by 640 pixels. In dedicated low-light image enhancement benchmarks against established methods, ABEN attained a peak signal-to-noise ratio of 39.7 decibels and a structural similarity index of 84.5, outperforming comparative algorithms including gamma correction, zero-reference deep curve estimation, LIME, URetinex-Net, and dual-illumination adjustment. ABEN achieved an approximate 23 percent improvement in contrast enhancement over conventional gamma correction and dual-illumination methods, delivered a 24.1 percent reduction in image noise, and maintained a rapid per-frame processing latency of only 0.013 seconds, establishing its capacity to enhance visual inputs without bottlenecking downstream detection systems.
When assessed on the HTFD test benchmark, the integrated LTFD-Net framework achieved an overall mean average precision of 0.854 while maintaining an inference speed of 112 frames per second. This detection accuracy surpassed YOLOv11 by 1.6 percentage points, YOLOv8 by 5.8 percent, YOLOv5 by 6.0 percent, and improved precision by more than 22 percent relative to Faster R-CNN. Crucially, LTFD-Net required only 2.9 million parameters—an 85 percent reduction in parameter volume compared to YOLOv11—and operated at a computational complexity of 7.5 gigaoctet floating-point operations, representing a 98.5 percent decrease compared to Faster R-CNN and a 73.4 percent decrease compared to SSD. While YOLOv5 recorded a marginally higher processing speed of 113 frames per second, LTFD-Net demonstrated markedly superior precision. Component-level precision varied across mechanical assemblies: foreign objects on car bodies attained the highest average precision at 0.892 due to smooth surfaces and clear boundary separation, whereas brake calipers registered an average precision of 0.836, reflecting the perceptual challenges posed by dense mechanical components, deep shadows, and visually complex bogie geometry.
Comprehensive ablation experiments verified the isolated performance contributions of each architectural module within the LTFD-Net design. Transitioning the baseline backbone from CSPDarknet11 to HGNetv2 elevated mean average precision from 0.783 to 0.804, while incorporating spatial pyramid pooling-fast further raised precision to 0.814. Introducing Ghost convolution reduced the parameter count to 2.7 million—a 31 percent parameter reduction relative to baseline HGNetv2—while preserving a high detection precision of 0.805. Integrating MFEM boosted precision to 0.834, outperforming comparative attention mechanisms including squeeze-and-excitation, efficient channel attention, convolutional block attention modules, and large separable kernel attention. Coupling the finalized LTFD-Net detector with ABEN yielded an ultimate precision of 0.854. Evaluated across partitioned illumination subsets of the HTFD test set containing 238 low-light images and 144 normal-light images, ABEN integration delivered a 0.031 precision gain under low-light conditions alongside a 0.009 improvement under normal lighting. When tested on the independent NEU-DET industrial steel plate surface defect benchmark comprising 1,800 images across six defect categories, standard LTFD-Net registered 0.765 mean average precision at 110 frames per second, while a width-scaled variant designated LTFD-Net* achieved 0.783 mean average precision at 97 frames per second. The authors noted that future deployments must address domain gaps stemming from synthetic degradation training, non-uniform metallic reflections, high-speed train motion blur, and adverse weather conditions encountered along operational railway networks.
Subject of Research: Real-time foreign object defect detection in high-speed railway components under variable illumination
Article Title: A lightweight foreign object detection framework for high-speed trains with adaptive illumination enhancement
Article References: Lin, H., Li, J., Liu, B., & Li, X. (2026). A lightweight foreign object detection framework for high-speed trains with adaptive illumination enhancement. Railway Engineering Science. https://doi.org/10.1007/s40534-026-00445-4
Image Credits: AI Generated
DOI: 10.1007/s40534-026-00445-4
Keywords: high-speed trains, foreign object detection, railway safety, trouble of moving EMU detection system, adaptive brightness enhancement network, lightweight train foreign object detection network, Retinex theory, depthwise separable convolution, channel attention mechanism, multi-dimensional feature enhancement module, Ghost convolution, spatial pyramid pooling-fast, HTFD dataset, NEU-DET dataset, image denoising, computer vision, real-time defect detection
News Source: Denise Maddox. (November 26, 2026). Dual-Network Framework Achieves Real-Time Foreign Object Detection on High-Speed Trains. Scienmag.



