Highlights
What are the main findings?
- HiFRD-SegFormer jointly identifies PV-installed roofs, metal pitched roofs, and non-metal flat roofs from high-resolution remote sensing imagery, achieving the best overall performance among the compared segmentation models.
- The coarse-to-fine classification architecture combined with coarse-only supervision for category-ambiguous roofs prevents them from interfering with metal/non-metal classification while retaining their reliable non-PV roof information during coarse-grained supervision. Learnable full-resolution decoding further improves the recovery of roof regions, boundary delineation, and class discrimination.
What are the implications of the main findings?
- The unified classification of PV development status, material, and form enables direct delineation of roofs available for future development and characterization of their key physical conditions.
- The resulting spatial information supports more detailed estimation of remaining rooftop PV potential, existing-stock analysis, and differentiated PV installation planning.
Abstract
Accurate identification of the photovoltaic development status, material, and form of industrial building roofs is essential for delineating roofs available for development and conducting differentiated photovoltaic potential assessments. This study proposes HiFRD-SegFormer, an industrial building roof classification method integrating hierarchical supervision and learnable full-resolution decoding to identify PV-installed roofs, metal pitched roofs, and non-metal flat roofs from high-resolution remote sensing imagery through a single forward pass. A coarse-to-fine architecture combined with coarse-only supervision for ambiguous roofs prevents them from interfering with the classification of the latter two categories, while retaining their reliable non-PV roof information. A learnable full-resolution decoder improves roof-region recovery, boundary delineation, and class discrimination. Experiments on a Shanghai dataset show that HiFRD-SegFormer achieves the best overall performance among several representative segmentation models, with IoUs of 87.53%, 89.73%, and 78.05% for the three classes. Coarse-only supervision balances classification accuracy and roof-area completeness, while the learnable decoder improves Overall IoU by 0.98 pp over SegFormer-B2. Applied to eight districts of Shanghai, the method identifies 79.02 km2 of industrial building roofs, comprising 20.31, 38.90, and 19.81 km2 of the three classes. These results provide a data basis for PV potential assessment and development planning of industrial building roofs.
1. Introduction
Industrial building roofs are becoming an important resource for distributed photovoltaic (PV) development as the energy sector shifts toward low-carbon development and distributed PV expands rapidly. Their large individual roof areas, relatively concentrated ownership, and favorable conditions for large-scale development make them well suited for distributed PV deployment. Existing studies on PV development for industrial buildings mainly identify the extent of industrial buildings using auxiliary information such as land use data and points of interest (POIs) [1,2,3,4,5,6], and then estimate their overall rooftop PV potential. However, as the planning and assessment of industrial rooftop PV move from broad-scale potential estimation toward detailed planning and existing-stock analysis, area information that only describes the overall scale of industrial buildings is no longer sufficient. For a given region, it is necessary to further understand how many industrial building roofs have already been equipped with PV systems and how many remain undeveloped in order to characterize the current scale of PV development and the remaining development potential [7]. For roofs that remain undeveloped, their material and form affect load-bearing conditions, PV module layout, and the calculation of usable area, and therefore constitute important information for detailed PV development planning. Accordingly, this study uses remote sensing imagery and deep learning to classify industrial building roofs into three categories: PV-installed roofs, metal pitched roofs, and non-metal flat roofs. This classification simultaneously characterizes the PV development status of industrial building roofs and the physical characteristics relevant to subsequent development, thereby supporting detailed PV development planning and existing-stock analysis of industrial building roofs.
The PV development status of industrial building roofs and their physical characteristics, such as roof form, are generally studied separately, and an efficient method that can obtain both types of information in a single process is still lacking. Studies related to the objective of this work can be broadly divided into two categories. The first category focuses on whether PV systems are already installed on roofs. One approach uses two semantic segmentation models to extract roofs and PV panels separately [7], and then distinguishes developed and undeveloped roof areas at the pixel level based on their spatial relationship. However, PV systems usually require some roof space to be reserved for maintenance, safety clearances, and array layout, and these areas are not available for further PV installation. This approach may therefore incorrectly identify such pixels as undeveloped roof areas available for future development. A second approach overlays PV panels extracted by semantic segmentation with building vector data and classifies individual buildings as with or without PV [8,9]. A third approach directly applies a binary classification model to the roof image of each building to determine whether PV is installed [10,11]. These three approaches provide more detailed information for characterizing existing PV development and the remaining developable roof area within a region. However, non-PV roofs still differ considerably in physical characteristics such as material and form. Further information on roof physical characteristics that affect PV installation and usable-area calculation is therefore needed.
The second category mainly classifies building roofs according to roof form, typically as flat or pitched roofs. Traditional image analysis approaches use edge detection and Hough transform [12], combine height data with morphological operations [13,14], or construct fuzzy membership rules from geometric features of roof objects [15] to classify roof forms. A second approach manually selects and constructs features such as roof geometry and uses traditional machine learning methods, including random forests and support vector machines, to predict roof types [16,17]. A third approach uses high-resolution remote sensing imagery and deep learning models to directly identify flat roofs and pitched roofs with different orientations [18,19,20]. These studies provide more detailed information on roof form and offer useful technical support for distinguishing the PV development conditions of roofs with different physical characteristics. However, the forms of industrial building roofs can be complex. For example, some low-slope roofs show no clear slope or ridge features in remote sensing imagery, making it difficult to distinguish industrial roofs with different physical characteristics based on roof form alone. Because roof form is often closely related to roof material for industrial buildings, considering both form and material in the classification scheme can improve the reliability of roof-form classification.
Overall, existing studies provide more detailed roof information by separately examining rooftop PV development status and roof form, but these two types of information have not yet been integrated into a unified classification framework for assessing the PV potential of industrial building roofs. Deep learning-based semantic segmentation using high-resolution remote sensing imagery provides a technical basis for achieving this goal. However, the fine-grained classification of industrial building roofs involves relatively complex category discrimination. Owing to the substantial diversity of roofs in size, material, form, color, and texture, roofs within the same category may exhibit considerable differences, while different categories may share similar characteristics, making it difficult to assign clear and reliable fine-grained labels to some roofs. Therefore, existing methods still have difficulty fully meeting the requirements of fine-grained industrial building roof classification. On the one hand, constrained by the spatial resolution of remote sensing imagery and the reduced visibility of roof-slope cues under an overhead viewing perspective, some roofs lack sufficient fine-grained discriminative features. For example, some roofs exhibit stripes, seams, or metallic sheen similar to those of metal roofs but lack clear slope or ridge features, making it difficult to reliably distinguish them as metal pitched roofs or non-metal flat roofs. To address label noise and label uncertainty in remote sensing semantic segmentation, existing studies mainly reduce the influence of unreliable supervision on model training from several perspectives. One group of methods identifies and corrects unreliable labels according to early-learning behavior, training loss, or prediction uncertainty [21,22,23]. Another group improves model tolerance to noisy labels through noise-robust learning strategies, attention mechanisms, or knowledge distillation [24,25,26]. In addition, teacher models, pseudo-labeling, and online label correction have been used to dynamically revise missing or inaccurate annotations [27,28,29]. These methods generally treat unreliable labels as information that needs to be identified, suppressed, or corrected. In contrast, the category-ambiguous roofs in this study have a different characteristic: although they cannot be clearly classified as metal pitched roofs or non-metal flat roofs, their coarse-grained identity as non-PV roofs is clear. Therefore, completely discarding these samples would lose their reliable coarse-grained supervision information, whereas correcting or forcibly assigning them to a fine-grained category may introduce unreliable supervision.
On the other hand, industrial building roof classification simultaneously involves two requirements: roof region extraction and roof category discrimination. The former requires accurate separation of building roofs from the background and places high demands on spatial information such as roof contours, whereas the latter further requires the use of internal roof characteristics, including PV module arrangements, roof material textures, roof ridges, and roof forms, to distinguish different categories. Therefore, the model needs to utilize both multi-scale and broader contextual information while preserving and recovering high-resolution spatial information. To address scale variation, spatial-detail loss, and boundary delineation in high-resolution remote sensing semantic segmentation, existing studies have explored both data organization and model design. Adaptive patch reshaping improves boundary delineation by reorganizing image patches and reassigning patch-level labels [30], whereas model-oriented studies enhance spatial-detail representation through multi-scale feature fusion, high-resolution feature preservation, boundary-assisted supervision, and cross-layer feature interaction [31,32,33,34]. Zhang et al. [35] employed learnable transposed-convolution upsampling into semantic segmentation of pavement distress using millimeter-resolution images to improve the recovery of fine spatial details. For the multi-class fine-grained roof classification task considered in this study, how to make full use of the limited spatial details available in remote sensing imagery while accommodating both roof region extraction and roof category discrimination remains an important issue.
To address these gaps, this study proposes HiFRD-SegFormer, an industrial building roof classification method that integrates hierarchical supervision and learnable full-resolution decoding. Based on high-resolution remote sensing imagery, HiFRD-SegFormer produces classification results for PV-installed roofs, metal pitched roofs, and non-metal flat roofs through a single forward pass. The main contributions of this study are as follows:
- (1)
- A coarse-to-fine classification architecture is constructed together with a coarse-only supervision strategy for ambiguous roofs. This design prevents uncertain fine-grained information from interfering with metal/non-metal classification while retaining reliable non-PV roof information during coarse-grained supervision.
- (2)
- A learnable full-resolution decoder is constructed to progressively restore the low-resolution features after multi-scale feature fusion into a full-resolution representation through two-stage learnable upsampling. This design enhances roof-region recovery, boundary delineation, and class discrimination.
- (3)
- HiFRD-SegFormer achieves the best overall performance compared with SAM2 with zero-shot point prompting, U-Net (ResNet-50), DeepLabV3+ (ResNet-50 and ResNet-101), HRNet-W32, Mask2Former, and SegFormer-B2. The IoUs for PV-installed roofs, metal pitched roofs, and non-metal flat roofs reach 87.53%, 89.73%, and 78.05%, respectively, with an Overall IoU of 85.99%. Coarse-only supervision maintains both overall classification accuracy and roof region integrity when utilizing ambiguous roofs, while learnable full-resolution decoding further improves the Overall IoU by 0.98 pp.
- (4)
- The proposed method is applied to eight districts of Shanghai and identifies a total of 79.02 km2 of industrial building roofs. The resulting data provide detailed information for PV potential assessment, development planning, and existing-stock analysis of industrial building roofs.
2. Materials and Methods
2.1. Study Area and Sample Dataset Construction
2.1.1. Study Area and Data Collection
Shanghai is located on the eastern coast of China at the Yangtze River estuary (30°40′N–31°53′N, 120°52′E–122°12′E) and has a strong industrial base. Large-scale, high-density clusters of industrial buildings are widely distributed across various industrial parks, and their roofs exhibit substantial heterogeneity in material and form. Meanwhile, Shanghai has a well-established foundation for distributed PV development. On the one hand, local policies continuously promote the deployment of distributed PV systems, particularly the large-scale development of PV in the industrial sector [36]. On the other hand, distributed PV deployment has already reached a considerable scale, resulting in a substantial number of PV-installed roofs [37] and providing a solid basis for acquiring samples of PV-installed roofs.
Based on these conditions, the study area is limited to eight districts: Pudong New Area, Jiading, Songjiang, Minhang, Fengxian, Jinshan, Baoshan, and Qingpu (Figure 1). These districts constitute the main areas of industrial activity in Shanghai [38]. Each district has published its Master Plan and General Land Use Plan (2017–2035) [39], in which the land use planning maps delineate industrial and warehousing areas according to a consistent classification framework. The maps are provided in PNG format. The industrial and warehousing area patches on these maps are vectorized to define the spatial extent for the subsequent acquisition of high-resolution remote sensing imagery.
Figure 1.
Geographical location of study area.
High-resolution Google Earth optical imagery covering the study area is acquired using the GGGIS Map Downloader (GGGIS). The imagery contains red, green, and blue (RGB) bands. The download zoom level is set to 19, corresponding to a ground pixel size of approximately 0.51 m. To account for the spatial discrepancies between the planning boundaries and actual ground features, the download boundaries are further adjusted manually with reference to the actual road network so that the image coverage more closely matches the current industrial parcels.
2.1.2. Labeling Scheme and Sample Dataset Construction
The classification targets include PV-installed roofs, metal pitched roofs, and non-metal flat roofs, and the criteria for identifying each class are shown in Table 1. However, industrial building roofs show considerable variation in material, form, color, and texture. For a small proportion of non-PV roofs, the spatial resolution of the imagery does not provide enough key features for clear classification. For example, some roofs show stripes or seams similar to those of metal roofs, but they are darker in color and have no clearly visible slope. Other roofs are lighter in color and show some metallic sheen and textures similar to those of metal roofs, but they also lack a clear pitched-roof form. Because their slope features are unclear, these roofs cannot be reliably classified as metal pitched roofs. At the same time, their surfaces show some metal-like material features, making them difficult to clearly classify as non-metal flat roofs.
Table 1.
Labeling scheme.
Therefore, an auxiliary category termed “ambiguous roof” is introduced during sample labeling to mark non-PV roofs that cannot be clearly identified as metal pitched roofs or non-metal flat roofs based on the available image features. Ambiguous roofs are not included in the final classification targets. This auxiliary category reduces the risk of subjective labeling errors caused by forced class assignment and prevents samples with atypical image features from affecting the feature learning of metal pitched roofs and non-metal flat roofs. Typical examples of each label category are shown in Figure 2.
Figure 2.
Typical examples of each label category.
The downloaded remote sensing images are cropped into 512 × 512-pixel tiles as the basic labeling units, and a certain number of tiles are randomly selected from all tiles for labeling to ensure broad spatial coverage of the samples. Labeling is jointly completed by four annotators with experience in building information extraction and PV facility identification. One annotator uses LabelMe to perform pixel-level labeling according to the labeling scheme in Table 1, while the other three independently review the results. Any disagreements identified during review are resolved through joint discussion among all four annotators. An iterative incremental labeling process is then applied. A model is trained using the labeled samples and used to predict the unlabeled tiles. Tiles with poor prediction results are further labeled and added to the training set, following the same labeling and review procedure described above. By combining broad spatial coverage in the initial sampling with targeted supplementation during iterative labeling, the dataset is constructed to be as representative as possible of the industrial building roofs in the study area.
2.2. HiFRD-SegFormer
Based on SegFormer-B2 [40], this study develops HiFRD-SegFormer, an industrial building roof classification model consisting of an MiT-B2 encoder, a learnable full-resolution decoder, and coarse-to-fine classification heads. The learnable full-resolution decoder improves the recovery of spatial details, while the coarse-to-fine classification heads, together with the coarse-only supervision strategy, enable effective use of category-ambiguous samples and joint classification of the three roof classes. The overall framework is shown in Figure 3.
Figure 3.
Overall framework diagram.
The overall procedure of HiFRD-SegFormer is summarized in Algorithm 1.
| Algorithm 1: HiFRD-SegFormer | |
| Input: RGB image pixel-wise label during training | |
| Output: final prediction map | |
| 1: | Extract multi-level features from using the MiT-B2 encoder |
| 2: | for each feature do |
| 3: | Align to a unified feature dimension |
| 4: | end for |
| 5: | Fuse the aligned multi-level features to obtain |
| 6: | Recover high-resolution features through full-resolution decoding with learnable upsampling and local refinement |
| 7: | Generate the coarse prediction from the recovered feature |
| 8: | Generate the fine-grained prediction from the recovered feature |
| 9: | if training then |
| 10: | for each pixel u in Y do |
| 11: | if is an ambiguous roof then |
| 12: | Assign as non-PV roof |
| 13: | Set as ignored in the fine-grained branch |
| 14: | else |
| 15: | Map to the corresponding coarse label and fine-grained label |
| 16: | end if |
| 17: | end for |
| 18: | Compute the coarse loss between and |
| 19: | Compute the fine-grained loss between and ignoring pixels with = 255 |
| 20: | Return the training loss |
| 21: | else |
| 22: | Generate by combining and through hierarchical prediction decoding |
| 23: | return |
| 24: | end if |
2.2.1. Encoder and Decoder Architecture
- (1)
- MiT-B2 Encoder
This study uses the Mix Transformer-B2 (MiT-B2) in SegFormer-B2 as the encoder. MiT-B2 consists of four consecutive stages that progressively extract multi-scale features from local textures to high-level semantic information. For an input high-resolution remote sensing image , the encoder outputs four levels of features:
where denotes the -th stage of the encoder, and denotes the feature output from the corresponding stage. Their spatial resolutions are 1/4, 1/8, 1/16, and 1/32 of the input image:
where denotes the number of channels of .
Shallow features have higher spatial resolutions and mainly represent roof edges, local textures, and small structures. Deep features have larger receptive fields and mainly represent semantic information about roof classes and their surrounding environment. The four levels of features are jointly fed into the subsequent decoder for multi-scale feature fusion and spatial resolution recovery.
- (2)
- Learnable Full-Resolution Decoder
The original SegFormer decoder performs multi-scale feature fusion at the H/4 × W/4 scale and generates low-resolution classification logits, which are then upsampled to the input image resolution using fixed bilinear interpolation. Industrial building roofs usually have regular outlines, but they also contain detailed structures such as PV module arrangements, metal-sheet seams, and local rooftop facilities. To improve spatial reconstruction after multi-scale feature fusion, this study draws on the idea of progressive learnable upsampling [35] and develops a learnable full-resolution decoder consisting of multi-scale feature alignment, feature fusion, and two-stage learnable upsampling.
First, the four levels of features output by the encoder are aligned in the channel dimension and spatial resolution as follows:
where denotes the aligned feature at level , denotes the channel mapping, denotes batch normalization, denotes the ReLU activation function, and denotes the bilinear resizing, yielding .
The four aligned features are then concatenated along the channel dimension and fused through convolution, batch normalization, and ReLU activation:
The fused feature integrates spatial details from shallow features with semantic information from deep features.
Based on , two consecutive learnable upsampling modules are used to progressively restore the feature to the input image resolution:
where and denote the first and second learnable upsampling modules, respectively, denotes a transposed convolution with output channels, a kernel size of , a stride of 2, and a padding of 1, and denotes a convolution with output channels. The two stages yield and , respectively. The resulting full-resolution feature enhances the representation of roof outlines, narrow regions, class boundaries, and discriminative local textures for subsequent pixel-level classification.
2.2.2. Coarse-to-Fine Classification Heads and Ambiguous Sample Utilization Strategy
- (1)
- Coarse-Grained and Fine-Grained Classification Heads
The full-resolution feature is fed into two parallel 1 × 1 classification heads to generate the coarse-grained and fine-grained logits, respectively:
where and denote the 1 × 1 convolutions of the coarse-grained and fine-grained classification heads, respectively, and and denote their corresponding logits.
The coarse-grained classification head outputs the probabilities of background, PV-installed roof, and non-PV roof, denoted by , , and , respectively, after Softmax:
The fine-grained classification head outputs the conditional probabilities that a non-PV roof belongs to the metal pitched roof or non-metal flat roof class, denoted by and , respectively:
The final probabilities for background, PV-installed roof, metal pitched roof, and non-metal flat roof, denoted by , , , and , respectively, are obtained by combining the coarse-grained and fine-grained probabilities:
- (3)
- Strategy for Utilizing Ambiguous Roofs
Given that ambiguous roofs have reliable coarse-grained labels but uncertain fine-grained labels, this study applies a coarse-only supervision strategy within the coarse-to-fine classification structure. Their information as non-PV roofs is retained for coarse-grained classification, while their fine-grained supervision is masked. To evaluate the effectiveness of this strategy, a complete discard strategy and a forced labeling strategy are used for comparison.
Specifically, under the coarse-only supervision strategy, ambiguous roofs are mapped to non-PV roofs in the coarse-grained supervision target and assigned the ignore label 255 in the fine-grained supervision target. Under the complete discard strategy, ambiguous roofs are assigned label 255 in both the coarse-grained and fine-grained supervision targets. Under the forced labeling strategy, each eight-connected ambiguous-roof region is randomly assigned once to either metal pitched roof or non-metal flat roof, and the assigned label is then used for both coarse-grained and fine-grained supervision. This simulates the practice of forcing category-ambiguous samples into a specific class during labeling.
2.2.3. Joint Loss Function
The model is jointly trained using the coarse-grained classification loss and the fine-grained classification loss. After applying the corresponding ambiguous-roof strategy, let denote the training label of pixel u. The coarse-grained target and fine-grained target are defined as follows:
Let and denote the sets of valid pixels for coarse-grained and fine-grained supervision, respectively. The corresponding cross-entropy losses are defined as follows:
where and denote the coarse-grained and fine-grained classification losses, respectively; and denote the numbers of valid pixels; and and denote the probabilities predicted by the coarse-grained and fine-grained classification heads for the corresponding target classes of pixel u, respectively.
The total loss is a weighted combination of the coarse-grained and fine-grained classification losses:
where denotes the weight of the fine-grained classification loss. Since the coarse- and fine-grained objectives provide complementary supervision for coarse roof classification and fine-grained non-PV roof differentiation, respectively, is used to assign equal nominal weights to the two objectives without preferentially emphasizing either level.
3. Results
3.1. Experimental Settings and Evaluation Metrics
3.1.1. Dataset and Cross-Validation Splits
The study area contains 104 source images. Except for images from Fengxian District, which are used for independent validation, the remaining 87 source images from the other seven districts are used to construct the sample dataset. Following the initial random sampling and subsequent targeted supplementation described in Section 2.1.2, 482 labeled tiles of 512 × 512 pixels are constructed. These tiles cover 74 source images, of which 50 contain only clear labels and 24 contain ambiguous roofs. In addition, 38 auxiliary tiles containing ground-mounted PV are included to reduce confusion between ground-mounted PV and PV-installed roofs. These tiles are used only for training as auxiliary negative samples. The final dataset therefore contains 520 tiles with pixel-level labels. The pixel and building-instance statistics of the four roof labels are shown in Table 2.
Table 2.
Statistics of dataset labels.
To prevent spatially adjacent tiles from the same source image from entering both the training and test sets, five-fold cross-validation is performed using the source image as the basic grouping unit. Under each random seed, the 50 source images containing only clear labels are shuffled and assigned to five test groups in a balanced manner according to their numbers of tiles. In each fold, one group is used as the test set, and approximately 20% of the remaining clear-label source images are selected as the validation set. The 24 source images containing ambiguous roofs and the 38 auxiliary negative samples are included in the training set of every fold, and their tiles are excluded from the validation and test sets. Therefore, the validation and test sets in each fold contain only samples with clear ground-truth classes, allowing different models and strategies to be compared against the same reliable ground truth. Under the same random seed, all comparison methods share exactly the same training, validation, and test splits.
3.1.2. Experimental Settings and Comparison Schemes
All experiments are implemented using PyTorch 2.11.0 and Hugging Face Transformers 5.9.0 and run on a single NVIDIA GeForce RTX 5090 GPU. The AdamW optimizer is used. The initial learning rate of the encoder is set to 6 × 10−5, the learning rate of the newly added decoder modules is set to 3 × 10−4, and the weight decay is 0.01. Linear warm-up is applied for the first three epochs, followed by cosine annealing to reduce the learning rate to 1 × 10−7. The batch size is set to 4, and bfloat16 (BF16) mixed-precision training is used. All models are trained for 80 epochs, and the weights from the final epoch are used for testing to avoid the effect of validation-set fluctuations on model selection. Data augmentation during training includes random horizontal and vertical flips, 90° rotations, and brightness and contrast adjustments. Images are normalized using the ImageNet mean and standard deviation, while only normalization is applied during validation and testing.
All experiments use three random seeds: 42, 2024, and 2025. Each seed is used to generate the five-fold splits at the source-image level and to control model initialization, data augmentation, and sample order. Therefore, differences among seeds reflect the combined effects of data splitting and training randomness.
To separately evaluate the effects of the utilization strategy for ambiguous samples and the learnable full-resolution decoder, four schemes are designed as shown in Table 3. Schemes ①, ②, and ④ are used to compare the three ambiguous-sample utilization strategies, while Schemes ③ and ④ are used to evaluate the effect of the learnable full-resolution decoder. Scheme ④ represents the complete method proposed in this study and is shared by both comparisons.
Table 3.
Comparison schemes.
3.1.3. Evaluation Metrics
Precision, recall, F1 score, and intersection over union (IoU) are used to evaluate the classification results. For each foreground class , Let , , and denote the numbers of true positive, false positive, and false negative pixels, respectively. The metrics are calculated as follows:
Given the high proportion of background pixels, macro IoU and overall IoU are calculated based on the three foreground classes. Macro IoU is calculated as the average of the IoUs for PV-installed roof, metal pitched roof, and non-metal flat roof, and therefore reflects the classification performance across the three roof classes without being dominated by any single class:
Overall IoU is calculated by pooling the , , and values across the three foreground classes, and therefore reflects the overall classification performance of all foreground pixels:
Building IoU is calculated by merging PV-installed roof, metal pitched roof, and non-metal flat roof into a single building roof class, and therefore reflects the accuracy of roof spatial extent identification independently of confusion among the three roof classes:
where , , and denote the true positive, false positive, and false negative pixels after merging the three foreground classes into the building roof class. Building F1 is calculated in the same manner using Equation (18).
Boundary IoU is calculated for the building roof class defined above by evaluating the overlap between the predicted and reference roof boundaries, and therefore reflects the boundary delineation accuracy of the extracted building roofs:
where , , and denote the true-positive, false-positive, and false-negative pixels within the boundary regions of the merged building roof masks, respectively. The width of the boundary region used for Boundary IoU calculation is set to 2% of the image diagonal [41].
For each scheme, the five-fold results are first aggregated under each random seed, and the mean and standard deviation are then calculated across the three seeds.
3.2. Model Comparison and Decoder Ablation
3.2.1. Comparison with Baseline Models
To evaluate the overall performance of HiFRD-SegFormer, seven models are selected for comparison: SAM2 [42] with zero-shot point prompting, U-Net (ResNet-50) [43,44], DeepLabV3+ (ResNet-50 and ResNet-101) [44,45], HRNet-W32 [46], Mask2Former [47], and SegFormer-B2. For SAM2, class-specific point prompts are generated from the reference roof regions, and zero-shot segmentation is performed without training or fine-tuning. The class-wise masks are subsequently merged according to the prediction scores to obtain the final semantic prediction. Except for SAM2, all supervised models adopt the same coarse-only supervision strategy. U-Net, DeepLabV3+, HRNet-W32, and SegFormer-B2 use the same coarse-to-fine classification heads, whereas Mask2Former retains its native mask-query architecture and applies the same coarse- and fine-grained supervision information to the resulting semantic probabilities. SegFormer-B2 serves as the direct baseline of HiFRD-SegFormer.
The training convergence and quantitative results are shown in Figure 4 and Table 4, respectively. As shown in Figure 4a, although the models differ in their early convergence rates, their validation macro IoU curves gradually stabilize in the later training stage, indicating that all models reach a stable state under the adopted training schedule. Figure 4b further shows that the validation IoUs of the three roof classes predicted by HiFRD-SegFormer also become stable as training proceeds.
Figure 4.
Training convergence of the compared models. (a) Validation macro IoU convergence of the seven models; (b) class-wise validation IoU convergence of HiFRD-SegFormer. For each epoch, the five-fold results are first averaged within each random seed and then averaged across the three seeds; the shaded areas in (b) indicate ±1 standard deviation across seeds.
Table 4.
Quantitative comparison with baseline models (mean ± σ over three seeds, %).
As shown in Table 4, except for PV-installed roof IoU, where HiFRD-SegFormer is slightly lower than Mask2Former, HiFRD-SegFormer achieves the best performance among all compared models on all other metrics. The improvement is particularly evident for non-metal flat roofs, which show the lowest IoU among the three foreground classes across all supervised models and therefore represent the most challenging category in this task. HiFRD-SegFormer yields a clearer advantage for this class than for the other two roof categories, indicating that the proposed architecture is more effective in distinguishing difficult non-metal flat roofs.
To further evaluate the computational cost of different models, we compare their parameter counts, FLOPs, training and inference memory usage, and training and inference time, as shown in Table 5. Compared with SegFormer-B2, HiFRD-SegFormer has slightly more parameters and higher FLOPs, while requiring less training and inference memory, a shorter training time, and a nearly unchanged inference time. Overall, these results indicate that the additional computational cost introduced by the proposed decoder remains limited in practical implementation. Although Mask2Former achieves a slightly higher IoU for PV-installed roofs, it requires substantially more parameters, memory, and training and inference time than HiFRD-SegFormer. This indicates that HiFRD-SegFormer provides a more compact implementation while maintaining stronger overall classification performance.
Table 5.
Computational complexity and resource consumption of different models.
3.2.2. Decoder Ablation Analysis
As shown in Table 4, replacing the original SegFormer decoder in Scheme ③ with the learnable full-resolution decoder in Scheme ④ improves all reported IoU metrics. To further examine the stability of these gains across random seeds, Table 6 reports the per-seed improvements (Δ) in Macro IoU, Overall IoU, Building IoU, Boundary IoU, and the IoUs of the three roof classes.
Table 6.
Per-seed results of decoder structure comparison (%).
The learnable full-resolution decoder produces consistent improvements across all three random seeds: macro IoU increases under every seed, with gains ranging from +0.36 to +1.75 percentage points. In terms of where the gains occur spatially, the improvement in Building IoU is highly stable across seeds (σ = 0.04 pp). The IoU gains for the three foreground classes are similar in magnitude, but show noticeably larger variation across seeds. This difference in stability indicates that the most consistent contribution of this module is the reconstruction of roof spatial extent.
To further examine whether this performance improvement is consistent across different data splits and random initializations, the results of HiFRD-SegFormer and SegFormer-B2 obtained under the same random seed and the same fold are paired, yielding 15 paired observations. Two-sided paired t-tests and Wilcoxon signed-rank tests are then conducted, with the results shown in Table 7. The results indicate that, except for the IoU of PV-installed roofs, all other metrics reach statistical significance in both tests.
Table 7.
Paired statistical significance tests between HiFRD-SegFormer and SegFormer-B2.
The examples in Figure 5 further show that this ability to recover spatial details also helps correct fine-grained classification errors. Rows 1–3 show cases where the original decoder produces missed detections or class confusion, while the learnable full-resolution decoder gives correct predictions. Rows 4–6 show improvements in boundary refinement. This is because the original SegFormer directly upsamples the fused features at the H/4 × W/4 scale by a factor of four using bilinear interpolation. This process can smooth boundary information such as roof outlines and class boundaries, and can also weaken discriminative local textures such as PV module arrangements and metal-sheet seams. The two-stage learnable upsampling modules preserve these spatial details that would otherwise be smoothed by interpolation, thereby improving both boundary accuracy and fine-grained class discrimination.
Figure 5.
Comparison of classification results between decoder structures. Rows 1–3 show examples of improved class discrimination. Rows 4–6 show examples of boundary refinement.
3.3. Comparison of Ambiguous Sample Utilization Strategies
With the learnable full-resolution decoder fixed, three strategies for utilizing ambiguous roofs are compared: complete discard, forced labeling, and coarse-only supervision (Schemes ①, ②, and ④ in Table 3). The three strategies differ only in the supervision targets for ambiguous pixels, while the network structure, training settings, and data splits are identical. Section 3.3.1 and Section 3.3.2 evaluate them in terms of classification accuracy in clearly labeled regions and roof detection ability in ambiguous-roof regions, respectively.
3.3.1. Classification Accuracy in Clearly Labeled Regions
The metrics of the three strategies on the clearly labeled test set are shown in Table 8, and the macro IoU results for each random seed are shown in Table 9.
Table 8.
Comparison of ambiguous sample utilization strategies (mean ± σ over three seeds, %).
Table 9.
Per-seed macro IoU under different ambiguous sample utilization strategies (%).
As shown in Table 8, coarse-only supervision achieves the highest Macro IoU, Overall IoU, Building IoU, and PV-installed roof IoU, indicating the best overall performance. However, for Metal pitched roof IoU and Non-metal flat roof IoU, complete discard performs slightly better than coarse-only supervision, whereas forced labeling gives the lowest values. This pattern is consistent with the supervision mechanisms of the three strategies: complete discard excludes category-ambiguous roofs from supervision, thereby preventing uncertain fine-grained class information from affecting classification, whereas forced labeling assigns category-ambiguous roofs to a specific class and introduces unreliable fine-grained supervision during training.
The per-seed results in Table 9 further show that the relative performance of the two strategies varies across random seeds. At seed 42, complete discard achieves a higher Macro IoU than coarse-only supervision, whereas coarse-only supervision performs better at seeds 2024 and 2025. Nevertheless, coarse-only supervision achieves the highest mean Macro IoU and the lowest mean standard deviation across folds, indicating better overall performance and stability.
Overall, although coarse-only supervision does not consistently outperform the other strategies across all classes and random seeds, it avoids the unreliable class information introduced by forced labeling while retaining the reliable roof-area information lost by complete discard, resulting in better overall classification accuracy and stability.
3.3.2. Detection Ability in Ambiguous-Roof Regions
Although complete discard sometimes outperforms coarse-only supervision, it completely masks category-ambiguous roofs during training and therefore does not use the reliable roof information contained in these samples. Figure 6 further provides an intuitive comparison of the two strategies in category-ambiguous roof regions. Complete discard is more likely to classify parts of these roofs as background, whereas coarse-only supervision retains their coarse-grained non-PV roof supervision and can therefore identify more complete roof regions. Thus, although coarse-only supervision does not necessarily improve the classification accuracy of every individual class, it helps reduce missed detections of roof regions.
Figure 6.
Comparison of classification results in ambiguous-roof regions. From left to right: original image, classification result of complete discard, classification result of coarse-only supervision, and the difference between the two results. Red areas indicate regions detected by coarse-only supervision but missed by complete discard.
3.4. Sensitivity Analysis of Model Configuration and Input Conditions
To examine the sensitivity of HiFRD-SegFormer to key model configurations and variations in input imagery, we further evaluate the effects of decoder kernel size, fine-grained loss weight, spatial resolution, and brightness and contrast.
3.4.1. Sensitivity to Decoder Kernel Size
To examine the effect of the local feature extraction scale in the decoder on classification performance, the 3 × 3 convolution before the full-resolution features enter the coarse- and fine-grained classification heads is replaced with 5 × 5 and 7 × 7 convolutions, while all other model structures and training settings remain unchanged. As shown in Table 10, the 3 × 3 kernel achieves higher Macro IoU, Overall IoU, PV-installed roof IoU, and metal pitched roof IoU than the other two settings. Increasing the kernel size slightly improves Building IoU and non-metal flat roof IoU in some cases, but does not further improve the overall classification performance. These results indicate that the decoder can effectively refine full-resolution features with the smaller local convolution kernel, while further increasing the kernel size does not provide stable performance gains.
Table 10.
Classification performance under different decoder kernel sizes.
3.4.2. Sensitivity to Fine-Grained Loss Weight
To analyze the effect of the fine-grained loss weight on model performance, is set to 0.01, 0.25, 0.5, 1.0, 2.0, 5.0, and 10.0 for comparison. As shown in Table 11, when is within a small to moderate range, the overall variation across the evaluation metrics is limited, and the best values of different metrics occur at different weights without an obvious monotonic trend. At , the model achieves the highest Overall IoU, Building IoU, and metal pitched roof IoU, while its Macro IoU is very close to the highest value. As increases further, particularly to 5.0 and 10.0, several metrics decline noticeably, indicating that an excessively large fine-grained loss weight degrades the overall classification performance. Overall, the model maintains relatively stable performance over a broad range of , but is more sensitive to excessively large fine-grained loss weights.
Table 11.
Classification performance under different fine-grained loss weights.
3.4.3. Sensitivity to Input Image Conditions
- (1)
- Spatial Resolution
To analyze the sensitivity of HiFRD-SegFormer to changes in spatial resolution, a resolution perturbation experiment is conducted at the testing stage. The test images and their corresponding labels are downsampled to different spatial resolutions and evaluated using the previously trained models. As shown in Table 12, all metrics decrease noticeably as the spatial resolution decreases. The declines are more pronounced for PV-installed roofs and non-metal flat roofs, while metal pitched roofs retain more recognizable structural features at lower resolutions. These results indicate that the current model relies strongly on high-resolution information, including roof boundaries, PV module textures, and differences in roof materials.
Table 12.
Classification performance under different spatial resolutions.
- (2)
- Brightness and Contrast
To evaluate the adaptability of HiFRD-SegFormer to non-ideal imaging conditions, brightness and contrast sensitivity experiments are further conducted by applying four groups of controlled perturbations to the original test images. As shown in Table 13, all metrics show relatively limited decreases under the three perturbation conditions other than strong brightening/high contrast. Under strong brightening/high contrast, model performance declines more noticeably, with larger decreases for metal pitched roofs and non-metal flat roofs than for PV-installed roofs. Figure 7 presents typical classification results under different brightness and contrast conditions. Moderate changes in brightness and contrast generally do not substantially alter roof-region extraction or class assignment, whereas under strong brightening/high contrast, some roofs begin to show omission, false extraction, or class confusion. Overall, HiFRD-SegFormer remains relatively stable under darkening/low-contrast and moderate brightening/high-contrast perturbations, but is more sensitive to stronger increases in brightness and contrast. This indicates that excessive brightness and contrast changes can affect the model’s use of local roof texture, tonal, and morphological features.
Table 13.
Classification performance under different brightness and contrast conditions.
Figure 7.
Comparison of classification results under different brightness and contrast conditions. The following error patterns are most evident under the strong bright/high-contrast condition. Rows 1–2 show omission and false extraction of metal pitched roofs; Rows 3–4 show confusion between metal pitched roofs and non-metal flat roofs; and Rows 5–6 show confusion between PV-installed roofs and the other two roof classes.
3.5. Application of Industrial Building Roof Classification in Shanghai
The proposed HiFRD-SegFormer is applied to high-resolution imagery covering all industrial land in the study area. For each seed, the prediction probabilities of the five-fold models are averaged during inference to reduce the influence of any single model on the citywide statistics. Prediction is performed tile by tile using a sliding window of 512 × 512 pixels with an overlap of 256 pixels between adjacent windows. Probabilities are averaged in the overlapping areas to reduce stitching artifacts. The tile-level results are then mosaicked according to their geographic coordinates to produce a classification raster covering the entire industrial land area. The area statistics for the three random seeds are reported in Table 14, while the district-level statistics averaged across the three seeds are reported in Table 15.
Table 14.
Seed-wise comparison of industrial building roof classification statistics in Shanghai.
Table 15.
Industrial building roof classification statistics for each district in Shanghai.
The total area and spatial distribution of industrial building roofs provide the spatial basis for PV potential estimation. The area statistics obtained from the three random seeds are very close. A total of 79.02 km2 of industrial building roofs is identified within the industrial land of the study area. Pudong New Area has the largest roof area at 16.91 km2, followed by Fengxian District and Jinshan District, while Minhang District has the smallest area. The differences in total roof area among districts show that the space available for industrial rooftop PV development is highly uneven across the city.
The proportion of PV-installed roof area reflects the level of PV development on industrial building roofs. The study area contains 20.31 km2 of PV-installed roofs, accounting for 25.7% of the total roof area. This means that about one quarter of the industrial building roof area has already been developed for PV. Clear spatial differences are observed among districts. The development rates in Baoshan District (35.47%) and Jinshan District (32.28%) are well above the citywide average, whereas Jiading District and Qingpu District have the lowest rates. The area and class composition of non-PV roofs determine the remaining developable capacity. Across the study area, 58.71 km2 of roofs remain without PV, including 38.9 km2 of metal pitched roofs and 19.81 km2 of non-metal flat roofs. Thus, the remaining developable roofs are mainly metal pitched roofs, which are suitable for PV modules installed parallel to the roof slope. Pudong New Area and Fengxian District have the largest remaining developable roof areas. The proportions of metal pitched roofs and non-metal flat roofs also vary considerably among districts.
To assess the reliability of the above area statistics, 10 industrial sites in Fengxian District are further selected as independent validation samples to evaluate the regional generalization performance of the model. Data from Fengxian District are not involved in the construction of the training, validation, or test datasets. Therefore, this independent evaluation provides additional accuracy support for the reliability of the above area statistics. As shown in Table 16, the mean Macro IoU, Overall IoU, and Building IoU across the 10 sites are 82.22%, 84.70%, and 88.22%, respectively. Among the three roof classes, the mean IoUs for PV-installed roofs and metal pitched roofs reach 88.65% and 85.74%, respectively, while the mean IoU for non-metal flat roofs is relatively lower at 72.27%. Overall, the model maintains good classification performance in the independent area, indicating good regional generalization ability and further supporting the reliability of the citywide classification map and the above area statistics.
Table 16.
Independent parcel-level validation for seed 2024 in Fengxian District.
The consistent data derived from high-resolution remote sensing image classification fill a gap in existing statistics on the spatial extent of industrial building roofs and their current PV installation status. They provide direct and comparable spatial information for regional PV potential assessment and subsequent planning.
In addition to regional statistics, the classification results also provide more direct planning information at the parcel scale. Figure 8 presents representative classification results for parcels in the eight study districts. These results reveal two main aspects. First, different roof types are often interspersed within the same industrial land parcel, and the dominant roof type varies markedly among parcels. This spatial heterogeneity indicates that applying uniform parameters and methods to assess the PV potential of all roofs within industrial land may introduce substantial errors. Second, the class composition of a parcel provides an intuitive indication of its current PV development status and remaining roof resources. Parcels dominated by PV-installed roofs generally indicate a relatively high level of existing PV development, whereas parcels dominated by metal pitched roofs or non-metal flat roofs indicate substantial remaining undeveloped roof resources. Although roof type cannot be directly equated with a specific building function, different roof types are associated with different building uses and PV installation conditions, and therefore provide useful preliminary information for identifying parcels that warrant greater attention for future PV development.
Figure 8.
Classification results for representative industrial parcels in the eight study districts. Each subfigure shows the original remote sensing image and the corresponding classification result: (a) a parcel with a relatively high level of rooftop PV development; (b–d,f) parcels containing extensive metal pitched roofs; (e) a parcel where residential buildings are correctly classified as background; (g) a parcel containing ground-mounted PV that is correctly distinguished from PV-installed roofs with the aid of the ground-mounted PV negative samples included during training; and (h) a parcel dominated by non-metal flat roofs.
4. Discussion
4.1. Analysis of Method Effectiveness
The effectiveness of the proposed method is first reflected in its unified classification of the PV development status and physical characteristics of industrial building roofs. Existing studies generally obtain information on PV development status and roof form separately. Obtaining the three industrial building roof classes required in this study would therefore often involve multiple models, processing steps, or data sources. This makes the process more complex and may also introduce errors caused by spatial and temporal differences among data sources. HiFRD-SegFormer uses only high-resolution remote sensing imagery as input and directly identifies PV-installed roofs, metal pitched roofs, and non-metal flat roofs through a single forward pass. By treating PV-installed roofs as a direct classification target, the method avoids inferring PV development status indirectly from the spatial relationship between PV panel pixels and roof areas. This reduces the risk of misclassifying roof areas reserved for PV module layout as areas available for future development. For non-PV roofs, the classification scheme considers both material and form to address the complex characteristics of industrial building roofs. An auxiliary ambiguous-roof label is introduced for roofs that cannot be reliably assigned to a fine-grained class. The coarse-to-fine classification architecture and coarse-only supervision strategy further retain the reliable non-PV roof information from category-ambiguous samples while preventing uncertain fine-grained class information from interfering with the classification of metal pitched roof and non-metal flat roof.
The learnable full-resolution decoder further improves the recovery of roof spatial extent and class features. The ablation results show that the decoder improves macro IoU and the IoU of each class under all three random seeds, while the gain in building IoU shows relatively small variation across seeds. Typical examples further show that the improvement is reflected not only in more accurate identification of roof outlines and class boundaries, but also in fewer local missed detections and less class confusion.
4.2. Application Value and Limitations
The classification results produced by the proposed method have direct value for detailed planning and existing-stock analysis of distributed PV. The identification of PV-installed roofs provides a spatially explicit baseline of current PV development and enables the proportion of industrial building roof area already developed for PV to be quantified. For roofs available for future development, distinguishing metal pitched roofs from non-metal flat roofs corresponds to two different PV installation methods. PV modules on metal pitched roofs are usually installed parallel to the existing roof slope, whereas those on non-metal flat roofs require supporting structures and are installed at the optimal tilt angle. These two roof types differ systematically in the usable-area coefficient per unit roof area and installation cost. Therefore, the classification results provide a basis for differentiated PV potential assessment by allowing roof type-specific usable-area coefficients and installation conditions to be considered.
This study also has several limitations. At the model level, the sensitivity experiments show that the current method still relies on high-spatial-resolution imagery, and its performance decreases under substantial reductions in spatial resolution or strong brightness and contrast variations. Future work could further improve the model’s adaptability to imagery with different spatial resolutions and imaging conditions.
At the large-scale application level, two additional limitations should be noted. On the one hand, the spatial extent of industrial land is defined using planning data. Differences between planned land use and actual current land use may introduce errors into regional-scale statistics. Although urban functional zone datasets have been made publicly available in previous studies [48,49], they may differ in acquisition time from the imagery used in this study, contain fragmented patches, and include inherent product errors. In comparison, industrial land patches in the planning data are more complete and regular. Therefore, this study uses the planning data as the basic spatial boundary and manually refines the boundaries through visual interpretation of high-resolution remote sensing imagery. Future work will explore automatic identification of industrial land to improve the reliability of regional-scale classification and area estimation of industrial buildings. On the other hand, tiled inference and mosaicking may still affect pixels near parcel boundaries, particularly in narrow or irregular industrial areas. To reduce this effect, complete image tiles extending beyond industrial parcels are retained to preserve spatial context around boundary pixels, and a sliding-window inference strategy with 50% overlap is used to reduce seam artifacts during mosaicking. Although probability averaging in overlapping windows helps reduce seam artifacts, it may also slightly smooth predictions along locally complex or narrow roof boundaries. Therefore, some uncertainty may remain in extremely narrow, fragmented, or highly irregular industrial parcels. Future work could further reduce such errors through finer parcel-boundary constraints, boundary post-processing, or object-level consistency optimization.
5. Conclusions
This study proposes HiFRD-SegFormer, an industrial building roof classification method integrating hierarchical supervision and learnable full-resolution decoding. Based on high-resolution remote sensing imagery, the method obtains classification results for PV-installed roofs, metal pitched roofs, and non-metal flat roofs through a single forward pass. Using Shanghai as the study area, this study constructs an industrial building roof classification dataset. Compared with the complete discard and forced labeling strategies for category-ambiguous samples, the coarse-only supervision strategy achieves the best overall performance by avoiding unreliable fine-grained class information introduced by forced labeling while reducing missed roof detections associated with complete discard. Compared with SAM2 with zero-shot point prompting, U-Net (ResNet-50), DeepLabV3+ (ResNet-50 and ResNet-101), HRNet-W32, Mask2Former, and SegFormer-B2, HiFRD-SegFormer achieves the best overall performance, with a particularly pronounced advantage for non-metal flat roofs. Relative to the SegFormer-B2 baseline, the learnable full-resolution decoder improves boundary identification and reduces class confusion, increasing the Overall IoU from 85.00% to 85.99% and the IoUs of PV-installed roofs, metal pitched roofs, and non-metal flat roofs to 87.53%, 89.73%, and 78.05%, respectively. Within the industrial land of eight districts in Shanghai, the areas of PV-installed roofs, metal pitched roofs, and non-metal flat roofs are 20.31 km2, 38.90 km2, and 19.81 km2, respectively. The classification results reflect both the current scale of PV development on industrial building roofs and the differences in key physical conditions among roofs available for future development. They provide a more detailed and objective basis for assessing current distributed PV development, estimating remaining potential, and planning differentiated PV installation.
Author Contributions
Conceptualization, W.Z. and L.P.; methodology, W.Z., L.P., L.Y. and Z.L.; software, W.Z. and Z.L.; validation, W.Z.; formal analysis, W.Z. and L.Y.; investigation, W.Z. and Z.L.; resources, L.Y.; data curation, W.Z. and J.X.; writing—original draft preparation, W.Z.; writing—review and editing, L.P., L.Y. and C.Q.; visualization, W.Z. and C.Q.; supervision, L.P.; project administration, L.P.; funding acquisition, L.P. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the Foreign Technical Cooperation and Scientific Research Program, grant number ZE01. The APC was funded by the Aerospace Information Research Institute, Chinese Academy of Sciences.
Data Availability Statement
The data, source code, and trained model weights supporting the findings of this study are publicly available in the HiFRD-SegFormer GitHub repository, version 1.0.0, at https://github.com/xfxzwyzwy/HiFRD-Segformer (accessed on 15 August 2026).
Acknowledgments
The authors would like to thank all individuals who provided valuable assistance and constructive suggestions during this study.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Yang, J.; Wu, J.; Lu, J.; Peng, X.; Yuan, H.; Lai, L.L. A novel method for assessment rooftop PV potential based on remote sensing images. Renew. Energy 2024, 237, 121810. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Z.; Pu, Y.; Sun, Z.; Qian, Z.; Chen, M. Assessment of Rooftop Photovoltaic Potential Considering Building Functions. Remote Sens. 2024, 16, 2993. [Google Scholar] [CrossRef] [Scilit]
- Li, G.; Wang, Z.; Xu, C.; Li, T.; Gao, J.; Mao, Q.; Chen, S. A district-scale spatial distribution evaluation method of rooftop solar energy potential based on deep learning. Sol. Energy 2024, 268, 112282. [Google Scholar] [CrossRef] [Scilit]
- Shi, M.; Lu, X.; Craig, M.T. Unveiling deployable rooftop solar potential across Chinese cities. Nat. Cities 2025, 2, 650–661. [Google Scholar] [CrossRef] [Scilit]
- Chen, Y.; Wang, S.; Li, T. Analysis of Rooftop Photovoltaic Potential and Electricity Planning in Lanzhou Urban Areas. Buildings 2025, 15, 2207. [Google Scholar] [CrossRef] [Scilit]
- Ranjgar, B.; Niccolai, A. Large-Scale Rooftop Solar Photovoltaic Power Production Potential Assessment: A Case Study for Tehran Metropolitan Area, Iran. Energies 2023, 16, 7111. [Google Scholar] [CrossRef] [Scilit]
- Qi, Q.; Zhao, J.; Tan, Z.; Tao, K.; Zhang, X.; Tian, Y. Development assessment of regional rooftop photovoltaics based on remote sensing and deep learning. Appl. Energy 2024, 375, 124172. [Google Scholar] [CrossRef] [Scilit]
- Wu, A.N.; Biljecki, F. Roofpedia: Automatic mapping of green and solar roofs for an open roofscape registry and evaluation of urban sustainability. Landsc. Urban Plan. 2021, 214, 104167. [Google Scholar] [CrossRef] [Scilit]
- Kausika, B.B.; Nijmeijer, D.; Reimerink, I.; Brouwer, P.; Liem, V. GeoAI for detection of solar photovoltaic installations in the Netherlands. Energy AI 2021, 6, 100111. [Google Scholar] [CrossRef] [Scilit]
- Thebault, M.; Nerot, B.; Govehovitch, B.; Ménézo, C. A comprehensive building-wise rooftop photovoltaic system detection in heterogeneous urban and rural areas: Application to French territories. Appl. Energy 2025, 388, 125630. [Google Scholar] [CrossRef] [Scilit]
- Mainzer, K.; Killinger, S.; McKenna, R.; Fichtner, W. Assessment of rooftop photovoltaic potentials at the urban level using publicly available geodata and image recognition techniques. Sol. Energy 2017, 155, 561–573. [Google Scholar] [CrossRef] [Scilit]
- Lin, S.; Zhang, C.; Ding, L.; Zhang, J.; Liu, X.; Chen, G.; Wang, S.; Chai, J. Accurate Recognition of Building Rooftops and Assessment of Long-Term Carbon Emission Reduction from Rooftop Solar Photovoltaic Systems Fusing GF-2 and Multi-Source Data. Remote Sens. 2022, 14, 3144. [Google Scholar] [CrossRef] [Scilit]
- Narjabadifam, N.; Al-Saffar, M.; Zhang, Y.; Nofech, J.; Cen, A.C.; Awad, H.; Versteege, M.; Gül, M. Framework for Mapping and Optimizing the Solar Rooftop Potential of Buildings in Urban Systems. Energies 2022, 15, 1738. [Google Scholar] [CrossRef] [Scilit]
- Song, X.; Huang, Y.; Zhao, C.; Liu, Y.; Lu, Y.; Chang, Y.; Yang, J. An Approach for Estimating Solar Photovoltaic Potential Based on Rooftop Retrieval from Remote Sensing Images. Energies 2018, 11, 3172. [Google Scholar] [CrossRef] [Scilit]
- Ninsawat, S.; Hossain, M. Identifying Potential Area and Financial Prospects of Rooftop Solar Photovoltaics (PV). Sustainability 2016, 8, 1068. [Google Scholar] [CrossRef] [Scilit]
- Mohajeri, N.; Assouline, D.; Guiboud, B.; Bill, A.; Gudmundsson, A.; Scartezzini, J.-L. A city-scale roof shape classification using machine learning for solar energy applications. Renew. Energy 2018, 121, 81–93. [Google Scholar] [CrossRef] [Scilit]
- Assouline, D.; Mohajeri, N.; Scartezzini, J.L. Large-scale rooftop solar photovoltaic technical potential estimation using Random Forests. Appl. Energy 2018, 217, 189–211. [Google Scholar] [CrossRef] [Scilit]
- Wang, J.; Cheng, L.; Zheng, Y.; Cui, H.; Zhu, M. A Method for Assessing the Potential of Multifunctional Retrofitting of Rural Roofs Based on GF-2 Remote Sensing Imagery. Sensors 2025, 25, 770. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Li, Q.; Krapf, S.; Mou, L.; Shi, Y.; Zhu, X.X. Deep learning-based framework for city-scale rooftop solar potential estimation by considering roof superstructures. Appl. Energy 2024, 374, 123839. [Google Scholar] [CrossRef] [Scilit]
- Sun, T.; Shan, M.; Rong, X.; Yang, X. Estimating the spatial distribution of solar photovoltaic power generation potential on different types of rural rooftops using a deep learning network applied to satellite images. Appl. Energy 2022, 315, 119025. [Google Scholar] [CrossRef] [Scilit]
- Liu, S.; Liu, K.; Zhu, W.; Shen, Y.; Fernandez-Granda, C. Adaptive Early-Learning Correction for Segmentation from Noisy Annotations. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA; IEEE: New York, NY, USA, 2022; pp. 2596–2606. [Google Scholar] [CrossRef] [Scilit]
- Song, H.; Yang, L.; Jung, J. Self-Filtered Learning for Semantic Segmentation of Buildings in Remote Sensing Imagery With Noisy Labels. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2023, 16, 1113–1129. [Google Scholar] [CrossRef] [Scilit]
- Lyu, X.; Zhang, L. Semantic Segmentation for Multi-Scene Remote Sensing Images with Noisy Labels Based on Uncertainty Perception. In Proceedings of the ICASSP 2024—2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Seoul, Republic of Korea; IEEE: New York, NY, USA, 2024; pp. 4195–4199. [Google Scholar] [CrossRef] [Scilit]
- Zhao, X.; Cheng, Y.; Liang, L.; Wang, H.; Gao, X.; Wu, J. A balanced random learning strategy for CNN based Landsat image segmentation under imbalanced and noisy labels. Pattern Recognit. 2023, 144, 109824. [Google Scholar] [CrossRef] [Scilit]
- Xi, M.; Li, J.; He, Z.; Yu, M.; Qin, F. NRN-RSSEG: A Deep Neural Network Model for Combating Label Noise in Semantic Segmentation of Remote Sensing Images. Remote Sens. 2023, 15, 108. [Google Scholar] [CrossRef] [Scilit]
- Xu, G.; Deng, M.; Sun, G.; Guo, Y.; Chen, J. Improving Building Extraction by Using Knowledge Distillation to Reduce the Impact of Label Noise. Remote Sens. 2022, 14, 5645. [Google Scholar] [CrossRef] [Scilit]
- Mirpulatov, I.; Illarionova, S.; Shadrin, D.; Burnaev, E. Pseudo-Labeling Approach for Land Cover Classification Through Remote Sensing Observations with Noisy Labels. IEEE Access 2023, 11, 82570–82583. [Google Scholar] [CrossRef] [Scilit]
- Liu, C.; Albrecht, C.M.; Wang, Y.; Li, Q.; Zhu, X.X. AIO2: Online Correction of Object Labels for Deep Learning With Incomplete Annotation in Remote Sensing Image Segmentation. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5613917. [Google Scholar] [CrossRef] [Scilit]
- Wang, Z.; Ding, Y.; Li, Y.; Wu, Z.; Yang, X.; Chen, Z. ACOC-MT: More Effective Handling of Real-World Noisy Labels in Remote Sensing Semantic Segmentation. IEEE Trans. Geosci. Remote Sens. 2025, 63, 4708318. [Google Scholar] [CrossRef] [Scilit]
- Kosarevych, R.; Lutsyk, O.; Rusyn, B.; Pits, N.; Maksymyuk, T.; Volosin, M. Adaptive Patch Reshaping for Edge-Based Semantic Segmentation in Remote Sensing. IEEE Access 2026, 14, 38951–38964. [Google Scholar] [CrossRef] [Scilit]
- Guo, H.; Du, B.; Zhang, L.; Su, X. A coarse-to-fine boundary refinement network for building footprint extraction from remote sensing imagery. ISPRS J. Photogramm. Remote Sens. 2022, 183, 240–252. [Google Scholar] [CrossRef] [Scilit]
- Li, Y.; Hong, D.; Li, C.; Yao, J.; Chanussot, J. HD-Net: High-resolution decoupled network for building footprint extraction via deeply supervised body and boundary decomposition. ISPRS J. Photogramm. Remote Sens. 2024, 209, 51–65. [Google Scholar] [CrossRef] [Scilit]
- Feng, D.; Chen, H.; Xie, Y.; Liu, Z.; Liao, Z.; Zhu, J.; Zhang, H. GCCINet: Global feature capture and cross-layer information interaction network for building extraction from remote sensing imagery. Int. J. Appl. Earth Obs. Geoinf. 2022, 114, 103046. [Google Scholar] [CrossRef] [Scilit]
- Wang, L.; Fang, S.; Meng, X.; Li, R. Building Extraction with Vision Transformer. IEEE Trans. Geosci. Remote Sens. 2022, 60, 5625711. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Z.; Song, W.; Zhuang, Y.; Zhang, B.; Wu, J. Automated Multi-Type Pavement Distress Segmentation and Quantification Using Transformer Networks for Pavement Condition Index Prediction. Appl. Sci. 2024, 14, 4709. [Google Scholar] [CrossRef] [Scilit]
- Shanghai Municipal People’s Government. Notice on Issuing the Action Plan for Accelerating Green and Low-Carbon Transition in Shanghai (2024–2027). Available online: https://www.shanghai.gov.cn/nw12344/20240914/a33482feb8a24666ad745e95ef295f03.html (accessed on 1 August 2026).
- Latest Developments in Distributed PV in Shanghai—News—Energy Information—China Energy Network. Available online: https://www.china5e.com/news/news-1183575-1.html (accessed on 1 August 2026).
- 2025 Statistical Yearbook—Shanghai Municipal Bureau of Statistics. Available online: https://tjj.sh.gov.cn/tjnj/20260302/ab5e54f645fd4184b9e9c3aeef8a1c6c.html (accessed on 1 August 2026).
- Territorial Spatial Master Plans of Pudong New District and Suburban Districts—Shanghai Municipal Bureau of Planning and Natural Resources. Available online: https://ghzyj.sh.gov.cn/kjztgh/index.html (accessed on 1 August 2026).
- Xie, E.; Wang, W.; Yu, Z.; Anandkumar, A.; Alvarez, J.M.; Luo, P. SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers. In Advances in Neural Information Processing Systems; Neural Information Processing Systems Foundation: San Diego, CA, USA, 2021; Volume 34, pp. 12077–12090. [Google Scholar]
- Cheng, B.; Girshick, R.; Dollar, P.; Berg, A.C.; Kirillov, A. Boundary IoU: Improving Object-Centric Image Segmentation Evaluation. In Proceedings of the 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA; IEEE: New York, NY, USA, 2021; pp. 15329–15337. [Google Scholar] [CrossRef] [Scilit]
- Ravi, N.; Gabeur, V.; Hu, Y.T.; Hu, R.; Ryali, C.; Ma, T.; Khedr, H.; Rädle, R.; Rolland, C.; Gustafson, L.; et al. SAM 2: Segment Anything in Images and Videos. arXiv 2024, arXiv:2408.00714. [Google Scholar] [CrossRef] [Scilit]
- Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In Proceedings of the Medical Image Computing and Computer-Assisted Intervention—MICCAI 2015, Munich, Germany, 5–9 October 2015; Volume 9351, pp. 234–241. [Google Scholar] [CrossRef] [Scilit]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 26 June–1 July 2016; pp. 770–778. [Google Scholar] [CrossRef] [Scilit]
- Chen, L.-C.; Zhu, Y.; Papandreou, G.; Schroff, F.; Adam, H. Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation. In Computer Vision—ECCV 2018; Springer: Berlin/Heidelberg, Germany, 2018; Volume 11211, pp. 833–851. [Google Scholar] [CrossRef] [Scilit]
- Wang, J.; Sun, K.; Cheng, T.; Jiang, B.; Deng, C.; Zhao, Y.; Liu, D.; Mu, Y.; Tan, M.; Wang, X.; et al. Deep High-Resolution Representation Learning for Visual Recognition. IEEE Trans. Pattern Anal. Mach. Intell. 2021, 43, 3349–3364. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Cheng, B.; Misra, I.; Schwing, A.G.; Kirillov, A.; Girdhar, R. Masked-attention Mask Transformer for Universal Image Segmentation. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA; IEEE: New York, NY, USA, 2022; pp. 1280–1289. [Google Scholar] [CrossRef] [Scilit]
- Gong, P.; Chen, B.; Li, X.; Liu, H.; Wang, J.; Bai, Y.; Chen, J.; Chen, X.; Fang, L.; Feng, S.; et al. Mapping essential urban land use categories in China (EULUC-China): Preliminary results for 2018. Sci. Bull. 2020, 65, 182–187. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Li, Z.; Chen, B.; Huang, Y.; Wang, H.; Wang, Y.; Yuan, Y.; Li, X.; Chen, J.M.; Xu, B.; Gong, P. Enhanced mapping of essential urban land use categories in China (EULUC-China 2.0): Integrating multimodal deep learning with multisource geospatial data. Sci. Bull. 2025, 70, 3029–3041. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.

















