Skip to Content
Applied SciencesApplied Sciences
  • Article
  • Open Access

8 June 2026

17 Pages

Real-Time Road Distress Detection Deployment on Jetson TX2 Using Layer-Adaptive Magnitude Pruning and Channel-Wise Knowledge Distillation

,
and
1
China Merchants Expressway Network & Technology Holdings Co., Ltd., Beijing 100029, China
2
State Key Laboratory of Safety and Resilience of Civil Engineering in Mountain Area, School of Civil Engineering, Chongqing University, Chongqing 400045, China
*
Author to whom correspondence should be addressed.
This article belongs to the Special Issue Advance in Road and Pavement Engineering

Abstract

To enable the deployment of road distress detection models on resource-constrained embedded platforms, this paper presents a compression case study based on the LRDD-YOLOv8n detector designed for real-time 1080p video input. Layer-adaptive magnitude-based pruning (LAMP) was integrated with channel-wise knowledge distillation. First, LAMP performs structured pruning adaptive global sparsity allocation to reduce parameters and FLOPs. Then, a larger teacher model (LRDD-YOLOv8s) with high structural similarity guides the pruned student to recover feature representations. Compared to the baseline LRDD-YOLOv8n (64.4% mAP@0.5, 2.02 M parameters, 5.9G FLOPs, and 55.5 ms GPU inference time on Jetson TX2), our compressed model under a 1/1.4 target compression ratio achieves a mAP@0.5 of 65.1% (an slight accuracy increment of 0.7%), while reducing parameters by 36.1% (to 1.29 M) and FLOPs by 30.5% (to 4.1 G). Deployed on the BOXER-8120AI edge platform (Jetson TX2), the optimized model achieves an average inference time of 48.3 ms per frame (a 13.0% latency reduction compared to the baseline model). In addition, a 20 FPS detection rate was sustained under the 30 FPS maximum hardware acquisition limit of the industrial camera stream. Kinematic and geometric analysis validates that this processing rate utilizes 66.7% of all physically available frames and establishes a 95.4% consecutive frame-to-frame spatial overlap at typical inspection vehicle speeds (40–60 km/h).

1. Introduction

Automatic pavement distress detection is a key technology for road management and maintenance. The field of road distress detection exhibits a distinct bifurcation in research focus: (1) high-precision measurement track emphasizes the use of high-accuracy multimodal data to achieve millimeter-level quantification and severity assessment, providing decision support for Pavement Management Systems (PMS) [1,2,3,4,5]; (2) high-efficiency inspection track leverages vehicle-mounted or Unmanned Aerial Vehicle (UAV) platforms to develop lightweight, real-time deep learning models, catering to the routine monitoring needs of large-scale road networks [6,7,8,9,10].
Representative works in lightweight detection models are predominantly based on improvements to the YOLO series. Ran et al. [6] proposed HCL-YOLO, which integrates the Harmonious Graph Network V2 backbone, Coordinate Attention-Hierarchical Selective Feature Pyramid Network—Dynamic Upsampling feature fusion, and Lightweight Asymmetric Detection Head into YOLOv11n. With only 1.14 M parameters and a 2.7 MB model size, it achieves a 72.1% mAP50 on a custom dataset containing 5 road distress types. Wang et al. [8] introduced L-YOLO-HR, employing Ghost lightweight modules, High-Resolution (HR) feature extraction, and C3-Ghost-Large Separable Kernel Attention. The model parameters were reduced to 2.23 M (4.76 MB model size) while maintaining 72.9% mAP50. Ren et al. [7] designed LS-YOLOv11 for UAV imagery, using a Convolutional Gated Linear Unit module, LSKA-SPPF, and a lightweight shared detection head designed. The model achieves 87.1% mAP50 on the UAV-PDD2023 dataset and 95 FPS on the Jetson Xavier NX (NVIDIA Corporation, Santa Clara, CA, USA).
Beyond architectural modifications, several works have incorporated model compression techniques. Hu et al. [9] proposed MobiLiteNet, which combines MobileNet V2 with Efficient Channel Attention (ECA) mechanism, knowledge distillation, structured pruning, and quantization. The model was compressed to only 0.6 MB with 34.5 ms/frame on a smartphone. Liu et al. [10] utilized crowdsourced data from dashcams in logistics fleets and designed a three-stage matching algorithm to eliminate duplicate detections, achieving 68.2 FPS on a GPU. Ning et al. [11] presented YOLOv7-RDD, with 6.04 M parameters and 125 FPS on an NVIDIA GTX 1080Ti (NVIDIA Corporation, Santa Clara, CA, USA), reaching 72.5% mAP50 on a 12-class urban road dataset. Jiang et al. [12] further integrated Performance-Aware Global Channel Pruning (PAGCP) with channel-wise knowledge distillation, reducing model size by 17% and computational complexity by 79% while maintaining 71.2% mAP50 on UAV images.
For vehicular video streams, temporal redundancy and duplicate detections must be handled. Li et al. [13] developed an SPD-YOLO + OSNet system, where SPD-Conv preserves fine-grained information and an OSNet re-identification model removes redundant distress entries. A real-time detection rate of 66.2 FPS at 80 km/h was achieved. Kumar and Tung [14] used YOLOv8 with Roboflow for real-time pothole and crack detection on India’s NH-44 highway. Gao [15] incorporated Contextual Information Fusion (CIFM), Attention Aggregation (AAM), and Adaptive Refinement (ARM) modules into YOLOv5, improving accuracy from 83.4% to 97.9% on the PD-Dataset.
A systematic review by Asadi [16] identified key challenges including dataset scarcity, insufficient generalization, and poor interpretability. To address data scarcity, especially for rare distress types, generative augmentation has been explored. Cano-Ortiz et al. [17] employed Diffusion Models to generate minority classes (potholes, diagonal cracks), mAP was improved from 60.4% to 62.2%. Alatoom and Smadi [18] utilized StyleGAN3 for synthetic image generation combined with teacher–student transfer learning, to achieve end-to-end distress detection on a low-cost Raspberry Pi platform. Guerrieri and Parla [19] utilized YOLOv3 combined with a low-cost vehicle-mounted front camera to achieve distress detection and area measurement. Wang et al. [20] proposed an edge-enhanced multi-scale feature fusion (EE-MSFF) mechanism that integrates Sobel, Prewitt, and Laplacian operators with ResNet18. A classification accuracy of 88.68% was achieved on the RDD2020 dataset with complex backgrounds and 99.5% on a simple-background dataset.
Overall, mainstream lightweight methods include depthwise separable convolutions (MobileNet series), Ghost modules, channel pruning, knowledge distillation, and quantization. A recent benchmark by Yang et al. [21] compared 17 YOLO variants (v5 to v11 and YOLO-World) on UAV highway inspection, finding that YOLOv5-l and YOLOv9-c achieve the highest accuracy, while YOLOv11-n offers the best efficiency in terms of model size and computational complexity.
Table 1 summarizes key works that explicitly report model size and quantitative metrics. Despite differences in datasets, input resolutions, and hardware platforms that preclude direct comparison, several observations can be made: parameter counts have been reduced to as low as 0.6 MB, computational cost to 0.4 GFLOPs, and real-time inference at 30–95 FPS on edge devices has been demonstrated. Notably, Jiang et al. [12] achieve a favorable balance of 71.2% mAP@0.5 and 0.4 GFLOPs on UAV images. However, only a few studies have actually validated their models on edge hardware, and the standardization of UAV/vehicle datasets and real-time performance metrics still requires further attention.
Table 1. Comparative Summary of Road Distress Detection Models (Note: Different datasets, input resolutions, and hardware platforms prevent direct quantitative comparison).
Model compression techniques have been extensively explored, which can be broadly categorized into network pruning, weight quantization, and knowledge distillation. Han et al. [23] proposed Deep Compression, which first prunes unimportant weights based on magnitude, then quantizes the remaining weights via k-means clustering, and finally applies Huffman coding. Hinton et al. [24] introduced knowledge distillation, where a student network learns from a teacher’s soft targets. Comprehensive surveys [25,26] have reviewed the evolution of these techniques. Recent advances include layer-adaptive sparsity [27], which dynamically adjusts pruning ratios per layer; and channel-wise knowledge distillation [28], which preserves fine-grained structural information by distilling each feature channel independently.
This paper proposes a joint compression framework that tightly integrates layer-adaptive pruning and channel-wise distillation. Unlike prior work, our method uses the teacher’s channel-wise soft targets to guide the pruning mask selection, and in turn, the pruned student’s feedback reweighs the distillation loss. This bidirectional interaction enables the student to retain the most informative channels while discarding redundant ones.

2. Methods

2.1. Layer-Adaptive Magnitude-Based Pruning

To achieve model compression while simplifying the pruning workflow and reducing the computational cost of hyperparameter tuning, this paper adopts the Layer-Adaptive Magnitude Pruning (LAMP) algorithm [27] to prune the improved road distress detection model.
In a neural network, each connection is associated with a weight. The magnitude of this weight reflects the importance of input features as they are transmitted through the network. During the pruning process, weight magnitude serves as the primary metric for determining whether a connection should be retained. Generally, weights with smaller magnitudes contribute less to the overall functionality of the model and are prioritized for removal to reduce computational complexity. The core of LAMP lies in quantifying weight importance by calculating a standardized LAMP score, which guides the pruning process.
Assume a feedforward neural network of depth d, where the weights for each layer l ∈ 1 ,   2 ,   … . ,   d   are represented by the weight tensor W l . For fully connected layers, these tensors are 2D matrices representing the relationship between inputs and outputs. For 2D convolutional layers, the weight tensors are 4D to encompass dimensions for kernel height, width, input channels, and output channels. To calculate a unified LAMP score across both layer types, the algorithm flattens each weight tensor into a 1D vector, denoted as u. The elements in u are then sorted in ascending order based on their absolute values, such that for indices u < v ,   W [ u ] ≤ W [ v ] . Finally, the LAMP score is calculated as in Equation (1).
S c o r e u ; W ≔ ( W [ u ] ) 2 ∑ v ≥ u ( W [ v ] ) 2
The LAMP score quantifies the relative influence of a specific weight compared to all subsequent (larger) weights in that layer. A higher LAMP score indicates that the weight has a greater relative impact and is therefore more likely to be critical to the network, making it less susceptible to pruning. Conversely, a lower LAMP score suggests the weight has a smaller footprint relative to the remaining weights, which indicates a weaker influence and a higher likelihood of being pruned.
By calculating the LAMP score for every weight, all weights across the model can be ranked globally. Pruning is then performed by prioritizing the removal of weights with the smallest scores until a predefined global sparsity constraint is met. Unlike traditional local pruning methods that often apply a uniform pruning ratio to every layer, LAMP automatically adapts to the unique sparsity requirements of each layer, resulting in a more principled distribution of pruning intensity. Furthermore, the formula ensures that at least one connection in each layer will have a LAMP score of 1. This mechanism guarantees that every layer retains at least one active connection, effectively preventing layer collapse, a failure mode where an entire layer is zeroed out.

2.2. Channel-Wise Knowledge Distillation

To leverage the knowledge from teacher networks more effectively, numerous studies have attempted to optimize knowledge transfer by enhancing the correlation between different spatial positions, typically by normalizing activation values at each location. However, in traditional methods, every spatial position contributes equally during the transfer process. This often leads to the transmission of redundant information from the teacher network, thereby reducing learning efficiency.
To overcome this issue, this paper adopts a channel-level knowledge distillation method [28]. This approach generates a “soft” probability map by normalizing the activation maps of each individual channel. By minimizing the Kullback–Leibler (KL) divergence between the student and teacher networks, the distillation process enables the student model to focus more intensely on the most significant feature regions within each channel, rather than simply aligning spatial positions.
Let the teacher and student networks be denoted as T and S, respectively, with their corresponding activation feature maps represented as yT and yS. The channel-level distillation loss can be expressed in the general form shown in Equation (2).
φ ϕ y T , ϕ y S = φ ( ϕ y C T , ϕ y C S )
where ϕ(∙) is the function used to convert the activation values of a channel into a probability distribution, defined as in Equation (3).
ϕ y C = e y c , i T ∑ i = 1 W · H e y c , i T
In Equation (3), C = 1,2 , … , C represents the channel index, and i denotes the index of the spatial position within the channel. The hyperparameter T is the temperature parameter, which regulates the degree of softening of the probability distribution. A higher value of T smooths the differences between activation values, generating a softer probability distribution. This smoothing effect assists the model in more effectively capturing the internal spatial features of each channel.
This Softmax-based normalization effectively eliminates magnitude scaling discrepancies caused by the structural differences between the teacher and student networks. Furthermore, to address potential channel mismatches between the two networks, a 1 × 1 convolutional layer is introduced to align their feature dimensions. To evaluate the discrepancy between the channel activation distributions of the teacher and student networks, the KL divergence is employed, as shown in Equation (4).
φ ( y T , y S ) = T 2 C ∑ C = 1 C ∑ i = 1 W · H ϕ y c , i T · l o g ϕ y c , i T ϕ y c , i S
where φ ( y T , y S ) represents the KL divergence of the probability distributions for each channel between the teacher and student networks. As an asymmetric metric, KL divergence measures the distance between two probability distributions. A smaller KL divergence value indicates higher similarity between the teacher and student models, whereas a larger value signifies a greater discrepancy. The term T 2 / c serves as a scaling factor for the loss. In practice, this factor is often replaced by a hyperparameter m, which controls the weight of the feature distillation loss. By adjusting m, the contribution of the distillation loss to the total loss function can be flexibly tuned.

2.3. Integrated Compression Strategy Combining Pruning and Distillation

The design of the student network is a critical factor in the knowledge distillation (KD) process, directly determining the final performance of the distilled model. Research by Liu et al. [29] demonstrates that structural similarity between the teacher and student models significantly impacts distillation efficacy. Specifically, greater structural alignment facilitates more effective knowledge transfer. This finding provides a novel perspective for constructing high-precision pruned models: by pruning the teacher model to create a structurally similar student model, the distillation process can more effectively transmit the teacher’s knowledge, mitigating accuracy loss and achieving joint optimization of pruning and distillation. In KD-based pruning methods, the pruned model typically serves as the student, while the original, pre-pruned model possessing higher representational capacity, acts as the teacher. Alternatively, some approaches employ an external, higher-precision model as the teacher to further enhance transfer outcomes.
This paper employs a comprehensive compression strategy that integrates pruning with knowledge distillation to optimize the improved detection model, as shown in Figure 1. Specifically, the LAMP algorithm is used to refine the model structure, reducing parameter count and computational complexity. Subsequently, channel-level knowledge distillation is applied to bolster the detection accuracy of the pruned model, to ensure lightweight characteristics while preserving performance advantages. First, both teacher and student models utilize identical improvement strategies to ensure high structural similarity. Second, the teacher model possesses a larger network scale and stronger representational capacity than the student, enabling it to better capture complex features and categorical information in diverse scenes, thereby providing rich learning signals and guidance for the student model.
Figure 1. System architecture of the proposed joint model compression and feature reconstruction paradigm tailored for LRDD-YOLOv8n.
The processing workflow advances via three synergistic stages:
(1)
Global sparsity allocation
The LAMP framework evaluates weight importance globally to derive a non-uniform sparsity profile under a 1.4× target FLOPs constraint.
(2)
Architectural masking with structural insulation
Dynamic filter removal is non-uniformly restricted to feature extraction channels within the FasterNet backbone and neck, whereas the task-critical decoupled execution heads are explicitly isolated via a structural insulation mask (100% retained) to prevent the risk of localized layer collapse.
(3)
Channel-wise knowledge distillation (CWD)
A 1 × 1 convolutional adjustment layer expands the pruned feature map configurations (yS), which enables strict spatial activation alignment with a structurally superior LRDD-YOLOv8n teacher via KL divergence minimization (LCWD) to recover continuous geometric representations of road distresses.

3. Experimental Setting

3.1. Experimental Setup

Experiments are conducted on the previously constructed LRDD-YOLOv8n model [30] using the SVRDD dataset [31]; the detailed data distribution is summarized in Table 2. The dataset contains 8000 images collected from Baidu Maps, with precise annotations for over 20,000 instances of pavement distress. This dataset covers a variety of urban roads and environmental conditions across five administrative districts in Beijing, China. The annotated pavement distresses include seven primary categories: Longitudinal Crack, Transverse Crack, Alligator Crack, Pothole, Longitudinal Patch, Transverse Patch, and Manhole Cover. The dataset was partitioned into training, validation, and test sets with a ratio of 6000:1000:1000.
Table 2. Data distribution of the SVRDD dataset.
During the pruning phase, to preserve functional integrity, the lightweight shared detection head (responsible for final classification and regression) and the last layer of the multilayer perceptron (MLP) within the FasterNet module (used for channel dimension restoration) are excluded from pruning.

3.2. Embedded Platform

3.2.1. Hardware

The BOXER-8120AI edge computing box (sensetime, Shenzhen, China) is selected as the deployment hardware. Its core is the NVIDIA Jetson TX2 module, with a heterogeneous dual-core Denver 2 + quad-core ARM Cortex-A57 CPU (ARM, Sanata Clara, CA, USA), a 256-core Pascal GPU, 8 GB LPDDR4 memory, and 32 GB eMMC storage. The device adopts an industrial compact design with dust protection, wide temperature operation (−20 °C to 60 °C), and vibration resistance, which makes it suitable for in-vehicle environments. A Logitech C310 camera (720p; Logitech, San Jose, CA, USA) with intelligent brightness/contrast adjustment is used for image acquisition. The hardware configurations are shown in Table 3.
Table 3. Configuration details of BOXER-8120AI.

3.2.2. Software Environment Setup

The software environment setup primarily involves installing the operating system, configuring the developer toolkit, and constructing the deep learning environment. The compatibility between PyTorch 1.12.0 and CUDA 10.2 directly determines whether GPU resources can be successfully invoked. It is essential to consult official documentation to select the deep learning framework version that corresponds to the CUDA version integrated within the JetPack SDK 4.6.1. Similarly, the OpenCV 4.1.1 version must remain compatible with the Python 3.8 version and related libraries to prevent runtime conflicts. Once the environment was established, functional tests were conducted using sample programs to verify the integrity and usability of the configuration, including GPU invocation, camera interface drivers, and model loading procedures.

3.3. Deployment and Application of the Pavement Defect Detection Model

To effectively transition the pavement defect detection model from theoretical research to practical application, the system was implemented on an embedded platform. This ensures the defect detection tasks can be executed independently in a vehicle-mounted environment without relying on cloud computing resources. Once training is complete, the detection model’s code package is deployed to the embedded platform via remote transfer. This package includes the trained model weight files, necessary inference scripts, and configuration files. A data acquisition and detection execution program on the platform was conducted, with an image acquisition module for USB camera interfacing and a control mechanism for various input data types.
The detection workflow is depicted in Figure 2. First, the detection script is initialized and the specific model is selected. Then, input data type is defined, which may consist of static images, pre-recorded road videos, or real-time video streams from the camera. For images, the system performs single-frame detection and saves the result as an image file. For recorded videos, the system analyzes the data using a frame-by-frame detection approach and stores the processed video locally. For real-time streams, the system performs direct inference, with options to render the output in real-time to a monitor via HDMI or save the detection results as a video file.
Figure 2. Detection process.

3.4. Testing of the Pavement Defect Detection Model on an Embedded Platform

To verify the operational performance and practical efficacy of the improved detection model on an embedded platform, two testing scenarios were designed, including Static Model Testing and Video Stream Testing. (1) Static Model Testing: Utilizing a pre-prepared video-image paired test set, this scenario is used to evaluate the model’s single-frame inference speed and detection accuracy on the embedded platform. (2) Video Stream Testing: To align with actual road inspection requirements, this scenario utilizes the camera in a vehicle-mounted environment to validate the system’s adaptability and performance in complex external conditions. These two categories of testing verify the optimization effects of the model from both a theoretical performance perspective and a practical engineering implementation level.
The live video stream is captured by a vehicle-mounted USB camera at 1920 × 1080 resolution and 30 FPS. The stream is processed on the BOX-ER-8120AI edge computing platform, which is equipped with an NVIDIA Jetson TX2 module (2 Denver + 4 ARM Cortex-A57 cores, 8 GB memory, 256-core Pascal GPU). The platform runs Ubuntu 18.04 with JetPack 4.6, and the detection pipeline is implemented using TensorRT 8.0.1 FP16 inference. The end-to-end processing includes data acquisition, preprocessing, inference, non-maximum suppression (NMS), and result rendering/uploading.

4. Results and Discussion

4.1. Pruning Results and Analysis

Table 4 presents the pruning performance under various compression ratios. As the pruning intensity increases, the parameter count, computational complexity, and inference time decrease substantially, accompanied by a corresponding trade-off in detection accuracy. Within the compression ratio range of 1.4 to 1.7, the network maintains a favorable balance between accuracy and efficiency: the mAP@0.5 remains stable between 62.0% and 63.5%, parameters are reduced from 1.29 M to 0.97 M, and the CPU inference latency is shortened from 181.8 ms to 146.8 ms. Although the configuration with a compression ratio of 1.9 consumes the fewest resources (0.82 M parameters and 3.0 GFLOPs), its mAP@0.5 drops to 61.2%. Based on these trade-offs, the models with compression ratios of 1.4 and 1.9 are selected as representative candidates of optimal accuracy and optimal efficiency analysis for subsequent knowledge distillation, respectively.
Table 4. Pruning results under different compression ratios.
Figure 3 illustrates the evaluation trend of mAP@0.5 during the performance recovery training phase for the models compressed by the LAMP algorithm at ratios of 1.4 and 1.9. Structured pruning reduces model size and computational workload by eliminating redundant weights and channels. However, this process inevitably degrades the network’s feature representation capacity, which causes an immediate drop in initial detection accuracy. Consequently, performance recovery training is indispensable to restore model capabilities. The model with a compression ratio of 1.4 exhibits a rapid increase in mAP@0.5 during the early iterations of recovery training and stabilizes quickly. In contrast, the model with a compression ratio of 1.9 starts from a much lower baseline mAP@0.5. Although its accuracy improves progressively with training, its final converged performance remains inferior to that of the model with lower pruning intensity. This phenomenon implies that an excessive pruning magnitude permanently impairs the backbone’s structural feature extraction capability. As a result, full recovery cannot be achieved even with extended fine-tuning.
Figure 3. Precision recovery training changes at different compression ratios.
We analyzed the distribution of network channels before and after compression to intuitively evaluate the structural impact of the pruning algorithm. Specifically, this analysis verified whether critical feature channels are preserved while complexity is reduced. Figure 4 provides a detailed comparison of channel counts across different layers for the models with compression ratios of 1.4 and 1.9. Compared to the 1.4 baseline, a higher pruning intensity leads to a further uniform reduction in channel numbers across all network layers. This result confirms the global sparsity allocation capability of the LAMP algorithm.
Figure 4. Comparison of channels before and after pruning for LRDD-YOLOv8n.

4.2. Knowledge Distillation Results

Channel-wise KD is applied to the selected pruned models, and the quantitative evaluation is presented in Table 5. All compressed models demonstrate improved detection accuracy to various extents without introducing extra parameters or computational overhead. The most pronounced improvement occurs at a compression ratio of 1.5, where the mAP@0.5 increases by 1.9 percentage points, while the highest absolute accuracy of 65.1% is achieved at a compression ratio of 1.4.
Table 5. Knowledge distillation experimental results.
A detailed comparison of the AP values across specific distress categories before and after distillation is illustrated in Figure 5 For individual distress types, the AP values for alligator cracking, pothole, and manhole cover exhibit notable increments. This trend validates the effectiveness of channel-wise distillation in promoting feature learning for complex, geometrically irregular distress types. Conversely, the longitudinal patch category shows a marginal decrease, which is potentially attributed to inherent dataset class imbalance. Overall, the detection performance of the distilled model is enhanced for the majority of distress categories, verifying its capability to recover representative features in lightweight architectures.
Figure 5. Comparison of classified AP values before and after compression (Compression ratio = 1.4).
Channel-wise knowledge distillation is particularly well-suited for pavement defect detection for two fundamental reasons, which also explain how the model maintains geometric representations under compression. First, pavement defects (e.g., cracks and potholes) are inherently structural and orientation-sensitive. Deep convolutional channels specialize in extracting edges along specific orientations. Standard magnitude-based pruning may inadvertently remove channels responsible for critical directional filters (e.g., longitudinal cracks), which may lead to asymmetric performance degradation, catastrophic localization drift, or high missed-detection rates for faint, thin cracks. Channel-wise distillation forces the student network to mimic the exact activation distribution of each teacher channel, so that it can preserve these orientation-specific filters.
Second, the structural continuity of defects, such as long linear crack lines, relies heavily on the spatial coherence of channel activations. By aligning entire feature maps, channel-wise KD helps maintain spatial correlations between adjacent pixels, which is crucial for distinguishing true interconnected cracks from isolated background noise and preventing crack fragmentation. In contrast, conventional response-based distillation, which only mimics final logits, fails to recover such critical intermediate structural information.
This mechanism directly accounts for the quantitative resilience observed in Figure 5. If pruning had structurally broken the topology of extended defects, the accuracy for orientation-sensitive classes would have collapsed. Instead, our framework maintains or enhances the class-wise AP for complex alligator cracking and longitudinal defects under compression. This quantitative stability serves as rigorous mathematical evidence that the compressed network robustly preserves edge coherence and continuous geometric representations of fine defects. So it provides a solid theoretical foundation for real-world high-speed deployment.
To visually validate the improvement in spatial perception achieved by the distilled model, Gradient-weighted Class Activation Mapping (Grad-CAM) [32] is employed. Given that the model at a compression ratio of 1.5 achieves the most significant accuracy gain according to Table 5, this configuration is selected to compare the feature heatmaps before and after distillation, as shown in Figure 6.
Figure 6. Comparison of Grad-CAM feature heatmaps before and after KD.
As shown in Figure 6a, the left image displays the annotated ground truth, where blue bounding boxes indicate two manhole covers and two longitudinal cracks, the cyan-green box represents a pothole, and the white box highlights an alligator cracking zone. The middle and right images present the feature heatmaps generated before and after distillation, respectively. While both models allocate attention to the two manhole covers and the far-right longitudinal crack, a striking difference emerges within the alligator cracking area: the pre-distillation model completely overlooks this region, whereas the distilled model demonstrates a well-defined focus on it. Although neither model fully highlights the minor crack and pothole in the absolute center of the image, the distilled model shows a vastly superior perception of regional details and structural boundaries compared to its pre-distillation counterpart.
Similarly, in Figure 6b, the left image shows the ground truth annotation, where the cyan-green box indicates a pothole and the blue box outlines a longitudinal crack. In the pre-distillation heatmap (middle), the model exhibits scattered attention near the pothole; however, its overall activation distribution is fragmented, with sporadic noise appearing in irrelevant background regions. Furthermore, its response to the longitudinal crack is faint, indicating a failure to extract salient linear features. In contrast, the distilled model’s heatmap (right) reveals a highly concentrated, continuous, and high-activation region directly overlapping the longitudinal crack, proving its enhanced capacity to perceive elongated structures. Meanwhile, although the high-activation zone does not entirely cover the annotated pothole boundaries, its center remains strongly highlighted, which can ensure the defect is not neglected.
As displayed in Figure 6, the actual detection results under real road conditions provide clear qualitative evidence of the model’s structural preservation capabilities. Despite the parameter reduction, the compressed model successfully maintains the edge coherence of extended distresses. For instance, in complex road sections containing low-contrast thin cracks and shadowed areas (Figure 6b), the model avoids localization drift and accurately delineates the continuous trajectories of linear cracks without fragmenting them into isolated noise. This demonstrates that the spatial topology of fine defects is effectively retained through our joint pruning and distillation strategy.

4.3. Performance Evaluation and Embedded Platform Deployment

4.3.1. Benchmark Setup and Inference Latency

To ensure strict reproducibility and fairness in benchmarking, all embedded evaluations were conducted under a uniform environment using an input image resolution of 640 × 640 pixels and a batch size of 1, closely replicating the sequential, single-frame arrival pattern of real-world vehicle inspection scenarios. The edge platform was configured to operate under standard FP16 (half-precision) GPU mode via PyTorch. To eliminate transient cold-start overheads from operating system scheduling and CUDA initialization, 50 warm-up runs were executed prior to logging. The reported metrics represent the average execution values calculated at over 1000 continuous inference iterations on the validation dataset. Table 6 provides a comprehensive performance comparison of the baseline and compressed models.
Table 6. Experimental results of different detection models on the embedded platform.
As indicated in Table 6, all variants optimized by our framework outperform the baseline YOLOv8n detector in terms of accuracy while substantially reducing computational demands. Specifically, the LRDD-YOLOv8n-1.4 model achieves the optimal trade-off with the highest detection accuracy (65.1% mAP@0.5) and a swift execution time of 48.3 ms per frame (1.75× faster than YOLOv8n). Notably, an intriguing hardware profiling phenomenon emerges when comparing the highly compressed variants: although the LRDD-YOLOv8n-1.9 model slashes the theoretical FLOPs by an additional 31.7% relative to the 1.4 version (2.8 vs. 4.1 GFLOPs), its actual physical inference speedup is marginal, gaining merely 2.8 ms (45.5 ms vs. 48.3 ms). This sub-linear acceleration confirms that after aggressive channel pruning, the edge deployment bottleneck shifts from being computation-bound (FLOPs) to memory-bandwidth-bound (Arithmetic Intensity). The highly pruned, non-contiguous channel dimensions introduce irregular memory strides and fragmented data access patterns across the unified memory architecture of the Jetson TX2, thereby elevating the Memory Access Cost (MAC) and identifying the empirical upper bounds of structural pruning on edge hardware.

4.3.2. Real-World Vehicle-Mounted Deployment and Kinematic Analysis

To further validate the real-world robustness and end-to-end efficiency of the system, a field trial was conducted on the Guangzhou North Second Ring Expressway. The optimal LRDD-YOLOv8n-1.4 model was integrated into a customized inspection pipeline on the vehicle-mounted edge platform. As illustrated in Figure 7 and Figure 8, a high-definition USB camera was securely mounted behind the front windshield to capture pavement scenes in real time, with instantaneous bounding boxes rendered on an onboard HDMI monitor.
Figure 7. Real-world vehicle-mounted application scenario.
Figure 8. Actual road distress detection results under expressway testing conditions.
During continuous highway testing, the system sustained a stable end-to-end processing rate of 20 FPS, allocating a total time budget of 50.0 ms per frame lifecycle. This empirical end-to-end latency is systematically sustained through a multi-threaded asynchronous pipeline design. Non-inference tasks—such as RTSP stream decoding, letterbox resizing, normalization, and post-processing (Non-Maximum Suppression and HDMI canvas rendering)—are decoupled into isolated concurrent CPU threads. Because these peripheral tasks collectively require less than 2.0 ms and run in parallel execution pipelines, their time overheads are heavily overlapped. Consequently, the pure model GPU forward pass (48.3 ms) dominantly governs the system’s execution cycle.
To verify whether a processing rate of 20 FPS is sufficient for high-speed pavement inspection without risking missed detections, a kinematic and geometric coverage analysis was performed:
Spatial Displacement: At a standard highway inspection speed of 50 km/h (equivalent to 13.89 m/s, a frame rate of 20 Hz yields a physical vehicular travel distance of only 0.69 m between consecutive frames.
Temporal Window of Visibility: The vehicle-mounted camera maintains an effective longitudinal look-ahead field of view (FoV) spanning approximately 15 m on the pavement ahead. Consequently, any given pavement distress object remains within the camera’s active tracking window for approximately 1.08 s (15 m/13.89 m/s).
Frame Redundancy: Within this 1.08 s visibility window, the identical road defect is continuously captured across approximately 21 consecutive frames (1.08 s × 20 FPS), with a longitudinal frame-to-frame spatial overlap rate of 95.4% ((15 − 0.69)/15).
Given this substantial multi-frame redundancy, the probability of missing an isolated distress object due to frame-rate gaps is statistically negligible. Furthermore, restricting the system to a steady 20 FPS lowers the continuous GPU utilization, which efficiently regulates the thermal dissipation and power draw of the sealed BOXER-8120AI enclosure, which in turn suppresses thermal throttling and guarantees system reliability during long-duration field inspection missions.

5. Conclusions

This paper has proposed and validated a model compression strategy integrating LAMP and channel-wise knowledge distillation for deploying road distress detection models on embedded platforms and covers the entire pipeline from algorithm optimization to physical edge device deployment.
The main conclusions are as follows:
(1)
LAMP effectively reduces model complexity through global adaptive sparsity allocation. For compression ratios between 1.4 and 1.9, the parameter count is reduced by 36% to 59%, FLOPs are decreased by 31% to 49%, and the CPU inference latency is shortened by 13% to 31% compared to the baseline model.
(2)
Channel-wise knowledge distillation effectively mitigates the accuracy degradation caused by structural pruning, improving the mAP@0.5 by 1.4 to 1.9 percentage points without introducing any additional hardware inference overhead. Visualizations confirm that after distillation, the network’s attention becomes highly concentrated on distress regions. This significantly enhances its boundary localization capability.
(3)
The optimized LRDD-YOLOv8n-1.4 model was successfully deployed on the BOXER-8120AI edge computing platform, achieving a single-frame inference time of 48.3 ms and a live video stream detection rate of 20 FPS. Real-world field tests on an expressway verified the practical feasibility and real-time reliability of the deployment system.
Despite these promising results, several limitations of this case study should be noted. First, the pruning ratio and distillation hyperparameters were selected empirically for the specific baseline architecture and may require comprehensive tuning for other deep frameworks. Second, edge deployment was evaluated exclusively on a single hardware platform (NVIDIA Jetson TX2), leaving its cross-platform consistency on other low-power devices (e.g., Jetson Orin Nano, Raspberry Pi) unassessed. Finally, the achieved video processing rate of 20 FPS is lower than the 30 FPS typically required for perfectly smooth real-time monitoring at higher vehicular cruising speeds.
To address these limitations, future research will focus on expanding this framework in three directions. First, representation similarity metrics, such as Centered Kernel Alignment (CKA), will be employed to quantitatively trace and interpret which specific semantic channels are recovered through distillation. Second, the compressed pavement distress detectors will be systematically evaluated and optimized under challenging field conditions, such as heavy shadows, rainfall, and motion blur. Both synthetic data augmentation and dedicated field data collection will be used for this purpose.

Author Contributions

Conceptualization, H.X., Z.Y. and H.W.; methodology, H.X., Z.Y. and H.W.; software, Z.Y. and H.W.; validation, H.X. and H.W.; formal analysis, H.X., Z.Y. and H.W.; investigation, Z.Y. and H.W.; writing—original draft preparation, H.X., Z.Y. and H.W.; writing—review and editing, H.X., Z.Y. and H.W.; visualization, H.X., Z.Y. and H.W.; supervision, H.X. and H.W.; project administration, H.X. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Specialized Project for Technology Innovation and Application Development of Chongqing, grant number CSTB2022TIADKPX0100.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The data presented in this study are openly available in Scientific Data at https://doi.org/10.1038/s41597-024-03263-7, reference number [31].

Acknowledgments

The authors would like to thank Zhoucong Xu and You Zhou for their assistance and contributions to the work. However, their involvement does not meet the authorship criteria of the journal, and they are therefore acknowledged here.

Conflicts of Interest

Author Hua Xu was employed by the company China Merchants Expressway Network & Technology Holdings Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Huang, Y.T.; Jahanshahi, M.R.; Sankar, N.V.; Shen, F. Affordable, autonomous, and comprehensive road condition assessment using RGB-D sensors: Enhancing pavement condition evaluation. IEEE Trans. Intell. Transp. Syst. 2025, 26, 13094–13108. [Google Scholar] [CrossRef] [Scilit]
  2. Zhou, J.; Wang, Y.; Zhou, W. Efficient instance segmentation framework for UAV-based pavement distress detection. Autom. Constr. 2025, 175, 106195. [Google Scholar] [CrossRef] [Scilit]
  3. Tong, S.; Wu, D.; Liu, X.; Zheng, L.; Du, Y.; Zou, D. STGAN: Spatial-temporal graph autoregression network for pavement distress deterioration prediction. IEEE Trans. Intell. Transp. Syst. 2025, 26, 10765–10778. [Google Scholar] [CrossRef] [Scilit]
  4. Lin, W.; Li, X.; Han, H.; Yu, Q.; Cho, Y.H. A novel approach for pavement distress detection and quantification using RGB-D camera and deep learning algorithm. Constr. Build. Mater. 2023, 407, 133593. [Google Scholar] [CrossRef] [Scilit]
  5. 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, 84, 38509–38544. [Google Scholar] [CrossRef] [Scilit]
  6. Ran, M.; Liu, P.; Guan, J.; Li, C.; Zhou, X. Lightweight pavement distress detection algorithm based on an improved YOLOv11n. Meas. Sci. Technol. 2025, 36, 115408. [Google Scholar] [CrossRef] [Scilit]
  7. Ren, K.; Chen, R.; Zhang, H.; Cui, K.; Wu, Q.; Dong, J.; Liang, L.; Liu, L. An efficient and lightweight LS-YOLOv11 algorithm for non-invasive pavement distress detection in UAV images. Meas. Sci. Technol. 2026, 37, 015004. [Google Scholar] [CrossRef] [Scilit]
  8. Wang, C.; He, W.; Yan, X.; Chen, P.; Wang, J. L-YOLO-HR: Implementing lightweight and efficient pavement distress detection by enhancement of the spatial information extractions of high-resolution features. Eng. Res. Express 2025, 7, 045226. [Google Scholar] [CrossRef] [Scilit]
  9. Hu, Y.; Chen, N.; Hou, Y.; Lin, X.; Jing, B.; Liu, P. Lightweight deep learning for real-time road distress detection on mobile devices. Nat. Commun. 2025, 16, 4212. [Google Scholar] [CrossRef] [Scilit]
  10. Liu, C.; Yang, H.; Wu, D.; Li, Y.; Du, Y. City-level pavement distress inspection using crowdsourced data of logistics vehicles. IEEE Trans. Intell. Transp. Syst. 2025, 27, 868–882. [Google Scholar] [CrossRef] [Scilit]
  11. Ning, Z.; Wang, H.; Li, S.; Xu, Z. YOLOv7-RDD: A lightweight efficient pavement distress detection model. IEEE Trans. Intell. Transp. Syst. 2024, 25, 6994–7003. [Google Scholar] [CrossRef] [Scilit]
  12. Jiang, S.; Wang, H.; Ning, Z.; Li, S. Lightweight pruning model for road distress detection using unmanned aerial vehicles. Autom. Constr. 2024, 168, 105789. [Google Scholar] [CrossRef] [Scilit]
  13. Li, J.; Yuan, C.; Wang, X. Real-time instance-level detection of asphalt pavement distress combining space-to-depth (SPD) YOLO and omni-scale network (OSNet). Autom. Constr. 2023, 155, 105062. [Google Scholar] [CrossRef] [Scilit]
  14. Kumar, R.; Tung, S. Automated detection and severity assessment of asphalt pavement distress using YOLOv8: A deep learning approach. Int. J. Pavement Res. Technol. 2025. [Google Scholar] [CrossRef] [Scilit]
  15. Gao, X. Pavement damage detection based on embedded design and computer vision. Int. J. Pavement Res. Technol. 2025. [Google Scholar] [CrossRef] [Scilit]
  16. Asadi, Y. Paving the future of intelligent pavement defect detection with machine learning: A comprehensive survey of techniques and applications. Int. J. Pavement Res. Technol. 2026. [Google Scholar] [CrossRef] [Scilit]
  17. Cano-Ortiz, S.; Lloret Iglesias, L.; Martinez Ruiz del Arbol, P.; Castro-Fresno, D. Improving detection of asphalt distresses with deep learning-based diffusion model for intelligent road maintenance. Dev. Built Environ. 2024, 17, 100315. [Google Scholar] [CrossRef] [Scilit]
  18. Alatoom, Y.I.; Smadi, O. Complete end-to-end pavement distress assessment using low-cost embedded systems with StyleGAN3 synthetic data augmentation for budget-limited transportation agencies. Int. J. Pavement Eng. 2026, 27, 2652455. [Google Scholar] [CrossRef] [Scilit]
  19. Guerrieri, M.; Parla, G. Flexible and stone pavements distress detection and measurement by deep learning and low-cost detection devices. Eng. Fail. Anal. 2022, 141, 106714. [Google Scholar] [CrossRef] [Scilit]
  20. Wang, J.; Li, X.; Xu, Y.; Zhou, Z.; Wu, W.; Li, Z. Optimizing CNN for pavement distress detection via edge-enhanced multi-scale feature fusion. PLoS ONE 2023, 20, e0319299. [Google Scholar] [CrossRef] [Scilit]
  21. Yang, Z.; Lan, X.; Wang, H. Comparative analysis of YOLO series algorithms for UAV-based highway distress inspection: Performance and application insights. Sensors 2025, 25, 1475. [Google Scholar] [CrossRef] [Scilit]
  22. Zhang, Y.; Liu, C. Real-Time Pavement Damage Detection with Damage Shape Adaptation. IEEE Trans. Intell. Transp. Syst. 2024, 25, 18954–18963. [Google Scholar] [CrossRef] [Scilit]
  23. Han, S.; Pool, J.; Tran, J.; Dally, W.J. Deep compression: Compressing deep neural networks with pruning, trained quantization and Huffman coding. arXiv 2015, arXiv:1510.00149. [Google Scholar]
  24. Hinton, G.; Vinyals, O.; Dean, J. Distilling the knowledge in a neural network. arXiv 2015, arXiv:1503.02531. [Google Scholar] [CrossRef] [Scilit]
  25. Deng, L.; Li, G.; Han, S.; Shi, L.; Xie, Y. Model compression and hardware acceleration for neural networks: A comprehensive survey. Proc. IEEE 2020, 108, 485–532. [Google Scholar] [CrossRef] [Scilit]
  26. Gou, J.; Yu, B.; Maybank, S.J.; Tao, D. Knowledge distillation: A survey. Int. J. Comput. Vis. 2021, 129, 1789–1819. [Google Scholar] [CrossRef] [Scilit]
  27. Lee, J.; Park, S.; Mo, S.; Ahn, S.; Shin, J. Layer-adaptive sparsity for the Magnitude-based Pruning. arXiv 2020, arXiv:2010.07611. [Google Scholar] [CrossRef] [Scilit]
  28. Shu, C.; Liu, Y.; Gao, J.; Yan, Z.; Shen, C. Channel-wise knowledge distillation for dense prediction. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada, 11–17 October 2021; pp. 5311–5320. [Google Scholar]
  29. Liu, Y.; Jia, X.; Tan, M.; Vemulapalli, R.; Zhu, Y.; Green, B.; Wang, X. Search to distill: Pearls are everywhere but not the eyes. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 13–19 June 2020; pp. 7539–7548. [Google Scholar]
  30. Lan, X.; Yang, Z.; Wang, H. Lightweight road distress detection model LRDD-YOLOv8 for efficient and accurate detection in complex scenarios. Meas. Sci. Technol. 2025, 36, 75412. [Google Scholar] [CrossRef] [Scilit]
  31. Ren, M.; Zhang, X.; Zhi, X.; Wei, Y.; Feng, Z. An annotated street view image dataset for automated road damage detection. Sci. Data 2024, 11, 407. [Google Scholar] [CrossRef] [Scilit]
  32. 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.