Skip to main content

Advertisement

Log in

An apple image segmentation method based on a color index obtained by a genetic algorithm

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

Abstract

Harvesting and spraying robots based on machine vision have become important in modern agricultural engineering. Fast segmentation of fruit images is the main task of robotic picking and spraying in orchards. In this paper, a color index-based segmentation method for apple images was proposed. It can automatically obtain a specific color index according to the image segmentation task. This method was used to obtain color index and segmentation thresholds for segmenting apple images. The mean pixel segment accuracy, mean intersection over union, mean dice similarity coefficient, and mean segment time was 0.90, 0.81, 0.98, and 20 (ms). The result showed that this method could segment apple in orchard images effectively and fastly. It could be used in precise apple planting management. At the same time, this paper provided a systematic method to get a specific color index.

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
Fig. 5
Fig. 6
Fig. 7

Similar content being viewed by others

References

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

    Article  Google Scholar 

  2. Bargoti S, Underwood J (2017) Deep fruit detection in orchards. In: 2017 IEEE international conference on robotics and automation (ICRA), pp 3626–3633

  3. Bulanon D, Burks T, Alchanatis V (2008) Study on temporal variation in citrus canopy using thermal imaging for citrus fruit detection. Biosyst Eng 101 (2):161–171. https://doi.org/10.1016/j.biosystemseng.2008.08.002, http://www.sciencedirect.com/science/article/pii/S1537511008002420

    Article  Google Scholar 

  4. Bulanon D, Burks T, Alchanatis V (2009) Image fusion of visible and thermal images for fruit detection. Biosyst Eng 103(1):12–22. https://doi.org/10.1016/j.biosystemseng.2009.02.009, http://www.sciencedirect.com/science/article/pii/S1537511009000610

    Article  Google Scholar 

  5. Chaivivatrakul S, Dailey MN (2014) Texture-based fruit detection. Precis Agric 15(6):662–683

    Article  Google Scholar 

  6. Costa L, Nunes L, Ampatzidis Y (2020) A new visible band index (vndvi) for estimating ndvi values on rgb images utilizing genetic algorithms. Comput Electron Agric 172:105334

    Article  Google Scholar 

  7. De S, Bhattacharyya S, Dutta P (2016) Automatic magnetic resonance image segmentation by fuzzy intercluster hostility index based genetic algorithm: an application. Appl Soft Comput 47:669–683

    Article  Google Scholar 

  8. De S, Bhattacharyya S, Dutta P (2016) Au tomatic magnetic resonance image segmentation by fuzzy intercluster hostility index based genetic algorithm: An application. Appl Soft Comput 47:669–683. https://doi.org/10.1016/j.asoc.2016.05.042, http://www.sciencedirect.com/science/article/pii/S1568494616302526

    Article  Google Scholar 

  9. Deb K, Pratap A, Agarwal S, Meyarivan T (2002) A fast and elitist multiobjective genetic algorithm: Nsga-ii. IEEE Trans Evol Comput 6 (2):182–197

    Article  Google Scholar 

  10. Dong C, Tian F, Dong X, Zhao X, Li F (2017) The structure and control analysis of amr automatic harvesting robot. In: International conference on mechatronics and intelligent robotics, Springer, pp 457–463

  11. Golzarian MR, Frick RA (2011) Classification of images of wheat, ryegrass and brome grass species at early growth stages using principal component analysis. Plant Methods 7(1):28–28

    Article  Google Scholar 

  12. Gongal A, Amatya S, Karkee M, Zhang Q, Lewis K (2015) Sensors and systems for fruit detection and localization: a review. Computers & Electronics in Agriculture 116(C):8–19

    Article  Google Scholar 

  13. Gongal A, Silwal A, Amatya S, Karkee M, Zhang Q, Lewis K (2016) Apple crop-load estimation with over-the-row machine vision system. Comput Electron Agric 120:26–35. https://doi.org/10.1016/j.compag.2015.10.022, http://www.sciencedirect.com/science/article/pii/S016816991500335X

    Article  Google Scholar 

  14. Guo F, Peng H, Tang J (2016) Ge netic algorithm-based parameter selection approach to single image defogging. Inform Process Lett 116 (10):595–602. https://doi.org/10.1016/j.ipl.2016.04.013, http://www.sciencedirect.com/science/article/pii/S0020019016300618

    Article  Google Scholar 

  15. Guo F, Peng H, Tang J (2016) Genetic algorithm-based parameter selection approach to single image defogging. Inf Process Lett 116(10):595–602

    Article  Google Scholar 

  16. Huang L, He D, Yang SX (2013) Segmentation on ripe fuji apple with fuzzy 2d entropy based on 2d histogram and ga optimization. Intell Autom Soft Comput 19(3):239–251

    Article  Google Scholar 

  17. Ji W, Zhao D, Cheng F, Xu B, Zhang Y, Wang J (2012) Automatic recognition vision system guided for apple harvesting robot. Computers & Electrical Engineering 38(5):1186–1195

    Article  Google Scholar 

  18. Kim JY, Yoo SK, Jang WS, Park BE, Park W, Kim K (2017) Tooth segmentation using gaussian mixture model and genetic algorithm. Journal of Medical Imaging and Health Informatics 7(6):1271–1276

    Article  Google Scholar 

  19. Kumar M, Husian M, Upreti N, Gupta D (2010) Genetic algorithm: Review and application. Int J Inform Technol Knowl Manage 2(2):451–454

    Google Scholar 

  20. Li Q, Jia W, Sun M, Hou S, Zheng Y (2021) A novel green apple segmentation algorithm based on ensemble u-net under complex orchard environment. Comput Electron Agric 180:105900

    Article  Google Scholar 

  21. Linker R (2018) Machine learning based analysis of night-time images for yield prediction in apple orchard. Biosyst Eng 167:114–125

    Article  Google Scholar 

  22. Liu X, Zhao D, Jia W, Ji W, Sun Y (2019) A detection method for apple fruits based on color and shape features. IEEE Access 7:67923–67933

    Article  Google Scholar 

  23. Lv J, Wang Y, Xu L, Gu Y, Zou L, Yang B, Ma Z (2019) A method to obtain the near-large fruit from apple image in orchard for single-arm apple harvesting robot. Sci Hortic 257:108758

    Article  Google Scholar 

  24. Majeed Y, Zhang J, Zhang X, Fu L, Karkee M, Zhang Q, Whiting MD (2018) Apple tree trunk and branch segmentation for automatic trellis training using convolutional neural network based semantic segmentation. IFAC-PapersOnLine 51(17):75–80. 6th IFAC Conference on Bio-Robotics BIOROBOTICS 2018. https://doi.org/10.1016/j.ifacol.2018.08.064, http://www.sciencedirect.com/science/article/pii/S2405896318311807

    Article  Google Scholar 

  25. Meyer GE, Mehta T, Kocher MF, Mortensen DA, Samal AK (1998) Textural imaging and discriminant analysis for distinguishing weeds for spot spraying. Trans ASABE 41(4):1189–1197

    Article  Google Scholar 

  26. Meyer GE, Neto JC (2008) Verification of color vegetation indices for automated crop imaging applications. Comput Electron Agric 63(2):282–293

    Article  Google Scholar 

  27. Nagappan NV (2016) Noise free image restoration using hybrid filter with adaptive genetic algorithm. Computers & Electrical Engineering 54:382–392

    Article  Google Scholar 

  28. Nguyen TT, Vandevoorde K, Wouters N, Kayacan E, Baerdemaeker JGD, Saeys W (2016) De tection of red and bicoloured apples on tree with an rgb-d camera. Biosyst Eng 146:33–44. special Issue: Advances in Robotic Agriculture for Crops. https://doi.org/10.1016/j.biosystemseng.2016.01.007, http://www.sciencedirect.com/science/article/pii/S1537511016000088

    Article  Google Scholar 

  29. Nyarko EK, Vidovic I, Radocaj K, Cupec R (2018) A nearest neighbor approach for fruit recognition in rgb-d images based on detection of convex surfaces. Expert Systems With Applications 114:454–466

    Article  Google Scholar 

  30. Pothula AK, Zhang Z, Lu R Design features and bruise evaluation of an apple harvest and in-field presorting machine

  31. Sabzi S, Abbaspourgilandeh Y, Garciamateos G, Ruizcanales A, Molinamartinez JM (2018) Segmentation of apples in aerial images under sixteen different lighting conditions using color and texture for optimal irrigation. Water 10(11):1634

    Article  Google Scholar 

  32. Shen C, Bao X, Tan J, Liu S, Liu Z (2017) Two noise-robust axial scanning multi-image phase retrieval algorithms based on pauta criterion and smoothness constraint. Opt Express 25(14):16235–16249

    Article  Google Scholar 

  33. Stajnko D, Lakota M, Hočevar M (2004) Estimation of number and diameter of apple fruits in an orchard during the growing season by thermal imaging. Comput Electron Agric 42 (1):31–42. https://doi.org/10.1016/S0168-1699(03)00086-3, http://www.sciencedirect.com/science/article/pii/S0168169903000863

    Article  Google Scholar 

  34. Stein M, Bargoti S, Underwood J (2016) Image based mango fruit detection, localisation and yield estimation using multiple view geometry. Sensors 16(11):1915

    Article  Google Scholar 

  35. Tian Y, Yang G, Wang Z, Wang H, Li E, Liang Z (2019) Apple detection during different growth stages in orchards using the improved yolo-v3 model. Comput Electron Agric 157:417–426. https://doi.org/10.1016/j.compag.2019.01.012, http://www.sciencedirect.com/science/article/pii/S016816991831528X

    Article  Google Scholar 

  36. Wachs JP, Stern H, Burks TF, Alchanatis V (2010) Low and high-level visual feature-based apple detection from multi-modal images. Precis Agric 11 (6):717–735

    Article  Google Scholar 

  37. Yongsheng S, Gang L, Rui G, et al. (2009) Segmentation algorithm for green apples recognition based on k-means algorithm. Transactions of the Chinese Society for Agricultural Machinery 40(Suppl 1):100–104

    Google Scholar 

  38. Yu Y, Zhang K, Yang L, Zhang D (2019) Fruit detection for strawberry harvesting robot in non-structural environment based on mask-rcnn. Comput Electron Agric 163:104846

    Article  Google Scholar 

  39. Zhang Z, Zhang Z, Wang X, Liu H, Wang Y, Wang W (2019) Models for economic evaluation of multi-purpose apple harvest platform and software development. International Journal of Agricultural and Biological Engineering 12(1):74–83

    Article  Google Scholar 

  40. Zhang C, Zou K, Pan Y (2020) A method of apple image segmentation based on color-texture fusion feature and machine learning. Agronomy 10(7):972

    Article  Google Scholar 

  41. Zou K, Ge L, Zhang C, Yuan T, Li W (2019) Broccoli seedling segmentation based on support vector machine combined with color texture features. IEEE Access 7:168565–168574

    Article  Google Scholar 

Download references

Acknowledgements

This research was funded by the National Key Research and Development Project (2019YFB1312303) and the National Natural Science Foundation of China(31601217). The authors thank Yue Pan, Zhang Fan, Han Wang, and Qianfeng Liao for their help in revising this article.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Chunlong Zhang.

Ethics declarations

Conflict of Interests

The authors declare that they have no conficts of interest.

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

Zou, K., Ge, L., Zhou, H. et al. An apple image segmentation method based on a color index obtained by a genetic algorithm. Multimed Tools Appl 81, 8139–8153 (2022). https://doi.org/10.1007/s11042-022-11905-4

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-022-11905-4

Keywords

Navigation