Skip to Content
SensorsSensors
  • Article
  • Open Access

4 September 2025

18 Pages

MDEM: A Multi-Scale Damage Enhancement MambaOut for Pavement Damage Classification

,
,
,
and
Software Engineering College, Zhengzhou University of Light Industry, 136 Science Avenue, Zhengzhou 450000, China
*
Author to whom correspondence should be addressed.
This article belongs to the Section Sensing and Imaging

Abstract

Pavement damage classification is crucial for road maintenance and driving safety. However, restricted to the varying scales, irregular shapes, small area ratios, and frequent overlap with background noise, traditional methods struggle to achieve accurate recognition. To address these challenges, a novel pavement damage classification model is designed based on the MambaOut named Multi-scale Damage Enhancement MambaOut (MDEM). The model incorporates two key modules to improve damage classification performance. The Multi-scale Dynamic Feature Fusion Block (MDFF) adaptively integrates multi-scale information to enhance feature extraction, effectively distinguishing visually similar cracks at different scales. The Damage Detail Enhancement Block (DDE) emphasizes fine structural details while suppressing background interference, thereby improving the representation of small-scale damage regions. Experiments were conducted on multiple datasets, including CQU-BPMDD, CQU-BPDD, and Crack500-PDD. On the CQU-BPMDD dataset, MDEM outperformed the baseline model with improvements of 2.01% in accuracy, 2.64% in precision, 2.7% in F1-score, and 4.2% in AUC. The extensive experimental results demonstrate that MDEM significantly surpasses MambaOut and other comparable methods in pavement damage classification tasks. It effectively addresses challenges such as varying scales, irregular shapes, small damage areas, and background noise, enhancing inspection accuracy in real-world road maintenance.

1. Introduction

Transportation plays a pivotal role in national economic development, with a welldeveloped road network serving as one of its key infrastructural foundations. However, due to long-term high-frequency usage and untimely maintenance, roads are prone to various degrees of damage, which can reduce their service life and pose safety risks [1]. Therefore, the timely detection and assessment of pavement damage are of great significance for road maintenance and driving safety. Early pavement inspection primarily relied on manual on-site surveys and measurements. While this method offers a certain level of intuitiveness, it is labor-intensive and subject to variability due to inspectors’ professional expertise and subjective judgment, leading to potential uncertainty in results. With the technological advancement, sensors, radar, laser imaging systems, and 2D/3D camera equipment have been increasingly applied in pavement damage detection. These automated techniques not only significantly enhance detection efficiency but also improve the objectivity and accuracy of the results [2]. For instance, Wang et al. [3] proposed a pavement mean texture depth detection method based on 3D laser scanning sensors; Zheng et al. [4] designed a minimum spanning tree algorithm integrated with 3D laser scanning for pavement damage identification. Although these methods offer high accuracy, they demand high-performance hardware and are unsuitable for lightweight detection scenarios. Zhang et al. [5,6] employed vehicle-mounted sensors to detect pavement damage by analyzing the level of vehicle jolts when passing over damaged areas. However, this method is limited in scope as it only covers the wheel–path regions.
In recent years, with the rapid advancement of machine learning and deep learning technologies, an increasing number of researchers have adopted computer vision methods for pavement damage detection and classification. For example, Wang et al. [7] constructed a convolutional neural network (CNN) model based on 5000 images to detect cracks in asphalt pavements. Eisenbach et al. [8] designed a CNN architecture named ASINVOS for identifying five types of pavement distress. The model consists of seven convolutional layers, three pooling layers, and two fully connected layers. Kim et al. [9] developed a CNN model based on AlexNet, trained on images collected from the internet for crack detection, achieving both accuracy and recall rates above 90%. Additionally, the model could identify cracks from real-time video, with recall and accuracy reaching 81% and 88%, respectively. Zhang et al. [10] proposed a model based on CrackNet CNN, which enabled automatic pixel-level crack detection using 1800 3D images. Although deep convolutional neural networks (DCNNs) have shown promising results in damage segmentation tasks, CNNs are inherently limited in capturing long-range contextual information, making it difficult to effectively model multi-scale irregular damage features [11]. Moreover, due to the fixed size of convolutional kernels, the receptive field is constrained, allowing only local feature extraction, which may result in discontinuous crack predictions or false positives [12]. With the widespread adoption of Transformer architectures in computer vision, researchers have begun leveraging their global attention mechanisms to enhance the representational capacity of pavement damage images, achieving initial success. For instance, Tang et al. [13] proposed a weakly supervised visual Transformer model, PicT, built upon the Swin Transformer framework. They introduced a patch-label teacher module to dynamically generate pseudo-labels for learning discriminative features under weak supervision. Xu et al. [14] developed a Transformer model named DMTC for dense multi-scale feature learning, integrating a cross-attention mechanism to detect pothole patterns. Tong et al. [15] introduced the ES-Transformer model, which combines Dempster–Shafer theory with a Transformer backbone to improve segmentation accuracy and uncertainty calibration. Evaluated on the Crack500 dataset, the model achieved a mIoU of 59.85%, demonstrating strong overall performance. However, the computational complexity of Transformer architectures remains a challenge as their computational cost scales quadratically with input image size, limiting deployment efficiency in lightweight applications.
The aforementioned methods have proposed effective strategies for pavement damage detection and classification from various perspectives. However, restricted to the unique characteristics of pavement damage images, achieving high-precision and high-efficiency classification remains challenging. As shown in Figure 1, pavement damage in real-world scenes exhibits multi-scale and diverse patterns, ranging from fine cracks to large-area spalling. Irregular cracks have complex shapes, varying orientations, and discontinuous edges. They often overlap with traffic signs or shadows (a, b), increasing confusion between damage and background. Background regions frequently contain texture noise and granular contamination (b). Uneven illumination during image acquisition can further reduce the contrast between cracks and the background (c). In addition, low damage ratio is common (d), where damage occupies only a small area and is surrounded by large background regions, making it easily overlooked during feature learning. These factors collectively reduce the visual separability of different crack types, increase detection and classification difficulty, and limit the performance of existing methods in complex pavement scenarios.
Figure 1. Four sample images from different pavement damage characteristics.
This paper proposes a novel pavement damage classification model based on MambaOut [16], termed Multi-scale Damage Enhancement MambaOut (MDEM). MambaOut demonstrates excellent performance in image classification tasks due to its high modeling efficiency, low computational complexity, and hierarchical feature extraction mechanism. However, directly applying MambaOut to pavement damage classification presents two main limitations: First, it shows limitations in effectively modeling spatial structural details under complex backgrounds, which may hinder the extraction of discriminative features from fine-grained damaged regions. Second, it lacks an explicit mechanism for multi-scale feature fusion, potentially affecting its ability to recognize damage patterns with varying scales and visual similarities. To address these issues, we design MDEM. First, to improve its multi-scale modeling capability, a Multi-scale Dynamic Feature Fusion Block (MDFF) is designed, which combines multi-scale attention mechanisms with dynamic snake convolution to enable high-quality feature extraction for irregular damage across scales. Second, a Damage Detail Enhancement Block (DDE) is proposed, integrating spatial group enhancement and frequency-domain modeling to enhance the details of small-area damage regions and mitigate classification difficulties caused by background interference. The experimental results on the CQU-BPMDD dataset show that MDEM achieves improvements of 2.01% in accuracy, 2.64% in precision, 2.7% in F1-score, and 4.2% in AUC compared to the baseline MambaOut. The extensive experiments demonstrate that MDEM significantly outperforms MambaOut and other comparable methods in pavement damage classification tasks, offering an effective solution for damage recognition in complex scenarios. The technical route of this research is shown in Figure 2.
Figure 2. Schematic diagram of technical route.

3. Methodology

In this section, a detailed explanation of the key components of MDEM is provided. Specially, Section 3.1 focuses on the MDFF, Section 3.2 elaborates on the DDE, Section 3.3 introduces the loss functions, and Section 3.4 presents the description of MDEM. The overall architecture of MDEM is illustrated in Figure 3.
Figure 3. The overall architecture of MDEM.

3.1. Multi-Scale Dynamic Feature Fusion Block

The structure of the Multi-scale Dynamic Feature Fusion Block (MDFF), as illustrated in Figure 4, is designed to address the limitations of the Gated CNN block in MambaOut with respect to feature extraction. When dealing with visually similar irregular crack damage, MambaOut primarily relies on hierarchical convolution for feature extraction, lacking deep modeling of crack shapes and structural details. This often results in insufficient feature representation and subsequent classification errors. To tackle these issues, we design the MDFF module by integrating dynamic snake convolution [27], multi-scale attention mechanisms [28], and both local and non-local feature interaction [29]. These components are specifically aimed at mitigating classification difficulties caused by high visual similarity in damage patterns.
Figure 4. The architecture of MDFF. Part (a) is dynamic snake convolution; Part (b) is multi-scale attention mechanisms; Part (c) is used for nonlocal modeling; Part (d) is used for local modeling.
When handling irregular crack damage, MambaOut can only perform coarse feature extraction, making it difficult to accurately capture features aligned with crack shapes. Unlike traditional fixed-kernel convolution, DSConv introduces topological geometric constraints to guide convolution kernels through continuous serpentine displacements. This enables the receptive field to remain concentrated on the target region, facilitating the effective extraction of elongated and curved cracks. Rather than relying on random offsets, this approach dynamically adjusts the sampling path based on the crack morphology, enabling the kernel to more precisely focus on local damage structures and significantly enhancing the representation of irregular cracks. This process is described by Equations (1)–(3), where X D S C x and X D S C y represent the new positions after offsetting along the X and Y axes, respectively. ( x i , y i ) and ( x j , y j ) denote the center positions of convolution, c is the step size, and △ x and △ y are the offsets along the X and Y axes. X D S C denotes the output feature value, while X D S C ′ represents the original feature value used in interpolation. B ( X D S C , X D S C ′ ) is the weight contribution of X D S C ′ to the interpolated target X D S C , and b ( X D S C x , X D S C x ′ ) and b ( X D S C y , X D S C y ′ ) denote the weight contributions in the X and Y directions during interpolation.
X D S C x = x i + c , y i + ∑ i i + c Δ y x i − c , y i + ∑ i − c i Δ y
X D S C y = x j + ∑ j j + c Δ x , y i + c x j + ∑ j − c j Δ x , y i − c
X D S C = b ( X D S C x , X D S C x ′ ) · b ( X D S C y , X D S C y ′ )
Although MambaOut adopts a hierarchical architecture for progressive feature extraction, it lacks specific design for multi-scale crack modeling, resulting in limited capability when dealing with pavement damage of varying scales. By incorporating a multi-scale attention module, global dependencies can be captured using large convolution kernels, and parallel convolutional paths of different scales can be used to comprehensively perceive structural variations too. What is more, combined with a gating mechanism that focuses on local regions, the contribution of each scale’s attention map can be dynamically regulated to the final output, thereby resolving scale conflicts and enhancing sensitivity to high-frequency information such as texture edges and fine details at various scales. This process is described by Equations (4) and (5), where X M A B ′ denotes the final output of the multi-scale processing module, L N ( · ) represents layer normalization, ⊗ denotes element-wise multiplication, c i represents the i-th point-wise 1 × 1 convolution layer, f 1 ( · ) denotes the multi-scale large-kernel attention processing, and f 2 ( · ) denotes the gating mechanism module. λ i is the learnable scaling factor used to balance the influence of the residual term on the final result.
X M A B = X D S C + λ 1 · c 3 ( f 1 ( c 1 ( L N ( X D S C ) ) ) ⊗ c 2 ( L N ( X D S C ) ) )
X M A B ′ = X M A B + λ 2 · c 6 ( f 2 ( c 4 ( L N ( X M A B ) ) ) , c 5 ( L N ( X M A B ) ) )
In addition, we adopt a feature interaction strategy that combines local and nonlocal modeling to enhance contextual representation and improve feature discrimination. First, high-frequency local modeling is applied to the features processed by dynamic snake convolution and the multi-scale attention mechanism, focusing on the texture edge information of cracks at different scales to enhance the expression of fine-grained details. Simultaneously, low-frequency non-local modeling is performed on the features processed by the Gated CNN block to extract global structural information beyond the damaged regions. Finally, a variance-based modulation mechanism is employed to adaptively guide the fusion of local and non-local features based on regional content variation, generating a more discriminative final output. This process is described by Equations (6) and (7), where X M A B ′ is used for local modeling, X G is used for non-local modeling, and M ( · ) denotes the variance-based modulation mechanism for information fusion.
X M A B ′ , X G = S ( C o n v ( F i n 2 ) )
X M D F F = M ( X M A B ′ , X G )
Through the processing of the MDFF Block, the deficiency of MambaOut in feature extraction for visually similar, multi-scale irregular cracks can be effectively addressed. MDFF enhances the model’s attention to damaged regions and strengthens the representation of damage features, thereby providing strong support for achieving high-precision classification results.

3.2. Damage Detail Enhancement Block

With respect to pavement damage classification tasks, the low proportion of damaged regions and complex background interference are two key challenges affecting performance. The former leads to only subtle differences between damaged and intact pavement images, increasing the risk of missed detections; the latter arises from frequent overlaps between damaged areas and elements such as shadows or traffic markings, which hinder accurate feature extraction and can result in misclassification. To address these issues, this paper designs the Damage Detail Enhancement Block (DDE), with its structure illustrated in Figure 5. This module integrates a spatial group enhancement mechanism [30] and Fourier frequency-domain modeling technique [31], aiming to improve the robustness and discriminability of feature representations, thereby effectively reducing background interference and enhancing classification accuracy.
Figure 5. The architecture of DDE. Here, Part (a) is the spatial group enhancement mechanism; Part (b) is the Fourier frequency-domain modeling technique.
Specifically, the spatial group enhancement mechanism first divides the channel features into multiple subgroups, allowing different submodules of the model to focus on distinct types of spatial features, thereby enhancing the expressiveness of local regions. Then, within each channel group, the global average of spatial positions is computed and used as the reference baseline for spatial attention generation. Through normalization and adaptive adjustment, attention factors are generated and applied to the original feature maps to weight and enhance key regions while suppressing irrelevant or interfering areas. Furthermore, DDE incorporates Fourier frequency-domain modeling to capture discriminative features in high- or mid-frequency components. This mechanism guides the network to focus on channel regions with significant spectral responses via frequency-domain analysis, further improving the model’s ability to recognize fine-grained damage. This process is described by Equations (8)–(13), where X i n p u t denotes the input feature to the spatial group enhancement mechanism, x M D F F i represents local features within the i channel group, g denotes the global average feature within the current group, c i is the similarity coefficient, γ and β are attention control values for feature enhancement, σ ( · ) is the Sigmoid activation function, X o u t ( x , y ) represents the spatial-domain feature with positional information, X ^ o u t ( u , v ) denotes its frequency-domain representation, where ( u , v ) are frequency coordinates, e − j 2 π ( · ) transforms spatial information into complex frequency responses, and X D D E corresponds to the features enriched with frequency-domain information.
X i n p u t = x M D F F 1 , x M D F F 2 , · · · , x M D F F m
g = 1 m ∑ i = 1 m x M D F F i
c i = g · x M D F F i · cos ( θ i )
X o u t = x M D F F i · σ ( γ · c i + β )
X ^ o u t ( u , v ) = ∑ x = 0 H − 1 ∑ y = 0 W − 1 X o u t ( x , y ) · e − j 2 π ( u x H + u y W )
X D D E = X ^ o u t ( u , v )
By introducing DDE Block, pavement damage features are enhanced, while background noise is suppressed, and frequency-domain information relevant to classification is incorporated. In this way, the problems of low damage ratios and background interference can be effectively handled.

3.3. Loss Function

In pavement damage image classification tasks, damaged regions typically occupy a small portion of the image, with complex backgrounds and high visual similarity among damage types. These factors make the model prone to overfitting during training, particularly when handling samples with blurred edges or ambiguous class boundaries, leading to unstable performance. To enhance the model’s robustness and generalization in such complex scenarios, we adopt the Soft Target Cross-Entropy loss function during training when using Mixup or CutMix data augmentation techniques. Unlike conventional cross-entropy loss based on one-hot encoding, the labels generated by Mixup and CutMix are probabilistic mixtures of multiple classes referred to as soft labels. Such labels better simulate real-world conditions involving ambiguous or mixed targets, guiding the model to learn more stably from uncertain or boundary-blurred samples. Formally, for a given input image with a soft target label Y = y 1 , y 2 , · · · , y n and predicted output Y ^ = y ^ 1 , y ^ 2 , · · · , y ^ n , the loss is computed as Equation (14).
l = − ∑ i = 1 K y i · log ( y ^ i )
This loss design guides the model to construct smoother decision boundaries, effectively reducing the interference caused by label noise. It is particularly suitable for image samples with blurred damage edges, complex shapes, or extremely small damage ratios.

3.4. Multi-Scale Damage Enhancement MambaOut

The overall workflow of the Multi-scale Damage Enhancement MambaOut (MDEM) is as follows. When a pavement damage image is input into MDEM, it first passes through the stem layer for initial feature extraction. Then, the MDFF module is employed to fuse multi-scale damage information, followed by the DDE module for detail enhancement and frequency-domain modeling, improving the model’s sensitivity to small-scale and background-interfered damage features. This process constitutes Stage 1. Next, a downsampling operation is performed. Since downsampling reduces the spatial resolution of the feature maps and may lead to the loss of certain damage information, MDFF and DDE are re-applied to enrich damage features and enhance feature representation. These steps form Stages 2–4. After processing through all four stages, the fused high-level semantic features are passed into the classification head to generate the final classification prediction of the pavement damage image. This entire process is defined by Equations (15)–(17), where X denotes the input image; X s t a g e 1 is the output after Stage 1 processing; S t ( · ) denotes the initial stem layer; d ( · ) denotes the downsampling layer; M D F F ( · ) and D D F ( · ) represent the MDFF and DDE modules; M ( · ) denotes the variance-based modulation mechanism for feature fusion; f c l s ( · ) represents the classification head; Y i denotes the final predicted classification result.
X s t a g e 1 = D D F ( M D F F ( S t ( X ) ) )
X s t a g e i = D D F ( M D F F ( d ( X ) ) ) , 2 ≤ i ≤ 4
Y i = f c l s ( X s t a g e i )
In summary, we propose a novel pavement damage classification model named MDEM, which incorporates two key modules: MDFF and DDE. The MDFF module is designed to enhance the model’s ability to recognize visually similar, irregular, multi-scale cracks, while the DDE module guides the model to focus on low-proportion damage regions, enhancing damage details and reducing interference from redundant background information. Together, these components enable high-precision and accurate classification.

4. Experiments

4.1. Experimental Setting and Evaluation Metrics

All experiments in this work were performed on a 64-bit Windows 11 system. The hardware configuration comprised an Intel Core i5-12600KF processor (Intel, Santa Clara, CA, USA) and an NVIDIA RTX 4070 Ti SUPER GPU (Santa Clara, CA, USA) with 16 GB of memory. The model was developed using Python and built upon the PyTorch framework. CUDA version 11.8 was employed to accelerate training, thereby enhancing computational performance. In all experiments, the design of the fundamental parameters is shown in Table 1.
Table 1. Experimental parameter setting.
The experimental design of this study consists of two parts. The first part is a detection task, aiming to determine whether pavement damage exists in the input image. This task is evaluated using four commonly used metrics: AUC, F1-score, Precision, Recall, and FLOPs. The second part is a classification task, which focuses on identifying the specific type of damage. This task is also evaluated using four standard metrics: Accuracy, F1-score, Precision, Recall, and FLOPs. The specific calculation methods for each metric are detailed in Equations (18)–(22).
A c c u r a c y = T P + T N T P + T N + F P + F N
P r e c i s i o n = T P T P + F P
F 1 = 2 × T P T P + F P × T P T P + F N T P T P + F P + T P T P + F N
A U C = ∑ i = 1 n − 1 ( F P R i + 1 − F P R i 2 ) × ( F P R i + 1 + F P R i )
R e c a l l = T P T P + F N

4.2. Dataset

To comprehensively and intuitively evaluate the performance of the MDEM model, three representative pavement image datasets are employed for experimental validation. First, CQU-BPMDD is the primary benchmark for comparison with mainstream image classification and pavement damage classification models. It contains 38,994 images (train/test split 7:3), including 9851 distress images covering longitudinal cracks, transverse cracks, repairs, and 29,143 normal images. Captured with exposure compensation, most images depict small-scale cracks, making detection more challenging and realistic. Second, CQU-BPDD serves as a supplementary dataset to assess generalization under different distributions. It consists of 60,056 asphalt pavement images collected across multiple South China locations under varied illumination and weather conditions. Pavement states are categorized into eight classes, with many cases featuring small damaged regions or lowlight conditions. The training set contains 10,137 images (5137 abnormal, 5000 normal), and the test set 49,919 images (11,589 abnormal, 38,330 normal). In addition, Crack500-PDD, a small-scale dataset, is used for ablation studies to evaluate performance in few-shot settings, further verifying robustness with limited data. The three datasets differ in scale, damage category coverage, and imaging conditions, enabling a multi-perspective assessment of MDEM’s effectiveness and adaptability. Detailed dataset statistics are provided in Table 2, with representative examples illustrated in Figure 6.
Table 2. The details of the datasets.
Figure 6. Example images of datasets.

4.3. Ablation Analysis

To verify the individual contributions of the MDFF and DDE modules to the pavement damage classification task, as well as their combined effect, a systematic ablation study was conducted. In addition, we also conduct an experimental analysis of the loss function as well as the computational efficiency of the model. The experiments cover both detection and classification tasks, with results summarized in Table 3 and Table 4.
Table 3. Results of ablation experiments for the detection task.
Table 4. Results of ablation experiments for the classification task.
In the detection task, Table 3 shows that introducing either the MDFF or DDE module individually leads to significant improvements over the baseline model, indicating that both modules enhance feature representation from different perspectives. When the two modules are used in combination, the model achieves the highest AUC of 96.25%, representing a 4.2% improvement over the baseline, confirming the effectiveness of their synergy. Moreover, on the small-sample dataset, all evaluation metrics also show varying degrees of improvement, further demonstrating MDEM’s robustness and generalization capability under low-resource conditions.
In the classification task, as shown in Table 4, the integration of MDFF and DDE leads to comprehensive improvements across key metrics, including Accuracy, F1-score, Precision, and Recall. The overall performance significantly surpasses that of the baseline model, validating the effectiveness of the proposed architecture in multi-class fine-grained classification scenarios.
For the loss function, this study adopts the Soft Target Cross-Entropy loss (STCL). Compared with the standard cross-entropy, this approach is more suitable for pavement damage classification as it better exploits the similarity information between categories, mitigating classification instability caused by ambiguous class boundaries. The experimental results show that incorporating this loss function into MDEM yields noticeable performance improvements over the baseline. In terms of computational efficiency, although the introduction of the MDFF and DDE modules increases the FLOPs, substantial gains are achieved in key performance metrics such as accuracy. The trade-off between the accuracy improvement and the controllable increase in computational cost is both reasonable and worthwhile.

4.4. Detection Task Experimental Analysis

In the detection task, pavement damage classification is treated as a binary classification problem determining whether a damage region exists in the input image. To evaluate MDEM’s detection capability, it is compared against several representative pavement damage classification models, including PicT [13], DMTC [14], and DDACDN [32]. The experimental results are presented in Table 5. On the CQU-BPMDD dataset, MDEM outperforms both the baseline model and all comparative methods across all evaluation metrics, achieving a 4.2% improvement in AUC over the baseline. On the CQU-BPDD dataset, MDEM achieves likewise an AUC improvement of 1.85%, with leading performance in Precision, Recall, and F1-score. In addition, in terms of computational efficiency, MDEM is not inferior to other pavement damage classification models and even achieves certain improvements. These results collectively demonstrate that MDEM exhibits stable and superior detection performance under different data distributions, indicating strong generalization ability and adaptability to diverse pavement scenarios.
Table 5. Experimental results of the detection task.

4.5. Classification Task Experimental Analysis

The classification task serves as a further refinement of the detection task, aiming to identify the specific type of damage present in an image. In this task, MDEM is first compared with a range of mainstream image classification models. The compared models include the following: AlexNet [33], VGG16 [34], MobileNetV2 [35], MobileNetV3 [36], FFVT [37], TransferG [38], Vision Mamba [39], Vision Transformer [40], and Swin Transformer [25]. The experimental results are presented in Table 6. On the CQU-BPMDD dataset, MDEM achieves notable improvements over the baseline model across multiple metrics: Accuracy increases by 2.01%, Precision by 2.64%, and F1-score by 2.7%. Moreover, MDEM outperforms all other mainstream image classification models across all metrics, further validating its effectiveness and advantage in complex pavement damage classification tasks. This indicates that the integration of MDFF and DDE modules effectively resolves the classification difficulties caused by multi-scale irregular damage, background interference, and low damage ratio.
Table 6. Experimental results are compared with the mainstream classification models.
To further evaluate the model’s performance across different damage types, a per-class comparison was conducted between MDEM and the baseline model. As shown in Figure 7, MDEM outperforms the baseline across all damage categories, indicating stronger class discrimination ability and better adaptability.
Figure 7. Comparison of different damage categories.
In addition to comparisons with mainstream image classification models, MDEM was also evaluated against several task-specific pavement damage classification models. To comprehensively assess model performance and generalization capability, experiments were conducted under a dual-dataset setting, using both the CQU-BPMDD and CQU-BPDD datasets. This setup not only highlights MDEM’s performance advantage in standard scenarios but also verifies its robustness and generalizability under varying data distributions. The experimental results are presented in Table 7. The experimental results show that MDEM consistently outperforms other task-specific methods across key metrics including Accuracy, Precision, Recall, and F1-score on both datasets. Specifically, on the CQU-BPDD dataset, MDEM achieves a 1.95% improvement in Accuracy, a 1.24% increase in Precision, and a 1.5% gain in F1-score compared to the baseline model. In addition, in terms of computational efficiency, MDEM is not inferior to other pavement damage classification models and even achieves certain improvements. These findings further validate the proposed model’s universality and stability across different task contexts.
Table 7. Experimental results are compared with the same type of models.

4.6. Visualization Analysis

As shown in Figure 8, to further analyze the model’s focus during the classification process, we employ Grad-CAM [41] for heatmap-based visualization of the decisionmaking processes of both MDEM and MambaOut. On challenging samples, MDEM demonstrates a greater ability to accurately focus on the true damaged regions, exhibiting stronger localization and feature response capabilities. In contrast, MambaOut is more susceptible to background interference, with noticeable shifts in its attention regions. These results indicate that MDEM offers more stable discriminative region selection compared to MambaOut, which contributes to improved final classification accuracy.
Figure 8. Visualized heat map of MambaOut and MDEM.
As shown in Figure 9, we compare the confusion matrices of MDEM and MambaOut. Overall, MDEM demonstrates higher classification accuracy under complex pavement conditions, with a noticeably lower misclassification rate, particularly in classes with low visual separability. When the number of samples is small, both methods experience a decline in accuracy; however, MDEM consistently achieves superior prediction performance. In most categories, MDEM produces a higher number of correct classifications than MambaOut, with misclassifications being more concentrated and less pronounced. In summary, compared with the baseline model, MDEM exhibits better performance in pavement damage classification tasks, offering stronger robustness and generalization capability.
Figure 9. Confusion matrix of MambaOut and MDEM.

5. Conclusions

This paper proposes a novel pavement damage classification model named MDEM. Built upon the MambaOut backbone, MDEM integrates two functional modules, MDFF and DDE, to address the challenges of recognizing multi-scale irregular cracks and detecting low-proportion damage regions in pavement images. The MDFF module enhances the model’s multi-scale feature modeling capability, while the DDE module improves detail representation. Although MDEM introduces additional computational overhead, the improvements in detection and classification performance are substantial, and the overhead remains controllable. The experimental results demonstrate that MDEM achieves outstanding performance across multiple datasets. Notably, it maintains stable and accurate classification even in scenarios with complex background interference and subtle damage regions. In summary, MDEM exhibits strong generalization, robustness, and practical applicability, providing effective technical support for pavement damage classification under complex traffic conditions. Future work will focus on reducing computational cost and model lightweighting, as well as extending the model to video-level applications for temporal detection and dynamic tracking of pavement damage.

Author Contributions

Project administration, writing—review and editing, and supervision, S.Z.; methodology, writing—original draft, and writing—review and editing, K.W.; methodology, P.L.; supervision, M.H.; visualization, J.G. All authors have read and agreed to the published version of the manuscript.

Funding

The work is partially supported by the Henan Provincial Department of Science and Technology Research Project (No. 252102210127) and the Key Scientific Research Projects of Higher Education Institutions in Henan Province (24B520038).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The datasets analyzed during the current study are available from the corresponding author on reasonable request. Codes from the current study may be obtained from the corresponding authors upon reasonable request.

Conflicts of Interest

We promise that there are no conflicts of interest between the authors.

Abbreviations

The following abbreviations are used in this manuscript:
MDEMMulti-scale Damage Enhancement MambaOut
MDFFMulti-scale Dynamic Feature Fusion Block
DDEDamage Detail Enhancement Block
CNNConvolutional Neural Network
DCNNsDeep Convolutional Neural Networks
AlexNetImageNet Classification with Deep Convolutional Neural Networks
CLAContrastive Learning Attention mechanism
RFEMRegion-Focused Enhancement Module
CAGMContext-Aware Global Module
DFSSDeep Fusion Selective Scanning Module
WSDD-CAMWeakly Supervised Damage Detection with Class Activation Mapping
CAMClass Activation Mapping
SSMSelective State Space Model
DSConvDynamic Snake Convolution
ViTVision Transformer
Swin-TSwin Transformer
ViMVision Mamba
VGG16Visual Geometry Group 16-layer network
FFVTFeature Fusion Vision Transformer
TransFGTransformer Architecture for Fine-Grained Recognition
DMTCDense Multi-scale Feature Learning Transformer
DDACDN       Deep Domain Adaptation for Pavement Crack Detection
PicTPavement image classification Transformer
STCLSoft Target Cross-Entropy loss

References

  1. Garita-Durán, H.; Stöcker, J.P.; Kaliske, M. Deep learning-based system for automated damage detection and quantification in concrete pavement. Results Eng. 2025, 25, 104546. [Google Scholar] [CrossRef] [Scilit]
  2. Abdelkader, M.F.; Hedeya, M.A.; Samir, E.; El-Sharkawy, A.A.; Abdel-Kader, R.F.; Moussa, A.; El-Sayed, E. EGY_PDD: A comprehensive multi-sensor benchmark dataset for accurate pavement distress detection and classification. Multimed. Tools Appl. 2025, 1–36. [Google Scholar] [CrossRef] [Scilit]
  3. Wang, Y.; Yu, B.; Zhang, X.; Liang, J. Automatic extraction and evaluation of pavement three-dimensional surface texture using laser scanning technology. Autom. Construct. 2022, 141, 104410. [Google Scholar] [CrossRef] [Scilit]
  4. Zhang, D.; Zou, Q.; Lin, H.; Xu, X.; He, L.; Gui, R.; Li, Q. Automatic pavement defect detection using 3D laser profiling technology. Autom. Construct. 2018, 96, 350–365. [Google Scholar] [CrossRef] [Scilit]
  5. Zhang, Y.; Ma, Z.; Song, X.; Wu, J.; Liu, S.; Chen, X.; Guo, X. Road surface defects detection based on IMU sensor. IEEE Sens. J. 2022, 22, 2711–2721. [Google Scholar] [CrossRef] [Scilit]
  6. Fox, A.; Kumar, B.V.K.V.; Chen, J.; Bai, F. Multi-lane pothole detection from crowdsourced undersampled vehicle sensor data. IEEE Trans. Mobile Comput. 2017, 16, 3417–3430. [Google Scholar] [CrossRef] [Scilit]
  7. Wang, K.C.P.; Zhang, A.; Li, J.Q.; Fei, Y.; Chen, C.; Li, B. Deep Learning for Asphalt Pavement Cracking Recognition Using Convolutional Neural Network. In Airfield and Highway Pavements; ASCE: Reston, VA, USA, 2017; pp. 166–177. [Google Scholar]
  8. Eisenbach, M.; Stricker, R.; Seichter, D.; Amende, K.; Debes, K.; Sesselmann, M.; Ebersbach, D.; Stoeckert, U.; Gross, H.M. How to get pavement distress detection ready for deep learning? A systematic approach. In Proceedings of the 2017 International Joint Conference on Neural Networks (IJCNN), Anchorage, AK, USA, 14–19 May 2017. [Google Scholar]
  9. Kim, B.; Cho, S. Automated Vision-Based Detection of Cracks on Concrete Surfaces Using a Deep Learning Technique. Sensors 2018, 18, 3452. [Google Scholar] [CrossRef] [Scilit]
  10. Zhang, A.; Wang, K.C.P.; Li, B.; Yang, E.; Dai, X.; Peng, Y.; Fei, Y.; Liu, Y.; Li, J.Q.; Chen, C. Automated Pixel-Level Pavement Crack Detection on 3D Asphalt Surfaces Using a Deep-Learning Network. Comput. Aided Civ. Infrastruct. Eng. 2017, 32, 805–819. [Google Scholar] [CrossRef] [Scilit]
  11. Shuai, B.; Zuo, Z.; Wang, B.; Wang, G. Scene Segmentation with DAG-Recurrent Neural Networks. IEEE Trans. Pattern Anal. Mach. Intell. 2018, 40, 1480–1493. [Google Scholar] [CrossRef] [Scilit]
  12. Li, R.; Zheng, Y.; Zhang, C.; Duan, C.; Wang, B.; Atkinson, P.M. ABCNet: Attentive bilateral contextual network for efficient semantic segmentation of fine-resolution remotely sensed imagery. ISPRS J. Photogramm. Remote Sens. 2021, 181, 84–98. [Google Scholar] [CrossRef] [Scilit]
  13. Tang, W.; Huang, S.; Zhang, X.; Huangfu, L. Pict: A slim weakly supervised vision transformer for pavement distress classification. In Proceedings of the 30th ACM International Conference on Multimedia, Lisboa, Portugal, 10–14 October 2022; pp. 3076–3084. [Google Scholar]
  14. Xu, C.; Zhang, Q.; Mei, L.; Shen, S.; Ye, Z.; Li, D.; Yang, W.; Zhou, X. Dense multiscale feature learning transformer embedding cross-shaped attention for road damage detection. Electronics 2023, 12, 898. [Google Scholar] [CrossRef] [Scilit]
  15. Tong, Z.; Ma, T.; Zhang, W.; Huyan, J. Evidential transformer for pavement distress segmentation. Comput. Aided Civ. Infrastruct. Eng. 2023, 38, 2317–2338. [Google Scholar] [CrossRef] [Scilit]
  16. Yu, W.; Wang, X. Mambaout: Do we really need mamba for vision? In Proceedings of the CVPR, Nashville, TN, USA, 11–15 June 2025; pp. 4484–4496. [Google Scholar]
  17. 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]
  18. Liu, Y.; Yao, J.; Lu, X.; Xie, R.; Li, L. Deepcrack: A deep hierarchical feature learning architecture for crack segmentation. Neurocomputing 2019, 338, 139–153. [Google Scholar] [CrossRef] [Scilit]
  19. Lin, C.; Tian, D.; Duan, X.; Zhou, J. TransCrack: Revisiting fine-grained road crack detection with a transformer design. Philos. Trans. R. Soc. A 2023, 381, 20220172. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  20. Zhang, S.; Wang, K.; Liu, Z.; Huang, M.; Huang, S. The Fine Feature Extraction and Attention Re-Embedding Model Based on the Swin Transformer for Pavement Damage Classification. Algorithms 2025, 18, 369. [Google Scholar] [CrossRef] [Scilit]
  21. Kyem, B.A.; Asamoah, J.K.; Aboah, A. Context-cracknet: A context-aware framework for precise segmentation of tiny cracks in pavement images. Constr. Build. Mater. 2025, 484, 141583. [Google Scholar] [CrossRef] [Scilit]
  22. Sun, P.; Yang, L.; Yang, H.; Yan, B.; Wu, T.; Li, J. DSWMamba: A deep feature fusion mamba network for detection of asphalt pavement distress. Constr. Build. Mater. 2025, 469, 140393. [Google Scholar] [CrossRef] [Scilit]
  23. Tao, Z.; Gong, H.; Liu, L.; Cong, L.; Liang, H. A weakly-supervised deep learning model for end-to-end detection of airfield pavement distress. Int. J. Transp. Sci. Technol. 2025, 17, 67–78. [Google Scholar] [CrossRef] [Scilit]
  24. Sohan, M.; Sai Ram, T.; Rami Reddy, C.V. A review on yolov8 and its advancements. In Proceedings of the International Conference on Data Intelligence and Cognitive Informatics, Tirunelveli, India, 8–10 December 2023; Springer: Singapore, 2024; pp. 529–545. [Google Scholar]
  25. Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; Guo, B. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada, 10–17 October 2021; pp. 10012–10022. [Google Scholar]
  26. Gu, A.; Dao, T. Mamba: Linear-time sequence modeling with selective state spaces. arXiv 2023, arXiv:2312.00752. [Google Scholar] [CrossRef] [Scilit]
  27. Qi, Y.; He, Y.; Qi, X.; Zhang, Y.; Yang, G. Dynamic snake convolution based on topological geometric constraints for tubular structure segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Paris, France, 2–3 October 2023; pp. 6070–6079. [Google Scholar]
  28. Wang, Y.; Li, Y.; Wang, G.; Liu, X. Multi-scale attention network for single image super-resolution. In Proceedings of the CVPR, Seattle, WA, USA, 17–21 June 2024; pp. 5950–5960. [Google Scholar]
  29. Zheng, M.; Sun, L.; Dong, J.; Pan, J. SMFANet: A lightweight self-modulation feature aggregation network for efficient image super-resolution. In Proceedings of the ECCV, Milan, Italy, 29 September–4 October 2024; Springer Nature: Cham, Switzerland, 2024; pp. 359–375. [Google Scholar]
  30. Li, X.; Hu, X.; Yang, J. Spatial group-wise enhance: Improving semantic feature learning in convolutional networks. arXiv 2019, arXiv:1905.09646. [Google Scholar] [CrossRef] [Scilit]
  31. Sun, H.; Wen, Y.; Feng, H.; Zheng, Y.; Mei, Q.; Ren, D.; Yu, M. Unsupervised bidirectional contrastive reconstruction and adaptive fine-grained channel attention networks for image dehazing. Neural Netw. 2024, 176, 106314. [Google Scholar] [CrossRef] [Scilit]
  32. Liu, H.; Yang, C.; Li, A.; Huang, S.; Feng, X.; Ruan, Z.; Ge, Y. Deep domain adaptation for pavement crack detection. IEEE Trans. Intell. Transp. Syst. 2022, 24, 1669–1681. [Google Scholar] [CrossRef] [Scilit]
  33. Krizhevsky, A.; Sutskever, I.; Hinton, G.E. ImageNet classification with deep convolutional neural networks. Commun. ACM 2017, 60, 84–90. [Google Scholar] [CrossRef] [Scilit]
  34. Simonyan, K.; Zisserman, A. Very deep convolutional networks for large-scale image recognition. arXiv 2014, arXiv:1409.1556. [Google Scholar]
  35. Sandler, M.; Howard, A.; Zhu, M.; Zhmoginov, A.; Chen, L.-C. Mobilenetv2: Inverted residuals and linear bottlenecks. In Proceedings of the CVPR, Salt Lake City, UT, USA, 18–22 June 2018; pp. 4510–4520. [Google Scholar]
  36. Howard, A.; Sandler, M.; Chu, G.; Chen, L.C.; Chen, B.; Tan, M.; Wang, W.; Zhu, Y.; Pang, R.; Vasudevan, V.; et al. Searching for mobilenetv3. In Proceedings of the 2019 IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, Republic of Korea, 27 October–2 November 2019; pp. 1314–1324. [Google Scholar]
  37. Wang, J.; Yu, X.; Gao, Y. Feature fusion vision transformer for fine-grained visual categorization. arXiv 2021, arXiv:2107.02341. [Google Scholar]
  38. He, J.; Chen, J.N.; Liu, S.; Kortylewski, A.; Yang, C.; Bai, Y.; Wang, C. Transfg: A transformer architecture for fine-grained recognition. In Proceedings of the AAAI Conference on Artificial Intelligence, Virtual, 22 February–1 March 2022; Volume 36. [Google Scholar]
  39. Liu, X.; Zhang, C.; Zhang, L. Vision mamba: A comprehensive survey and taxonomy. arXiv 2024, arXiv:2405.04404. [Google Scholar] [CrossRef] [Scilit]
  40. Han, K.; Wang, Y.; Chen, H.; Chen, X.; Guo, J.; Liu, Z.; Tang, Y.; Xiao, A.; Xu, C.; Xu, Y.; et al. A survey on vision transformer. IEEE Trans. Pattern Anal. Mach. Intell. 2022, 45, 87–110. [Google Scholar] [CrossRef] [Scilit]
  41. 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 IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 618–626. [Google Scholar]
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.