Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Plant Sci.

Sec. Sustainable and Intelligent Phytoprotection

Volume 16 - 2025 | doi: 10.3389/fpls.2025.1664650

This article is part of the Research TopicAutonomous Weed Control for Crop Plants, Volume IIView all 3 articles

Automated Weed Monitoring and Control: Enhancing Detection Accuracy Using a YOLOv7-AlexNet Fusion Network

Provisionally accepted
Muhammad  Faizan ZebMuhammad Faizan Zeb1Abid  IqbalAbid Iqbal2*Ghassan  HusnainGhassan Husnain3*Wisal  ZafarWisal Zafar3Ahmad  JunaidAhmad Junaid3Ali  Saeed AlzahranibAli Saeed Alzahranib2Syed Hashim Raza  BukhariSyed Hashim Raza Bukhari2Ramasamy Srinivasaga  NaiduRamasamy Srinivasaga Naidu2
  • 1Iqra National University, Peshawar, Pakistan
  • 2King Faisal University, Al Ahsa, Saudi Arabia
  • 3CECOS University of Information Technology and Emerging Sciences, Peshawar, Pakistan

The final, formatted version of the article will be published soon.

The agricultural sector is crucial to global sustainability, but it still faces challenges, particularly from weed invasions that severely compromise crop yields. Although considerable efforts have been made to address the weed problem using computer vision detection methods, the technology is still limited. Weedy sites or their crop hosts share many perceptual features, making it difficult to detect with confidence. Most weed detection methods used today suffer from several problems: the inability to distinguish crops from similar-looking weeds, inconsistent performance across weed growth stages, and sensitivity to operational constraints. Previous methods have employed models such as YOLOv5, ResNet, and Faster R-CNN, but have suffered from issues with accuracy, estimation times, and the ability to detect small weeds in dense stands. In this study, we present a hybrid deep learning system that utilizes YOLOv7 for weed detection and AlexNet for weed species classification. YOLOv7 was used due to its fast recognition capabilities and ability to discriminate with better granularity when detecting grass in dense environments. It was found that using AlexNet to classify weed species accurately increases the specificity of the system. Experimental results of the hybrid model demonstrated improvements over previous methods, achieving a precision, recall, F1 score, mAP@0.50, and mAP@0.5:0.95 of 0.80, 0.85, 0.87 0.89, and 0.50, respectively. The field test detection capability showed that AlexNet achieved precision, recall, and F1 scores of 95%, 97%, and 94%, respectively. Thus, these results indicate that the YOLOv7-AlexNet hybrid model provides both robust and efficient real-time detection and classification of weeds in agriculture. The next step is to expand the dataset to include a wider variety of weed species and environmental conditions, and to validate the developed model by deploying the YOLOv7-AlexNet hybrid model on field computers, thereby expanding its practical application in production environments.

Keywords: deep learning, YOLOv7, AlexNet architecture, precision agriculture, WeedDetection & Classification

Received: 22 Jul 2025; Accepted: 25 Sep 2025.

Copyright: © 2025 Faizan Zeb, Iqbal, Husnain, Zafar, Junaid, Alzahranib, Bukhari and Naidu. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence:
Abid Iqbal, aaiqbal@kfu.edu.sa
Ghassan Husnain, ghassan.husnain@gmail.com

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.