Introduction
The maintenance of civil infrastructure, particularly bridges, is undergoing a digital transformation. Traditional manual inspections—often involving dangerous climbs and subjective assessments—are being replaced by drone-based photography and high-resolution imaging. While this shift has solved the problem of data collection, it has created a significant bottleneck in data processing. To automate defect detection using deep learning, researchers require high-quality, pixel-level segmentation masks. However, manually tracing defects like cracks, rust, and spalling is an arduous task; a single high-resolution image can require over 90 minutes of expert labor to annotate accurately.
This paper introduces a novel framework that repurposes Artificial Intelligence (AI) explainability techniques to bridge the gap between easy-to-acquire weak labels and the precise segmentation masks required for engineering-grade models. By using Class Activation Maps (CAMs) and adversarial climbing, the framework generates "proposals" that human experts can refine, significantly increasing productivity.
The Challenge of Pixel-Level Annotation
In the context of infrastructure health monitoring, the precision of a defect's boundary is critical for assessing structural integrity. While "weakly supervised" learning methods—which train models using only image-level tags (e.g., "this image contains rust")—are easier to implement, they typically produce coarse, "smudgy" localization maps. These maps often fail to capture the fine details of thin cracks or the irregular boundaries of concrete spalling. Consequently, the industry has remained reliant on manual polygon annotation, a process that is not scalable given the terabytes of data generated by modern inspection drones.
Proposed Methodology
The authors propose a Model-Assisted Labeling (MAL) workflow designed to turn AI explainability into a generative tool for data labeling. The process follows a multi-stage pipeline:
1. Weak Labeling and Classification
Instead of drawing complex polygons, annotators provide weak labels by clicking on patches of an image to indicate the presence of a defect. This data is used to train a classifier based on a modified U-Net architecture with a ResNet34 backbone. Unlike standard classifiers that reduce spatial resolution through heavy downsampling, this architecture preserves high-resolution features in the decoder, which is essential for accurate localization.
2. Generating Proposals via AdvCAM
To identify the specific pixels responsible for a classification, the framework utilizes Grad-CAM. However, standard Grad-CAM often only highlights the most discriminative part of an object—for instance, the widest part of a crack—rather than its entire extent. To solve this, the authors employ Adversarial Climbing (AdvCAM). This iterative process uses the classification gradient to "climb" and identify all pixels belonging to the defect class, effectively expanding the initial heatmap to cover the entire object.
3. Post-Processing and Human-in-the-Loop
The raw attribution maps are refined through thresholding, morphological closure (to fill small gaps), and area filtering to remove noise. These generated masks are then presented to human experts within a labeling interface (such as CVAT). The expert's role shifts from "creator" to "editor," as they simply accept, reject, or modify the AI-generated proposals.
Experimental Results
The framework was validated using a real-world dataset of 732 high-resolution (5K × 5K) bridge inspection images, covering three primary defect classes: cracks, spalling, and rust. The primary metric for success was the reduction in human annotation time.
Productivity Gains
The implementation of the MAL framework resulted in an average 52% reduction in total annotation time across all defect types. The efficiency gains varied by defect morphology:
- Cracks: 57% time savings. The distinct edges of cracks are well-suited for AdvCAM expansion.
- Spalling: 58% time savings. Despite being less frequent in the dataset, the clear boundaries of chipped concrete allowed for rapid refinement.
- Rust: 40% time savings. Rust proved the most challenging due to its "fuzzy" boundaries and varying color gradients, which made thresholding more sensitive to noise.
In a specific demonstration, refining a proposed mask for a spalling defect took only 31 seconds, compared to 180 seconds for manual tracing—a 6x speedup for that individual instance.
Discussion and Limitations
While the framework demonstrates significant productivity improvements, its effectiveness is inherently tied to the classifier's performance. If the initial classifier fails to detect a defect (a false negative), no mask is generated, and the human annotator must revert to manual labeling. Furthermore, the sensitivity of rust detection suggests that more sophisticated post-processing or multi-scale attribution maps may be required for amorphous defects.
The authors emphasize that their 52% time-savings estimate is conservative. In their evaluation, any instance where the human spent more than half the manual time refining a mask was treated as having 0% savings, suggesting the real-world impact may be even higher.
Conclusion
By reframing explainability (XAI) as a tool for productivity rather than just a method for model debugging, this research provides a practical path forward for large-scale infrastructure inspection. The transition from manual annotation to model-assisted refinement allows engineering experts to focus on high-level verification, drastically reducing the labor costs associated with training robust computer vision models for the built environment. Future work will focus on integrating this framework into an active learning pipeline, where human corrections are used to iteratively retrain the classifier in real-time.
Summary updated