Mobile QR Code QR CODE : Journal of the Korean Society of Civil Engineers

  1. (Member · Senior Researcher · Gangneung Industry-Academic Cooperation Foundation, Kangwon National University (khyun1010@gmail.com))
  2. (Member · Corresponding Author · Research Professor, Institute for Smart Infrastructure, Kangwon National University (leehn77@kangwon.ac.kr))



Solar panel, Image classification, Visual foundation model, Cost-sensitive learning, Selective prediction

1. Introduction

The output of a photovoltaic plant depends on the surface condition of its panels. Dust deposition, long given less attention than location and orientation, has been shown to reduce the output of PV installations considerably (Mani and Pillai, 2010), and soiling was estimated to have reduced global solar power production by at least 3 to 4 % in 2018, with revenue losses of at least 3 to 5 billion euros a year (Ilse et al., 2019). Dust and bird droppings block light, snow interrupts generation, and electrical or physical damage adds a risk of fire. As plants grow, inspection by eye becomes impractical, and the deep-learning classification of images from drones or fixed cameras has been studied as an alternative. Electroluminescence imaging reveals internal cell defects (Jo et al., 2021; Kim and Yeo, 2025), whereas visible RGB imagery captures surface contamination and external damage with an ordinary drone (Han and Suh, 2024); this study belongs to the latter line.

A public dataset of about 880 RGB images in six classes (Clean, Dusty, Bird-drop, Snow-Covered, Electrical-damage, Physical-Damage) has become a common benchmark, on which convolutional and transformer models have reported accuracies of 91 to 99 % (Ledmaoui et al., 2024; Rudro et al., 2024; Sabati et al., 2025; Rastegar et al., 2026; Sneha et al., 2026). Hamdi et al. (2025) and Noura et al. (2025) raised accuracy with two-stage hierarchies built on a frozen foundation model, and Mungara et al. (2026) compared backbones under a controlled protocol. Lower results under other settings (Ghahremani et al., 2025; Sattuf et al., 2026) suggest that the task is harder than the upper end of that range implies, and Sattuf et al. (2026) is the only study among these to link the prediction to a maintenance decision, through an energy-recovery rule.

Three questions remain open. First, these studies assume ample labels, although each new plant requires its images to be labelled again. Second, they evaluate the naming of the condition rather than the action that follows: confusing dust with bird droppings costs little because both lead to cleaning, whereas taking physical damage for a clean panel delays repair, and a semi-automatic workflow further requires a confidence that can route uncertain images to a reviewer. Third, none reports whether near-duplicate images, common in web-collected data, were kept from straddling the training and evaluation sets. Visual foundation models such as DINOv2 (Oquab et al., 2024) and CLIP (Radford et al., 2021), adapted by low-rank adaptation (LoRA; Hu et al., 2022), address the first; temperature scaling (Guo et al., 2017), evidential learning (Sensoy et al., 2018) and a cost matrix in the loss and in the decision rule address the second.

This study proposes HiCA-Net (Hierarchical Cost-Aware Adapter Network), which adds multi-layer token fusion, a hierarchy defined by the maintenance action rather than by visual similarity, a cost-sensitive loss and an evidential output to LoRA on a frozen DINOv2 backbone, and evaluates it on 885 images with near-duplicates grouped within folds by label budget, calibration, selective prediction and cost over four maintenance actions. The principal finding is one of label efficiency: with 10 % of the training labels the model exceeds LoRA alone by 4.1 %p over three seeds. With the full label set its accuracy cannot be distinguished from that of LoRA alone, and differences that the data do not separate are reported as such.

2. Dataset

2.1 Composition

The public dataset Solar Panel Images Clean and Faulty Images (Afroz, 2023), distributed on Kaggle and downloaded on 3 November 2026, was used. The archive is organised as one folder per class. Taking the supported file extensions as the criterion, 885 valid images were obtained with no read failures. The licence field of thedistribution reads “Unknown” and the original provenance of the individual photographs is not stated, which is noted again in Section 6. The six classes are Clean, Dusty, Bird-drop, Snow-Covered, Electrical-damage and Physical-Damage. The class distribution is imbalanced (Table 1): the ratio between the largest class, Bird-drop with 207 images, and the smallest, Physical-Damage with 69 images, is about 3 to 1. The spread of resolution is also wide, with the median width ranging from 474 px to 1,012 px. Allimages were taken from the ground or at close range, and no information on the device, shooting distance, viewing angle, altitude or date is provided.

Table 1. Composition of the Dataset and Near-Duplicate Groups

Class Images Unique groups In duplicate groups Duplicate rate (%) Median width (px) Median height (px)
Clean 193 179 26 13.5 800 768
Dusty 190 179 19 10.0 1,012 960
Bird-drop 207 132 114 55.1 638 600
Snow-Covered 123 99 44 35.8 784 500
Electrical-damage 103 77 44 42.7 474 398
Physical-Damage 69 52 31 44.9 700 521
Total 885 718 278 31.4 - -

2.2 Grouping of Near-duplicate Images

A public dataset assembled by web collection may contain the same photograph more than once. If such images are split between the training and the evaluation set, the evaluation is contaminated. A 64-bit perceptual hash (pHash) based on the discrete cosine transform was therefore computed for every image; within each class, all pairs whose Hamming distance was 6 or less were judged to show the same scene, and the pairs were merged transitively with a disjoint-set algorithm. The 885 images resolved into 718 unique groups, and 278 images (31.4 %) belonged to a group of two or more.

The threshold of 6 was set by the authors, so its influence was examined. Most duplicates are already detected where the hashes agree exactly (27.7 % at a threshold of 0), and varying the threshold from 0 to 10 moves the overall duplicate rate only between 27.7 % and 33.3 %, a span of 5.6 %p. The grouped split used here is therefore insensitive to the choice of threshold.

Visual inspection supports the same conclusion (Fig. 1). In the Bird-drop class, groups of eight, six and five photographs of the same scene were found, and the Hamming distance within a group was mostly zero. The grouping is thus not an artefact of panels looking alike but the result of the same photograph being registered several times. The same pattern was observed in Physical-Damage and Electrical-damage.

Fig. 1. Near-duplicate Groups in the Bird-drop Class; Each Row is One Group and d is the Hamming Distance from the Reference Image

../../Resources/KSCE/Ksce.2026.46.6.0731/fig1.png

Because the grouping was carried out within each class, the hashes were also compared across classes. At the same threshold, eight cross-class pairs were found, involving three photographs and 11 images (1.2 % of the dataset): one photograph was registered six times as Bird-drop and once as Physical-Damage, one as both Bird-drop and Dusty, and one as both Bird-drop and Physical-Damage (Supplementary Table S16); raising the threshold to 10 added one more pair. These copies are label conflicts rather than leakage that can favour a model. For two of thephotographs all copies lie in the same fold, so they never fall on both sides of a split. For the third, the Bird-drop and Physical-Damage copies lie in different folds, so when one copy is evaluated the other can only be learned with a different label, which lowers rather than raises the measured accuracy. The images were therefore kept with their distributed labels; their effect is bounded by 11 of the 885 images.

3. Methods

The proposed model keeps a pre-trained visual foundation model frozen, adapts it by LoRA and adds four components (Fig. 2). The figure also separates the loss terms used only in training from the outputsused at inference: the condition, the action chosen by the minimum-cost rule and the uncertainty that routes images to a reviewer.

Fig. 2. Architecture of HiCA-Net in Training and Inference; Dashed Boxes are Loss Terms Used Only in Training

../../Resources/KSCE/Ksce.2026.46.6.0731/fig2.png

3.1 Backbone and Multi-layer Token Fusion

DINOv2 ViT-L/14 is used as the backbone and the input resolution is fixed at 224 × 224. All backbone weights are frozen, and low-rank adaptation matrices are inserted only into the qkv and proj linear layers of each attention block (rank 16, alpha 32, dropout 0.1). The trainable parameters amount to about 7.6 M, or 2.5 % of the total. The intention is to avoid the overfitting of full fine-tuning on a small dataset while still allowing domain adaptation.

Defects such as bird droppings and cracks occupy a small area of the image, so the localised evidence is diluted if only the class token of the final layer is used. The outputs of the last four blocks are therefore normalised by the final layer normalisation, and from each layertwo vectors are taken: the class token, which is the global representation of the image, and an attention-pooled patch representation, in which a score is computed for every patch by a linear layer, a GELU activation and a second linear layer, and the softmax-weighted sum is taken.

The two vectors are combined across layers by the softmax of a learnable layer weight. The combined class and patch vectors are concatenated, projected through layer normalisation, a linear layer and a GELU activation, and mixed by a sigmoid gate g as

(1)
$z = g \odot \text{Fuse}([c ; p]) + (1 - g) \odot c,$

where c is the layer-weighted class token and p the layer-weighted attention-pooled vector. The gate lets the model fall back on the original class-token path for cases in which the global evidence alone is sufficient.

3.2 Action Hierarchy, Cost-sensitive Loss and Evidential Output

In the field the six conditions converge on four actions: none for Clean, surface cleaning for Dusty and Bird-drop, snow removal or waiting for natural melting for Snow-Covered, and component repair or replacement for Electrical-damage and Physical-Damage. From the same feature vector a six-way condition head and a four-way action head are computed in parallel, and the two are constrained to agree. The loss adds, to the cross-entropy of the action head, the Kullback-Leibler divergence between the action head distribution and the condition probabilities aggregated to the action level. At inference the log-probability of the condition and that of its action are summed and renormalised.

The practical loss of a misclassified action differs by type. Judging a panel that needs repair to be clean leaves the damage unattended, whereas judging a clean panel to need cleaning costs only an unnecessary visit. The cost matrix of Table 2 was adopted accordingly. After normalising the matrix by its maximum, the mean inner product of the predicted action distribution with the row of the true action is added to the loss. The entries are relative and dimensionless. A missed repair was given the largest value, 10, because the fault continues to lower the output and may cause a fire until the next inspection. Answering a repair case with cleaning or snow removal was set at half of that, 5, because a site visit still takes place and the fault maybe noticed then. Leaving contamination or snow in place and dispatching an unnecessary repair were set at 2, and an unnecessary or mistaken surface action at 1. The values express this order of consequences rather than measured costs, which differ by plant, contract and season, so their influence is examined in Section 5.2.

Table 2. Relative (Dimensionless) Cost Matrix for Misclassified Maintenance Actions (Row: True, Column: Predicted)

True \ Predicted None Cleaning Snow Repair
None 0 1 1 2
Cleaning 2 0 1 2
Snow 2 1 0 2
Repair 10 5 5 0

At inference, instead of taking the most probable action, the action that minimises the expected cost may be chosen,

(2)
$a^* = \arg\min_a \sum_t p(t \mid x) \cdot C[t, a],$

where $p(t \mid x)$ is the posterior probability of action t and C is the cost matrix. This rule is independent of the model, so it was applied identically to every compared model in order to verify its effect.

For the evidential output, a softplus activation is applied to the logits of the classification head to obtain the evidence e, and the Dirichlet concentration parameters are set to $\alpha = e + 1$. With the total concentration $S = \sum \alpha$, the loss is the log-based Bayes risk $\sum y (\log S - \log \alpha)$. A regularisation term $\text{KL}(\text{Dir}(\tilde{\alpha}) \parallel \text{Dir}(1))$, computed on the concentration with the evidence of the true class removed, is added with a coefficient that increases linearly from 0 to 0.05 over the first half of the maximum number of epochs and is then held constant. The uncertainty is defined as $u = K / S$, where $K = 6$ is the number of conditions, the evidential output being attached to the six-way condition head; it is obtained from a single forward pass and is used as the criterion for selective prediction.

The training objective combines these terms as

(3)
$L = L_{\text{EDL}} + \lambda_{\text{KL}}(\tau) \cdot \text{KL} + \lambda_h \cdot \{\text{CE}(q, a_y) + \text{KL}(P_A \parallel q)\} + \lambda_c \cdot \sum_a \hat{P}(a \mid x) \cdot \tilde{C}[a_y, a],$

where $L_{\text{EDL}}$ is the Bayes risk above, q the output distribution of the action head, $a_y$ the true action, $P_A$ the condition probabilities aggregated to the four actions, $\hat{P}$ the action probability of the hierarchical combination and $\tilde{C}$ the cost matrix of Table 2 divided by its maximum. The weights are $\lambda_h = \lambda_c = 0.5$ and $\lambda_{\text{KL}}(\tau) = 0.05 \cdot \min(1, 2\tau)$, with $\tau$ the elapsed fraction of the maximum number of epochs, and the first two terms are weighted by inverse class frequency. Label smoothing of 0.05 enters only the cross-entropy of the variant without the evidential output, of LoRA alone and of the fine-tuned networks, so it does not act on the evidential loss. Temperature scaling is applied after training to the combined log-probabilities, while u is computed from the concentrations before scaling.

4. Experiment

4.1 Evaluation Protocol

Five-fold stratified cross-validation was carried out at the group level so that the near-duplicate groups of Section 2.2 do not straddle the training and evaluation sets. In each fold, 15 % of the training pool was set aside group-wise as a fixed validation set of 110 to 114 images in 84 to 96 groups. The same validation set was used for every label ratio and seed, for early stopping, for temperature scaling and for the choice of the regularisation constant of the linear probes; only the training images were reduced. At 10 % the validation set is therefore larger than the training subset, and the label budget counts the training images only. Label-efficiency subsets of 10, 25, 50 and 100 % were drawn by stratified sampling within each class, nested and with at least two images per class; at 10 % a fold is trained on 62 or 63 images, from 5 for Physical-Damage to 15 for Bird-drop, which belong to 58 to 62 near-duplicate groups, and at 100 % on 591 to 605 images in 478 to 491 groups (Supplementary Table S15). Because the subsets are drawn image by image within the training groups, two copies of one photograph can enter the same subset; at 10 % this leaves at most four of the 62 or 63 images without a distinct photograph, so the effective budget is slightly smaller than the image count, while no copy can reach the evaluation set. The 10 % condition, which carries the principal comparison, was repeated with three random seeds that change the images drawn, the initialisation and the data order; the counts are the same for every seed. The other conditions use one seed. Some models were also evaluated with a random split that ignores the groups.

4.2 Compared Models and Training

Four fully fine-tuned networks reproduce previous work: ResNet50, EfficientNet-B0, InceptionV3 and Swin-T, with ImageNet weights, a dropout of 0.2 and a linear classifier. Linear probes apply standardisation and logistic regression to features of DINOv2-B, DINOv2-L and CLIP-L, with C selected from {0.01, 0.03, 0.1, 0.3, 1.0} on the validation macro-F1. LoRA alone, a LoRA adapter and a linear head on DINOv2-L, equals the proposed model with all four added components removed; four ablation variants remove one component each, and the variant without the evidential output estimates uncertainty by Monte-Carlo dropout. Training used AdamW (weight decay 0.05) with a learning rate of $3 \times 10^{-4}$ for full fine-tuning and $5 \times 10^{-4}$ for LoRA and HiCA-Net under OneCycleLR with 10 % warm-up, at most 40 epochs with early stopping (patience 8) on the validation macro-F1, mixed precision, gradient clipping at 1.0, inverse-frequency class weights and label smoothing of 0.05; the batch size was 32 for the fine-tuned networks and 8 with four-step gradient accumulation and checkpointing for LoRA alone, HiCA-Net and its variants, and the weights at the best validation macro-F1 were kept. The training times in Table 3 are wall-clock times until early stopping and therefore depend on the epoch at which it occurred. Augmentation comprised random resized crops (scale 0.7 to 1.0), flips, rotation of $\pm 15^\circ$ and colour jitter. The experiments ran on an Intel Core i5-14400F with an NVIDIA RTX 4060 (8 GB) under PyTorch 2.6.0 and took about ten hours per seed, plus three hours for the 10 % repetition.

4.3 Metrics and Statistical Analysis

Classification was measured by accuracy, macro-F1, the primary metric given the class imbalance, and class-wise recall; calibration by the expected calibration error (ECE, 15 bins) before and after temperature scaling; selective prediction by the area under the risk-coverage curve (AURC), the accuracy when only the 80 % or 90 % most confident images are decided automatically (Acc@80 %, Acc@90 %) and the share of images a reviewer must check for the rest to reach 99 % accuracy; and the maintenance action by action accuracy, action macro-F1, repair recall and the mean cost under Table 2 for the argmax and minimum-cost decisions.

Comparisons are paired on identical splits and seeds, giving 15 fold-seed pairs at 10 % and five folds elsewhere, and are tested with a two-sided paired t-test, with the number of pairs in favour reported alongside. Because the three seeds share the evaluation sets, the principal comparison, the proposed model against LoRA alone in macro-F1 at 10 % as stated before the repetition, is also tested with the seeds averaged within each fold. Holm correction is applied when one model is compared with several others on the same measure, and differences that do not survive it are reported as exploratory. A large p-value is read as an absence of evidence, not as evidence of equality. Detailed results summarised in the text are given in Supplementary Tables S1 to S14.

5. Results and Discussion

5.1 Classification and Label Efficiency

With the full label set (Table 3) the proposed model reaches a macro-F1 of 0.919 against 0.928 for LoRA alone; the difference of -0.009 (95 % confidence interval -0.047 to 0.029, p = 0.55) cannot be distinguished on five folds. LoRA alone and the proposed model lead the fine-tuned networks by 6.6 to 9.6 %p, the linear probes are level with them or up to 4.0 %p ahead, and the DINOv2-L linear probe reaches 0.872 with six thousand trainable parameters and fifteen seconds of training. Snow-Covered is recognised almost perfectly by the foundation models (recall 0.98 to 1.00), while Dusty and Physical-Damage are the common difficulty; the largest confusion is between Dusty and Clean, and only one of 172 true Repair cases was predicted as requiring no action (Fig. 3).

Table 3. Classification Performance with the Full Label Set (Mean ± Standard Deviation over Five Folds)

Model Accuracy Macro-F1 Training time (s) Trainable parameters (M)
DINOv2-L LoRA 0.932 ± 0.015 0.928 ± 0.024 448.7 2.365
HiCA-Net (proposed) 0.921 ± 0.026 0.919 ± 0.039 398.1 7.621
DINOv2-L (linear probe) 0.875 ± 0.036 0.872 ± 0.043 14.7 0.006
CLIP-L (linear probe) 0.869 ± 0.029 0.871 ± 0.032 16.7 0.006
DINOv2-B (linear probe) 0.859 ± 0.026 0.852 ± 0.035 11.7 0.005
Swin-T 0.857 ± 0.040 0.853 ± 0.048 201.6 27.524
InceptionV3 0.851 ± 0.043 0.845 ± 0.051 207.3 21.798
ResNet50 0.843 ± 0.029 0.835 ± 0.032 237.7 23.520
EfficientNet-B0 0.835 ± 0.024 0.832 ± 0.027 279.8 4.015

Fig. 3. Confusion Matrices for DINOv2-L LoRA, the Model with the Highest Macro-F1 at the Full Label Budget, with the Five Folds Pooled; Left, the Six Panel Conditions, Right, the Four Maintenance Actions under the Minimum-Cost Decision

../../Resources/KSCE/Ksce.2026.46.6.0731/fig3.png

The gap to LoRA alone appears only when labels are scarce (Table 4, Fig. 4). Table 4 gives the mean paired difference in macro-F1 with the p-value of the paired t-test, over 15 fold-seed pairs at 10 % and five folds elsewhere; positive values favour the proposed model, † marks differences that survive Holm correction within a column and * those in which the proposed model is ahead in four of five folds. At 10 % the proposed model reaches 0.836 over five folds and three seeds, 4.1 %p above LoRA alone (12 of 15 pairs, p = 0.003; p = 0.032 with the seeds averaged within each fold) and 18 to 26 %p above the convolutional networks, and all eight differences remain significant after Holm correction (largest corrected p = 0.003). At 25 % only the differences against EfficientNet-B0 and ResNet50 survive the correction, at 50 % those against all models other than LoRA alone, and at 100 % none; these columns rest on one seed and are exploratory.

Table 4. Paired Difference in Macro-F1 between HiCA-Net and the Compared Models by Label Ratio

Compared model 10 % 25 % 50 % 100 %
DINOv2-L LoRA +0.041 (0.003)† -0.014 (0.436) +0.004 (0.781) -0.009 (0.547)
CLIP-L (linear probe) +0.053 (<0.001)† +0.031 (0.043) +0.053 (0.001)† +0.048 (0.061)
DINOv2-L (linear probe) +0.080 (<0.001)† +0.062 (0.022) +0.052 (0.011)† +0.046 (0.074)*
DINOv2-B (linear probe) +0.102 (<0.001)† +0.063 (0.018) +0.074 (<0.001)† +0.066 (0.033)
Swin-T +0.112 (<0.001)† +0.076 (0.027) +0.107 (0.005)† +0.065 (0.078)*
InceptionV3 +0.183 (<0.001)† +0.117 (0.018) +0.101 (<0.001)† +0.073 (0.077)*
EfficientNet-B0 +0.175 (<0.001)† +0.114 (0.006)† +0.107 (0.010)† +0.086 (0.029)
ResNet50 +0.262 (<0.001)† +0.121 (0.005)† +0.107 (0.010)† +0.084 (0.024)

Fig. 4. Macro-F1 by Training Label Ratio; Error Bars Denote the Standard Deviation over Five Folds, and at 10 % over Five Folds and Three Seeds

../../Resources/KSCE/Ksce.2026.46.6.0731/fig4.png

Seed by seed the lead over LoRA alone was +0.069, +0.003 and +0.052, so the single-seed estimate of 6.9 %p was optimistic. The seed-to-seed range of the five-fold mean is 0.017 for the proposed model against 0.059 for LoRA alone, so part of the gain lies in a more stable result. At the same budget the proposed model also leads LoRA alone in action accuracy (0.889 against 0.866, p = 0.019) and in accuracy at 90 % coverage (p = 0.023), reported without correction. From 25 % upward the two models cannot be distinguished.

Finally, a random split that ignores near-duplicates raises the macro-F1 of all three models tested, from 0.919 to 0.933 for the proposed model, from 0.835 to 0.871 for ResNet50 and from 0.832 to 0.885 for EfficientNet-B0; the fully fine-tuned networks benefit more when the same image falls on both sides of the split. Given a duplicate rate of 31.4 %, the split should be made at the group level; this is a methodological recommendation, not an assessment of previously published results.

5.2 Maintenance Actions, Cost and Selective Prediction

Over the four actions (Table 5) the proposed model has the highest mean action accuracy (0.956) and the lowest mean cost, 0.131 under the argmax decision and 0.118 under the minimum-cost decision. In paired comparisons over five folds, it is ahead of the four fine-tuned networks and the DINOv2-B linear probe in all five folds on action accuracy, mean cost and accuracy at 90 % coverage, by 5 to 9 %p in action accuracy and 0.13 to 0.23 in cost under the argmax decision (0.15 to 0.20 under the minimum-cost decision) (p = 0.003 to 0.045 before correction). After Holm correction across the eight compared models, however, only one of the forty differences over five measures, accuracy at 90 % coverage against EfficientNet-B0, remains below 0.05, so the full-budget comparisons are exploratory. Against LoRA alone the cost difference of 0.007 holds in two of five folds (p = 0.79) and comes almost entirely from fold 0.

Table 5. Action-level Performance and Mean Cost with the Full Label Set (Five Folds)

Model Action accuracy Action macro-F1 Repair recall (argmax) Repair recall (min-cost) Mean cost (argmax) Mean cost (min-cost)
HiCA-Net 0.956 ± 0.017 0.960 ± 0.016 0.935 0.953 0.131 0.118
DINOv2-L LoRA 0.951 ± 0.008 0.956 ± 0.007 0.930 0.953 0.142 0.125
DINOv2-L (linear probe) 0.922 ± 0.015 0.928 ± 0.014 0.923 0.952 0.193 0.169
CLIP-L (linear probe) 0.914 ± 0.019 0.924 ± 0.018 0.936 0.959 0.205 0.187
DINOv2-B (linear probe) 0.906 ± 0.017 0.914 ± 0.015 0.883 0.900 0.258 0.272
Swin-T 0.881 ± 0.035 0.880 ± 0.039 0.851 0.885 0.307 0.279
InceptionV3 0.877 ± 0.030 0.878 ± 0.029 0.860 0.901 0.321 0.316
ResNet50 0.871 ± 0.025 0.874 ± 0.025 0.838 0.930 0.361 0.267
EfficientNet-B0 0.866 ± 0.030 0.872 ± 0.030 0.845 0.919 0.359 0.299

Mean cost: relative, dimensionless score per image under the assumed cost matrix of Table 2; it is neither a monetary amount nor a saving at an operating plant.

The minimum-cost decision lowered the mean cost of every model except the DINOv2-B linear probe, most for the weaker classifiers: for ResNet50 the repair recall rose from 0.838 to 0.930 and the cost fell from 0.361 to 0.267. Because the rule acts at inference only, it can be applied to any classifier that outputs probabilities; its value at an operating plant depends on a cost matrix built from that plant's operation and maintenance records.

Because the rule can be applied to any classifier, the reduction in cost was divided into a part due to the network, the difference between the proposed model and LoRA alone under the same rule, and a part due to the rule, the change from the argmax to the minimum-cost decision within one model (Supplementary Table S17). With the full label set neither part could be distinguished: the network part was 0.011 under the argmax and 0.007 under the minimum-cost decision (p = 0.69 and 0.79), and the rule part 0.013 for the proposed model and 0.017 for LoRA alone (p = 0.54 and 0.27). At 10 % the network part was 0.092 under the argmax and 0.054 under the minimum-cost decision (p = 0.037 and 0.062 over 15 fold-seed pairs, before correction), and the rule part 0.031 for the proposed model and 0.069 for LoRA alone (p = 0.097 and 0.051); together they lowered the cost from 0.391 to 0.268 (p = 0.016). The rule thus gains less for the model trained with the cost, whose argmax decision already leans towards the cheaper action, so the two partly substitute for each other. A cost advantage of the network is therefore supported only at 10 %, and at the full budget the rule, which any classifier can use, is the practical means of lowering the cost.

After temperature scaling the mean ECE is 0.042 for LoRA alone, the lowest, and 0.055 for the proposed model (Fig. 5). The scaling helped some models and worsened others, from 0.114 to 0.071 for the DINOv2-B linear probe but from 0.070 to 0.083 for Swin-T, probably because the small validation set makes the temperature unstable. The proposed model has the lowest mean AURC (0.026 against 0.037), but LoRA alone is ahead in four of five folds and its mean is raised by a single fold (p = 0.58); what differs is the spread, ±0.005 against ±0.043 (Fig. 6). The review rate needed for 99 % accuracy is 64.4 % for the proposed model against 84.5 % for Swin-T and 89.2 % for InceptionV3 (all five folds, p = 0.043 and 0.030 before correction) and 69.1 % for LoRA alone (p = 0.72). The proposed model is therefore not the better choice for selective prediction overall, but its result is more predictable between folds.

Fig. 5. Reliability Diagram before and after Temperature Scaling (DINOv2-L LoRA). The Expected Calibration Error Shown in the Legend is Computed on the Predictions of the Five Folds Pooled, Whereas the Values in the Text Are Means of the Per-fold Values

../../Resources/KSCE/Ksce.2026.46.6.0731/fig5.png

Fig. 6. Risk-coverage Curves; the Horizontal Axis is the Share of Images Decided Automatically

../../Resources/KSCE/Ksce.2026.46.6.0731/fig6.png

Because the cost matrix of Table 2 is an assumption, its influence was examined from the stored predictions in two ways. The first varies the cost c_miss of judging a panel that needs repair to require no action from 2 to 50 with the other entries fixed (Fig. 7). The second replaces the whole matrix with three settings generated from c_miss, the cost c_partial of answering it with cleaning or snow removal, the cost c_false of an unnecessary action and the cost c_cross of the wrong kind of action, as [0, c_false, c_false, c_cross], [c_cross, 0, c_false, c_cross], [c_cross, c_false, 0, c_cross], [c_miss, c_partial, c_partial, 0] with rows as the true and columns as the predicted action in the order None, Cleaning, Snow, Repair; the conservative, baseline and balanced settings set (c_miss, c_partial, c_false, c_cross) to (20, 10, 1, 2), (10, 5, 1, 2) and (3, 2, 1, 1.5).

Fig. 7. Mean Cost (Left) and Repair Recall (Right) Against the Cost of a Missed Repair

../../Resources/KSCE/Ksce.2026.46.6.0731/fig7.png

The proposed model has the lowest mean cost at every value of c_miss and in all three settings, but the ordering of the other models is not preserved: the variant without the evidential output overtakes LoRA alone, the DINOv2-L linear probe overtakes the variant without the multi-layer fusion, and ResNet50 overtakes the variant without the cost-sensitive loss. Over the sweep the cost of the proposed model rises by 10 % against 59 % for LoRA alone; the variant without the evidential output is flatter still, while removing the cost-sensitive loss or the action hierarchy steepens the rise to 129 % and 100 % (Fig. 7). The whole-matrix values (0.147, 0.118, 0.065) do not lie on the single-entry curve (0.116 at c_miss = 20, 0.103 at c_miss = 3) because every entry moves. Since only c_miss was varied widely and the three settings move the other entries together, the analysis supports the position of the proposed model over the examined variation, not a fixed ranking of the models or independence from the cost matrix in general.

5.3 Ablation and Discussion

With the full label set (Table 6) every removal leaves macro-F1 between 0.910 and 0.912, so no clear contribution to classification accuracy was observed. Every removal raises the mean cost, from 0.131 to between 0.143 and 0.183, but none of these differences is distinguishable on five folds (p = 0.25 to 0.97). Removing the evidential output raises the Physical-Damage recall from 0.853 to 0.902 but lowers the action accuracy from 0.956 to 0.940.

Table 6. Ablation of the Four Added Components with the Full Label Set (Five Folds)

Configuration Macro-F1 Physical recall Repair recall ECE after AURC Mean cost
HiCA-Net (full) 0.919 ± 0.039 0.853 0.935 0.055 0.0257 0.131
- Multi-layer fusion 0.912 ± 0.032 0.798 0.884 0.063 0.0468 0.183
- Action hierarchy 0.912 ± 0.034 0.872 0.931 0.065 0.0311 0.166
- Cost-sensitive loss 0.912 ± 0.029 0.877 0.926 0.061 0.0232 0.163
- Evidential output 0.910 ± 0.030 0.902 0.947 0.058 0.0215 0.143
DINOv2-L LoRA 0.928 ± 0.024 0.866 0.930 0.042 0.0370 0.142

Table 7 repeats the ablation at the 10 % budget, giving for each removal the mean paired difference in macro-F1 from the full configuration, the number of the 15 fold-seed pairs in which the full configuration is ahead and the p-value. No single removal produces a distinguishable loss of macro-F1, the largest being 1.8 %p for the multi-layer fusion (p = 0.068), whereas removing all four, which yields LoRA alone, costs 4.1 %p (p = 0.003). The full configuration therefore outperformed LoRA alone, but the contributions of the individual components could not be clearly separated: the individual effects may be too small to detect with 15 pairs, or the components may partly compensate for one another, and this design can neither tell these apart nor establish an interaction.

Table 7. Ablation at the 10 % Label Budget (Five Folds, Three Seeds)

Configuration Macro-F1 Change on removal Mean cost (argmax) Mean cost (min-cost) AURC Review rate for 99 %
HiCA-Net (full) 0.836 ± 0.032 - 0.299 0.268 0.067 0.765
- Multi-layer fusion 0.818 ± 0.042 -0.018 (10/15, 0.068) 0.297 0.265 0.119 0.895
- Action hierarchy 0.832 ± 0.025 -0.004 (7/15, 0.681) 0.370 0.277 0.065 0.743
- Cost-sensitive loss 0.837 ± 0.028 +0.002 (9/15, 0.803) 0.316 0.253 0.072 0.813
- Evidential output 0.831 ± 0.029 -0.005 (9/15, 0.527) 0.354 0.271 0.055 0.756
- All four (DINOv2-L LoRA) 0.795 ± 0.036 -0.041 (12/15, 0.003) 0.391 0.322 0.076 0.816

On other measures, removing the multi-layer fusion raises the review rate for 99 % accuracy from 76.5 % to 89.5 % (p = 0.020 after Holm correction across the four removals), so the fusion mainly improves the ordering of the predicted confidence. Removing the action hierarchy raises the cost under the argmax decision from 0.299 to 0.370 (p = 0.015 before correction) but hardly under the minimum-cost decision (0.268 to 0.277, p = 0.69). For the cost-sensitive loss no clear benefit was observed on any measure, and for the evidential output none on macro-F1; removing the latter improves the accuracy at 80 % coverage from 0.886 to 0.912 (p = 0.042 after Holm correction). The ablation thus supports two statements of different strength: the effect of the full configuration at 10 % and the role of the multi-layer fusion in ordering the confidence. It does not support a separate contribution of the action hierarchy, the cost-sensitive loss or the evidential output to accuracy, and some removals even improved individual measures.

Grad-CAM maps (Selvaraju et al., 2017) for the first fold (Fig. 8) show the convolutional networks responding over a broad central area and Swin-T and the proposed model at scattered, localised points. In an image of a clean panel with a person in the frame, only the proposed model avoided predicting Dusty, and in an image of surface cracking labelled Physical-Damage, ResNet50, InceptionV3 and Swin-T predicted Bird-drop while the proposed model and EfficientNet-B0 were correct. The maps are qualitative evidence only.

Fig. 8. Grad-CAM Comparison for One Evaluation Image Per Class; Columns from Left to Right are the Input, ResNet50, EfficientNet-B0, InceptionV3, Swin-T and HiCA-Net, and the Prediction is Shown Beneath Each Map

../../Resources/KSCE/Ksce.2026.46.6.0731/fig8.png

Taken together, a six-class problem of 885 images is already largely solved by a linear head on a strong pre-trained representation, as the linear probe result of 0.872 shows, which leaves little room for an additional architecture at the full label budget. What the data do separate is the behaviour of the models when labels are scarce: there the advantage of the proposed model over LoRA alone is significant and its result is more stable between seeds. The evidential output, whose Dirichlet regularisation restrains the evidence for minority classes such as Physical-Damage with 5 training images at 10 %, showed no clear benefit and should be regarded as an open design choice.

Two methodological observations follow. A preliminary first-fold experiment gave the proposed model a lead of 2.9 %p over LoRA alone that reversed in the five-fold mean, and the single-seed lead of 6.9 %p at 10 % shrank to 4.1 %p over three seeds. For small image datasets, cross-validation, repetition over seeds and the reporting of dispersion should be regarded as mandatory.

6. Limitations

This study has four main limitations. First, every result comes from cross-validation within a single web-collected dataset of 885 images whose provenance, licence, acquisition conditions and labels could not be verified; no external dataset was available, so the findings are internal-validation results and may not hold for other plants, panel types or seasons. The images were taken from the ground or at close range without records of the device, distance, angle or illumination, whereas plant inspection uses drones or fixed cameras whose images differ in viewing angle, ground resolution, glare and background; the performance under such conditions is unknown, and a model would have to be validated, and probably retrained, on images from the target plant before use. Second, only the 10 % condition was repeated over seeds; the full-budget comparisons rest on five folds and one seed, and their lack of significance after correction is an absence of evidence rather than evidence of equivalence. Third, the cost matrix is an assumption, varied in one entry and in three correlated settings only, so the costs reported here are neither monetary amounts nor estimates of savings at an operating plant, and applying the decision rule at a plant requires a cost matrix set from its operation and maintenance records. Fourth, the label budget counts training images only; the 110 to 114 validation images used for early stopping and temperature scaling were also labelled, and the effect of a smaller validation set was not examined.

7. Conclusions

This study proposed HiCA-Net, which adds multi-layer token fusion, a maintenance-action hierarchy, a cost-sensitive loss and an evidential output to LoRA on a frozen DINOv2 backbone, and evaluated it on 885 solar panel images with near-duplicate images kept within folds.

First, with 10 % of the training labels the model reached a macro-F1 of 0.836 over three seeds, 4.1 %p above LoRA alone (p = 0.003; p = 0.032 with the seeds averaged within each fold) and 11 to 26 %p above fine-tuned networks, all significant after Holm correction, and its result varied less between seeds than that of LoRA alone.

Second, at that budget the full configuration outperformed LoRA alone, but the ablation could not clearly separate the contributions of the individual components. The multi-layer fusion improved the ordering of the predicted confidence, and no clear benefit of the cost-sensitive loss or the evidential output was observed.

Third, with the full label set the accuracy could not be distinguished from that of LoRA alone. The model had the lowest mean cost over four maintenance actions and kept it as the cost of a missed repair varied from 2 to 50, but its advantages in action accuracy and mean cost did not survive correction for multiple comparisons, and the cost reduction at that budget could not be attributed to the network rather than to the decision rule.

Finally, a minimum-cost decision rule lowered the cost of every model but one without retraining, and a random split that ignores near-duplicates inflated the macro-F1 of fully fine-tuned networks by 3.6 to 5.3 %p, so the split should be made at the group level.

Future work should repeat the full-budget protocol over several seeds, separate the contributions of the components with a factorial design, validate the model on images from domestic plants with recorded acquisition conditions, and replace the assumed cost matrix with measured costs.

Acknowledgments

This research was supported by Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education (RS-2024-00461135).

References

1
Afroz (2023). Solar Panel Images Clean and Faulty Images, Kaggle Available at: https://www.kaggle.com/datasets/pythonafroz/solar-panel-images (Accessed: November 3, 2026).URL
2
Ghahremani, A., Adams, S. D., Norton, M., Khoo, S. Y., Kouzani, A. Z. (2025). Detecting defects in solar panels using the YOLO v10 and v11 algorithms, Electronics, 14(2).DOI
3
Guo, C., Pleiss, G., Sun, Y., Weinberger, K. Q. (2017). On calibration of modern neural networks, , 1321-1330, PMLR.DOI
4
Hamdi, A., Noura, H. N., Azar, J. (2025). Deep learning-based approach to automated monitoring of defects and soiling on solar panels, Future Internet, 17(10).DOI
5
Han, H., Suh, J. (2024). Detection of photovoltaic panel dust using drone shooting imagery and deep learning techniques, Journal of the Korean Society of Mineral and Energy Resources Engineers, 61(1), 23-32 (in Korean).DOI
6
Mani, M., Pillai, R. (2010). Impact of dust on solar photovoltaic (PV) performance: Research status, challenges and recommendations, Renewable and Sustainable Energy Reviews, 14(9), 3124-3131.DOI
7
Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., Chen, W. (2022). LoRA: Low-rank adaptation of large language models, .DOI
8
Ilse, K., Micheli, L., Figgis, B. W., Lange, K., Daßler, D., Hanifi, H., Wolfertstetter, F., Naumann, V., Hagendorf, C., Gottschalg, R., Bagdahn, J. (2019). Techno-economic assessment of soiling losses and mitigation strategies for solar power generation, Joule, 3(10), 2303-2321.DOI
9
Jo, S. K., Park, I. D., Jang, J. H., Oh, W. (2021). A study on the detection of defects in solar cells and modules in EL images based on artificial intelligence, Journal of the Korean Solar Energy Society, 41(6), 51-57 (in Korean).DOI
10
Kim, T., Yeo, B. C. (2025). A study on the optimization of fine-tuning and dataset for defect detection models in photovoltaic modules images, Journal of the Korean Solar Energy Society, 45(4), 67-79 (in Korean).DOI
11
Ledmaoui, Y., El Maghraoui, A., El Aroussi, M., Saadane, R. (2024). Enhanced fault detection in photovoltaic panels using CNN-based classification with PyQt5 implementation, Sensors, 24(22).DOI
12
Mungara, S., Kolluru, V., Murugesan, T., Maiti, S., Hole, S. R., Rakesh, N. (2026). AI-enabled multi-class visual fault diagnosis for large-scale solar photovoltaic systems supporting energy transition and net-zero operations, Unconventional Resources, 18.DOI
13
Noura, H. N., Chahine, K., Bassil, J., Abou Chaaya, J., Salman, O. (2025). Efficient combination of deep learning models for solar panel damage and soiling detection, Measurement, 251.DOI
14
Oquab, M., Darcet, T., Moutakanni, T., Vo, H., Szafraniec, M., Khalidov, V., Fernandez, P., Haziza, D., Massa, F., El-Nouby, A., Assran, M., Ballas, N., Galuba, W., Howes, R., Huang, P.-Y., Li, S.-W., Misra, I., Rabbat, M., Sharma, V., Synnaeve, G., Xu, H., Jegou, H., Mairal, J., Labatut, P., Joulin, A., Bojanowski, P. (2024). DINOv2: Learning robust visual features without supervision, Transactions on Machine Learning Research, 2024.DOI
15
Radford, A., Kim, J. W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., Krueger, G., Sutskever, I. (2021). Learning transferable visual models from natural language supervision, , 8748-8763, PMLR.DOI
16
Rastegar, S., Hosseini, M., Tavoosi, J., Mohammadzadeh, A. (2026). Solarswin: A transformer-based deep learning model for surface defect detection in solar panels, IET Renewable Power Generation, 20(1).DOI
17
Rudro, R. A. M., Nur, K., Sohan, M. F. A. A., Mridha, M. F., Alfarhood, S., Safran, M., Kanagarathinam, K. (2024). SPF-Net: Solar panel fault detection using U-Net based deep learning image classification, Energy Reports, 12, 1580-1594.DOI
18
Sabati, A., Bayindir, R., Rahebi, J. (2025). Photovoltaic panels fault detection with convolutional neural network and bitterling fish optimization (BFO) algorithm, International Journal of Computational Intelligence Systems, 18.DOI
19
Sattuf, S., Celtek, S. A., Shahnia, F. (2026). Visual deep learning-based soiling detection on photovoltaic panels with inverter-level energy validation and sustainability-aware cleaning decision support, Sustainability, 18(8).DOI
20
Selvaraju, R. R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., Batra, D. (2017). Grad-CAM: Visual explanations from deep networks via gradient-based localization, , 618-626, IEEE.DOI
21
Sensoy, M., Kaplan, L., Kandemir, M. (2018). Evidential deep learning to quantify classification uncertainty, , 31, 3179-3189.DOI
22
Sneha, S. G., Sen, A., Malik, S., Hossen, M. J. (2026). Automated fault detection in solar panels using customized EfficientNetB0 with explainable AI solution for real-time monitoring, Signal, Image and Video Processing, 20(10).DOI