Improved U-Net Network for Semantic Segmentation of Solar Panel Infrared Images

This study proposes an enhanced U-Net-based model addressing critical challenges in solar panel infrared image segmentation. Through systematic modifications including white-edge processing, VGG16 encoder integration, and Res-CBAM attention mechanisms, the model achieves superior segmentation accuracy compared to existing architectures. Comprehensive experiments demonstrate 3.45% higher mIoU than conventional approaches, establishing its effectiveness for photovoltaic system monitoring applications.

1. Methodology

1.1 White-Edge Processing

The preprocessing stage implements a novel white-edge enhancement technique to improve solar panel boundary detection:

$$ M(x,y) = \begin{cases}
255 & \text{if } (x,y) \in \text{panel contour} \\
1 & \text{if } (x,y) \in \text{panel region} \\
0 & \text{otherwise}
\end{cases} $$

This transformation generates enhanced training data through pixel-wise operations:

$$ I'(x,y) = I(x,y) \cdot (1 – M(x,y)) + 255 \cdot M(x,y) $$

1.2 Network Architecture

The modified U-Net structure combines VGG16 encoder with attention mechanisms:

Layer Output Size Parameters
VGG16 Block1 512×512×64 2×3×3 conv
VGG16 Block2 256×256×128 2×3×3 conv + maxpool
VGG16 Block3 128×128×256 3×3×3 conv + maxpool
Res-CBAM Module 64×64×512 7×7 spatial attention

1.3 Res-CBAM Mechanism

The hybrid attention module combines channel and spatial processing:

$$ \text{Channel Attention: } M_c(F) = \sigma(\text{MLP}(\text{AvgPool}(F)) + \sigma(\text{MLP}(\text{MaxPool}(F))) $$
$$ \text{Spatial Attention: } M_s(F) = \sigma(f^{7\times7}([\text{AvgPool}(F); \text{MaxPool}(F)])) $$
$$ \text{Output: } F” = F’ + M_s(F’) \otimes F’ $$

2. Experimental Analysis

2.1 Performance Comparison

Model mIoU Accuracy
Deeplabv3+ 97.32% 98.17%
PSP-Net 96.28% 97.65%
U-Net 97.72% 98.37%
Proposed 99.73% 99.87%

2.2 Ablation Study

Components mIoU
Baseline U-Net 97.72%
+ White-edge 99.41%
+ VGG16 99.22%
Full Model 99.73%

2.3 Computational Efficiency

The model achieves real-time performance with:

$$ \text{FPS} = 38.6 \quad \text{on NVIDIA RTX 3080 Ti} $$
$$ \text{Parameters} = 25.4M \quad \text{FLOPs} = 45.7G $$

3. Technical Advantages

The proposed architecture demonstrates three key innovations for solar panel segmentation:

  1. Boundary Preservation: White-edge processing improves edge IoU by 12.7% compared to standard preprocessing
  2. Context Awareness: VGG16 encoder increases feature reuse ratio by 34% over ResNet variants
  3. Noise Immunity: Res-CBAM reduces background misclassification by 41% in complex environments

4. Implementation Details

Training configuration for solar panel segmentation:

$$ \text{Learning Rate} = 10^{-4} \quad \text{Batch Size} = 16 $$
$$ \text{Loss Function: } \mathcal{L} = -\sum y_i\log p_i $$
$$ \text{Optimizer: } \beta_1=0.9, \beta_2=0.999 $$

5. Conclusion

This enhanced U-Net architecture establishes new benchmarks for solar panel infrared image segmentation, achieving 99.73% mIoU on challenging real-world datasets. The integration of white-edge processing, optimized encoder networks, and adaptive attention mechanisms provides robust solutions for photovoltaic system inspection and maintenance.

Future work will focus on model compression for edge deployment and multi-spectral fusion techniques. The proposed methodology offers significant potential for improving solar farm operational efficiency through automated defect detection and performance monitoring.

Scroll to Top