Solar Photovoltaic System Fault Classification via Hierarchical Deep Learning with Imbalanced Multi-Class Thermal Dataset
Hrach Ayunts, Sos S. Agaian, Artyom M. Grigoryan
Abstract
The growing global reliance on solar photovoltaic (PV) systems requires robust, automated inspection techniques to ensure reliability and efficiency. Thermal infrared (IR) imaging is widely used for detecting PV faults; however, accurate classification remains challenging due to severe class imbalance, low thermal contrast, and high inter-class visual similarity among fault types. This study proposes a hierarchical deep learning framework for thermal PV fault classification, integrating a multi-class dataset-balancing strategy to enhance representational efficiency. The proposed framework consists of two major components: (i) a hierarchical two-stage classification scheme that mitigates data imbalance and leverages limited labeled data for improved fault discrimination; and (ii) a contrast-preserving MixUp augmentation technique designed explicitly for low-contrast thermal imagery, improving minority fault class recognition and overall robustness. Comprehensive experiments were conducted on benchmark 8-class thermal PV datasets using nine deep network architectures. Dataset refactoring decisions are validated through quantitative inter-class distance analysis using multiple complementary metrics. Results demonstrate that the proposed hierarchical SlantNet model achieves the best trade-off between accuracy and computational efficiency, achieving an F1-Efficiency Index of 337.6 and processing 42,072 images per second on a GPU, over twice the efficiency of conventional approaches. Comparatively, the Swin-T Transformer attained the highest classification accuracy of 89.48% and F1 score of 80.50%, while SlantNet achieved 86.15% accuracy and 73.03% F1 score with substantially higher inference speed, highlighting its real-time potential. Ablation studies on augmentation and regularization strategies confirm that the proposed techniques significantly improve minority class detection without compromising overall performance, with detailed per-class precision, recall, and F1 analysis. The proposed framework delivers a high-accuracy, low-latency, and edge-deployable solution for automated PV inspection, facilitating seamless integration into operational PV plants for real-time fault diagnosis.