Int. J. Food Properties · 2021 · Archival Paper

Weight and volume estimation of single and occluded tomatoes using machine vision

Innocent Nyalala 1 , Cedric Okinda 1 , Qi Chao 1 , Peter Mecha 1 , Tchalla Korohou 1 , Yi Zuo 1 , Samuel Nyalala 1 , Jiayu Zhang 1 , Chao Liu 1 , Kunjie Chen 1
1College of Engineering, Nanjing Agricultural University, Nanjing, China
International Journal of Food Properties (Taylor & Francis), Vol. 24, pp. 818–832

RGB and depth acquisitions capturing isolated single tomatoes alongside partially occluded two-fruit and multi-fruit clusters on a postharvest conveyor line. Separating overlapping contours via concave/convex polygon approximation lets Bayesian regularized neural networks predict fruit weight (R² = 0.971, RMSE = 1.468 g) and RBF-SVM estimate displacement volume (R² = 0.982).

Abstract

Summary

The fundamental characteristics of agricultural products are appearance, size, and weight, which affect their market value, consumer preference, and choice. Thus, food and agricultural industries seek rapid, simple, and nondestructive approaches to assess real-time measurements at the post-harvest stage before packaging for the consumer market. While sorting and grading may be performed by humans, it is unreliable, time-consuming, complicated, subjective, onerous, expensive, and easily influenced by surroundings. Therefore, an astute sorting and grading method for tomato fruit is required. We evaluated two tomato configurations on a conveyor belt: single tomatoes (no occlusion) and multi-tomatoes (partially occluded). We used polygon approximation for concave and convex point extraction algorithms to segment the occluded tomatoes. We developed seven models for regression using single-tomato image features. The Bayesian regularization artificial neural network outranked all the trained models in weight estimation with a root-mean-square error (RMSE) of 1.468 g and R² of 0.971. For volume estimation, the RBF SVM had the best performance with R² of 0.982 and RMSE of 1.2683 cm³. It is feasible to implement a proposed system as a noninvasive in-line sorting technique for tomatoes.

Figure 1

2D & 3D Shape Geometry Descriptors

Quantitative 2D and 3D shape descriptor geometry extracted from depth silhouettes, spanning principal axes, radial distances, eccentricity, and surface curvature. Seven machine learning regressors trained on these orientation-invariant cues enable automated weight and volume sorting without physical scales.
Figure 2

Polygon Contour Occlusion Splitting

Cluster segmentation workflow applying polygon approximation and concave/convex contour vertices to split touching tomatoes on moving conveyor belts. Individual fruit masks preserve reliable pixel area and depth height inputs even under partial mutual occlusion.
Quantitative Findings

Results

We solved partial tomato occlusion on moving sorting belts via polygon approximation and concave/convex contour point extraction. In addition, we benchmarked seven regression algorithms across 2D and depth features, achieving R² = 0.971 (RMSE 1.468 g) for mass via Bayesian regularization ANN. We also reached R² = 0.982 (RMSE 1.2683 cm³) for non-destructive volume prediction using RBF-SVM across isolated and clustered fruits.

Predicted versus experimentally measured tomato mass and water-displacement volume across held-out postharvest test sets. On single-tomato sorting validation, RBF-SVM attains R² = 0.982 (RMSE = 1.2683 cm³) for volume and Bayesian regularized ANN reaches R² = 0.971 (RMSE = 1.468 g) for weight.

Single & Partially Occluded Tomato Regression Results (2021)

Prediction TargetBest ModelR²RMSE
Fruit Volume (cm³)RBF Support Vector Machine (SVM)0.9821.2683 cm³
Fruit Weight (g)Bayesian Regularized ANN0.9711.468 g
Reference Formats

Citation

@article{nyalala2021occludedtomatoes,
  title={Weight and volume estimation of single and occluded tomatoes using machine vision},
  author={Nyalala, Innocent and Okinda, Cedric and Chao, Qi and Mecha, Peter and Korohou, Tchalla and Zuo, Yi and Nyalala, Samuel and Jiayu, Zhang and Liu, Chao and Chen, Kunjie},
  journal={International Journal of Food Properties},
  volume={24},
  number={1},
  pages={818--832},
  year={2021},
  doi={10.1080/10942912.2021.1933024}
}