AI-Based Weed Detection and Classification Using Computer Vision
Abstrak
Modern agriculture urgently requires sustainable alternatives to broadcast herbicide use, which drives environmental harm and weed resistance. Precision weed management offers a solution but depends on accurate, real-time field perception. This research develops and validates an efficient artificial intelligence (AI) system for automated weed detection and species classification, utilizing the YOLOv8 (You Only Look Once, version 8) computer vision model to provide the necessary perceptual foundation for smart agricultural machinery. The core of our methodology is the implementation of the single-stage YOLOv8 deep learning architecture, chosen for its optimal balance of high accuracy and speed for real-time processing. To train and evaluate this model, a substantial dataset of over 20,000 high-resolution field images was curated. Images featured a primary row crop alongside multiple weed species and were captured under varied lighting and growth conditions to ensure robustness. Each image was annotated with bounding boxes and class labels (for specific weeds and crop) using fundamental Python-based tools. A critical component for model generalization was an extensive data augmentation pipeline executed using standard Python imaging libraries. This pipeline applied random geometric transformations (rotation, scaling, flipping) and photometric adjustments (brightness, contrast) to the training data, artificially expanding dataset diversity and teaching the model invariance to field variability. Advanced techniques like mosaic augmentation were also employed to enhance detection of small objects and improve contextual learning. The YOLOv8m (medium) model was trained using the PyTorch framework, initialized with pre-trained weights to leverage prior feature knowledge. Performance was rigorously evaluated on a held-out test set. The system demonstrated high efficacy, achieving a mean Average Precision (mAP) of 94.2% at a standard detection threshold. This metric confirms the model's excellent capability in both locating weeds and correctly identifying their species. Crucially, the system maintained an inference speed exceeding 120 frames per second, confirming its suitability for real-time deployment on field equipment. The success of this YOLOv8-based system carries significant implications. By providing instantaneous, species-specific weed maps, it enables a fundamental shift from blanket chemical application to targeted control. This capability directly facilitates mechanical weeding, micro-dose spraying, or other site-specific interventions. The potential reductions in herbicide volume are substantial, promising lower production costs, diminished environmental pollution, and a deceleration in the evolution of herbicide-resistant weeds. In conclusion, this research presents a practical and high-performance AI solution for a central challenge in precision agriculture. The streamlined YOLOv8 pipeline successfully translates complex visual field data into actionable intelligence for weed management. This work validates a scalable pathway to integrate robust computer vision into farming practices, directly contributing to the development of more productive, cost-effective, and ecologically sustainable agricultural systems.
Penulis (3)
Akash Karn
Ankit Singh
Shreya Dutta
Akses Cepat
- Tahun Terbit
- 2026
- Bahasa
- en
- Sumber Database
- Semantic Scholar
- DOI
- 10.70849/ijsci03012668221
- Akses
- Open Access ✓