Skip to main content

Apple Spots and Defects Detection Based on Machine Vision, Fuzzy Systems, and Improved Gray Wolf Optimization Algorithm

  • Chapter
  • First Online:
Metaheuristics and Optimization in Computer and Electrical Engineering

Abstract

One of the most important agricultural products that are produced in Iran and has a very high use is the apple-tree, which unfortunately sometimes suffers due to the existence of defects and surface defects. The quality control of apple trees before their export is of special importance as a strategic product in the country. Machine vision is one of the new methods in the automatic classification of apple trees, whose algorithms include three stages cutting the image of the apple from the background, extracting the image, and finally examining the presence of defects in the cut image of the apple. In the existing methods for apple-tree image segmentation, assuming that the background of the image is known in advance, apple-tree segmentation is easily done with the help of simple thresholding algorithms. Various methods in the field of image processing and machine vision have been presented for the quality control of this pure product based on image processing and machine vision, each of which has its advantages and disadvantages. Soft calculations were done to detect apple tree defects. The main goal of this chapter is to design a suitable system for detecting surface defects in apple trees. To analyze and check the accuracy of the proposed system, the above-mentioned parameters were applied to COFILAB database images with 100 images. The efficiency of the proposed method was evaluated by comparing it with two high-efficiency methods based on three measurement parameters. The results indicated that using the proposed method with an 87% correct detection rate compared to the SVM-PSO method with 80% and Features of Color with 84%, has improved the efficiency of the system.

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 139.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 179.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

References

  1. Shahin M et al (2002) Apple classification based on surface bruises using image processing and neural networks. Trans ASAE 45(5):1619

    Google Scholar 

  2. Cheng X et al (2003) Nir/MIR dual–sensor machine vision system for online apple stem–end/calyx recognition. Trans ASAE 46(2):551

    Article  Google Scholar 

  3. Kavdır I, Guyer D (2004) Comparison of artificial neural networks and statistical classifiers in apple sorting using textural features. Biosys Eng 89(3):331–344

    Article  Google Scholar 

  4. Unay D et al (2011) Automatic grading of Bi-colored apples by multispectral machine vision. Comput Electron Agric 75(1):204–212

    Article  Google Scholar 

  5. Gongal A et al (2016) Apple crop-load estimation with over-the-row machine vision system. Comput Electron Agric 120:26–35

    Article  Google Scholar 

  6. Bargoti S, Underwood JP (2017) Image segmentation for fruit detection and yield estimation in apple orchards. J Field Robot 34(6):1039–1060

    Article  Google Scholar 

  7. Keresztes JC, Goodarzi M, Saeys W (2016) Real-time pixel based early apple bruise detection using short wave infrared hyperspectral imaging in combination with calibration and glare correction techniques. Food Control 66:215–226

    Article  Google Scholar 

  8. Dave VA et al (2015) Liquid level and cap closure united inspection using image processing. Int J 1:62–68

    Google Scholar 

  9. Bairam U, Green PJ (2018) Melon crack identification and classification using k-means clustering for quality inspection. In: 2018 colour and visual computing symposium (CVCS), IEEE

    Google Scholar 

  10. Iglesias C, Martínez J, Taboada J (2018) Automated vision system for quality inspection of slate slabs. Comput Ind 99:119–129

    Article  Google Scholar 

  11. Schumann F, Soltwedel F, Blatt D (2017) Method for testing the reliability of error detection of an image inspection method, Google Patents

    Google Scholar 

  12. Francis F (1980) Color quality evaluation of horticultural crops. HortScience 15:58–59

    Article  Google Scholar 

  13. Huang S-H, Pan Y-C (2015) Automated visual inspection in the semiconductor industry: a survey. Comput Ind 66:1–10

    Article  Google Scholar 

  14. Dave N et al (2016) PCB defect detection using image processing and embedded system. Int Res J Eng Technol (IRJET) 3(5):1897–1901

    Google Scholar 

  15. Roy SD, et al (2016) Bruise detection in apples using infrared imaging. In: 2016 9th international conference on electrical and computer engineering (ICECE), IEEE

    Google Scholar 

  16. Liu D, Sun D-W, Zeng X-A (2014) Recent advances in wavelength selection techniques for hyperspectral image processing in the food industry. Food Bioprocess Technol 7(2):307–323

    Article  Google Scholar 

  17. Davies ER (2000) Image Processing for the Food Industry. vol. 37, World Scientific, Singapore

    Google Scholar 

  18. Sun DW (2016) Computer Vision Technology for Food Quality Evaluation. Academic Press, Cambridge

    Google Scholar 

  19. Wang F et al (2018) Identification of three internal feeders from korla fragrant pears by quantitative real-time polymerase chain reaction. Mitochondrial DNA Part A 29(3):379–384

    Article  Google Scholar 

  20. Baritelle AL, Hyde GM (2001) Commodity conditioning to reduce impact bruising. Postharvest Biol Technol 21(3):331–339

    Article  Google Scholar 

  21. Jayas D, Karunakaran C (2005) Machine vision system in postharvest technology. Stewart Postharvest Rev 1(2):1–9

    Google Scholar 

  22. Wen Z, Tao Y (1999) Building a rule-based machine-vision system for defect inspection on apple sorting and packing lines. Expert Syst Appl 16(3):307–313

    Article  Google Scholar 

  23. Leemans V, Magein H, Destain MF (2000) On-line fruit grading according to external quality using machine vision. AgEng Warwick 2000-Abstract part 1-Agricultural engineering into the third millennium, pp 28–29

    Google Scholar 

  24. Blasco J, Aleixos N, Moltó E (2003) Machine vision system for automatic quality grading of fruit. Biosys Eng 85(4):415–423

    Article  Google Scholar 

  25. Leemans V, Destain M-F (2004) A real-time grading method of apples based on features extracted from defects. J Food Eng 61(1):83–89

    Article  Google Scholar 

  26. Unay D, Gosselin B (2005) Artificial neural network-based segmentation and apple grading by machine vision. In: IEEE international conference on image processing 2005, ICIP 2005, IEEE

    Google Scholar 

  27. Xiao-bo Z et al (2010) In-line detection of apple defects using three color cameras system. Comput Electron Agric 70(1):129–134

    Article  Google Scholar 

  28. Lu R (2003) Detection of bruises on apples using near–infrared hyperspectral imaging. Trans ASAE 46(2):523

    MathSciNet  Google Scholar 

  29. Lammertyn J et al (1998) Non-destructive measurement of acidity, soluble solids, and firmness of Jonagold apples using NIR-spectroscopy. Trans ASAE 41(4):1089

    Article  Google Scholar 

  30. Park B et al (1998) Near-infrared reflectance analysis for predicting beef longissimus tenderness. J Anim Sci 76(8):2115–2120

    Article  Google Scholar 

  31. Li Q, Wang M, Gu W (2002) Computer vision based system for apple surface defect detection. Comput Electron Agric 36(2–3):215–223

    Article  Google Scholar 

  32. Bulanon D et al (2004) Determining the 3-D location of the apple fruit during harvest. In: Automation technology for off-road equipment proceedings of the 2004 conference, American Society of Agricultural and Biological Engineers

    Google Scholar 

  33. Kleynen O, Leemans V, Destain M-F (2005) Development of a multi-spectral vision system for the detection of defects on apples. J Food Eng 69(1):41–49

    Article  Google Scholar 

  34. Dubey SR, Jalal AS (2012) Detection and classification of apple fruit diseases using complete local binary patterns. In: 2012 third international conference on computer and communication technology, IEEE

    Google Scholar 

  35. Silwal A, Gongal A, Karkee M (2014) Apple identification in field environment with over the row machine vision system. Agric Eng Int CIGR J 16(4):66–75

    Google Scholar 

  36. Sofu M et al (2016) Design of an automatic apple sorting system using machine vision. Comput Electron Agric 127:395–405

    Article  Google Scholar 

  37. Xin D et al (2018) Development of on line automatic separation device for apple and sleeve. In: AIP conference proceedings, AIP Publishing

    Google Scholar 

  38. Singh S, Singh NP (2019) Machine learning-based classification of good and rotten apple. In: Recent trends in communication, computing, and electronics, Springer, Cham, pp 377–386

    Google Scholar 

  39. Abazari A, Monsef H, Wu B (2018) Load frequency control by de-loaded wind farm using the optimal fuzzy-based PID droop controller. IET Renewable Power Generation

    Google Scholar 

  40. Bai X et al (2017) A fuzzy clustering segmentation method based on neighborhood grayscale information for defining cucumber leaf spot disease images. Comput Electron Agric 136:157–165

    Article  Google Scholar 

  41. De Silva CW (2018) Intelligent Control: Fuzzy Logic Applications. CRC Press, Boca Raton

    Google Scholar 

  42. Jain LC, Kandel A, Teodorescu HNL (2017) Fuzzy and Neuro-Fuzzy Systems in Medicine. CRC Press, Boca Raton

    Google Scholar 

  43. Abdullah-Al-Wadud M et al (2007) A dynamic histogram equalization for image contrast enhancement. IEEE Trans Consum Electron 53(2):593–600

    Google Scholar 

  44. García-Lamont F, et al (2018) Contrast enhancement of RGB color images by histogram equalization of color vectors’ intensities. In: international conference on intelligent computing, Springer, Cham

    Google Scholar 

  45. Huang S-C, Cheng F-C, Chiu Y-S (2013) Efficient contrast enhancement using adaptive gamma correction with weighting distribution. IEEE Trans Image Process 22(3):1032–1041

    Article  MathSciNet  MATH  Google Scholar 

  46. COFILAB. 2019. www.cofilab.com

  47. Huang Q (2018) Application of SVM algorithm for particle swarm optimization in apple image segmentation. In: 2015 international conference on computational science and engineering, Atlantis Press

    Google Scholar 

  48. Ji Y et al (2018) Apple grading method based on features of color and defect. In: 2018 37th Chinese control conference (CCC), IEEE

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Mohammad Worya Khordehbinan .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

de Oliveira, G.G., Moghadamnia, E., Radfar, R., Khordehbinan, M.W., Sabzalian, M.H., Meqdad, M.N. (2023). Apple Spots and Defects Detection Based on Machine Vision, Fuzzy Systems, and Improved Gray Wolf Optimization Algorithm. In: Razmjooy, N., Ghadimi, N., Rajinikanth, V. (eds) Metaheuristics and Optimization in Computer and Electrical Engineering. Lecture Notes in Electrical Engineering, vol 1077. Springer, Cham. https://doi.org/10.1007/978-3-031-42685-8_4

Download citation

Publish with us

Policies and ethics