Autonomous Tomato Harvesting System Integrating AI-Controlled Robotics in Greenhouses
Abstract
1. Introduction
Current Limitations and Proposed Research Contributions
- Lightweight and deployable segmentation pipeline
- 2.
- Tight coupling between perception and motion planning
- 3.
- Validation in a real greenhouse environment under occlusion
2. Materials and Methods
2.1. Robot Architecture and Operating Principle
2.2. The Main Components Specifications and Details for the Proposed Tomato Harvesting Robot
2.3. Procedural Workflow for Vision–Actuation Synchronization
- Frame acquisition and point cloud generation
- Tomato identification and coordinate generation
- Robotic arm motion control
- Convolutional Neural Network development
- Camera Calibration and Coordinate Transformation
- -
- When no occlusions are detected, the fruit pose is passed directly to the UR5e inverse kinematics solver, which computes a valid joint configuration for a straight-line approach.
- -
- When occlusions are present, the system generates a sequence of intermediate waypoints that redirect the trajectory around obstacles, by applying a lateral offset relative to the nearest obstacle boundary, such that the modified segment is displaced outside the exclusion zone. Each waypoint is expressed in the robot’s coordinate system and sent to the IK solver in succession. This approach preserves the accuracy and safety of the robot’s internal solver while providing external control over the global motion path.
Convolutional Neural Network Architecture and Training Protocol
2.4. Experimental Setup
- -
- Fruit detection rate—percentage of fruits correctly identified by the CNN–Watershed algorithm relative to the ground truth count.
- -
- Positioning accuracy—mean absolute error (mm) between the computed fruit coordinates and their manually measured positions.
- -
- Harvesting success rate—percentage of fruits successfully harvested.
- -
- Average harvesting time—mean time (s) required to detect, plan, and harvest a single fruit.
3. Results
3.1. Fruit Detection Performance
- Partially occluded tomatoes—fruits partially covered by leaves, stems, or adjacent fruits.
- Fully visible tomatoes—unobstructed fruits, fully visible within the image frame.
- Partially Occluded Tomatoes: Partially covered by stems, leaves, or other adjacent fruits.
- Fully Visible Tomatoes: Unobstructed and entirely visible within the image frame.
3.2. Camera Calibration and Coordinate Transformation Accuracy
3.3. Inverse Kinematics and Trajectory Planning Performance
3.4. Harvesting Performance in Greenhouse Trials
4. Discussion
Research Limitations
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Data Availability Statement
Conflicts of Interest
References
- Naito, H.; Ota, T.; Shimomoto, K.; Hosoi, F.; Fukatsu, T. Accuracy Assessment of Tomato Harvest Working Time Predictions from Panoramic Cultivation Images. Agriculture 2024, 14, 2257. [Google Scholar] [CrossRef]
- Peña, A.; Rovira-Val, M.R.; Mendoza, J.M.F. Life cycle cost analysis of tomato production in innovative urban agriculture systems. J. Clean. Prod. 2022, 367, 133037. [Google Scholar] [CrossRef]
- Sturiale, S.; Gava, O.; Gallardo, M.; Buendía Guerrero, D.; Buyuktas, D.; Aslan, G.E.; Laarif, A.; Bouslama, T.; Navarro, A.; Incrocci, L.; et al. Environmental and Economic Performance of Greenhouse Cropping in the Mediterranean Basin: Lessons Learnt from a Cross-Country Comparison. Sustainability 2024, 16, 4491. [Google Scholar] [CrossRef]
- Wang, Z.H.; Xun, Y.; Wang, Y.K.; Yang, Q.H. Review of smart robots for fruit and vegetable picking in agriculture. Int. J. Agric. Biol. Eng. 2022, 15, 33–54. [Google Scholar] [CrossRef]
- Mail, M.F.; Maja, J.M.; Marshall, M.; Cutulle, M.; Miller, G.; Barnes, E. Agricultural Harvesting Robot Concept Design and System Components: A Review. AgriEngineering 2023, 5, 777–800. [Google Scholar] [CrossRef]
- Baeten, J.; Donne, K.; Boedrij, S.; Beckers, W.; Claesen, E. Autonomous Fruit Picking Machine: A Robotic Apple Harvester, Field and Service Robotics: Results of the 6th International Conference; Springer: Berlin/Heidelberg, Germany, 2008; pp. 531–539. [Google Scholar]
- Van Henten, E.J.; Hemming, J.; Van Tuijl, B.A.J.; Kornet, J.G.; Meuleman, J.; Bontsema, J.; Van Os, E.A. An autonomous robot for harvesting cucumbers in greenhouses. Auton. Robot. 2002, 13, 241–258. [Google Scholar] [CrossRef]
- Arima, S.; Kondo, N.; Monta, M. Strawberry harvesting robot on table-top culture. In 2004 ASAE Annual Meeting; American Society of Agricultural and Biological Engineers: St. Joseph, MI, USA, 2004; p. 1. [Google Scholar]
- Arad, B.; Balendonck, J.; Barth, R.; Ben-Shahar, O.; Edan, Y.; Hellström, T.; Hemming, J.; Kurtser, P.; Ringdahl, O.; Tielen, T.; et al. Development of a sweet pepper harvesting robot. J. Field Robot. 2020, 37, 1027–1039. [Google Scholar] [CrossRef]
- Reed, J.N.; Miles, S.J.; Butler, J.; Baldwin, M.; Noble, R.A.E. Automation and emerging technologies: Automatic mushroom harvester development. J. Agric. Eng. Res. 2001, 78, 15–23. [Google Scholar] [CrossRef]
- Yamamoto, S.; Hayashi, S.; Yoshida, H.; Kobayashi, K. Development of a stationary robotic strawberry harvester with a picking mechanism that approaches the target fruit from below. Jpn. Agric. Res. Q. JARQ 2014, 48, 261–269. [Google Scholar] [CrossRef]
- SepúLveda, D.; Fernández, R.; Navas, E.; Armada, M.; González-De-Santos, P. Robotic Aubergine Harvesting Using Dual-Arm Manipulation. IEEE Access 2020, 8, 121889–121904. [Google Scholar] [CrossRef]
- Wang, L.; Zhao, B.; Fan, J.; Hu, X.; Wei, S.; Li, Y.; Zhou, Q.; Wei, C. Development of a tomato harvesting robot used in greenhouse. Int. J. Agric. Biol. Eng. 2017, 10, 140–149. [Google Scholar] [CrossRef]
- Ling, X.; Zhao, Y.; Gong, L.; Liu, C.; Wang, T. Dual-Arm Cooperation and Implementing for Robotic Harvesting Tomato Using Binocular Vision. Robot. Auton. Syst. 2019, 114, 134–143. [Google Scholar] [CrossRef]
- Anandhakrishnan, T.; Jaisakthi, S.M. Deep Convolutional Neural Networks for image based tomato leaf disease detection. Sustain. Chem. Pharm. 2022, 30, 100793. [Google Scholar] [CrossRef]
- Zhang, Q.; Liu, F.; Li, B. A heuristic tomato-bunch harvest manipulator path planning method based on a 3D-CNN-based position posture map and rapidly-exploring random tree. Comput. Electron. Agric. 2023, 213, 108183. [Google Scholar] [CrossRef]
- Li, T.; Sun, M.; He, Q.; Zhang, G.; Shi, G.; Ding, X.; Lin, S. Tomato recognition and location algorithm based on improved YOLOv5. Comput. Electron. Agric. 2023, 208, 107759. [Google Scholar] [CrossRef]
- Lin, G.; Tang, Y.; Zou, X.; Xiong, J.; Fang, Y. Color-, depth-, and shape-based 3D fruit detection. Precis. Agric. 2020, 21, 1–17. [Google Scholar] [CrossRef]
- Wada, K.; Kitamura, N.; Miyajima, R. Development of lightgun type input device for manipulator operation. In 2013 IEEE International Symposium on Industrial Electronics; IEEE: New York, NY, USA, 2013; pp. 1–5. [Google Scholar]
- Rapado-Rincon, D.; van Henten, E.J.; Kootstra, G. Development and evaluation of automated localisation and reconstruction of all fruits on tomato plants in a greenhouse based on multi-view perception and 3D multi-object tracking. Biosyst. Eng. 2023, 231, 78–91. [Google Scholar] [CrossRef]
- Sánchez-Molina, J.A.; Rodríguez, F.; Moreno, J.C.; Sánchez-Hermosilla, J.; Giménez, A. Robotics in greenhouses. Scoping review. Comput. Electron. Agric. 2024, 219, 108750. [Google Scholar] [CrossRef]
- Lin, T.; Sun, F.; Li, X.; Guo, X.; Ying, J.; Wu, H.; Li, H. A Review of Key Technologies and Recent Advances in Intelligent Fruit-Picking Robots. Horticulturae 2026, 12, 158. [Google Scholar] [CrossRef]
- Zhang, J.; Kang, N.; Qu, Q.; Zhou, L.; Zhang, H. Automatic fruit picking technology: A comprehensive review of research advances. Artif. Intell. Rev. 2024, 57, 54. [Google Scholar] [CrossRef]
- Ge, Y.; Xiong, Y.; From, P.J. Three-dimensional location methods for the vision system of strawberry-harvesting robots: Development and comparison. Precis. Agric. 2023, 24, 764–782. [Google Scholar] [CrossRef]
- Suchopár, A.; Kuře, J.; Kuřetová, B.; Hromasová, M. A Review of Integrated Approaches in Robotic Raspberry Harvesting. Agronomy 2025, 15, 2677. [Google Scholar] [CrossRef]
- Yuan, X.; Fan, X.; Jiang, Z.; Sun, X.; Dong, Z.; Du, Y.; He, J.; Ali, S.; Sun, K. CGR-YOLO: A grape leaf disease detection model based on coordinate attention and ghost convolution with receptive field expansion. Comput. Electron. Agric. 2025, 229, 109673. [Google Scholar]
- Alaaudeen, K.M.; Selvarajan, S.; Manoharan, H.; Jhaveri, R.H. Intelligent robotics harvesting system process for fruits grasping prediction. Sci. Rep. 2024, 14, 2820. [Google Scholar] [CrossRef]
- Gong, L.; Wang, W.; Wang, T.; Liu, C. Robotic harvesting of occluded fruits with a precise shape and position reconstruction approach. J. Field Robot. 2021, 39, 69–84. [Google Scholar] [CrossRef]
- Zhao, J.; Bao, W.; Mo, L.; Li, Z.; Liu, Y.; Du, J. Design of tomato picking robot detection and localization system based on deep learning neural networks algorithm of YOLOv5. Sci. Rep. 2025, 15, 6180. [Google Scholar] [CrossRef]
- Tan, Y.; Liu, X.; Zhang, J.; Wang, Y.; Hu, Y. A review of research on fruit and vegetable picking robots based on deep learning. Sensors 2025, 25, 3677. [Google Scholar] [CrossRef] [PubMed]









| Configuration | Optimizer | Post-Processing | Observations |
|---|---|---|---|
| CNN + Adam | Adam | None | Standard adaptive optimizer |
| CNN + SGD | SGD | None | Classical reference |
| CNN + Watershed + AdamW | AdamW | Watershed | Additional object separation refinement |
| Method | Accuracy% | mIoU % | Recall % | False Positives% |
|---|---|---|---|---|
| CNN + SGD | 89.7 ± 0.6 | 72.3 | 88.1 | 9.2 |
| CNN + Adam | 91.5 ± 0.4 | 74.6 | 90.4 | 8.1 |
| CNN + AdamW + Watershed | 96.9 ± 0.3 | 79.2 | 93.5 | 5.7 |
| Predicted/Actual | Tomato | Leaf | Failed Tomato | Failed Leaf | No Object |
|---|---|---|---|---|---|
| Tomato | 95.8% | 1.8% | 0.8% | 0.5% | 1.1% |
| Leaf | 1.9% | 92.4% | 1.2% | 0.9% | 1.1% |
| Failed Tomato | 0.8% | 1.5% | 91.8% | 1.7% | 1.3% |
| Failed Leaf | 0.7% | 1.1% | 1.8% | 90.5% | 1.2% |
| No Object | 0.8% | 0.7% | 1.0% | 0.9% | 96.4% |
| Metric | Value, ms | Observation |
|---|---|---|
| Mean inference time | 85.3 | Compatible with real-time operation |
| Standard deviation | 6.4 | Low temporal variability |
| Minimum/Maximum | 73.2/96.8 | Stable under variable lighting |
| Frame rate equivalent | ~11.7 FPS | Suitable for continuous video-based detection |
| Class | Precision % | Recall % | F1-Score % | mIoU % |
|---|---|---|---|---|
| Tomato | 96.8 | 95.8 | 96.3 | 80.1 |
| Leaf | 94.6 | 92.4 | 93.5 | 77.1 |
| No Object | 92.3 | 96.4 | 94.3 | 82.0 |
| Mean value | 94.6 | 94.9 | 94.7 | 79.7 |
| Subset Type | Number of Training Images | Precision % | Recall % | F1-Score % | Observations |
|---|---|---|---|---|---|
| Occluded Tomatoes | 100 | 85.4 | 82.7 | 84 | Underfitting; insufficient examples for complex occlusion patterns |
| Occluded Tomatoes | 200 | 90.1 | 88.3 | 89.2 | Improved contour learning, but errors persist in dense clusters |
| Fully Visible Tomatoes | 100 | 91.2 | 89.6 | 90.4 | Solid baseline result, but limited generalization |
| Fully Visible Tomatoes | 200 | 95.3 | 94.7 | 95 | High stability; consistent precision and sensitivity |
| Fully Visible Tomatoes | 300 | 96.9 | 96.2 | 96.5 | Saturation zone; marginal performance gains with additional data |
| Evaluation Metric | Value (Mean ± SD) (mm) | Notes |
|---|---|---|
| Positioning error (X) | 2 | Along X axis |
| Positioning error (Y) | 3 | Along Y axis |
| Positioning error (Z) | 2 | Along Z axis |
| Scenario | Mean Time per Trajectory (s) | Collision Incidents (%) |
|---|---|---|
| Direct (no occlusion) | 12 | 2 |
| With occlusion + waypoints | 21 | 15 |
| Scenario | Number of Fruits Tested | Success Rate (%) | Average Cycle Time (s) |
|---|---|---|---|
| Unobstructed fruits | 102 | 85 | 15 |
| Occluded/clustered fruits | 162 | 72 | 27 |
| Overall average | 264 | 78.5 | 19.5 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Matache, M.G.; Marin, F.B.; Persu, C.I.; Cristea, R.D.; Nenciu, F.; Atanasov, A.Z. Autonomous Tomato Harvesting System Integrating AI-Controlled Robotics in Greenhouses. Agriculture 2026, 16, 847. https://doi.org/10.3390/agriculture16080847
Matache MG, Marin FB, Persu CI, Cristea RD, Nenciu F, Atanasov AZ. Autonomous Tomato Harvesting System Integrating AI-Controlled Robotics in Greenhouses. Agriculture. 2026; 16(8):847. https://doi.org/10.3390/agriculture16080847
Chicago/Turabian StyleMatache, Mihai Gabriel, Florin Bogdan Marin, Catalin Ioan Persu, Robert Dorin Cristea, Florin Nenciu, and Atanas Z. Atanasov. 2026. "Autonomous Tomato Harvesting System Integrating AI-Controlled Robotics in Greenhouses" Agriculture 16, no. 8: 847. https://doi.org/10.3390/agriculture16080847
APA StyleMatache, M. G., Marin, F. B., Persu, C. I., Cristea, R. D., Nenciu, F., & Atanasov, A. Z. (2026). Autonomous Tomato Harvesting System Integrating AI-Controlled Robotics in Greenhouses. Agriculture, 16(8), 847. https://doi.org/10.3390/agriculture16080847

