S3Former: Self-supervised High-resolution Transformer for Solar PV Profiling

Minh Tran, Adrian de Luis, Haitao Liao, Ying Huang, Roy McCann, Alan Mantooth, Jackson David Cothren, Ngan LearXiv 2024 · DOI

Abstract

Accurate mapping of small-scale solar photovoltaic (PV) installations is essential for grid management and energy forecasting. However, traditional computer vision models often struggle with the unique challenges of aerial imagery, such as visual confusion between solar panels and other urban features. This paper introduces S3Former, an end-to-end transformer-based framework that leverages a masked attention mechanism and a domain-specific self-supervised learning (SSL) pretext task to achieve state-of-the-art performance in solar PV segmentation.

Introduction and Problem Statement

As decentralized solar energy production grows, utility companies and policymakers require precise spatial data to maintain grid stability. Identifying these installations from high-resolution satellite or aerial imagery presents several distinct hurdles:

  1. The "Two-Stage" Bottleneck: Many existing systems rely on a separate classifier to identify images containing solar panels before attempting segmentation. Failure at the classification stage prevents any downstream detection.
  2. Scale and Resolution: Solar panels are often extremely small relative to the ground sampling distance, making them easy for standard convolutional neural networks (CNNs) to overlook.
  3. Visual Confusion: Models frequently encounter inter-class heterogeneity, where solar panels resemble roof tiles, windows, or pool reflections. Conversely, intra-class homogeneity refers to the wide variety of visual appearances different solar technologies can exhibit.
  4. The Domain Gap: Most AI models are pre-trained on terrestrial datasets like ImageNet. These weights do not translate effectively to the specialized textures and top-down perspectives of remote sensing data.
Figure 1: Visual challenges in solar PV mapping, including inter-class heterogeneity and small object identification.

Methodology: The S3Former Framework

S3Former moves away from traditional CNN architectures in favor of a Transformer-based approach. The system is composed of a multi-scale backbone network, a pixel decoder using attention to correlate fine details with global context, and a Masked Attention Mask Transformer that uses learnable queries to predict installation proposals directly.

Self-Supervised Learning (SSL) Pretext Task

A core innovation of S3Former is its domain-specific pre-training. Before supervised training on labeled data, the model undergoes a self-supervised phase using a "teacher-student" distillation method (inspired by DINO). By training on massive amounts of unlabeled aerial imagery, the model learns to recognize that different augmented views of the same ground patch represent the same underlying structure.

Figure 6: Examples of data augmentations used in the SSL pretext task, including color jitter, noise, and cropping.

Experimental Setup and Datasets

The model was rigorously evaluated across three diverse geographic regions to ensure robustness:

  • USGS, California: 30 cm/pixel resolution (~37,000 samples).
  • IGN, France: 20 cm/pixel resolution (~17,000 samples).
  • GGE, France: 10 cm/pixel resolution (~28,000 samples).

These datasets encompass a wide range of urban and rural architectural styles, providing a comprehensive test of the model's ability to generalize across different lighting conditions and landscapes.

Key Results and Insights

S3Former consistently outperformed established state-of-the-art models like DeepLabv3+ and UperNet. In the USGS California dataset, the model achieved an Intersection over Union (IoU) of 89.24% and an F1-score of 94.13% using a ResNet-101 backbone.

Key takeaways from the evaluation include:

  • Domain-Specific Pre-training is Critical: The SSL phase allowed the backbone to adapt to aerial textures, leading to a significant accuracy boost over standard ImageNet weights.
  • Attention Solves the "Small Object" Problem: The transformer-based pixel decoder maintains the sharpness required to identify isolated panels that CNNs might otherwise blur into the background.
  • End-to-End Efficiency: By eliminating the separate classification step, S3Former avoids the error propagation common in two-stage systems.

Conclusion

S3Former demonstrates that combining transformer architectures with domain-specific self-supervision can overcome the traditional pitfalls of aerial object detection. While the model shows some sensitivity to lower-resolution data (as seen in the IGN France results) and requires higher computational resources than simple CNNs, its ability to ignore visual distractors like pool reflections marks a significant advancement in solar PV profiling. Future work will explore incorporating multi-temporal data to further refine detection accuracy over time.

Summary updated

BibTeX
@misc{tran2024s,
  author = {Minh Tran and Adrian de Luis and Haitao Liao and Ying Huang and Roy McCann and Alan Mantooth and Jackson David Cothren and Ngan Le},
  title = {{S3Former: Self-supervised High-resolution Transformer for Solar PV Profiling}},
  year = {2024},
  eprint = {2405.04489},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.04489},
}
Figure