Skip to main content

Learning Deep Features and Classification for Fresh or off Vegetables to Prevent Food Wastage Using Machine Learning Algorithms

  • Conference paper
  • First Online:
Intelligent Data Engineering and Analytics

Part of the book series: Smart Innovation, Systems and Technologies ((SIST,volume 266))

Abstract

In the world, a huge amount of food is produced every day for the consumption of all living organisms. However, around one-third of the food produced is wasted every day. One of the reasons for the wastage of food is the lack of knowledge among the people regarding the state of the food if it is fresh or rotten. Here, we aimed to find out a way to reduce the wastage of food caused due to the mentioned reason. We developed a tool FreshYolo which uses powerful machine learning algorithms like YOLOv4 to build a model which tells us if the vegetable is fresh or rotten. This model was also compared to another model which was built using YOLOv3 and the results showed that the model built on YOLOv4 is better than the one built on YOLOv3 as the mAp of YOLOv4(0.7863) was better than the mAp of YOLOv3(0.7433). In conclusion, our comparison between YOLOv4 and YOLOv3 shows that YOLOv4 is more suitable for our tool FreshYolo which will help the people to know if the vegetable is fresh or rotten; thus, we can reduce the amount of food being wasted across the globe.

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
Hardcover Book
USD 249.99
Price excludes VAT (USA)
  • Durable hardcover 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

Similar content being viewed by others

References

  1. Food and Agriculture Organisation of the United Nations. http://www.fao.org/food-loss-and-food-waste/flw-data)

  2. Bochkovskiy, A., Wang, C.-Y., Liao, H.-Y.: YOLOv4: optimal speed and accuracy of object detection (2020)

    Google Scholar 

  3. Redmon, J., Farhadi, A.: YOLOv3: an incremental improvement (2018)

    Google Scholar 

  4. Redmon, J., Divvala, S., Girshick, R., Farhadi, A.: You only look once: unified, real-time object detection. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 779–788, Las Vegas (2016)

    Google Scholar 

  5. Fruits & Vegetables image. https://www.kaggle.com/jorgebailon/fruits-vegetables

  6. Stock Images and .https://www.shutterstock.com/?pl=PPC_GOO_IN_BD-343967520165&cr=ec&kw=shutterstock&c3apidt=p15797996695&gclid=CjwKCAiAuoqABhAsEiwAdSkVVBzsteWbEQ5k70cbkBUwntZjNhSOHNJ4cZ9OBfmjlVfq3eLp-l0R_xoCwGEQAvD_BwE&gclsrc=aw.ds

  7. Label Image. https://github.com/tzutalin/labelImg/actions

  8. Sripad, J., Sandeep, K.P., Sathya A.R.: Optimal deep learning model to identify the development of pomegranate fruit in farms. Int. J. Innov. Technol. Explor. Eng. 9 (2020)

    Google Scholar 

  9. Panda S.K., Dwivedi M.: Minimizing food wastage using machine learning: a novel approach. In: Satapathy, S., Bhateja, V., Mohanty, J., Udgata, S. (eds) Smart Intelligent Computing and Applications. Smart Innovation, Systems and Technologies. vol. 159. Springer, Singapore (2020)

    Google Scholar 

  10. Sakai, Y, Oda, M., Ikeda, T., Barolli, L.: A vegetable category recognition system using deep neural network. In: 10th International Conference on Innovative Mobile and Internet Services in Ubiquitous Computing (IMIS, pp. 189–192, Fukuoka (2016)

    Google Scholar 

  11. Ren, S., He, K., Girshick, R., Sun, J.: Faster R-CNN: towards real-time object detection with region proposal networks. IEEE Trans. Pattern Anal. Mach. Intell. 39, 1137–1149 (2017)

    Article  Google Scholar 

  12. Wenkang, C., Shenglian, L., Binghao, L., Guo, L., Tingting, Q.: Detecting citrus in orchard environment by using improved YOLOv4. Scientific Programming 8859237 (2020)

    Google Scholar 

  13. Liu, S., Deng, W.: Very deep convolutional neural network based image classification using small training sample size. In: 3rd IAPR Asian Conference on Pattern Recognition (ACPR), pp. 730–734. Kuala Lumpur (2015)

    Google Scholar 

  14. He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778. Las Vegas (2016)

    Google Scholar 

  15. X. Du et al.: SpineNet: Learning Scale-Permuted Backbone for Recognition and Localization. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 11589–11598,Seattle, WA( 2020)

    Google Scholar 

  16. Tan, M., Le, Q.: EfficientNet: rethinking model scaling for convolutional neural networks

    Google Scholar 

  17. Xie, S., Girshick, R., Dollár, P., Tu, Z., He, K.: Aggregated residual transformations for deep neural networks. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5987–5995. Honolulu, HI (2017)

    Google Scholar 

  18. Ma, L., Ren, L., Yu-Feng.: Detection of collapsed buildings in post-earthquake remote sensing images based on the improved YOLOv3. Remote Sensing. 12 (2019)

    Google Scholar 

  19. Redmon, J., Farhadi, A.: YOLO9000: better, faster, stronger. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6517–6525. Honolulu, HI (2017)

    Google Scholar 

  20. Bhalerao V., Panda S.K., Jena A.K.: Optimization of loss function on human faces using generative adversarial networks. In: Bandyopadhyay, M., Rout, M., Chandra Satapathy, S. (eds) Machine Learning Approaches for Urban Computing. Studies in Computational Intelligence, vol 968. Springer, Singapore (2021). https://doi.org/10.1007/978-981-16-0935-0_9

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 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

Sanghi, P., Panda, S.K., Pati, C., Gantayat, P.K. (2022). Learning Deep Features and Classification for Fresh or off Vegetables to Prevent Food Wastage Using Machine Learning Algorithms. In: Satapathy, S.C., Peer, P., Tang, J., Bhateja, V., Ghosh, A. (eds) Intelligent Data Engineering and Analytics. Smart Innovation, Systems and Technologies, vol 266. Springer, Singapore. https://doi.org/10.1007/978-981-16-6624-7_44

Download citation

Publish with us

Policies and ethics