Apple Fruit Edge Detection Model Using a Rough Set and Convolutional Neural Network

Junqing Li, Ruiyi Han, Fangyi Li, Guoao Dong, Yu Ma, Wei Yang, Guanghui Qi, Liang Zhang2024

TL;DR

This paper introduces a novel apple fruit edge detection model (RED) that combines Faster R-CNN for initial object detection and rough set theory for robust edge extraction. This approach significantly improves accuracy and stability in challenging natural environments, paving the way for more intelligent fruit harvesting and yield prediction systems.

What Problem Does This Paper Address?

Accurately identifying the precise location and boundaries of apple fruits is crucial for automated agricultural tasks like intelligent picking and yield forecasting. However, achieving this in real-world orchard settings is fraught with difficulties. Factors such as varying illumination, complex backgrounds (e.g., leaves, branches), and fruits overlapping each other (occlusion) create significant noise and ambiguity in image data, making traditional edge detection methods unreliable. Existing AI-based methods often struggle with these combined challenges, leading to incomplete or inaccurate fruit edge detection.

Methods

The proposed RED model is a multi-stage approach designed to tackle these issues:

  • Object Detection (Faster R-CNN): The process begins with Faster R-CNN, a powerful object detection framework. This module is used to first identify and segment individual apple fruits within the complex natural scene. This step effectively "denoises" the image by isolating the target objects from irrelevant background elements like sky and foliage, simplifying the subsequent edge detection task.
  • Semantic Segmentation (K-Means Clustering): After initial segmentation by Faster R-CNN, the individual apple images might still contain residual noise or holes due to obstructions. K-Means clustering is employed here to further refine the segmentation, separating the apple from any remaining background noise and filling in small voids. The authors found that a K value of 2 yielded the best results.
  • Morphological Image Processing (Dilation & Erosion): To address remaining edge noise and potential gaps in the segmented apple images, morphological operations like dilation and erosion are applied. These techniques help to smooth edges, fill small holes, and enhance the overall structure of the apple's boundary without significant loss of pixel information.
  • Rough Set Theory for Edge Extraction: This is the core novel contribution. Rough set theory, a mathematical tool for handling uncertainty and vagueness, is used to extract complete and continuous fruit edges. By leveraging the upper and lower approximations derived from rough set calculations, the model can robustly characterize the true edge of the apple, even with fuzzy boundaries or partial occlusions. This step effectively mitigates the imprecision inherent in image edges.
  • Edge Consolidation: Finally, the individual edge maps of segmented apples are merged back into a complete image, preserving their original spatial coordinates.

Datasets

The study utilized a dataset comprising 1500 apple images captured in natural environments. Of these, 1200 images were used for training and 300 for testing. The paper does not mention the creation of a new benchmark dataset.

Key Insights and Ideas

  • Decomposition of Complexity: The paper effectively demonstrates that breaking down the complex problem of multi-apple edge detection into sequential stages (object detection, segmentation, refinement, and then edge extraction) is a powerful strategy.
  • Rough Set for Robustness: The application of rough set theory is a key innovation. It provides a principled way to handle the inherent uncertainty and imprecision in image edges, leading to more robust and complete contour extraction compared to traditional methods.
  • Synergy of Techniques: The combination of deep learning (Faster R-CNN) for initial localization and classical image processing/mathematical tools (K-Means, morphology, rough sets) creates a synergistic effect, leveraging the strengths of each approach.
  • Addressing Real-World Challenges: The paper directly confronts common issues in agricultural imaging like illumination variations, complex backgrounds, and fruit occlusion, which are often stumbling blocks for simpler algorithms.

Key Results

The proposed RED model demonstrated strong performance across various challenging scenarios:

  • Illumination: The model achieved a Dice score of 88.1% and Jaccard index of 78.7%, outperforming Canny, Laplacian, Prewitt, and Holistically-Nested operators.
  • Complex Backgrounds: For complex backgrounds, the model achieved a Dice score of 90.9% and Jaccard index of 83.3%, showing superiority over the compared methods.
  • Dense Occlusions: In dense occlusion scenarios, the model achieved a Dice score of 90.2% and Jaccard index of 82.1%, again demonstrating better performance.
  • Overall: The paper highlights that the RED model achieved significantly higher Dice and Jaccard scores compared to traditional operators and the Holistically-Nested method in these challenging conditions.

Limitations and Future Work

  • Discontinuous Edges due to Occlusion: The authors acknowledge that while their method effectively removes non-target pixels, occlusion between fruits can still lead to discontinuous edge delineation.
  • Future Work: To address this, they propose introducing depth information to fill in these discontinuous edges, aiming for more complete and continuous contour extraction. The paper also notes that for extremely complex, large-scale scenes with multiple layers of occlusion and resolution issues, the performance was not ideal, suggesting room for further improvement.

Summary updated

BibTeX
@misc{li2024apple,
  author = {Junqing Li and Ruiyi Han and Fangyi Li and Guoao Dong and Yu Ma and Wei Yang and Guanghui Qi and Liang Zhang},
  title = {{Apple Fruit Edge Detection Model Using a Rough Set and Convolutional Neural Network}},
  year = {2024},
  doi = {10.3390/s24072283},
}

Loading related content...

Figure