Deployment-Oriented Evaluation of CNN Configurations, Class Balancing, and Data Augmentation for Railway Surface Defect Classification under Data Constraints
Abstract Railway surface defect detection increasingly relies on automated visual inspection; however, deployment under realistic operational conditions remains challenging due to limited labelled data, class imbalance, and the need for computationally efficient models. This study investigates how vanilla convolutional neural network (CNN) design, class-balancing strategies, and data augmentation influence railway surface defect classification under constrained data conditions. The main experimental analysis evaluates shallow and deeper vanilla CNN configurations (CNN-2, CNN-4, and CNN-5) across binary, four-class, and five-class classification tasks using a unified five-fold stratified cross-validation protocol on 556 labelled rail surface images. Class imbalance is addressed using weighted loss functions and SMOTE, while seven augmentation strategies are evaluated individually and in combination. Results show that CNN-2 provides the most reliable overall performance, achieving 94.88% accuracy and 86.53% F1-score in the five-class task while maintaining the lowest computational complexity among the evaluated configurations. To further investigate the effect of architectural depth, an additional CNN-3 intermediate-depth ablation was conducted under the five-class weighted-loss setting, achieving 80.94% accuracy and 80.39% weighted F1-score. The CNN-3 results indicate that increasing depth does not automatically improve generalization under limited railway data conditions. Overall, the findings demonstrate that carefully selected lightweight CNN configurations can provide a favourable balance between classification reliability, computational efficiency, and deployment-oriented transparency for railway surface inspection.
- Link
- https://doi.org/10.1093/iti/liag011
- Found by
- Crossref
- Authors
- Saeed Mohammadkhah, Joaquim Tinoco, Jesús Balado-Frías, José Campos e Matos
- Organizations
- University of Minho, ISISE, ARISE, Department of Civil Engineering , Guimarães ,, University of Vigo, CINTECX, GeoTECH , Vigo, 36310 ,
- Categories
- evaluation
- Published
- 2026-09-12
- Last seen by the radar
- 2026-09-14
- Citations
- 0
- Radar score
- 26.75 / 100 (how it is scored)
- Why it scored so
- Matched: evaluat; Primary record: Crossref