Tomato volume and mass estimation using computer vision and machine learning algorithms: Cherry tomato model
Summary
A prediction method of mass and volume of cherry tomato based on a computer vision system and machine learning algorithms were introduced in this study. The relation between tomato mass and volume was established as M = 1.312 V^0.9551, and was used to estimate mass on a test dataset at an R² of 0.9824 and RMSE of 15.84 g. Depth images of tomatoes at different orientations were acquired and features extracted by image processing techniques. Five regression prediction models based on 2D and 3D image features were developed. The RBF-SVM outperformed all explored models with an accuracy of 0.9706 (only 2D features) and 0.9694 (all features) in mass and volume estimation respectively. The model predicted mass or volume can then be applied to the established mass-volume power function. This introduced system can be applied as a non-destructive, accurate and consistent technique to in-line sorting and grading of cherry tomatoes based on mass, volume or density.
Depth Feature Extraction Pipeline
Results
We established the physical mass-volume power relationship M = 1.312 V⁰·⁹⁵⁵¹ calibrated on test samples at R² = 0.9824 (RMSE = 15.84 g). In addition, we evaluated five machine learning regressors on multi-orientation 2D and 3D depth descriptors of cherry tomatoes. We also demonstrated RBF-SVM leads non-destructive grading at 0.9706 (mass, 2D features) and 0.9694 (volume, all features).
Cherry Tomato Mass & Volume Estimation Performance (J. Food Eng. 2019)
| Model / Relationship | Input Features | Performance Metric |
|---|---|---|
| RBF-SVM (Mass) | 2D geometric descriptors | 97.06% prediction accuracy |
| RBF-SVM (Volume) | Combined 2D + 3D depth cues | 96.94% prediction accuracy |
| Allometric Power Law | M = 1.312 · V⁰·⁹⁵⁵¹ | R² = 0.9824 (RMSE = 15.84 g) |
Citation
@article{nyalala2019tomato,
title={Tomato volume and mass estimation using computer vision and machine learning algorithms: Cherry tomato model},
author={Nyalala, Innocent and Okinda, Cedric and Nyalala, Luke and Makange, Nelson and Chao, Qi and Liu, Chao and Yousaf, Khurram and Chen, Kunjie},
journal={Journal of Food Engineering},
volume={263},
pages={288--298},
year={2019},
doi={10.1016/j.jfoodeng.2019.07.012},
publisher={Elsevier}
}