A Code-Conforming Computer Vision Framework for Visual Inspection of Reinforced and Prestressed Concrete Bridges
Abstract
1. Introduction
Related Work: Computer Vision Applications for Civil Infrastructure Inspection
- Predictive modelling to estimate the lifespan of structures.
- Optimised resource management.
- Automated inspection through computer vision technologies.
- Data analysis to forecast degradation and reduce maintenance costs.
2. Methods
2.1. Object Detection Algorithm and Evaluation Metrics
- TP: True positive
- FP: False positive
- TN: True negative
- FN: False negative
2.2. Code-Conforming Approach for Surface Damage Detection
- Level 0: Census—gathering basic administrative and structural data on each bridge.
- Level 1: Visual Inspection—aimed at documenting observable defects through on-site surveys and photographic documentation.
- Level 2: Preliminary Risk Classification—integrates data from Levels 0 and 1 to provide a synthetic risk index for prioritisation named Class of Attention (CdA).
- Levels 3–5: In-Depth Evaluations—these include detailed structural analysis (e.g., finite element modelling), load testing, structural health monitoring, and full safety assessments, which are required for bridges flagged as potentially critical at Level 2.
- Structural and Foundational Risk;
- Seismic Risk;
- Hydraulic Risk;
- Landslide (Geological) Risk.
- RC abutments (form no. 1);
- RC piers (form no. 3);
- RC columns (form no. 8);
- RC girders and transverse beams (form no. 14);
- PRC girders and transverse beams (form no. 15);
- RC slabs (form no. 18).
2.3. Declaration of Generative AI in Scientific Writing
3. Model Training
3.1. Bridge Dataset
3.2. Image Annotation and Augmentation
4. Model Performance Evaluation
5. Implementation of Multimodal Attention Mechanisms and Graphical User Interface
5.1. System Architecture
5.1.1. Attention Mechanisms for Damage Detection in Images: SAM and U-Net Segmentation and Tile-Based Processing
- Speed: U-Net demonstrates significantly faster inference times, making it more suitable for real-time applications and batch processing scenarios.
- Deterministic output: Unlike SAM, U-Net does not support interactive point selection, providing consistent, automated segmentation without user intervention.
- Domain-specific training: The model is specifically trained on bridge infrastructure images, potentially offering better generalisation for this application domain.
- Context preservation: Blurred regions maintain spatial and colour context, allowing users to understand the relationship between segmented and non-segmented areas.
- Visual continuity: The gradual transition between focused and blurred regions reduces visual discontinuity compared to sharp black boundaries.
- Attention guidance: The blur effect naturally guides visual attention toward the sharp, segmented regions without creating harsh visual artefacts.
- Reduced cognitive load: Users can still perceive the overall scene structure, facilitating better understanding of the segmentation results.
5.1.2. Video-Based Defect Tracking
- Transforms detection coordinates using the computed homography to account for camera movement;
- Calculates the IoU between transformed detections and existing tracks;
- Associates detections with tracks based on the IoU threshold (default: 0.3) and spatial distance;
- Updates track positions and maintains hit counters for each tracked object.
- Confidence threshold: Adjustable from 0.0 to 1.0 (default: 0.25) for YOLO detection sensitivity;
- IoU threshold: Adjustable from 0.0 to 1.0 (default: 0.3) for NMS strength;
- Segmentation method: Dropdown selection between SAM, U-Net (augmented), U-Net (standard), or YOLO-only processing;
- Video playback speed: Adjustable playback rate for video analysis.
- Parallel processing potential: Each tile can theoretically be processed independently, enabling future GPU parallelization;
- Memory efficiency: Processing smaller tiles reduces memory requirements compared to full-resolution processing;
- Detection accuracy: Smaller input regions allow YOLO to focus on local features, potentially improving the detection of small defects.
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Domaneschi, M.; Pellecchia, C.; De Iuliis, E.; Cimellaro, G.; Morgese, M.; Khalil, A.; Ansari, F. Collapse analysis of the Polcevera viaduct by the applied element method. Eng. Struct. 2020, 214, 110659. [Google Scholar] [CrossRef]
- Ministero delle Infrastrutture e dei Trasporti. Linee Guida per la Classificazione e Gestione del Rischio, la Valutazione Della Sicurezza ed il Monitoraggio dei Ponti Esistenti; Consiglio Superiore dei Lavori Pubblici, 2020; italian technical code.
- Santarsiero, G.; Masi, A.; Picciano, V.; Digrisolo, A. The Italian guidelines on risk classification and management of bridges: Applications and remarks on large-scale risk assessments. Infrastructures 2021, 6, 111. [Google Scholar] [CrossRef]
- Santarsiero, G.; Mishra, M.; Singh, M.K.; Masi, A. Structural health monitoring of exterior beam–column subassemblies through detailed numerical modelling and using various machine learning techniques. Mach. Learn. Appl. 2021, 6, 100190. [Google Scholar] [CrossRef]
- LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef]
- Redmon, J.; Divvala, S.; Girshick, R.; Farhadi, A. You only look once: Unified, real-time object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 779–788. [Google Scholar]
- Santarsiero, G. Automated assessment of bridge guardrails for regional prioritization based on open-source data and deep learning algorithms. Results Eng. 2025, 26, 105210. [Google Scholar] [CrossRef]
- Fui-Hoon Nah, F.; Zheng, R.; Cai, J.; Siau, K.; Chen, L. Generative AI and ChatGPT: Applications, challenges, and AI-human collaboration. J. Inf. Technol. Case Appl. Res. 2023, 25, 277–304. [Google Scholar] [CrossRef]
- Autodesk; Deloitte. State of Digital Adoption in the Construction Industry; Report; Autodesk: Mill Valley, MA, USA; London, UK, 2024. [Google Scholar]
- Ni, Y.; Mao, J.; Fu, Y.; Wang, H.; Zong, H.; Luo, K. Damage Detection and Localization of Bridge Deck Pavement Based on Deep Learning. Sensors 2023, 23, 5138. [Google Scholar] [CrossRef]
- Kizilay, F.; Narman, M.R.; Song, H.; Narman, H.S.; Cosgun, C.; Alzarrad, A. Evaluating fine tuned deep learning models for real-time earthquake damage assessment with drone-based images. AI Civ. Eng. 2024, 3, 15. [Google Scholar] [CrossRef]
- Zou, D.; Zhang, M.; Bai, Z.; Liu, T.; Zhou, A.; Wang, X.; Cui, W.; Zhang, S. Multicategory damage detection and safety assessment of post-earthquake reinforced concrete structures using deep learning. Comput. Aided Civ. Inf. 2022, 37, 1188–1204. [Google Scholar] [CrossRef]
- Dogan, G.; Arslan, M.H.; Ilki, A. Detection of damages caused by earthquake and reinforcement corrosion in RC buildings with Deep Transfer Learning. Eng. Struct. 2023, 279, 115629. [Google Scholar] [CrossRef]
- Plicka, V.; Gallovič, F.; Zahradník, J.; Serpetsidaki, A.; Sokos, E.; Vavlas, N.; Kiratzi, A. The 2020 Samos Mw7 earthquake: Source model depicting complexity and rupture directivity. Tectonophysics 2022, 843, 229591. [Google Scholar] [CrossRef]
- Mishra, M.; Zhang, K.; Mea, C.; Barazzetti, L.; Fassi, F.; Fiorillo, F.; Previtali, M. Deep Learning-Based AI-Assisted Visual Inspection Systems for Historic Buildings and their Comparative Performance with ChatGPT-4O. Int. Arch. Photogramm. Remote Sens. Spat. Inf. Sci. 2024, 48, 327–334. [Google Scholar] [CrossRef]
- Katsigiannis, S.; Seyedzadeh, S.; Agapiou, A.; Ramzan, N. Deep learning for crack detection on masonry façades using limited data and transfer learning. J. Build. Eng. 2023, 76, 107105. [Google Scholar] [CrossRef]
- Zaidi, S.S.A.; Ansari, M.S.; Aslam, A.; Kanwal, N.; Asghar, M.; Lee, B. A survey of modern deep learning based object detection models. Digit. Signal Process. 2022, 126, 103514. [Google Scholar] [CrossRef]
- Szegedy, C.; Vanhoucke, V.; Ioffe, S.; Shlens, J.; Wojna, Z. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2016; pp. 2818–2826. Available online: http://ieeexplore.ieee.org/document/7780677/ (accessed on 8 January 2026).
- Li, L.; Yang, Z.; Yang, X.; Li, J.; Zhou, Q. PV resource evaluation based on Xception and VGG19 two-layer network algorithm. Heliyon 2023, 9, e21450. [Google Scholar] [CrossRef]
- Karimi, N.; Mishra, M.; Lourenço, P.B. Automated Surface Crack Detection in Historical Constructions with Various Materials Using Deep Learning-Based YOLO Network. Int. J. Archit. Herit. 2024, 19, 581–597. [Google Scholar] [CrossRef]
- Liu, J.; Sun, H.; Liu, H.; Yue, Q.; Xu, Z.; Jia, Y.; Wang, S. Recognition and quantification of apparent damage to concrete structure based on computer vision. Measurement 2025, 240, 115635. [Google Scholar] [CrossRef]
- Wang, W.; Su, C. Deep learning-based detection and condition classification of bridge steel bearings. Autom. Constr. 2023, 28, 04023048. [Google Scholar] [CrossRef]
- Huang, L.; Fan, G.; Li, J.; Hao, H. Deep learning for automated multiclass surface damage detection in bridge inspections. Autom. Constr. 2024, 166, 105601. [Google Scholar] [CrossRef]
- Zeng, J.; Zhong, H. YOLOv8-PD: An Improved Road damage detection algorithm based on YOLOv8n model. Sci. Rep. 2024, 14, 12052. [Google Scholar] [CrossRef]
- Fukuoka, T.; Fujiu, M. Detection of Bridge Damages by Image Processing Using the Deep Learning Transformer Model. Buildings 2023, 13, 788. [Google Scholar] [CrossRef]
- Yamane, T.; Chun, P.J.; Dang, J.; Okatani, T. Deep learning-based bridge damage cause estimation from multiple images using visual question answering. Struct. Infrastruct. Eng. 2024, 1–14. [Google Scholar] [CrossRef]
- Su, H.; Kamanda, D.B.; Han, T.; Guo, C.; Li, R.; Liu, Z.; Su, F.; Shang, L. Enhanced YOLO v3 for precise detection of apparent damage on bridges amidst complex backgrounds. Sci. Rep. 2024, 14, 8627. [Google Scholar] [CrossRef] [PubMed]
- Yu, Z.; Shen, Y.; Shen, C. A real-time detection approach for bridge cracks based on YOLOv4-FPM. Autom. Constr. 2021, 122, 103514. [Google Scholar] [CrossRef]
- Zhao, S.; Kang, F.; Li, J. Concrete dam damage detection and localisation based on YOLOv5s-HSC and photogrammetric 3D reconstruction. Autom. Constr. 2022, 143, 104555. [Google Scholar] [CrossRef]
- Dong, X.; Liu, Y.; Dai, J. Concrete Surface Crack Detection Algorithm Based on Improved YOLOv8. Sensors 2024, 24, 5252. [Google Scholar] [CrossRef]
- Ruggieri, S.; Cardellicchio, A.; Nettis, A.; Renò, V.; Uva, G. Using Attention for Improving Defect Detection in Existing RC Bridges. IEEE Access 2025, 13, 18994–19015. [Google Scholar] [CrossRef]
- Muhammad, M.B.; Yeasin, M. Eigen-CAM: Visual explanations for deep convolutional neural networks. Soc. Social. Netw. Comput. Sci. 2021, 2, 47. [Google Scholar] [CrossRef]
- Zakaria, M.; Karaaslan, E.; Catbas, F.N. Advanced bridge visual inspection using real-time machine learning in edge devices. Adv. Bridge Eng. 2022, 3, 27. [Google Scholar] [CrossRef]
- Chen, Q.; Jiang, X. A portable real-time concrete bridge damage detection system. Measurement 2025, 240, 115536. [Google Scholar] [CrossRef]
- Sharma, A.; Kumar, V.; Longchamps, L. Comparative performance of YOLOv8, YOLOv9, YOLOv10, YOLOv11 and Faster R-CNN models for detection of multiple weed species. Smart Agric. Technol. 2024, 9, 100648. [Google Scholar] [CrossRef]
- Dwyer, B.; Nelson, J.; Hansen, T.; Solawetz, J. Roboflow (Version 1.0) [Software]. Computer Vision 2025. Available online: https://roboflow.com (accessed on 14 April 2025).
- Kirillov, A.; Mintun, E.; Ravi, N.; Mao, H.; Rolland, C.; Gustafson, L.; Xiao, T.; Whitehead, S.; Berg, A.C.; Lo, W.Y.; et al. Segment Anything. In Proceedings of the IEEE/CVF International Conference on Computer Vision; IEEE: New York, NY, USA, 2023; pp. 4015–4026. [Google Scholar]
- Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. arXiv 2015, arXiv:1505.04597. [Google Scholar] [CrossRef]
- Ünel, F.Ö.; Özkalayci, B.O.; Çiğla, C. The Power of Tiling for Small Object Detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), Long Beach, CA, USA, 16–17 June 2019; pp. 582–591. [Google Scholar] [CrossRef]
- Demonstration Video of VIADUCT Visual Inspection Pipeline Set up by HAIRI (Human-Driven AI for Resilient Infrastructure) Laboratory at University of Basilicata, Italy. Available online: https://youtu.be/bWD7NJa5gec (accessed on 7 February 2026).










| Code | Defect Description | Forms | Severity G |
|---|---|---|---|
| c.a-c.a.p._1 | Passive moisture stains | 1, 3, 8, 14, 15, 18 | 1 |
| c.a-c.a.p._2 | Active moisture stains | 1, 3, 8, 14, 15, 18 | 3 |
| Dif_Gen_1 | Drainage streaks | 1, 3, 8, 14, 15, 18 | 3 |
| c.a-c.a.p._3 | Washed-out/deteriorated concrete | 1, 3, 8, 14, 15, 18 | 3 |
| Dif_Gen_2 | Water ponding | 1, 3, 14, 15 | 2 |
| c.a-c.a.p._4 | Honeycombs | 1, 3, 8, 14, 15, 18 | 2 |
| c.a-c.a.p._5 | Spalling of concrete cover | 1, 3, 8, 14, 15, 18 | 2 |
| c.a-c.a.p._6 | Corroded/oxidised reinforcement | 1, 3, 8, 14, 15, 18 | 5 |
| c.a-c.a.p._7 | Minor crazing cracks | 1, 3, 8, 14, 15, 18 | 1 |
| c.a-c.a.p._8 | Horizontal cracks | 1, 3, 8 | 2 |
| c.a-c.a.p._9 | Vertical cracks | 1, 3, 8 | 2 |
| c.a-c.a.p._10 | Diagonal cracks | 1, 3, 8, 14, 15, 18 | 5 |
| c.a-c.a.p._11 | Cracks at column joint | 1, 3, 8 | 3 |
| c.a-c.a.p._12 | Deteriorated construction joints | 1, 3, 8, 14, 15, 18 | 1 |
| Dif_Gen._3 | Impact damage | 1, 3, 8, 14, 15 | 4 |
| Dif_Gen._6 | Out-of-plumb | 1, 3, 8 | 5 |
| Ril-Fond_1 | Scour | 1, 3 | 5 |
| Ril-Fond._2 | Embankment washout | 1 | 1 |
| Ril-Fond._3 | Embankment distress—deformations | 1 | 2 |
| Rif-Fond._4 | Embankment distress—stability | 1 | 4 |
| Rif-Fond._5 | Foundation movements | 1, 3 | 5 |
| c.a-c.a.p._13 | Compression cracks | 1, 3, 8 | 4 |
| Dif_Gen._4 | Characteristic cracks at bearing areas | 1, 3 | 3 |
| c.a-c.a.p._15 | Cracks near stirrups | 3, 14 | 2 |
| c.a-c.a.p._16 | Exposed/corroded stirrups | 3, 8, 14, 15 | 3 |
| c.a-c.a.p._23 | Broken stirrups | 3, 8, 14 | 4 |
| c.a-c.a.p._17 | Deformed longitudinal reinforcement | 3, 8, 14, 15 | 5 |
| c.a-c.a.p._18 | Longitudinal cracks | 14, 18 | 2 |
| c.a-c.a.p._19 | Transverse cracks | 14, 15, 18 | 5 |
| c.a-c.a.p._21 | Washed-out/deteriorated concrete at ends | 14, 15 | 4 |
| c.a-c.a.p._22 | Cracks/separation in transverse beams | 14, 15 | 3 |
| c.a-c.a.p._24 | Defects in Gerber saddles | 14, 15 | 5 |
| Dif_Gen._5 | Water ponding in box girders | 14, 15 | 5 |
| c.a.p._1 | Capillary cracks at anchorages | 15 | 1 |
| c.a.p._2 | Unsealed anchor head ends | 15 | 2 |
| c.a.p._3 | Detachment of end blocks | 15 | 1 |
| c.a.p._4 | Cracks on web along cables | 15 | 2 |
| c.a.p._5 | Cracks along bulb flange | 15 | 2 |
| c.a.p._6 | Exposed sheaths | 15 | 2 |
| c.a.p._7 | Degraded sheaths and corroded wires | 15 | 4 |
| c.a.p._8 | Visible corroded bonded wires | 15 | 4 |
| c.a.-c.a.p._25 | Cracks at beam–slab interface | 18 | 2 |
| c.a.p._9 | Reduction in prestressing reinforcement | 15 | 5 |
| c.a.p._10 | Internal moisture | 15 | 2 |
| c.a.p._11 | Exposed/corroded reinforcement at ends | 15 | 2 |
| c.a.p._12 | Protruding anchor bars | 15 | 5 |
| Bridge | Total Length [m] | Avg. Span Length [m] | No. of PRC Spans | No. of Deck Beams | No. of Images |
|---|---|---|---|---|---|
| 1 | 163 | 33 | 5 | 3 | 36 |
| 2 | 123 | 31 | 3 | 4 | 30 |
| 3 | 260 | 29 | 9 | 3 | 40 |
| 4 | 230 | 33 | 7 | 3 | 22 |
| 5 | 413 | 52 | 5 | 4 | 58 |
| 6 | 140 | 33 | 4 | 3 | 15 |
| 7 | 966 | 42 | 23 | 3 | 285 |
| 8 | 102 | 34 | 3 | 3 | 80 |
| Total | 566 |
| Subset | Images (Before Augmentation) | Images (After Augmentation) | Variation | Percentage of Total (After Augmentation) |
|---|---|---|---|---|
| Training | 435 | 914 | +479 | 87.5% |
| Validation | 87 | 87 | 0 | 8.4% |
| Test | 44 | 44 | 0 | 4.1% |
| Total | 566 | 1045 | +479 | 100% |
| Class Id | Class Name | Severity G | Ref. in Inspection Form | No. of Annotations |
|---|---|---|---|---|
| 0 | Corroded/oxidised reinforcement | 5 | ca_c.a.p._6 | 2259 |
| 1 | Washed-out/deteriorated concrete | 3 | ca_c.a.p._3 | 545 |
| 2 | Washed-out/deteriorated concrete at ends | 4 | ca_c.a.p._21 | 135 |
| 3 | Crack | 5 | - | 47 |
| 4 | Protruding anchor bars | 5 | c.a.p._12 | 7 |
| 5 | Cracks near stirrups | 2 | ca_c.a.p._15 | 260 |
| 6 | Active moisture stains | 3 | ca_c.a.p._2 | 137 |
| 7 | Passive moisture stains | 1 | ca_c.a.p._1 | 1023 |
| 8 | Exposed/corroded stirrups | 3 | ca_c.a.p._16 | 897 |
| 10 | Drainage streaks | 3 | Dif_Gen_1 | 550 |
| 11 | Honeycombs | 2 | ca_c.a.p._4 | 215 |
| Total | 6086 | |||
| Class Id | Severity | GT_TP | TP | FP | FN | Precision | Recall | F1 Score |
|---|---|---|---|---|---|---|---|---|
| 0 | 5 | 41 | 29 | 9 | 12 | 0.76 | 0.71 | 0.73 |
| 1 | 3 | 27 | 17 | 9 | 10 | 0.65 | 0.63 | 0.64 |
| 2 | 4 | 7 | 5 | 2 | 2 | 0.71 | 0.71 | 0.71 |
| 3 | 5 | 2 | 2 | 0 | 0 | 1.00 | 1.00 | 1.00 |
| 4 | 5 | 2 | 2 | 0 | 1 | 1.00 | 0.67 | 0.80 |
| 5 | 2 | 10 | 6 | 4 | 4 | 0.60 | 0.60 | 0.60 |
| 6 | 3 | 11 | 7 | 3 | 4 | 0.70 | 0.64 | 0.67 |
| 7 | 1 | 31 | 21 | 9 | 10 | 0.70 | 0.68 | 0.69 |
| 8 | 3 | 25 | 15 | 8 | 10 | 0.65 | 0.60 | 0.63 |
| 10 | 3 | 27 | 17 | 9 | 10 | 0.65 | 0.63 | 0.64 |
| 11 | 2 | 9 | 5 | 3 | 4 | 0.63 | 0.56 | 0.59 |
| Mean | 0.73 | 0.67 | 0.70 |
| Image Resolution [Mpx] | No. of Images | U-Net Segmentation Time (s) | SAM Segmentation Time (s) | YOLO Inference Time (s) |
|---|---|---|---|---|
| 0.41 (640 × 640) | 5 | 0.27 | 4.70 | 0.30 |
| 9.00 (4000 × 2250) | 5 | 0.29 | 5.07 | 0.61 |
| 19.96 (5472 × 3648) | 5 | 0.37 | 5.11 | 1.22 |
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Santarsiero, G.; Picciano, V.; Ventricelli, N.; Masi, A. A Code-Conforming Computer Vision Framework for Visual Inspection of Reinforced and Prestressed Concrete Bridges. Sensors 2026, 26, 1242. https://doi.org/10.3390/s26041242
Santarsiero G, Picciano V, Ventricelli N, Masi A. A Code-Conforming Computer Vision Framework for Visual Inspection of Reinforced and Prestressed Concrete Bridges. Sensors. 2026; 26(4):1242. https://doi.org/10.3390/s26041242
Chicago/Turabian StyleSantarsiero, Giuseppe, Valentina Picciano, Nicola Ventricelli, and Angelo Masi. 2026. "A Code-Conforming Computer Vision Framework for Visual Inspection of Reinforced and Prestressed Concrete Bridges" Sensors 26, no. 4: 1242. https://doi.org/10.3390/s26041242
APA StyleSantarsiero, G., Picciano, V., Ventricelli, N., & Masi, A. (2026). A Code-Conforming Computer Vision Framework for Visual Inspection of Reinforced and Prestressed Concrete Bridges. Sensors, 26(4), 1242. https://doi.org/10.3390/s26041242

