Abstract
Accurate Defect detection is crucial for ensuring the trustworthiness of intelligent railway systems. Current approaches rely on single deep-learning models, like CNNs, which employ a large amount of data to capture underlying patterns. Training a new defect classifier with limited samples often leads to overfitting and poor performance on unseen images. To address this, researchers have advocated transfer learning and fine-tuning the pre-trained models. However, using a single backbone network in transfer learning still may cause bottleneck issues and inconsistent performance if it is not suitable for a specific problem domain. To overcome these challenges, we propose a reusable AI-enabled defect detection approach. By combining ensemble learning with transfer learning models (VGG-19, MobileNetV3, and ResNet-50), we improved the classification accuracy and achieved consistent performance at a certain phase of training. Our empirical analysis demonstrates better and more consistent performance compared to other state-of-the-art approaches. The consistency substantiates the reusability of the defect detection system for newly evolved defected rail parts. Therefore we anticipate these findings to benefit further research and development of reusable AI-enabled solutions for railway systems.
Introduction
Maintaining railway infrastructure is a high-stakes endeavor where overlooking a single crack or faulty valve can lead to catastrophic failure. While Computer Vision (CV) has automated much of this inspection process, two major hurdles persist in current deep learning implementations:
- Data Scarcity: As infrastructure ages, new types of defects emerge. Often, there are insufficient images of these specific "new" defects to train a robust deep-learning model from scratch.
- The "Single Backbone" Bottleneck: Most current systems rely on a single pre-trained model via Transfer Learning. If that specific model’s architecture is not a perfect match for a particular defect's visual patterns, performance becomes inconsistent and prone to overfitting.
This research aims to create a "reusable" system—one that can be quickly adapted to new defect types while maintaining stable, high-accuracy performance without requiring massive new datasets.
Proposed Methodology
The core of this approach is a Transfer Learning Ensemble framework. Rather than relying on a single model, the researchers integrated three distinct architectures to leverage their unique strengths:
- VGG-19: Selected for its simplicity and depth.
- ResNet-50: Utilizes "residual blocks" to allow for deep training without information loss.
- MobileNetV3: A lightweight architecture optimized for speed and efficiency.
The workflow consists of three primary stages:
- Fine-Tuning: The models, pre-trained on the ImageNet dataset, have their early layers frozen to retain general visual knowledge. The final layers are replaced and trained specifically on railway components.
- Ensembling Algorithm: A custom algorithm combines the predictions of these three models. Instead of simple averaging, it optimizes the trade-off between training and validation loss to ensure "consistency" (stability) over training cycles.
- Optimization: A mathematical formulation minimizes validation loss while ensuring minimal change in loss between training steps, which is the key to a "reusable" and reliable model.
Experimental Setup
The study utilized the Canadian Pacific Railway (CPR) dataset, consisting of 3,000 high-resolution images of real heavy freight rail parts. The dataset includes 1,000 defective images and 2,000 normal images.
The raw data originally contained 404 unique labels (e.g., "Broken Flange WM66-L3 Verify"). To handle the limited number of samples per specific sub-label, the authors grouped these into broader "defect" vs. "normal" categories. The dataset provides a comprehensive view of components, including top, bottom, and side perspectives.
Results and Discussion
The proposed ensemble model significantly outperformed individual models and previous state-of-the-art (SOTA) approaches. Key findings include:
- High Performance: The system achieved 99% accuracy on the test set with an F1-Score of 0.98, indicating an excellent balance between precision and recall.
- Stability and Consistency: Validation loss remained constant at approximately 0.0001 after initial training epochs, showing significantly less "jitter" than single-model approaches.
- The Power of Diversity: While ResNet-50 provided high raw accuracy, MobileNetV3 exhibited the lowest loss. The ensemble approach captures the accuracy of the former and the stability of the latter.
- Addressing Label Ambiguity: The researchers noted that some "defective" and "normal" images were visually identical at the pixel level. The ensemble approach helps smooth out the performance fluctuations that single models experience when encountering such identical inputs with different labels.
As shown in the comparative table, the proposed system consistently demonstrates higher or more balanced metrics compared to 13 other studies utilizing models like YOLOv3, DCNN, or SVM.
Conclusion and Future Work
The proposed reusable AI system offers a robust solution for railway defect detection, particularly when faced with limited data for new defect types. However, several areas for future development remain:
- Multi-class Classification: Future iterations should move beyond binary "Defect vs. Normal" classification to identify specific defect types (e.g., cracks vs. broken flanges).
- Localization: Integrating object detection to precisely "box" or locate the defect on a part is a logical next step.
- Vision Transformers (ViT): The authors suggest that transitioning from CNNs to Vision Transformers could further enhance the system's understanding of global spatial relationships, potentially increasing both speed and accuracy.
Summary updated