Skip to Content
CivilEngCivilEng
  • Article
  • Open Access

8 October 2026

19 Pages

Hybrid Deep Learning Framework for Crack Detection and Condition Classification of Prestressed Concrete Sleepers

,
and
1
Department of Civil, Construction and Environmental Engineering, Sapienza University, 00184 Rome, Italy
2
Department of Civil Engineering, Bapatla Engineering College, Bapatla 522101, India
*
Author to whom correspondence should be addressed.

Abstract

Railway sleeper degradation is a major problem for track safety and maintenance planning, especially in real–world scenarios where ballast occlusion, variable lighting, and weather–induced surface changes make visual inspection difficult. Surface–based image analysis can also be affected by complex backgrounds, while conventional manual inspection is labour–intensive and subjective. To overcome these issues, this study presents a hybrid deep learning framework that combines image–level sleeper condition classification with object–level sleeper and crack detection using field images collected from the LFI Arezzo corridor, Italy, including images of in–service and discarded sleepers. The classification dataset comprised 294 images and was evaluated using EfficientNet–B0, ResNet50 and VGG19 under stratified five–fold cross–validation. EfficientNet–B0 and ResNet50 achieved 100% mean accuracy, while VGG19 achieved 99.66%. Grad–CAM was used to examine the spatial regions contributing to the classification decisions. For object detection, YOLOv11, RT–DETR and Faster R–CNN were evaluated on a common validation set. RT–DETR obtained the highest mAP@0.5 of 0.740, YOLOv11 recorded the highest overall precision of 0.769, and Faster R–CNN achieved the highest F1–score of 0.681. Sleeper localization was consistently strong across all three detectors, while fine and low–contrast cracks remained the more difficult class. The results show that the three detector families offer complementary strengths for field–based sleeper inspection and provide a practical basis for AI–assisted screening, localization and crack review in railway maintenance workflows.

1. Introduction

Railway sleepers are crucial to the maintenance of track geometry, load distribution, and general operating safety in the infrastructure. Prestressed concrete sleepers are frequently employed because of their longevity and structural efficiency; nonetheless, they are prone to degradation during service, such as cracking, spalling, abrasion, and fastener–related damage. Longitudinal cracking is one of the most commonly observed and structurally significant defects, as it may affect load transfer, fastening performance, and long–term durability. In service, sleepers experience complex load paths including rail–seat bending, centre negative bending, and ballast reactions while being exposed to moisture and freeze–thaw cycles. Previous research has also shown that longitudinal cracking occurs particularly at rail–seat and mid–span regions. Kaewunruen and Remennikov found that combining static and dynamic loads can greatly impact crack formation and propagation in prestressed concrete sleepers [1]. Similarly, sleeper cracking occurs gradually under service environments and is heavily influenced by load amplitude, support conditions, and material properties [2]. Li et al. further examined time–dependent deterioration and showed that crack development is influenced by the interaction between loading, material degradation and service conditions [3]. Reliable identification of surface damage is therefore useful for condition assessment and maintenance planning.
Recent developments in deep learning, especially convolutional neural networks (CNNs) and transformer–based models, have demonstrated promising results in the identification of infrastructure defects. Cha et al. demonstrated that convolutional neural networks can distinguish cracked from intact concrete surfaces, while Dorafshan et al. showed that deep CNNs can outperform conventional edge–based methods for concrete crack recognition [4,5]. A recent systematic review by Kumar and Harsha also identified machine vision as an increasingly important tool for railway defect inspection, while noting that changes in illumination, background, component geometry and defect appearance remain major practical challenges [6]. Although CNNs have been widely applied to infrastructure inspection, fewer studies have examined image–level sleeper condition classification together with crack localization using field–acquired railway imagery. This motivates a combined framework in which image–level classification and object–level detection is evaluated within the same field–inspection context.
For this reason, the present study compares three distinct pretrained architectures: VGG19, representing a conventional deep convolutional network with stacked small convolutional filters [7]; ResNet50, representing residual feature learning [8]; and EfficientNet–B0, representing compound scaling of network depth, width and input resolution [9]. For railway imagery, Phaphuangwittayakul et al. compared conventional CNNs with a vision–transformer model and reported accuracies of 96.9% for ResNet50 and 96.3% for EfficientNet–B0 on the Rail dataset [10]. Lin et al. developed an attention–enhanced EfficientNet model for concrete crack classification under irregular illumination and background texture, obtaining an overall accuracy of 91.63% [11]. VGG19 extends VGG16 by increasing depth for richer feature representation, but its performance gains are contingent on training strategy and classifier design [12,13]. Philip et al. reported test accuracies of 99.57% for VGG19 and 99.88% for ResNet50 in binary concrete crack classification [14]. This comparison provides a broader architectural basis than several variants of one backbone. Because the classification dataset is modest and class proportions are unequal, model stability is assessed using stratified five–fold cross–validation rather than a single train–test split [15].
Object–level localization introduces a different challenge because thin, fragmented and low–contrast cracks occupy only a small part of the image [16]. A 2024 survey found that CNNs remain strong for texture–sensitive patterns, while transformers excel in capturing long–range context in visually complex scenes [17]. Dong et al. demonstrated the applicability of an improved YOLOv8 model to concrete surface crack detection [18], while recent railway studies have also used You Only Look Once (YOLO) methods for component and defect inspection [19,20]. YOLO detectors are attractive where rapid inference is required, whereas detection transformer (DETR) models use attention and end–to–end set prediction to incorporate broader image context [21,22]. This approach supports real-time detection while retaining transformer-based contextual modelling [22]. Attention–augmented classifiers leveraging transfer learning and spatial attention have shown improved sensitivity when training data are limited or noisy [23].
Faster R–CNN provides a complementary two–stage detection strategy. It first generates candidate object regions through a Region Proposal Network and then performs classification and bounding–box regression on the proposed regions. Because the proposal network shares convolutional features with the detector, Faster R–CNN provides a well–established region–based benchmark for comparison with one–stage and transformer–based detectors [21]. However, crack detection remains challenging for YOLO models, as thin, low–contrast, fragmented cracks reduce recall due to anchor–based matching, intersection over union (IoU) limits, and thresholding [6]. Transformer–based detectors incorporate wider image context, while Faster R–CNN provides a two–stage region proposal approach for candidate defect localization. For this reason, comparison based only on overall accuracy is insufficient. In the present study, detection performance is assessed using precision, recall, F1–score, AP@0.5 and AP@0.5:0.95, together with class–wise and error analysis.
The DETR framework introduced end–to–end detection without anchors or non–maximum suppression, enabling improved contextual reasoning when object boundaries are ambiguous [24,25]. RT–DETR was proposed to achieve real–time performance while preserving transformer–based contextual learning [22,26]. Transformer–based detectors improve sensitivity to subtle and partially occluded defects but often produce coarser localization and lower IoU–based metrics for elongated objects such as cracks [27,28].
To address these gaps, this study proposes a hybrid deep learning framework combining image–level classification and object–level detection for railway sleeper inspection. Using field data from the Arezzo LFI line, it evaluates CNN classifiers (EfficientNet–B0, VGG19, and ResNet50) and detectors (YOLOv11, RT–DETR, and Faster R–CNN). Out–of–fold predictions, class–wise precision, recall, F1–score, balanced accuracy and ROC–AUC are used alongside overall accuracy. Grad–CAM is additionally employed to examine the spatial evidence contributing to the image–level predictions [29]. This study aims to provide technical and engineering insights for AI–assisted sleeper inspection, supporting practical deployment in railway maintenance systems. While EN 13230 [30] defines design and testing requirements, field environments like the LFI in Arezzo, Italy, reveal aging–related damage, requiring robust vision systems resilient to shadows and weather–induced surface degradation [31,32].

Proposed Hybrid Pipeline for Railway Sleeper Inspection

This pipeline addresses key challenges such as ballast occlusion, small–object detection, and elongated crack geometry. It consists of three stages:
  • Stage 1: CNN–based image–level screening (EfficientNet–B0, VGG19, ResNet50) to filter in–service sleepers from yard sleepers.
  • Stage 2: YOLO, Faster R–CNN sleeper localization for real–time component detection.
  • Stage 3: Transformer–based crack detection (RT–DETR) for improved sensitivity under shadows and occlusion.
Figure 1 illustrates the proposed hybrid inspection pipeline for prestressed concrete railway sleepers. The present study reports baseline detector performance without ablation of these enhancements.
Figure 1. Proposed hybrid inspection framework for prestressed concrete railway sleepers. Colored modules outline the multi–stage classification and detection process, with red boundaries highlighting target detection regions [by author].

2. Materials and Methods

2.1. Field Investigations and Defect Characterization: LFI Arezzo Corridor

A systematic field investigation was conducted along the Arezzo District segment of the La Ferroviaria Italiana (LFI) [31] regional line to evaluate the in–service condition of prestressed concrete sleepers and identify deterioration mechanisms influenced by operational, environmental, and maintenance factors. The survey encompassed active track sections, a discarded sleeper storage yard, and the Baraclit industrial siding (km 31 + 155), enabling assessment across multiple service–life stages and degradation profiles.
Visual inspections revealed consistent longitudinal cracking along sleeper axes, indicating a multifactorial origin involving mechanical loading, environmental exposure and maintenance related stress affecting both surface and sub–rail seat regions. Currently, LFI relies on visual crack detection and acoustic percussion testing called “Chiavardino” to assess internal integrity [32]. However, visual methods, including AI systems, risk false negatives without contextual support, highlighting the need for hybrid AI approaches that combine image–level and object–level reasoning for more reliable diagnostics.
Longitudinal cracking emerged as the most prevalent and structurally significant defect observed during the field survey. Consistent with EN 13230 and Rete Ferroviaria Italiana (RFI), construction issues like misaligned tendons or poor compaction create internal tensile stress concentrations. Operational wheel–rail interactions induce lateral loads and repetitive tensile cycling, while maintenance activities like ballast tamping impose transient loads that accelerate crack initiation and propagation. Prestressing–related imperfections or local compaction deficiencies can create stress concentrations; repeated wheel–rail loading and uneven ballast reactions can produce cyclic tensile demand; maintenance operations can temporarily disturb support conditions; and moisture can enter existing fissures or porous regions. Where freezing exposure occurs, the water–to–ice phase change may add internal pressure at wetted discontinuities. The coupled thermo–hydro–mechanical–damage analysis reported by Yu et al. [33] provides a mechanistic basis for this last process, showing that frost–induced crack evolution depends on pre–existing fissures and concrete mesostructure.
  • Construction–related conditions: Prestressing tendon misalignment and incomplete concrete compaction, leading to internal tensile concentrations and void formation.
  • Wheel–rail interaction in curved track geometries: Inducing lateral loading, torsional deformation, and uneven ballast reactions that translate into repetitive tensile cycling.
  • Maintenance–induced overstressing: Particularly from ballast tamping, track lifting, and rail replacement operations imposing localized point loads.
  • Moisture ingress below the rail plate (piastrina): Facilitating freeze–thaw expansion and potential corrosion of embedded prestressing reinforcement.
Sleeper cracking represents a progressive deterioration process rather than a discrete failure state, where visual severity does not always correlate with structural criticality. Consequently, pixel–level inspection alone risks misclassification, underscoring the need for the context–aware hybrid AI approach.

2.2. Field Case Study

The Baraclit industrial siding serves as a natural testbed for aging–related sleeper deterioration, with a low–traffic operational regime characterized by volume of 10 trains per year and an axle load of 20 tonnes per axle. Minimal maintenance, aside from replacing failed units, ensures defects reflect natural degradation. Unlike fatigue–driven mainlines, deterioration appears as discolouration, surface scaling, and subtle cracking, providing a visually complex environment ideal for validating AI–based computer vision models under realistic field conditions.
This study underscores the interplay of multiple defect mechanism, including construction flaws, wheel–rail forces, maintenance–induced stresses, and moisture ingress that collectively accelerate longitudinal cracking in prestressed concrete sleepers. Figure 2 illustrates both surface and sub–rail seat cracks, highlighting the difficulty of detecting hidden defects beneath ballast. Traditional LFI methods often miss sub–surface cracks, while the proposed AI–driven pipeline enables automated, predictive inspection, improving reliability and reducing risk in heavy–haul and track maintenance railway environments.
Figure 2. Site map—Arezzo LFI corridor [by author].

2.3. Image–Based Classification of Railway Sleeper Conditions

The classification task distinguished in–service railway sleepers from discarded sleepers removed due to structural failure, representing two lifecycle stages relevant to practical railway maintenance and inspection planning. Railway_Track denotes sleepers photographed in the operational track environment, whereas Sleepers_dump denotes discarded sleepers photographed in the maintenance or storage area.
The curated dataset comprises 294 high–resolution field images collected from the Arezzo–RFI corridor, Baraclit Junction, and the LFI maintenance yard. All images were captured under natural conditions without surface cleaning, preserving ballast coverage and environmental complexity, as summarised in Table 1.
Table 1. Classification and detection dataset characteristics.
The classification distribution is shown in Figure 3. Three ImageNet–pretrained CNN architectures were evaluated: EfficientNet–B0 [9], ResNet50 [8] and VGG19 [7]. EfficientNet–B0 represents compound–scaled convolution, ResNet50 represents residual learning, and VGG19 provides a deep sequential convolutional baseline. The model set therefore compares three different architectural families rather than multiple head variants of the same network. Their structural characteristics and expected strengths are summarized in Figure 4.
Figure 3. Class distribution of the 294 images classification dataset [by author].
Figure 4. CNN architectures used for classification: (a) EfficientNet–B0, (b) VGG19, (c) ResNet50 [7,8,9].
Accuracy, balanced accuracy, macro precision, macro recall, macro F1 and ROC AUC were calculated for each validation fold. The training and evaluation settings are summarized in Table 2.
Table 2. Classification training parameters.
The five folds preserved the class proportions closely. Folds 1–4 each contained 59 validation images, comprising 43 Railway_Track and 16 Sleepers_dump images, while Fold 5 contained 58 images, comprising 42 Railway_Track and 16 Sleepers_dump images. This gave 235 training images in Folds 1–4 and 236 in Fold 5. Each image served exactly once as validation data, producing pooled out–of–fold predictions for all 294 images. Mean values and sample standard deviations were calculated across the five folds. Balanced accuracy and macro–averaged measures were included because the class frequencies are unequal. To maintain a single source of truth and avoid redundant reporting, consolidated class–wise precision, recall, F1–score, and overall accuracy are reported in Table 3, which forms the basis for all subsequent interpretation and discussion.
Table 3. Five–fold cross–validation performance (mean ± sample standard deviation).

2.4. Object Detection

Object detection is central to the proposed railway inspection framework, enabling accurate localization of sleepers and surface cracks under real–world conditions using YOLOv11, RT–DETR and Faster R–CNN [21]. YOLOv11 provides a compact one–stage convolutional baseline, RT–DETR provides transformer–based end–to–end detection, and Faster R–CNN provides a two–stage region–proposal benchmark. All three were evaluated on the same corrected validation partition.
The dataset was curated in COCO format using Label Studio, comprising two classes: sleeper and crack. The object–detection subset contained 214 source images with paired annotations. A deterministic 70/30 split with seed 42 produced 150 training images and 64 validation images. The validation set contained 177 annotated instances, comprising 108 cracks and 69 sleepers. YOLOv11 and RT–DETR were trained for 50 epochs at 640 × 640 input resolution with batch size 16; the training routine selected AdamW. Faster R–CNN was trained for 50 epochs with batch size 2 using SGD with a learning rate of 0.005, momentum of 0.9 and weight decay of 0.0005. Horizontal bounding boxes were used for the common evaluation. Precision, recall and F1–score in the fixed operating–point comparison were calculated at confidence 0.25 and IoU 0.50, while AP@0.5 and AP@0.5:0.95 were obtained from the full precision–recall evaluation.

3. Results

3.1. Classification Results and Model Interpretation

EfficientNet–B0 and ResNet50 classified every validation image correctly in all five folds, producing mean accuracy, balanced accuracy, macro precision, macro recall and macro F1 values of 1.0000 with zero fold–to–fold standard deviation. VGG19 was also stable across the partitions: four folds were classified without error, while Fold 2 contained one misclassification. The resulting VGG19 mean accuracy was 0.9966 ± 0.0076 and mean macro F1 was 0.9958 ± 0.0094. The fold–wise comparison in Figure 5 shows the stability of the three classifiers.
Figure 5. Fold–wise validation macro F1 for EfficientNet–B0, ResNet50 and VGG19 [by author].
EfficientNet–B0 and ResNet50 remained at a macro F1 of 1.000 across all five validation folds. VGG19 reached 1.000 in Folds 1, 3, 4 and 5 and 0.9790 in Fold 2. The cross–validation statistics therefore confirm that the observed classification performance is not dependent on a single random split. The pooled out–of–fold predictions provide class–wise results for the full classification dataset. EfficientNet–B0 and ResNet50 correctly classified all 214 Railway_Track images and all 80 Sleepers_dump images. VGG19 correctly classified 213 of 214 Railway_Track images and all 80 Sleepers_dump images; its only error was a Railway_Track image assigned to Sleepers_dump. Table 4 reports the corresponding precision, recall and F1 values.
Table 4. Performance comparison of CNN and transfer–learning architectures.
The pooled out–of–fold ROC analysis produced AUC = 1.000 for EfficientNet–B0 and ResNet50 and AUC = 0.999 for VGG19. VGG19 retained an AUC of 1.000 within each fold because the class scores preserved complete rank separation even though one image crossed the decision threshold in Fold 2. The pooled ROC result and the single VGG19 confusion error are therefore consistent with the fold–level metrics as shown in Figure 6. The classification performance of the three CNN models was further evaluated using the pooled out–of–fold ROC curves shown in Figure 6.
Figure 6. Receiver operating characteristic curves from pooled out–of–fold predictions [by author].
Several studies have reported that VGG–based architectures outperform deeper residual networks for texture–dominated inspection tasks: VGG19 achieved almost 99% accuracy in surface crack recognition [34], VGG19 exceeded ResNet–50 in concrete crack datasets [35,36], and VGG16 showed superior stability over ResNet–50 in railway fastener detection under minimal data [37,38]. The performance trends observed in Table 5 are strongly consistent with previous studies that VGG architectures can be more reliable than deeper residual networks for texture–dominated inspection tasks under limited or high–entropy data. Studies from other imaging domains are cited here only to support general model–behaviour trends under limited/noisy data (e.g., depth penalty and pooling effects), while domain–specific comparisons are prioritized for railway and concrete defect inspection.
Table 5. Comparison of findings with the prior studies.

Explainability via Grad–CAM—Image Classification

Gradient–weighted Class Activation Mapping (Grad–CAM) was applied to EfficientNet–B0, ResNet50 and VGG19 to examine the image regions contributing to their classification decisions. Grad–CAM enables visualization of spatial regions contributing most strongly to the predicted class by projecting class–specific gradient information onto the final convolutional feature maps. Figure 7 presents representative original images together with the corresponding Grad–CAM maps and overlays for the three classifiers. The activation patterns varied among the architectures and also between individual images. EfficientNet–B0 generally produced broader responses distributed over sleeper surfaces, rail–seat regions and adjacent structural boundaries. In several cases, the activated regions extended partly into the surrounding ballast, indicating that contextual information contributed to the image–level decision. ResNet50 showed comparatively localized high–response regions around visually distinct sleeper and fastening features, although background activation was also observed in some samples. VGG19 frequently produced elongated responses along the sleeper body and its edges, reflecting greater emphasis on linear and surface–texture features.
Figure 7. Grad–CAM visualizations for railway sleeper classification using EfficientNet–B0, ResNet50, and VGG19 [by author] The heat-map colors indicate relative activation intensity, from lower activation (blue) to higher activation (red).
Grad–CAM uses class–specific gradients from the final convolutional features to generate spatial activation maps, thereby providing an indication of the regions that influenced a predicted class [29]. Feature–map visualization has also been widely used to interpret the spatial representations learned within convolutional networks [39]. To support the visual comparison quantitatively, three measures were used such as Activation Concentration Index (ACI), high–activation area (HAA) and Normalized Entropy (NE).
As shown in Table 6, ResNet50 showed the most concentrated attention, with the highest ACI and the smallest high–activation area. EfficientNet–B0 showed a broader activation pattern, while VGG19 produced relatively wider strong–activation regions. These values support the visual differences observed in Figure 7. The Grad–CAM results describe how the models distribute attention within the image and should be considered together with the five–fold classification results. Since the classification task distinguishes Railway_Track and Sleepers_dump images, attention may also appear on ballast, sleeper edges and fastening regions. Crack localization is evaluated separately in the object–detection stage.
Table 6. Quantitative Grad–CAM comparison.

3.2. Object Detection Metrics and Performance Comparison

Object detection performance was evaluated using precision, recall, F1–score, and average precision (AP), and performance evaluation prioritized mean average precision (mAP) over raw accuracy, as mAP provides a more reliable measure of localization and classification performance in imbalanced datasets. For direct comparison among the three detectors, precision, recall and F1–score were evaluated at a confidence threshold of 0.25 and an intersection over union (IoU) threshold of 0.50. AP@0.5 and AP@0.5:0.95 were obtained from the complete precision–recall evaluation [40]. Sleeper localization consistently achieved near–unity confidence, reflecting the model’s ability to exploit distinct geometric features and structural cues. In contrast, crack detection exhibited moderate confidence due to the inherent challenges posed by thin, low–contrast geometries and irregular surface patterns, which limit feature distinctiveness under field conditions. The overall comparison is given in Table 7. The three models showed different strengths on the common validation set. RT–DETR produced the highest mAP values, with mAP@0.5 = 0.740 and mAP@0.5:0.95 = 0.554. YOLOv11 gave the highest overall precision at the selected operating point, while Faster R–CNN returned the highest macro averaged F1–score. The results therefore do not support a single ranking based on one metric alone. RT–DETR was stronger when detection coverage and AP were considered, YOLOv11 was more selective in its predictions, and Faster R–CNN provided the most balanced F1 response at the common threshold.
Table 7. Overall performance of the three object detection models.
The class results reveal a much larger separation between the models for crack detection than for sleeper localization. All three detectors localized sleepers reliably. The sleeper AP@0.5 values were 0.995 for YOLOv11, 0.991 for RT–DETR and 0.998 for Faster R–CNN. Crack detection was more demanding. Thin crack traces, weak contrast, fragmentation and background texture reduced the distinctiveness of the defect class, particularly in field images where ballast, fasteners, stains and surface irregularities can resemble portions of a crack.
This behaviour is consistent with earlier railway and infrastructure defect studies in which detector performance was strongly influenced by defect width, contrast and background complexity [37]. Published comparisons between YOLO–based detectors and RT–DETR have also reported different trade–offs between inference efficiency and detection sensitivity [4]. Table 8 summarizes the performance of the three detectors on the common validation set. Another study showed that RT–DETR performs well when defects are visually distinct and training is domain–specific [39].
Table 8. Class–wise detection performance of YOLOv11, RT–DETR and Faster R–CNN models.
For YOLOv11, crack mAP@0.5 and mAP@0.5:0.95 were 0.314 and 0.119, respectively. RT–DETR performed better, increasing these values to 0.489 and 0.227, while Faster R–CNN achieved 0.406 and 0.133 The results show that crack localization, rather than sleeper detection, remains the main limitation. The marked gap between sleeper and crack mAP reflects the difficulty of detecting fine, low–contrast and partly occluded cracks. Figure 8 supports this trend, showing reliable sleeper localization but greater variation in crack boxes. Difficult cases mainly involve discontinuous cracks near rail fastenings, ballast edges and textured concrete surfaces, where visual separation from the surrounding background becomes difficult during detection.
Figure 8. YOLOv11 qualitative detection classes with confidence scores [by author].
The precision–recall curves in Figure 9 show that the main separation between the models occurs in the crack class rather than in sleeper localization. YOLOv11 delivers superior precision and processing capability, making it highly effective for continuous onboard inspection where speed and reliability are critical. Conversely, RT–DETR demonstrates greater sensitivity to complex and fragmented crack patterns, positioning it as an appropriate choice for detailed secondary analysis where detection completeness outweighs throughput. The normalized confusion matrix in Figure 10 shows that about 31% of true crack instances were assigned to the crack class, while approximately 69% were associated with background.
Figure 9. Precision–recall curves for (a) YOLOv11 and (b) RT–DETR, showing the separate crack and sleeper classes and the overall mAP@0.5 [by author].
Figure 10. Normalized confusion matrices for (a) YOLOv11 and (b) RT–DETR [by author].
RT–DETR produced the highest overall mAP values and the highest crack AP among the three detectors. At the common operating point, crack precision was 0.236 and recall was 0.593, giving F1 = 0.338. The higher recall indicates that RT–DETR recovered more of the annotated cracks, although this was accompanied by more false–positive crack predictions. This trade–off is evident in Figure 8 and Figure 9; the crack precision–recall curve is stronger than that of YOLOv11, while the confusion matrix shows improved crack retention together with substantial background–to–crack confusion.
The three detectors therefore showed different operating characteristics rather than a simple first–to–third ranking. RT–DETR gave the highest overall mAP and the strongest crack AP, YOLOv11 gave the highest overall precision, and Faster R–CNN gave the highest overall F1–score. Figure 8, Figure 9, Figure 10 and Figure 11 retain only the plots needed to explain class–wise behaviour, confusion patterns.
Figure 11. RT–DETR qualitative detection classes with confidence scores [by author].
Table 9 summarizes crack–level true positives, false positives and false negatives at the common operating point. Crack level true positives, false positives and false negatives were examined at confidence = 0.25 and IoU = 0.50 to make the operating behaviour easier to interpret. YOLOv11 produced 29 true positives, 21 false positives and 79 false negatives. RT–DETR produced 64 true positives, 207 false positives and 44 false negatives, while Faster R–CNN produced 48 true positives, 53 false positives and 60 false negatives. The class–wise metrics show that YOLOv11 is more conservative but misses more cracks, RT–DETR detects more of the annotated cracks but generates substantially more false alarms, and Faster R–CNN lies between these two behaviours.
Table 9. Crack detection error counts at confidence 0.25 and IoU 0.50.
The RT–DETR examples in Figure 11 show the same tendency observed in the numerical results. The detector recovers a larger set of crack candidates, including fragmented and low–contrast regions that are not always retained by the more conservative YOLOv11 operating response.
Faster R–CNN was retained as a two–stage region proposal benchmark. Its average training loss decreased from approximately 0.48 at the beginning of training to about 0.05 at epoch 50, showing stable optimization over the training period. On the common validation set, the detector achieved precision = 0.648, recall = 0.722, F1–score = 0.681, mAP@0.5 = 0.702 and mAP@0.5:0.95 = 0.441. Its crack AP@0.5 was 0.406, while sleeper AP@0.5 reached 0.998. The validation metrics, rather than the training loss alone, were used to judge comparative detector performance are shown in Figure 12.
Figure 12. Faster R–CNN training–loss progression and final validation metrics [by author].
This confirms that the optimization process converged during the 50 training epochs. The accompanying validation metrics place Faster R–CNN between YOLOv11 and RT–DETR in crack detection behaviour: it does not reach the crack recall of RT–DETR, but it avoids the very large false positive count observed for RT–DETR at the common confidence setting.

3.3. Detection Error Analysis

The error analysis shows that crack localization is the main limitation of the detection framework. YOLOv11 produced 29 true positives, 21 false positives and 79 false negatives, corresponding to a crack recall of 0.269. RT–DETR increased crack recall to 0.593 and reduced the number of missed cracks to 44, although this was accompanied by a larger number of false positives. Faster R–CNN showed an intermediate response, with 48 true positives, 53 false positives and 60 false negatives.
The main errors were associated with thin or low–contrast cracks, fragmented crack paths, ballast occlusion and surface textures near fastenings. YOLOv11 was more conservative, RT–DETR recovered more cracks, and Faster R–CNN showed a more balanced error pattern. These results identify fine crack localization as the main performance bottleneck.

3.4. Engineering Applicability and Deployment Considerations

The framework was evaluated using offline field images, but the three detectors can support practical railway inspection in different ways. YOLOv11, RT–DETR and Faster R–CNN are all suitable for sleeper and crack inspection, with differences mainly in precision, recall and error behaviour. YOLOv11 offers efficient screening with fewer false alarms, RT–DETR provides higher crack sensitivity, and Faster R–CNN gives a balanced precision–recall response. Together, they can support image acquisition, sleeper localization, crack screening and secondary verification before engineer review. Field deployment should further examine camera motion, illumination, weather, vibration and varying inspection speeds.

4. Conclusions

This study developed a hybrid deep learning framework for condition classification and crack detection of prestressed concrete railway sleepers using field images collected from the LFI Arezzo corridor. The classification dataset contained 294 images, comprising 214 Railway_Track and 80 Sleepers_dump images, and was evaluated using stratified five–fold cross–validation to reduce the dependence of the results on a single data split.
For image classification, EfficientNet–B0 and ResNet50 achieved 1.0000 ± 0.0000 accuracy and macro F1 across the five folds, while VGG19 achieved 0.9966 ± 0.0076 accuracy and 0.9958 ± 0.0094 macro F1. The pooled out–of–fold results confirmed the same trend, with only one VGG19 misclassification. Grad–CAM analysis also showed that the three classifiers used different spatial attention patterns, although all produced very high classification performance.
For object detection, all three models localized sleepers well, but crack detection remained more difficult. RT–DETR achieved the highest overall mAP@0.5 of 0.740 and the highest crack AP@0.5 of 0.489. YOLOv11 gave the highest overall precision, while Faster R–CNN produced the highest overall F1–score. Thin and low–contrast cracks, fragmented crack paths, ballast occlusion and fastening–zone textures were the main sources of error. The results therefore show that the three detectors have different but useful operating strengths, while fine crack localization remains the main area requiring further improvement.
The framework was assessed using offline field images and can support sleeper screening, localization and crack review before engineer inspection. Further work should examine continuous field deployment under changing lighting, camera motion, vibration, weather and inspection speed. Overall, the framework provides a practical basis for integrating AI–assisted sleeper inspection into railway maintenance and digital inspection workflows.

Author Contributions

Conceptualization, S.S.H.T. and S.R.; methodology, S.S.H.T.; software, S.S.H.T.; validation, S.S.H.T., S.R. and C.S.R.T.; formal analysis, S.S.H.T.; investigation, S.S.H.T.; resources, S.R. and C.S.R.T.; data curation, S.S.H.T.; writing—original draft preparation, S.S.H.T.; writing—review and editing, S.S.H.T., S.R. and C.S.R.T.; visualization, S.S.H.T.; supervision, S.R.; project administration, S.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The datasets generated and analyzed during the present study are not publicly available due to field–permission and institutional restrictions. However, relevant processed data, annotation details may be made available by the corresponding author upon reasonable request and subject to approval from the concerned authority.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Kaewunruen, S.; Remennikov, A.M. Dynamic crack propagations in prestressed concrete sleepers in railway track systems subjected to severe impact loads. J. Struct. Eng. 2010, 136, 749–754. [Google Scholar] [CrossRef] [Scilit]
  2. Kaewunruen, S.; Remennikov, A.M. Experiments into impact behaviour of railway prestressed concrete sleepers. Eng. Fail. Anal. 2011, 18, 2305–2315. [Google Scholar] [CrossRef] [Scilit]
  3. Li, D.; You, R.; Kaewunruen, S. Crack propagation assessment of time–dependent concrete degradation of prestressed concrete sleepers. Sustainability 2022, 14, 3217. [Google Scholar] [CrossRef] [Scilit]
  4. Cha, Y.J.; Choi, W.; Büyüköztürk, O. Deep learning–based crack damage detection using convolutional neural networks. Comput.–Aided Civ. Infrastruct. Eng. 2017, 32, 361–378. [Google Scholar] [CrossRef] [Scilit]
  5. Dorafshan, S.; Thomas, R.J.; Maguire, M. Comparison of deep convolutional neural networks and edge detectors for crack detection. Constr. Build. Mater. 2018, 186, 1031–1045. [Google Scholar] [CrossRef] [Scilit]
  6. Kumar, A.; Harsha, S.P. A systematic literature review of defect detection in railways using machine vision–based inspection methods. Int. J. Transp. Sci. Technol. 2024, 18, 207–216. [Google Scholar] [CrossRef] [Scilit]
  7. Simonyan, K.; Zisserman, A. Very deep convolutional networks for large–scale image recognition. In Proceedings of the 3rd International Conference on Learning Representations (ICLR 2015), San Diego, CA, USA, 7–9 May 2015. [Google Scholar] [CrossRef] [Scilit]
  8. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar] [CrossRef] [Scilit]
  9. Tan, M.; Le, Q.V. EfficientNet: Rethinking model scaling for convolutional neural networks. In Proceedings of the International Conference on Machine Learning (ICML), Cambridge, MA, USA, 10–15 June 2019; Volume 97, pp. 6105–6114. [Google Scholar] [CrossRef] [Scilit]
  10. Phaphuangwittayakul, A.; Harnpornchai, N.; Ying, F.; Zhang, J. RailTrack–DaViT: A vision transformer–based approach for automated railway track defect detection. J. Imaging 2024, 10, 192. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Lin, X.; Wang, S.; Shen, J. Attention enhanced EfficientNet for concrete structure crack classification with generative adversarial network augmented data. Struct. Concr. 2025, 26, 4651–4666. [Google Scholar] [CrossRef] [Scilit]
  12. Yang, Q.; Shi, W.; Chen, J.; Lin, W. Deep convolution neural network–based transfer learning method for civil infrastructure crack detection. Autom. Constr. 2020, 116, 103199. [Google Scholar] [CrossRef] [Scilit]
  13. Zhang, L.; Yang, F.; Zhang, Y.D.; Zhu, Y.J. Road crack detection using deep convolutional neural network. In Proceedings of the 2016 IEEE International Conference on Image Processing (ICIP), Phoenix, AZ, USA, 25–28 September 2016; pp. 3708–3712. [Google Scholar] [CrossRef] [Scilit]
  14. Philip, R.E.; Andrushia, A.D.; Nammalvar, A.; Gurupatham, B.G.A.; Roy, K. A comparative study on crack detection in concrete walls using transfer learning techniques. J. Compos. Sci. 2023, 7, 169. [Google Scholar] [CrossRef] [Scilit]
  15. Dietterich, T.G. Approximate statistical tests for comparing supervised classification learning algorithms. Neural Comput. 1998, 10, 1895–1923. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  16. Akyon, F.C.; Altinuc, S.O.; Temizel, A. Slicing aided hyper inference and fine–tuning for small object detection. In Proceedings of the 2022 IEEE International Conference on Image Processing (ICIP), Bordeaux, France, 16–19 October 2022. [Google Scholar] [CrossRef] [Scilit]
  17. Kaveh, H.; Alhajj, R. Recent advances in crack detection technologies for structures: A survey of 2022–2023 literature. Front. Built Environ. 2024, 10, 1321634. [Google Scholar] [CrossRef] [Scilit]
  18. Dong, X.; Liu, Y.; Dai, J. Concrete surface crack detection algorithm based on improved YOLOv8. Sensors 2024, 24, 5252. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  19. Chandramouli, A.; Song, H.; Liu, M.; Damai, A.; Narman, H.S.; Alzarrad, A. Deep learning approaches for railroad infrastructure monitoring: Comparing YOLO and vision transformers for defect detection. In Proceedings of the 2025 IEEE 16th Annual Ubiquitous Computing, Electronics & Mobile Communication Conference (UEMCON), Yorktown Heights, NY, USA, 22–24 October 2025; pp. 205–211. [Google Scholar] [CrossRef] [Scilit]
  20. Chintalapally, A.; Bejjam, A. AI–driven railway maintenance using object detection and segmentation. In Proceedings of the SHM 2025 Conference, Stanford, CA, USA, 9–11 September 2025; Available online: https://www.dpi-proceedings.com/index.php/shm2025/article/view/37361 (accessed on 16 July 2026).
  21. Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R–CNN: Towards real–time object detection with region proposal networks. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 1137–1149. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  22. Zhao, Y.; Lv, W.; Xu, S.; Wei, J.; Wang, G.; Dang, Q.; Liu, Y.; Chen, J. DETRs beat YOLOs on real–time object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 17–21 June 2024; pp. 16965–16974. [Google Scholar] [CrossRef] [Scilit]
  23. Ding, F. Crack detection in infrastructure using transfer learning, spatial attention, and genetic algorithm optimization. arXiv 2024, arXiv:2411.17140. [Google Scholar] [CrossRef] [Scilit]
  24. Carion, N.; Massa, F.; Synnaeve, G.; Usunier, N.; Kirillov, A.; Zagoruyko, S. End–to–End Object Detection with Transformers. In Computer Vision–ECCV 2020; Springer: Cham, Switzerland, 2020. [Google Scholar] [CrossRef] [Scilit]
  25. Li, S.; Zhao, X.; Zhou, G. Automatic pixel–level multiple crack detection of concrete structures. Comput.–Aided Civ. Infrastruct. Eng. 2019, 34, 616–634. [Google Scholar] [CrossRef] [Scilit]
  26. Wan, Y.; Wang, H.; Lu, L.; Zhang, Y.; Chen, M. An improved real–time detection transformer model for traffic safety facility inspection. Sustainability 2024, 16, 10172. [Google Scholar] [CrossRef] [Scilit]
  27. Minoura, S.; Watanabe, T. Fundamental study on crack detection method for prestressed concrete sleepers using deep learning model. Q. Rep. RTRI 2026, 67, 111–118. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  28. Nasimov, R.; Cho, Y.I. Smart city infrastructure monitoring with a hybrid vision transformer for micro crack detection. Sensors 2025, 25, 5079. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  29. Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad–CAM: Visual explanations from deep networks via gradient–based localization. In Proceedings of the 2017 IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017; pp. 618–626. [Google Scholar] [CrossRef] [Scilit]
  30. BS EN 13230–1:2016; Railway Applications–Track–Concrete Sleepers and Bearers–Part 1: General Requirements. BSI: London, UK, 2016.
  31. La Ferroviaria Italiana S.p.A. Prescrizione di Esercizio LFI n. 01/2025: Procedura d’Interfaccia. Norme per la Circolazione dei Convogli da e Verso il Raccordo Baraclit Nella Stazione di Bibbiena; La Ferroviaria Italiana S.p.A.: Arezzo, Italy, 2025. [Google Scholar]
  32. Regione Toscana. Atto di Imposizione Obbligo di Servizio per la Gestione Dell’infrastruttura Ferroviaria Regionale (LFI). Available online: https://web.archive.org/web/20260609144842/https://www.regione.toscana.it/-/lfi (accessed on 15 May 2024).
  33. Yu, S.; Huang, S.; Li, Y.; Liang, Z. Insights into the frost cracking mechanisms of concrete by using the coupled thermo–hydro–mechanical–damage meshless method. Theor. Appl. Fract. Mech. 2025, 136, 104814. [Google Scholar] [CrossRef] [Scilit]
  34. Khan, M.A.–.M.; Kee, S.–.H.; Nahid, A.–.A. Vision–based concrete–crack detection on railway sleepers using Dense U–Net model. Algorithms 2023, 16, 568. [Google Scholar] [CrossRef] [Scilit]
  35. Ali, L.; Alnajjar, F.; Jassmi, H.A.; Gocho, M.; Khan, W.; Serhani, M.A. Performance evaluation of deep CNN–based crack detection and localization techniques for concrete structures. Sensors 2021, 21, 1688. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  36. Paramanandham, N.; Koppad, D.; Anbalagan, S. Vision–based crack detection in concrete structures using cutting–edge deep learning techniques. Trait. Signal 2022, 39, 385–395. [Google Scholar] [CrossRef] [Scilit]
  37. Chen, J.; Liu, Z.; Wang, H.; Núñez, A.; Han, Z. Automatic defect detection of fasteners on the catenary support device using deep convolutional neural network. IEEE Trans. Instrum. Meas. 2018, 67, 257–269. [Google Scholar] [CrossRef] [Scilit]
  38. Wei, X.; Yang, Z.; Liu, Y.; Wei, D.; Jia, L.; Li, Y. Railway track fastener defect detection based on image processing and deep learning techniques: A comparative study. Eng. Appl. Artif. Intell. 2019, 80, 66–81. [Google Scholar] [CrossRef] [Scilit]
  39. Zeiler, M.D.; Fergus, R. Visualizing and understanding convolutional networks. In Computer Vision–ECCV 2014; Fleet, D., Pajdla, T., Schiele, B., Tuytelaars, T., Eds.; Springer: Cham, Switzerland, 2014; Volume 8689, pp. 818–833. [Google Scholar] [CrossRef] [Scilit]
  40. Ultralytics. Performance Metrics Deep Dive: mAP, AP50/AP75, Precision, Recall, Confusion Matrix. Available online: https://docs.ultralytics.com/guides/yolo–performance–metrics/ (accessed on 15 May 2024).
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.