Vol. 4 No. 3 (2025): July
RESEARCH ARTICLES

Smart Agriculture: Machine Learning And Deep Learning For Advanced Weed Detection And Crop Quality Enhancement

Y Bhagya Lakshmi
Department of Computer Science and Engineering, Annamacharya Institute of Technology and Sciences, Kadapa, Andhra Pradesh, India
Y Rakesh
Department of Computer Science and Engineering, Annamacharya Institute of Technology and Sciences, Kadapa, Andhra Pradesh, India
S Subramanyam
Department of Computer Science and Engineering, Annamacharya Institute of Technology and Sciences, Kadapa, Andhra Pradesh, India
T Hari Priya
Department of Computer Science and Engineering, Annamacharya Institute of Technology and Sciences, Kadapa, Andhra Pradesh, India
G Anusha Reddy
Department of Computer Science and Engineering, Annamacharya Institute of Technology and Sciences, Kadapa, Andhra Pradesh, India

Published 2025-04-14

Keywords

  • Agricultural automation,
  • weed detection,
  • weed classification,
  • machine learning,
  • deep learning,
  • computer vision,
  • YOLO V8
  • ...More
    Less

How to Cite

Y Bhagya Lakshmi, Y Rakesh, S Subramanyam, T Hari Priya, & G Anusha Reddy. (2025). Smart Agriculture: Machine Learning And Deep Learning For Advanced Weed Detection And Crop Quality Enhancement . International Journal of Computational Learning & Intelligence, 4(3), 529–540. https://doi.org/10.5281/zenodo.15210829

Abstract

The evolution of agricultural systems is ongoing, driven by new technologies that seek to refine traditional farming. The primary goal is to not only boost agricultural output per hectare but also to improve crop quality, all while maintaining the natural environment. Notably, weeds present a considerable threat to crops, as they deplete essential nutrients, water, and light, thus diminishing crop productivity. The uniform spraying of entire fields for weed control results in high costs and detrimental environmental impacts. To mitigate the limitations of standard weed control methods, this research proposes the use of Machine Learning (ML) and Deep Learning (DL) methods to identify and classify weeds within crops. For ML-based approaches, various statistical and texture-based features are extracted, including image moments, mean absolute deviation, and gray level co-occurrence matrix (GLCM). The YOLOv8m algorithm is utilized for weed identification, and for weed classification, features from the CottonWeedID15 and Earlycrop-weed datasets are used to train SVM, Random Forest, and ANN models, using SMOTE to balance the classes. Deep learning models, such as VGG and ConvNeXtBase, are also trained on balanced data for automated feature extraction and classification. The best ML result was a 99.5% accuracy with SVM, and the best DL result was 98% accuracy with ConvNeXt and Random Forest. This demonstrates the potential of these methods for efficient agricultural solutions

References

  1. Radoglou-Grammatikis, P., Sarigiannidis, P., Lagkas, T., & Moscholios, I. (2020). A compilation of UAV applications for precision agriculture. Computer Networks, 168, 107037.
  2. Ashraf, M., & Khan, S. (2020). Weed density classification in rice crop using computer vision. Computers and Electronics in Agriculture, 179, 105776.
  3. Lin, T.-Y., Maire, M., Belongie, S., Hays, J., Perona, P., Ramanan, D., Dollár, P., & Zitnick, C. L. (2014). Microsoft COCO: Common objects in context. In European Conference on Computer Vision (pp. 740–755). Springer.
  4. Seelan, S. K., Laguette, S., Casady, G. M., & Seielstad, G. A. (2003). Remote sensing applications for precision agriculture. Remote Sensing of Environment, 88(1–2), 157–169.
  5. Espejo-Garcia, B., Mylonas, N., Athanasakos, L., Fountas, S., & Vellidis, G. (2020). Towards weeds identification assistance through transfer learning. Computers and Electronics in Agriculture, 174, 105451.
  6. Giselsson, T. M., Jørgensen, R. N., Dyrmann, M., & Midtiby, H. S. (2017). A public image database for benchmark of plant seedling classification algorithms. arXiv preprint arXiv:1711.05458.
  7. Mujtaba. (2023). Annotated Weed Images. Kaggle. https://www.kaggle.com/datasets/mujtabad/annotated-weed-images
  8. Espejo-Garcia, B., Mylonas, N., Fountas, S., & Vellidis, G. (2021). Combining generative adversarial networks and agricultural transfer learning for weeds identification. Biosystems Engineering, 204, 57–66.
  9. Wang, A., Zhang, Y., & Zhang, G. (2019). A review on weed detection using ground-based machine vision and image processing techniques. Computers and Electronics in Agriculture, 158, 226–240.
  10. Yu, J., Wu, Y., Chen, P., Liu, Z., & Shen, L. (2019). Deep learning for image-based weed detection in turfgrass. European Journal of Agronomy, 104, 78–84.
  11. Hasan, M., Mouazen, A. M., & Hossain, M. A. (2021). A survey of deep learning techniques for weed detection from images. Computers and Electronics in Agriculture, 184, 106067.
  12. Bakhshipour, A., & Jafari, A. (2018). Evaluation of support vector machine and artificial neural networks in weed detection using shape features. Computers and Electronics in Agriculture, 145, 153–160.
  13. Kaya, A., Fidan, M., & Deveci, M. (2019). Analysis of transfer learning for deep neural network based plant classification models. Computers and Electronics in Agriculture, 158, 20–29.
  14. Zhuang, X., Wu, J., Du, Z., Zhang, J., & Wang, Z. (2022). Evaluation of different deep convolutional neural networks for detection of broadleaf weed seedlings in wheat. Pest Management Science, 78(2), 553–561.
  15. Ahmad, T., Iqbal, M., & Irfan, M. (2021). Performance of deep learning models for classifying and detecting common weeds in corn and soybean production systems. Computers and Electronics in Agriculture, 187, 106276.
  16. Chen, Z., Li, Y., Xu, M., Wang, T., & Yang, J. (2022). Performance evaluation of deep transfer learning on multi-class identification of common weed species in cotton production systems. Computers and Electronics in Agriculture, 198, 107056.
  17. Wang, X., Wang, J., & Yang, G. (2022). A deep learning approach incorporating YOLO v5 and attention mechanisms for field real-time detection of the invasive weed Solanum rostratum Dunal seedlings. Computers and Electronics in Agriculture, 198, 107001.
  18. Subeesh, A., John, J. J., & Ramesh, M. V. (2022). Deep convolutional neural network models for weed detection in polyhouse grown bell peppers. Artificial Intelligence in Agriculture, 6, 42–51.
  19. Razfar, M. R., Valipour, M., & Karimi, M. (2022). Weed detection in soybean crops using custom lightweight deep learning models. Journal of Agriculture and Food Research, 10, 100424.
  20. Yang, L., Zhang, Q., & Li, M. (2022). A comparative evaluation of convolutional neural networks, training image sizes, and deep learning optimizers for weed detection in alfalfa. Weed Technology, 36(1), 91–100.
  21. Jin, T., Luo, J., Chen, Q., & Yu, Y. (2022). Deep learning for detecting herbicide weed control spectrum in turfgrass. Plant Methods, 18(1), 112.
  22. Zhang, M., Li, S., Wang, J., & Gao, Y. (2022). SE-YOLOv5x: An optimized model based on transfer learning and visual attention mechanism for identifying and localizing weeds and vegetables. Agronomy, 12(3), 635.
  23. Reedha, S., Murugesan, K., & Vimal, S. (2022). Transformer neural network for weed and crop classification of high-resolution UAV images. Remote Sensing, 14(24), 6241.
  24. Goodfellow, I., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., & Bengio, Y. (2014). Generative adversarial nets. In Advances in Neural Information Processing Systems (Vol. 27).
  25. Lu, H., Huang, Y., Zhang, J., & Zhao, Y. (2022). Generative adversarial networks (GANs) for image augmentation in agriculture: A systematic review. Computers and Electronics in Agriculture, 196, 106898.
  26. Madapuri, R. K., & Senthil Mahesh, P. C. (2017). HBS-CRA: Scaling impact of change request towards fault proneness: Defining a heuristic and biases scale (HBS) of change request artifacts (CRA). Cluster Computing, 22(S5), 11591–11599. https://doi.org/10.1007/s10586-017-1424-0
  27. Dwaram, J. R., & Madapuri, R. K. (2022). Crop yield forecasting by long short‐term memory network with Adam optimizer and Huber loss function in Andhra Pradesh, India. Concurrency and Computation: Practice and Experience, 34(27), e7310. https://doi.org/10.1002/cpe.7310
  28. Reddy, B. S. H. (2025). Deep learning-based detection of hair and scalp diseases using CNN and image processing. Milestone Transactions on Medical Technometrics, 3(1), 145–155. https://doi.org/10.5281/zenodo.14965660
  29. Reddy, B. S. H., Venkatramana, R., & Jayasree, L. (2025). Enhancing apple fruit quality detection with augmented YOLOv3 deep learning algorithm. International Journal of Human Computations & Intelligence, 4(1), 386–396. https://doi.org/10.5281/zenodo.14998944
  30. Ahmed, S. T., Kaladevi, A. C., Shankar, A., & Alqahtani, F. (2025). Privacy Enhanced Edge-AI Healthcare Devices Authentication: A Federated Learning Approach. IEEE Transactions on Consumer Electronics.
  31. Singh, K. D., & Ahmed, S. T. (2020, July). Systematic linear word string recognition and evaluation technique. In 2020 international conference on communication and signal processing (ICCSP) (pp. 0545-0548). IEEE.
  32. Syed Thouheed Ahmed, S., Sandhya, M., & Shankar, S. (2018, August). ICT’s role in building and understanding indian telemedicine environment: A study. In Information and Communication Technology for Competitive Strategies: Proceedings of Third International Conference on ICTCS 2017 (pp. 391-397). Singapore: Springer Singapore.
  33. Sreedhar Kumar, S., Ahmed, S. T., & NishaBhai, V. B. (2019). Type of supervised text classification system for unstructured text comments using probability theory technique. International Journal of Recent Technology and Engineering (IJRTE), 8(10).
  34. Ahmed, S. T., Basha, S. M., Arumugam, S. R., & Kodabagi, M. M. (2021). Pattern Recognition: An Introduction. MileStone Research Publications.