Skip to main content
Log in

Determining the freshness of fruits in the food industry by image classification using transfer learning

  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

Convolutional neural networks (CNNs) play a significant role in a number of computer vision applications like image classification and object detection. Past studies have focused on the application of deep neural networks and convolutional neural networks for detecting the freshness of perishable goods like fruits and vegetables. However, this study tries to explore the potential of transfer learning with respect to the CNN models in image classification of fruits rather than implementing the traditional CNN architectures. In this study, the determination of three different types of fruits and its relative freshness was classified using various architectures of classical convolutional neural networks and a residual convolutional neural network. The performance of each model of the convolutional neural network was evaluated on the given set of data. The study tried to evaluate the best performing model on image data that consisted of six different types of fruits based on their test scores. The results suggest that the freshness of fruits could be determined with high accuracy by using traditional and residual convolutional neural networks. However, the residual networks perform extremely well on the fruits dataset which was considered with a test accuracy score greater than 99%. A glimpse on the implementation of the given algorithm in the food industry was also explored. Thus, this study attempts to select the CNN model that could be applied in the food industry in complementation with other computer vision techniques like background reduction, image augmentation methods.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4

Similar content being viewed by others

References

  1. Ananthi N et al (2019) An image processing based fungus detection system for mangoes. Int J Innov Technol Explor Eng (IJITEE)

  2. Aniket H et al (2020) Fruit freshness detection using CNN approach. Int Res J Modern Eng Technol Sci

  3. Ann N (2019) Automatic classification for fruits’ types and identification of rotten ones using k-NN and SVM. Int J Online Biomed Eng (iJOE)

  4. Anuja B, Bhansal A (2018) Fruits and vegetables quality evaluation using computer vision: a review. J King Saud Univ - Comp Inform Sci

  5. Ayman E (2012) Understanding color image processing by machine vision for biological materials. IntechOpen

  6. Bennedsen BS, Peterson DL (2005) Identifying defects in images of rotating apples. Comput Electron Agric

  7. Dameshwari S, Ravindra P (2017) Defect identification and maturity detection of mango fruits using image analysis. Am J Artif Intell

  8. Dariush A, Azam B (2021) An objective method to evaluate exemplar-based inpainted images quality using Jaccard index. Multimedia Tools Appl

  9. Dariush A, Azam B, “Inpainted image quality evaluation based on saliency map features”, 5th Iranian conference on signal processing and intelligent systems (ICSPIS), 2019.

  10. David I et al (2019) A computer vision system for defect discrimination and grading in tomatoes using machine learning and image processing. Artif Intell Agric

  11. Dayanand S (2012) Identification and classification of bulk fruits images using artificial neural networks. Int J Eng Innov Technol (IJEIT)

  12. Guoxiang Z (2017) Fruit and vegetables classification system using image saliency and convolutional neural network. IEEE

  13. Hameed K et al (2018) A comprehensive review of fruit and vegetable classification techniques. Image and Vision Computing

    Book  Google Scholar 

  14. He K et al (2012) Deep residual learning for image recognition, arXiv

  15. Horea M, Mihai O (2018) Fruit recognition from images using deep learning. Acta Universitatis Sapientiae, Informatica

  16. Kalluri SR (2018) Fruits fresh and rotten for classification (version 1) [data set]. Zenodo https://doi.org/10.5281/ZENODO.4788774

  17. Ke S et al (2016) Recognition of Mould Colony on Unhulled Paddy based on computer vision using conventional machine-learning and deep learning techniques. Scientific Reports

    Google Scholar 

  18. Koyama K et al (2021) Predicting sensory evaluation of spinach freshness using machine learning model and digital images. PLoS One

  19. Krizhevsky A et al (2012) ImageNet classification with deep convolutional neural networks.

  20. Wang Lu, et al., “Detection of fruit skin defects using machine vision system”, IEEE, 2014.

  21. Mahmoud H et al (2018) A study on CNN transfer learning for image classification. Adv Comput Intell Syst

  22. Modhej N et al (2020) Pattern separation network based on the hippocampus activity for handwritten recognition. IEEE

  23. Naoshi K (2010) Automation on fruit and vegetable grading system and food traceability. Trends Food Sci Technol

  24. Ray Z et al (2017) Food supply chain management: systems, implementations, and future research. Industrial Manag Data Syst

    Google Scholar 

  25. Santi B et al (2020) Identification, classification & grading of fruits using machine learning & computer intelligence: a review. J Ambient Intell Human Comput

  26. Shiv D, Anand J, “Apple disease classification using color, texture and shape features from images”, Signal, Image and Video Processing, 2016.

  27. Simonyan K, Zisserman A (2015) Very deep convolutional networks for large-scale image recognition. ICLR

  28. Singham P et al (2015) Importance of objective and subjective measurement of food quality and their inter-relationship. Food Process Technol

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Aafreen Kazi.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Kazi, A., Panda, S.P. Determining the freshness of fruits in the food industry by image classification using transfer learning. Multimed Tools Appl 81, 7611–7624 (2022). https://doi.org/10.1007/s11042-022-12150-5

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-022-12150-5

Keywords

Navigation