Electroluminescence (EL) imaging is widely used for photovoltaic (PV) module inspection, yet EL defect detection remains challenging due to the need for high-resolution inputs, low-contrast defects, and strong structured background patterns. To address these issues, we propose MSW-Mamba-Det, an end-to-end defect detection framework built on RT-DETR, comprising three components. (1) MSW-Mamba, a multi-scale windowed state-space module, adopts a Local/Stripe/Grid architecture to jointly model fine details and long-range dependencies; the Stripe branch strengthens directional continuity for elongated defects, while the Grid branch introduces coarse global context to improve cross-region consistency. Saliency- and gradient-guided gating is further used to suppress background-induced false responses. (2) DetailAware compensates for detail attenuation by restoring high-frequency textures and edges through multi-scale local enhancement, and applies pixel-wise adaptive gating to integrate global semantics and mitigate smoothing effects in deep representations. (3) PAFB (Pyramid Attention Fusion Block) aligns adjacent-scale features and improves multi-scale fusion, enhancing localization stability across defect sizes. Experiments on two public EL datasets show that MSW-Mamba-Det achieves AP50:95 of 60.4% on PV-Multi-Defect-main and 68.0% on PVEL-AD, improving over RT-DETR by 2.5 points (from 57.9% to 60.4%) and 2.2 points (from 65.8% to 68.0%), respectively. MSW-Mamba-Det also outperforms 12 representative baselines, including CNN-, Transformer-, and recent YOLO-based models, in AP50:95 on both datasets, with particularly strong performance on medium and large defects. These results demonstrate the effectiveness of the proposed modules for robust PV EL defect inspection under low-contrast and structured-background conditions.
Wang et al. (Thu,) studied this question.