Skip to main content
QUICK REVIEW

[Paper Review] Robust Fruit Counting: Combining Deep Learning, Tracking, and Structure from Motion

Xu Liu, Steven W. Chen|arXiv (Cornell University)|Apr 1, 2018
Smart Agriculture and AIAgricultural and Biological Sciences12 citations
TL;DR

This paper presents a novel fruit counting pipeline that combines deep learning-based segmentation, frame-to-frame tracking with a Kalman-filtered KLT tracker, and 3D localization via Structure from Motion (SfM) to correct tracking errors and improve accuracy. The method significantly reduces overcounting from occlusions and illumination variations, achieving an L1 error of 203 and 3.3% mean error on orange and apple datasets respectively, with substantial improvement in robustness under unstructured conditions.

ABSTRACT

We present a novel fruit counting pipeline that combines deep segmentation, frame to frame tracking, and 3D localization to accurately count visible fruits across a sequence of images. Our pipeline works on image streams from a monocular camera, both in natural light, as well as with controlled illumination at night. We first train a Fully Convolutional Network (FCN) and segment video frame images into fruit and non-fruit pixels. We then track fruits across frames using the Hungarian Algorithm where the objective cost is determined from a Kalman Filter corrected Kanade-Lucas-Tomasi (KLT) Tracker. In order to correct the estimated count from tracking process, we combine tracking results with a Structure from Motion (SfM) algorithm to calculate relative 3D locations and size estimates to reject outliers and double counted fruit tracks. We evaluate our algorithm by comparing with ground-truth human-annotated visual counts. Our results demonstrate that our pipeline is able to accurately and reliably count fruits across image sequences, and the correction step can significantly improve the counting accuracy and robustness. Although discussed in the context of fruit counting, our work can extend to detection, tracking, and counting of a variety of other stationary features of interest such as leaf-spots, wilt, and blossom.

Motivation & Objective

  • To address the challenge of accurate fruit counting in unstructured orchard environments with variable lighting, occlusion, and depth variation.
  • To develop a robust pipeline that extends single-image fruit detection to video sequences using deep learning and 3D reconstruction.
  • To reduce overcounting and false positives from tracking errors using 3D localization and size estimation.
  • To evaluate the method on real-world datasets with natural lighting and complex tree structures.
  • To enable practical deployment in low-resource farming settings using only monocular camera data.

Proposed method

  • A Fully Convolutional Network (FCN) is trained to segment each image frame into fruit and non-fruit pixels using human-annotated ground truth.
  • Fruit tracking is performed across frames using the Hungarian Algorithm with an objective cost derived from a Kalman-filter-corrected KLT tracker.
  • Structure from Motion (SfM) is applied to SIFT features near detected fruit regions to estimate 3D positions and relative sizes of fruits.
  • The 3D localization and size estimates are used to reject outlier tracks and correct double-counted fruits in the final count.
  • The correction step leverages spatial consistency and size distribution to improve tracking reliability.
  • The pipeline is evaluated on two datasets: oranges under natural daylight with high occlusion and depth variation, and apples under controlled nighttime illumination.

Experimental results

Research questions

  • RQ1Can a deep learning-based segmentation model improve fruit detection accuracy in complex, unstructured orchard environments?
  • RQ2How effective is the combination of tracking-by-detection with Kalman-filtered KLT and Hungarian assignment in reducing tracking errors across image sequences?
  • RQ3To what extent does 3D localization via SfM improve fruit counting accuracy by rejecting false positives and correcting double-counted tracks?
  • RQ4How does the correction step perform under varying environmental conditions, such as natural lighting and high occlusion?
  • RQ5Can the pipeline generalize to different fruit types and be deployed in low-resource farming settings using only monocular cameras?

Key findings

  • The pipeline achieved an L1 error of 203 and a mean error of -0.2% on the orange dataset, which features high occlusion, depth variation, and natural lighting.
  • On the apple dataset, the uncorrected model had an L1 error of 673 and a mean error of 8.5%, which was reduced to 322 and 3.3% after correction.
  • The standard deviation of error decreased from 4.7% to 4.1% on the apple dataset, indicating improved consistency.
  • The correction step had a more pronounced effect on the orange dataset due to greater environmental variability, demonstrating its robustness in unstructured settings.
  • The 3D localization and size estimation step significantly improved accuracy by rejecting outliers and correcting double-counted tracks.
  • The method is effective in both high-occlusion, natural-light conditions (oranges) and high-color-similarity, controlled-light conditions (apples), showing broad applicability.

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.