With the rapid development of distributed photovoltaic power stations, efficient detection of surface contamination on solar panels has become crucial for maintaining energy conversion efficiency. This paper proposes an enhanced Single Shot MultiBox Detector (SSD) framework optimized for embedded deployment, achieving real-time detection of common defects including bird droppings, dust accumulation, and physical damage.

1. Methodology
The proposed architecture combines MobileNetV3 backbone with coordinate attention mechanism, significantly reducing computational complexity while maintaining detection accuracy. The feature extraction process can be formulated as:
$$F_{out} = CA(DSConv_{3\times3}(ExpansionConv_{1\times1}(F_{in})))$$
where $DSConv_{3\times3}$ denotes depthwise separable convolution and $CA$ represents the coordinate attention module. The inverted residual block structure enables efficient channel expansion:
$$C_{out} = SE(Linear(Conv_{1\times1}(ReLU6(Conv_{3\times3}(Conv_{1\times1}(C_{in}))))))$$
2. Enhanced Feature Processing
The coordinate attention mechanism enhances spatial awareness through dual-directional pooling:
$$z^h(h) = \frac{1}{W}\sum_{0\leq i<w}x(h,i)$$ $$z^w(w)="\frac{1}{H}\sum_{0\leq" <p="" jThese spatial descriptors are concatenated and processed through convolutional layers to generate attention weights:
$$A = \text{sigmoid}(f^{1\times1}([z^h, z^w]))$$
3. Experimental Validation
Comparative experiments demonstrate the superiority of our solar panel detection framework:
| Model | mAP (%) | Params (M) | GFLOPS | FPS |
|---|---|---|---|---|
| Faster R-CNN | 80.4 | 191.4 | 240.0 | 3.2 |
| YOLOv3 | 72.6 | 61.5 | 20.6 | 21.1 |
| Proposed | 82.7 | 14.1 | 13.8 | 45.6 |
The detection accuracy for various solar panel defects shows significant improvement:
| Defect Type | Precision (%) | Recall (%) | F1-Score |
|---|---|---|---|
| Bird Droppings | 94.2 | 91.7 | 0.929 |
| Dust Accumulation | 89.5 | 88.3 | 0.889 |
| Physical Damage | 92.1 | 90.6 | 0.913 |
4. Computational Efficiency
The proposed model achieves 68.9% reduction in computational load compared with baseline SSD:
$$Complexity_{reduction} = 1 – \frac{GFLOPS_{proposed}}{GFLOPS_{original}} = 1 – \frac{13.8}{44.5} \approx 0.689$$
Through optimized network architecture and attention mechanisms, the system maintains high detection accuracy while significantly reducing resource requirements, making it particularly suitable for solar panel inspection using edge computing devices.
5. Data Augmentation Strategy
The Mosaic augmentation technique improves model generalization by creating composite training samples:
$$I_{aug} = \bigcup_{i=1}^4 \phi(I_i, \lambda_i)$$
where $\lambda_i$ represents random scaling factors (0.5 ≤ λ ≤ 1.5) and $\phi$ denotes affine transformation operations. This approach increases effective training data diversity by 3.8× compared with basic augmentation methods.
6. Conclusion
Experimental results demonstrate that the proposed lightweight detection framework achieves 45.6 FPS inference speed with 82.7% mAP on solar panel defect detection tasks. The integration of depthwise separable convolutions and spatial attention mechanisms provides an effective solution for real-time photovoltaic system maintenance, significantly outperforming conventional computer vision approaches in both accuracy and computational efficiency.
