Photovoltaic Panel Segmentation from High-Resolution Remote Sensing Images

In recent years, the global new energy industry, represented by the photovoltaic sector, has experienced rapid development. Acquiring accurate information about the area and location of solar panels is of significant importance for managing, planning, evaluating, and utilizing existing resources. This provides crucial data support for governmental decision-making and promotes the development of renewable energy industries. With the rapid advancement of deep learning, solar panel segmentation methods based on remote sensing images have gradually become a research hotspot. However, existing solar panel segmentation methods still face research gaps, opportunities, and challenges. Current datasets often lack Near-Infrared (NIR) bands, which may lead to the loss of critical information during solar panel extraction. Existing methods primarily focus on spatial features such as texture and shape, while neglecting the analysis of the spectral characteristics of solar panels. Additionally, solar panels are often prone to confusion with background objects during segmentation. To address these limitations, I conducted a series of studies and constructed two improved solar panel segmentation methods based on high-resolution remote sensing imagery.

I first constructed a four-band solar panel dataset named Photovoltaic Panels in the Eastern and Western Regions of China (PPEWRC), which better supports applications in remote sensing monitoring, target recognition, and security prevention in China. I then proposed a solar panel segmentation method based on convolution and optical features (PKGPVN) to reduce the confusion between solar panels and background objects. Finally, I proposed a solar panel segmentation method based on visual state space and directional features (CSPPNet) to further improve segmentation accuracy.

1. Introduction

1.1 Background and Significance

Due to the increase in human activities and the significant reduction of traditional energy sources such as oil and natural gas, people have become increasingly committed to the concept of sustainable development. In 2020, China proposed the goal of achieving carbon dioxide emissions peaking before 2030 and carbon neutrality before 2060. To achieve this goal, it is necessary to break the energy system centered on fossil fuels, reduce the proportion of fossil fuel consumption, accelerate the adjustment of the energy structure, promote the development of renewable energy such as wind energy, solar energy, and biomass energy, and realize the transformation and revolution of energy. As an important part of replacing traditional energy, renewable energy plays a key role in addressing climate change and achieving carbon neutrality. It is of great significance for building a resource-saving and environment-friendly society.

Solar energy resources, as a green new energy source, have gradually increased their proportion in global energy consumption and have shown strong momentum in the field of new energy development. Compared with other conventional energy sources, solar energy is one of the most abundant natural resources that humans can utilize, with the characteristics of high efficiency, environmental friendliness, and inexhaustibility. This trend toward sustainable energy transformation is expected to grow significantly in the coming years, making solar energy an increasingly important resource.

Photovoltaic power generation is a technology that directly converts solar energy into electrical energy by utilizing the photovoltaic effect at the semiconductor interface. With the advancement of technology and the attention of governments in various countries, photovoltaic power generation has gradually become one of the most promising low-carbon energy generation methods, basically meeting global electricity demand. In 2024, the national newly installed photovoltaic capacity reached 278 GW, and the cumulative installed photovoltaic power generation capacity reached 886 GW, maintaining the first place globally. While actively responding to the national renewable energy policy strategy, various provinces in China fully consider factors such as regional geographical resource advantages and terrain conditions, adapt to local conditions to promote photovoltaic power generation development, and create a series of innovative development models such as fishery-solar complementarity, pastoral-solar complementarity, agricultural-solar complementarity, and rooftop complementarity.

Solar panels, as the main collection medium of solar energy, have been widely used in various regions and scenarios. With the significant increase in the application rate and scope of solar panels, automated management of solar panels has become a practical industrial demand. Automatically, quickly, and accurately identifying and segmenting solar panels is crucial for estimating photovoltaic power generation, analyzing regional distribution and dynamic changes, and providing data support for government decision-making. With the deep implementation of the dual carbon strategy, China is accelerating the construction of large-scale photovoltaic bases focused on desert, Gobi, and wasteland areas. Through manual visits and surveys to observe and analyze solar panels, the advantages are that the quantity, color, texture, inclination angle, and direction angle of solar panels are specific and easy to obtain, but this method is labor-intensive, time-consuming, costly, inefficient, and easily restricted by the environment, making it difficult to meet practical needs.

In recent years, remote sensing technology has developed rapidly, featuring high efficiency, wide coverage, low cost, and rapid response, facilitating staff to grasp ground target information in a timely manner. Accurate recognition of solar panels and automatic acquisition of installation information through remote sensing technology have become current research hotspots and have made significant progress. At present, remote sensing can be divided into ground remote sensing, aerial remote sensing, and space remote sensing according to the different sensor platforms. With the gradual increase in the distance between the platform and the ground, the area covered by the images gradually expands, and the spatial resolution of the images decreases accordingly. In the current research status, spatial resolution plays a crucial role in target extraction and semantic segmentation tasks. Higher-resolution images can provide more effective information for deep learning models. For example, when using remote sensing images with a spatial resolution of 0.3 meters for solar panel segmentation, the performance is excellent, while for remote sensing images with a spatial resolution of 1.2 meters, the accuracy of solar panel segmentation drops sharply. Therefore, high-quality image data is very important for the accuracy of solar panel segmentation.

For enterprises, conducting research on solar panel segmentation based on remote sensing images can help staff more accurately understand the distribution of photovoltaic power stations, provide precise data support for subsequent resource management, planning, evaluation, and utilization, and is of great significance for improving the monitoring efficiency and operation management level of photovoltaic power generation systems and promoting the development of the renewable energy industry.

In the fields of national security and public safety, accurately identifying and segmenting solar panels based on remote sensing images can monitor the installation of large-scale solar panels, promptly detect illegal construction, damage, and other violations, and strengthen the investigation and crackdown on related criminal activities. Through comprehensive security monitoring and risk assessment, the initiative and predictability of public security work can be enhanced, potential security risks can be discovered and prevented in a timely manner, and the efficiency of handling emergencies can be improved. Based on the distribution, scale, and prior knowledge of solar panels, it is possible to achieve spatiotemporal inversion of local electricity consumption and potential personnel scale, completing the upgrade from ground object recognition to scene perception.

1.2 Related Work

In recent years, relevant scholars at home and abroad have carried out extensive research on solar panel segmentation methods from remote sensing images. Existing methods can be divided into three categories: methods based on traditional image processing, methods based on machine learning, and methods based on deep learning.

Traditional image processing methods. In 2017, Salamanca et al. designed a solar panel segmentation method based on feature vectors. The feature vectors were defined by the gray-level co-occurrence matrix, which represents image texture by calculating the frequency of pixel pairs with specific values and spatial relationships in the image. They applied the method to a set of grayscale images, and the results showed fewer false positives but more false negatives due to image scale changes. In 2020, Carletti et al. combined the Canny algorithm and Hough transform to detect straight lines on the edges of solar panels, and then extracted the edges of each solar panel from these lines based on prior knowledge of the shape of solar panels. Using the shape of solar panels as a prior, solar panels can be accurately extracted from a single scene containing photovoltaic arrays. However, in complex scenes, the extraction accuracy is limited due to the interference of similar objects such as buildings and greenhouses.

These traditional methods have the advantages of fast speed and strong interpretability, but they all suffer from problems such as susceptibility to background interference, insufficiently accurate segmentation, and low automation. In addition, the segmentation accuracy of these methods at high resolution needs to be improved.

Machine learning methods. Typical machine learning-based methods include Support Vector Machine (SVM) classifiers and Random Forest (RF) classifiers. These methods assign categories to each pixel in the image and then perform post-processing to identify solar panel regions. In 2015, Malof et al. used SVM to detect individual rooftop solar panels in high-resolution color satellite images and aerial photography. In 2019, Perez et al. proposed a system for detecting solar panel locations through machine learning methods, capable of individually classifying each solar panel. In 2022, Zhang et al. used the random forest model to classify photovoltaic power stations on the Google Earth Engine platform. This pixel-based model can use original resolution pixels without further segmentation of the classification results. In the same year, Chen et al. used machine learning classifiers to identify large-scale photovoltaic power stations. Specifically, they used SVM, RF, and XGBoost classifiers to evaluate the effects of original spectral features, normalized solar panel extraction indices, and topographic features on model performance. In 2023, Muhammed et al. used SVM and Naive Bayes algorithms to automatically extract solar panels from building roofs in satellite imagery and evaluated the photovoltaic potential.

Machine learning-based methods are highly interpretable and do not require high-performance hardware. However, these methods are relatively complex in computation, low in efficiency, and not suitable for large-scale, massive dataset solar panel segmentation tasks.

Deep learning methods. Deep learning methods have powerful feature learning capabilities, realize automatic feature extraction, have strong adaptability to complex data, and high efficiency. With deep learning networks showing competitiveness in image segmentation and ground object extraction, deep learning-based methods have also demonstrated superior performance in the field of solar panel segmentation. Deep learning-based methods can be divided into two categories: classification network-based methods and semantic segmentation-based methods.

In 2018, Stanford University proposed a deep learning framework called DeepSolar, which inputs more than 300,000 images into a deep neural network for pixel-level classification. In addition to determining whether an area contains solar panels, they also used a semi-supervised method to locate and estimate the size of solar panels. In 2022, Parhar et al. used the image classifier EfficientNet-B7 to identify images containing solar panels, and then used the semantic segmentation model U-Net to identify pixels belonging to solar panels. Although these methods achieve relatively accurate solar panel region extraction, the prediction results often confuse solar panels with objects such as greenhouses, dark buildings, and roads.

Some classic semantic segmentation models such as U-Net, SegNet, and DeepLabv3+ have been widely applied in the field of solar panel segmentation. In 2021, Costa et al. combined four deep learning architectures with four backbone networks and tested the solar panel segmentation performance under 16 combinations. In 2023, Zhu et al. adopted a strategy of improving the deep learning network DeepLabv3+ and optimizing the loss function, proposing a detail-oriented deep learning network to enhance the solar panel segmentation region in satellite images. In the same year, Wang et al. proposed a new semantic segmentation model called PVNet for extracting solar panels of large-scale photovoltaic systems. By fusing local features and global features, they extracted solar panel regions of large photovoltaic systems and optimized the extraction results through residual refinement. In 2024, Guo et al. proposed a photovoltaic segmentation method called TransPV, which incorporated a vision Transformer into the encoder of the U-Net structure to enhance global information modeling and improve the model’s ability to handle solar panels of different sizes.

1.3 Evaluation Metrics

Solar panel segmentation technology in remote sensing images has been widely applied in tasks such as security prevention and target detection. However, before practical application, a comprehensive evaluation of segmentation results is needed, mainly divided into subjective evaluation and objective evaluation. Subjective evaluation involves manual observation and judgment, which can intuitively reflect the effect of the model in practical applications. However, this subjective evaluation method has the defect of manual intervention. To overcome this problem, researchers have proposed objective evaluation methods that can quantitatively compare segmentation effects.

Objective evaluation provides a quantitative and objective measurement of the performance of solar panel segmentation models. Solar panel segmentation is a binary classification problem in image segmentation. Commonly used indicators for evaluating the quality of solar panel segmentation results include IoU, Precision, Recall, and F1-score. The calculation process is shown below:

$$
IoU = \frac{TP}{TP+FP+FN}
$$

$$
Precision = \frac{TP}{TP+FP}
$$

$$
Recall = \frac{TP}{TP+FN}
$$

$$
F1\text{-}score = \frac{2 \times Precision \times Recall}{Precision + Recall}
$$

where TP (True Positive), FP (False Positive), FN (False Negative), and TN (True Negative) form the binary confusion matrix. IoU reflects the degree of overlap between predicted values and true values; Precision indicates the proportion of predicted positive samples that are actually positive, reflecting the model’s ability to distinguish negative samples; Recall indicates how many positive samples in the true values are successfully predicted, reflecting the model’s ability to identify positive samples; F1-score comprehensively considers Precision and Recall, reflecting the robustness of the model. Larger values of these four indicators indicate higher quality of segmentation results.

Table 1: Confusion Matrix
Positive (True) Negative (True)
Positive (Predicted) TP FN
Negative (Predicted) FP TN

1.4 Major Challenges

Existing solar panel segmentation methods based on remote sensing images have achieved good results, but there are still some research gaps, opportunities, and challenges, mainly in the following aspects:

(1) Lack of NIR band information in solar panel datasets. Optical remote sensing solar panel datasets (such as AIR-PV and PVP) contain only three visible bands, namely red, green, and blue. However, original high-resolution satellite sensors carry a high spatial resolution panchromatic sensor and a low spatial resolution multispectral sensor. In fact, multispectral images contain four bands from visible light to near-infrared. NIR bands can not only represent ground objects as vegetation indices, but also identify plastics, minerals, and water bodies. Existing datasets lack NIR bands, causing models to lose some effective information in the process of segmenting solar panels.

(2) Lack of spectral characteristic analysis of solar panels. Existing deep learning-based methods mainly focus on the analysis of spatial features of solar panels, such as shape and texture, but lack the study of spectral characteristics. In fact, spectral characteristics are very important for distinguishing solar panels from background. Solar panels have significant characteristics in different bands, which are conducive to extracting solar panels from complex backgrounds.

(3) Solar panels are easily confused with background objects. Remote sensing images have complex backgrounds, and there are some background objects similar to solar panels in size, shape, and color, such as shadows, greenhouses, dark buildings, black plastic, and roads. These easily confused background objects add challenges to solar panel segmentation tasks and easily cause false detection, thereby affecting the accuracy of solar panel segmentation.

Therefore, this research aims to fill these gaps and address these challenges by proposing new methods to achieve accurate and efficient segmentation of solar panels from high-resolution remote sensing images, meeting the practical needs of public security work.

1.5 Organization

The remainder of this thesis is organized as follows. Chapter 2 describes the construction of a high-quality solar panel segmentation dataset. Chapter 3 proposes a convolution and optical feature-based solar panel segmentation method. Chapter 4 proposes a visual state space and directional feature-based solar panel segmentation method. Chapter 5 concludes the thesis and discusses future work.

2. Construction of High-Resolution Optical Remote Sensing Solar Panel Dataset

2.1 Overview

In data-driven deep learning models, a large amount of labeled training data can promote deep learning models to fully demonstrate their powerful learning capabilities. In the field of remote sensing, high-quality datasets have become the premise for research on various methods and are increasingly important in solar panel segmentation tasks. Up to now, relevant scholars at home and abroad have published optical remote sensing solar panel segmentation datasets with different remote sensing platforms, sample sizes, and geographic locations, laying the foundation for research on solar panel segmentation algorithms based on deep learning. However, existing solar panel datasets (such as AIR-PV and PVP) usually contain only three visible light bands, and no data with NIR band information yet exists. In fact, original high-resolution satellite sensors carry a high spatial resolution panchromatic sensor and a low spatial resolution multispectral sensor, such as GF-1, GF-2, GF-6, GF-7, WorldView-2, and WorldView-3. Among them, multispectral images contain four bands from visible light to NIR. Studies have shown that NIR bands can not only represent ground objects as vegetation indices, but also identify plastics, minerals, and water bodies. When using data lacking NIR bands, the model may lose some effective information in the process of segmenting solar panels.

Therefore, I utilized GF-2 satellite remote sensing images to construct a RGB-NIR four-band optical remote sensing solar panel dataset of eastern and western China (PPEWRC), containing distributed photovoltaic regions and centralized photovoltaic systems under different backgrounds and geographic locations. This dataset not only fills the gap of NIR information in existing optical datasets, but also serves as test data to verify the generalization and robustness of the proposed methods.

2.2 Data Source

The remote sensing images used in this study come from the GF-2 satellite. In the past decade, China has independently launched a number of GaoFen series satellites, such as multispectral satellites GF-1 and GF-2, radar satellite GF-3, hyperspectral satellite GF-5, and stereo mapping satellite GF-7. The advantage of the China GaoFen series satellites is wide coverage and fast data acquisition. The GF-2 satellite was launched in September 2014, carrying panchromatic and multispectral sensors. The former can acquire single-band panchromatic images with a spatial resolution of 0.8 meters, while the latter can acquire four-band multispectral images with a spatial resolution of 3.2 meters. The detailed parameters of GF-2 are shown in Table 2.

Table 2: GF-2 Satellite Parameters
Data Type Band Name Wavelength Range (nm) Spatial Resolution (m)
Multispectral Blue 450-520 3.2
Multispectral Green 520-590 3.2
Multispectral Red 630-690 3.2
Multispectral NIR 770-890 3.2
Panchromatic PAN 450-900 0.8

2.3 PPEWRC Dataset Construction

In this study, GF-2 satellite images covering eastern and western China were downloaded from the China Centre for Resources Satellite Data and Application. A total of 46 L1A-level images with cloud coverage less than 10% were selected. Taking a region in Xinjiang as an example, the panchromatic image and the corresponding multispectral image are shown in the left and right parts of Figure 1, respectively. Through the following preprocessing steps, a standard high-quality solar panel segmentation dataset was formed.

(1) Radiometric calibration. Radiometric calibration was performed on the panchromatic and multispectral images. The purpose is to convert the Digital Number (DN) of image pixels into absolute radiance values, eliminating the sensor’s own errors. The radiance value represents the energy reflected from the object surface back to the satellite, and the calculation formula is shown below:

$$
Radiance = Gain \times DN + Bias
$$

(2) Orthorectification. After radiometric calibration, orthorectification was performed on the panchromatic and multispectral images. Orthorectification corrects pixel displacement caused by sensor errors or terrain undulation by adding ground control points and using a digital elevation model, thereby eliminating geometric deformation of the image.

(3) Image cropping. Since the spatial resolution of the panchromatic image is four times that of the multispectral image, to make each image patch contain the same geographic information, the sizes of the multispectral image patches need to satisfy one-sixteenth of the size of the panchromatic image patches. Therefore, I cropped 46 pairs of panchromatic and multispectral images into 512×512 and 128×128 patches, respectively. A total of 2305 meaningful image pairs were obtained (each pair contains one panchromatic image and one multispectral image).

(4) Image registration. Although the above operations eliminated systematic errors caused by sensors and terrain, there is still some offset between the pixels of the panchromatic-multispectral image pairs. To ensure the accuracy of subsequent image fusion and solar panel segmentation, registration of the panchromatic and multispectral images is required. I adopted the Auto-Correlated Normalized Cross-Power Spectrum (ANCPS) matching method, which integrates a circular shift matrix into the model using the correlation of components in the NCPS, effectively reducing the influence of noise and eliminating differences in mismatched regions between images.

(5) Image fusion. Multispectral images have rich spectral information but low spatial resolution, which reduces the accuracy of target extraction. If the panchromatic image and the multispectral image are fused, the ability of the model to identify solar panels can theoretically be further improved. Therefore, for each registered panchromatic and multispectral image pair, I used the progressive pansharpening method based on deep spectral transformation (P2Sharpen). The method first designs a spectral transformation network to reduce the modal difference between panchromatic data and multispectral data, and then performs pansharpening at reduced and full resolutions in stages, effectively balancing the model performance at different scales. After fusion, 512×512 four-band (blue, green, red, and NIR) fused images with a spatial resolution of 0.8 meters were obtained. The fused images preserve the spatial texture information of the panchromatic images and the spectral information of the multispectral images.

(6) Data annotation. I used the Region of Interest (ROI) annotation tool in ENVI software to perform pixel-by-pixel annotation on the fused solar panel images. After multiple rounds of inspection and correction, high-quality ground truth labels were formed. Among them, the pixel value of solar panels is (255, 255, 255), and other pixel values are (0, 0, 0).

(7) Data augmentation. I augmented the dataset by horizontal flipping and vertical flipping. Since GF-2 satellite images contain geographic location and direction information, rotation operations were not performed to completely preserve the directional features of solar panels.

2.4 Dataset Scale and Sample Distribution

The PPEWRC dataset covers 24 regions in China, including Xinjiang, Tibet, Qinghai, Sichuan, Gansu, Ningxia, and Shaanxi in western China, and Jiangsu and Zhejiang in eastern China. Among them, Tibet and Qinghai are among the regions with the most abundant solar energy in China, and the solar panels in these two regions account for one-third of the total PPEWRC dataset. The original images consist of 2305 images, and after data augmentation, there are 6915 images in total, including 4515 positive samples and 2400 negative samples. The image backgrounds are very rich, including impervious layers, water bodies, vegetation, and bare land.

Different provinces have different background characteristics. For example, Jiangsu and Zhejiang provinces are located on the eastern coast of China, and solar panels are mostly installed on water bodies; therefore, the solar panels in these two provinces are mostly backed by water bodies. Sichuan province is rich in vegetation, so solar panels are often accompanied by vegetation. Qinghai, Tibet, and Xinjiang are located in western China with more deserts, Gobi, and wastelands, so most solar panels are backed by bare land.

2.5 Comparison with Public Datasets

Table 3 gives the detailed information of the PPEWRC dataset and public datasets. The PPEWRC dataset is saved in TIFF format with a total of 6915 samples. The spatial resolution of the images is 0.8 meters, including four bands: blue, green, red, and NIR. The AIR-PV dataset contains more than 300,000 solar panels distributed in five provinces in western China (Inner Mongolia, Qinghai, Gansu, Shaanxi, and Yunnan). The spatial resolution is also 0.8 meters, composed of red, green, and blue bands, with a total of 5000 positive and negative samples. The PVP dataset comes from Google Earth, Tianditu, and Mapbox, covering 13 provinces in China. The spatial resolution is 0.54 meters (Google Earth), 0.6 meters (Tianditu), and 0.5 meters (Mapbox), respectively. The images are saved in TIFF format with three bands: red, green, and blue, and there are 4640 positive samples without negative samples.

Table 3: Dataset Information
Name Year Source Resolution Size Number Bands Format
PPEWRC 2024 GF-2 0.8 512×512 6915 4 Geo TIFF
AIR-PV 2023 GF-2 0.8 512×512 5000 3 PNG
PVP 2023 Google Earth 0.54 512×512 4640 3 TIFF
Tianditu 0.6
Mapbox 0.5

Compared with public datasets, the PPEWRC dataset has rich samples, including positive and negative samples of different provinces and background types. In addition, the most prominent advantage of the dataset I constructed is the inclusion of the NIR band as an integral part of the image composition. When facing complex scenes, it can achieve high accuracy and excellent generalization of solar panel segmentation.

3. Photovoltaic Panel Segmentation Based on Convolution and Optical Features

3.1 Problem Analysis

At present, existing deep learning-based solar panel segmentation models have achieved good results, but there are still certain deficiencies and limitations. First, existing methods mostly adopt popular network frameworks such as U-Net, DeepLabv3+, and FPN, and improve them by adding feature extraction and feature optimization modules. These methods lack targeted analysis of specific targets such as solar panels and do not link the characteristics of solar panels themselves (such as color, shape, or size) with the design of the network model. Second, remote sensing images have complex backgrounds, and solar panels are easily confused with other background targets such as buildings, greenhouses, glass, and roads. Third, in U-shaped network structures represented by U-Net, U-Net+, and U2-Net, there are many down-sampling operations. After continuous down-sampling, the resolution of feature maps gradually decreases, and the model easily loses low-level feature information, resulting in reduced completeness of solar panel segmentation. Fourth, the edges of solar panel segmentation results have blurred and unsmooth phenomena, meaning that the classification of edge pixels is inaccurate. When estimating the area and total power generation of solar panels, these inconspicuous errors may accumulate, resulting in inaccurate results, which is not conducive to data analysis and decision-making.

3.2 Network Architecture

In response to the difficulties and challenges described above, I proposed a solar panel segmentation method based on convolution and optical features, called PKGPVN. First, according to the optical characteristics of solar panels, I constructed a photovoltaic index as prior knowledge to constrain the segmentation process of solar panels, improving the problem of target or background misjudgment. Second, to reduce the loss of shallow features during down-sampling and further improve the accuracy and completeness of solar panel segmentation, I proposed a residual convolution hybrid attention module (RCHAM), which introduces multi-layer convolution and attention mechanism into the skip connection part of the encoder-decoder structure to strengthen the information interaction between shallow features and deep features. Finally, to reduce the problem of blurred boundaries in segmentation results, I designed a multi-level feature loss function to capture boundary contour information and improve the accuracy of edge segmentation.

The overall architecture of PKGPVN is shown in the framework diagram. First, the photovoltaic index (PVI) is constructed and concatenated with the solar panel image, then input into the network. The network framework uses Residual U-blocks (RSU) to form a U-shaped encoder-decoder structure. On this basis, the residual structure, multi-layer convolution, and attention mechanism are introduced into the skip connection part, called RCHAM. This module is used to reduce the semantic difference between shallow and deep features, improve the extraction ability of effective features, and reduce the loss of local and global context information. Then, 3×3 convolution and Sigmoid activation function are used to generate sub-prediction maps from the decoder and the last encoder, and the sub-prediction maps are up-sampled to the same size as the input image. The final prediction map \(P_{fuse}\) is generated from the concatenated sub-prediction maps through 1×1 convolution and Sigmoid activation function. Finally, a multi-scale feature loss (FL) is designed to supervise the output results from seven prediction maps and the ground truth at the feature level using L2 norm loss.

The encoder and decoder use multi-level RSU modules. The advantage is that the network is deeper and the high-resolution feature extraction is more sufficient. In addition, the proposed method is only based on RSU modules, which is relatively flexible and can be trained from scratch without pre-trained backbone networks, adapting to different experimental environments with small performance loss.

Photovoltaic Index. From the perspective of output energy, adding any band linearly independent of the original image in multispectral or hyperspectral remote sensing image target detection tasks is always beneficial to improve the performance of the constrained energy minimization operator. According to this theory, I added bands useful for distinguishing targets and background on high-resolution optical remote sensing images to reduce the phenomenon that most models are easily confused with other non-solar panel ground objects during solar panel segmentation.

The core part of crystalline silicon photovoltaic modules is the solar cell, which mostly appears dark blue to enhance the absorption of sunlight. To further determine the optical differences among the bands of solar panels, I randomly selected 100 images and analyzed the pixel values of each band of solar panels and non-solar panels (roads, substations, vegetation). Compared with other ground objects, solar panels have a prominent characteristic: the pixel mean value of the blue band and the red band differ greatly, and the pixel values of the blue band, green band, and red band decrease sequentially. In addition, related scholars’ research shows that the spectral curve of solar panels shows a reflection peak in the blue band and an absorption valley in the red band, which is consistent with my statistical results.

To effectively improve the performance of solar panel segmentation, the added band cannot be a linear expression of the original image bands. Therefore, according to the optical characteristics and reflection characteristics of solar panels in the blue and red bands, I constructed PVI and added it to the original image as prior knowledge to distinguish solar panels from non-solar panels:

$$
PVI = \frac{\rho_B – \rho_R}{\rho_R + \rho_G + \rho_B}
$$

where \(\rho_R\) is the red band, \(\rho_G\) is the green band, and \(\rho_B\) is the blue band. After calculating PVI, the index and the solar panel image are concatenated as the input of the first encoder in the network to suppress background noise and reduce missed extraction and background misjudgment problems.

Residual Convolution Hybrid Attention Module. With the development of deep learning, attention mechanisms have become one of the core technologies in natural language processing, visual recognition, and remote sensing image analysis. The attention mechanism draws on the selective attention characteristics of human cognitive processes, dynamically allocating computational resources, focusing on key regions of input data, thereby optimizing the representation ability and generalization performance of the model. The Convolutional Block Attention Module (CBAM) is representative, which innovatively uses a cascade approach to integrate two complementary attention mechanisms: the Channel Attention Module (CAM) and the Spatial Attention Module (SAM).

In U-Net and U2-Net models, to compensate for the loss of low-level feature information caused by down-sampling in the encoding process, the output of each stage of the encoding process is copied to the corresponding stage of the decoding process, i.e., skip connections. However, simply using skip connections easily leads to the loss of spatial information, and redundant information on feature channels is easily retained. In addition, features from the encoder and the corresponding decoder in skip connection operations have large semantic differences.

To reduce the above practical problems and further improve the accuracy and completeness of solar panel segmentation, I designed a residual convolution hybrid attention module RCHAM to replace simple skip connections. First, on the basis of the residual structure, features from the encoder are processed by 1×1 and 3×3 convolution kernels to reduce semantic differences. Since the semantic differences between features from the encoder and the corresponding decoder become smaller as the depth of the encoder-decoder structure increases, I designed a non-fixed number of convolution kernel layers. In the RCHAM-i module, i (i=1, 2, 3, 4) layers of 1×1 and 3×3 convolution kernels are used in parallel. After the above nonlinear convolution operations, channel and spatial attention weights are calculated to emphasize and optimize features, so that the network focuses on important information and ignores irrelevant information.

Through a series of convolution and attention mechanisms, the network can introduce more semantic information into shallow features, make features output at each level focus on more effective feature information, improve the extraction ability of effective features of solar panels, and realize the combination of shallow features and high-level semantic features. In addition, since the RCHAM module is based on the residual structure, this method can improve the fitting ability of the network and ensure the non-negativity of accuracy improvement after adding the RCHAM module.

3.3 Loss Function

After the above processing, the network can extract intra-level and inter-level information of different sizes, retain effective features, and reduce target misjudgment caused by background. However, in remote sensing images, the sample categories of solar panels are uneven, and edge information is easily affected by noise. Therefore, edge information has become one of the most important pieces of information to preserve in the solar panel segmentation process. The loss function plays a very important role in deep learning. It is used to measure the difference between model predictions and true labels, and to adjust model parameters through optimization algorithms so that the model can better fit training data and improve generalization ability.

To reduce the loss of edge and detail information, I designed a feature loss (FL). Specifically, I used a pre-trained classifier VGG-16 to extract multi-scale features of predicted values and true values, and calculated the L2 norm between features for pixel-to-pixel matching:

$$
L_{Feature} = w_{fuse} L_{fuse} + \sum_{m=1}^{M} w_{side}^{(m)} L_{side}^{(m)}
$$

where M=6, \(L_{side}^{(m)}\) represents the loss of the sub-prediction map \(P_{side}^{(m)}\), \(L_{fuse}\) represents the loss of the final prediction map \(P_{fuse}\), and \(w_{side}^{(m)}\) and \(w_{fuse}\) represent the weights of each loss term. The computation of \(L_{side}\) is expressed as:

$$
L_{side} = \sum_{i \in \{1,2,3,4\}} \left\| \mathcal{F}_i^{(P)} – \mathcal{F}_i^{(G)} \right\|_2
$$

where \(\mathcal{F}_i^{(P)}\) represents the features extracted from the predicted image at layer i, and \(\mathcal{F}_i^{(G)}\) represents the features extracted from the ground truth image at layer i. Low-level feature maps contain edge detail information, while high-level feature maps contain location information. This loss can supervise prediction results at different scales of features to solve boundary complexity problems and preserve the contour and structure of solar panels as completely as possible.

3.4 Experimental Results and Analysis

The experimental operating system is Windows 10 64-bit, CPU is Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz, GPU is NVIDIA GeForce RTX 3090, memory is 24GB. The software environment is Python 3.8, Pytorch 1.11.0. The batch size is set to 4, the number of iterations is set to 100, the initial learning rate is set to 0.001, and the optimizer is the Stochastic Gradient Descent (SGD) optimizer. All samples are divided into training and test sets at a ratio of 7:3.

3.4.1 Ablation Experiments

I designed three groups of ablation experiments to verify the effectiveness of PVI, RCHAM, and FL on solar panel segmentation.

Impact of PVI. PVI is used to suppress background noise and reduce missed extraction and background misjudgment. I compared the network without PVI and the network with PVI. Experimental results showed that without PVI, most solar panels could be segmented, but for small targets, leakage detection occurred; without PVI, solar panels were more easily confused with non-targets such as substations. After adding PVI, the network has certain advantages in IoU, Precision, and F1-score. In some scenes, Recall decreased because the network without PVI tended to incorrectly extract non-solar panels as solar panels, resulting in inflated Recall values but lower Precision. The ablation results further illustrate the necessity of PVI.

Impact of RCHAM. RCHAM is used to strengthen the information interaction between shallow and deep features and improve the completeness of solar panel regions. Experimental results showed that not using RCHAM leads to irregular contours in segmentation results and causes fractures between solar panels. The network with RCHAM can more accurately separate adjacent solar panels in dense areas, effectively preserving local and global context information while having good noise resistance. The performance improved after adding RCHAM, further verifying that RCHAM reduces the problem of incomplete regions and boundary mismatch.

Impact of FL. FL is used to reduce edge blur and preserve more boundary information. Experiments showed that without FL, edge blur occurs, and adjacent solar panels may stick together. Adding FL improves edge smoothness of solar panels and better preserves detail information. I also conducted ablation experiments on the number of FL layers. The results showed that the four-layer FL design is optimal in visual effect and numerical indicators. Table 4 shows the quantitative results of FL layer counts on the test set.

Table 4: Ablation Results of FL Layers on All Test Images (%)
Network IoU Precision Recall F1-score
Without FL 82.97 90.93 90.40 90.57
One-layer FL 84.51 92.83 89.73 91.31
Two-layer FL 85.03 92.58 90.92 91.72
Three-layer FL 85.97 93.42 91.10 91.76
Four-layer FL 86.08 93.91 91.15 92.34
Five-layer FL 86.06 93.71 91.13 92.27

3.4.2 Comparison Experiments

I trained PKGPVN on three datasets (AIR-PV, PVP, and PPEWRC) and compared it with seven existing solar panel segmentation models: U-Net, FCN, SegNet, D-LinkNet, BASNet, U2-Net, and SeaNet. Both qualitative and quantitative analyses were conducted.

On the AIR-PV dataset, PKGPVN achieved the highest scores in IoU, Precision, and F1-score: 82.34%, 91.41%, and 90.25%, respectively. Compared with the baseline U2-Net, IoU, Precision, Recall, and F1-score improved by 3.22%, 0.40%, 3.28%, and 2.29%, respectively. The qualitative results showed that PKGPVN reduced missed detection and false detection problems, and the solar panels were relatively complete with smooth edges.

Table 5: Quantitative Comparison Results on AIR-PV Dataset (%)
Model IoU Precision Recall F1-score
FCN 74.09 82.77 87.73 84.97
U-Net 71.30 78.57 88.69 82.84
SegNet 56.89 62.12 87.89 70.76
D-LinkNet 62.03 89.54 67.54 74.86
BASNet 74.31 82.49 89.98 84.67
U2-Net 79.12 91.01 86.17 87.96
SeaNet 79.69 89.13 88.00 88.47
PKGPVN 82.34 91.41 89.45 90.25

On the PVP dataset, PKGPVN achieved 91.71%, 96.51%, and 95.74% in IoU, Precision, and F1-score, all superior to the comparison methods. The comprehensive performance proved the feasibility and robustness of PKGPVN on different datasets.

Table 6: Quantitative Comparison Results on PVP Dataset (%)
Model IoU Precision Recall F1-score
FCN 82.51 93.77 86.52 89.94
U-Net 74.92 85.19 84.49 85.03
SegNet 77.12 83.02 93.77 85.57
D-LinkNet 81.50 91.94 87.89 88.32
BASNet 89.85 94.99 94.71 94.79
U2-Net 90.68 95.40 94.44 94.89
SeaNet 87.01 95.63 99.26 95.35
PKGPVN 91.71 96.51 94.85 95.74

On the PPEWRC dataset, PKGPVN achieved 72.35%, 84.29%, and 84.15% in IoU, Precision, and F1-score, all better than other comparison methods. The Recall value was not high because methods such as U-Net, SegNet, BASNet, and SeaNet over-extracted, leading to inflated Recall values. This paper mainly proposes a dedicated model for solar panel characteristics, proving the feasibility and effectiveness of PKGPVN.

Table 7: Quantitative Comparison Results on PPEWRC Dataset (%)
Model IoU Precision Recall F1-score
FCN 66.62 73.09 82.24 76.47
U-Net 58.30 68.75 83.71 75.72
SegNet 50.36 62.33 84.53 70.93
D-LinkNet 52.99 68.52 73.78 69.75
BASNet 65.81 70.76 85.13 71.46
U2-Net 68.27 78.03 82.50 78.44
SeaNet 65.94 73.16 87.08 78.82
PKGPVN 72.35 84.29 83.62 84.15

4. Photovoltaic Panel Segmentation Based on Visual State Space and Directional Features

4.1 Problem Analysis

The PKGPVN method proposed in Chapter 3 has excellent performance, but there is still room for improvement. First, the PVI is designed based on red, green, and blue visible bands without utilizing NIR band information. Since the PPEWRC dataset contains NIR information as an inherent band of GF-2 multispectral images, it may contain useful information not present in visible light images. Therefore, I improved the photovoltaic index by considering the NIR band to better utilize the spectral characteristics of solar panels.

Second, existing models basically integrate spatial features of solar panels (such as shape, size, and texture), but ignore an important spatial feature, namely directional features. From satellite remote sensing images, solar panels are usually installed in a horizontal direction to maximize solar energy absorption. Therefore, I improved the network for the spatial characteristics of solar panels to better identify solar panels and improve the problem of confusion between solar panels and other targets.

Third, the PKGPVN method only uses convolutional blocks for feature extraction. However, when facing complex backgrounds, using only convolution operations may lose deep semantic information. Therefore, in this chapter, the encoder adopts a parallel structure of depth-wise separable convolution and visual state space modules, which can extract local features and also capture more long-distance information and context-dependent information.

4.2 Network Architecture

To solve the above challenges, I proposed a solar panel segmentation method based on visual state space and directional features, called CSPPNet. First, an improved photovoltaic index (PVPI) was proposed based on the unique spectral characteristics of solar panels in visible and NIR bands. Second, considering the south-facing characteristic of solar panels in satellite remote sensing images, a south-facing orientation prior module (SFOPM) was added to the network architecture to enhance the ability to perceive horizontal targets. Finally, inspired by the Mamba model, the encoder adopts a dual-branch architecture. One branch contains depth-wise separable convolution blocks for extracting local features, and the other branch contains visual state space modules for integrating global information, enhancing long-distance correlated photovoltaic information interaction.

Encoder strategy. For remote sensing image target detection and segmentation, shallow features and global semantic information are crucial. Convolution is a common operation for feature extraction. A single convolution operation is limited by the receptive field and can only capture local features, easily causing loss of long-range context information. For large images, making the pixel in the upper left corner relate to the pixel in the lower right corner requires increasing the number of convolution layers, which inevitably loses some semantic information. To capture deep features, some scholars use visual state space modules after multi-layer convolution, but this essentially processes shallow features and still obtains correlations between pixels in local regions. The encoder I adopted is a parallel structure of DWConv and VSS to extract local features and capture context-dependent information.

Depth-wise separable convolution. To compress the computational cost of convolution, a more efficient depth-wise separable convolution has been proposed. It reduces the parameter amount and computational complexity of the model to a certain extent, while improving the efficiency and performance of the model. DWConv has been widely used in lightweight network design, mobile device deep learning applications, and embedded devices with limited computing resources. Depth-wise separable convolution is divided into depth-wise convolution and point-wise convolution. In the depth-wise convolution stage, independent convolution operations are performed on each input channel to obtain channel-level feature representations. In the point-wise convolution stage, 1×1 convolution kernels are used for dimension increase and reduction to transform the output of the depth-wise convolution into final feature representations, realizing information integration between channels and transformation of feature maps.

Visual state space. Recently, the Mamba model has developed rapidly and stands out in various fields such as speech processing, genomics, and audio analysis. Its basic model is the state space model. The Mamba model mainly solves the computational challenges related to processing long sequences in traditional Transformers. By integrating a selection mechanism into the state space model, Mamba can decide whether to continue propagating information or discard it based on the relevance of each token in the sequence. In remote sensing, Mamba models have shown advantages in capturing global relationships. Mamba not only has linear complexity, but also excels at capturing global context information.

The core module of Mamba is the visual state space (VSS) module. First, the input feature F is normalized, then divided into two branches. One branch includes linear layer, depth-wise convolution, activation function, 2D selective scan (SS2D), and normalization layer to obtain feature \(F_1\). The other branch includes linear layer and activation function to obtain feature \(F_2\). Then \(F_1\) and \(F_2\) are multiplied and passed through a linear layer to obtain the final feature \(F_3\):

$$
F_1 = LayerNorm(SS2D(SiLU(DWConv(Linear(LayerNorm(F))))))
$$

$$
F_2 = SiLU(Linear(LayerNorm(F)))
$$

$$
F_3 = Linear(F_1 \odot F_2)
$$

In the VSS module, SS2D is extremely important. It adopts a four-direction scanning strategy. The upper left corner and lower right corner of the feature map are used as the start and end points of a group, and forward and backward selective scans are performed separately, flattening the two-dimensional image into a one-dimensional sequence. The advantage of SS2D is that it ensures each element of the feature map integrates information from all other positions in different directions, thereby achieving a global receptive field without increasing linear complexity. The operation after scan expansion is the selective scan structured state space module (S6) for sequence modeling. The module performs feature extraction on four different feature sequences and finally merges the sequences to restore the two-dimensional image.

Improved photovoltaic index. Using normalized indices to represent spectral features can improve the accuracy of extracted features. To determine the spectral characteristics of solar panels in each band, I counted the radiance pixel values of six types of objects in the PPEWRC dataset, including solar panels, roads, dark buildings, vegetation, bare land, and desert. Solar panels have larger radiance values in the blue band and very small radiance values in the NIR band, and the difference between these two bands is the largest among all ground objects. Most solar panels are made dark blue and have low reflectance near the NIR wavelength to maximize absorption of solar energy in the NIR region.

Studies have proven that linearly independent combinations of original image bands are always beneficial for target detection. Therefore, according to the spectral characteristics of solar panels in different bands, I calculated the radiation difference to quantify solar panels and constructed the photovoltaic panel index PVPI:

$$
PVPI = \frac{2B – R – NIR}{2B + R + NIR + \epsilon} \times (1 + \epsilon)
$$

where B, R, and NIR represent the radiance of the blue, red, and NIR bands, respectively. The term \(\epsilon\) is an adjustment factor between 0 and 1, usually chosen as 0.5 to better reduce the impact of background noise.

The PVPI is used as an additional spectral feature and is input into the network together with the original image to improve the separability between solar panels and easily confused targets. Among the five different ground objects coexisting with solar panels, solar panels have the highest PVPI value (greater than 0.6). Roads, vegetation, bare land, and desert have lower PVPI values. Compared with these four types of ground objects, dark buildings have higher PVPI values, which may negatively interfere with solar panel segmentation. To better eliminate the influence of dark buildings, the VSS blocks added to the model can extract deep features of solar panels. In addition, the SFOPM is designed to guide the extraction of directional features and further eliminate the influence of dark buildings.

South-facing orientation prior module. Research has embedded position information into channel attention and proposed a novel attention mechanism, coordinate attention (CA). CA can capture long-range dependent information in a certain spatial direction, and the generated feature maps have direction-aware characteristics, significantly improving segmentation tasks. The azimuth angle of solar panels is affected by factors such as solar radiation, weather, terrain, and altitude. To maximize solar energy absorption, in eastern and western China, most solar panels have an azimuth angle of \(0^\circ\) (facing due south), and a small number of solar panels are installed due south-east or due south-west. A striking feature of solar panels in satellite images is their horizontal orientation.

To better consider and utilize the directional information of target objects, remove the interference of vertical objects, and improve segmentation performance, I designed the SFOPM module. First, a horizontal spatial attention mechanism is applied to the local features extracted by the DWConv branch. Specifically, in the pooling part, pooling kernels of size (H, 1) are used to capture context information in the horizontal direction, enhance local details and horizontal features, and suppress vertical features. Second, a channel attention mechanism is applied to the global features extracted by the VSS branch to enhance global information. Through the use of horizontal spatial attention and channel attention, the model’s attention focuses on main features and suppresses useless features, which is beneficial for identifying solar panels in complex backgrounds. Finally, after the attention mechanism optimization, a horizontal Sobel operator is used to further enhance the horizontal direction features. The Sobel operator identifies boundaries by calculating the gray change of objects along a specific direction and is often used for edge detection and enhancement.

After processing by SFOPM, the features are connected to the decoder through skip connections to improve the expression ability of directional features and help the network generate more accurate segmentation results.

4.3 Loss Function

In this chapter, I adopted binary cross entropy (BCE) loss and Dice loss, which have been widely applied and proven in various visual tasks. BCE loss is suitable for binary classification and pixel-level segmentation tasks. This loss evaluates the difference by comparing the predicted probability distribution and the true distribution. Dice loss is a loss function derived from the Dice coefficient, which is an indicator used to measure the similarity of two sets and is suitable for overlapping regions in image segmentation and target extraction tasks. The Dice loss can better measure the prediction accuracy of the model for overlapping regions and has advantages in handling class imbalance, which is suitable for backgrounds and solar panels with significant differences. The total loss is the sum of BCE loss and Dice loss:

$$
L_{Total} = L_{BCE} + L_{Dice}
$$

where

$$
L_{BCE} = -\frac{1}{N}\sum_{i=1}^{N} \left[ x_i \log(y_i) + (1 – x_i)\log(1 – y_i) \right]
$$

$$
L_{Dice} = 1 – \frac{2\sum_{i=1}^{N} x_i y_i + \sigma}{\sum_{i=1}^{N} x_i + \sum_{i=1}^{N} y_i + \sigma}
$$

4.4 Experimental Results and Analysis

4.4.1 Fusion Experiment

To determine the impact of pansharpening and NIR bands on solar panel segmentation, I designed a fusion experiment. First, the original panchromatic image was fused with the multispectral image to obtain three-band fused images and four-band fused images. Then the original panchromatic image, multispectral image, fused RGB image, and fused RGB+NIR image were input into CSPPNet to obtain solar panel segmentation results. Table 8 gives the indicators of these four types of input data on the PPEWRC dataset.

Table 8: Indicators of Different Input Data on PPEWRC Dataset (%)
Input Data IoU Precision Recall F1-score
MS 56.02 73.45 65.15 70.79
PAN 71.35 83.04 80.70 81.08
Fused (RGB) 76.35 86.29 84.07 85.37
Fused (RGB+NIR) 77.37 87.42 85.11 86.98

When using the multispectral image as input, the network had the worst indicator performance because more solar panels were not segmented. When using the panchromatic image as input, the indicators improved, but there were still missed detections. This indicates that the spatial resolution of input data is more important for solar panel segmentation tasks. When using fused RGB images and fused RGB+NIR images as input, all indicators improved, indicating that pansharpening plays an important role in remote sensing target recognition and detection. In addition, when using the four-band fused image as input, the network achieved the highest accuracy, which proves that the NIR band can provide additional information that RGB images do not have, enhancing the network’s ability to distinguish solar panels from other ground objects.

4.4.2 Ablation Experiments

I designed ablation experiments to verify the effectiveness of VSS, PVPI, and SFOPM. Table 9 shows the quantitative indicators of five module combinations.

Table 9: Ablation Results of CSPPNet on PPEWRC Dataset (%)
VSS PVPI SFOPM IoU Precision Recall F1-score
✓ 73.60 85.39 83.45 84.08
✓ 71.87 84.65 81.16 83.22
✓ ✓ 76.48 86.63 83.79 84.37
✓ ✓ 76.27 87.19 85.03 85.53
✓ ✓ ✓ 77.37 87.42 85.11 86.98

The experimental results show that when using PVPI, the model’s indicators were lower because the single-branch encoder without VSS could not capture global features. When using VSS and PVPI, all indicators improved. When using VSS and SFOPM, the indicators were better than using only VSS, proving that SFOPM can improve the expression ability of directional features. The complete CSPPNet achieved the best results, proving the effectiveness of each improved module.

I also drew the following conclusions from the visualization results. Without VSS, the segmentation results have some noise and error classification, and solar panels tend to adhere to each other. Without PVPI, the model misclassifies greenhouses, roads, and dark vegetation as solar panels. Without SFOPM, the model is easily affected by vertical roads or buildings. The ablation results demonstrate that the PVPI can be used as an effective feature to directly identify solar panels, and its addition improves the model’s ability to distinguish solar panels from other targets.

4.4.3 Comparison Experiments

To test the performance of CSPPNet, I selected seven comparison methods, including FCN, U-Net, SegNet, D-LinkNet, SeaNet, CMTFNet, VM-UNet, and PKGPVN proposed in Chapter 3. I conducted qualitative and quantitative experiments on three datasets.

Results on PPEWRC dataset. The quantitative results are shown in Table 10. U-Net, SegNet, and D-LinkNet had the lowest precision (IoU<60%, Precision<70%, F1-score<76%). D-LinkNet had low Precision and Recall, meaning it cannot identify all solar panel pixels and misclassifies other ground objects as solar panels. U-Net and SegNet had high Recall values but low Precision values, indicating they easily detect ground objects that are easily confused with solar panels. Compared with these methods, FCN, SeaNet, and VM-UNet had higher accuracy. SeaNet had the highest Recall value but lower Precision value because SeaNet has serious over-extraction problems. CMTFNet and the methods proposed in this thesis (PKGPVN and CSPPNet) performed better. CSPPNet achieved 77.37%, 87.42%, and 86.98% in IoU, Precision, and F1-score, respectively. On the PPEWRC dataset, CSPPNet achieved the best solar panel segmentation performance.

Table 10: Comparison Results on PPEWRC Dataset (%)
Model IoU Precision Recall F1-score
FCN 66.62 73.09 82.24 76.47
U-Net 58.30 68.75 83.71 75.72
SegNet 50.36 62.33 84.53 70.93
D-LinkNet 52.99 68.52 73.78 69.75
SeaNet 65.94 73.16 87.08 78.82
CMTFNet 74.91 87.07 84.70 86.59
VM-UNet 68.77 77.21 82.56 81.22
PKGPVN 72.35 84.29 83.62 84.15
CSPPNet 77.37 87.42 85.11 86.98

Results on PVP dataset. The quantitative results are shown in Table 11. Similar to the results on the PPEWRC dataset, U-Net, SegNet, and D-LinkNet performed worst. FCN had lower accuracy on this dataset, misclassifying some shadow pixels as solar panels. SeaNet, CMTFNet, and VM-UNet had relatively close precision indicators. However, SeaNet still had over-extraction problems. For example, SeaNet could not exclude gap pixels between closely spaced solar panels. In terms of IoU, Precision, and F1-score, CSPPNet and PKGPVN ranked first and second, respectively. The results prove the effectiveness of the two methods on the PVP dataset.

Table 11: Comparison Results on PVP Dataset (%)
Model IoU Precision Recall F1-score
FCN 82.51 93.77 86.52 89.94
U-Net 74.92 85.19 84.49 85.03
SegNet 77.12 83.02 93.77 85.57
D-LinkNet 81.50 91.94 87.89 88.32
SeaNet 87.01 95.63 99.26 95.35
CMTFNet 88.58 94.62 93.94 95.40
VM-UNet 90.34 94.98 90.93 93.83
PKGPVN 91.71 96.51 94.85 95.74
CSPPNet 92.09 96.54 95.69 96.15

Results on AIR-PV dataset. The quantitative results are shown in Table 12. Among the nine methods, CSPPNet achieved the highest IoU, Precision, and F1-score (83.86%, 93.54%, and 91.08%, respectively). The Recall value was 90.24%, only 0.13% lower than VM-UNet, because VM-UNet misclassified some shadows and dark buildings as solar panels. In the scenario where shadows and buildings that are easily confused with solar panels exist, CSPPNet improved the accuracy of solar panel segmentation and excelled in reducing object false detection. CSPPNet has obvious advantages in segmenting both sparse solar panels and dense solar panels.

Table 12: Comparison Results on AIR-PV Dataset (%)
Model IoU Precision Recall F1-score
FCN 74.09 82.77 87.73 84.97
U-Net 71.30 78.57 88.69 82.84
SegNet 56.89 62.12 87.89 70.76
D-LinkNet 62.03 89.54 67.54 74.86
SeaNet 79.69 89.13 88.00 88.47
CMTFNet 81.43 92.82 89.73 90.66
VM-UNet 79.93 90.40 90.37 90.46
PKGPVN 82.34 91.41 89.45 90.25
CSPPNet 83.86 93.54 90.24 91.08

However, the indicators of CSPPNet on the PPEWRC dataset are slightly lower than those on the PVP and AIR-PV datasets. The reasons are as follows. First, the PPEWRC dataset contains five complex backgrounds (impervious layers, water bodies, vegetation, bare land, and mixed) and four easily confused targets (greenhouses, dark buildings, roads, and black plastic), so the segmentation accuracy is affected by sample size and quality. Second, the negative samples in the PPEWRC dataset account for 34.7% of the total number of samples, which increases the challenge of identifying positive samples (solar panels). Third, the spatial resolution of the PVP dataset is better than 0.6 meters, while the spatial resolution of the PPEWRC dataset and the public AIR-PV dataset is 0.8 meters.

5. Conclusion and Future Work

In this thesis, I focused on the solar panel segmentation methods based on high-resolution remote sensing images. Aiming at the current challenges of solar panel segmentation, including the lack of NIR information in datasets, the lack of spectral characteristic analysis of solar panels, and the fact that solar panels are easily confused with background ground objects, I carried out a series of studies and proposed corresponding solutions.

First, I constructed a four-band solar panel dataset named PPEWRC covering eastern and western China to fill the gap of NIR band information in existing optical remote sensing solar panel datasets. Through a series of image preprocessing operations and data annotation and augmentation, 6915 high-quality samples were formed. The PPEWRC dataset has rich positive and negative samples and NIR band information and is an important supplement to existing datasets. The PPEWRC dataset, together with the public AIR-PV and PVP datasets, formed the remote sensing image solar panel segmentation data required for this research, providing strong data support for the design and experiments of subsequent methods.

Second, I proposed a solar panel segmentation method based on convolution and optical features (PKGPVN). I constructed a photovoltaic index based on visible light bands as prior knowledge to constrain the segmentation process. I designed a residual convolution hybrid attention module to strengthen the information interaction between shallow and deep features, and designed a feature loss function to improve the accuracy of edge segmentation. The experimental results on three datasets showed that PKGPVN reduced missed extraction and background misjudgment, ensured extraction completeness and boundary smoothness, and had strong robustness.

Third, I proposed a solar panel segmentation method based on visual state space and directional features (CSPPNet). I designed an improved photovoltaic index PVPI based on the unique spectral characteristics of solar panels in visible and NIR bands to improve the separability between solar panels and easily confused targets. I added a south-facing orientation prior module to enhance the network’s ability to perceive horizontal targets. The encoder adopted a parallel structure of depth-wise separable convolution and visual state space modules to capture local detail features and global semantic features layer by layer. The experimental results on three datasets showed that CSPPNet achieved superior segmentation performance in both subjective and objective evaluations, providing ideas for the sustainable utilization of renewable energy resources.

With the wide application of photovoltaic power generation worldwide and the continuous advancement of optical remote sensing technology, research and application of solar panel segmentation from optical remote sensing images have broad development prospects. However, current research still faces some challenges and opportunities, providing many directions for future work. Since solar panels are special in remote sensing images and easily affected by environment, illumination, and shadow, future research still needs deeper discussion and improvement in reducing error rates and improving generalization. Combining multi-source remote sensing data for solar panel segmentation is a very promising research direction. In addition to optical remote sensing images, multi-source remote sensing data such as radar remote sensing, infrared remote sensing, and high-resolution 3D laser radar data can also be considered to improve the detection and recognition of solar panels. The GF-7 satellite can provide elevation information, which is of great significance for distinguishing solar panels from shadows, estimating the surface area of solar panels, and then inverting photovoltaic power generation. In the future, I will use GF-7 as the data source and combine meteorological data and geographic coordinate information to predict the power generation of photovoltaic systems based on deep learning methods.

Scroll to Top