Abstract
Photovoltaic (PV) systems nowadays represent an essential component of renewable energy production. However, undetected faults often compromise their reliability, leading to significant energy losses and high maintenance costs. Existing deep learning approaches for PV fault diagnosis have achieved high accuracy, but they require massive, labeled datasets and high computational resources, which make them unsuitable for real-time applications. This paper proposes a lightweight, self-supervised hybrid learning framework for real-time PV fault diagnosis to address these limitations. First, the dataset is split into training, testing, and validation subsets. Thereafter, weighted class calculation steps are performed to overcome the issue of imbalance in the data. Then, a self-supervised pre-training phase is established to enable the encoder to produce effective internal representations prior to the implementation of a supervised fine-tuning classifier, characterized as a lightweight feed-forward network (Dense–Dropout–Dense Softmax), which will be trained using categorical cross-entropy and fault-type labels. Finally, a supervised fine-tuning stage is employed based on the pre-trained hybrid CNN–transformer encoder to perform PV fault classification. The experimental results indicate that the proposed approach outperforms existing models by achieving an overall accuracy of 99.8%, a recall of 99.6%, and an outstanding specificity of 100%. The confusion matrix demonstrates that classification is excellent on all operating types. Runtime analysis indicates that the model processes each sample in 2.78 ms and requires 0.07 MB to store weights of 19,429 parameters, confirming its suitability for real-time deployment. These findings highlight that using a hybrid CNN–Transformer encoder with self-supervised learning can improve fault detection and classification performance while significantly reducing inference time, making it an effective and efficient solution for intelligent PV system monitoring.
1. Introduction
The rapid development of cities and megacities has led to important advancements in power grids, encompassing the extensive incorporation of renewable energy. The photovoltaic (PV) system is currently considered the primary renewable energy system, having become widely used due to its sustainability and minimal ecological effect [1]. As the use of PV systems becomes widespread and integrated with the power grid, it is becoming essential to ensure their reliability. Faults in PV plants, inverters, or other power-electronic parts can lead to a decline in efficiency. Enhancing PV systems’ efficiency and lifespan requires stringent quality oversight, with particular emphasis on detecting production flaws that may negatively affect performance and dependability [2]. Thus, building a fault detection model that is directly connected to control strategies can help conserve performance and extend the system’s lifespan. Faults in PV systems can be classified by their temporal features into three primary categories [3]: intermittent, sudden, or incipient faults. Temporary or intermittent defects denote issues that resolve or fluctuate over time, such as partial shade or environmental stressors, such as dust or pollution. Sudden faults denote instantaneous failures typically resulting from damage to the photovoltaic array, including line-to-line or line-to-ground short circuits, junction box malfunctions, connector disconnections, open-circuit faults, and hot spots. Incipient faults are regarded as the hardest and most challenging failures due to their minimal amplitude levels and the gradual dynamics they exhibit. Such a fault should be detected in its first stage, or it will produce a progressive deterioration of the PV system, resulting in significant malfunctions. Various errors may arise on both the DC and AC sides. Incipient flaws on the DC side, including PV modules and DC/DC converters, encompass defects in PV modules, such as the yellowing and browning of solar cells, delamination, bubbles, fractures, gaps, and imperfections in the anti-reflective coating. AC-side problems (inverter and grid side) encompass insulated gate bipolar transistor malfunctions, wire deterioration, aging, islanding, and thermal overload [4].
Traditional fault detection techniques, especially manual inspection and rule-based algorithms, frequently face challenges in achieving the scalability necessary for evaluating high-resolution, large-scale datasets. Recently, technological development, especially in artificial intelligence (AI), has led to many techniques that can be used for detecting and identifying faults in PV systems. Machine learning (ML), a subset of AI, has been widely used recently in detecting and classifying faults within PV systems. The authors of [5] investigated the feasibility of utilizing infrared photographs of solar modules for identifying flaws in photovoltaic panels via deep learning (DL), an important improvement in boosting the effectiveness and eco-friendliness of solar energy systems. For this investigation, a dataset comprising 20,000 infrared solar module images was used, encompassing 12 categories such as cell, cell-multi, and vegetation. The methodology utilized the EfficientNet-B0model as a benchmark. The authors in [6] described a two-step methodology for building a dependable PV system for detection based on random forest classifiers (RFCs). Initially, they derived the five unidentified parameters of the one-diode model by mixing the current–voltage translation method to forecast the reference curve and using an updated gray wolf optimization algorithm. Then, they simulated the PV system to ascertain maximum power point coordinates and developed operational databases via co-simulations in PSIM/MATLAB. They developed two RFCs: one for fault detection (a binary classifier) and another for fault diagnosis (a multiclass classifier). The research in [7] proposed a hybrid deep learning (DL) model that integrated various architectures as an innovative solution for real-time automatic fault detection and classification of photovoltaic systems. This study utilized the wavelet packet transform as a data preprocessing method to process the collected PV voltage signal, which was subsequently used as an input for integrated deep learning architectures comprising the equilibrium optimizer algorithm (EOA) and long short-term memory techniques. The integrated DL architectures autonomously extracted fault features from the preprocessed data without necessitating prior knowledge, thereby circumventing the conventional limitations of manual feature extraction and the manual selection of optimal features from the extracted fault features. These advantageous attributes were expected to enhance the fault detection and classification efficacy of the suggested deep learning model with increased precision. The authors in [8] presented a fault detection method for photovoltaic (PV) systems utilizing artificial neural networks (ANN). The approach identifies problems as short-circuited modules and unconnected strings. The innovative aspect of this research was its adaptability, utilizing a long-term dataset for the training and validation phases of the ANN while also analyzing scenarios involving datasets tainted by random noise. The method was rendered appropriate for any photovoltaic power plant and did not necessitate extensive datasets from existing systems or the installation of new sensors. The proposed system included two distinct algorithms for photovoltaic fault detection: a multilayer perceptron and a probabilistic neural network.
However, PV fault diagnosis and detection currently face many persistent challenges. The traditional threshold- and rule-based techniques fail in handling the complex variability in PV operating conditions, which can lead to inaccurate detection. The use of modern and advanced DL techniques can enhance the detection accuracy, but they are highly dependent on large labeled datasets, which may be difficult to provide and can miss some rare or emerging fault types—creating severe class imbalance. Additionally, the models that were trained on a specific PV plant often perform badly in other plants, climates, hardware setups, or environmental conditions, which makes them less useful in the real world. Furthermore, many advanced DL architectures are very computationally heavy, making them unsuitable for real-time or edge-based deployment. These limitations highlight the need for scalable, generalizable, and computationally efficient PV fault-detection solutions that can work with the available labeled datasets, even if they are very small. Thus, the objectives of this study can be summarized as follows:
- Create a lightweight hybrid Convolutional Neural Network (CNN)–Transformer encoder that catches both local and global fault-related patterns while conserving low computational cost.
- Propose an edge-optimized classifier that allows real-time fault detection while reducing latency and resource usage.
- Reduce the heavy reliance on large labeled datasets by creating a self-supervised learning approach able to extract essential representations from unlabeled PV operational data.
- Address class imbalance and infrequent fault samples by proposing feature extraction techniques that remain robust with the underrepresentation of minority classes.
- Apply model pruning and quantization to minimize memory usage and computational overhead, guaranteeing the feasibility of deployment on edge devices.
- Test the approach on large-scale operational PV datasets to show the improvements in accuracy, inference speed, and validity under class imbalance.
2. Related Work
PV systems are essential to the global transition to renewable energy. However, faults like dislocations and micro-cracks can significantly diminish their performance. Integrating AI-based models within power electronic systems allows accurate real-time monitoring and control. In PV applications, AI models can assist in detecting and identifying faults at two levels: plant level and inverter level. Thus, they allow a rapid response to the fault. At the PV plant level, an AI model can examine PV panel performance and meteorological conditions to detect anomalies, including shading, soiling, or degradation. Based on the type of fault detected, the system can implement adaptive control actions, including derating, MPPT (Maximum Power Point Tracking) adjustment, and optimized energy dispatch, ensuring consistent energy yield and overall system reliability. At the converter device level, the AI model examines power electronic gadgets such as inverters and DC-DC converters. Fast fault detection and classification at these devices’ level permits fast protective actions, thermal management, and predictive maintenance scheduling. It can avoid damage and extend the operational lifetime of critical devices. This paper focuses on examining fault detection and classification at the PV plant and converter levels. Recently, many researchers have been working on building robust and accurate fault detection systems using ML and DL techniques.
Research and development of automated fault monitoring in solar PV systems is essential for optimal energy generation. The authors in [9] investigated ML methodologies for the autonomous identification and categorization of faults induced by partial shadowing and dirt accumulation in solar modules, addressing the industry’s need for creative solutions to improve energy output and minimize maintenance expenses. Their suggested defect detection methodologies were based on many methods, including Support Vector Machine, ANN, Random Forest, Decision Tree, and Logistic Regression. The authors examined data obtained from two realistic solar systems, each possessing unique module attributes and power specifications. Data were collected for systems devoid of defects, with flaws simulated through partial shading and dirt deposition. Essential data, encompassing voltage, current, ambient temperature, and irradiance, were documented to evaluate and categorize various types of defects. The authors in [10] assessed and contrasted various machine learning and ensemble learning models for fault identification in PV systems, examining their efficacy across diverse fault categories and operational conditions. A total of 2.2 million measurements from a lab-scale photovoltaic system, representing seven fault types, such as inverter failures, partial shading, and sensor malfunctions, were employed for training and validation. Model performance was assessed under MPPT and LPPT scenarios to evaluate adaptability. The authors in [11] proposed a machine learning model-based PV fault detection method for a battery-integrated system that feeds a water pumping system. The system is regulated by a semi-Pilot cell-based fractional open circuit voltage approach and a traditional voltage control method. The water pumping system was simulated with MATLAB, interfaced with RT-LAB software to retrieve real-time data from the OPAL-RT Controller (OP4510) via the Software-in-Loop (SiL) method. All potential faults related to a stand-alone solar PV-battery system were compiled to implement the ML model. The data was pre-processed, and the distribution plots were analyzed to elucidate the statistical characteristics of the data. The processed data were employed to train a logistic regression (LR) model and an ANN model to determine the presence of a fault or non-fault state (binary classification) and subsequently classify the specific fault instance that had occurred (multi-class classification). Nassreddine et al. in [12] presented a prospective approach for fault detection and classification using ML techniques. The study used ML techniques to recognize and categorize standard operations and seven distinct fault types across two operational modes: maximum power point tracking and intermediate power point tracking. Four machine learning algorithms and ensemble methods—decision trees, k-nearest neighbors, random forest, and extreme gradient boosting—were utilized, accompanied by hyperparameter optimization and cross-validation to ascertain the optimal configuration. The study was based on supervised classical ML and ensemble learning models with less emphasis on capturing temporal patterns across sequences.
In [13], an efficient DL approach was introduced for the classification of crack types in photovoltaic cells, including microcracks and deep cracks. The orientation of microcracks was critical and categorized accordingly. The subsequent step involved conducting a power analysis predicated on the severity of the cracks. In instances of substantial cracks, it was noted that the output power efficiency correlated directly with the size of the fissures. Four DL models—U-Net, LinkNet, FPN, and Attention U-Net—were trained, examined, and compared for crack identification utilizing an online public dataset of electroluminescence images. The research in [14] introduced ResGRU, a hybrid model leveraging ResNet and BiGRU for more precise fault diagnosis. A squeeze-and-excitation (SE) module was integrated to assess the most important features while removing less relevant information, producing better overall performance. Additionally, a center loss function was employed as a supplementary loss to enhance the separation between different classes and tighten the clustering within each class, improving the model’s ability to discriminate between faults. This approach allowed for automatic extraction of fault characteristics from I-V curves and enabled accurate identification of individual faults, partial shading, and combined faults under varying levels of dust accumulation, supporting the creation of more effective cleaning schedules.
Conventional techniques are inadequate for identifying overlapping or concurrent problems, wherein numerous errors arise simultaneously. The authors in [15] introduced an innovative DL approach employing vision transformers (ViTs) for the multi-label classification of photovoltaic problems. In contrast to convolutional neural networks (CNNs), which are effective for discrete faults but struggle with overlapping ones, ViTs have superior performance in identifying concurrent errors owing to their self-attention mechanism. The proposed approach captured long-range dependencies in images, enabling ViTs to surpass CNNs in intricate fault situations. The authors in [16] presented S3Former. It was engineered to delineate solar panels from aerial imagery and furnish size and location data essential for assessing the influence of such installations on the grid. Despite the prevalence of computer vision in these applications, the identification of solar panels proved difficult due to fluctuating weather conditions, diverse roof characteristics, variations in ground sampling distance (GSD), and the absence of suitable initialization weights for optimized training. S3Former employs a masked attention mask transformer that integrates a self-supervised learning pretrained backbone to address these challenges. The model utilized both low-level and high-level features derived from the backbone and integrated an instance query mechanism into the Transformer architecture to improve the localization of solar PV plants. Additionally, a self-supervised learning (SSL) phase (pretext task) was implemented to refine the initialization weights of the S3Former backbone, resulting in a significant enhancement of the outcomes.
2.1. Research Gaps
Despite significant development in ML, ensemble methods, and DL architectures for PV fault detection, several unresolved issues persist. Most existing approaches rely heavily on large labeled datasets gathered from controlled laboratory settings or specific PV plants. Furthermore, it is hard to generalize a model to be used for different geographic areas, module technologies, and inverter configurations. Also, many models are time-consuming and not suitable for application to real PV operational data [9,10,11,12]. Additionally, many models suffer from imbalanced datasets, where rare or new faults are poorly represented. Thus, classifiers become biased and fail in detecting minority faults. Advanced DL models, including U-Net variants, ResGRU, LinkNet [13,14], Attention U-Net, and image-based ViTs [15], have been widely used for fault detection in PV systems. Such techniques achieve high accuracy, but they require substantial computational resources, making them unsuitable for real-time applications. In addition, most studies only consider binary detection for faults without taking all fault types into consideration. They employ preprocessed features that are extremely difficult to generate in real-time raw operational measurements. These limitations illustrate the need for a fault diagnosis approach that is generalizable, requires fewer computational resources, and is not highly dependent on labeled datasets. Many recent studies have introduced SSL and transformer-based architectures for PV-related tasks that focus primarily on improving initialization weights or enhancing segmentation, rather than learning general-purpose representations from operational PV data. Thus, the goal in SSL of minimizing the reliance on labeled data and enhancing robustness in real-world variability is still largely unexploited.
2.2. Motivations of the Study
Based on the above research gaps, the motivations of this study can be outlined as follows:
- Create a scalable, generalizable, and computationally efficient PV fault detection and classification framework that addresses the limitations of existing PV fault detection models.
- Extract robust and discriminative features directly from unlabeled operational PV data using a lightweight hybrid CNN–Transformer encoder integrated with self-supervised representation learning.
- Design a lightweight architecture to guarantee real-time inference capability.
- Apply model pruning and quantization to minimize computational overhead, memory usage, and inference latency.
- Reduce the dependence on large labeled datasets, supporting scalable and cost-effective PV system diagnostics.
3. Methods and Materials
3.1. Dataset Description
The dataset proposed by Lazzaretti et al. in [17] is employed in this study to test the performance of the proposed approach. In this dataset, the data was gathered based on two strings, each one being composed of eight C6SU-330P PV modules (labeled PV1 through PV16, as illustrated in Figure 1). These strings were linked to a 5 kW grid-tied inverter (NHS Solar 5K-GDM1). Two circuit breakers and fuses were connected to these strings to ensure the safe simulation of fault conditions, as shown in Figure 1. Data were gathered at a 1 Hz sampling rate over a continuous 16-day period, from 07:30 to 17:00. The recording samples expressed irradiance variations ranging from 100 to 1000 W/m2 and temperature changes between −5 °C and 85 °C, excluding cloudy or wet days. The dataset includes electrical parameters representing each fault condition, with the main characteristics abbreviated as follows:
Figure 1.
Schematic diagram of the PV system under study. The PV includes the two PV strings (String 1 and String 2), and all photovoltaic modules are sequentially indicated from PV1 to PV16. T refers to the terminals connecting the PV modules in series, while DS denotes the DC disconnect switch used to isolate each string.
- Vdc1, Vdc2: Voltage for each string.
- Idc1, Idc2: Current for each conductor.
- Irr: Irradiance.
- pvt: Photovoltaic Module Temperature.
- fnv: Designation of fault.
The dataset is composed of two parts: one generated from simulated fault scenarios and the other collected from real-world measurements. During training, only the simulated data, generated using a validated PV system model in MATLAB/Simulink, was employed. Many fault types, such as short circuits (SC), open circuits (OC), degradation (DE), and shading (SH), were simulated under different values of irradiance and temperature to closely imitate real operating behavior.
Table 1 shows the fault distribution in the dataset. The dataset encompasses five classes representing different operating conditions of the PV system. The distribution of samples shows high imbalance, with Normal Operation (NO) comprising 309,253 samples and SH comprising 184,311 samples. These two operation types dominate the other fault types: SC with 5999 samples and OC with 6024 samples.
Table 1.
Class distribution and fault types.
The adopted fault categories were selected as they represent the most common and practical fault conditions confronted in grid-connected PV systems. Each fault type used in this paper is defined based on its physical manifestation in a grid-connected PV system: SC faults require an unintended low-resistance path producing a sudden voltage drop and current surge; OC faults interrupt electrical continuity, leading to near-zero current; DE represents gradual performance loss due to aging or material deterioration, manifested as reduced voltage or current without abrupt transients; and SH corresponds to partial or full obstruction of solar irradiance, producing characteristic current mismatches while connections remain intact. These fault types are well documented in many previous studies and were chosen to reflect the cases when PV systems actually fail in the real world.
The highly imbalanced class distribution discloses real-world PV system behavior. Indeed, PV systems spend the vast majority of their lifetime under NO conditions, while severe electrical faults such as SC and OC occur rarely and usually for short durations. On the other hand, SH occurs frequently in real PV installations and can endure for long periods, which naturally leads to more samples.
3.2. Proposed Approach
Figure 2 depicts the proposed methodology for PV fault detection and classification. This approach consists of five main steps: data acquisition and preprocessing, data preparation, self-supervised pretext training, and supervised fine-tuning for multi-class fault classification, followed by model evaluation and optimization (See Algorithm 1).
| Algorithm 1. Proposed Approach for Photovoltaic (PV) Fault Diagnosis Using Self-Supervised Hybrid CNN–Transformer |
Start
|
Figure 2.
Flowchart illustrating the end-to-end workflow of the proposed self-supervised hybrid CNN–Transformer approach for PV fault diagnosis, representing all steps from data acquisition and preprocessing to model training, fine-tuning, and evaluation.
3.2.1. Data Preprocessing
Let D be the dataset collected from the PV plant described in Figure 1:
where represents the F features, encompasses the fault type, and N is the number of samples.
Before applying an ML or DL model, the data (features represented by ) go through a preprocessing pipeline to render them appropriate for these models. This pipeline may include data cleaning to address potential anomalies, feature selection for essential parameters (voltage, current, temperature, and irradiation), and normalization to guarantee consistency across features. Normalization was computed in this paper based on min-max scaling, as illustrated in Equation (2) [18]:
and were calculated from the training set to prevent test data leakage and to standardize the range of feature values. This study selected the Min-Max scaler for its ability to preserve the original distribution shape and normalize all features to the interval [0, 1], thereby enhancing gradient flow for the Adam optimizer and ensuring stability in deep architectures like convolutional neural networks and transformers. After the application of the scaler, the normalized feature set is restructured to conform to the one-dimensional convolutional (Conv1D) layer. input format [19].
3.2.2. Dataset Preparation
As illustrated in Table 1, the dataset used in this study shows high class imbalance. This will be the case in all datasets related to faults in PV systems, as some faults rarely occur. Such an imbalanced situation presents a challenge for conventional classifiers, as it may lead to biased results toward the majority class. Traditionally, oversampling techniques are used to resolve class imbalance issues, including Synthetic Minority Over-sampling (SMOTE) and Adaptive Synthetic Sampling (ADASYN), which present many drawbacks [20]:
- The process of creating synthetic samples often fails to accurately reflect real-world situations, particularly in nonlinear scenarios.
- This approach may lead to overfitting results because of the presence of duplicate or synthetic minority samples.
- The decision boundary becomes less accurate, particularly when the minority class is closely aligned with the majority class in the feature space.
- The complexity of the model increases, as the oversampling technique may increase the volume of data.
Based on these limitations, oversampling is not used in this paper. However, a class-weighting strategy has been adopted. This technique maintains the original data distribution while guaranteeing that minority classes contribute more strongly to the loss function during training. Class weights are introduced in the loss function to balance the contribution from each class during training [21]. Let D from Equation (1) be the dataset and represent the faults class from C possible classes. Let represent the number of samples of class c in the dataset. The dataset is imbalanced if
where and represent, respectively, the maximum and minimum class sizes across all classes. The inequality denotes the extent of imbalance severity: large ratios indicate significant imbalance.
The standard cross-entropy loss is given by
where evaluates the probability assigned by the model, based on the parameters θ, to the true class of the ith sample. Under an imbalance condition, the model will produce biased outcomes favoring the majority classes using Equation (4). Consequently, the classifier model’s efficacy in identifying minority classes will diminish. To address this issue, weighted cross-entropy will be employed [22]:
where represents the weight associated with the class of sample i. Class weights are calculated using the sklearn.utils.class_weight.compute_class_weight function, which assigns higher weights to minority classes and lower weights to majority classes [23]:
where N is the total number of samples in the dataset, C is the number of classes, and Nc represents the number of samples in class c.
By using these weights during the fine-tuning of the hybrid CNN–Transformer classifier, the model will perform accurately across all fault types.
In this study, the dataset is divided into three main parts:
- The training set represents 70% of all the data.
- The validation set encompasses 15% of the data.
- The test set includes 15% of the data.
The division process is performed using a two-stage stratified splitting strategy to conserve the original class distribution across all subsets. First, 70% of the data went to the training set, and the other 30% was kept as a temporary set. After that, the temporary set was split equally into validation (15% of the total) and test (15% of the total) subsets. This stratified approach ensures that all fault classes, even the minority ones, are fairly represented [24]. Thus, it assists in providing fair model evaluation and reduces bias due to class imbalance. Class weights are only employed in this study during the training step to resolve the issue caused by the imbalanced dataset. Validation and testing are performed without weighting to guarantee that performance is measured fairly [25].
Figure 3 represents the internal structure of the proposed method that describes the main parts of Steps 3 and 4 of Algorithm 1. The training process uses an encoder, which fulfills two functions through its basic reconstruction decoder operation during self-supervised pre-training and its classification head operation for PV fault detection during supervised fine-tuning.
Figure 3.
Internal architecture of the proposed hybrid CNN–Transformer model that is used during both the self-supervised pre-training phase (Step 3) and the supervised fine-tuning phase (Step 4) of Algorithm 1. During pre-training, a lightweight decoder is attached for reconstruction, while during fine-tuning, a classification head is employed for fault detection.
3.2.3. Self-Supervised (SSL) Training and Hybrid CNN Transformer Encoder
Following the data partitioning and weighted class calculation, a self-supervised pre-training phase is established to enable the encoder to produce effective internal representations prior to the implementation of a supervised fine-tuning classifier, characterized as a lightweight feed-forward network (Dense–Dropout–Dense Softmax), which will be trained using categorical cross-entropy and fault-type labels. The main objective of using a pre-training step is to teach the Hybrid CNN–Transformer Encoder to recognize the main structure and temporal dependencies within the collected PV data without relying on the fault-type class labels. This step is composed of four main substeps. In these steps, a masking process is applied first, followed by an encoder–decoder that is trained to reconstruct the original dataset. As the model must recover the missing values based only on the unmasked parts of each sample, the encoder is forced to learn and understand the temporal dependencies between features. Thus, the encoder is able to learn useful representations, such as the internal correlations of the data, without relying on labels. These learned representations provide a strong start for the supervised fine-tuning stage, making the subsequent classification faster and more stable [26].
First, using the mask_features function, the corrupted samples, , was created. For each training sample (), the function randomly masks 15% of the features based on a fixed MASKING_RATE. This step pushes the encoder to learn how to deduce the missing data from the available and unmasked samples. The corrupted input, , is input into the Hybrid_Encoder, which is composed of 1D CNN layers for extracting short-range temporal patterns based on the masked input. The other Transformer blocks use these features to capture long-range dependencies across the entire dataset (D). The output of the encoder, called , encompasses the summarized information extracted from the dataset, which includes the dependencies, relationships, and temporal or structural context within the data.
Z represents the input of a lightweight decoder that is created using the create_pretext_model function. It is composed of two main layers: a Dense layer and a Reshape layer. In the Dense layer, the compressed vector Z is transformed back to its original number of features . The Reshape layer converts this vector back into the original sample structure, producing an output called .
The model’s weights for the encoder and the decoder are computed based on the difference between the output and the true input X. During pre-training, a part of the input features, called , is intentionally masked, and the model is tasked with predicting these missing values. Even the network receives as input, the loss is always computed against the complete vector X. The model is optimized based on the Mean Squared Error (MSE) as follows [27]:
where represents the true and full values of the feature vector and is the reconstructed feature vector. N represents the number of training samples. The notation represents the loss function associated with the pretext task. The pretext task encompasses the self-supervised learning stage that is applied before supervised training, in which the model learns how to regenerate the original input from its masked version. This stage allows the encoder to capture useful and generalizable feature representations without relying on class labels. By decreasing this loss function, the encoder will learn a complete and descriptive representation of Z that permits the decoder to work perfectly with missing and unlabeled data, even with 15% of features masked.
3.2.4. Supervised Fine-Tuning for Fault Classification
The supervised fine-tuning stage utilizes the pre-trained Hybrid CNN–Transformer encoder to perform PV fault classification. After self-supervised pre-training, the encoder has already learned generalizable representations of temporal patterns and feature relationships in the PV data. During fine-tuning, these representations are adapted to fault-specific distinctions using the labeled dataset [28]. First, all encoder parameters are unfrozen, allowing the pre-trained weights (Wpre) from the self-supervised stage to be updated during fine-tuning. Wpre represents the weights of the Hybrid CNN–Transformer encoder after the self-supervised pre-training step. This controlled adaptation behaves as a domain adaptation tool. It allows the model to adapt to the target PV fault classification task while maintaining the foundational patterns captured in pre-training, avoiding the loss of previously learned knowledge. Subsequently, a lightweight classification head is added to the encoder output, which is trained on the labeled fault data to perform class-discriminative prediction.
where z represents the feature vector extracted from an input X. The classification head is composed of one hidden layer based on the Dense layer, followed by a dropout layer, and ends with a final Dense layer based on softmax activation. The predicted class probability is computed using [29]
where denote the weights and biases of the output and hidden layers, respectively.
The training process for fine-tuning occurs on the labeled dataset (Xtrain, ytrain) through the optimization of weighted categorical cross-entropy loss, which handles class imbalances. The loss function for sample i in class among N possible classes is defined as [30]
where
- represents the ground-truth one-hot encoded label;
- represents the predicted probability for class j;
- represents the balanced class weight that corresponds to class .
The Adam optimizer performs parameter updates for both the encoder and classification head using a learning rate of FINE_TUNE_LR = 10−4:
where η represents the learning rate value, represents the current weights of the model (encoder and classification head) before the update, represents the updated weights after applying the gradient step, and is the gradient of the loss function L with respect to the weights W. The model achieves evaluation through its performance on accuracy, precision, recall, and weighted F1-score metrics. The weighted F1-score calculation uses the following formula [31]:
where represents the F1-score of class c and represents the number of samples in class c. The training process benefits from two regularization methods, which help prevent overfitting and improve stability [32]:
- The training process stops when validation loss stops improving through early stopping.
- The learning rate decreases when validation loss shows no improvement according to ReduceLROnPlateau.
3.2.5. Model Evaluation
The proposed approach is evaluated based on the confusion matrix (CM), accuracy, precision, recall and F1 score. Table 2 shows an illustration of the CM for the multi-classification problem [12].
Table 2.
Confusion matrix for multi-class classification.
TPi denotes the true positive for Class i; Aij indicates the scenario where Actual Class i and Predicted Class j intersect. FNi represents the false negative related to Class i. It is given by
while FPi refers to the false positive for Class i:
Table 3 illustrates the performance metrics.
Table 3.
Performance metrics.
4. Results and Discussions
In this section, the results of applying the proposed approach to the dataset described in Section 3.1 will be described and discussed. The experiment was conducted on a computer with a core i7-13700 on Google Colab using Python 3.12.12 and TensorFlow 2.19.0.
4.1. Results
Figure 4 shows the loss function of the proposed hybrid CNN–Transformer model. This figure demonstrates that the proposed approach presents stable and well-behaved training dynamics. The losses for both training and validation decline as the learning process proceeds. This behavior demonstrates that the model can accurately capture the underlying structure of the PV operational data. The steep decline illustrated at the beginning shows that the self-supervised pre-training stage permits the network to start the training with useful feature patterns already in place. In addition, training and validation loss trajectories are very similar, with only a small deviation between the two curves. This deviation demonstrates that the model generalizes well, and no indications of overfitting are observed. Indeed, the regularization methods and design choices, including the hybrid encoder structure, help the model learn representations to stay robust when tested on new samples. Moreover, the validation loss curve stays smooth without sudden changes, which demonstrates that the optimization process is stable and the training strategy used is appropriate.
Figure 4.
Loss function during training and validation steps.
The accuracy curves in Figure 5 show that both training and validation accuracy become better and better over the training epochs. This means that the model learns features well and converges steadily. During most of the training process, the validation accuracy is still a little higher than the training accuracy. This small difference proves that the model generalizes well and shows no sign of overfitting. The model’s ability to distinguish and detect patterns in the dataset and then quickly improve its performance is illustrated by the quick rise in accuracy during the first epochs and the smooth asymptotic plateau that follows. In addition, the two curves are very close and reach 99% accuracy. This high value demonstrates that the learning process is adequate and that the architecture and training strategy used are suitable for reliable and robust fault classification.
Figure 5.
Accuracy curve for training and validation steps.
The semi-supervised analysis, illustrated in Figure 6, reached an average reconstruction mean square error of 0.0021 and a standard deviation of 0.0022, indicating that the model successfully catches the underlying data patterns. The slightly higher variability specifies the presence of samples that are hard to reconstruct. These samples may be related to outliers or rare data instances. In addition, the reconstruction error distribution provided by the self-learning model shows a clear distinction between normal and faulty classes. Most samples reveal low reconstruction errors, demonstrating that the model effectively distinguishes the NO patterns from faults in a fully self-supervised manner. This figure confirms that the proposed approach is appropriate for fault detection in situations where labeled fault data are unavailable or limited.
Figure 6.
Distribution of reconstruction error (mean squared error per sample) obtained from the masked pretext training phase.
The CM illustrated in Table 4 shows the rate of correctly and incorrectly classified samples for each of the five PV system operating conditions: Normal Operation (0), Short Circuit (1), Open Circuit (2), Degradation (3), and Shadowing (4). This CM shows high true positive rates. The proposed approach achieves a near-perfect classification for all classes, as shown by the high values on the main diagonal. Specifically, Short Circuit (1) and Degradation (3) are classified with an accuracy of 1.0000 (100%). Normal Operation (0), Open Circuit (2), and Shadowing (4) also have high true positive rates of 0.9971, 0.9949, and 0.9966, respectively. These values prove that the extracted features and the classification method work effectively in detecting the unique features of each type of fault and operation condition. The off-diagonal elements in the CM represent the misclassified ratio of the proposed approach.
Table 4.
Normalized confusion matrix for the proposed approach.
This table reveals minor misclassifications that show small confusion between the ‘OC’ and ‘DE’ classes, as well as between ‘NO’ and ‘SH’. Even though the occurrence of these misclassifications is small (0.0045 for OC and DE, 0.0016 for NO and SH), they may be produced due to high similarities in the patterns related to these operation modes. Indeed, both OC and DE faults show reduced current levels, while subtle changes in irradiance during SH can sometimes be similar to NO. More examination of the encoder’s feature representations or the integration of temporal and ensemble strategies could enhance the model and allow it to better distinguish between these fault patterns.
Figure 7 shows the self-attention map learned by the transformer encoder averaged over all attention heads and blocks. In this representation, the rows represent the query time steps, while the columns illustrate the key time steps. Each matrix element specifies the attention weight assigned between temporal positions. Higher attention values indicate stronger temporal dependencies, indicating how each time step gives more importance to certain parts of the input sequence than others. As shown in Figure 8, time step 1 receives the highest attention weights, with peak values around 0.85, showing that this temporal segment is the most informative for representing learning. However, time step 2 receives lower attention from earlier steps, with values around 0.01, suggesting its limited relevance in the learned temporal dependencies. Moderate attention values in the range of 0.20–0.35 are given to the interactions between time steps 0 and 2, reflecting secondary temporal relationships. Overall, more than 60% of the total attention mass is concentrated on the interactions of time step 1, proving that the self-supervised transformer encoder prioritizes specific temporal regions rather than uniformly processing the entire sequence. The observed attention patterns prove the model’s ability to separately capture relevant temporal relationships during self-supervised pretraining, without dependence on fault types, supporting effective representation learning for subsequent PV fault classification.
Figure 7.
Transformer attention map (temporal importance).
Figure 8.
CNN saliency map showing the relative importance of input features for PV fault classification.
The model saliency map in Figure 8 illustrates a concentration of importance on a small subset of input features. Specifically, feature 2 (idc1) reveals the highest saliency value with a peak value of 4.2 × 10−4, followed by feature 3 (idc2) with a saliency value of 2.7 × 10−4. These two features receive around 70–75% of the total saliency magnitude, showing that the classifier relies mainly on these two features. Indeed, the DC current (idc) provides a direct measure of the PV module’s operational state and reveals high sensitivity to fault conditions. Thereby, features related to DC current can be considered to be critical features for fault classification by the model. In addition, the remaining features reach saliency values of less than 6 × 10−5, contributing marginally to the final prediction. This concentration of importance in a few features indicates that the self-learned representations focus on the most relevant inputs, supporting more robust PV fault classification.
4.2. Statistical Validation Discussion
The statistical validation results of the proposed method are illustrated in Table 5, confirming the stability and robustness of the proposed lightweight PV fault detection model. Indeed, the McNemar test obtained a p-value of 0.9788, indicating that the classifier’s error patterns do not show differences, thus demonstrating that the self-learning method maintains prediction stability. The paired t-test result provides a p-value of 0.9968, demonstrating that there is no statistically significant difference between the mean prediction confidence, proving that the encoder produces consistent global confidence values for all test samples, even when the classes are unbalanced. The Wilcoxon signed-rank test produces a statistically significant (p < 0.001) result, showing that the prediction confidence values follow different distribution patterns. This behavior can be directly attributed to minority PV fault classes that benefit more from the self-supervised pretext training and class-weighted fine-tuning. The masking-based representation learning improves discriminative feature extraction for underrepresented fault patterns, leading to systematic confidence gains for minority classes without altering overall error rates. These values demonstrate that the proposed self-learning framework maintains system-wide performance stability as it enhances minority fault detection capabilities, which are essential in PV monitoring systems for handling real-world data with unbalanced distributions.
Table 5.
Statistical validation of the proposed lightweight self-learning PV fault detection approach.
4.3. Comparison
Table 6 compares the proposed method to other systems based on their accuracy, precision, recall, and F1 score. All the prior systems cited in this table were tested on the same dataset (Lazzaretti datasets described in [17]). The table shows that the SVM model outperforms classical ML models by achieving a high performance with an accuracy of 94.59%, a recall of 0.946, and a specificity of 0.967. However, its precision remains low compared to advanced models, indicating some false positives. The KNN model reaches a lower accuracy of 89.96%, with a lower precision of 0.671, reflecting low discrimination capability. The DT model achieves the weakest results, showing limited robustness compared to other models. The ANN model outperforms other classical models by reaching accuracy and recall values of 0.9264 and a specificity of 0.923. The proposed lightweight self-supervised hybrid learning method works better than all the other techniques. The models proposed in [17,33,34] reach high scores for the evaluation metrics, proving that they can detect and classify PV faults. The proposed method has a better recall (0.9961 vs. 0.9940 and 0.9264) and overall accuracy (0.9988 vs. 0.9982, 0.9520, 0.994, 0.9764 and 0.9264), even though the hybrid deep learning model has a higher precision value. Therefore, the suggested method can identify more faults, which constitutes an important part of monitoring a PV system in real time. The proposed model and the hybrid deep learning model had perfect specificity (1.0000), which means they can be trusted to correctly identify non-fault conditions and avoid unnecessary maintenance actions. This table also shows a comparison with the TinyViT model, a compact vision transformer model designed for efficiency based on fewer parameters and lower computational cost than standard ViTs. Regardless of its small size, it can catch influential features but may produce reduced accuracy on complex classification tasks. The TinyViT is trained using the same pipeline as the proposed method and based on the class weight score technique to handle the imbalanced classes issue. The TinyVit model reaches lower performance compared to the proposed approach, with an overall accuracy of 0.96 and a precision of 0.81. This difference in accuracy and precision can be explained by the fact that the TinyViT is a lightweight transformer with significantly fewer parameters and reduced model capacity. Thus, it fails in catching the complexity and subtle patterns of PV fault signals, as the proposed self-supervised model produces lower accuracy in distinguishing fault types.
Table 6.
Comparison between proposed approach and hybrid deep learning model.
4.4. Discussion
The proposed approach demonstrates outstanding performance in detecting and classifying PV faults. It exceeds existing models in specific metrics. The proposed method reaches an overall accuracy of 0.9988, higher than the Hybrid Deep Learning (0.9982) and OVR Technique (0.9948) methods. Additionally, the proposed model achieves better recall (0.9961), which shows that the system is better at detecting and identifying real problems and reducing false negatives. The precision is equal to 0.9935, slightly lower than that of hybrid deep learning (0.9970). However, this small difference is tolerable, as it makes the classifier more sensitive by optimizing for higher recall. The proposed model achieves a specificity of 1.0000, which is in line with the hybrid deep learning approach. This value demonstrates that the proposed approach can reliably distinguish between normal and faulty operating conditions. In conclusion, the results prove that the proposed method is very accurate and sensitive in detecting and classifying PV faults.
In addition, the proposed method is suitable for real-time applications. The training pipeline consisted of two main stages, including self-supervised pre-training and supervised fine-tuning. The first stage required 10 epochs for masked feature prediction; thus, it needed around 22 min to complete, while each epoch lasted 134 s. The second stage, which is based on 50 epochs for classification, necessitates 2.07 h to finish, while each epoch takes 147 s to complete (compared to 265 s, the average time for an epoch in the TinyVit model). The entire training process, which combined pre-training with fine-tuning, required 2.34 h to finish (compared to around 3.5 h for the TinyVit model). However, the model evaluation process took 17.9 s to deliver the results of 6440 test samples. Thus, the average inference time for one sample is computed using
Therefore, the proposed hybrid CNN–Transformer architecture demonstrates both high accuracy and fast computation speed, as it requires only 2.78 milliseconds to output the classification of one sample. The proposed approach shows an efficient memory footprint. For a total of 19,429 parameters, it requires a storage memory of 0.07 MB to store the model weights. These values demonstrate that the proposed approach is lightweight compared to other deep learning models. Additionally, the model required around 2361.51 MB of RAM during the execution stage. This value represents the extra memory required during data loading, preprocessing, and intermediate computations, particularly when working with 3-D inputs, for the CNN–Transformer encoder. These results indicate the capability of the model to balance between parameter efficiency and computational feasibility, making it suitable for deployment in resource-constrained environments, such as embedded systems or edge devices in PV monitoring setups. Thus, it is suitable for real-time fault detection systems. The proposed approach is robust to unforeseen fault conditions due to its ability to learn from normal PV system behavior through self-supervised reconstruction rather than depending simply on a labeled fault-available dataset. Therefore, unseen faults display as deviations in the learned representations and elevated reconstruction errors, allowing reliable detection and improved generalization.
5. Conclusions
Photovoltaic (PV) systems have become an essential component of sustainable energy production worldwide. Hidden flaws frequently undermine their reliability, causing substantial energy losses and high maintenance costs. In this study, a lightweight self-supervised hybrid learning framework for precise, efficient, and generalizable photovoltaic (PV) fault detection and classification was proposed. The suggested method integrated masked feature prediction, hybrid CNN–Transformer encoding, and a lightweight classification head to reliably detect five different operation modes on a PV plant. An end-to-end pipeline was designed to reduce the need for large labeled datasets and the amount of computation needed, making the model suitable for real-time edge deployment. The experimental results demonstrate that the proposed architecture outperforms existing models. The method has an overall accuracy of 0.9988, a recall of 0.9961, and a perfect specificity of 1.0000. The confusion matrix shows that the classification is almost perfect in all operating conditions, and the training curves show that the optimization is stable and its generalization is strong. Runtime analysis shows that the model processes each sample in 2.78 ms, demonstrating that it is suitable for real-time application. The proposed model required 0.07 MB for weights for 19,429 parameters, demonstrating a lightweight and memory-efficient design suitable for resource-constrained PV monitoring systems. These results demonstrate that integrating a hybrid CNN–Transformer encoder with self-supervised learning greatly improves both accuracy and speed in detecting and classifying PV faults. In addition, the attention and saliency analyses show that the proposed self-learning approach catches the main temporal relationships and emphasizes the most influential features. This combined behavior reinforces both interpretability and robustness in PV fault classification.
The proposed method shows excellent performance. However, further studies may explore the incorporation of temporal modeling techniques, such as transformer-based sequence encoders or time-series graph neural networks, to investigate the long-term PV behavior in fluctuating weather conditions. Also, testing the trained model on real edge hardware, like an NVIDIA Jetson, Raspberry Pi, or ARM microcontroller, would allow a better investigation of its real-world behavior and energy consumption. In addition, the proposed model was trained on only 16 days of laboratory simulation data, which does not represent the full range of seasonal and environmental variations affecting PV systems. As future work, a real PV fault detection dataset will be collected, covering diverse climate conditions for further testing of the proposed methodology to evaluate its robustness and generalization in real-world scenarios.
Author Contributions
Conceptualization, G.N., O.A.-K. and M.N.; methodology, G.N. and I.; software, G.N. and O.A.-K.; validation, I., M.N. and A.H.; formal analysis, G.N.; investigation, O.A.-K.; resources, G.N. and I.; data curation, M.N.; writing—original draft preparation, G.N.; writing—review and editing, O.A.-K. and A.H.; visualization, O.A.-K. and M.N.; supervision, A.H. and M.N.; project administration, A.H. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
Data is contained within the article.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| PV | photovoltaic |
| NO | normal operational |
| SC | short circuit |
| OP | Open Circuit |
| DE | Degradation |
| SH | Shadowing |
| MPP | maximum power point |
| EOA | equilibrium optimizer algorithm |
| ANN | artificial neural networks |
| CNN | Convolutional Neural Networks |
| LR | logistic regression |
| SSL | self-supervised learning |
| SMOTE | Synthetic Minority Over-sampling |
| ADASYN | Adaptive Synthetic Sampling |
| ML | Machine Learning |
| DL | Deep Learning |
| CM | Confusion Matrix |
| TP | True Positive |
| TN | True Negative |
| FP | False Positive |
| FN | False Negative |
| OVR | One-Versus-Rest |
References
- Nassreddine, G.; El Arid, A.; Nassereddine, M.; Al-Khatib, O.; Arram, A.; El Abed, A. Enhancing the Efficacy of Short-Term Prediction Models for Solar Photovoltaic Systems: An Influence Examination of Chronological and Meteorological Factors. IEEE Access 2025, 13, 66787–66808. [Google Scholar] [CrossRef] [Scilit]
- Pillai, D.S.; Rajasekar, N. A comprehensive review on protection challenges and fault diagnosis in PV systems. Renew. Sustain. Energy Rev. 2018, 91, 18–40. [Google Scholar] [CrossRef] [Scilit]
- Veerasamy, V.; Wahab, N.I.A.; Othman, M.L.; Padmanaban, S.; Sekar, K.; Ramachandran, R.; Hizam, H.; Vinayagam, A.; Islam, M.Z. LSTM Recurrent Neural Network Classifier for High Impedance Fault Detection in Solar PV Integrated Power System. IEEE Access 2021, 9, 32672–32687. [Google Scholar] [CrossRef] [Scilit]
- Mansouri, M.; Trabelsi, M.; Nounou, H.; Nounou, M. Deep Learning-Based Fault Diagnosis of Photovoltaic Systems: A Comprehensive Review and Enhancement Prospects. IEEE Access 2021, 9, 126286–126306. [Google Scholar] [CrossRef] [Scilit]
- Duranay, Z.B. Fault Detection in Solar Energy Systems: A Deep Learning Approach. Electronics 2023, 12, 4397. [Google Scholar] [CrossRef] [Scilit]
- Amiri, A.F.; Oudira, H.; Chouder, A.; Kichou, S. Faults detection and diagnosis of PV systems based on machine learning approach using random forest classifier. Energy Convers. Manag. 2024, 301, 118076. [Google Scholar] [CrossRef] [Scilit]
- Alrifaey, M.; Lim, W.H.; Ang, C.K.; Natarajan, E.; Solihin, M.I.; Juhari, M.R.M.; Tiang, S.S. Hybrid Deep Learning Model for Fault Detection and Classification of Grid-Connected Photovoltaic System. IEEE Access 2022, 10, 13852–13869. [Google Scholar] [CrossRef] [Scilit]
- Vieira, R.G.; Dhimish, M.; De Araújo, F.M.U.; Da Silva Guerra, M.I. Comparing multilayer perceptron and probabilistic neural network for PV systems fault detection. Expert Syst. Appl. 2022, 201, 117248. [Google Scholar] [CrossRef] [Scilit]
- Zwirtes, J.; Líbano, F.B.; De Lima Silva, L.A.; De Freitas, E.P. Fault Detection in Photovoltaic Systems Using a Machine Learning Approach. IEEE Access 2025, 13, 41406–41421. [Google Scholar] [CrossRef] [Scilit]
- Quiles-Cucarella, E.; Sánchez-Roca, P.; Agustí-Mercader, I. Performance Optimization of Machine-Learning Algorithms for Fault Detection and Diagnosis in PV Systems. Electronics 2025, 14, 1709. [Google Scholar] [CrossRef] [Scilit]
- Sowmmiya, U.; Abinaya, K.; Jhunjhunwala, R.; Satpathy, P.; Arul, R. Fault classification and identification through machine learning approaches for a solar PV—Battery based water pumping system. Multimed. Tools Appl. 2025, 84, 13843–13864. [Google Scholar] [CrossRef] [Scilit]
- Nassreddine, G.; El Arid, A.; Nassereddine, M.; Al Khatib, O. Fault Detection and Classification for Photovoltaic Panel System Using Machine Learning Techniques. Appl. AI Lett. 2025, 6, e115. [Google Scholar] [CrossRef] [Scilit]
- Sohail, A.; Islam, N.U.; Haq, A.U.; Islam, S.U.; Shafi, I.; Park, J. Fault detection and computation of power in PV cells under faulty conditions using deep-learning. Energy Rep. 2023, 9, 4325–4336. [Google Scholar] [CrossRef] [Scilit]
- Liu, X.; Goh, H.H.; Xie, H.; He, T.; Yew, W.K.; Zhang, D.; Dai, W.; Kurniawan, T.A. ResGRU: A Novel Hybrid Deep Learning Model for Compound Fault Diagnosis in Photovoltaic Arrays Considering Dust Impact. Sensors 2025, 25, 1035. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Khan, U.; Khan, S.F.; Khalil, I.U.; Ahsan, M. Deep learning based vision transformer approach for detecting overlapping PV faults using multi labeling. Measurement 2025, 256, 118537. [Google Scholar] [CrossRef] [Scilit]
- Tran, M.; de Luis, A.; Liao, H.; Huang, Y.; McCann, R.; Mantooth, A.; Cothren, J.; Le, N. S3Former: A Deep Learning Approach to High Resolution Solar PV Profiling. IEEE Trans. Smart Grid 2025, 16, 2611–2623. [Google Scholar] [CrossRef] [Scilit]
- Lazzaretti, A.E.; de Costa, C.H.; Rodrigues, M.P.; Yamada, G.D.; Lexinoski, G.; Moritz, G.L.; Oroski, E.; de Goes, R.E.; Linhares, R.R.; Stadzisz, P.C.; et al. A Monitoring System for Online Fault Detection and Classification in Photovoltaic Plants. Sensors 2020, 20, 4688. [Google Scholar] [CrossRef] [Scilit]
- Sinsomboonthong, S. Performance Comparison of New Adjusted Min-Max with Decimal Scaling and Statistical Column Normalization Methods for Artificial Neural Network Classification. Int. J. Math. Math. Sci. 2022, 2022, 3584406. [Google Scholar] [CrossRef] [Scilit]
- Minh, T.Q.; Matos, J.C.; Sousa, H.S.; Ngoc, S.D.; Van, T.N.; Nguyen, H.X.; Nguyễn, Q. Data reconstruction leverages one-dimensional Convolutional Neural Networks (1DCNN) combined with Long Short-Term Memory (LSTM) networks for Structural Health Monitoring (SHM). Measurement 2025, 253, 117810. [Google Scholar] [CrossRef] [Scilit]
- Carvalho, M.; Pinho, A.J.; Brás, S. Resampling approaches to handle class imbalance: A review from a data perspective. J. Big Data 2025, 12, 71. [Google Scholar] [CrossRef] [Scilit]
- Nabil, E.; Nagib, A.E.; Hany, M.; Faizullah, S.; Gomaa, W.H. A Novel Approach for Mitigating Class Imbalance in Arabic Text Classification. IEEE Access 2025, 13, 152870–152889. [Google Scholar] [CrossRef] [Scilit]
- Rezaei-Dastjerdehei, M.R.; Mijani, A.; Fatemizadeh, E. Addressing Imbalance in Multi-Label Classification Using Weighted Cross Entropy Loss Function. In Proceedings of the 2020 27th National and 5th International Iranian Conference on Biomedical Engineering (ICBME), Tehran, Iran, 26–27 November 2020; pp. 333–338. [Google Scholar]
- Dablain, D.; Jacobson, K.N.; Bellinger, C.; Roberts, M.; Chawla, N.V. Understanding CNN fragility when learning with imbalanced data. Mach. Learn. 2024, 113, 4785–4810. [Google Scholar] [CrossRef] [Scilit]
- Nassreddine, G.; Nassereddine, M.; Al-Khatib, O. Ensemble Learning for Network Intrusion Detection Based on Correlation and Embedded Feature Selection Techniques. Computers 2025, 14, 82. [Google Scholar] [CrossRef] [Scilit]
- Abed, A.E.; Nassreddine, G.; Al-Khatib, O.; Nassereddine, M.; Hellany, A. Explainable and Optuna-Optimized Machine Learning for Battery Thermal Runaway Prediction Under Class Imbalance Conditions. Thermo 2025, 5, 23. [Google Scholar] [CrossRef] [Scilit]
- Zhang, H. A self-supervised pretraining model for time series classification based on data preprocessing. Knowl.-Based Syst. 2025, 329, 114340. [Google Scholar] [CrossRef] [Scilit]
- Liu, Q.; Ye, J.; Liang, H.; Sun, L.; Du, B. TS-MAE: A masked autoencoder for time series representation learning. Inf. Sci. 2025, 690, 121576. [Google Scholar] [CrossRef] [Scilit]
- Madan, N.; Ristea, N.-C.; Ionescu, R.T.; Nasrollahi, K.; Khan, F.S.; Moeslund, T.B.; Shah, M. Self-Supervised Masked Convolutional Transformer Block for Anomaly Detection. IEEE Trans. Pattern Anal. Mach. Intell. 2024, 46, 525–542. [Google Scholar] [CrossRef] [Scilit]
- Wu, H.; Zhao, J. Deep convolutional neural network model based chemical process fault diagnosis. Comput. Chem. Eng. 2018, 115, 185–197. [Google Scholar] [CrossRef] [Scilit]
- Zhang, S.; Zhou, J.; Ma, X.; Pirttikangas, S.; Yang, C. TSViT: A Time Series Vision Transformer for Fault Diagnosis of Rotating Machinery. Appl. Sci. 2024, 14, 10781. [Google Scholar] [CrossRef] [Scilit]
- Diallo, R.; Edalo, C.; Awe, O.O. Machine Learning Evaluation of Imbalanced Health Data: A Comparative Analysis of Balanced Accuracy, MCC, and F1 Score. In Practical Statistical Learning and Data Science Methods; Awe, O.O., Vance, E.A., Eds.; STEAM-H: Science, Technology, Engineering, Agriculture, Mathematics & Health; Springer Nature: Cham, Switzerland, 2025; pp. 283–312. [Google Scholar] [CrossRef] [Scilit]
- Rezaeezade, A.; Batina, L. Regularizers to the rescue: Fighting overfitting in deep learning-based side-channel analysis. J. Cryptogr. Eng. 2024, 14, 609–629. [Google Scholar] [CrossRef] [Scilit]
- Bougoffa, M.; Benmoussa, S.; Djeziri, M.; Palais, O. Hybrid Deep Learning for Fault Diagnosis in Photovoltaic Systems. Machines 2025, 13, 378. [Google Scholar] [CrossRef] [Scilit]
- Memon, S.A.; Javed, Q.; Kim, W.-G.; Mahmood, Z.; Khan, U.; Shahzad, M. A Machine-Learning-Based Robust Classification Method for PV Panel Faults. Sensors 2022, 22, 8515. [Google Scholar] [CrossRef] [Scilit] [PubMed]
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.







