Panel-Aware Local Background Filtering for Photovoltaic Thermal Anomaly Detection and Automatic Bounding-Box Pre-Annotation
Abstract
1. Introduction
1.1. Related Work
1.2. Methodological Contribution and Novelty
- A row-wise thermal averaging and one-dimensional (1D) Otsu-based panel masking strategy is integrated to constrain the analysis to relevant PV panel regions and reduce background interference.
- Morphological erosion is incorporated to generate a conservative inner-panel mask, reducing boundary-related and off-panel detections.
- Method 3 integrates local-background intensity comparison with panel-coverage filtering to retain spatially consistent thermal-anomaly candidates and suppress irrelevant detections. This combined panel-aware local filtering strategy constitutes the main methodological differentiator of the proposed framework.
- In the absence of pixel-level ground-truth annotations, the methods are comparatively evaluated using detected-region count, panel-coverage ratio, out-of-region ratio, and other defined quantitative indicators.
- The framework is evaluated on both public PV thermal images and real-world UAV thermal images acquired from a grid-connected rooftop PV system at Zonguldak Bülent Ecevit University (BEUN) to examine its behavior under different imaging conditions.
2. Materials and Methods
2.1. Publicly Available Thermal PV Dataset
2.2. Real-World Thermal PV Dataset
2.3. Methodology
2.3.1. Method 1: (Global) Contrast-Based Thermal-Anomaly Candidate Detection
2.3.2. Method 2: (Baseline) Panel-Based Hotspot Detection
2.3.3. Method 3: (Proposed) Advanced Local Background-Based Hot Spot Detection
2.3.4. Parameter Selection and Configuration
3. Results and Discussion
3.1. Evaluation of Hotspot Detection Performance on Publicly Available Thermal Image Datasets
3.2. Evaluation of Photovoltaic Panel Surface Hotspot Detection Performance Using Solar Power Plant Data
4. Conclusions
5. Limitation and Future Works
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| PV | Photovoltaic |
| CPU | Central Processing Unit |
| CNNs | Convolutional Neural Networks |
| ROI | Region of Interest |
| U-Net | U-shaped Convolutional Neural Network |
| SegNet | Semantic Segmentation Network |
| R-CNN | Region-Based Convolutional Neural Network |
| YOLO | You Only Look Once |
| 2TSS | Two-Tier Semantic Segmentation |
| ResNet | Residual Neural Network |
| HE | Histogram Equalization |
| AHE | Adaptive Histogram Equalization |
| CLAHE | Contrast Limited Adaptive Histogram Equalization |
| 1D | One-Dimensional |
| IR | Infrared |
| UAV | Unmanned Aerial Vehicle |
| LWIR | Long-Wave Infrared |
| R-MC | Reference-Matched Candidates |
| P-MC | Partially-Matched Candidates |
| R-UC | Reference-Unmatched Candidates |
| IoU | Intersection over Union |
References
- Trongtirakul, T.; Agaian, S. Unsupervised and optimized thermal image quality enhancement and visual surveillance applications. Signal Process. Image Commun. 2022, 105, 116714. [Google Scholar] [CrossRef] [Scilit]
- Khatri, A.; Khadka, S.; Lamichhane, N.; Shrestha, R. A comprehensive review of infrared thermography and deep learning applications for solar photovoltaic systems. Infrared Phys. Technol. 2025, 148, 105878. [Google Scholar] [CrossRef] [Scilit]
- Ahmed, W. Thermal and chromatic analysis for scalable photovoltaic hotspot detection. Sol. Energy 2026, 306, 114227. [Google Scholar] [CrossRef] [Scilit]
- Tsanakas, J.A.; Chrysostomou, D.; Botsaris, P.N.; Gasteratos, A. Fault diagnosis of photovoltaic modules through image process ing and Canny edge detection on field thermographic measurements. Int. J. Sustain. Energy 2015, 34, 351–372. [Google Scholar] [CrossRef] [Scilit]
- Wang, F.; Wang, Z.; Chen, Z.; Zhu, D.; Gong, X.; Cong, W. An edge-guided deep learning solar panel hotspot thermal image segmentation algorithm. Appl. Sci. 2023, 13, 11031. [Google Scholar] [CrossRef] [Scilit]
- Alsafasfeh, M.; Abdel-Qader, I.; Bazuin, B.; Alsafasfeh, Q.; Su, W. Unsupervised fault detection and analysis for large photovoltaic systems using drones and machine vision. Energies 2018, 11, 2252. [Google Scholar] [CrossRef] [Scilit]
- Vidal de Oliveira, A.K.; Aghaei, M.; Rüther, R. Automatic fault detection of photovoltaic arrays by convolutional neural networks during aerial infrared thermography. In Proceedings of the 36th European Photovoltaic Solar Energy Conference and Exhibition, Marseille, France, 9–13 September 2019; pp. 1302–1307. [Google Scholar]
- Pierdicca, R.; Paolanti, M.; Felicetti, A.; Piccinini, F.; Zingaretti, P. Automatic faults detection of photovoltaic farms: SolAIr, a deep learning-based system for thermal images. Energies 2020, 13, 6496. [Google Scholar] [CrossRef] [Scilit]
- Vlaminck, M.; Heidbuchel, R.; Philips, W.; Luong, H. Region-based CNN for anomaly detection in PV power plants using aerial imagery. Sensors 2022, 22, 1244. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, Y.; Li, S.; Teng, F.; Lin, Y.; Wang, M.; Cai, H. Improved Mask R-CNN for rural building roof type recognition from UAV high-resolution images: A case study in hunan province, China. Remote Sens. 2022, 14, 265. [Google Scholar] [CrossRef] [Scilit]
- Ishak, N.H.; Isa, I.S.; Osman, M.K.; Jadin, M.S.; Daud, K.; Ab Hamıd, M.Z. 2TSS: Two-tier semantic segmentation framework with enhancement for hotspot detection of solar photovoltaic thermal images. IEEE Access 2025, 13, 88888–88904. [Google Scholar] [CrossRef] [Scilit]
- Ab Hamid, M.Z.; Daud, K.; Che Soh, Z.H.; Osman, M.K.; Isa, I.S.; Ishak, N.H. Enhanced solar panel segmentation and hotspot recognition using U-Net: A multiclass semantic segmentation approach. J. Electr. Electron. Syst. Res. 2025, 26, 27–33. [Google Scholar] [CrossRef] [Scilit]
- Li, Z.; Liu, W.; Wu, G.; Yang, S. Semantic segmentation of unmanned aerial vehicle image based on ResNet-UNet. In Proceedings of the 8th International Conference on Intelligent Informatics and Biomedical Sciences (ICIIBMS), Okinawa, Japan, 23–25 November 2023; pp. 295–299. [Google Scholar]
- Dutta, T.; Sil, J.; Chottopadhyay, P. Condition monitoring of electrical equipment using thermal image processing. In Proceedings of the 2016 IEEE First International Conference on Control, Measurement and Instrumentation (CMI), Kolkata, India, 8–10 January 2016; pp. 311–315. [Google Scholar]
- Afifah, A.N.N.; Indrabayu; Suyuti, A.; Syafaruddin. Hotspot detection in photovoltaic module using otsu thresholding method. In Proceedings of the 2020 IEEE International Conference on Communication, Networks and Satellite (Comnetsat), Batam, Indonesia, 17–18 December 2020; pp. 408–412. [Google Scholar]
- Li, H.; Wang, S.; Li, S.; Wang, H.; Wen, S.; Li, F. Thermal infrared-image-enhancement algorithm based on multi-scale guided filtering. Fire 2024, 7, 192. [Google Scholar] [CrossRef] [Scilit]
- Kuran, U.; Kuran, E.C. Parameter selection for CLAHE using multi-objective cuckoo search algorithm for image contrast enhancement. Intell. Syst. Appl. 2021, 12, 200051. [Google Scholar] [CrossRef] [Scilit]
- Sun, T.; Xing, H.; Cao, S.; Zhang, Y.; Fan, S.; Liu, P. A novel detection method for hot spots of photovoltaic (PV) panels using improved anchors and prediction heads of YOLOv5 network. Energy Rep. 2022, 8, 1219–1229. [Google Scholar] [CrossRef] [Scilit]
- Figueiredo, A.A.A.; D’Alessandro, G.; Perilli, S.; Sfarra, S.; Fernandes, H. Exploring the potentialities of thermal asymmetries in composite wind turbine blade structures via numerical and thermographic methods: A thermophysical perspective. J. Therm. Anal. Calorim. 2025, 150, 8107–8121. [Google Scholar] [CrossRef] [Scilit]
- Lopes, V.; Rocha, D.; Alves, J.; Teixeira, J.; Fernandes, P.; Costa, M.; Moraisi, M.; Salome, P. Comprehensive overview of photovoltaic plants operations and maintenance using UAV-based IR imaging and advanced image analysis techniques. Renew. Energy Focus 2026, 57, 100825. [Google Scholar] [CrossRef] [Scilit]
- Photovoltaic System Thermography. Available online: https://www.kaggle.com/datasets/marcosgabriel/photovoltaic-system-thermography (accessed on 15 December 2025).
- DJI Enterprise. Available online: https://enterprise.dji.com/matrice-30/specs (accessed on 21 September 2026).
- Zheng, L.; Shi, H.; Sun, S. Underwater image enhancement algorithm based on CLAHE and USM. In Proceedings of the 2016 IEEE International Conference on Information and Automation (ICIA), Ningbo, China, 1–3 August 2016; pp. 585–590. [Google Scholar]
- Yu, Y.; Bao, Y.; Wang, J.; Chu, H.; Zhao, N.; He, Y.; Liu, Y. Crop row segmentation and detection in paddy fields based on treble-classification otsu and double-dimensional clustering method. Remote Sens. 2021, 13, 901. [Google Scholar] [CrossRef] [Scilit]
- Serra, J. Image Analysis and Mathematical Morphology; Academic Press. Inc.: Orlando, FL, USA, 1983. [Google Scholar]
- Szeliski, R. Computer Vision: Algorithms and Applications, 2nd ed.; Springer Nature: Berlin/Heidelberg, Germany, 2022; pp. XXII, 925. [Google Scholar]
- Wang, Y. Improved OTSU and adaptive genetic algorithm for infrared image segmentation. In Proceedings of the 2018 Chinese Control And Decision Conference (CCDC), Shenyang, China, 9–11 June 2018; pp. 5644–5648. [Google Scholar]
- Dong, L.; Zhang, K.; He, M.; Zhong, S.; Ou, C. A local thresholding algorithm for ımage segmentation by using gradient orientation histogram. Appl. Sci. 2025, 15, 9808. [Google Scholar] [CrossRef] [Scilit]
- Bishop, C.M. Pattern Recognition and Machine Learning, 1st ed.; Springer: New York, NY, USA, 2006; pp. XX, 778. [Google Scholar]
- Otsu, N. A threshold selection method from gray-level histograms. IEEE Trans. Syst. Man Cybern. 1979, 9, 62–66. [Google Scholar] [CrossRef] [Scilit]
- Gonzalez, R.C.; Woods, R.E. Digital Image Processing, 2nd ed.; Prentice-Hall, Inc.: Hoboken, NJ, USA, 2002. [Google Scholar]















| Parameter | Specification |
|---|---|
| UAV weight | 3770 ± 10 g (including two batteries) |
| Maximum flight time | 41 min |
| Maximum wind resistance | 12 m/s |
| GNSS | GPS + Galileo + BeiDou |
| Thermal detector | Uncooled VOx microbolometer |
| Thermal lens | 9.1 mm, |
| Thermal camera DFOV | 61° |
| Thermal image resolution | 640 × 512 (normal); 1280 × 1024 (super-resolution) |
| Pixel pitch | 12 μm |
| NETD | ≤50 mK @ F1.0 |
| Temperature measurement accuracy | °C or , whichever is greater |
| Temperature measurement range | to °C (High Gain); 0 to °C (Low Gain) |
| Parameter | Value | Role in the Implementation |
|---|---|---|
| CLAHE clip limit | 2.0 | Local contrast enhancement |
| CLAHE tile grid | CLAHE local tiling | |
| Top-hat kernel | Emphasize small localized bright structures | |
| Global percentile (Method 1) | 99.7 | Global threshold |
| Panel percentile (Methods 2/3) | 98.5 | Within-panel adaptive threshold |
| min_area (Method 1) | 8 pixels | Small-component filtering |
| min_area (Methods 2/3) | 3 pixels | Small-component filtering |
| Local-background window | Local context | |
| bg_k (Method 1) | Local-background criterion | |
| bg_k (Method 3) | Local-background criterion | |
| Inner-mask erosion | Exclude panel-boundary region | |
| Panel coverage minimum | 0.40 | Minimum bbox/panel overlap constraint |
| Panel-mask Gaussian blur | Panel-mask preprocessing | |
| Vertical dilation | 6 pixels | Expand row-based panel bands |
| Closing kernel | Fill panel-mask gaps | |
| Opening kernel | Remove small noise components | |
| top_k | None | No fixed candidate-count cap |
| Category | Process/Filter | M1 Global | M2 Baseline | M3 Proposed |
|---|---|---|---|---|
| Pre-processing | 8-bit normalize | + | + | + |
| Gaussian Blur (panel mask) | - | + | + | |
| Panel Segmentation | Row-mean calculation | - | + | + |
| 1D Otsu (row mean) | - | + | + | |
| 2D Otsu | - | + | + | |
| Dilation (panel mask) | - | + | + | |
| Closing (hole filling) | - | + | + | |
| Contrast Enhancement | CLAHE | + | + | + |
| and Hotspot Detection | White Top-Hat (17 × 17) | + | + | + |
| Thresholding | Global percentile threshold | + | - | - |
| Panel-internal percentile threshold | - | + | + | |
| Noise Reduction | Opening (3 × 3) | + | + | + |
| Connected Component Labeling | Hotspot candidate generation | + | + | + |
| (CCL) | Area filtering (min_area) | + | + | + |
| Geometric and Statistical Features | comp_val (mean top-hat intensity) | + | + | + |
| center coordinate | + | + | + | |
| area (pixel area) | + | + | + | |
| local_mean calculation | + (filter) | + (report) | + (filter) | |
| On-Panel Verification (Key distinctions) | Panel mask utilization | - | + | + |
| Inner-panel mask (erosion) | - | - | + | |
| Erosion (31 × 31) | - | - | + | |
| Panel coverage rate | - | - | + | |
| Local background (bg) filter | + | - | + |
| Category | Filter | Function |
|---|---|---|
| Contrast Filter | CLAHE | Enhances local contrast and increases hotspot discriminability. |
| Low-pass Filter | Gaussian Blur | Reduces row mean noise during panel mask extraction. |
| Morphological Filter | White Top-Hat | Highlights local bright regions. |
| Morphological Filter | Opening (3 × 3) | Removes single-pixel noise. |
| Morphological Filter | Closing (7 × 7) | Fills holes in the panel mask. |
| Morphological Filter | Erosion (31 × 31) | Extracts the inner panel region and suppresses edge-related radiance artifacts. |
| Thresholding | Otsu Threshold | Segments panel rows and bright pixels. |
| Statistical Threshold | Percentile Threshold | Selects only the brightest pixels as hotspot candidates. |
| Image Name | Method | Detected Regions | Δ | Out-of-Region Ratio | Mean Area (Pixel) | Time (ms) |
|---|---|---|---|---|---|---|
| Image 1 | Method 1 (Global) | 9 | 40.49 | 0.67 | 20.3 | 48.67 |
| Method 2 (Baseline) | 73 | 10.09 | 0.14 | 10.6 | 24.30 | |
| Method 3 (Proposed) | 42 | 6.84 | 0.05 | 12.9 | 19.90 | |
| Image 2 | Method 1 (Global) | 7 | 37.08 | 0.43 | 47.43 | 44.2 |
| Method 2 (Baseline) | 59 | 9.01 | 0.41 | 32.88 | 135.2 | |
| Method 3 (Proposed) | 38 | 6.34 | 0.34 | 32.37 | 123.2 | |
| Image 3 | Method 1 (Global) | 7 | 51.10 | 0.57 | 59.14 | 47.32 |
| Method 2 (Baseline) | 48 | 14.08 | 0.28 | 43.67 | 107.6 | |
| Method 3 (Proposed) | 22 | 9.75 | 0.05 | 22.68 | 97.9 | |
| Image 4 | Method 1 (Global) | 5 | 67.15 | 0.00 | 48.60 | 46.2 |
| Method 2 (Baseline) | 85 | 10.41 | 0.00 | 22.21 | 145.0 | |
| Method 3 (Proposed) | 58 | 6.75 | 0.00 | 24.60 | 152.2 | |
| Image 5 | Method 1 (Global) | 2 | 91.07 | 0.5 | 17.00 | 19.8 |
| Method 2 (Baseline) | 37 | 16.67 | 0.24 | 58.30 | 57.6 | |
| Method 3 (Proposed) | 18 | 12.86 | 0.00 | 17.22 | 65.8 |
| Image | Method | Total Detected Thermal-Anomaly Candidates | R-MC | P-MC | R-UC | Out-of- Region Detections |
|---|---|---|---|---|---|---|
| Image 1 | Method 1 (Global) | 9 | 2 | 1 | 0 | 6 |
| Method 2 (Baseline) | 73 | 5 | 31 | 27 | 10 | |
| Method 3 (Proposed) | 42 | 2 | 18 | 20 | 2 | |
| Image 2 | Method 1 (Global) | 7 | 3 | 1 | 0 | 3 |
| Method 2 (Baseline) | 59 | 9 | 6 | 20 | 24 | |
| Method 3 (Proposed) | 38 | 6 | 5 | 14 | 13 | |
| Image 3 | Method 1 (Global) | 7 | 0 | 3 | 0 | 4 |
| Method 2 (Baseline) | 48 | 4 | 18 | 13 | 13 | |
| Method 3 (Proposed) | 22 | 5 | 10 | 6 | 1 | |
| Image 4 | Method 1 (Global) | 5 | 4 | 0 | 1 | 0 |
| Method 2 (Baseline) | 85 | 9 | 37 | 39 | 0 | |
| Method 3 (Proposed) | 58 | 7 | 23 | 28 | 0 | |
| Image 5 | Method 1 (Global) | 2 | 0 | 1 | 0 | 1 |
| Method 2 (Baseline) | 37 | 4 | 12 | 12 | 9 | |
| Method 3 (Proposed) | 18 | 2 | 10 | 6 | 0 |
| Image Name | Method | Detected Regions | Δ | Out-of-Region Ratio | Mean Area (Pixel) | Time (ms) |
|---|---|---|---|---|---|---|
| Image 1 | Method 1 (Global) | 6 | 65.40 | 0.33 | 38.67 | 63.5 |
| Method 2 (Baseline) | 80 | 10.25 | 0.53 | 72.00 | 144.4 | |
| Method 3 (Proposed) | 42 | 6.75 | 0.16 | 39.19 | 131.0 | |
| Image 2 | Method 1 (Global) | 2 | 85.37 | 0.50 | 14.0 | 76.1 |
| Method 2 (Baseline) | 150 | 5.25 | 0.46 | 15.43 | 224.7 | |
| Method 3 (Proposed) | 12 | 35.49 | 0.75 | 111.42 | 158.2 | |
| Image 3 | Method 1 (Global) | 3 | 72.84 | 0.33 | 26.67 | 75.0 |
| Method 2 (Baseline) | 153 | 5.03 | 0.58 | 13.73 | 187.2 | |
| Method 3 (Proposed) | 15 | 25.43 | 0.73 | 17.40 | 140.5 | |
| Image 4 | Method 1 (Global) | 5 | 68.52 | 0.00 | 24.80 | 49.7 |
| Method 2 (Baseline) | 41 | 6.26 | 0.31 | 110.56 | 83.4 | |
| Method 3 (Proposed) | 28 | 11.63 | 0.07 | 36.89 | 74.2 |
| Image | Method | Total Detected Thermal-Anomaly Candidates | R-MC | P-MC | R-UC | Out-of- Region Detections |
|---|---|---|---|---|---|---|
| Image 1 | Method 1 (Global) | 6 | 1 | 1 | 2 | 2 |
| Method 2 (Baseline) | 80 | 2 | 17 | 19 | 42 | |
| Method 3 (Proposed) | 42 | 2 | 11 | 22 | 7 | |
| Image 2 | Method 1 (Global) | 2 | 0 | 1 | 0 | 1 |
| Method 2 (Baseline) | 150 | 2 | 12 | 67 | 69 | |
| Method 3 (Proposed) | 12 | 2 | 0 | 1 | 9 | |
| Image 3 | Method 1 (Global) | 3 | 1 | 0 | 1 | 1 |
| Method 2 (Baseline) | 153 | 3 | 14 | 46 | 90 | |
| Method 3 (Proposed) | 15 | 3 | 1 | 0 | 11 | |
| Image 4 | Method 1 (Global) | 5 | 0 | 5 | 0 | 0 |
| Method 2 (Baseline) | 41 | 8 | 11 | 9 | 13 | |
| Method 3 (Proposed) | 28 | 7 | 8 | 11 | 2 |
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
Ustabas Kaya, G.; Aga, E.; Demircan, D.; Kaya, H. Panel-Aware Local Background Filtering for Photovoltaic Thermal Anomaly Detection and Automatic Bounding-Box Pre-Annotation. Sensors 2026, 26, 6163. https://doi.org/10.3390/s26196163
Ustabas Kaya G, Aga E, Demircan D, Kaya H. Panel-Aware Local Background Filtering for Photovoltaic Thermal Anomaly Detection and Automatic Bounding-Box Pre-Annotation. Sensors. 2026; 26(19):6163. https://doi.org/10.3390/s26196163
Chicago/Turabian StyleUstabas Kaya, Gulhan, Esra Aga, Duygu Demircan, and Hakan Kaya. 2026. "Panel-Aware Local Background Filtering for Photovoltaic Thermal Anomaly Detection and Automatic Bounding-Box Pre-Annotation" Sensors 26, no. 19: 6163. https://doi.org/10.3390/s26196163
APA StyleUstabas Kaya, G., Aga, E., Demircan, D., & Kaya, H. (2026). Panel-Aware Local Background Filtering for Photovoltaic Thermal Anomaly Detection and Automatic Bounding-Box Pre-Annotation. Sensors, 26(19), 6163. https://doi.org/10.3390/s26196163

