Skip to main content
QUICK REVIEW

[Paper Review] Detection of Tomato Ripening Stages using Yolov3-tiny

Gerardo Antonio Alvarez Hernández, Juan Carlos Olguin|arXiv (Cornell University)|Feb 1, 2023
Smart Agriculture and AIAgricultural and Biological Sciences5 citations
TL;DR

This paper proposes a lightweight YOLOv3-tiny based computer vision system for automated detection and classification of tomato ripening stages in a custom dataset. Using two grid searches for hyperparameter optimization, the model achieves a 90.0% F1-score in joint localization and classification, demonstrating strong performance for real-time agricultural monitoring applications.

ABSTRACT

One of the most important agricultural products in Mexico is the tomato (Solanum lycopersicum), which occupies the 4th place national most produced product . Therefore, it is necessary to improve its production, building automatic detection system that detect, classify an keep tacks of the fruits is one way to archieve it. So, in this paper, we address the design of a computer vision system to detect tomatoes at different ripening stages. To solve the problem, we use a neural network-based model for tomato classification and detection. Specifically, we use the YOLOv3-tiny model because it is one of the lightest current deep neural networks. To train it, we perform two grid searches testing several combinations of hyperparameters. Our experiments showed an f1-score of 90.0% in the localization and classification of ripening stages in a custom dataset.

Motivation & Objective

  • To develop an automated computer vision system for detecting and classifying tomato ripening stages to improve agricultural productivity in Mexico.
  • To address the challenge of manual tracking of ripening stages in tomato farming, which is time-consuming and error-prone.
  • To evaluate the performance of a lightweight deep learning model, YOLOv3-tiny, for real-time detection and classification in agricultural settings.
  • To optimize model performance through systematic hyperparameter tuning using grid search on a custom tomato ripening dataset.

Proposed method

  • The study employs the YOLOv3-tiny object detection architecture due to its efficiency and low computational footprint, ideal for real-time applications.
  • A custom dataset of tomato images annotated with bounding boxes and ripening stage labels (e.g., green, breaker, turning, red) was collected and used for training.
  • Two separate grid searches were conducted to optimize hyperparameters, including anchor box configurations, confidence thresholds, and IoU thresholds.
  • The model was trained and evaluated using standard object detection metrics, with a focus on F1-score for both localization and classification.
  • Data augmentation techniques were applied to improve model generalization and robustness to variations in lighting and background.
  • Model performance was evaluated on a test split of the custom dataset using precision, recall, and F1-score as primary metrics.

Experimental results

Research questions

  • RQ1Can YOLOv3-tiny achieve high accuracy in classifying multiple tomato ripening stages while maintaining real-time inference speed?
  • RQ2How does hyperparameter tuning via grid search affect the detection and classification performance of YOLOv3-tiny on a custom tomato dataset?
  • RQ3What is the optimal balance between model complexity and performance for ripening stage detection in agricultural applications?
  • RQ4To what extent does data augmentation improve the robustness of the YOLOv3-tiny model on real-world tomato image variations?

Key findings

  • The YOLOv3-tiny model achieved a 90.0% F1-score in joint localization and classification of tomato ripening stages on the custom dataset.
  • The use of two grid searches for hyperparameter optimization significantly improved model performance, indicating the importance of systematic tuning.
  • The lightweight architecture of YOLOv3-tiny enables real-time inference, making it suitable for deployment in field-based agricultural monitoring systems.
  • The model demonstrated strong generalization capabilities, as evidenced by consistent performance across different ripening stages despite visual variability in the dataset.
  • The results confirm that YOLOv3-tiny is a viable and effective solution for automated tomato ripening stage detection in resource-constrained environments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.