J. Food Engineering · 2019 · Archival Paper

Tomato volume and mass estimation using computer vision and machine learning algorithms: Cherry tomato model

Innocent Nyalala 1 , Cedric Okinda 1 , Luke Nyalala 1 , Nelson Richard Makange 1 , Qi Chao 1 , Chao Liu 1 , Khurram Yousaf 1 , Kunjie Chen 1
1College of Engineering, Nanjing Agricultural University, Nanjing, China
Journal of Food Engineering (Elsevier), Vol. 263, pp. 288–298

Overhead depth imaging station positioned at a calibrated 0.7 m sensor height to capture multi-orientation cherry tomato silhouettes (Journal of Food Engineering 2019). Non-contact depth features drive RBF-SVM mass (97.06%) and volume (96.94%) estimators calibrated via M = 1.312 V^0.9551 (178+ citations).

Abstract

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.

Figure 1

Depth Feature Extraction Pipeline

End-to-end computer vision workflow from raw Kinect depth frames and background segmentation through orientation-aware 2D/3D descriptor extraction across five machine learning regressors (Journal of Food Engineering 2019). RBF-SVM achieves 97.06% prediction accuracy on mass using 2D features and 96.94% on volume using combined 2D + 3D descriptors.
Quantitative Findings

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).

Empirical allometric power-law calibration (M = 1.312 V⁰·⁹⁵⁵¹) linking cherry tomato volume to fruit mass on held-out postharvest samples. The calibrated relationship transfers vision-estimated volumes directly into weight predictions at R² = 0.9824 (RMSE = 15.84 g) for inline density grading.

Cherry Tomato Mass & Volume Estimation Performance (J. Food Eng. 2019)

Model / RelationshipInput FeaturesPerformance Metric
RBF-SVM (Mass)2D geometric descriptors97.06% prediction accuracy
RBF-SVM (Volume)Combined 2D + 3D depth cues96.94% prediction accuracy
Allometric Power LawM = 1.312 · V⁰·⁹⁵⁵¹R² = 0.9824 (RMSE = 15.84 g)
Reference Formats

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}
}