Next Article in Journal
Energy Consumption and Carbon Emission Prediction of District Heating System in Residential Communities Based on SSA-LSTM Model
Previous Article in Journal
Experimental Assessment of Human–Structure Interaction in an Urban Pedestrian Footbridge with Multiaxial Dynamic Sensitivity
Previous Article in Special Issue
CNN Bearing Fault Diagnosis Based on Symmetric Point Pattern Feature Fusion with Multi-Source Resonance Sparse Components
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Industrial Anomaly Detection and Fault Grade Assessment for Railway Catenary Components Based on Diffusion Models

The School of Electrical Engineering, Southwest Jiaotong University, Chengdu 610031, China
*
Author to whom correspondence should be addressed.
Sensors 2026, 26(15), 4783; https://doi.org/10.3390/s26154783
Submission received: 27 May 2026 / Revised: 1 July 2026 / Accepted: 20 July 2026 / Published: 28 July 2026
(This article belongs to the Special Issue AI-Enabled Smart Sensors for Industry Monitoring and Fault Diagnosis)

Abstract

As a critical component of electric railways, catenary systems are prone to cracks, loosening, corrosion, and wear under long-term vibration, fatigue, and environmental erosion. However, ambiguous fault boundaries, large inter-component variations, and tiny defects severely hinder reliable anomaly detection and condition assessment. To address these challenges, this paper proposes a vision-based intelligent fault assessment framework for railway catenary components based on a novel Railway Diffusion-based Anomaly Detection (Rail-DiffAD) model. Specifically, Rail-DiffAD combines residual feature mapping, a Multi-scale Partial Convolutional Spatial-Channel Attention (MPSCA) module with Log-Barrier Bi-directional Constraint Loss (LBBCL), and conditional diffusion-based distribution modeling to achieve robust anomaly localization in complex industrial scenarios. Furthermore, a severity-aware diffusion representation is introduced to characterize structural defect evolution, and a multi-physics fault assessment framework integrating mechanical response, corrosion evolution, and stress concentration analysis is established for quantitative fault grading and maintenance decision-making. Experiments on a real catenary dataset covering 10 component categories demonstrate that the proposed framework achieves a 0.953 image-level AUROC and a 0.957 pixel-level AUROC, outperforming existing methods while maintaining strong cross-component generalization and providing quantitative fault grading support for intelligent railway catenary maintenance.

1. Introduction

The catenary is a critical power supply component of electric railways (Figure 1), and its structural and electrical integrity directly determines the reliability of train power transmission [1,2,3,4]. Under harsh service conditions, long-term vibration, mechanical fatigue, and environmental erosion accelerate the performance degradation of catenary components, leading to typical defects such as insulator cracking, fastener loosening, and surface wear [5,6,7]. These defects not only degrade electrical transmission performance but also threaten the operational safety and maintenance reliability of high-speed railways.
Accurate identification and severity assessment of catenary anomalies are prerequisites for intelligent condition-based maintenance. However, practical inspection systems still face several challenges, including tiny localized defects, ambiguous boundaries between normal degradation and structural faults, scarce abnormal samples, and the lack of physically interpretable fault severity indicators. Existing vision-based methods mainly focus on anomaly localization while overlooking the evolution characteristics and operational risks associated with detected defects.
Currently, visual anomaly detection (VAD) methods are categorized into three main types: reconstruction-based, feature embedding-based, and distribution modeling-based approaches [8,9,10,11], which have been widely applied in industrial inspection [12,13,14,15].
Reconstruction-based methods (e.g., autoencoders, variational autoencoders, GANs) identify anomalies by reconstructing normal samples [16,17] and measuring input-reconstruction discrepancies [18]. These methods offer intuitive interpretability for homogeneous textures but fail to detect fine-grained catenary defects due to reconstruction loss-induced detail disappearance [19].
Feature embedding-based approaches (e.g., PaDiM, PatchCore) [20,21,22] leverage pre-trained deep features and similarity metrics for anomaly discrimination. They achieve high accuracy but suffer from performance degradation caused by intra-class feature variations and distribution shifts across catenary components.
Distribution modeling-based techniques (e.g., normalizing flow models) [23] estimate the probability density of normal features for rigorous anomaly localization. However, their strict invertibility constraints lead to high computational costs and limited scalability for multi-modal catenary scenarios.
Moreover, existing catenary inspection studies primarily focus on defect detection and classification, while insufficient attention has been paid to quantitative fault severity assessment and physically interpretable maintenance analysis. In practical railway systems, maintenance decisions depend not only on anomaly localization but also on the estimated impact of defects on structural stability, corrosion evolution, and operational safety. Therefore, establishing a unified framework that bridges visual anomaly features with physical fault assessment remains an important challenge for intelligent railway maintenance [24,25,26].
To address these challenges, this paper proposes an intelligent fault assessment framework for railway catenary systems based on a novel Railway Diffusion-based Anomaly Detection (Rail-DiffAD) model. The framework combines residual-guided anomaly representation, diffusion-based feature distribution modeling, and severity-aware fault assessment to achieve robust anomaly localization and physically interpretable condition evaluation. Furthermore, visual anomaly indicators are integrated with mechanical response and corrosion evolution mechanisms to support quantitative maintenance-oriented fault grading.
The main contributions of this work are as follows:
(1) A residual mapping-based feature learning mechanism is introduced to mitigate inter-category differences via normal sample alignment, highlight anomaly deviations, and improve cross-component generalization for railway catenary inspection.
(2) A multi-scale partial convolutional spatial-channel attention (MPSCA) module combined with a Log-barrier Bi-directional Constraint Loss (LBBCL) is proposed to enhance fine-grained anomaly localization and dynamically constrain feature distributions under complex industrial backgrounds.
(3) A severity-aware fault assessment strategy is established by integrating diffusion-guided anomaly evolution with visual anomaly indicators, enabling quantitative evaluation of contact force deviation, corrosion degradation, and structural failure risk for intelligent maintenance decision-making.

2. Related Work

2.1. Vision-Based Catenary Inspection and Anomaly Detection

Railway catenary components operate under long-term vibration, cyclic loading and environmental erosion, making them vulnerable to defects such as insulator cracking, clamp loosening, and contact wire wear. These defects usually exhibit tiny localized regions, ambiguous boundaries, and strong background interference, posing challenges for intelligent inspection.
Existing vision-based inspection approaches mainly include supervised object detection and unsupervised anomaly detection methods. Traditional detectors (e.g., Faster R-CNN, YOLO) [27,28] rely heavily on large-scale annotated defect datasets, which are difficult to obtain for random catenary faults [29]. In addition, repeated downsampling operations often weaken micro-texture details, reducing sensitivity to subtle defects.
Unsupervised and weakly supervised methods [30,31,32] alleviate annotation dependence by modeling normal feature distributions through reconstruction, feature embedding, or probabilistic estimation. However, their performance on catenary inspection is still limited by inter-component appearance variations, scarce abnormal samples, and complex outdoor environments.
Cross-component generalization is another major challenge [33,34]. Traditional single-class models [35,36] require separate training for different components, resulting in high deployment cost and poor adaptability. Meanwhile, generalized feature extractors and semantic models [37,38] often overlook fine-grained defects such as microcracks and early-stage corrosion. Therefore, achieving robust anomaly detection with strong cross-component adaptability remains an important issue for practical catenary inspection.

2.2. Fault Assessment and Maintenance-Oriented Analysis

Recent studies have increasingly focused on fault severity assessment and maintenance-oriented analysis for railway infrastructure. Traditional catenary maintenance mainly relies on manual inspection and periodic measurements of mechanical or electrical parameters, which are labor-intensive and difficult to support continuous monitoring [39,40,41,42].
Existing assessment methods mainly involve mechanical response analysis, corrosion evolution modeling, and structural reliability evaluation [43]. Mechanical studies analyze pantograph-catenary interaction through contact force and vibration variation, while corrosion and fracture studies investigate material degradation and crack propagation under long-term environmental exposure. However, these methods usually depend on manually measured physical parameters and are difficult to integrate with vision-based inspection results in practical railway scenarios.
Current vision-based approaches mainly provide qualitative anomaly localization, lacking quantitative severity evaluation and maintenance decision support. Therefore, integrating visual anomaly information with physical fault evolution mechanisms remains essential for intelligent catenary maintenance.

3. Method

To address the challenges of catenary anomaly detection, this paper proposes Rail-DiffAD, a diffusion-driven fault identification framework integrating residual feature learning, feature constraint optimization, and diffusion-based distribution modeling. As shown in Figure 2, the framework combines a multi-scale partial convolutional spatial-channel attention (MPSCA) module with a log-barrier bidirectional constraint loss (LBBCL) to enhance anomaly-sensitive representations and suppress cross-category interference.
First, normal samples are used to construct a reference feature pool via a pre-trained feature extractor. Residual features are then generated through nearest-neighbor matching to suppress category-specific variations and highlight anomaly deviations.
Second, the residual features are refined within a radius-constrained latent space. LBBCL compactly constrains normal feature distributions while repelling abnormal features from the decision boundary, improving feature separability.
Finally, the refined features are fed into a conditional diffusion estimator, where progressive noise perturbation and reverse denoising are employed to model normal feature distributions and identify anomalous deviations.

3.1. Residual Feature Generation for Cross-Category Variation Mitigation

To mitigate category-specific patterns that weaken cross-component generalization, a feature learning approach based on residual mapping is introduced. Residual mapping suppresses category-specific patterns by comparing input features with normal references, thereby highlighting anomaly-related deviations. For a given input image x R H × W × 3 , we employ a pre-trained feature extraction network to extract features from multiple levels:
F l ( x ) R C l × H l × W l , l = 1 , , L
where F l ( x ) denotes the feature map extracted at layer l, and C l , H l , W l represent the number of channels, height, and width, respectively.
A reference feature pool composed of normal samples is constructed for each feature level.
For the feature vector f l ( x ) ( h , w ) R C l at position ( h , w ) in the input image, we retrieve the most similar standard feature vector from the reference pool M l :
f l r e f = a r g m i n f M l | | f l ( x ) ( h , w ) f | | 2
We then define its residual feature representation as
R l ( x ) ( h , w ) = f l ( x ) ( h , w ) f l r e f
To further suppress redundant interference and enhance local anomaly responses, the MPSCA module is introduced for feature refinement.

3.2. Innovative Feature Refinement: MPSCA Module and LBBCL Loss

To further suppress complex background interference and benign texture fluctuations, a multi-scale partial convolutional spatial-channel attention (MPSCA) module is introduced.

3.2.1. Multi-Scale Partial Convolutional Spatial-Channel Attention (MPSCA) Module

The HalfConv module applies local convolution to partial channels while preserving the remaining channels for global structure retention.
Since catenary anomalies are typically distributed in local regions, partial convolution enhances local anomaly sensitivity while preserving global structural information.
The Spatial-Channel Attention (SCA) module (Figure 3a) synergizes Spatial-wise Self-Attention (SSA) and Channel-wise Self-Attention (CSA) to enhance critical spatial regions and channel-wise informative features simultaneously.
Spatial-wise self-attention (SSA) is introduced to enhance anomaly-sensitive regions under complex background interference. Specifically, directional pooling is first applied to the feature map [44]. Multi-scale convolution and directional pooling are jointly adopted to enhance anomaly-sensitive spatial dependencies.
Channel-wise self-attention (CSA) further enhances cross-component feature discrimination by adaptively modeling channel dependencies.
Together, SSA and CSA refine residual features into more discriminative representations for subsequent diffusion-based anomaly modeling [13,14,45].

3.2.2. Log-Barrier Bi-Directional Constraint Loss

To further enhance the spatial separability of normal and abnormal residual features, we propose the Log-Barrier Bi-directional Constraint Loss (LBBCL). LBBCL constructs a soft hypersphere boundary in latent space, where normal features are compactly constrained while abnormal features are repelled outward to enhance feature separability.
Let the input feature vector be f i R d , and the sample mask m i is defined as follows: m i = 0 (normal sample), m i = 1 (abnormal sample). The feature radius A i is computed from the feature norm and used to characterize the distance between the sample feature and the normal feature center.
The logarithmic barrier constrains normal features within a compact radius interval. A logarithmic barrier function is introduced to penalize samples outside this interval:
L n = E m i = 0 [ l o g σ ( ( A i r m a x ) ) · e ( A i r m a x ) l o g σ ( ( r m i n A i ) ) · e ( r m i n A i ) ]
where σ ( · ) is the sigmoid function.
Abnormal features are pushed away from the normal boundary while preserving structural consistency. The abnormal loss includes two terms: feature invariance and outward boundary constraint:
L a = E m i = 1 [ F i F i t a r g e t | | 2 2 + 1 cos ( F i , F i t a r g e t ) l o g σ ( ( r b A i ) ) · e ( r b A i ) ]
Here, F i t a r g e t is the target feature after abnormal sample space alignment; the first two terms form the anomaly invariance loss, while the last logarithmic barrier term pushes abnormal features away from the boundary ( r b = r m a x + δ , δ is a small constant, e.g., 0.05). The overall LBBCL is defined as
L L b b c l = L n + L a
This enables separable feature distribution modeling in the latent space, providing high-quality constrained features for the subsequent diffusion-based feature distribution estimator.
It should be noted that the LBBCL loss leverages sample labels during the training stage to construct discriminative feature boundaries: normal samples ( m i = 0 ) are compactly constrained within the hypersphere, while abnormal samples ( m i = 1 ) are repelled outward. However, once trained, the model requires only a small set of normal reference samples to construct the feature pool for any new component category, without needing anomaly annotations on the target categories.

3.3. Diffusion Model-Based Feature Distribution Estimator for Anomaly Detection

To robustly model the complex feature distributions of catenary components, a diffusion-based feature distribution estimator is introduced.
As shown in Figure 2C, the proposed estimator progressively learns the latent distribution of normal features through iterative denoising, enabling stable anomaly discrimination under multi-modal catenary feature distributions [46].

3.3.1. Forward Diffusion with Cosine Scheduling for Catenary Features

For the input feature vector x R d , the forward diffusion process progressively perturbs features into Gaussian noise:
q ( x t | x , t ) = α t x + 1 α t ϵ , ϵ N ( 0 , I )
where t 1 , , T denotes the diffusion time step, α t = s = 1 t ( 1 β s ) controls the noise attenuation rate, and β s is a noise intensity parameter that increases gradually.
A cosine scheduling strategy is adopted to stabilize noise evolution across different catenary feature distributions.

3.3.2. Conditional Denoising Predictor with Transformer Backbone

Based on the noisy feature distribution, a conditional denoising predictor (whose detailed structure is illustrated in Figure 4) is employed to estimate noise distributions under multi-category catenary priors.
A Transformer-based conditional interaction mechanism [47] is adopted to improve cross-component feature modeling, and a gating fusion strategy is introduced to enhance abnormal distribution deviations:
x ˜ = g h ( x , t , c ) + ( 1 g ) r ( x , t ) , g = σ ( W [ h ( x , t , c ) , r ( x , t ) ] )
where h ( · ) represents the deep features extracted by the Transformer, r ( · ) is the residual branch, and g is the gating function.
The gating mechanism enhances abnormal distribution deviations while maintaining stable normal feature reconstruction.

3.3.3. Multi-Component Loss for Fine-Grained Anomaly Sensitivity

To further improve the model’s ability to distinguish fine-grained anomalies, we designed a multi-component loss function to guide training, aligning with the noise prediction objective of the reverse denoising process:
L df = | | ϵ ^ ϵ | | 2 2 MSE + λ 1 ( 1 cos ( ϵ ^ ϵ ) ) Cosine + λ 2 | | ϵ ^ | | 2 2 Reg
where ϵ ^ is the predicted noise, and ϵ is the true noise. MSE ensures the accuracy of noise prediction, Cosine Loss enhances directional consistency, and the regularization term is used to prevent overfitting. Meanwhile, we introduced category-adaptive weights, assigning higher weights to losses from abnormal samples to enhance sensitivity to fine-grained anomalies such as micro-cracks and stamp wear.
Through residual feature alignment, constrained feature refinement, and diffusion-based distribution estimation, Rail-DiffAD achieves robust anomaly characterization for multi-category catenary components and provides reliable anomaly representations for subsequent fault severity assessment.

3.4. Inference and Anomaly Scoring via Diffusion-Guided Noise Error

In the reasoning stage, after the input image is extracted with multi-level features by the encoder, it is matched with the normal features in the reference feature pool to generate residual features e ˜ l ; this residual feature further enhances the anomaly sensitivity through the feature constraint module and is then input into the diffusion model. During the forward diffusion and noise prediction process at time step t, normal features can be accurately restored by the diffusion model to the noise distribution, while abnormal features will cause significant prediction deviations. Based on this characteristic, the anomaly score is uniformly defined as the expected noise prediction error in multiple time steps:
S ( x ) = E l = 1 L E t U ( 1 , T ) | | ϵ ^ θ α t ¯ e ˜ l + 1 α t ¯ ϵ , t ϵ | | 2 2
where e ˜ l is the residual feature of the l-th layer, ϵ N ( 0 , I ) is gaussian noise, and ϵ ^ is the noise prediction period of the diffusion model. Ultimately, the larger the score S ( x ) , the higher the possibility that there are abnormal components in the input image.

3.5. Severity-Aware Diffusion Indicator for Fault Assessment

Although the anomaly score S ( x ) reflects the overall deviation between the predicted noise and the normal feature distribution, relying solely on averaged diffusion errors may overlook the temporal evolution characteristics of anomalies across diffusion steps. In practical railway catenary inspection, defects with different severity levels often exhibit distinct noise evolution patterns during the diffusion process.
To characterize the structural severity of anomalies, this paper further introduces a severity-aware diffusion indicator based on multi-time-step noise prediction trajectories:
V ( x ) = t = 1 T t · | | ϵ ^ t ϵ t | | 2 2 t = 1 T | | ϵ ^ t ϵ t | | 2 2 · S ( x )
where ϵ ^ t and ϵ t denote the predicted and ground-truth noise at diffusion step t, respectively.
The proposed indicator measures the temporal centroid of diffusion reconstruction errors and reflects the evolution tendency of anomaly deviations throughout the diffusion process. Since larger diffusion steps correspond to higher-noise reconstruction stages, larger values of V ( x ) indicate that significant prediction errors persist even under severe diffusion perturbations, implying stronger structural inconsistencies and more severe defects. In contrast, smaller values are generally associated with shallow surface anomalies that introduce only limited structural disturbance. Thus, V ( x ) provides a severity-aware characterization that complements anomaly localization for downstream fault assessment.

3.6. Components Fault Assessment

Unlike conventional anomaly detection frameworks that only provide anomaly localization, Rail-DiffAD further utilizes diffusion-aware anomaly representations for downstream fault severity assessment and maintenance-oriented decision support.
The evolution of anomaly of catenary components is closely associated with the dynamic mechanical behavior of the pantograph-catenary system and the corrosion-induced aging of materials. Using the anomaly masks and anomaly scores output by Rail-DiffAD, a quantitative assessment model is established that integrates mechanical responses and corrosion damage. This model combines pantograph-catenary dynamics, corrosion kinetics, and fracture mechanics theories to theoretically link anomaly features with operational safety [48,49,50].
The coefficients in the following formulations are calibrated from industry standards and pantograph-catenary dynamics analysis, and their specific values and sources are presented in the experimental section later.

3.6.1. Visual-Mechanical Coupled Fault Assessment

The stability of the contact force serves as a core indicator for evaluating the operational status of the catenary. Anomalies such as loosened positioning clamps and failed droppers can alter the suspension stiffness, leading to deviations in contact force. A surrogate contact-force deviation indicator is constructed by coupling visual anomaly features with mechanical priors:
Δ F visual = k α · V ( x ) + k β · ρ + k γ · δ vis
Here, k α , k β , and k γ are weighting coefficients that quantify the contributions of structural defect severity, anomaly spatial extent, and geometric deformation to contact force deviation, respectively. These coefficients are calibrated from pantograph-catenary dynamic interaction analysis and catenary design standards, with their specific values given in Section 4.
V ( x ) denotes the severity-aware diffusion indicator, ρ is the spatial anomaly ratio from the predicted anomaly mask, and δ vis is the visually estimated structural deformation magnitude. Larger values of these three terms lead to larger Δ F visual , reflecting more severe anomalies and greater contact force instability.

3.6.2. Corrosion Damage Evolution

Metal components exposed to the outdoor environment for extended periods are prone to electrochemical corrosion, which leads to cross-sectional reduction and strength attenuation. This study integrates visual anomaly features into the corrosion evolution model to realize quantitative assessment:
D corr ( t ) = D 0 · e ( k corr + k F | Δ F visual | ) t + η c · ρ · V ( x )
In these expressions, D corr ( t ) is the cumulative corrosion depth, D 0 is the initial corrosion depth, k corr is the corrosion rate coefficient, and η c is an empirical corrosion acceleration coefficient that amplifies corrosion progression under severe visual anomalies.
The anomaly-aware term is introduced as an empirical degradation factor to characterize accelerated corrosion tendencies under severe structural anomalies.
The contact force deviation Δ F visual is introduced as a dynamic acceleration factor for corrosion evolution, reflecting the physical mechanism whereby unstable pantograph-catenary interaction intensifies vibration-induced material fatigue and corrosion propagation.

3.6.3. Stress Concentration and Failure Risk Analysis

Under long-term dynamic loading, structural defects may induce local stress concentration and increase the risk of crack expansion and fracture. Based on a simplified engineering beam model, a correlation between visual crack features and mechanical stress is established:
Δ σ vis = Δ F visual · L W · ( H D corr ( t ) )
Here, Δ σ vis denotes the equivalent stress amplitude estimated from visual anomaly indicators and corrosion-aware structural degradation. Larger corrosion depth D corr ( t ) reduces the effective bearing area and further amplifies stress concentration around crack regions. Larger Δ F visual and deeper corrosion degradation lead to higher equivalent stress amplitudes, indicating increased structural failure risk.
This section establishes a quantitative fault assessment framework for catenary components through multi-physics visual-mechanical coupling models. By linking diffusion-based anomaly representations with mechanical response and corrosion evolution mechanisms, the framework extends anomaly detection toward physically interpretable service safety assessment and maintenance decision support. The proposed fault severity grading strategy further provides actionable quantitative guidance for intelligent catenary operation and maintenance.

4. Experimental Results and Analysis

This section presents the experimental dataset, implementation details, evaluation metrics, and performance analysis. The effectiveness of Rail-DiffAD for railway catenary component anomaly detection is validated on a real-world catenary inspection dataset, as illustrated in Figure 5.

4.1. Experimental Setup

4.1.1. Experimental Data and Parameter Settings

Original catenary images were acquired using a portable autonomous inspection trolley under operational railway conditions. Component regions were cropped from the raw images via a component localization model based on predicted bounding boxes, yielding individual component samples for subsequent annotation.
The dataset covers 10 typical catenary component categories with multiple defect types including cracks, loosening, and component missing. Representative categories such as casing base, insulator, locator base, sleeve double ear, and screw clamp were selected to cover diverse materials, scales, and structural types. Pixel-level ground-truth masks were generated using the Segment Anything Model (SAM), where each cropped component region was refined by SAM and padded with a black background to ensure annotation completeness. To enhance model robustness against complex interference, additional challenging samples containing stamp marks, uneven surface regions, and real fracture areas were incorporated. Detailed statistics are listed in Table 1.
The five categories selected for training are casing base, insulator, locator base, sleeve double ear, and screw clamp, which span distinct materials, scales, and structural types. The remaining five categories are reserved for testing. During training, only normal samples from the selected categories are used to learn the feature distribution of defect-free components, while both normal and abnormal samples from all 10 categories are used at test time to evaluate detection performance and cross-category generalization.

4.1.2. Experimental Details

All images are resized to 224 × 224. WideResNet50 is adopted as the frozen feature extractor using features from layers [1,2,3]. The diffusion module employs a 3-layer Transformer Block with 4 attention heads and a hidden dimension of 256. The model is trained using the Adam optimizer for 100 epochs with a batch size of 96, a weight decay of 5 × 10 4 , and an initial learning rate of 1 × 10 5 , which decays after the 10th epoch.
The experimental software and hardware configuration are as follows: (1) CPU: Intel(R) Xeon(R) CPU E5-2697A v4, 2.60 GHz; (2) GPU: Nvidia Rtx4090 GPU; (3) Operating system: Ubuntu 22.04.3 LTS; (4) Code environment: Pytorch 2.0.0, Python 3.8.20; (5) Cuda version: CUDA-11.8, cuDNN-8.7.0.

4.1.3. Experimental Evaluation Index

The anomaly detection task is formulated as a binary classification problem, where abnormal and normal samples correspond to positive and negative classes, respectively. Model performance is measured by Precision, Recall, and F1-score, which are defined as follows:
P r e c i s i o n = T P ( T P + F P ) , R e c a l l = T P ( T P + F N )
where TP, FP, and FN represent true positives, false positives, and false negatives, respectively. Additionally, the area under the receiver operating characteristic curve (AUROC) is adopted to evaluate the overall discrimination capability of the model under different decision thresholds. The AUROC characterizes the trade-off between the true positive rate (TPR) and false positive rate (FPR), where higher values indicate stronger separability between normal and abnormal samples.

4.2. Analysis of Experimental Results

4.2.1. Comparative Analysis of Detection Performance

To fully verify the effectiveness of Rail-DiffAD in the anomaly detection task of railway catenary components, Table 2 presents a dedicated dataset covering 10 typical catenary components, with AUROC, AP, and F1-Score as the core evaluation metrics.
Performance comparisons were conducted with classic/advanced anomaly detection methods such as SSIM-AE, GANomaly, DRAEM, PatchCore, UniAD, and AA-CLIP, and all comparison methods adopted the original recommended parameters and training processes to ensure fairness. The average test results of the catenary components are shown in Table 2.
Table 2 compares Rail-DiffAD with representative anomaly detection methods on the proposed catenary dataset. Reconstruction-based methods (e.g., SSIM-AE and GANomaly) show relatively weak performance under large inter-category appearance variations and fine-grained defects. Discriminative methods such as DRAEM achieve improved localization ability but still exhibit limited robustness to complex catenary textures.
Compared with advanced baselines including UniAD and AA-CLIP, Rail-DiffAD achieves competitive or superior performance across most evaluation metrics, reaching 0.953/0.957 in I-AUC/P-AUC and 0.956/0.394 in I-AP/P-AP. Specifically, Rail-DiffAD surpasses UniAD by 2.4% in I-AUC, 3.1% in P-AUC, and 7.4% in P-AP, demonstrating the effectiveness of residual feature alignment and diffusion-based distribution modeling for pixel-level anomaly localization. It should be noted that UniAD achieves a marginally higher F1-score (0.929 vs. 0.917), indicating that Rail-DiffAD’s strength lies primarily in localization precision rather than image-level classification alone.

4.2.2. Per-Component Detection Analysis

Table 3 presents the per-category detection performance of Rail-DiffAD across all 10 catenary component categories. The I-AUC ranges from 0.865 on the screw clamp to 0.997 on the connector sleeve, and the P-AUC from 0.867 to 0.995, yielding category-averaged scores of 0.953 and 0.957, respectively. Most categories achieve both an I-AUC and P-AUC above 0.94, while the comparatively modest scores on the screw clamp and the double ear can be attributed to the intrinsic challenge of resolving fine-grained defects on small metallic surfaces. Notably, the per-component metrics remain stable across a wide spectrum of component types, covering materials from ceramic to galvanized steel and geometries from tubular insulators to threaded fasteners, which substantiates the cross-category generalization capability of the proposed Rail-DiffAD framework.

4.2.3. Computational Efficiency Analysis

Table 4 compares the computational complexity of Rail-DiffAD with baseline methods. All measurements were conducted on the same hardware platform with an input resolution of 224 × 224 pixels. Rail-DiffAD incurs a relatively long inference time of 631.0 ms per image and a large FLOPs count of 363.6 G, both of which arise from the 200-step iterative denoising process inherent to diffusion-based generative modeling. These computational overheads constitute the primary limitation of the proposed framework.
Future work will explore acceleration strategies to mitigate this limitation, including reducing denoising steps via DDIM sampling and applying model distillation techniques [51,52,53].

4.3. Ablation Studies

Table 5 presents an incremental ablation analysis evaluating the contributions of Rail-DiffAD’s core modules: Residual Features (RFs), the multi-scale partial convolutional spatial-channel attention module (MPSCA), and the Diffusion Model (DF).
A module-stacking strategy is adopted to isolate both the individual and synergistic impacts of each component.
Starting from DF alone, introducing RF improves the I-AUC/P-AUC by 6.2%/8.4%, validating its effectiveness in suppressing inter-category interference. Incorporating MPSCA further enhances fine-grained anomaly localization and background suppression, leading to consistent gains across all metrics. Combining RF, MPSCA, and DF achieves the best overall performance, demonstrating the complementary advantages of residual feature refinement, and diffusion-based distribution modeling.
In summary, stepwise performance gains validate the critical role of each module and their combined effect, confirming the rationality of the proposed framework design.

4.3.1. Ablation Studies of RF

Figure 6 illustrates the effectiveness of the residual feature generation module within the Rail-DiffAD framework. The figure compares the feature distributions of various catenary component types before and after applying the residual feature generation process.
Figure 6 compares the feature distributions before and after introducing residual features. Before residual alignment, different component categories exhibit clear inter-class separation dominated by structural appearance differences. After residual feature extraction, inter-category distributions become more compact while anomaly-related deviations are preserved. These results demonstrate that the proposed RF module effectively suppresses category interference and enhances cross-category anomaly representation capability.

4.3.2. Ablation Studies of MPSCA

To evaluate the effectiveness of each submodule in MPSCA, progressive component-stacking experiments are conducted on ConvBnAct, Convhalf, and SCA under the same training settings. The corresponding quantitative results are presented in Table 6.
The results indicate that Convhalf improves local anomaly sensitivity while preserving structural consistency, while the SCA module further enhances discriminative capability under complex backgrounds. The progressive improvements across all metrics validate the effectiveness of the proposed MPSCA design for fine-grained catenary anomaly detection.

4.3.3. Ablation Studies of DF

To evaluate the distribution modeling capability of the proposed DF module, comparative experiments with NF are conducted under the same RF and MPSCA setting. As shown in Table 7, replacing NF with DF improves I-AUC/P-AUC from 0.918/0.913 to 0.953/0.957 and I-AP/P-AP from 0.907/0.367 to 0.956/0.394. Figure 7 further confirms that DF produces clearer anomaly localization and more stable responses across different component types, particularly for small-scale structural defects. These results demonstrate the superior distribution modeling capability of diffusion-based feature estimation under complex catenary scenarios.

4.4. Abnormal Distribution and Score Analysis of Components

This study aims to quantify the anomaly severity of railway catenary components and verify the proposed model’s capability to model the correspondence between anomaly levels and feature spatial positions. Specifically, component anomaly levels are intuitively characterized via feature distributions in the hyperspherical space to facilitate accurate differentiation of catenary anomaly severity.
The experiment is conducted on a real railway catenary dataset, with abnormal samples annotated by severity levels in line with catenary industrial maintenance standards. Building on the model’s inherent feature extraction and spatial constraint mechanisms, the work focuses on analyzing spatial distribution patterns of abnormal samples across varying severity levels.
As shown in Figure 8, experimental results reveal a strong correlation between hyperspherical feature distributions and catenary component anomaly severity. Features of normal samples closely cluster at the space center, forming well-demarcated feature clusters. In contrast, abnormal sample features distribute in peripheral regions, with their distance to the center varying gradually with anomaly severity.
Features of mild anomalies lie adjacent to normal feature cluster edges, while those of moderate anomalies locate in the space’s middle area. Severe anomaly features reside in the outermost region, with deviation distance from the normal center increasing progressively as anomaly severity intensifies.
This distribution pattern indicates that the model’s feature space naturally encodes severity information. Normal features cluster compactly at the center, while abnormal features reside in the periphery with a deviation distance increasing with defect severity. Figure 9 further visualizes the anomaly score maps across different component categories, showing that the model consistently assigns elevated scores to defect regions and suppresses background interference across diverse structural types and materials. These results provide a dual-dimensional verification of the model’s ability to distinguish anomaly severity levels through both feature-space distribution and pixel-level scoring, supporting differentiated maintenance prioritization.

4.5. Qualitative Visualization Results

Figure 10 shows the qualitative anomaly heatmaps of Rail-DiffAD on typical catenary defects. The model precisely locates defects including micro-cracks, loose bolts, and local wear, with heatmaps that align well with ground-truth annotations. It retains clear response boundaries even for subtle, low-contrast defects that are easily missed by reconstruction-based methods, and stably suppresses background noise under complex interference such as illumination fluctuation and texture diversity. Compared with traditional approaches, Rail-DiffAD yields more concentrated, noise-suppressed heatmaps with consistent localization across different component types.

4.6. Experimental Fault Grade Rating Table

The coefficients in the fault assessment models are calibrated from pantograph-catenary interaction standards [54,55], atmospheric corrosivity classifications [56,57], catenary component technical specifications [58], and corrosion experiment data [59]. A complete summary of all coefficient values, units, and calibration sources is provided in Table 8.
Based on these calibrated models, a multi-dimensional fault grade rating table is established in Table 9. The four grading indicators are all computed within the proposed framework: the anomaly score S ( x ) from Rail-DiffAD, the visually-derived contact force deviation Δ F visual , the cumulative corrosion depth D corr , and the equivalent stress amplitude Δ σ vis .
The Δ F visual thresholds are derived from the visual-mechanical coupling model (Equation (12)), where the coefficients k α , k β , and k γ are calibrated from pantograph-catenary interaction standards EN 50367 [54] and TB 10621 [55]. The D corr thresholds follow from the corrosion evolution model (Equation (13)), with the corrosion rate parameters referenced against ISO 9223/9224 [56,57] atmospheric corrosivity classifications and the initial galvanizing thickness specified in TB/T 2073 [58]. The Δ σ vis thresholds are determined by the equivalent stress model (Equation (14)), where the effective load-bearing thickness decreases with cumulative corrosion depth under contact force deviation. The S ( x ) boundaries are set to maintain internal consistency across all four grading dimensions, such that each fault grade corresponds to a coherent range of anomaly severity, mechanical deviation, corrosion progression, and structural stress.
As shown in Table 9, component health status is divided into four levels from normal to severe, each matched with targeted maintenance strategies. Severe anomalies require immediate shutdown and priority replacement, while slight and moderate faults trigger monitoring and planned maintenance, respectively.
Figure 11 visualizes the quantitative fault grade assessment results for typical catenary components. Each sample is evaluated through the computed indicators and classified into one of the four fault grades defined in Table 9, with higher-grade samples exhibiting larger Δ F visual and D corr values. The results demonstrate that the proposed grading framework effectively distinguishes defect severity levels across different component types.
This section establishes a quantitative assessment framework integrating visual-mechanical coupling models with experimental fault rating criteria, forming a closed-loop from anomaly identification to maintenance decision-making.

5. Conclusions

Rail-DiffAD integrates residual feature learning with conditional diffusion-based distribution estimation, achieving reliable localization for fine-grained and ambiguous anomalies in complex catenary scenes. Experimental results on a real-world dataset demonstrate that the proposed method consistently outperforms existing state-of-the-art approaches in detection accuracy and pixel-level localization performance, while maintaining strong generalization across different component types.
Despite these improvements, several limitations remain. The model may still produce occasional false positives in densely textured regions, and its performance can be affected under extreme illumination or severe weather conditions. In addition, the overall computational cost is relatively high, which may limit real-time deployment on edge devices. Future work will focus on designing a lightweight variant of Rail-DiffAD [51,52,53,60,61], improving robustness in complex environments, and optimizing computational efficiency to better support onboard real-time catenary inspection systems.

Author Contributions

Methodology, H.Q., W.H. and H.W.; Software, H.Q. and Z.L.; Validation, H.Q. and W.H.; Formal analysis, H.W.; Investigation, W.H., H.Y. and J.L.; Resources, Z.H. and Z.L.; Data curation, H.W.; Writing—original draft, H.Q.; Writing—review & editing, Z.H.; Visualization, H.Q., H.Y. and J.L.; Supervision, Z.H., H.Y. and Z.L.; Project administration, Z.H. and Z.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The data presented in this study are not publicly available due to privacy restrictions related to railway infrastructure. The data are available on request from the corresponding author for academic research purposes.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Hu, Z.; Chen, L.; Song, Y.; Liu, Z.; Pombo, J.; Antunes, P. A deep learning-based surrogate model for dynamic interaction assessment of high-speed overhead conductor rail system. Eng. Struct. 2025, 343, 121221. [Google Scholar] [CrossRef]
  2. Wang, X.; Song, Y.; Wang, X.; Duan, F.; Liu, Z. Study on Phase-Change Melting Characteristics of Rigid Catenary Wires under Dynamic Separation Process. Transp. Saf. Environ. 2026, 8, tdag002. [Google Scholar] [CrossRef]
  3. Yan, H.; Lin, C.; Guo, N.; Xu, Z.; Zang, J.; Qing, A. A three-stage framework for multi-type pantograph anomaly detection under complex environments. Comput. Electr. Eng. 2025, 127, 110612. [Google Scholar] [CrossRef]
  4. Yang, H.; Liu, Z.; Liu, W.; Wang, H.; Zhang, Y.; Wang, H. Graph-MDETR: A Graph-Guided Mamba-DETR Network for UAV Catenary Support Components Detection in Electrified Railways. IEEE Trans. Intell. Transp. Syst. 2026, 27, 6319–6332. [Google Scholar] [CrossRef]
  5. Chen, J.; Yin, H.; Zhang, K.; Ren, Y.; Zeng, H. Integration of neural networks in brain–computer interface applications: Research frontiers and trend analysis based on Python. Eng. Appl. Artif. Intell. 2025, 151, 110654. [Google Scholar] [CrossRef]
  6. Wu, X.; Zou, B.; Lu, C.; Wang, L.; Zhang, Y.; Wang, H. Dynamic security computing framework with zero trust based on privacy domain prevention and control theory. IEEE J. Sel. Areas Commun. 2025, 43, 2266–2278. [Google Scholar] [CrossRef]
  7. Wei, W.F.; Zhang, H.; Xia, L.Y.; Luo, Y.F.; Zhou, S.G.; Huang, G.Z.; Yang, Z.F.; Wu, G.N. Fatigue life enhancement of catenary droppers for high-speed railways based on arrangement optimization. Eng. Fail. Anal. 2024, 163, 108480. [Google Scholar] [CrossRef]
  8. Ma, X.; Wu, J.; Xue, S.; Yang, J.; Zhou, C.; Sheng, Q.Z. A comprehensive survey on graph anomaly detection with deep learning. IEEE Trans. Knowl. Data Eng. 2023, 35, 12012–12038. [Google Scholar] [CrossRef]
  9. Kesharwani, A.; Shukla, P. A review of anomaly detection using machine learning techniques. In Proceedings of the 2024 1st International Conference on Advanced Computing and Emerging Technologies (ACET), Ghaziabad, India, 23–24 August 2024; pp. 1–6. [Google Scholar]
  10. Ma, N.; Yang, H.; Liu, Z.; Cui, H.; Wang, H.; Shi, L. Support Structure Detection of Railway Catenary Systems on UAVs Using Spike-Based Brain-Inspired Neural Network. IEEE Trans. Instrum. Meas. 2026, 75, 2510918. [Google Scholar] [CrossRef]
  11. Hong, Z.; Guan, S.; Zhao, Z.; Zhang, J.; Li, Z.; Ma, C.; Yang, L. Intelligent detection and analysis of brain tumors based on deep learning for CT scanning images. In Proceedings of the 2026 7th International Seminar on Artificial Intelligence, Networking and Information Technology (AINIT), Dalian, China, 15–17 May 2026; pp. 873–876. [Google Scholar]
  12. Zhang, J.; Xiang, M.; Hu, Y.; Hao, W.; Lei, L.; Yi, K. Multivariate feature learning and associative spatial information enhancement for snow object detection in autonomous driving. Eng. Appl. Artif. Intell. 2026, 175, 114672. [Google Scholar] [CrossRef]
  13. Zhang, J.; Song, X.; Li, Y.; Liang, D.; Zhang, Z.; Cai, J. Adaptive dual cross-attention network for multispectral object detection in autonomous driving. Expert Syst. Appl. 2026, 318, 132012. [Google Scholar] [CrossRef]
  14. Jiao, R.; Zhang, J.; Li, C.; Hu, L. Large-kernel spatially parallel feature fusion for monocular 3D perception in autonomous driving. Knowl. Based Syst. 2026, 343, 115998. [Google Scholar] [CrossRef]
  15. Tian, X.; Xianyu, X.; Li, Z.; Xu, T.; Jia, Y. Infrared and visible image fusion based on multi-level detail enhancement and generative adversarial network. Intell. Robot. 2024, 4, 524–543. [Google Scholar] [CrossRef]
  16. Akcay, S.; Atapour-Abarghouei, A.; Breckon, T.P. GANomaly: Semi-Supervised Anomaly Detection via Adversarial Training. In Computer Vision—ACCV 2018; Springer: Berlin/Heidelberg, Germany, 2018; pp. 622–637. [Google Scholar]
  17. Lyu, Y.; Han, Z.; Zhong, J.; Li, C.; Liu, Z. A GAN-based anomaly detection method for isoelectric line in high-speed railway. In Proceedings of the 2019 IEEE International Instrumentation and Measurement Technology Conference (I2MTC), Auckland, New Zealand, 20–23 May 2019; pp. 1–6. [Google Scholar]
  18. V., B.G.; Deepa, G.; Febeena Ezhil Jothi, S.; Mahalakshmi, L. Image Steganography with Security Using Massive Threefold Attentional Residual GAN Optimized by Chaotic PSO Algorithm. Cybern. Syst. 2025. [Google Scholar] [CrossRef]
  19. Contreras-Cruz, M.A.; Correa-Tome, F.E.; Lopez-Padilla, R.; Ramirez-Paredes, J.P. Generative adversarial networks for anomaly detection in aerial images. Comput. Electr. Eng. 2023, 106, 108470. [Google Scholar] [CrossRef]
  20. Defard, T.; Setkov, A.; Loesch, A.; Audigier, R. PaDiM: A Patch Distribution Modeling Framework for Anomaly Detection and Localization. In ICPR International Workshops and Challenges; Springer: Berlin/Heidelberg, Germany, 2021; pp. 475–489. [Google Scholar]
  21. Roth, K.; Pemula, L.; Zepeda, J.; Schölkopf, B.; Brox, T.; Gehler, P. Towards Total Recall in Industrial Anomaly Detection. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA, 18–24 June 2022; pp. 14318–14328. [Google Scholar]
  22. Tien, T.D.; Nguyen, A.T.; Tran, N.H.; Huy, T.D.; Duong, S.T.M.; Nguyen, C.D.T. Revisiting reverse distillation for anomaly detection. In Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada, 7–24 June 2023; pp. 24511–24520. [Google Scholar]
  23. Wu, Y.; Tao, D.; Zhan, Y.; Zhang, C. BiN-Flow: Bidirectional normalizing flow for robust image dehazing. IEEE Trans. Image Process. 2022, 31, 6635–6648. [Google Scholar] [CrossRef] [PubMed]
  24. Wu, X.; Dong, J.; Bao, W.; Zou, B.; Wang, L.; Wang, H. Augmented intelligence of things for emergency vehicle secure trajectory prediction and task offloading. IEEE Internet Things J. 2024, 11, 36030–36043. [Google Scholar] [CrossRef]
  25. Hu, J.; Chen, D.; Lei, B.; Sun, J. Dynamic interaction-aware and causality-disentangled framework for multimodal sentiment analysis. In Proceedings of the 2026 7th International Seminar on Artificial Intelligence, Networking and Information Technology (AINIT), Dalian, China, 15–17 May 2026; pp. 191–199. [Google Scholar] [CrossRef]
  26. Chen, J.; Shao, Z.; Zhu, H.; Chen, Y.; Li, Y.; Zeng, Z.; Yang, Y.; Wu, J.; Hu, B. Sustainable interior design: A new approach to intelligent design and automated manufacturing based on Grasshopper. Comput. Ind. Eng. 2023, 183, 109509. [Google Scholar] [CrossRef]
  27. Duan, F.; Wang, H.; Yang, H.; Wei, C.; Zhang, C.; Song, Y. MRFM-IFCOS: An Anchor-Free Interactive Detector Based on Multireceptive Field Mamba for Detecting Catenary Support Components. IEEE Trans. Instrum. Meas. 2025, 74, 2553415. [Google Scholar] [CrossRef]
  28. Guo, Q.; Liu, L.; Xu, W.; Gong, Y.; Zhang, X.; Jing, W. An improved faster R-CNN for high-speed railway dropper detection. IEEE Access 2020, 8, 105622–105633. [Google Scholar] [CrossRef]
  29. Divya, U.H.; Kumar, J.P. Enhanced Transfer Learning-Based CNN for Abnormal Human Activity Detection in Video Surveillance Using Spatial-Temporal Features. Cybern. Syst. 2025, 1–30. [Google Scholar] [CrossRef]
  30. You, Z.; Cui, L.; Shen, Y.; Yang, K.; Lu, X.; Zheng, Y.; Le, X. A Unified Model for Multi-class Anomaly Detection. In Advances in Neural Information Processing Systems; NeurIPS Proceedings: San Diego, CA, USA, 2022; Volume 35, pp. 4571–4584. [Google Scholar]
  31. Li, C.L.; Sohn, K.; Yoon, J.; Pfister, T. CutPaste: Self-supervised learning for anomaly detection and localization. In Proceedings of the 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 20–25 June 2021; pp. 9659–9669. [Google Scholar]
  32. Yi, J.; Yoon, S. Patch SVDD: Patch-level SVDD for anomaly detection and segmentation. In Proceedings of the Asian Conference on Computer Vision (ACCV), Kyoto, Japan, 30 November 2020; pp. 375–390. [Google Scholar]
  33. Zhu, S.; Du, B.; Zhang, L.; Li, X. Attention-based multiscale residual adaptation network for cross-scene classification. IEEE Trans. Geosci. Remote Sens. 2022, 60, 5400715. [Google Scholar] [CrossRef]
  34. Zhang, Y.; Zhong, J.; Liu, Z.; Han, Z. ECF-STPM: A robust crack detection method for railway catenary components. IEEE Trans. Instrum. Meas. 2023, 72, 5024214. [Google Scholar] [CrossRef]
  35. Zavrtanik, V.; Kristan, M.; Skočaj, D. DRÆM—A discriminatively trained reconstruction embedding for surface anomaly detection. In Proceedings of the 2021 IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada, 10–17 October 2021; pp. 8310–8319. [Google Scholar]
  36. Park, E.; Kim, T.; Kim, M.; Lee, H.; Lee, G.J. SK-RD4AD: Skip-connected reverse distillation for robust one-class anomaly detection. In Proceedings of the 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), Nashville, TN, USA, 11–12 June 2025; pp. 3945–3953. [Google Scholar]
  37. Chen, X.; Han, Y.; Zhang, J. AA-CLIP: Enhancing Zero-shot Anomaly Detection via Anomaly-Aware CLIP. In Proceedings of the Computer Vision and Pattern Recognition Conference, Nashville, TN, USA, 11–15 June 2025; pp. 4744–4754. [Google Scholar]
  38. Yang, H.; Hu, K.; Wang, H.; Hong, W.; Wang, X.; Wang, H.; Song, Y.; Liu, Z. BCLIP-ADer: A Bayesian Prompt Contrastive Language-Image Pretraining Method for Catenary Component Anomaly Detection in Electrified Railways. IEEE Trans. Transp. Electrif. 2026. [Google Scholar] [CrossRef]
  39. Bobadilla, H.A.F.; Martin, U. GAN-based Data Augmentation of Railway Track Irregularities for Fault Diagnosis. In Proceedings of the 2024 International Joint Conference on Neural Networks (IJCNN), Yokohama, Japan, 30 June–5 July 2024; pp. 1–9. [Google Scholar]
  40. Yang, G.; Jiang, Y.; Wang, S.; Chen, K. VinsFusion-Line: Binocular Vision Inertial Navigation Real-Time SLAM System Based on Line Features. Cybern. Syst. 2026, 57, 350–375. [Google Scholar]
  41. Shajeena, J.; Govindasamy, B.; Gnanasundaram, M.; Joel, M.R. Mobile-Le Harmonic Fusion Network for Object Recognition and SiamMoT Based Multi-Object Tracking Using Video Surveillance. Cybern. Syst. 2025, 57, 866–896. [Google Scholar] [CrossRef]
  42. Zhang, M.; Ma, L.; Wu, Y.; Shen, K.; Huang, D.; Leung, H. Tackling the Kidnapped Robot Problem via Sparse Feasible Hypothesis Sampling and Reliable Batched Multistage Inference. IEEE Trans. Instrum. Meas. 2026, 75, 7504614. [Google Scholar] [CrossRef]
  43. Fernández-Bobadilla, H.A.; Martin, U. Modern Tendencies in Vehicle-Based Condition Monitoring of the Railway Track. IEEE Trans. Instrum. Meas. 2023, 72, 3507344. [Google Scholar] [CrossRef]
  44. Qian, C.; Fong, S.; Yin, H.; Gao, C.; Qin, H.; Marques, J.A.L. Design of a dual attention mechanism for small object detection. In Proceedings of the 2025 7th International Symposium on Computational and Business Intelligence (ISCBI), Macau, China, 14–16 February 2025; pp. 72–76. [Google Scholar]
  45. Lin, G.; Yang, S.; Zheng, W.-S.; Li, Z.; Huang, Z. A semantically guided and focused network for occluded person re-identification. IEEE Trans. Inf. Forensics Secur. 2025, 20, 9716–9731. [Google Scholar] [CrossRef]
  46. Ho, J.; Jain, A.; Abbeel, P. Denoising Diffusion Probabilistic Models. In Advances in Neural Information Processing Systems; NeurIPS Proceedings: San Diego, CA, USA, 2020; Volume 33, pp. 6840–6851. [Google Scholar]
  47. Qing, L.; Su, B.; Jung, S.; Lu, L.; Wang, H.; Xu, X. Predicting human postures for manual material handling tasks using a conditional diffusion model. IEEE Trans. Hum.-Mach. Syst. 2024, 54, 723–732. [Google Scholar] [CrossRef]
  48. Yao, Y.M.; Wang, J.; Xu, Y.; Wang, B.; Kou, H.B.; Zhou, X.Y.; Lu, H.S. Image-based fatigue life prediction of catenary droppers in high-speed railways. Eng. Fail. Anal. 2026, 185, 110375. [Google Scholar] [CrossRef]
  49. Yan, J.; Zhou, N.; Cheng, Y.; Zhang, F.; Wang, H.; Wang, M.; Jin, B.; Li, M.; Lu, Q.; Zhang, W. Application of Machine-Vision-Driven Physics-Informed Neural Networks in Pantograph–Catenary System State Detection. Mech. Syst. Signal Process. 2026, 257, 114577. [Google Scholar] [CrossRef]
  50. Chen, D.; Xu, C.; Yu, J.; Wang, Q.; Fang, H.; Yin, S.; Lookman, T.; Chen, R. Interpretable machine learning framework for Nb–Si based alloy design with enhanced fracture toughness. Adv. Sci. 2026, e75815. [Google Scholar] [CrossRef] [PubMed]
  51. Wang, X.; Yang, X.; Huang, Z.; Chen, Y. CLIP-SD: CLIP-enhanced self-distillation for visual recognition. IEEE Trans. Multimed. 2026, 28, 2201–2213. [Google Scholar] [CrossRef]
  52. Huang, Z.; Yang, S.; Zhou, M.; Li, Z.; Gong, Z.; Chen, Y. Feature map distillation of thin nets for low-resolution object recognition. IEEE Trans. Image Process. 2022, 31, 1364–1379. [Google Scholar] [CrossRef] [PubMed]
  53. Liu, Z.; Zhao, W.; Jia, N.; Liu, X.; Yang, J. SANet: Scale-adaptive network for lightweight salient object detection. Intell. Robot. 2024, 4, 503–523. [Google Scholar] [CrossRef]
  54. EN 50367:2012; EN 50367: Railway Applications—Current Collection Systems—Technical Criteria for the Interaction Between Pantograph and Overhead Line. CENELEC: Brussels, Belgium, 2020.
  55. TB 10621-2014; Code for Design of High-Speed Railway. China Railway Publishing House: Beijing, China, 2014.
  56. ISO 9223:2012; Corrosion of Metals and Alloys—Corrosivity of Atmospheres—Classification, Determination and Estimation. ISO: Geneva, Switzerland, 2012.
  57. ISO 9224:2012; Corrosion of Metals and Alloys—Corrosivity of Atmospheres—Guiding Values for the Corrosivity Categories. ISO: Geneva, Switzerland, 2012.
  58. TB/T 2073-2020; Technical Specification of Fittings for Overhead Contact SYSTEM in Electrification Railway. China Railway Publishing House: Beijing, China, 2020.
  59. T/CSCP 0019-2024; Technical Guidelines for Anti-Corrosion Operation and Maintenance Diagnosis Strategy of Power Grid Metal Equipment. CSCP: Beijing, China, 2024.
  60. Chen, L. Beyond external constraints: The missing dimension of AI governance. SSRN Electron. J. 2026. [Google Scholar] [CrossRef]
  61. Wu, X.; Wang, H.; Zhang, Y.; Zou, B.; Hong, H. A tutorial-generating method for autonomous online learning. IEEE Trans. Learn. Technol. 2024, 17, 1558–1567. [Google Scholar] [CrossRef]
Figure 1. Industrial intelligent inspection system for railway catenary components: from portable data acquisition to diffusion model-driven anomaly detection and fault grading.
Figure 1. Industrial intelligent inspection system for railway catenary components: from portable data acquisition to diffusion model-driven anomaly detection and fault grading.
Sensors 26 04783 g001
Figure 2. Rail -DiffAD Framework.
Figure 2. Rail -DiffAD Framework.
Sensors 26 04783 g002
Figure 3. Structure Diagram of the MPSCA framework and spatial-channel attention mechanism.
Figure 3. Structure Diagram of the MPSCA framework and spatial-channel attention mechanism.
Sensors 26 04783 g003
Figure 4. Framework diagram of the conditional noise predictor.
Figure 4. Framework diagram of the conditional noise predictor.
Sensors 26 04783 g004
Figure 5. Examples of partial component images.
Figure 5. Examples of partial component images.
Sensors 26 04783 g005
Figure 6. Residual Feature Extractor. (a) Initial Feature Distribution. (b) Residual Feature Distribution.
Figure 6. Residual Feature Extractor. (a) Initial Feature Distribution. (b) Residual Feature Distribution.
Sensors 26 04783 g006
Figure 7. Performance Comparison of Different Models for Feature Distribution Estimator. The figure includes three regions: (1) Test image; (2) Results of RF + MPSCA + NF; (3) Results of RF + MPSCA + DF.
Figure 7. Performance Comparison of Different Models for Feature Distribution Estimator. The figure includes three regions: (1) Test image; (2) Results of RF + MPSCA + NF; (3) Results of RF + MPSCA + DF.
Sensors 26 04783 g007
Figure 8. Abnormal Distribution and Score Analysis of Components: (1) overlapping normal/abnormal features & test samples; (2) clustered normal features, peripheral abnormal ones & anomaly scores.
Figure 8. Abnormal Distribution and Score Analysis of Components: (1) overlapping normal/abnormal features & test samples; (2) clustered normal features, peripheral abnormal ones & anomaly scores.
Sensors 26 04783 g008
Figure 9. Anomaly score visualization of other catenary components.
Figure 9. Anomaly score visualization of other catenary components.
Sensors 26 04783 g009
Figure 10. Qualitative visualization results.
Figure 10. Qualitative visualization results.
Sensors 26 04783 g010
Figure 11. Visualization of catenary components fault grade assessment results.
Figure 11. Visualization of catenary components fault grade assessment results.
Sensors 26 04783 g011
Table 1. The statistics of experimental data.
Table 1. The statistics of experimental data.
CategoriesTraining Set NSTesting Set NSTesting Set AS
Casing base2388301125
Base back764120067
Connector sleeve2328224206
Insulator2824246158
Locator base2452248147
Locator tube connector3184347171
Screw clamp2994378136
Sleeve double ear3032502279
Sleeve loose3628388149
Double ear1084120067
Note: NS denotes normal samples; AS represents abnormal samples.
Table 2. Comparative experiments of different anomaly detection methods.
Table 2. Comparative experiments of different anomaly detection methods.
MethodsI-AUC/P-AUCI-AP/P-APF1-Score
SSIM-AE0.722/0.7250.787/0.2340.787
GANomaly0.774/0.7640.825/0.2570.815
DRAEM0.847/0.8530.862/0.3130.871
PatchCore0.893/0.8850.903/0.3050.897
UniAD0.931/0.9280.926/0.3670.929
AA-CLIP0.915/0.9170.924/0.3480.912
Ours0.953/0.9570.956/0.3940.917
Note: Bold values denote the optimal results under each evaluation metric.
Table 3. Per-component detection performance.
Table 3. Per-component detection performance.
Component CategoryI-AUC/P-AUCI-AP/P-APF1-Score
Casing base0.983/0.9920.990/0.5500.945
Base back0.985/0.9880.988/0.5200.950
Connector sleeve0.997/0.9950.996/0.4800.990
Insulator0.981/0.9910.995/0.4600.955
Locator base0.950/0.9580.955/0.3990.914
Locator tube connector0.986/0.9860.998/0.4090.961
Screw clamp0.865/0.8670.860/0.2300.817
Sleeve double ear0.941/0.9400.930/0.2400.880
Sleeve loose0.972/0.9700.950/0.2800.900
Double ear0.874/0.8870.887/0.3740.848
Average0.953/0.9570.956/0.3940.917
Note: Bold values denote the average detection performance over all component categories.
Table 4. Comparison experiments of computational efficiency between different methods.
Table 4. Comparison experiments of computational efficiency between different methods.
MethodsParams (M)FLOPs (G)Inference Time (ms)
SSIM-AE85.3234.152.4
Ganomaly188.732.924.4
DRAEM47.2152.333.1
PatchCore119.8255.757.3
UniAD24.73.923.0
AA-CLIP397.21008.5107.6
Rail-DiffAD (Ours)95.2363.6631.0
Table 5. Incremental ablations.
Table 5. Incremental ablations.
RFMPSCADFI-AUC/P-AUCI-AP/P-APF1-Score
0.816/0.8080.812/0.3470.815
0.867/0.8760.894/0.3590.880
0.904/0.9060.912/0.3620.903
0.953/0.9570.956/0.3940.917
Note: DF denotes diffusion model; RF represents residual feature. ✓ means the module is adopted, and ”–” means the module is removed. Bold values indicate the best performance in ablation experiments.
Table 6. Ablation study on the MPSCA module.
Table 6. Ablation study on the MPSCA module.
SCAConvhalfConvBnActI-AUC/P-AUCI-AP/P-APF1-Score
0.872/0.8640.866/0.3210.884
0.895/0.8960.913/0.3490.907
0.953/0.9570.956/0.3940.917
Note: ✓ indicates the module is adopted, and ”–” means the module is removed. Bold values represent the best performance.
Table 7. Ablation study on the DF module.
Table 7. Ablation study on the DF module.
NFDFRF&MPSCAI-AUC/P-AUCI-AP/P-APF1-Score
0.918/0.9130.907/0.3670.891
0.953/0.9570.956/0.3940.917
Note: NF represents Normalizing Flow model. ✓ means the module is adopted, and ”–” means the module is removed. Bold values represent the best performance.
Table 8. Calibration summary of fault assessment coefficients.
Table 8. Calibration summary of fault assessment coefficients.
SymbolValueUnitCalibration Source
k α 25NPantograph-catenary dynamics [54]
k β 120NCatenary stiffness degradation [54,55]
k γ 180N/mmEquivalent stiffness with projection correction [55]
k corr 1.2 × 10 4 day−1ISO 9223 C2 corrosivity [56,57]
k F 3.6 × 10 6 N−1day−1Vibration-coupled corrosion [59]
η c 0.12mmDamaged galvanized surface [58]
D 0 5 μ mFactory galvanizing baseline [58]
L120mmCatenary fitting specification [58]
W30mmStandard fastener cross-section [58]
H6mmNominal component thickness [58]
Table 9. Catenary component fault grade rating standard.
Table 9. Catenary component fault grade rating standard.
Fault GradeGrade DefinitionCore IndicatorsO&M Strategy
Level 1
(Normal)
No obvious anomaly,
intact performance
S ( x ) < 0.3 ;
Δ F visual 12  N;
D corr ( 10 yr ) < 10   μ m;
Δ σ vis < 8  MPa
Routine inspection
Level 2
(Slight)
Slight anomaly,
operation unaffected
0.3 S ( x ) < 0.5 ;
12 < Δ F visual 20  N;
10 D corr ( 10 yr ) < 12 μ m ;
8 Δ σ vis < 14  MPa
Shorten inspection cycle
Level 3
(Moderate)
Obvious anomaly,
potential failure risk
0.5 S ( x ) < 0.8 ;
20 < Δ F visual 32  N;
12 D corr ( 10 yr ) < 16 μ m ;
14 Δ σ vis < 21  MPa
Enhanced tracking, formulate
maintenance plan
Level 4
(Severe)
Severe anomaly,
extremely high failure risk
S ( x ) 0.8 ;
Δ F visual > 32  N;
D corr ( 10 yr ) 16 μ m ;
Δ σ vis 21  MPa
Immediate shutdown,
priority replacement
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.

Share and Cite

MDPI and ACS Style

Qian, H.; Han, Z.; Hong, W.; Yang, H.; Wang, H.; Li, J.; Liu, Z. Industrial Anomaly Detection and Fault Grade Assessment for Railway Catenary Components Based on Diffusion Models. Sensors 2026, 26, 4783. https://doi.org/10.3390/s26154783

AMA Style

Qian H, Han Z, Hong W, Yang H, Wang H, Li J, Liu Z. Industrial Anomaly Detection and Fault Grade Assessment for Railway Catenary Components Based on Diffusion Models. Sensors. 2026; 26(15):4783. https://doi.org/10.3390/s26154783

Chicago/Turabian Style

Qian, Hongyue, Zhiwei Han, Weijia Hong, Haonan Yang, Hui Wang, Jilin Li, and Zhigang Liu. 2026. "Industrial Anomaly Detection and Fault Grade Assessment for Railway Catenary Components Based on Diffusion Models" Sensors 26, no. 15: 4783. https://doi.org/10.3390/s26154783

APA Style

Qian, H., Han, Z., Hong, W., Yang, H., Wang, H., Li, J., & Liu, Z. (2026). Industrial Anomaly Detection and Fault Grade Assessment for Railway Catenary Components Based on Diffusion Models. Sensors, 26(15), 4783. https://doi.org/10.3390/s26154783

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop