Research Article

Building Detection and Multi-Category Classification of Remote Sensing Images Based on YOLOv5

Yongxin Gao*
Xi'an Jiaotong University

* Corresponding author: [email protected]

Abstract

Aiming at the low efficiency of manual visual interpretation and difficult fine-grained identification of multi-functional buildings in high-resolution remote sensing images, this paper constructs a dedicated remote sensing building dataset covering ten types of urban functional buildings and adopts the YOLOv5 object detection model to realize automatic detection and classification of buildings. In the data preprocessing stage, original remote sensing images are manually filtered to eliminate blurred, heavily occluded images without corresponding annotations. A self-developed conversion script converts raw JSON annotation files into standard YOLO-format TXT label files to build a standardized dataset. The YOLOv5 model is iteratively trained on the cleaned dataset, and the optimal weight file exp18 is obtained after training. The trained model is applied to conduct inference on all training set images and output prediction labels. An independent Python statistical program is compiled to compare ground-truth labels and model prediction results file by file, calculating three core indicators for each building category: total labeled targets, correctly predicted targets, single-category classification accuracy, as well as the overall classification accuracy of the model. Experimental results prove that YOLOv5 can effectively distinguish ten types of functional buildings in remote sensing images. The quantitative single-category and overall accuracy indicators provide reliable numerical support for intelligent remote sensing building interpretation and subsequent model optimization.

Keywords: Remote Sensing Image; Building Classification; YOLOv5; Dataset Construction; Object Detection; Classification Accuracy
Published: October 8, 2026
DOI: 10.54254/2755-2721/2026.BA37519
Volume: ACE Vol.258
pp. 208-215
Download PDF

References

  1. Tan, M. X., & Le, Q. V. (2019). EfficientNet: Rethinking model scaling for convolutional neural networks. InProc. 36th Int. Conf. Mach. Learn., Long Beach, CA, USA, 97.
  2. Wang, Q., Feng, W., Yao, L., Zhuang, C., Liu, B., & Chen, L. (2023). TPH-YOLOv5-Air: Airport confusing object detection via adaptively spatial feature fusion.Remote Sens., 15(15), Art. no. 3883. https://doi.org/10.3390/rs15153883
  3. Shen, J.-Q., Liu, N.-Z., Sun, H., Li, D.-G., & Zhang, Y.-X. (2024). An instrument indication acquisition algorithm based on lightweight deep convolutional neural network and hybrid attention fine-grained features.IEEE Trans. Instrum. Meas., 73, Art. no. 5008516. https://doi.org/10.1109/TIM.2023.3346488
  4. Song, H., Xie, J., Duan, Y., Xie, X., Zhou, Y., & Wang, W. (2025). CMKD-Net: A cross-modal knowledge distillation method for remote sensing image classification.Adv. Space Res., 75(12), 8515-8534. https://doi.org/10.1016/j.asr.2025.04.009
  5. Tao, Y., Liu, W. Z., Chen, J., Gao, J. X., Li, R., Wang, X. P., Zhang, Y., Ren, J. X., Yin, S. X., & Zhu, X. L. (2025). A graph-based multimodal data fusion framework for identifying urban functional zone.Int. J. Appl. Earth Obs. Geoinf., 136, 104353. https://doi.org/10.1016/j.jag.2024.104353