Posted in

How AI is Revolutionizing Concrete Crack Detection

If you’ve ever driven over an older bridge and wondered, “Is this still safe?”, you’re not alone. Our global network of bridges is aging, facing daily punishment from heavy traffic, weather extremes, and time itself. Traditionally, ensuring their safety has relied on manual inspections, a slow, costly, and sometimes dangerous process. But what if a drone with a camera and some smart software could do the job faster, safer, and with superhuman precision?

That’s exactly the future envisioned by researchers in a groundbreaking 2025 study. They’ve developed a fully automated system that doesn’t just find cracks, it analyzes them with stunning detail. Let’s dive into how this “Bridge Doctor” works, why it’s a game-changer, and what it means for the safety of our infrastructure.

Why Cracks Matter

First, a bit of context. Cracks on a concrete bridge surface aren’t just cosmetic flaws. They are the first tell-tale signs of deeper distress. They can allow water and corrosive chemicals to seep in, attacking the reinforcing steel inside, which can lead to catastrophic structural failure if left unchecked.

For decades, inspectors have combed bridges with clipboards, markers, and rulers. They manually locate, trace, and measure cracks. It’s subjective, time-consuming, and exposes people to risky environments. The need for an automated, objective, and precise method has never been clearer.

A recent study published in Journal of Computing in Civil Engineering presents an elegant three-step pipeline that acts like a medical diagnostic tool for bridges:

  1. Detection (The Initial Scan): Rapidly find and locate cracks in an image.
  2. Segmentation (The Detailed MRI): Precisely outline every pixel of the crack.
  3. Measurement (The Diagnosis): Accurately calculate the crack’s width.

What makes this system special is that it doesn’t just use off-the-shelf AI tools; it significantly improves them for this specific, tricky task.

Crack Detection Algorithm

Part 1: Crack-BAM – The Eagle-Eyed Spotter

The first job is to quickly scan a bridge image and shout, “There’s a crack here!” For this, the team started with YOLOv8 (You Only Look Once, version 8), a famous AI model known for real-time object detection.

Standard YOLO is great for detecting cars or people, but cracks are a different beast. They are slender, irregular, and often blend into the concrete background. Think of trying to spot a single, faint grey hair on a grey sweater from a distance. The model needed sharper eyes.

The researchers gave YOLOv8 a vision upgrade by integrating an attention mechanism called BAM. This combines two powerful ideas:

  • BOT (Bottleneck Transformer): Helps the model understand the context of the crack, its long, winding path, by capturing relationships between pixels far apart in the image.
  • CBAM (Convolutional Block Attention Module):  Acts like a spotlight, telling the model to focus its computational power on the most informative parts of the image (the crack) and ignore the noisy background.

Imagine you’re looking for your friend in a crowded concert. You first scan the general area (context from BOT), then your eyes focus on faces, ignoring the distractions of waving hands and stage lights (focus from CBAM). Crack-BAM does this for cracks.

The enhanced Crack-BAM model achieved 87.66% precision (when it says it’s a crack, it’s usually right) and   84.36% recall (it finds most of the cracks). Its F1-score, a balance of the two, hit   86%, outperforming the standard YOLOv8. It proved robust even in tricky low-light or slightly blurry conditions, just like a real bridge inspection might face on a cloudy day or from a moving drone.

Part 2: Crack-USR – The Pixel-Perfect Artist 

Finding the crack is only step one. Next, we need its exact shape. This is called semantic segmentation, classifying every single pixel as either “crack” or “not crack.” This creates a crisp, binary map of the crack.

Getting clean, detailed edges is crucial because the next step is measurement. A blurry segmentation will lead to wrong width calculations. Furthermore, cracks in images are often thin and detailed, making them hard to capture accurately.

The team chose UNet3+ as their base segmentation model, known for preserving fine boundary details. But their masterstroke was adding a super-resolution network called D-DBPN to the  output  of UNet3+.

Instead of enhancing the blurry  input  image (which amplifies all noise), they first let UNet3+ create a binary crack map. Then, they fed this map into the D-DBPN network, which acts like a   professional photo enhancer . It uses an iterative “up-and-down projection” process to guess and reconstruct the missing high-resolution details of the crack’s edges.

You have an old, pixelated family photo. Instead of sharpening the whole photo (which makes everyone’s skin look weird), you first carefully trace the outline of your grandfather’s glasses. Then, you use a special tool to perfectly redraw that traced line in high definition. That’s what Crack-USR does for crack boundaries.

To train this dual network, the researchers designed a custom loss function, the recipe that tells the AI how wrong it is and how to improve. They combined:

  1. Boundary Loss:  Specifically punishes errors along the crack edge, which is vital for measurement.
  2. Generalized Dice Loss:  Handles the extreme class imbalance (very few “crack” pixels vs. millions of “background” pixels).
  3. Super-Resolution Loss:   Ensures the enhanced image matches what a true high-res crack should look like.

This joint training approach was a winner. Crack-USR achieved lower loss and higher accuracy (IoU) than other setups, like applying super-resolution first. It could extract stunning detail from complex crack patterns, providing the perfect blueprint for the final step.

Part 3: The Hybrid Measurement – The Precision Engineer 

Now, with a perfect binary map of the crack, it’s time for the critical question:  “How wide is it?” 

Cracks aren’t straight lines. They zigzag, branch, and vary in width. Two traditional methods exist:

  • The Shortest Distance Method:  Finds the closest points between the two edges. It’s simple but can  underestimate  width if it picks a non-representative, narrow point.
  • The Orthogonal Skeleton Method: Draws a “spine” (skeleton) down the middle of the crack and measures width perpendicular to it at each point. It’s better for direction but can  overestimate wildly, especially at intersections, by measuring to a far-away point on a different branch.

The researchers’ hybrid method is elegantly logical:

  1. It finds the crack’s skeleton and determines its local direction.
  2. For each point on the skeleton, it looks at edge points that are mostly perpendicular (using a strict 0.999 balance factor to prioritize correct direction).
  3. From these candidate edge points, it finally picks the closest pair, ensuring the measurement is both directionally appropriate and spatially accurate.

When measuring the width of a meandering river, it is important to consider different methods to ensure accuracy. The shortest method may involve measuring a narrow inlet, which can lead to an underestimation of the river’s width. Conversely, the orthogonal method measures straight across to the opposite bank at a bend, resulting in an overestimation. A more accurate approach is the hybrid method, which entails walking perpendicularly to the river’s flow from your current position and measuring the distance only until reaching the nearest water’s edge on both sides. This method provides the true, local width of the river.

In tests, the hybrid method triumphed. Compared to careful manual measurements, it achieved a relative error of less than 5.47%   for maximum crack width, significantly better than using either traditional method alone. This level of accuracy moves the technology from a lab curiosity to a tool trustworthy for real engineering assessments.

The study didn’t stop at theory. They tested the full pipeline with drone-captured images of concrete beams. They even introduced real-world challenges like painting black patches on the beam to simulate difficult backgrounds and stains.

The system worked seamlessly:

  1. Crack-BAM successfully located cracks despite the visual noise.
  2. Crack-USR provided a clean, detailed segmentation.
  3. The Hybrid Method delivered precise width measurements.

This end-to-end automation demonstrates a viable path forward: drones collecting images, and AI software providing a comprehensive crack report, detection, precise mapping, and critical width data, with minimal human intervention.

Conclusion

The implications of this research are profound, providing a robust, accurate, and efficient tool that can significantly enhance bridge inspection processes. With the use of drones and AI technology, inspection frequency can be increased, allowing for more regular checks of bridge conditions. This approach also improves safety by minimizing the need for inspectors to operate in hazardous positions, thus reducing risk.

Furthermore, it enhances objectivity by delivering consistent, data-driven assessments that eliminate human subjectivity from the evaluation process. The ability to enable predictive maintenance is another key benefit, as the accurate, trended width data collected over time can help forecast when a crack may become critical, allowing repairs to be made before significant issues arise. 

By integrating the meticulous detection capabilities of Crack-BAM, the precise detail offered by Crack-USR, and the engineering accuracy of the Hybrid Measurement method, this research transcends academic theory; it serves as a blueprint for a smarter, safer management of the crucial arteries of our transportation network.

Reference

  • Li, Zewei, et al. “Automated Concrete Crack Detection System with Superresolution Enhancement and Hybrid Measurement Techniques.” Journal of Computing in Civil Engineering 40.2 (2026): 04025159.https://doi.org/10.1061/JCCEE5.CPENG-7321
  • Al-Rousan, R. Z. 2022. “Impact of sulfate damage on the behavior of full-scale concrete bridge deck slabs reinforced with FRP bars.” Case Stud. Constr. Mater. 16 (Jun): e01030. https://doi.org/10.1016/j.cscm.2022.e01030.
  • Gao, Y., H. Cao, W. Cai, and G. Zhou. 2023. “Pixel-level road crack detection in UAV remote sensing images based on ARD-UNet.” Measurement 219 (Sep): 113252. https://doi.org/10.1016/j.measurement.2023.113252.
  • Huang, H., L. Lin, R. Tong, H. Hu, Q. Zhang, Y. Iwamoto, X. Han, Y. W. Chen, and J. Wu. 2020. “UNet 3+: A full-scale connected UNet for medical image segmentation.” In Proc., 2020 IEEE Int. Conf. on Acoustics, Speech and Signal Processing (ICASSP 2020), 1055–1059. New York: IEEE. https://doi.org/10.1109/ICASSP40776.2020.9053405.Li, J., C. Yuan, X. Wang, G. Chen, and G. Ma. 2025. “Semi-supervised crack detection using segment anything model and deep transfer learning.” Autom. Constr. 170 (Feb): 105899. https://doi.org/10.1016/j.autcon.2024.105899.
  • Ong, J. C. H., M.-Z. P. Ismadi, and X. Wang. 2022. “A hybrid method for pavement crack width measurement.” Measurement 197 (Jun): 111260. https://doi.org/10.1016/j.measurement.2022.111260

Share