Date Log

This work is licensed under a Creative Commons Attribution 4.0 International License.
AI-Driven Building Detection for Updating Spatial Databases and Identifying Illegal Construction
Corresponding Author(s) : Mateusz Czyrzniak
Geomatics and Environmental Engineering,
Vol. 20 No. 6 (2026): Geomatics and Environmental Engineering
Abstract
Possessing updated information on the spatial location of buildings is crucial in many surveying and urban planning processes. Updating databases using traditional surveying methods can be time-consuming and complicated by terrain conditions. Recent studies have demonstrated the potential of artificial intelligence and deep learning algorithms for identifying buildings from remote sensing data. Inspired by these innovations, this study proposes a practical tool for building detection from orthophotomaps. The paper presents a custom QGIS plugin designed for identifying buildings that are missing from existing spatial databases. The plugin integrates three deep learning models: Mask R-CNN, DeepLabV3, and YOLO11x-obb, each offering distinct advantages. YOLO11x-obb achieves the highest overall detection performance but outputs only oriented bounding boxes. In contrast, Mask R-CNN and DeepLabV3 provide detailed object boundaries. Mask R-CNN generally delivers better results, but DeepLabV3 can outperform it in scenarios requiring high pixel-level accuracy. The deep learning models were trained using a dataset of 273,644 building objects and 313 orthophoto images acquired from Geoportal (geoportal.gov.pl). Experimental results confirm the effectiveness of the proposed plugin in detecting unregistered buildings, highlighting its potential application for updating spatial databases, revising maps, and identifying previously undocumented constructions.
Keywords
Download Citation
Endnote/Zotero/Mendeley (RIS)BibTeX
- Sirko W., Kashubin S., Ritter M., Annkah A., Bouchareb Y.S.E., Dauphin Y., Keysers D., Neumann M., Cissé M., Quinn J.: Continental-scale building detection from high resolution satellite imagery. arXiv preprint, arXiv:2107.12283, 2021. https://doi.org/10.48550/arXiv.2107.12283.
- Bell J.: What is machine learning?, [in:] Carta S. (ed.), Machine Learning and the City: Applications in Architecture and Urban Design, John Wiley & Sons, Hoboken 2022, pp. 207–216. https://doi.org/10.1002/9781119815075.ch18.
- Mathew A., Arul A., Sivakumari S.: Deep learning techniques: An overview, [in:] Hassanien A.E., Bhatnagar R. (eds.), Advanced Machine Learning Technologies and Applications, Springer, Singapore 2021, pp. 599–608. https://doi.org/10.1007/978-981-15-3383-9_54.
- Han Q., Yin Q., Zheng X., Chen Z.: Remote sensing image building detection method based on Mask R-CNN. Complex & Intelligent Systems, vol. 8(3), 2022, pp. 1847–1855. https://doi.org/10.1007/s40747-021-00322-z.
- Li J., Huang X., Tu L., Zhang T., Wang L.: A review of building detection from very high resolution optical remote sensing images. GIScience & Remote Sensing, vol. 59(1), 2022, pp. 1199–1225. https://doi.org/10.1080/15481603.2022.2101727.
- Williams C., Falck F., Deligiannidis G., Holmes C., Doucet A., Syed S.: A unified framework for U-net design and analysis, [in:] Oh A., Naumann T., Globerson A., Saenko K., Hardt M., Levine S. (eds.), NIPS ’23: Proceedings of the 37th International Conference on Neural Information Processing Systems, Curran Associates, Red Hook 2023, pp. 27745–27782.
- Xu Y., Wu L., Xie Z., Chen Z.: Building extraction in very high resolution remote sensing imagery using deep learning and guided filters. Remote Sensing, vol. 10(1), 2018, 144. https://doi.org/10.3390/rs10010144.
- Wang Y., Shang L., Liu Y., Sun Z., Lu Y., Shi X., Wang T., Liu Y.: Precise building semantic segmentation in remote sensing images via MR-DeepLabv3+ network. Scientific Reports, vol. 15(1), 2025, 40100. https://doi.org/10.1038/s41598-025-23917-9.
- He K., Gkioxari G., Dollár P., Girshick R.: Mask R-CNN, [in:] 2017 IEEE International Conference on Computer Vision (ICCVW 2017): Venice, Italy 22–29 October 2017, IEEE, Piscataway 2017, pp. 2961–2969. https://doi.org/10.1109/ICCV.2017.322.
- Kaya E.: Assessment of building extraction and geometric corrections from UAV image using Mask R-CNN deep neural network algorithm. European Journal of Remote Sensing, vol. 59(1), 2026, 2618374. https://doi.org/10.1080/22797254.2026.2618374.
- Han K., Wang Y., Chen H., Chen X., Guo J., Liu Z., Tang Y., Xiao A., Xu C., Xu Y., Yang Z., Zhang Y., Tao D.: A survey on vision transformer. IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 45(1), 2023, pp. 87–110. https://doi.org/10.1109/TPAMI.2022.3152247.
- Gibril M.B.A., Al-Ruzouq R., Shanableh A., Jena R., Bolcek J., Shafri H.Z.M., Ghorbanzadeh O.: Transformer-based semantic segmentation for large-scale building footprint extraction from very-high resolution satellite images. Advances in Space Research, vol. 73(10), 2024, pp. 4937–4954. https://doi.org/10.1016/j.asr.2024.03.002.
- Zhang C., Liu L., Cui Y., Huang G., Lin W., Yang Y., Hu Y.: A comprehensive survey on Segment Anything Model for vision and beyond. arXiv preprint, arXiv:2305.08196, 2023. https://doi.org/10.48550/arXiv.2305.08196.
- Zhang J., Li Y., Yang X., Jiang R., Zhang L.: RSAM-Seg: A SAM-based model with prior knowledge integration for remote sensing image semantic segmentation. Remote Sensing, vol. 17(4), 2025, 590. https://doi.org/10.3390/rs17040590.
- Hafiz A.M., Bhat G.M.: A survey on instance segmentation: State of the art. International Journal of Multimedia Information Retrieval, vol. 9(3), 2020, pp. 171–189. https://doi.org/10.1007/s13735-020-00195-x.
- Mo Y., Wu Y., Yang X., Liu F., Liao Y.: Review the state-of-the-art technologies of semantic segmentation based on deep learning. Neurocomputing, vol. 493, 2022, pp. 626–646. https://doi.org/10.1016/j.neucom.2022.01.005.
- Kaur R., Singh S.: A comprehensive review of object detection with deep learning. Digital Signal Processing, vol. 132, 2023, 103812. https://doi.org/10.1016/j.dsp.2022.103812.
- Khanal B., Shrestha P., Amgain S., Khanal B., Bhattarai B., Linte C.A.: Investigating the robustness of vision transformers against label noise in medical image classification, [in:] 2024 46th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC 2024): Orlando, Florida, USA, 15–19 July 2024, IEEE, Piscataway 2024, pp. 1–6. https://doi.org/10.1109/EMBC53108.2024.10782929.
- Su H., Wei S., Yan M., Wang C., Shi J., Zhang X.: Object detection and instance segmentation in remote sensing imagery based on precise Mask R-CNN, [in:] IEEE International Geoscience and Remote Sensing Symposium: Proceedings: July 28–August 2, 2019 Yokohama, Japan, IEEE, Piscataway 2019, pp. 1454–1457. https://doi.org/10.1109/IGARSS.2019.8898573.
- Chen L.-C., Papandreou G., Schroff F., Adam H.: Rethinking atrous convolution for semantic image segmentation. arXiv preprint, arXiv:1706.05587, 2017. https://doi.org/10.48550/arXiv.1706.05587.
- Wang H., Yu F., Xie J., Wang H., Zheng H.: Road extraction based on improved DeepLabv3 plus in remote sensing image. The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, vol. XLVIII-3/W2-2022, 2022, pp. 67–72. https://doi.org/10.5194/isprs-archives-XLVIII-3-W2-2022-67-2022.
- Chen L.-C., Zhu Y., Papandreou G., Schroff F., Adam H.: Encoder-decoder with atrous separable convolution for semantic image segmentation, [in:] Ferrari V., Hebert M., Sminchisescu C. (eds.), Computer Vision – ECCV 2018: 15th European Conference: Munich, Germany, September 8–14, 2018: Proceedings, Part VII, Springer, Cham 2018, pp. 833–851. https://doi.org/10.1007/978-3-030-01234-2_49.
- Felipe-García B., Hernández-López D., Lerma J.L.: Analysis of the ground sample distance on large photogrammetric surveys. Applied Geomatics, vol. 4(4), 2012, pp. 231–244. https://doi.org/10.1007/s12518-012-0084-2.
- Torgo L., Ribeiro R.: Precision and recall for regression, [in:] Gama J., Costa V.S., Jorge A.M., Brazdil P.B. (eds.), Discovery Science: 12th International Conference, DS 2009, Porto, Portugal, October 3–5, 2009, Springer, Berlin, Heidelberg 2009, pp. 332–346. https://doi.org/10.1007/978-3-642-04747-3_26.
- Foody G.M.: Challenges in the real world use of classification accuracy metrics: From recall and precision to the Matthews correlation coefficient. PLoS One, vol. 18(10), 2023, e0291908. https://doi.org/10.1371/journal.pone.0291908.
- Chicco D., Jurman G.: The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genomics, vol. 21(1), 2020, 6. https://doi.org/10.1186/s12864-019-6413-7.
- Zhang H., Zhang S.: Focaler-IoU: More focused intersection over union loss. arXiv preprint, arXiv:2401.10525, 2024. https://doi.org/10.48550/arXiv.2401.10525.
- QGIS Development Team: QGIS geographic information system. Open Source Geospatial Foundation Project, 2009. https://www.qgis.org.
- Sullivan J.: Qgis-Plugin-Builder. GitHub Repository, 2026. https://github.com/g-sherman/Qgis-Plugin-Builder [access: August 4, 2026].
- Blower J.D., Gemmell A.L., Griffiths G.H., Haines K., Santokhee A., Yang X.: A web map service implementation for the visualization of multidimensional gridded environmental data. Environmental Modelling & Software, vol. 47, 2013, pp. 218–224. https://doi.org/10.1016/j.envsoft.2013.04.002.
- Mandelbaum A., Weinshall D.: Distance-based confidence score for neural network classifiers. arXiv preprint, arXiv:1709.09844, 2017. https://doi.org/10.48550/arXiv.1709.09844.
- Bodla N., Singh B., Chellappa R., Davis L.S.: Improving object detection with one line of code, [in:] 2017 IEEE International Conference on Computer Vision (ICCVW 2017): Venice, Italy 22–29 October 2017, IEEE, Piscataway 2017, pp. 5562–5570. https://doi.org/10.1109/ICCV.2017.593.
- Amari S.: Backpropagation and stochastic gradient descent method. Neurocomputing, vol. 5(4–5), 1993, pp. 185–196. https://doi.org/10.1016/0925-2312(93)90006-O.
- Zhou P., Xie X., Lin Z., Yan S.: Towards understanding convergence and generalization of AdamW. IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 46(9), 2024, pp. 6486–6493. https://doi.org/10.1109/TPAMI.2024.3382294.
- Loshchilov I., Hutter F.: Decoupled weight decay regularization, [in:] 7th International Conference on Learning Representations: ICLR 2019, New Orleans, LA, USA, May 6–9, 2019, OpenReview.net, 2019. https://openreview.net/forum?id=Bkg6RiCqY7.
- Zhang G., Wang C., Xu B., Grosse R.B.: Three mechanisms of weight decay regularization. arXiv preprint, arXiv:1810.12281, 2018. https://doi.org/10.48550/arXiv.1810.12281.
References
Sirko W., Kashubin S., Ritter M., Annkah A., Bouchareb Y.S.E., Dauphin Y., Keysers D., Neumann M., Cissé M., Quinn J.: Continental-scale building detection from high resolution satellite imagery. arXiv preprint, arXiv:2107.12283, 2021. https://doi.org/10.48550/arXiv.2107.12283.
Bell J.: What is machine learning?, [in:] Carta S. (ed.), Machine Learning and the City: Applications in Architecture and Urban Design, John Wiley & Sons, Hoboken 2022, pp. 207–216. https://doi.org/10.1002/9781119815075.ch18.
Mathew A., Arul A., Sivakumari S.: Deep learning techniques: An overview, [in:] Hassanien A.E., Bhatnagar R. (eds.), Advanced Machine Learning Technologies and Applications, Springer, Singapore 2021, pp. 599–608. https://doi.org/10.1007/978-981-15-3383-9_54.
Han Q., Yin Q., Zheng X., Chen Z.: Remote sensing image building detection method based on Mask R-CNN. Complex & Intelligent Systems, vol. 8(3), 2022, pp. 1847–1855. https://doi.org/10.1007/s40747-021-00322-z.
Li J., Huang X., Tu L., Zhang T., Wang L.: A review of building detection from very high resolution optical remote sensing images. GIScience & Remote Sensing, vol. 59(1), 2022, pp. 1199–1225. https://doi.org/10.1080/15481603.2022.2101727.
Williams C., Falck F., Deligiannidis G., Holmes C., Doucet A., Syed S.: A unified framework for U-net design and analysis, [in:] Oh A., Naumann T., Globerson A., Saenko K., Hardt M., Levine S. (eds.), NIPS ’23: Proceedings of the 37th International Conference on Neural Information Processing Systems, Curran Associates, Red Hook 2023, pp. 27745–27782.
Xu Y., Wu L., Xie Z., Chen Z.: Building extraction in very high resolution remote sensing imagery using deep learning and guided filters. Remote Sensing, vol. 10(1), 2018, 144. https://doi.org/10.3390/rs10010144.
Wang Y., Shang L., Liu Y., Sun Z., Lu Y., Shi X., Wang T., Liu Y.: Precise building semantic segmentation in remote sensing images via MR-DeepLabv3+ network. Scientific Reports, vol. 15(1), 2025, 40100. https://doi.org/10.1038/s41598-025-23917-9.
He K., Gkioxari G., Dollár P., Girshick R.: Mask R-CNN, [in:] 2017 IEEE International Conference on Computer Vision (ICCVW 2017): Venice, Italy 22–29 October 2017, IEEE, Piscataway 2017, pp. 2961–2969. https://doi.org/10.1109/ICCV.2017.322.
Kaya E.: Assessment of building extraction and geometric corrections from UAV image using Mask R-CNN deep neural network algorithm. European Journal of Remote Sensing, vol. 59(1), 2026, 2618374. https://doi.org/10.1080/22797254.2026.2618374.
Han K., Wang Y., Chen H., Chen X., Guo J., Liu Z., Tang Y., Xiao A., Xu C., Xu Y., Yang Z., Zhang Y., Tao D.: A survey on vision transformer. IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 45(1), 2023, pp. 87–110. https://doi.org/10.1109/TPAMI.2022.3152247.
Gibril M.B.A., Al-Ruzouq R., Shanableh A., Jena R., Bolcek J., Shafri H.Z.M., Ghorbanzadeh O.: Transformer-based semantic segmentation for large-scale building footprint extraction from very-high resolution satellite images. Advances in Space Research, vol. 73(10), 2024, pp. 4937–4954. https://doi.org/10.1016/j.asr.2024.03.002.
Zhang C., Liu L., Cui Y., Huang G., Lin W., Yang Y., Hu Y.: A comprehensive survey on Segment Anything Model for vision and beyond. arXiv preprint, arXiv:2305.08196, 2023. https://doi.org/10.48550/arXiv.2305.08196.
Zhang J., Li Y., Yang X., Jiang R., Zhang L.: RSAM-Seg: A SAM-based model with prior knowledge integration for remote sensing image semantic segmentation. Remote Sensing, vol. 17(4), 2025, 590. https://doi.org/10.3390/rs17040590.
Hafiz A.M., Bhat G.M.: A survey on instance segmentation: State of the art. International Journal of Multimedia Information Retrieval, vol. 9(3), 2020, pp. 171–189. https://doi.org/10.1007/s13735-020-00195-x.
Mo Y., Wu Y., Yang X., Liu F., Liao Y.: Review the state-of-the-art technologies of semantic segmentation based on deep learning. Neurocomputing, vol. 493, 2022, pp. 626–646. https://doi.org/10.1016/j.neucom.2022.01.005.
Kaur R., Singh S.: A comprehensive review of object detection with deep learning. Digital Signal Processing, vol. 132, 2023, 103812. https://doi.org/10.1016/j.dsp.2022.103812.
Khanal B., Shrestha P., Amgain S., Khanal B., Bhattarai B., Linte C.A.: Investigating the robustness of vision transformers against label noise in medical image classification, [in:] 2024 46th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC 2024): Orlando, Florida, USA, 15–19 July 2024, IEEE, Piscataway 2024, pp. 1–6. https://doi.org/10.1109/EMBC53108.2024.10782929.
Su H., Wei S., Yan M., Wang C., Shi J., Zhang X.: Object detection and instance segmentation in remote sensing imagery based on precise Mask R-CNN, [in:] IEEE International Geoscience and Remote Sensing Symposium: Proceedings: July 28–August 2, 2019 Yokohama, Japan, IEEE, Piscataway 2019, pp. 1454–1457. https://doi.org/10.1109/IGARSS.2019.8898573.
Chen L.-C., Papandreou G., Schroff F., Adam H.: Rethinking atrous convolution for semantic image segmentation. arXiv preprint, arXiv:1706.05587, 2017. https://doi.org/10.48550/arXiv.1706.05587.
Wang H., Yu F., Xie J., Wang H., Zheng H.: Road extraction based on improved DeepLabv3 plus in remote sensing image. The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, vol. XLVIII-3/W2-2022, 2022, pp. 67–72. https://doi.org/10.5194/isprs-archives-XLVIII-3-W2-2022-67-2022.
Chen L.-C., Zhu Y., Papandreou G., Schroff F., Adam H.: Encoder-decoder with atrous separable convolution for semantic image segmentation, [in:] Ferrari V., Hebert M., Sminchisescu C. (eds.), Computer Vision – ECCV 2018: 15th European Conference: Munich, Germany, September 8–14, 2018: Proceedings, Part VII, Springer, Cham 2018, pp. 833–851. https://doi.org/10.1007/978-3-030-01234-2_49.
Felipe-García B., Hernández-López D., Lerma J.L.: Analysis of the ground sample distance on large photogrammetric surveys. Applied Geomatics, vol. 4(4), 2012, pp. 231–244. https://doi.org/10.1007/s12518-012-0084-2.
Torgo L., Ribeiro R.: Precision and recall for regression, [in:] Gama J., Costa V.S., Jorge A.M., Brazdil P.B. (eds.), Discovery Science: 12th International Conference, DS 2009, Porto, Portugal, October 3–5, 2009, Springer, Berlin, Heidelberg 2009, pp. 332–346. https://doi.org/10.1007/978-3-642-04747-3_26.
Foody G.M.: Challenges in the real world use of classification accuracy metrics: From recall and precision to the Matthews correlation coefficient. PLoS One, vol. 18(10), 2023, e0291908. https://doi.org/10.1371/journal.pone.0291908.
Chicco D., Jurman G.: The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genomics, vol. 21(1), 2020, 6. https://doi.org/10.1186/s12864-019-6413-7.
Zhang H., Zhang S.: Focaler-IoU: More focused intersection over union loss. arXiv preprint, arXiv:2401.10525, 2024. https://doi.org/10.48550/arXiv.2401.10525.
QGIS Development Team: QGIS geographic information system. Open Source Geospatial Foundation Project, 2009. https://www.qgis.org.
Sullivan J.: Qgis-Plugin-Builder. GitHub Repository, 2026. https://github.com/g-sherman/Qgis-Plugin-Builder [access: August 4, 2026].
Blower J.D., Gemmell A.L., Griffiths G.H., Haines K., Santokhee A., Yang X.: A web map service implementation for the visualization of multidimensional gridded environmental data. Environmental Modelling & Software, vol. 47, 2013, pp. 218–224. https://doi.org/10.1016/j.envsoft.2013.04.002.
Mandelbaum A., Weinshall D.: Distance-based confidence score for neural network classifiers. arXiv preprint, arXiv:1709.09844, 2017. https://doi.org/10.48550/arXiv.1709.09844.
Bodla N., Singh B., Chellappa R., Davis L.S.: Improving object detection with one line of code, [in:] 2017 IEEE International Conference on Computer Vision (ICCVW 2017): Venice, Italy 22–29 October 2017, IEEE, Piscataway 2017, pp. 5562–5570. https://doi.org/10.1109/ICCV.2017.593.
Amari S.: Backpropagation and stochastic gradient descent method. Neurocomputing, vol. 5(4–5), 1993, pp. 185–196. https://doi.org/10.1016/0925-2312(93)90006-O.
Zhou P., Xie X., Lin Z., Yan S.: Towards understanding convergence and generalization of AdamW. IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 46(9), 2024, pp. 6486–6493. https://doi.org/10.1109/TPAMI.2024.3382294.
Loshchilov I., Hutter F.: Decoupled weight decay regularization, [in:] 7th International Conference on Learning Representations: ICLR 2019, New Orleans, LA, USA, May 6–9, 2019, OpenReview.net, 2019. https://openreview.net/forum?id=Bkg6RiCqY7.
Zhang G., Wang C., Xu B., Grosse R.B.: Three mechanisms of weight decay regularization. arXiv preprint, arXiv:1810.12281, 2018. https://doi.org/10.48550/arXiv.1810.12281.