Skip to main content
QUICK REVIEW

[Paper Review] Development of Automatic Tree Counting Software from UAV Based Aerial Images With Machine Learning

Musa Ataş, Ayhan Talay|arXiv (Cornell University)|Jan 7, 2022
Remote Sensing and LiDAR ApplicationsEnvironmental Science7 citations
TL;DR

This paper presents an automated tree counting system using UAV-derived aerial images and machine learning, specifically employing a Multi-Layer Perceptron (MLP) classifier on RGB-modality images. After image stitching, denoising, and object labeling in HSV, RGB, and grayscale, the MLP achieved an average accuracy of 87% in tree detection across four campus regions, with real-time performance enabled via model serialization and blob detection for final counting.

ABSTRACT

Unmanned aerial vehicles (UAV) are used successfully in many application areas such as military, security, monitoring, emergency aid, tourism, agriculture, and forestry. This study aims to automatically count trees in designated areas on the Siirt University campus from high-resolution images obtained by UAV. Images obtained at 30 meters height with 20% overlap were stitched offline at the ground station using Adobe Photoshop's photo merge tool. The resulting image was denoised and smoothed by applying the 3x3 median and mean filter, respectively. After generating the orthophoto map of the aerial images captured by the UAV in certain regions, the bounding boxes of different objects on these maps were labeled in the modalities of HSV (Hue Saturation Value), RGB (Red Green Blue) and Gray. Training, validation, and test datasets were generated and then have been evaluated for classification success rates related to tree detection using various machine learning algorithms. In the last step, a ground truth model was established by obtaining the actual tree numbers, and then the prediction performance was calculated by comparing the reference ground truth data with the proposed model. It is considered that significant success has been achieved for tree count with an average accuracy rate of 87% obtained using the MLP classifier in predetermined regions.

Motivation & Objective

  • To develop an automated, real-time software system for counting trees in UAV-derived aerial images using machine learning.
  • To evaluate the performance of multiple machine learning classifiers (MLP, SVM, KNN, Random Forest) in detecting trees across different image color modalities (RGB, HSV, grayscale).
  • To establish a ground truth for tree counts on the Siirt University campus to validate the prediction accuracy of the proposed model.
  • To implement a real-time processing pipeline using pixel-wise classification and blob detection for efficient tree counting.
  • To compare classification performance across different color spaces (RGB, HSV, grayscale) to determine the optimal input modality for tree detection.

Proposed method

  • UAV flight at 30 meters altitude with 20% image overlap to capture high-resolution aerial images of the Siirt University campus.
  • Image stitching using Adobe Photoshop’s photo merge tool to generate a single orthophoto map from overlapping UAV images.
  • Preprocessing via 3x3 median and mean filters to reduce noise and smooth the orthophoto map.
  • Object labeling in HSV, RGB, and grayscale modalities to create training, validation, and test datasets for machine learning.
  • Training and cross-validation of four classifiers (MLP, SVM, KNN, Random Forest) using 10-fold cross-validation on labeled data.
  • Model serialization in Java to enable real-time inference by loading the trained MLP model without retraining.
  • Pixel-wise classification using the trained MLP on RGB images to produce a segmented image with distinct classes (tree, soil, grass, etc.).
  • Binary thresholding to isolate tree-1 class (black pixels), followed by blob detection to identify individual tree regions.
  • Blob filtering based on size thresholds to eliminate false positives from noise.
  • Centroid calculation and bounding box overlay using OCL library to mark and count detected trees on the original image.

Experimental results

Research questions

  • RQ1Which machine learning classifier achieves the highest accuracy in tree detection from UAV-based aerial images?
  • RQ2How does the choice of image color modality (RGB, HSV, grayscale) affect the classification performance of tree detection algorithms?
  • RQ3Can a real-time tree counting system be effectively implemented using a pre-trained MLP classifier with model serialization?
  • RQ4To what extent does blob detection with size filtering improve the accuracy of tree counting after pixel-wise classification?
  • RQ5What is the overall prediction accuracy of the proposed system when validated against ground truth tree counts on real campus data?

Key findings

  • The MLP classifier achieved the highest average accuracy of 87% across four test regions, outperforming SVM, KNN, and Random Forest.
  • RGB modality yielded better classification performance than HSV and grayscale, with HSV showing close but slightly lower results.
  • Grayscale images produced the lowest classification accuracy due to reduced class separability and increased class overlap.
  • Region-4 achieved the highest individual accuracy at 93%, while Region-3 had the lowest at 75%, indicating variability in detection performance across different terrain types.
  • The use of model serialization in Java enabled efficient real-time inference by avoiding retraining during deployment.
  • The integration of blob detection with size thresholding significantly reduced false positives, improving final tree count reliability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.