IDEAS home Printed from https://ideas.repec.org/a/caa/jnlrae/v71y2025i2id31-2024-rae.html
   My bibliography  Save this article

Spoilage detection of tomatoes using a convolutional neural network

Author

Listed:
  • Ninja Begum

    (Department of Food Engineering and Technology, Tezpur University, Assam, India)

  • Manuj Kumar Hazarika

    (Department of Food Engineering and Technology, Tezpur University, Assam, India)

Abstract

With the increasing productivity in agriculture, it has become extremely essential to look for an advanced technique that will help to minimise losses. Recently, deep learning has outperformed the task of recognition and classification of fruits and vegetables automatically from images, finding applicability in this study. This work, thus, attempts to develop an automatic spoilage detection CNN model for tomatoes. In this work, a deep learning-based CNN model is trained and validated on a self-prepared dataset for classifying tomatoes as edible and spoilt is proposed. The dataset consisted of 810 images, out of which 572 images were considered for training and 238 images for validation. The model is also trained iteratively with varying epoch and batch sizes to evaluate the model in giving the highest classification accuracy. The highest accuracy of 99.70% was achieved at epoch 20 and batch size 32. Further evaluating the performance of the developed model using a confusion matrix, a precision, recall and accuracy of 100%, 87% and 95%, respectively, was obtained for the spoilage detection of tomatoes. Also, on establishing Pearson's correlation between the predictive model and the sensory evaluation results, a Pearson correlation of 0.895 was obtained, showing that there is strong linear correlation between them.

Suggested Citation

  • Ninja Begum & Manuj Kumar Hazarika, 2025. "Spoilage detection of tomatoes using a convolutional neural network," Research in Agricultural Engineering, Czech Academy of Agricultural Sciences, vol. 71(2), pages 80-87.
  • Handle: RePEc:caa:jnlrae:v:71:y:2025:i:2:id:31-2024-rae
    DOI: 10.17221/31/2024-RAE
    as

    Download full text from publisher

    File URL: http://rae.agriculturejournals.cz/doi/10.17221/31/2024-RAE.html
    Download Restriction: free of charge

    File URL: http://rae.agriculturejournals.cz/doi/10.17221/31/2024-RAE.pdf
    Download Restriction: free of charge

    File URL: https://libkey.io/10.17221/31/2024-RAE?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Alper Taner & Yeşim Benal Öztekin & Hüseyin Duran, 2021. "Performance Analysis of Deep Learning CNN Models for Variety Classification in Hazelnut," Sustainability, MDPI, vol. 13(12), pages 1-13, June.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Seoro Lee & Jonggun Kim & Gwanjae Lee & Jiyeong Hong & Joo Hyun Bae & Kyoung Jae Lim, 2021. "Prediction of Aquatic Ecosystem Health Indices through Machine Learning Models Using the WGAN-Based Data Augmentation Method," Sustainability, MDPI, vol. 13(18), pages 1-20, September.
    2. Haixia Sun & Shujuan Zhang & Rui Ren & Liyang Su, 2022. "Maturity Classification of “Hupingzao” Jujubes with an Imbalanced Dataset Based on Improved MobileNet V2," Agriculture, MDPI, vol. 12(9), pages 1-16, August.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:caa:jnlrae:v:71:y:2025:i:2:id:31-2024-rae. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Ivo Andrle (email available below). General contact details of provider: https://www.cazv.cz/en/home/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.