Submitted:
26 October 2025
Posted:
30 October 2025
Read the latest preprint version here
Abstract

Keywords:
1. Introduction
- We introduce a custom-labeled dataset of 290 urban images taken from a ground-level perspective. Each image is manually annotated with six semantic classes related to structural damage and building context.
- We design a patch-based segmentation approach using a modified U-Net architecture. Each image is divided into fixed-size patches, which are enriched with global image embeddings generated by a pretrained ConvNeXt-Large model. These embeddings provide context about the entire scene, helping the model better understand each local region.
- To give the model awareness of spatial layout, we include positional embeddings that encode the patch’s location within the image.
- We apply Felzenszwalb’s[43] superpixel-based post-processing to refine the model’s output and reduce visual noise in the segmentation maps.
- We perform a comparative evaluation of five different encoder backbones - ResNet-50. SwinV2-Large, ConvNeXt-Large, YOLO 11x-seg, and DINOv2 - as well as a modified version of SegFormer-b5, providing insights into how these architectures perform in the context of ground-level building damage segmentation.
2. Materials and Methods
2.1. Dataset Collection and Annotation
- Other - background and non-structural objects (gray)
- Building - general building structures (green)
- Roof - undamaged roof sections (orange)
- Damage - damaged parts of buildings, excluding roofs and windows (purple)
- Damaged Roof - visibly destroyed or collapsed roof areas (red)
- Broken Window - shattered or missing windows (blue)
2.2. Patch-Based Representation and Embedding Integration
- Global image embedding: Each input image (resized to 384×384 before the embedding extraction) is also represented by a global embedding extracted with a pretrained ConvNeXt-Large model. This results in a fixed 1536-dimensional vector that encodes the overall scene context. While the segmentation network processes local patches independently, the global embedding provides complementary information about the entire image layout. This helps the model distinguish between visually similar local regions by grounding them in the broader scene structure, for example, recognizing that a small texture patch belongs to a building facade rather than a background object.
- Positional embedding: Each patch is assigned a 2D coordinate vector that represents its relative position (x,y) within the original image grid. This positional encoding enables the model to preserve spatial relationships and enhance the consistency of predictions across adjacent patches. The positional vectors are normalized and have a fixed length of 2, capturing the horizontal and vertical offset of the patch’s top-left corner.
- The image patch and its corresponding segmentation mask;
- The global context embedding;
- The positional embedding.
2.3. Dataset Preparation and Splitting
- Six classes - Other, Building, Roof, Damage, Damaged Roof, Broken Window;
- Three classes - Other, Building, Damage. Roof is merged into Building, and Broken Window and Damaged Roof are merged into Damage.
- Random Resized Crop(size = original patch size; scale = (0.6, 0.8)) - Randomly crops a part of the input image and resizes it back to the original patch size. The scale parameter defines the relative area of the crop compared to the original image, here randomly chosen between 60% and 80%. This helps the model learn robustness to partial views of objects;
- Horizontal Flip (probability(p) = 0.5) - Flips the image horizontally with probability p. A value of 0.5 means that half of the images are mirrored, improving invariance to left-right orientation;
- HSV shifts (hue shift limit=20, saturation shift limit=30, value shift limit=20, p=0.3) - Randomly alters the hue, saturation, and brightness of the image. The parameters define the maximum allowed shift: hue can change by ±20 degrees, saturation by ±30 units, and brightness by ±20 units. With p = 0.3, this augmentation is applied to 30% of the images;
- Random Brightness Contrast (brightness limit=0.15, contrast limit=0.15, p=0.4) - Randomly adjusts the brightness and contrast of the image. The brightness and contrast are changed by up to ±15% of the original values. The probability p = 0.4 means this is applied to 40% of the images;
- Gaussian Noise (std range = (0.1, 0.2), p=0.4) - Adds Gaussian-distributed noise to the image, with the standard deviation randomly sampled between 0.1 and 0.2. This encourages the model to be more robust to noisy inputs. Applied with probability p = 0.4;
- Elastic Transform (alpha=20, sigma=60, p=0.4) - Applies random elastic deformations to the image, simulating realistic spatial distortions. The parameter alpha controls the intensity of the displacement, while sigma determines the smoothness of the deformation field. With p = 0.4, this is applied to 40% of the images.
2.4. Overview of Modified U-Net
2.5. Encoder Variants
2.6. Decoder and Fusion
2.7. Overview of Modified SegFormer
2.8. Post-Processing via Superpixels
- Scale = 300 - This parameter directly influences the merging threshold. Larger values favor fewer and larger superpixels, resulting in coarser segmentation that merges finer details into broader regions. Lower values lead to finer segmentation, preserving small structures but potentially introducing noise.
- Sigma = 0.9 - This controls the degree of Gaussian smoothing applied to the image before graph construction. Smoothing helps reduce image noise, which otherwise may create spurious boundaries.
- min_size = 50 - This sets the minimum allowable size for any region (in pixels). After initial segmentation, regions smaller than this threshold are merged with neighboring regions, ensuring structural stability and preventing fragmentation into excessively small superpixels.
2.9. Loss Function
| Dataset type | Other | Building | Damage | Broken Window | Damaged Roof | Roof |
|---|---|---|---|---|---|---|
| 6 classes | 0.3 | 1.0 | 1.5 | 3.0 | 2.8 | 2.5 |
| 3 classes | 0.3 | 1.3 | 2.0 | - | - | - |
3. Results
3.1. Evaluation Metrics
- Pixel Accuracy (PA) measures the proportion of correctly predicted pixels across the entire image:
- Intersection over Union (IoU) computes the overlap between the predicted and ground truth regions for each class:
- Dice Coefficient (Dice) is a similarity measure that gives more weight to the intersection than IoU:
3.2. Environment Setup
3.3. Model Complexity and Inference Time
3.4. Architecture's Performance Comparison
- Baseline model without embeddings or superpixel postprocessing;
- With auxiliary embeddings in the bottleneck (-Emb);
- With postprocessing using Felzenszwalb superpixels (-Sup);
- With both embeddings and superpixels (-SupEmb).
3.4.1. 3-Class Models Performance
3.4.2. 6-class Models Performance
3.5. Embeddings Influence
3.5.1. 3-Class Models
3.5.2. 6-Class Models
3.6. Superpixels Influence
3.6.1. 3-Class Models
3.6.2. 6-Class Models
3.7. Visual Evaluation of Embeddings and Superpixels
3.8. Results Discussion
4. Discussion
4.1. Discussion
4.2. Limitations
4.3. Future Work
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| CNN | Convolutional neural network |
| FP | False Positive |
| FN | False Negative |
| GAN | Generative adversarial networks |
| IoU | Intersection over Union |
| CVAT | Computer Vision Annotation Tool |
| SAM | Segment Anything Model |
| TN | True Negative |
| TP | True Positive |
| PA | Pixel Accuracy |
| PP | Percentage Points |
| ViT | Vision Transformer |
Appendix A
| Model | Other | Building | Damage | Mean |
|---|---|---|---|---|
| ResNet | 0.8848 | 0.6359 | 0.5681 | 0.6962 |
| ResNet-Emb | 0.9248 | 0.7265 | 0.6716 | 0.7743 |
| ResNet-Sup | 0.8721 | 0.6117 | 0.5355 | 0.6731 |
| ResNet-SupEmb | 0.9105 | 0.6946 | 0.6327 | 0.7459 |
| SwinV2 | 0,8498 | 0,5352 | 0,501 | 0,6286 |
| SwinV2-Emb | 0,8598 | 0,5821 | 0,5193 | 0,6537 |
| SwinV2-Sup | 0.8477 | 0.5184 | 0.4866 | 0.6176 |
| SwinV2-SupEmb | 0.8566 | 0.5698 | 0.4997 | 0.642 |
| ConvNeXt | 0.8306 | 0.5951 | 0.5026 | 0.6427 |
| ConvNeXt-Emb | 0.8538 | 0.6175 | 0.5142 | 0.6619 |
| ConvNeXt-Sup | 0.8455 | 0.5611 | 0.4847 | 0.6304 |
| ConvNeXt-SupEmb | 0.885 | 0.617 | 0.499 | 0.667 |
| SegFormer | 0.8155 | 0.5944 | 0.4645 | 0.6248 |
| SegFormer-Emb | 0.8267 | 0.591 | 0.4567 | 0.6248 |
| SegFormer-Sup | 0.8523 | 0.5973 | 0.4554 | 0.635 |
| SegFormer-SupEmb | 0.8607 | 0.5856 | 0.4458 | 0.6307 |
| YOLO11-seg | 0.828 | 0.5464 | 0.4768 | 0.6171 |
| YOLO11-seg-Emb | 0.8704 | 0.5781 | 0.5211 | 0.6565 |
| YOLO11-seg-Sup | 0.8337 | 0.5445 | 0.463 | 0.6137 |
| YOLO11-seg-SupEmb | 0.8688 | 0.5693 | 0.4985 | 0.6455 |
| DINOv2 | 0.886 | 0.6494 | 0.5727 | 0.7027 |
| DINOv2-Emb | 0.879 | 0.6617 | 0.585 | 0.7085 |
| DINOv2-Sup | 0.9096 | 0.6492 | 0.5592 | 0.706 |
| DINOv2-SupEmb | 0.8998 | 0.6467 | 0.5506 | 0.699 |
| Model | Other | Building | Damage | Broken Window | Damaged Roof | Roof | Mean |
|---|---|---|---|---|---|---|---|
| ResNet | 0.7948 | 0.5079 | 0.2796 | 0.2868 | 0.1131 | 0.1028 | 0.3475 |
| ResNet-Emb | 0.838 | 0.5322 | 0.322 | 0.2975 | 0.213 | 0.1019 | 0.3841 |
| ResNet-Sup | 0.8008 | 0.5059 | 0.2788 | 0.2706 | 0.1187 | 0.1131 | 0.348 |
| ResNet-SupEmb | 0.8376 | 0.5244 | 0.3253 | 0.2963 | 0.2125 | 0.0908 | 0.3811 |
| SwinV2 | 0.8366 | 0.5643 | 0.3521 | 0.2858 | 0.1542 | 0.1292 | 0.387 |
| SwinV2-Emb | 0.8694 | 0.5942 | 0.3588 | 0.2942 | 0.2366 | 0.1263 | 0.4133 |
| SwinV2-Sup | 0.8388 | 0.557 | 0.3395 | 0.2765 | 0.1672 | 0.1391 | 0.3863 |
| SwinV2-SupEmb | 0.8715 | 0.591 | 0.3538 | 0.2921 | 0.2557 | 0.1361 | 0.4167 |
| ConvNeXt | 0.8792 | 0.5971 | 0.3553 | 0.236 | 0.1603 | 0.1236 | 0.3919 |
| ConvNeXt-Emb | 0.8675 | 0.5892 | 0.3497 | 0.2782 | 0.1818 | 0.1389 | 0.4009 |
| ConvNeXt-Sup | 0.8719 | 0.5836 | 0.3401 | 0.2244 | 0.1766 | 0.1251 | 0.387 |
| ConvNeXt-SupEmb | 0.863 | 0.5763 | 0.3326 | 0.2654 | 0.1875 | 0.1406 | 0.3942 |
| SegFormer | 0.8472 | 0.6088 | 0.2736 | 0.2695 | 0.1499 | 0.12 | 0.3782 |
| SegFormer-Emb | 0.8556 | 0.5996 | 0.2585 | 0.2772 | 0.1568 | 0.1425 | 0.3817 |
| SegFormer-Sup | 0.8451 | 0.6084 | 0.2662 | 0.2568 | 0.1536 | 0.1285 | 0.3765 |
| SegFormer-SupEmb | 0.8588 | 0.5978 | 0.2411 | 0.2624 | 0.1947 | 0.1458 | 0.3834 |
| YOLO11-seg | 0.8245 | 0.5445 | 0.3189 | 0.3015 | 0.1342 | 0.1117 | 0.3725 |
| YOLO11-seg-Emb | 0.8318 | 0.5252 | 0.3133 | 0.2774 | 0.1876 | 0.1195 | 0.3758 |
| YOLO11-seg-Sup | 0.8378 | 0.5487 | 0.316 | 0.2993 | 0.1416 | 0.1273 | 0.3784 |
| YOLO11-seg-SupEmb | 0.8407 | 0.5252 | 0.3084 | 0.2656 | 0.2033 | 0.1312 | 0.3791 |
| DINOv2 | 0.8538 | 0.6495 | 0.2746 | 0.3363 | 0.267 | 0.1664 | 0.4246 |
| DINOv2-Emb | 0.9115 | 0.6687 | 0.4467 | 0.3743 | 0.2809 | 0.1445 | 0.4711 |
| DINOv2-Sup | 0.8601 | 0.6378 | 0.2834 | 0.3372 | 0.2777 | 0.1881 | 0.4307 |
| DINOv2-SupEmb | 0.8982 | 0.637 | 0.4177 | 0.3414 | 0.2996 | 0.1465 | 0.4567 |
| Model | Other | Building | Damage | Mean |
|---|---|---|---|---|
| ResNet | 0.0400 | 0.0906 | 0.1035 | 0.0781 |
| SwinV2 | 0,01 | 0,0469 | 0,0183 | 0,0251 |
| ConvNeXt | 0.0232 | 0.0224 | 0.0116 | 0.0192 |
| SegFormer | 0.0112 | -0.0034 | -0.0078 | 0.0000 |
| YOLO11-seg | 0.0424 | 0.0317 | 0.0443 | 0.0394 |
| DINOv2 | -0.0070 | 0.0123 | 0.0123 | 0.0058 |
| Model | Other | Building | Damage | Broken Window | Damaged Roof | Roof | Mean |
|---|---|---|---|---|---|---|---|
| ResNet | 0.0432 | 0.0243 | 0.0424 | 0.0107 | 0.0999 | -0.0009 | 0.0366 |
| SwinV2 | 0.0328 | 0.0299 | 0.0067 | 0.0084 | 0.0824 | -0.0029 | 0.0263 |
| ConvNeXt | -0.0117 | -0.0079 | -0.0056 | 0.0422 | 0.0215 | 0.0153 | 0.009 |
| SegFormer | 0.0084 | -0.0092 | -0.0151 | 0.0077 | 0.0069 | 0.0225 | 0.0035 |
| YOLO11-seg | 0.0073 | -0.0193 | -0.0056 | -0.0241 | 0.0534 | 0.0078 | 0.0033 |
| DINOv2 | 0.0577 | 0.0192 | 0.1721 | 0.038 | 0.0139 | -0.0219 | 0.0465 |
| Model | Other | Building | Damage | Mean |
|---|---|---|---|---|
| ResNet-Sup | -0.0127 | -0.0242 | -0.0326 | -0.0231 |
| ResNet-SupEmb | -0.0143 | -0.0319 | -0.0389 | -0.0284 |
| SwinV2-Sup | -0,0016 | -0,0077 | -0,0063 | -0,0053 |
| SwinV2-SupEmb | -0,0032 | -0,0123 | -0,0196 | -0,0117 |
| ConvNeXt-Sup | 0.0149 | -0.034 | -0.0179 | -0.0123 |
| ConvNeXt-SupEmb | 0.0312 | -0.0005 | -0.0152 | 0.0051 |
| SegFormer-Sup | 0.0368 | 0.0029 | -0.0091 | 0.0102 |
| SegFormer-SupEmb | 0.034 | -0.0054 | -0.0109 | 0.0059 |
| YOLO11-seg-Sup | 0.0057 | -0.0019 | -0.0138 | -0.0034 |
| YOLO11-seg-SupEmb | -0.0016 | -0.0088 | -0.0226 | -0.011 |
| DINOv2-Sup | 0.0236 | -0.0002 | -0.0135 | 0.0033 |
| DINOv2-SupEmb | 0.0208 | -0.015 | -0.0344 | -0.0095 |
| Model | Other | Building | Damage | Broken Window | Damaged Roof | Roof | Mean |
|---|---|---|---|---|---|---|---|
| ResNet-Sup | 0,006 | -0,002 | -0,0008 | -0,0162 | 0,0056 | 0,0103 | 0,0005 |
| ResNet-SupEmb | -0,0004 | -0,0078 | 0,0033 | -0,0012 | -0,0005 | -0,0111 | -0,003 |
| SwinV2-Sup | 0,0022 | -0,0073 | -0,0126 | -0,0093 | 0,013 | 0,0099 | -0,0007 |
| SwinV2-SupEmb | 0,0021 | -0,0032 | -0,005 | -0,0021 | 0,0191 | 0,0098 | 0,0034 |
| ConvNeXt-Sup | -0,0073 | -0,0135 | -0,0152 | -0,0116 | 0,0163 | 0,0015 | -0,0049 |
| ConvNeXt-SupEmb | -0,0045 | -0,0129 | -0,0171 | -0,0128 | 0,0057 | 0,0017 | -0,0067 |
| SegFormer-Sup | -0,0021 | -0,0004 | -0,0074 | -0,0127 | 0,0037 | 0,0085 | -0,0017 |
| SegFormer-SupEmb | 0,0032 | -0,0018 | -0,0174 | -0,0148 | 0,0379 | 0,0033 | 0,0017 |
| YOLO11-seg-Sup | 0,0133 | 0,0042 | -0,0029 | -0,0022 | 0,0074 | 0,0156 | 0,0059 |
| YOLO11-seg-SupEmb | 0,0089 | 0 | -0,0049 | -0,0118 | 0,0157 | 0,0117 | 0,0033 |
| DINOv2-Sup | 0,0063 | -0,0117 | 0,0088 | 0,0009 | 0,0107 | 0,0217 | 0,0061 |
| DINOv2-SupEmb | -0,0133 | -0,0317 | -0,029 | -0,0329 | 0,0187 | 0,002 | -0,0144 |
References
- Wu, C.; Zhang, F.; Xia, J.; Xu, Y.; Li, G.; Xie, J.; Du, Z.; Liu, R. Building Damage Detection Using U-Net with Attention Mechanism from Pre- and Post-Disaster Remote Sensing Datasets. Remote Sens. 2020, 13, 905. [Google Scholar] [CrossRef]
- Alisjahbana, I.; Li, J.; Zhang, Y. DeepDamageNet: A two-step deep-learning model for multi-disaster building damage segmentation and classification using satellite imagery. arXiv 2024, arXiv:2405.04800. [Google Scholar]
- Risso, M.; Goffi, A.; Motetti, B.A.; Burrello, A.; Bove, J.B.; Macii, E.; Poncino, M.; Pagliari, D.J.; Maffeis, G. Building Damage Assessment in Conflict Zones: A Deep Learning Approach Using Geospatial Sub-Meter Resolution Data. arXiv 2024, arXiv:2410.04802. [Google Scholar] [CrossRef]
- Nabiee, S.; Harding, M.; Hersh, J.; Bagherzadeh, N. Hybrid U-Net: Semantic segmentation of high-resolution satellite images to detect war destruction. Mach. Learn. Appl. 2022, 9, 100381. [Google Scholar] [CrossRef]
- xView2: Building Damage Assessment. Available online: https://xview2.org/ (accessed on 6 September 2025).
- Gupta, R.; Hosfelt, R.; Sajeev, S.; Patel, N.; Goodman, B.; Doshi, J.; Heim, E.; Choset, H.; Gaston, M. XBD: A Dataset for Assessing Building Damage from Satellite Imagery. arXiv 2019, arXiv:1911.09296. [Google Scholar] [CrossRef]
- Rahnemoonfar, M.; Chowdhury, T.; Murphy, R. RescueNet: A High Resolution UAV Semantic Segmentation Benchmark Dataset for Natural Disaster Damage Assessment. Sci. Data 2023, 10, 113. [Google Scholar] [CrossRef]
- Zou, R.; Liu, J.; Pan, H.; Tang, D.; Zhou, R. An Improved Instance Segmentation Method for Fast Assessment of Damaged Buildings Based on Post-Earthquake UAV Images. Sensors 2024, 24, 4371. [Google Scholar] [CrossRef] [PubMed]
- Wei, J.; Hu, Y.; Zhang, S.; Liu, S. Irregular Facades: A Dataset for Semantic Segmentation of the Free Facade of Modern Buildings. Buildings 2024, 14, 2602. [Google Scholar] [CrossRef]
- 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; Navab, N., Hornegger, J., Wells, W.M., Frangi, A.F., Eds.; Springer: Cham, Switzerland, 2015; pp. 234–241. [Google Scholar]
- Chen, L.C.; Zhu, Y.; Papandreou, G.; Schroff, F.; Adam, H. Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation. In Proceedings of the Computer Vision—ECCV 2018, Munich, Germany, 8–14 September 2018; Ferrari, V., Hebert, M., Sminchisescu, C., Weiss, Y., Eds.; Springer: Cham, Switzerland, 2018; pp. 833–851. [Google Scholar]
- Guo, M.H.; Lu, C.Z.; Hou, Q.; Liu, Z.; Cheng, M.M.; Hu, S.M. SegNeXt: Rethinking Convolutional Attention Design for Semantic Segmentation. In Proceedings of the Advances in Neural Information Processing Systems 35 (NeurIPS 2022), New Orleans, LA, USA, 28 November–9 December 2022. Available online: https://proceedings.neurips.cc/paper_files/paper/2022/hash/08050f40fff41616ccfc3080e60a301a-Abstract-Conference.html (accessed on 6 September 2025); Available online: https://proceedings.neurips.cc/paper_files/paper/2022/hash/08050f40fff41616ccfc3080e60a301a-Abstract-Conference.html (accessed on 6 September 2025).
- Sun, K.; Xiao, B.; Liu, D.; Wang, J. Deep High-Resolution Representation Learning for Human Pose Estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 15–20 June 2019; p. 5693. Available online: https://openaccess.thecvf.com/content_CVPR_2019/html/Sun_Deep_High-Resolution_Representation_Learning_for_Human_Pose_Estimation_CVPR_2019_paper.html (accessed on 6 September 2025).
- Zhao, H.; Shi, J.; Qi, X.; Wang, X.; Jia, J. Pyramid Scene Parsing Network. In Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017; pp. 6230–6239. [Google Scholar]
- Dai, M.; Ward, W.O.C.; Meyers, G.; Tingley, D.D.; Mayfield, M. Residential building facade segmentation in the urban environment. Build. Environ. 2021, 199, 107921. [Google Scholar] [CrossRef]
- Wang, S.; Kang, Q.; She, R.; Tay, W.P.; Navarro, D.N.; Hartmannsgruber, A. Building Facade Parsing R-CNN. arXiv 2022, arXiv:2205.05912. [Google Scholar] [CrossRef]
- Girshick, R.; Donahue, J.; Darrell, T.; Malik, J. Rich feature hierarchies for accurate object detection and semantic segmentation. arXiv 2013, arXiv:1311.2524. [Google Scholar]
- Wang, B.; Zhang, J.; Zhang, R.; Li, Y.; Li, L.; Nakashima, Y. Improving Facade Parsing with Vision Transformers and Line Integration. arXiv 2023, arXiv:2309.15523. [Google Scholar] [CrossRef]
- Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; Uszkoreit, J.; Houlsby, N. An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. arXiv 2020, arXiv:2010.11929. [Google Scholar]
- Strudel, R.; Garcia, R.; Laptev, I.; Schmid, C. Segmenter: Transformer for Semantic Segmentation. arXiv 2021, arXiv:2105.05633. [Google Scholar] [CrossRef]
- Liu, H.; Zhang, J.; Zhu, J.; Hoi, S.C.H. DeepFacade: A Deep Learning Approach to Facade Parsing. In Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence (IJCAI-17), Melbourne, Australia, 19–25 August 2017; pp. 2301–2307. [Google Scholar]
- Simonyan, K.; Zisserman, A. Very Deep Convolutional Networks for Large-Scale Image Recognition. arXiv 2014, arXiv:1409.1556. [Google Scholar]
- Liu, C.; Sui, H.; Wang, J.; Ni, Z.; Ge, L. Real-Time Ground-Level Building Damage Detection Based on Lightweight and Accurate YOLOv5 Using Terrestrial Images. Remote Sens. 2022, 14, 2763. [Google Scholar] [CrossRef]
- Khanam, R.; Hussain, M. What is YOLOv5: A deep look into the internal features of the popular object detector. arXiv 2024, arXiv:2407.20892. [Google Scholar] [CrossRef]
- Wang, P.; Wang, J.; Liu, Q.; Fang, L.; Xiao, J. Fusion-Based Damage Segmentation for Multimodal Building Façade Images from an End-to-End Perspective. Buildings 2024, 15, 63. [Google Scholar] [CrossRef]
- Chen, Y.; Yang, T.; Dong, S.; Wang, L.; Pei, B.; Wang, Y. Enhancing Crack Segmentation Network with Multiple Selective Fusion Mechanisms. Buildings 2024, 15, 1088. [Google Scholar] [CrossRef]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. arXiv 2015, arXiv:1512.03385. [Google Scholar] [CrossRef]
- Liu, Z.; Hu, H.; Lin, Y.; Yao, Z.; Xie, Z.; Wei, Y.; Ning, J.; Cao, Y.; Zhang, Z.; Dong, L.; Wei, F.; Guo, B. Swin Transformer V2: Scaling Up Capacity and Resolution. arXiv 2021, arXiv:2111.09883. [Google Scholar]
- Liu, Z.; Mao, H.; Wu, C.; Feichtenhofer, C.; Darrell, T.; Xie, S. A ConvNet for the 2020s. arXiv 2022, arXiv:2201.03545. [Google Scholar] [CrossRef]
- Xie, E.; Wang, W.; Yu, Z.; Anandkumar, A.; Alvarez, J.M.; Luo, P. SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers. arXiv 2021, arXiv:2105.15203. [Google Scholar] [CrossRef]
- Jocher, G.; Qiu, J. Ultralytics YOLO11 (Version 11. 0.0) [Computer software]. Ultralytics. Available online: https://github.com/ultralytics/ultralytics (accessed on 6 September 2025).
- Oquab, M.; Darcet, T.; Moutakanni, T.; Vo, H.; Szafraniec, M.; Khalidov, V.; Fernandez, P.; Haziza, D.; Massa, F.; Assran, M.; Ballas, N.; Galuba, W.; Howes, R.; Huang, P.; Li, S.; Misra, I.; Rabbat, M.; Sharma, V.; Synnaeve, G.; Bojanowski, P. DINOv2: Learning Robust Visual Features without Supervision. arXiv arXiv:2304.07193, 2023. [CrossRef]
- Huang, G.; Liu, Z.; Weinberger, K.Q. Densely Connected Convolutional Networks. arXiv arXiv:1608.06993, 2016. [PubMed]
- Tan, M.; Le, Q.V. EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks. arXiv arXiv:1905.11946, 2019. [CrossRef]
- Touvron, H.; Cord, M.; Douze, M.; Massa, F.; Sablayrolles, A.; Jégou, H. Training data-efficient image transformers & distillation through attention. arXiv arXiv:2012.12877, 2020. [CrossRef]
- Radford, A.; Kim, J.W.; Hallacy, C.; Ramesh, A.; Goh, G.; Agarwal, S.; Sastry, G.; Askell, A.; Mishkin, P.; Clark, J.; Krueger, G.; Sutskever, I. Learning Transferable Visual Models From Natural Language Supervision. arXiv arXiv:2103.00020, 2021. [CrossRef]
- Kirillov, A.; Mintun, E.; Ravi, N.; Mao, H.; Rolland, C.; Gustafson, L.; Xiao, T.; Whitehead, S.; Berg, A.C.; Lo, W.; Dollár, P.; Girshick, R. Segment Anything. arXiv arXiv:2304.02643, 2023.
- Oktay, O.; Schlemper, J.; Folgoc, L.L.; Lee, M.; Heinrich, M.; Misawa, K.; Mori, K.; McDonagh, S.; Hammerla, N.Y.; Kainz, B.; Glocker, B.; Rueckert, D. Attention U-Net: Learning Where to Look for the Pancreas. arXiv arXiv:1804.03999, 2018. [CrossRef]
- Zhou, Z.; Siddiquee, M.M.; Tajbakhsh, N.; Liang, J. UNet++: A Nested U-Net Architecture for Medical Image Segmentation. arXiv arXiv:1807.10165, 2018.
- Diakogiannis, F.I.; Waldner, F.; Caccetta, P.; Wu, C. ResUNet-a: A deep learning framework for semantic segmentation of remotely sensed data. ISPRS J. Photogramm. Remote Sens. 2020, 162, 94–114. [Google Scholar] [CrossRef]
- Chen, J.; Lu, Y.; Yu, Q.; Luo, X.; Adeli, E.; Wang, Y.; Lu, L.; Yuille, A.L.; Zhou, Y. TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation. arXiv arXiv:2102.04306, 2021. [CrossRef]
- Jing, J.; Wang, Z.; Rätsch, M.; Zhang, H. Mobile-Unet: An efficient convolutional neural network for fabric defect detection. Text. Res. J. 2022, 92, 30–42. [Google Scholar] [CrossRef]
- Felzenszwalb, P.F.; Huttenlocher, D.P. Efficient Graph-Based Image Segmentation. Int. J. Comput. Vis. 2004, 59, 167–181. [Google Scholar] [CrossRef]
- Computer Vision Annotation Tool (CVAT). Available online: https://www.cvat.ai/ (accessed on 6 September 2025).
- Svirhunenko, Yana; Tytarchuk, Pavlo; Holovko, Yevhenii; Tereshchenko, Yaroslav. HCTSketch: Hybrid CNN-Transformer Approach for Stroke Segmentation in Sketches. 2025, 10.24132/CSRN.2025-18.
- Kubytskyi, V.; Panchenko, T. Enriched Image Embeddings as a Combined Outputs from Different Layers of CNN for Various Image Similarity Problems More Precise Solution. Lecture Notes on Data Engineering and Communications Technologies, 2023, 180, 321–333. [Google Scholar]







| Other | Building | Damage | Broken Window | Damaged Roof | Roof |
|---|---|---|---|---|---|
| 66.10% | 19.42% | 8.66% | 2.66% | 1.92% | 1.24% |
| Patch Size | Stride | Total Patches | Train Patches | Val Patches |
|---|---|---|---|---|
| 224×224 | 180 | 12,943 | 11,042 | 1,901 |
| 384×384 | 256 | 5,460 | 4,659 | 801 |
| 640×640 | 160 | 6,904 | 5,887 | 1,017 |
| Encoder | Parameters (M) | Patch Size/Stride | Skip Connection Layers | Encoder’s output layer |
|---|---|---|---|---|
| ResNet-50 | 23.5 | 224×224 / 180 | conv1, layer1, layer2, layer3 | layer4 |
| SwinV2 Large | 195.1 | 384×384 / 256 | Stages 1-3 outputs | Stage 4 |
| ConvNeXt-Large | 196.2 | 640×640 / 160 | Stages 1-3 outputs | Stage 4 |
| YOLO 11x-seg | 19.1 | 640×640 / 160 | Layers 1, 3, 5 | Layer 7 |
| DINOv2(ViT-L/14) | 266.5 | 640×640 1 / 160 | Blocks 1, 7, 12 | Block 20 |
| Model | Learning Rate | Weight Decay |
|---|---|---|
| ResNet | 3e-4 | 1e-2 |
| YOLO | 1e-4 | 1e-2 |
| Swin | 3e-5 | 1e-3 |
| ConvNeXT | 8e-6 | 1e-3 |
| DINOv2 | 2e-5 | 1e-3 |
| SegFormer | 2e-5 | 1e-3 |
| Model | Encoder | Freezed Encoder |
Decoder | Bottleneck | Total |
|---|---|---|---|---|---|
| ResNet50 | 23.5 | 0 | 12.5 | 34.6 | 70.6 |
| SwinV2 | 195.1 | 0.91 | 7 | 19.7 | 220.89 |
| ConvNeXt | 196.2 | 0 | 7 | 19.7 | 222.9 |
| SegFormer | 84.7 | 2.9 | 0.67 | 5.2 | 87.67 |
| YOLO | 19.1 | 0 | 4.3 | 7.5 | 30.9 |
| DINOv2 | 266.5 | 0 | 35.1 | 13.7 | 315.3 |
| Model | Without superpixels | With superpixels |
|---|---|---|
| ResNet50 | 4.41 | 9.55 |
| SwinV2 | 7.27 | 11.25 |
| ConvNeXt | 4.05 | 9.64 |
| SegFormer | 4.89 | 9.61 |
| YOLO | 4.32 | 8.82 |
| DINOv2 | 7.02 | 11.98 |
| Model | Other | Building | Damage | Mean |
|---|---|---|---|---|
| ResNet | 0.9489 | 0.8168 | 0.7704 | 0.8454 |
| ResNet-Emb | 0.9732 | 0.8721 | 0.8492 | 0.8982 |
| ResNet-Sup | 0.9437 | 0.8005 | 0.7464 | 0.8302 |
| ResNet-SupEmb | 0.9677 | 0.853 | 0.8192 | 0.88 |
| SwinV2 | 0,9317 | 0,7261 | 0,6929 | 0,7836 |
| SwinV2-Emb | 0,9451 | 0,7663 | 0,7166 | 0,8093 |
| SwinV2-Sup | 0.9308 | 0.7156 | 0.6838 | 0.7768 |
| SwinV2-SupEmb | 0.9434 | 0.7585 | 0.6961 | 0.7993 |
| ConvNeXt | 0.9365 | 0.7828 | 0.7225 | 0.8139 |
| ConvNeXt-Emb | 0.9472 | 0.7968 | 0.7336 | 0.8258 |
| ConvNeXt-Sup | 0.9399 | 0.7444 | 0.6717 | 0.7853 |
| ConvNeXt-SupEmb | 0.9557 | 0.78 | 0.6949 | 0.8102 |
| SegFormer | 0.9257 | 0.7753 | 0.6892 | 0.7967 |
| SegFormer-Emb | 0.9312 | 0.7776 | 0.6759 | 0.7949 |
| SegFormer-Sup | 0.9381 | 0.7612 | 0.6424 | 0.7805 |
| SegFormer-SupEmb | 0.936 | 0.7592 | 0.6364 | 0.7772 |
| YOLO11-seg | 0.9216 | 0.7335 | 0.6671 | 0.7741 |
| YOLO11-seg-Emb | 0.9487 | 0.7592 | 0.7132 | 0.807 |
| YOLO11-seg-Sup | 0.9242 | 0.7338 | 0.6571 | 0.7717 |
| YOLO11-seg-SupEmb | 0.9489 | 0.7545 | 0.6938 | 0.7991 |
| DINOv2 | 0.9625 | 0.8237 | 0.7821 | 0.8561 |
| DINOv2-Emb | 0.9593 | 0.8324 | 0.7855 | 0.859 |
| DINOv2-Sup | 0.9636 | 0.8031 | 0.7348 | 0.8339 |
| DINOv2-SupEmb | 0.9595 | 0.8016 | 0.7292 | 0.8301 |
| Model | Other | Building | Damage | Broken Window | Damaged Roof | Roof | Mean |
|---|---|---|---|---|---|---|---|
| ResNet | 0.9108 | 0.6897 | 0.5788 | 0.5315 | 0.3605 | 0.4472 | 0.5864 |
| ResNet-Emb | 0.9415 | 0.7168 | 0.6527 | 0.5192 | 0.5546 | 0.4744 | 0.6432 |
| ResNet-Sup | 0.9137 | 0.6866 | 0.582 | 0.5178 | 0.3608 | 0.4775 | 0.5897 |
| ResNet-SupEmb | 0.9412 | 0.7057 | 0.6439 | 0.5154 | 0.5431 | 0.4304 | 0.6299 |
| SwinV2 | 0.9313 | 0.7426 | 0.6477 | 0.5574 | 0.5131 | 0.4401 | 0.6387 |
| SwinV2-Emb | 0.9499 | 0.7537 | 0.6512 | 0.5516 | 0.6006 | 0.5512 | 0.6764 |
| SwinV2-Sup | 0.9327 | 0.7377 | 0.629 | 0.5472 | 0.5163 | 0.4404 | 0.6339 |
| SwinV2-SupEmb | 0.9503 | 0.7502 | 0.6328 | 0.541 | 0.6077 | 0.567 | 0.6748 |
| ConvNeXt | 0.9498 | 0.7467 | 0.628 | 0.496 | 0.5388 | 0.5814 | 0.6568 |
| ConvNeXt-Emb | 0.9448 | 0.7475 | 0.6219 | 0.5417 | 0.5781 | 0.5826 | 0.6694 |
| ConvNeXt-Sup | 0.9457 | 0.7328 | 0.6151 | 0.4819 | 0.5475 | 0.5945 | 0.6529 |
| ConvNeXt-SupEmb | 0.943 | 0.7427 | 0.6022 | 0.5271 | 0.5629 | 0.5775 | 0.6592 |
| SegFormer | 0.9342 | 0.7633 | 0.5713 | 0.525 | 0.4587 | 0.5189 | 0.6286 |
| SegFormer-Emb | 0.9355 | 0.7535 | 0.5061 | 0.5162 | 0.5239 | 0.592 | 0.6379 |
| SegFormer-Sup | 0.9335 | 0.7623 | 0.5625 | 0.5123 | 0.4611 | 0.5197 | 0.6252 |
| SegFormer-SupEmb | 0.9357 | 0.7504 | 0.501 | 0.4999 | 0.515 | 0.5785 | 0.6301 |
| YOLO11-seg | 0.9194 | 0.7262 | 0.5978 | 0.5236 | 0.4669 | 0.4359 | 0.6116 |
| YOLO11-seg-Emb | 0.9302 | 0.7039 | 0.6196 | 0.5161 | 0.534 | 0.5076 | 0.6352 |
| YOLO11-seg-Sup | 0.9226 | 0.7249 | 0.6014 | 0.5128 | 0.4646 | 0.478 | 0.6174 |
| YOLO11-seg-SupEmb | 0.9316 | 0.699 | 0.6116 | 0.5038 | 0.5447 | 0.5146 | 0.6342 |
| DINOv2 | 0.943 | 0.7985 | 0.5214 | 0.576 | 0.6647 | 0.6913 | 0.6991 |
| DINOv2-Emb | 0.9678 | 0.8057 | 0.7105 | 0.6063 | 0.703 | 0.684 | 0.7462 |
| DINOv2-Sup | 0.9451 | 0.7911 | 0.5539 | 0.5469 | 0.6606 | 0.6916 | 0.6982 |
| DINOv2-SupEmb | 0.9611 | 0.7859 | 0.6831 | 0.5723 | 0.6784 | 0.6685 | 0.7249 |
| Model | Other | Building | Damage | Mean |
|---|---|---|---|---|
| ResNet | 0.0243 | 0.0553 | 0.0788 | 0.0528 |
| SwinV2 | 0,0134 | 0,0402 | 0,0237 | 0,0257 |
| ConvNeXt | 0.0107 | 0.014 | 0.0111 | 0.0119 |
| SegFormer | 0.0055 | 0.0023 | -0.0133 | -0.0018 |
| YOLO11-seg | 0.0271 | 0.0257 | 0.0461 | 0.0329 |
| DINOv2 | -0.0032 | 0.0087 | 0.0034 | 0.0029 |
| Model | Other | Building | Damage | Broken Window | Damaged Roof | Roof | Mean |
|---|---|---|---|---|---|---|---|
| ResNet | 0.0307 | 0.0271 | 0.0739 | -0.0123 | 0.1941 | 0.0272 | 0.0568 |
| SwinV2 | 0.0186 | 0.0111 | 0.0035 | -0.0058 | 0.0875 | 0.1111 | 0.0377 |
| ConvNeXt | -0.005 | 0.0008 | -0.0061 | 0.0457 | 0.0393 | 0.0012 | 0.0126 |
| SegFormer | 0.0013 | -0.0098 | -0.0652 | -0.0088 | 0.0652 | 0.0731 | 0.0093 |
| YOLO11-seg | 0.0108 | -0.0223 | 0.0218 | -0.0075 | 0.0671 | 0.0717 | 0.0236 |
| DINOv2 | 0.0248 | 0.0072 | 0.1891 | 0.0303 | 0.0383 | -0.0073 | 0.0471 |
| Model | Other | Building | Damage | Mean |
|---|---|---|---|---|
| ResNet-Sup | -0.0052 | -0.0163 | -0.0240 | -0.0152 |
| ResNet-SupEmb | -0.0055 | -0.0191 | -0.0300 | -0.0182 |
| SwinV2-Sup | -0,0009 | -0,0105 | -0,0091 | -0,0068 |
| SwinV2-SupEmb | -0,0017 | -0,0078 | -0,0205 | -0,01 |
| ConvNeXt-Sup | 0.0034 | -0.0384 | -0.0508 | -0.0286 |
| ConvNeXt-SupEmb | 0.0085 | -0.0168 | -0.0387 | -0.0156 |
| SegFormer-Sup | 0.0124 | -0.0141 | -0.0468 | -0.0162 |
| SegFormer-SupEmb | 0.0048 | -0.0184 | -0.0395 | -0.0177 |
| YOLO11-seg-Sup | 0.0026 | 0.0003 | -0.0100 | -0.0024 |
| YOLO11-seg-SupEmb | 0.0002 | -0.0047 | -0.0194 | -0.0079 |
| DINOv2-Sup | 0.0011 | -0.0206 | -0.0473 | -0.0222 |
| DINOv2-SupEmb | 0.0002 | -0.0308 | -0.0563 | -0.0289 |
| Model | Other | Building | Damage | Broken Window | Damaged Roof | Roof | Mean |
|---|---|---|---|---|---|---|---|
| ResNet-Sup | 0.0029 | -0.0031 | 0.0032 | -0.0137 | 0.0003 | 0.0303 | 0.0033 |
| ResNet-SupEmb | -0.0003 | -0.0111 | -0.0088 | -0.0038 | -0.0115 | -0.044 | -0.0133 |
| SwinV2-Sup | 0.0014 | -0.0049 | -0.0187 | -0.0102 | 0.0032 | 0.0003 | -0.0048 |
| SwinV2-SupEmb | 0.0004 | -0.0035 | -0.0184 | -0.0106 | 0.0071 | 0.0158 | -0.0016 |
| ConvNeXt-Sup | -0.0041 | -0.0139 | -0.0129 | -0.0141 | 0.0087 | 0.0131 | -0.0039 |
| ConvNeXt-SupEmb | -0.0018 | -0.0048 | -0.0197 | -0.0146 | -0.0152 | -0.0051 | -0.0102 |
| SegFormer-Sup | -0.0007 | -0.001 | -0.0088 | -0.0127 | 0.0024 | 0.0008 | -0.0034 |
| SegFormer-SupEmb | 0.0002 | -0.0031 | -0.0051 | -0.0163 | -0.0089 | -0.0135 | -0.0078 |
| YOLO11-seg-Sup | 0.0032 | -0.0013 | 0.0036 | -0.0108 | -0.0023 | 0.0421 | 0.0058 |
| YOLO11-seg-SupEmb | 0.0014 | -0.0049 | -0.008 | -0.0123 | 0.0107 | 0.007 | -0.001 |
| DINOv2-Sup | 0.0021 | -0.0074 | 0.0325 | -0.0291 | -0.0041 | 0.0003 | -0.0009 |
| DINOv2-SupEmb | -0.0067 | -0.0198 | -0.0274 | -0.034 | -0.0246 | -0.0155 | -0.0213 |
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. |
© 2025 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 (http://creativecommons.org/licenses/by/4.0/).