Human–AI Collaborative Thermal Anomaly Detection: Active Learning Frameworks for Adaptive Infrared Diagnostics
Infrared thermography (IRT) is a popular tool for diagnosing thermal anomalies in building envelopes, but its practical application is hindered by inconsistent imaging conditions and ill-defined anomaly boundaries. Training a unified, robust model that can adapt to diverse building scenarios and conditions is particularly challenging, leading to high costs associated with pixel-level annotation. This paper presents an expert-in-the-loop, human–artificial intelligence (AI) collaborative framework for thermal anomaly segmentation within IRT, leveraging active learning (AL) and weakly supervised expert annotation to efficiently fine-tune a pretrained benchmark model, the capsule network–based deep learning model (CapsLab). Built on CapsLab, the proposed framework integrates a query-by-committee (QBC)-based AL strategy using three backbones—ResNet101, dilated residual networks (DRNs), and MobileNetV2—whose prediction disagreement is explicitly used to iteratively select the most informative thermal images and compare three fine-tuning (FT) schemes: baseline (FT-B), lightweight (FT-L), and aggressive (FT-A). A simple linear iterative clustering (SLIC)-based human-in-the-loop interface enables inspectors to cross-check and correct model-segmented anomaly superpixels using scribble-based weak annotations, substantially reducing labeling effort while preserving expert oversight. To better capture the instance-level nature of thermal anomalies, the framework uses different evaluation metrics and identifies Instant-level Anomaly Identification Metric for Precision (Instant-AIM-P) as the most stable and sensitive indicator of segmentation performance. Experiments on a new drone-based IRT data set from a residential community demonstrate that FT-L achieves the best balance between accuracy and efficiency, improving Instant-AIM-P from 0.646 (pretrained CapsLab) to 0.829 using only 14 actively selected images, corresponding to a 75% reduction in annotation workload. The results show that the proposed human–AI collaborative workflow effectively adapts thermal anomaly segmentation models to new scenarios while minimizing human labeling effort, providing a practical path toward adaptive, scalable, and intelligent detection of building energy inefficiencies.
Authors
- Tarek Rakha (ORCID: https://orcid.org/0000-0002-2467-2237)
- Kaiwen Chen (ORCID: https://orcid.org/0000-0003-4330-5376)
- Yining Wen (ORCID: https://orcid.org/0009-0000-0761-8354)
- Jiannan Cai (ORCID: https://orcid.org/0000-0001-6110-5293)
Institutions
- Georgia Institute of Technology (US)
- University of Alabama (US)
- Lamar University (US)
- Lamar Community College (US)
- The University of Texas at San Antonio (US)
Publication Details
- Journal
- Journal of Computing in Civil Engineering
- Published
- 2026-11-30
- DOI
- https://doi.org/10.1061/jccee5.cpeng-8081
- Primary Topic
- Thermography and Photoacoustic Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00