AI-Based Urban Feature Extraction from UAV Imagery: From Building and Road Detection to GIS Layer Generation
Accurate and up-to-date geospatial information is essential for urban planning and management. Buildings, roads, green spaces, and other urban features need to be systematically identified, mapped, and maintained in geospatial databases. However, extracting these features manually from aerial imagery can be time-consuming and costly, particularly across large and densely developed urban areas.
Recent advances in artificial intelligence and computer vision have made automated and semi-automated feature extraction from UAV imagery increasingly practical. Deep learning models can analyze image patterns to identify buildings, road networks, vegetation, and other visible features, producing information layers that can be integrated into GIS environments.
Combining high-resolution UAV imagery, intelligent image-processing models, and geospatial technologies can accelerate urban mapping workflows and support the development of more accurate and structured spatial databases.
Why Is Automated Urban Feature Extraction Important?
In many mapping and urban management projects, a considerable amount of technical effort is spent identifying, digitizing, and editing features manually on aerial images. This becomes particularly challenging in areas containing large numbers of buildings, dense road networks, or extensive vegetation.
For example, generating a building footprint layer from an urban orthomosaic may require the manual delineation of hundreds or thousands of individual buildings. Similar challenges arise when extracting road boundaries, green spaces, and individual tree crowns.
Artificial intelligence models can learn the visual characteristics of different features and automate a significant portion of the initial identification and extraction process. As a result, GIS specialists can focus more of their time on reviewing results, refining geometries, and performing quality control instead of digitizing every feature from scratch.
However, the objective is not to eliminate the role of human expertise. Model performance depends on image quality, training data diversity, feature characteristics, and local conditions. AI-generated outputs must therefore be reviewed and validated according to the intended application.
Which Urban Features Can Be Extracted from UAV Imagery?
The range of extractable features depends on image resolution, acquisition quality, environmental conditions, and the selected model. Several feature groups are particularly relevant to urban projects.
Building extraction: One of the most important applications is identifying buildings and delineating their visible footprints from UAV orthomosaics. Models can estimate building boundaries and, after geometric refinement, convert them into polygon features for geospatial databases. These datasets support the preparation and updating of urban base maps and building-density analyses.
Road network extraction: Identifying streets, roads, and visible transportation surfaces can help generate or update road information layers. In this application, detecting road surfaces is only part of the process. Network continuity and topological relationships must also be considered because a usable GIS road network requires correct spatial connectivity.
Vegetation and tree detection: Image segmentation models can identify vegetation areas, grass-covered surfaces, green spaces, and visible tree crowns. These outputs can support urban vegetation mapping, tree distribution analysis, and green-space inventory development. However, accurate individual tree crown delineation in dense vegetation or overlapping canopies requires suitable imagery and carefully selected models.
Other urban features: Depending on project requirements, additional classes such as parking areas, open spaces, asphalt surfaces, bare ground, visible drainage features, and selected surface infrastructure can also be included in the extraction workflow.
Artificial Intelligence Methods for Urban Feature Detection and Extraction
The selection of an appropriate method depends on the target feature and the required output geometry. Not all image-detection models generate the same type of spatial information. Three major approaches are particularly relevant.

Object Detection:
Object detection identifies target objects within an image and generally represents their approximate locations using bounding boxes. This method is useful for identifying and counting features such as vehicles, urban equipment, and other distinct objects. However, bounding boxes do not provide the precise outlines of buildings or the actual boundaries of road surfaces.
Semantic Segmentation:
Semantic segmentation assigns a class label to each image pixel. For example, pixels can be categorized as buildings, roads, vegetation, water, or bare ground. Architectures such as U-Net are well-established options for this type of image analysis.
This approach produces continuous classified maps that can be converted into geospatial polygons. However, adjacent buildings belonging to the same class may be combined into a single region if the model does not distinguish individual objects.
Instance Segmentation:
Instance segmentation identifies individual objects while also assigning them to their corresponding classes. For example, when several buildings are located next to one another, the model attempts to delineate each building separately.
Architectures such as Mask R-CNN belong to this category and can be used to extract individual buildings and other distinct spatial features.
In practical projects, different methods may be selected for different feature types. Instance segmentation may be appropriate for individual buildings, semantic segmentation for continuous road surfaces, and object detection for counting distinct objects.
Steps for Extracting Urban Features from UAV Orthomosaics
A successful urban feature extraction project involves more than running a pretrained model on an image. Several technical stages are required to produce reliable GIS-ready outputs.
1. Image and Input Data Preparation
The UAV orthomosaic should first be checked for spatial resolution, visual quality, coordinate reference system, coverage, and obvious geometric issues. The image can then be divided into smaller tiles according to the model architecture and available computational resources.
Tile dimensions, overlap, and output-merging procedures are important. Inappropriate tiling may result in incomplete extraction of features located along tile boundaries or duplicated and fragmented geometries when predictions are combined.
2. Training Data Preparation and Annotation
Deep learning models require labeled examples to learn the visual characteristics of target features. Buildings, roads, trees, and other classes are therefore manually annotated on the imagery.
Annotation quality is critical. Incorrect boundaries, imbalanced classes, and inconsistent labeling practices can directly affect model performance.
For example, when extracting building footprints, the project must define whether the target boundary follows the visible roof edge or another specified outline. This definition should be applied consistently across all training samples.
3. Model Training and Evaluation
After preparing the training data, samples are divided into training, validation, and test datasets. The model learns from training samples, while its performance is evaluated using independent data.
Image augmentation techniques such as rotation, scaling, cropping, and controlled brightness or color variation can improve the model’s ability to handle different image conditions.
Spatial data splitting requires particular attention. If neighboring tiles from the same image are distributed across training and test datasets, spatial similarity may lead to overly optimistic performance estimates. Testing on spatially independent areas provides a more realistic assessment of how well the model generalizes to new locations.
4. Applying the Model to the Study Area
Once the model has been trained and selected, inference is performed across the target orthomosaic or study area. Image tiles are processed, and their predictions are combined while preserving their geographic positions.
Confidence thresholds, overlapping prediction handling, and tile-edge processing can significantly affect the final output. These parameters should be adjusted according to image characteristics and project requirements.
5. Converting AI Predictions into GIS Layers
Many segmentation models produce raster outputs in which each pixel is assigned to a class or object. To integrate these results into GIS workflows, the classified masks can be converted into vector geometries.

This process includes polygonization, removal or review of small and invalid components, boundary refinement, and geometric or topological processing where necessary.
For example, adjacent but independent buildings should remain separate polygon features. Road networks should also be checked for connectivity and topological consistency.
Each feature can then receive attributes such as a unique identifier, class, area, perimeter, coordinates, and other project-specific information. The results can be stored in formats such as Shapefile, GeoPackage, or a spatial database.
Quality Control and Accuracy Assessment
One of the most important stages of an extraction project is evaluating how closely the model’s predictions correspond to actual features and reference data. Producing a colored classification map or a large number of polygons does not automatically indicate reliable extraction.
Metrics such as Precision, Recall, and F1-Score are useful for evaluating classification and segmentation performance. Intersection over Union (IoU) measures the spatial overlap between predicted and reference areas.
For building extraction projects, geometric quality should also be assessed beyond pixel-based metrics. Area deviation, boundary displacement, shape consistency, and the number of correctly extracted objects can provide additional information about the final data quality.
Important errors should also be examined, including missing small buildings, merging of adjacent structures, false detection of shadows, road discontinuities, and incorrect vegetation classification.
A 2026 study applied Mask R-CNN to building extraction from UAV-derived orthophotos and compared geometric correction methods for refining the extracted polygon boundaries. This illustrates that the quality of the final GIS layer depends not only on the deep learning model but also on subsequent geometric processing.
Organizational Applications of AI-Based Urban Feature Extraction
Automated feature extraction from UAV imagery can support a range of urban and organizational projects.
Municipalities can use this technology to generate and update building, road, and green-space layers. Surveying and geospatial consulting companies can accelerate parts of their digitization workflows. In urban vegetation management, the extraction of vegetation areas and tree crowns can provide valuable baseline information for subsequent spatial analysis.
Organizations maintaining extensive geospatial databases can combine automated extraction with GIS infrastructure to improve the consistency and efficiency of spatial data updates while reducing repetitive manual digitization.
However, extracted outputs must always be consistent with the intended map scale, accuracy requirements, and feature definitions. For instance, a polygon extracted from a visible building roof is not necessarily equivalent to a registered property boundary or cadastral parcel and should not be substituted for such data without independent verification.
AI-Based Geospatial Feature Extraction Services at FarsGeo
At Payeshgaran Farasanjesh Tabiat Fars, we combine UAV photogrammetry, image processing, and artificial intelligence to develop specialized solutions for automated geospatial feature extraction and structured spatial data production.
Depending on client requirements, our services can include UAV orthomosaic processing, deep learning model development and application, building and road extraction, vegetation mapping, conversion of model predictions into vector layers, geometric refinement, and quality assessment.
Our objective goes beyond identifying features in images. We transform visual information into structured geospatial datasets that can be integrated into GIS databases, urban management platforms, and spatial planning workflows.
Request an AI-Based Urban Feature Extraction Proposal from FarsGeo.
