Development of a weed detection system using machine learning and neural network algorithms

Authors

DOI:

https://doi.org/10.15587/1729-4061.2021.246706

Keywords:

agriculture, weeds, machine learning, YOLOv5, segmentation, Otsu's method, classification, algorithm evaluation

Abstract

The detection of weeds at the stages of cultivation is very important for detecting and preventing plant diseases and eliminating significant crop losses, and traditional methods of performing this process require large costs and human resources, in addition to exposing workers to the risk of contamination with harmful chemicals. To solve the above tasks, also in order to save herbicides and pesticides, to obtain environmentally friendly products, a program for detecting agricultural pests using the classical K-Nearest Neighbors, Random Forest and Decision Tree algorithms, as well as YOLOv5 neural network, is proposed. After analyzing the geographical areas of the country, from the images of the collected weeds, a proprietary database with more than 1000 images for each class was formed. A brief review of the researchers' scientific papers describing the methods they developed for identifying, classifying and discriminating weeds based on machine learning algorithms, convolutional neural networks and deep learning algorithms is given. As a result of the research, a weed detection system based on the YOLOv5 architecture was developed and quality estimates of the above algorithms were obtained. According to the results of the assessment, the accuracy of weed detection by the K-Nearest Neighbors, Random Forest and Decision Tree classifiers was 83.3 %, 87.5 %, and 80 %. Due to the fact that the images of weeds of each species differ in resolution and level of illumination, the results of the neural network have corresponding indicators in the intervals of 0.82–0.92 for each class. Quantitative results obtained on real data demonstrate that the proposed approach can provide good results in classifying low-resolution images of weeds.

Supporting Agency

  • This work was supported by a grant from the Ministry of Education and Science of the Republic of Kazakhstan within the framework of project No. AP08857573

Author Biographies

Baydaulet Urmashev, Al-Farabi Kazakh National University

Professor

Department of Computer Science

Zholdas Buribayev, Al-Farabi Kazakh National University

Master

Department of Computer Science

Zhazira Amirgaliyeva, Institute of Information and Computational Technologies

Doctor of Technical Sciences, Professor

Laboratory of Artificial Intelligence and Robotics

Aisulu Ataniyazova, Al-Farabi Kazakh National University

Masters Student

Department of Computer Science

Mukhtar Zhassuzak, Al-Farabi Kazakh National University

PhD Student

Department of Computer Science

Amir Turegali, Al-Farabi Kazakh National University

Bachelor Student

Department of Computer Science

References

  1. Fawakherji, M., Youssef, A., Bloisi, D., Pretto, A., Nardi, D. (2019). Crop and Weeds Classification for Precision Agriculture Using Context-Independent Pixel-Wise Segmentation. 2019 Third IEEE International Conference on Robotic Computing (IRC). doi: https://doi.org/10.1109/irc.2019.00029
  2. Zhang, S., Huang, W., Wang, Z. (2021). Combing modified Grabcut, K-means clustering and sparse representation classification for weed recognition in wheat field. Neurocomputing, 452, 665–674. doi: https://doi.org/10.1016/j.neucom.2020.06.140
  3. Potena, C., Nardi, D., Pretto, A. (2017). Fast and Accurate Crop and Weed Identification with Summarized Train Sets for Precision Agriculture. Advances in Intelligent Systems and Computing, 105–121. doi: https://doi.org/10.1007/978-3-319-48036-7_9
  4. Di Cicco, M., Potena, C., Grisetti, G., Pretto, A. (2017). Automatic model based dataset generation for fast and accurate crop and weeds detection. 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). doi: https://doi.org/10.1109/iros.2017.8206408
  5. Lavania, S., Matey, P. S. (2015). Novel Method for Weed Classification in Maize Field Using Otsu and PCA Implementation. 2015 IEEE International Conference on Computational Intelligence & Communication Technology. doi: https://doi.org/10.1109/cict.2015.71
  6. Wu, Z., Chen, Y., Zhao, B., Kang, X., Ding, Y. (2021). Review of Weed Detection Methods Based on Computer Vision. Sensors, 21 (11), 3647. doi: https://doi.org/10.3390/s21113647
  7. Selvi, C. T., Sankara Subramanian, R. S., Ramachandran, R. (2021). Weed Detection in Agricultural fields using Deep Learning Process. 2021 7th International Conference on Advanced Computing and Communication Systems (ICACCS). doi: https://doi.org/10.1109/icaccs51430.2021.9441683
  8. Boyina, L., Sandhya, G., Vasavi, S., Koneru, L., Koushik, V. (2021). Weed Detection in Broad Leaves using Invariant U-Net Model. 2021 International Conference on Communication, Control and Information Sciences (ICCISc). doi: https://doi.org/10.1109/iccisc52257.2021.9485001
  9. Tang, J., Wang, D., Zhang, Z., He, L., Xin, J., Xu, Y. (2017). Weed identification based on K-means feature learning combined with convolutional neural network. Computers and Electronics in Agriculture, 135, 63–70. doi: https://doi.org/10.1016/j.compag.2017.01.001
  10. Luo, T., Zhao, J., Gu, Y., Zhang, S., Qiao, X., Tian, W., Han, Y. (2021). Classification of weed seeds based on visual images and deep learning. Information Processing in Agriculture. doi: https://doi.org/10.1016/j.inpa.2021.10.002
  11. Jiang, H., Zhang, C., Zhang, Z., Mao, W., Wang, D., Wang, D. (2020). Detection Method of Corn Weed Based on Mask R-CNN. Nongye Jixie Xuebao/Transactions of the Chinese Society for Agricultural Machinery, 51 (6), 220–228. doi: https://doi.org/10.6041/j.issn.1000-1298.2020.06.023
  12. Dos Santos Ferreira, A., Matte Freitas, D., Gonçalves da Silva, G., Pistori, H., Theophilo Folhes, M. (2017). Weed detection in soybean crops using ConvNets. Computers and Electronics in Agriculture, 143, 314–324. doi: https://doi.org/10.1016/j.compag.2017.10.027
  13. Wang, A., Zhang, W., Wei, X. (2019). A review on weed detection using ground-based machine vision and image processing techniques. Computers and Electronics in Agriculture, 158, 226–240. doi: https://doi.org/10.1016/j.compag.2019.02.005
  14. Ma, X., Deng, X., Qi, L., Jiang, Y., Li, H., Wang, Y., Xing, X. (2019). Fully convolutional network for rice seedling and weed image segmentation at the seedling stage in paddy fields. PLOS ONE, 14 (4), e0215676. doi: https://doi.org/10.1371/journal.pone.0215676
  15. Asad, M. H., Bais, A. (2020). Weed detection in canola fields using maximum likelihood classification and deep convolutional neural network. Information Processing in Agriculture, 7 (4), 535–545. doi: https://doi.org/10.1016/j.inpa.2019.12.002
  16. Bosilj, P., Duckett, T., Cielniak, G. (2018). Analysis of Morphology-Based Features for Classification of Crop and Weeds in Precision Agriculture. IEEE Robotics and Automation Letters, 3 (4), 2950–2956. doi: https://doi.org/10.1109/lra.2018.2848305
  17. Sarvini, T., Sneha, T., Sukanya Gowthami, G. S., Sushmitha, S., Kumaraswamy, R. (2019). Performance Comparison of Weed Detection Algorithms. 2019 International Conference on Communication and Signal Processing (ICCSP). doi: https://doi.org/10.1109/iccsp.2019.8698094
  18. Xiao, L., Ouyang, H., Fan, C., Umer, T., Poonia, R. C., Wan, S. (2020). Gesture image segmentation with Otsu’s method based on noise adaptive angle threshold. Multimedia Tools and Applications, 79 (47-48), 35619–35640. doi: https://doi.org/10.1007/s11042-019-08544-7
  19. Belgiu, M., Drăguţ, L. (2016). Random forest in remote sensing: A review of applications and future directions. ISPRS Journal of Photogrammetry and Remote Sensing, 114, 24–31. doi: https://doi.org/10.1016/j.isprsjprs.2016.01.011
  20. Starovoitov, V. V., Golub, Y. I. (2020). Comparative study of quality estimation of binary classification. Informatics, 17 (1), 87–101. doi: https://doi.org/10.37661/1816-0301-2020-17-1-87-101
  21. Thuan, D. (2021). Evolution of YOLO algorithm and YOLOv5: The state-of-the-art object detection algorithm. Information Technology Oulu University of Applied Sciences, 61. Available at: https://www.theseus.fi/bitstream/handle/10024/452552/Do_Thuan.pdf?isAllowed=y&sequence=2
  22. Xu, R., Lin, H., Lu, K., Cao, L., Liu, Y. (2021). A Forest Fire Detection System Based on Ensemble Learning. Forests, 12 (2), 217. doi: https://doi.org/10.3390/f12020217
  23. Wang, Q., Wu, B., Zhu, P., Li, P., Zuo, W., Hu, Q. (2020). ECA-Net: Efficient Channel Attention for Deep Convolutional Neural Networks. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). doi: https://doi.org/10.1109/cvpr42600.2020.01155
  24. Osorio, K., Puerto, A., Pedraza, C., Jamaica, D., Rodríguez, L. (2020). A Deep Learning Approach for Weed Detection in Lettuce Crops Using Multispectral Images. AgriEngineering, 2 (3), 471–488. doi: https://doi.org/10.3390/agriengineering2030032
  25. Ahmad, T., Ma, Y., Yahya, M., Ahmad, B., Nazir, S., Haq, A. ul. (2020). Object Detection through Modified YOLO Neural Network. Scientific Programming, 2020, 1–10. doi: https://doi.org/10.1155/2020/8403262
  26. Yeshmukhametov, A. N., Koganezawa, K., Buribayev, Z., Amirgaliyev, Y., Yamamoto, Y. (2020). Study on multi-section continuum robot wire-tension feedback control and load manipulability. Industrial Robot: The International Journal of Robotics Research and Application, 47 (6), 837–845. doi: https://doi.org/10.1108/ir-03-2020-0054
  27. Yeshmukhametov, A., Khaleel, L. A., Koganezawa, K., Yamamoto, Y., Amirgaliyev, Y., Buribayev, Z. (2020). Designing of CNC Based Agricultural Robot with a Novel Tomato Harvesting Continuum Manipulator Tool. International Journal of Mechanical Engineering and Robotics Research, 9 (6), 876–881. doi: https://doi.org/10.18178/ijmerr.9.6.876-881

Downloads

Published

2021-12-29

How to Cite

Urmashev, B., Buribayev, Z., Amirgaliyeva, Z., Ataniyazova, A., Zhassuzak, M., & Turegali, A. (2021). Development of a weed detection system using machine learning and neural network algorithms. Eastern-European Journal of Enterprise Technologies, 6(2 (114), 70–85. https://doi.org/10.15587/1729-4061.2021.246706