View Article

  • Object-Based Supervised Land-Cover Classification of High-Resolution Imagery Using ArcGIS Pro Segmentation and scikit-learn Random Forest

  • College of Forest Resources and Environmental Science, Michigan Technological University

Abstract

Object-based image analysis (OBIA) can improve high-resolution land-cover mapping by grouping pixels into meaningful image objects before classification, thereby reducing the salt-and-pepper noise common in pixel-based methods. This paper presents a reproducible OBIA workflow that integrates mean-shift image segmentation in ArcGIS Pro, rasterization of training polygons and segment identifiers, and supervised machine-learning classification using a Random Forest model implemented in Python (GDAL, NumPy, and scikit-learn). Training labels were transferred to segmented objects using a majority-label rule, while object-level features were computed as mean spectral values from a three-band (RGB) image. The workflow produces a classified raster map with spatially coherent objects, suitable for exploratory land-cover mapping in an urban park. It provides a foundation for adding richer features and formal accuracy assessment in future work.

Keywords

object-based image analysis; segmentation; mean shift; Random Forest; scikit-learn; ArcGIS Pro; supervised classification; raster processing

Introduction

High-resolution aerial imagery resolves fine-scale landscape elements such as rooftops, sidewalks, and small vegetation patches. Still, pixel-level classification often produces fragmented results because individual pixels vary due to shadows, mixed materials, and sensor noise. Object-based image analysis (OBIA) addresses this limitation by first segmenting imagery into homogeneous objects that better correspond to real-world features, and then classifying those objects using spectral and contextual attributes. This study documents an ArcGIS Pro + Python workflow for OBIA that (i) prepares object and label rasters from segmentation outputs and training polygons and (ii) trains a supervised classifier in scikit-learn to produce an object-consistent land-cover classification map.

2. Data and Study Inputs

The workflow uses four primary inputs: (1) a high-resolution three-band image (PortlandFine.tif), (2) a mean-shift segmentation raster (arcpy_seg_index.tif) representing image objects, (3) training polygons (PortlandTrainingSamples.shp), and (4) rasterized class labels derived from the training polygons (PortlandTrainingSamples_label.tif). Two intermediate rasters are generated to support OBIA sampling: an object identifier raster (sample_id.tif) and a label raster aligned to the reference image.

METHODS

3.1 Preprocessing in ArcGIS Pro

Preprocessing steps were completed in ArcGIS Pro to ensure that the segmentation objects and training labels were rasterized at a consistent cell size, extent, and spatial reference. The key objective was to create (i) an object ID raster for sampling and (ii) a label raster aligned with the imagery for supervised learning.

3.1.1 Task A: Create an object ID raster (sample_id.tif)

The segmentation raster was converted to vector polygons using the Raster To Polygon tool. Segmentation polygons intersecting the training polygons were selected using Select By Location and exported to a new feature class. The exported polygons were then converted back to raster using Polygon To Raster to produce sample_id.tif. Raster environment settings (including cell size and extent) were controlled to match the imagery and to prevent misalignment during sampling.

Figure 1. ArcGIS Pro: converting segmentation polygons intersecting training samples to an aligned object ID raster (sample_id.tif).

3.1.2 Create a rasterized training label layer (PortlandTrainingSamples_label.tif)

Training polygons were rasterized using Polygon To Raster to create PortlandTrainingSamples_label.tif. The rasterization environment was set to match the reference image (PortlandFine.tif) so that training labels align with image pixels and derived object features.

Figure 2. ArcGIS Pro: polygon-to-raster conversion of training samples to create an aligned label raster (PortlandTrainingSamples_label.tif).

3.2 Object-based feature extraction and supervised classification (Python)

A Jupyter notebook was used to extract object-based features and train a supervised classifier with scikit-learn. Raster data were read with GDAL and processed as NumPy arrays. For each training object (a unique value in sample_id.tif), the mean RGB values were computed as the feature vector. Labels were obtained by extracting the training-label pixels within the same object and assigning a single object label using a majority (most common) rule. A RandomForestClassifier with 100 trees was trained on the object feature matrix and applied to all unique segmentation objects to generate a predicted class map, with predicted labels written back to all pixels belonging to each object.

RESULTS

The preprocessing workflow produced two aligned rasters essential for OBIA: sample_id.tif, which encodes object identifiers for training objects intersecting the training polygons, and PortlandTrainingSamples_label.tif, which encodes training class labels aligned with the imagery. The trained Random Forest model produced an object-consistent classification map in which predicted classes follow segmentation boundaries, reducing pixel-level speckling. Because the feature set in this implementation is limited to mean RGB values per object, some confusion is expected between spectrally similar materials (e.g., light roofs and concrete, dark pavement and shadowed vegetation). Formal quantitative validation (e.g., an object-level confusion matrix using withheld objects or independent reference data) is recommended for research-grade assessment.

Figure 3. Object-based supervised classification results in ArcGIS Pro (predicted class map).

DISCUSSION

This study presents a practical OBIA workflow that integrates ArcGIS Pro raster/vector processing with a Python-based supervised classifier. The approach benefits from spatial coherence introduced by segmentation and from transparent, reproducible feature-extraction and model-training steps. However, OBIA performance depends strongly on segmentation quality and the richness of object features. Using only mean RGB values limits separability across heterogeneous urban classes. Future work should incorporate additional features (within-object standard deviation, texture measures, object-shape metrics) and, when available, spectral information (e.g., near-infrared bands or vegetation indices). Accuracy assessment should be conducted using object-based validation to avoid spatial autocorrelation and to provide defensible per-class performance metrics.

CONCLUSION

An ArcGIS Pro-Python OBIA workflow was implemented to produce an object-based supervised land-cover classification map from high-resolution imagery. The workflow creates aligned object-identifier and training-label rasters, extracts object-level features, trains a scikit-learn Random Forest model, and maps predicted labels back to image objects. The resulting classification demonstrates the value of OBIA for producing spatially coherent thematic maps and provides a baseline framework for more advanced feature engineering and validation in future applied studies.                                          

REFERENCE

  1. Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32.
  2. Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., & Duchesnay, E. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12, 2825–2830.
  3. Esri. (2023). ArcGIS Pro: Image segmentation and classification tools (documentation).
  4. Bao-Tao, L. Python Programming for ArcGIS Applications (FW5553). Michigan Technological University.

Reference

  1. Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32.
  2. Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., & Duchesnay, E. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12, 2825–2830.
  3. Esri. (2023). ArcGIS Pro: Image segmentation and classification tools (documentation).
  4. Bao-Tao, L. Python Programming for ArcGIS Applications (FW5553). Michigan Technological University.

Photo
Moses Tangwam
Corresponding author

College of Forest Resources and Environmental Science, Michigan Technological University.

Moses Tangwam*, Object-Based Supervised Land-Cover Classification of High-Resolution Imagery Using ArcGIS Pro Segmentation and scikit-learn Random Forest, Int. J. Sci. R. Tech., 2026, 3 (1), 287-290. https://doi.org/10.5281/zenodo.18327362

More related articles
Tridax Procumbens Linn.: A Review of Pharmacognost...
Madhura Khalkar, Dr. Avinash Darekar, ...
A Review on Phytochemical and Biological Activity ...
Sneha Vasava, Jyoti Chauhan, Bharat Maitreya, ...
Exploring Seed Bank in Mahuva Taluka of Bhavnagar ...
Piyush Nakum, Bhavna Singh, Hitesh Solanki, ...
Role of Pharmacist in Awareness and Management of Breast Cancer...
Shital Boraste, Dr. Ashwini Shewale, Rutuja Solase, Kajal Algur, Deepika Choudhary, Arti Mote, Kajal...
Molecular Mechanisms of SGLT2 Inhibitors Bridging Glucose Lowering and Cardiac P...
Rushikesh Bhosle, Darshil Ingale, Sachin Amrutkar, Swaraj Dhande, Shreyas Kurhe, ...
Related Articles
Polymeric Micelles: A Review of Their Synthesis, Characterization, Types & Appli...
Rutuja Savakhande , Shailesh Pendor, Dr. A. H. Hosmani , Shweta Patil, Rajlaxmi Patil, Rutuja Kadam,...
Relationship Between Periodontitis and Neuroinflammation: A Narrative Review...
Dr. Medha Naik, Dr. Sapna N., Dr. Suchetha A., Dr. Darshan Mundinamane, Dr. Susan Isaac, ...