← Latest papers
💻 computer science

IR-SegDiff: Conditional Diffusion for Subsurface Defect Segmentation and Uncertainty Estimation in Infrared Thermography

This paper proposes IR-SegDiff, a conditional diffusion-based model that integrates specialized fusion modules and ensemble sampling to achieve accurate subsurface defect segmentation with pixel-wise uncertainty estimation in infrared thermography, outperforming baseline networks while significantly accelerating inference speed.

Original authors: Jin Nan, Chaoqi Huang, Shunmin Wu, Qi Zhao, Zhijun Xu, Min Li, Yuhang Li, Yunpeng Ma

Published 2026-11-26
📖 5 min read🧠 Deep dive

Original authors: Jin Nan, Chaoqi Huang, Shunmin Wu, Qi Zhao, Zhijun Xu, Min Li, Yuhang Li, Yunpeng Ma

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Aerospace engineers face a constant, silent challenge: ensuring that the lightweight, high-strength materials holding up modern aircraft remain free of hidden flaws. These materials, often layered composites, can develop internal cracks, delaminations, or voids deep beneath the surface, invisible to the naked eye but potentially catastrophic for structural safety. To find these hidden dangers without tearing the parts apart, inspectors use a technique called infrared thermography. By heating a material's surface and watching how the heat flows, they can spot where the heat gets stuck or diverted by an internal defect. However, this method is notoriously difficult to interpret. The thermal signals from deep flaws are often faint and blurry, easily confused with noise from the environment or the testing equipment. For years, relying on human experts to spot these subtle patterns has been the standard, but human eyes get tired, and experience varies. The goal of modern inspection is to replace that guesswork with a reliable, automated system that can not only find the defect but also tell the inspector how sure it is about what it sees.

Researchers at Beihang University and Hikrobot have developed a new approach to solve this problem, creating a system they call IR-SegDiff. Instead of trying to force a computer to make a single, perfect guess about where a defect is, this system uses a type of artificial intelligence known as a conditional diffusion model. Imagine a process where the computer starts with a completely blank, noisy guess and slowly refines it, step by step, using the actual thermal image as a guide. At each step, the model asks itself, "Given the heat pattern I see here, what should the defect look like?" It repeats this refinement process, gradually clearing away the noise until a clear picture of the defect emerges. What makes this new method special is that it doesn't just stop at one final answer. By running this refinement process multiple times, the system generates a small collection of slightly different predictions. By comparing these different versions, the computer can identify areas where it is confident and areas where it is unsure, providing a map of uncertainty alongside the defect itself.

The team tested this system on a custom-built dataset containing samples of carbon fiber, glass fiber, and resin, materials commonly used in aircraft. They created artificial defects of various shapes and depths, ranging from simple circles to complex, irregular contours, and subjected them to different heating conditions to simulate real-world testing. When they compared their new system against seven other popular image-analysis networks, the results were clear. The IR-SegDiff model outperformed all the others, correctly identifying the location and shape of the defects with a high degree of accuracy. In fact, when the researchers combined the results of five separate runs of the model, the accuracy improved even further, reaching a score of 76.72% for correctly identifying the defect pixels and 65.43% for how well the predicted shape matched the actual shape. This was a significant leap over the next best traditional method, which struggled to find more than a quarter of the defect pixels in some cases.

Beyond just finding the defects, the study addressed a critical weakness in previous automated systems: the inability to handle noise. In real-world inspections, air currents or slight variations in heating can distort the thermal images, leading to missed defects or false alarms. The researchers simulated these disturbances by adding random noise to their test images. They found that while a single run of the model might get confused by the noise, the ensemble approach—averaging the results of multiple runs—kept the system stable. Even when the images were heavily distorted, the combined predictions remained accurate, effectively filtering out the confusion caused by the noise. More importantly, the system provided a way to see where it was struggling. By looking at the differences between the multiple runs, the researchers could pinpoint exactly which pixels the model was uncertain about. In tests where they reviewed only the top 10% of the most uncertain pixels, they were able to recover a significant portion of the defects that the model had initially missed. This means the system doesn't just give a "yes" or "no" answer; it tells the human inspector exactly where to look more closely if the computer is unsure.

Speed is another major factor in industrial inspection, as slow systems are impractical for routine use. Traditional diffusion models can be very slow, requiring hundreds of steps to clean up an image. The researchers implemented a mathematical shortcut to accelerate this process, reducing the number of steps needed from a thousand down to just twenty-five. This change made the system thirty-five times faster, allowing it to process an image in just over seven seconds while maintaining the same high level of accuracy. The study also broke down the model's internal components to understand what made it work so well. They found that the system's ability to look at the image at different levels of detail simultaneously, and to carefully blend the thermal image information with the defect-finding process, was crucial. Without these specific features, the model produced more false alarms or missed subtle defects.

The findings suggest that this new method offers a robust path forward for automated safety inspections in aerospace. By combining high accuracy with a built-in measure of confidence, the system bridges the gap between raw data and human decision-making. It does not replace the inspector but rather acts as a highly sensitive partner, highlighting potential issues and flagging areas that require a second look. The researchers demonstrated that by embracing the natural variability of the AI's predictions rather than trying to suppress it, they could create a tool that is both faster and more reliable than current standards. This approach transforms infrared thermography from a technique that often requires expert interpretation into a system that can provide clear, actionable, and self-aware guidance for ensuring the safety of critical structures.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →