Automatic Classification of Fruits and Vegetables: A Texture-Based Approach

  • Chapter
  • First Online:
Algorithms in Machine Learning Paradigms

Part of the book series: Studies in Computational Intelligence ((SCI,volume 870))

  • 1608 Accesses

Abstract

Fruits and Vegetables are very important food product for the daily life of the humans. Classification of fruits and vegetable is needed for every aspect of the agricultural industry. It is quite challenging to automatically classify fruits and vegetables from digital images. The task of automatic classification becomes more difficult when the image is captured from a different viewing angle. This paper proposes a complete texture-based approach for addressing the effect of viewing angle change to classify fruits and vegetables automatically. At first, a grayscale image is generated from the input color image. The grayscale version of the input image is used to extract multiple threshold values using the multilevel Otsu thresholding technique. Those threshold values are used to generate a set of binary images. The binary images pass through a border extraction process to generate the border image of every binary image. Finally, the border image is processed to calculate the fractal dimension. In parallel flow, the same grayscale image is processed to compute gray-level co-occurrence matrix based features. The fractal dimension and gray-level co-occurrence matrix based features are combined to make a feature vector for classifying the fruit and vegetable classes. Images are collected by covering the entire range of 0\(^\circ \)–360\(^\circ \) angle for each class in our dataset. In total, 1656 images of 23 classes of fruits and vegetables are used for experimentation. The maximum accuracy of the system is 98.33% with Naive Bayes classifier.

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

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
EUR 29.95
Price includes VAT (Germany)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
EUR 149.79
Price includes VAT (Germany)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
EUR 192.59
Price includes VAT (Germany)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free ship** worldwide - see info
Hardcover Book
EUR 192.59
Price includes VAT (Germany)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free ship** 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. Arivazhagan S, Shebiah RN, Nidhyanandhan SS, Ganesan L (2010) Fruit recognition using color and texture features. J Emerg Trends Comput Inf Sci 1(2):90–94

    Google Scholar 

  2. Biswas H, Hossain F (2013) Automatic vegetable recognition system. Int J Eng Sci Invent 2(4):37–41

    Google Scholar 

  3. Capizzi G, Sciuto GL, Napoli C, Tramontana E, Woźniak M (2015) Automatic classification of fruit defects based on co-occurrence matrix and neural networks. In: 2015 federated conference on computer science and information systems (FedCSIS). IEEE, pp 861–867

    Google Scholar 

  4. Chaidee S, Sugihara K (2017) Approximation of fruit skin patterns using spherical voronoi diagrams. Pattern Anal Appl 20(3):783–795

    Article  MathSciNet  Google Scholar 

  5. Chowdhury MT, Alam MS, Hasan MA, Khan MI (2013) Vegetables detection from the glossary shop for the blind. IOSR J Electr Electron 8(3):43–53

    Article  Google Scholar 

  6. Cornejo JYR, Pedrini H (2016) Automatic fruit and vegetable recognition based on centrist and color representation. In: Iberoamerican congress on pattern recognition. Springer, pp 76–83

    Google Scholar 

  7. Costa AF, Humpire-Mamani G, Traina AJM (2012) An efficient algorithm for fractal analysis of textures. In: Proceedings of the 2012 25th SIBGRAPI conference on graphics, patterns and images (SIBGRAPI). IEEE, pp 39–46

    Google Scholar 

  8. Dubey SR, Jalal A (2012) Robust approach for fruit and vegetable classification. Procedia Eng 38:3449–3453

    Article  Google Scholar 

  9. Feng J, Lin WC, Chen CT (1996) Fractional box-counting approach to fractal dimension estimation. In: Proceedings of the 13th International Conference on Pattern Recognition, vol 2. IEEE, pp 854–858

    Google Scholar 

  10. Gambardella A, Giacinto G, Migliaccio M, Montali A (2010) One-class classification for oil spill detection. Pattern Anal Appl 13(3):349–366

    Article  MathSciNet  Google Scholar 

  11. Geusebroek JM, Burghouts GJ, Smeulders AW (2005) The amsterdam library of object images. Int J Comput Vis 61(1):103–112

    Article  Google Scholar 

  12. Haidar A, Dong H, Mavridis N (2012) Image-based date fruit classification. In: Proceedings of the 2012 4th international congress on ultra modern telecommunications and control systems and workshops (ICUMT). IEEE, pp 357–363

    Google Scholar 

  13. Haralick RM, Shanmugam K et al (1973) Textural features for image classification. IEEE Trans Syst Man Cybern 6:610–621

    Google Scholar 

  14. Jana S, Parekh R (2016) Intra-class recognition of fruits using color and texture features with neural classifiers. Int J Comput Appl 148(11)

    Google Scholar 

  15. Kim Jy, Vogl M, Kim SD (2014) A code based fruit recognition method via image convertion using multiple features. In: Proceedings of the 2014 international conference on IT convergence and security (ICITCS). IEEE, pp 1–4

    Google Scholar 

  16. Kuang HL, Chan LLH, Yan H (2015) Multi-class fruit detection based on multiple color channels. In: Proceedings of the 2015 international conference on wavelet analysis and pattern recognition (ICWAPR). IEEE, pp 1–7

    Google Scholar 

  17. Liao PS, Chen TS, Chung PC et al (2001) A fast algorithm for multilevel thresholding. J Inf Sci Eng 17(5):713–727

    Google Scholar 

  18. Mandelbrot B (1967) How long is the coast of britain? Statistical self-similarity and fractional dimension. Science 156(3775):636–638

    Google Scholar 

  19. Meruliya T, Dhameliya P, Patel J, Panchal D, Kadam P, Naik S (2015) Image processing for fruit shape and texture feature extraction-review. Int J Comput Appl 129(8):30–33

    Google Scholar 

  20. Nanaa K, Rizon M, Rahman MNA, Ibrahim Y, Aziz AZA (2014) Detecting mango fruits by using randomized hough transform and backpropagation neural network. In: Proceedings of the 2014 18th international conference on information visualisation (IV). IEEE, pp 388–391

    Google Scholar 

  21. Naskar S, Bhattacharya T (2015) A fruit recognition technique using multiple features and artificial neural network. Int J Comput Appl 116(20)

    Google Scholar 

  22. Ninawe P, Pandey MS (2014) A completion on fruit recognition system using k-nearest neighbors algorithm. Int J Adv Res Comput Eng Technol (IJARCET) 3

    Google Scholar 

  23. Otsu N (1979) A threshold selection method from gray-level histograms. IEEE Trans. Syst. Man Cybern 9(1):62–66

    Article  Google Scholar 

  24. Pennington JA, Fisher RA (2009) Classification of fruits and vegetables. J Food Compos Anal 22:S23–S31

    Article  Google Scholar 

  25. Rachmawati E, Khodra ML, Supriana I (2015) Histogram based color pattern identification of multiclass fruit using feature selection. In: Proceedings of the 2015 international conference on electrical engineering and informatics (ICEEI). IEEE, pp 43–48

    Google Scholar 

  26. Rachmawati E, Khodra ML, Supriana I (2015) Toward new fruit color descriptor based on color palette. In: Proceedings of the 2015 international conference on science in information technology (ICSITech). IEEE, pp 315–320

    Google Scholar 

  27. Rocha A, Hauagge DC, Wainer J, Goldenstein S (2010) Automatic fruit and vegetable classification from images. Comput Electron Agric 70(1):96–104

    Article  Google Scholar 

  28. Ronald M, Evans M (2016) Classification of selected apple fruit varieties using naive bayes. Indian J Comput Sci Eng (IJCSE) 7(1):13–19

    MathSciNet  Google Scholar 

  29. Roomi SMM, Priya RJ, Bhumesh S, Monisha P (2012) Classification of mangoes by object features and contour modeling. In: Proceedings of the 2012 international conference on machine vision and image processing (MVIP). IEEE, pp 165–168

    Google Scholar 

  30. Seng WC, Mirisaee SH (2009) A new method for fruits recognition system. In: Proceedings of the international conference on electrical engineering and informatics, 2009. ICEEI’09, vol 1. IEEE, pp 130–134

    Google Scholar 

  31. Siddiqi I, Djeddi C, Raza A, Souici-Meslati L (2015) Automatic analysis of handwriting for gender classification. Pattern Anal Appl 18(4):887–899

    Article  MathSciNet  Google Scholar 

  32. Vogl M, Kim JY, Kim SD (2014) A fruit recognition method via image conversion optimized through evolution strategy. In: Proceedings of the 2014 IEEE 17th international conference on computational science and engineering (CSE). IEEE, pp 1497–1502

    Google Scholar 

  33. Von Koch H (1904) Sur une courbe continue sans tangente obtenue par une construction géométrique élémentaire. Norstedt & soner

    Google Scholar 

  34. Wang X, Huang W, ** C, Hu M, Ren F (2014) Fruit recognition based on multi-feature and multi-decision. In: Proceedings of the 2014 IEEE 3rd international conference on cloud computing and intelligence systems (CCIS). IEEE, pp 113–117

    Google Scholar 

  35. Zawbaa HM, Hazman M, Abbass M, Hassanien AE (2014) Automatic fruit classification using random forest algorithm. In: Proceedings of the 2014 14th international conference on hybrid intelligent systems (HIS). IEEE, pp 164–168

    Google Scholar 

  36. Zhang Y, Wu L (2012) Classification of fruits using computer vision and a multiclass support vector machine. Sensors 12(9):12,489–12,505

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Susovan Jana .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Singapore Pte Ltd.

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Jana, S., Parekh, R., Sarkar, B. (2020). Automatic Classification of Fruits and Vegetables: A Texture-Based Approach. In: Mandal, J., Mukhopadhyay, S., Dutta, P., Dasgupta, K. (eds) Algorithms in Machine Learning Paradigms. Studies in Computational Intelligence, vol 870. Springer, Singapore. https://doi.org/10.1007/978-981-15-1041-0_5

Download citation

  • DOI: https://doi.org/10.1007/978-981-15-1041-0_5

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-15-1040-3

  • Online ISBN: 978-981-15-1041-0

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics

Navigation