Skip to main content

Fresh and Rotten Fruit Detection Using Deep CNN and MobileNetV2

  • Conference paper
  • First Online:
Advances in IoT and Security with Computational Intelligence (ICAISA 2023)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 755))

Included in the following conference series:

  • 180 Accesses

Abstract

Accurately recognizing rotten fruits has been important, particularly in the agricultural sector. Generally, manual efforts are utilized to classify fresh and rotting fruits which can be tedious sometimes. Unlike humans, machines do not get tired from performing the same task repeatedly. This study suggested a technique for detecting flaws in fruit images, which might reduce human effort, slash manufacturing costs and save time. The rotten fruits may contaminate the good fruits if the flaws are not found within time. Therefore, to prevent the spread of rottenness, a model has been put forward. Based on the fruit images provided as input, the recommended system can identify rotten and fresh fruits. Images of oranges, bananas, and apples have been considered in this paper. Using a convolutional neural network along with max pooling and MobileNetV2 architecture, the features from the input images are collected, based on which images are subsequently classified. On a Kaggle dataset, the suggested model’s performance is evaluated, and by using MobileNetV2, it gets the greatest accuracy in training data (99.56%) and validation set (99.69%). The max pooling had a validation accuracy of 95.01% and a training accuracy of 94.97%. According to the results, the suggested CNN model can differentiate between fresh and rotten apples in an efficient manner.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 249.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Awate A, Deshmankar D, Amrutkar G, Bagul U, Sonavane S (2015) Fruit disease detection using color, texture analysis and ANN. In: 2015 international conference on green computing and internet of things (ICGCIoT), 2015, pp 970–975. https://doi.org/10.1109/ICGCIoT.2015.7380603

  2. Tripathi MK, Maktedar DD (2016) Recent machine learning based approaches for disease detection and classification of agricultural products. In: International conference on computing communication control and automation (ICCUBEA), pp 1–6. https://doi.org/10.1109/ICCUBEA.2016.7860043

  3. Gavhale KR, Gawande U, Hajari KO (2014) Unhealthy region of citrus leaf detection using image processing techniques. In: International conference for convergence for technology 2014, pp 1–6. https://doi.org/10.1109/I2CT.2014.7092035

  4. Iqbal SM, Gopal A, Sankaranarayanan PE, Nair AB (2015) Estimation of size and shape of citrus fruits using image processing for automatic grading. In: 2015 3rd international conference on signal processing, communication and networking (ICSCN), pp 1–8. https://doi.org/10.1109/ICSCN.2015.7219859

  5. Kaur M, Sharma R (2015) ANN based technique for vegetable quality detection. IOSR J Electron Commun Eng 10(5):62–70. https://doi.org/10.9790/2834-10516270

  6. Abdelsalam AM, Sayed MS (2016) Real-time defects detection system for orange citrus fruits using multi-spectral imaging. In: 2016 IEEE 59th international midwest symposium on circuits and systems (MWSCAS), pp 1–4. https://doi.org/10.1109/MWSCAS.2016.7869956

  7. Mureşan H, Oltean M (2018) Fruit recognition from images using deep learning. Acta Univ Sapientiae, Inf 10(1):26–42

    Article  Google Scholar 

  8. Bhargava A, Bansal A (2019) Automatic detection and grading of multiple fruits by machine learning. Food Anal Methods 13(3):751–761

    Article  Google Scholar 

  9. Behera SK, Rath AK, Mahapatra A, Sethy (2020) Identification, classification and grading of fruits using machine learning and computer intelligence: a review. J Ambient Intell Humaniz Comput

    Google Scholar 

  10. Basri H, Syarif I, Sukaridhoto S (2018) Faster R-CNN implementation method for multi-fruit detection using tensorflow platform. In: International electronics symposium on knowledge creation and intelligent computing (IES-KCIC)

    Google Scholar 

  11. Hossain MS, Al-Hammadi M, Muhammad G (2019) Automatic fruit classification using deep learning for industrial applications. IEEE Trans Industr Inf 15(2):1027–1034

    Article  Google Scholar 

  12. Jana S, Basak S, Parekh R (2017) Automatic fruit recognition from natural images using color and texture features. In: Devices for integrated circuit (DevIC)

    Google Scholar 

  13. Roy K, Chaudhuri SS, Pramanik S (2020) Deep learning based realtime Industrial framework for rotten and fresh fruit detection using semantic segmentation. In: Microsystem technologies

    Google Scholar 

  14. Karakaya D, Ulucan O, Turkan M (2019) A comparative analysis on fruit freshness classification. In: 2019 innovations in intelligent systems and applications conference (ASYU)

    Google Scholar 

  15. Khaing ZM, Naung Y, Htut PH (2018) Development of control system for fruit classification based on convolutional neural network. In: 2018 IEEE conference of Russian young researchers in electrical and electronic engineering (EIConRus)

    Google Scholar 

  16. Lu S, Lu Z, Aok S, Graham L (2018) Fruit classification based on six layer convolutional neural network. In: IEEE 23rd international conference on digital signal processing (DSP)

    Google Scholar 

  17. Marimuthu S, Roomi SMM (2017) Particle swarm optimized fuzzy model for the classification of banana ripeness. IEEE Sens J 17(15):4903–4915

    Article  Google Scholar 

  18. Zhang Y-D, Dong Z, Chen X, Jia W, Du S, Muhammad K, Wang S-H (2017) Image based fruit category classification by 13-layer deep convolutional neural network and data augmentation. Multimed Tools Appl 78(3):3613–3632

    Google Scholar 

  19. Abu-Saqer MM, Abu-Naser SS, Al-Shawwa MO (2020) Type of grapefruit classification using deep learning. PhilPapers, Int J Acad Inf Syst Res (IJAISR). ISSN: 2643-9026

    Google Scholar 

  20. Elsharif AA, Dheir IM, Mettleq ASA, Abu-Naser SS (2020) Potato classification using deep learning. Int J Acad Pedagog Res (IJAPR). ISSN: 2643-9603

    Google Scholar 

  21. Altaheri H, Alsulaiman M, Muhammad G (2019) Date fruit classification for robotic harvesting in a natural environment using deep learning. IEEE Access 7:117115–117133

    Article  Google Scholar 

  22. Palakodati SSS, Chirra VR, Dasari Y, Bulla S (2020) Fresh and rotten fruits classification using CNN and transfer learning. Rev d’Intell Artif 34(5):617–622

    Google Scholar 

  23. Rahman MM, Manik MMH, Islam MM, Mahmud S, Kim JH (2020) An Automated System to Limit COVID-19 Using Facial Mask Detection in Smart City Network. In: IEEE International IOT, Electronics and Mechatronics Conference (IEMTRONICS), pp 1-5. https://doi.org/10.1109/IEMTRONICS51293.2020.9216386.

  24. https://www.kaggle.com/sriramr/fruits-fresh-and-rotten-for-classification

  25. Matboli MA, Atia A (2022) Fruit disease’s identification and classification using deep learning model. In: 2nd international mobile, intelligent, and ubiquitous computing conference (MIUCC), pp 432–437. https://doi.org/10.1109/MIUCC55081.2022.9781688

  26. Gawas A, Tolia K, Gaikwad S, Deshpande K, Upadhyaya K, Jain S (2021) E-fresh: computer vision and IOT framework for fruit freshness detection. In: 2021 international conference on advances in computing, communication, and control (ICAC3), pp 1–6. https://doi.org/10.1109/ICAC353642.2021.9697306

  27. Foong CC, Meng GK, Tze LL (2021) Convolutional neural network based rotten fruit detection using ResNet50. In: 2021 IEEE 12th control and system graduate research colloquium (ICSGRC), Shah Alam, Malaysia, pp 75–80. https://doi.org/10.1109/ICSGRC53186.2021.9515280

  28. Miah MS, Tasnuva T, Islam M, Keya M, Rahman MR, Hossain SA (2021) An advanced method of identification fresh and rotten fruits using different convolutional neural networks. In: 2021 12th international conference on computing communication and networking technologies (ICCCNT), Kharagpur, India, pp 1–7. https://doi.org/10.1109/ICCCNT51525.2021.9580117

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Abhilasha Singh .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Singh, A., Gupta, R., Kumar, A. (2023). Fresh and Rotten Fruit Detection Using Deep CNN and MobileNetV2. In: Mishra, A., Gupta, D., Chetty, G. (eds) Advances in IoT and Security with Computational Intelligence. ICAISA 2023. Lecture Notes in Networks and Systems, vol 755. Springer, Singapore. https://doi.org/10.1007/978-981-99-5085-0_22

Download citation

Publish with us

Policies and ethics