[Paper Review] Railway Anomaly detection model using synthetic defect images generated by CycleGAN
This paper proposes a railway defect detection model enhanced by synthetic defect images generated via CycleGAN to address the scarcity of real defective rail images. By augmenting training data with CycleGAN-generated shelling defect images, the model's accuracy for detecting rare defects improved significantly, achieving an AUC of 1.0 on test data, with visual attention maps and t-SNE confirming improved focus on defect regions.
Although training data is essential for machine learning, railway companies are facing difficulties in gathering adequate images of defective equipment due to their proactive replacement of would be defective equipment. Nevertheless, proactive replacement is indispensable for safe and undisturbed operation of public transport. In this research, we have developed a model using CycleGAN to generate artificial images of defective equipment instead of real images. By adopting these generated images as training data, we verified that these images are indistinguishable from real images and they play a vital role in enhancing the accuracy of the defect detection models.
Motivation & Objective
- Address the challenge of insufficient real images of railway defects due to proactive equipment replacement.
- Improve defect detection accuracy for rare defect types, particularly shelling defects, which are underrepresented in training data.
- Develop a data augmentation strategy using CycleGAN to generate realistic synthetic defect images indistinguishable from real ones.
- Enhance the performance of a ResNet-based defect detection model through fine-tuning with synthetic data.
- Validate the effectiveness of synthetic data using visualization techniques like CAM and t-SNE to confirm model attention shifts to defect regions.
Proposed method
- Utilize CycleGAN for unpaired image-to-image translation to generate synthetic railway defect images from normal rail images.
- Train the CycleGAN model on real normal and defective rail images to learn the style transfer from normal to defective appearance.
- Select 70 high-quality synthetic shelling defect images from 1,000 generated images based on similarity to undetected real defects.
- Fine-tune a pre-trained ResNet model using the augmented dataset, including real and synthetic defect images.
- Apply Class Activation Mapping (CAM) to visualize attention focus of the model before and after data augmentation.
- Use t-SNE to analyze feature space clustering of 2048-dimensional features, confirming improved grouping of synthetic shelling images with real defect samples.
Experimental results
Research questions
- RQ1Can CycleGAN generate synthetic railway defect images that are visually indistinguishable from real defect images?
- RQ2Does incorporating CycleGAN-generated synthetic defect images improve the detection accuracy of rare defect types like shelling?
- RQ3How does data augmentation with synthetic images affect the model’s attention mechanism, as visualized via CAM?
- RQ4Do synthetic defect images integrate effectively into the learned feature space of the defect detection model, as shown by t-SNE clustering?
- RQ5Can the proposed method generalize to other types of railway equipment beyond track defects?
Key findings
- The CycleGAN-generated synthetic defect images were indistinguishable from real images to human observers, validating their realism.
- After adding 70 synthetic shelling defect images, the defect detection model achieved an AUC of 1.0 on test data, surpassing the previous AUC of 0.993.
- Class Activation Mapping (CAM) showed that the model’s attention shifted from non-defective rail parts to actual shelling defect regions after data augmentation.
- t-SNE visualization confirmed that synthetic shelling defect images clustered closely with real shelling defect images in the feature space, indicating effective representation learning.
- The model successfully detected all 10 test samples of shelling defects after data augmentation, whereas it previously missed one such case.
- The approach demonstrates strong potential for improving defect detection in safety-critical systems with limited real defect data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.