DeepApple: Deep Learning-based Apple Detection using a Suppression Mask R-CNN

Pengyu Chu, Zhaojian Li, Kyle Lammers, Renfu Lu, Xiaoming LiuarXiv 2020

Abstract

DeepApple is a specialized deep-learning framework designed for robust fruit detection in commercial orchards. By integrating a "suppression branch" into the standard Mask R-CNN architecture, the system effectively filters false positives caused by leaves and branches. Evaluated on a new dataset of 1,500 orchard images, DeepApple achieved an F1-score of 0.905, demonstrating superior performance in complex lighting and occlusion scenarios compared to standard object detection models.

Introduction

Automated robotic harvesting is a critical goal for the fruit industry, which faces rising labor costs and worker shortages. However, commercial orchards present a significant computer vision challenge. Traditional detection methods often fail due to varying lighting conditions, complex occlusions where apples are hidden behind foliage, and visual mimicry where shiny leaves resemble fruit. While modern architectures like Mask R-CNN are powerful, they still struggle with "false alarms" in these dense environments. DeepApple aims to bridge this gap by creating a system that is both highly accurate and fast enough for real-time robotic use.

Methods

The authors introduce a novel architecture called Suppression Mask R-CNN, which operates in two main stages:

  1. Feature Learning Backbone: A standard Mask R-CNN with a ResNet-101-FPN backbone generates initial region proposals (bounding boxes) where targets are likely located.
  2. Feature Suppression End: This secondary, shallow convolutional neural network (ConvNet) acts as a "sanity check." For every proposed bounding box, the system uses K-means clustering to separate "apple pixels" from "background pixels." This generates a binary mask that is fed into a shallow ConvNet (3 convolutional layers) to make a final decision.

By focusing specifically on pixel-level clusters, the suppression branch can reject false positives triggered by clusters of leaves that fooled the primary backbone.

The Suppression Mask R-CNN architecture, featuring the Feature Learning Backbone and the innovative Feature Suppression End.

Datasets

The researchers collected and annotated a comprehensive new dataset to ensure the model could handle real-world variety. It includes 1,500 raw images (1280x720 resolution) of 'Gala' (red/yellow) and 'Blondee' (smooth yellow) apples. Images were captured at different times of day to account for front-lighting, back-lighting, and scattered light under both sunny and overcast skies. The dataset contains over 21,000 individual apple instances annotated with rectangular bounding boxes.

Sample images from the dataset showing (a) red 'Gala' apples and (b) yellow 'Blondee' apples under varying orchard lighting conditions.

Key Results

DeepApple was compared against several state-of-the-art models with the following results:

  • Accuracy: DeepApple achieved an F1-score of 0.905, outperforming standard Mask R-CNN (0.858) and Faster R-CNN (0.820).
  • Precision: The suppression branch boosted precision to 0.880, a nearly 10% improvement over the standard ResNet-101 version, by effectively reducing false alarms.
  • Speed: The system processes images at 0.25 seconds per frame (4 FPS). While not high-speed, this is sufficient for the movement of a robotic picking arm.
  • Robustness: The model maintained high performance across both apple varieties and all lighting conditions, though back-lighting remains the most challenging scenario.

Conclusion

DeepApple demonstrates that a "second opinion" strategy—using a deep backbone for proposals and a shallow, specialized network for verification—is highly effective for agricultural robotics. While the system significantly improves detection, future work will address heavy occlusions in the center of tree canopies and incorporate RGB-D (depth) information to assist in 3D robotic navigation and obstacle avoidance.

Summary updated

BibTeX
@misc{chu2020deepapple,
  author = {Pengyu Chu and Zhaojian Li and Kyle Lammers and Renfu Lu and Xiaoming Liu},
  title = {{DeepApple: Deep Learning-based Apple Detection using a Suppression Mask R-CNN}},
  year = {2020},
  eprint = {2010.09870},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.09870},
}
Figure