Design and Experiment of Pineapple Eye Removal Device Based on Machine Vision

Manfeng Gong, Shuai Wang, Xingzao Ma, Hua Li, C Tu, Zhirui GuoMachines 2025

TL;DR

This paper presents an automated pineapple eye removal system that leverages machine vision and a novel end-effector design. By combining a YOLOv5s object detection model with depth camera data for 3D localization, the system achieves an impressive 88.5% complete removal rate, significantly improving efficiency and reducing labor compared to manual methods.

What Problem Does This Paper Address?

Pineapple eye removal is a critical but labor-intensive step in processing. The natural spiral arrangement of pineapple eyes makes precise positioning for automated removal challenging. Existing automated solutions often struggle with accuracy, can damage the fruit flesh leading to waste, or lack real-time responsiveness. This paper aims to overcome these limitations by developing a more accurate, efficient, and less wasteful automated system.

Methods

The core of the system is a machine vision approach.

  • Object Detection: The YOLOv5s model was chosen for its balance of speed and accuracy in identifying pineapple eyes.
  • 3D Localization: A depth camera (Intel RealSense D405) was used in conjunction with the YOLOv5s output to determine the precise 3D coordinates of each eye. This is a key advancement over 2D vision systems.
  • End-Effector Design & Optimization: A custom eye removal end-effector with a claw designed to match the eye's shape was developed. Its linkage lengths were optimized using ADAMS simulation software. The simulation focused on minimizing torque and contact force, leading to an optimal rod length of 23 mm for improved mechanical stability and efficiency.
  • Motion Control: An XZ two-axis sliding table, controlled by a microcomputer (Jetson Nano), precisely positions the end-effector based on the 3D eye coordinates. A stepper motor handles pineapple rotation.
  • Coordinate Transformation: A detailed process is described for transforming pixel coordinates from the camera to world coordinates, enabling accurate 3D positioning.

Datasets

  • Training Data: Images of 20 "Bali" variety pineapples were collected (1300 original images). Data augmentation techniques (brightness, contrast, rotation, scaling, noise) were applied to create a dataset of 2000 images for training.
  • Annotation: Images were annotated using LabelImg software, and the data was converted to the TXT format required by YOLOv5.
  • Testing: The trained YOLOv5s model was evaluated on test sets and demonstrated robust performance across three pineapple varieties: Bali, Golden Diamond, and Golden Pineapple.

Key Insights and Ideas

  • Depth Camera is Crucial for 3D Localization: The paper highlights that simply using 2D image data is insufficient for precise eye removal. Integrating depth information from a camera is essential for accurate 3D positioning, which directly impacts removal success.
  • YOLOv5s Strikes a Balance: While YOLOv5x and YOLOv5l offered slightly higher accuracy, YOLOv5s provided the best trade-off between detection speed, accuracy, and a low false negative rate, making it ideal for real-time industrial applications.
  • Simulation-Driven End-Effector Optimization: Using ADAMS for dynamic simulation allowed for the optimization of the end-effector's mechanical design, specifically the rod length, to reduce torque and improve stability. This is a practical application of simulation in robotics.
  • Profile-Mimicking End-Effector: The design of the end-effector's claw to mimic the eye's profile is a clever approach to improve grip and minimize damage to the surrounding fruit flesh.

Key Results

  • Detection Performance: YOLOv5s achieved high performance with >98% precision and recall, and an average detection mean (mAP) above 98%. The average detection time per image was 0.013 seconds.
  • Removal Performance: The system achieved an average complete removal rate of 88.5%, an incomplete removal rate of 6.6%, and a missed detection rate of 4.9%.
  • Processing Speed: The average removal time per pineapple was 156.7 seconds.
  • Comparison: The proposed system offers high automation, low pulp waste, and good real-time performance compared to traditional mechanical, manual, and other machine vision methods.

Limitations and Future Work

  • Detection Accuracy: The paper notes that detection accuracy decreased for blurred or shallow-edge fruit eyes, leading to incomplete removal.
  • End-Effector Issues: The designed end-effector occasionally caused uneven cutting or excessive compression of the pulp.
  • Future Work: The authors suggest optimizing the recognition algorithm for edge eyes and further refining the blade angle and material composition of the eye-removing gripper to enhance removal efficacy and operational efficiency.

Summary updated

Abstract

The removal of pineapple eyes is a crucial step in pineapple processing. However, their irregularly distributed spiral arrangement presents a dual challenge for positioning accuracy and automated removal by the end-effector. In order to solve this problem, a pineapple eye removal device based on machine vision was designed. The device comprises a clamping mechanism, an eye removal end-effector, an XZ two-axis sliding table, a depth camera, and a control system. Taking the eye removal time and rotational angular velocity as variables, the relationship between the rod length of the prime mover and the contact force and gear torque during the eye removal process was simulated and analyzed using ADAMS (2020) software. Based on these simulations, the optimal length of the prime mover for the end-effector was determined to be 23.00 mm. The performance of various YOLOv5 models was compared in terms of accuracy, recall rate, mean detection error, and detection time. The YOLOv5s model was chosen for real-time pineapple eye detection, and the eye’s position was determined through coordinate transformation. The control system then actuated the XZ two-axis sliding table to position the eye removal end-effector for effective removal. The results indicated an average complete removal rate of 88.5%, an incomplete removal rate of 6.6%, a missed detection rate of 4.9%, and an average removal time of 156.7 s per pineapple. Compared with existing solutions, this study optimized the end-effector design for pineapple eye removal. Depth information was captured with a depth camera, and machine vision was combined with three-dimensional localization. These steps improved removal accuracy and increased production efficiency.
BibTeX
@inproceedings{gong2025design,
  author = {Manfeng Gong and Shuai Wang and Xingzao Ma and Hua Li and C Tu and Zhirui Guo},
  title = {{Design and Experiment of Pineapple Eye Removal Device Based on Machine Vision}},
  booktitle = {Machines},
  year = {2025},
  doi = {10.3390/machines13060479},
}
Figure