Abstract
Laser weeding offers a sustainable, chemical-free alternative for agricultural weed control. However, current computer vision models typically focus on bounding box detection, which often fails to pinpoint the precise stem location necessary for effective thermal destruction. This paper introduces an end-to-end deep learning pipeline and the first specialized Weed Stem Detection (WSD) dataset. By augmenting a YOLOv7 architecture with a dedicated stem regression head and a semi-supervised learning framework, the proposed system reduces localization error significantly. Experimental results demonstrate a 6.7% increase in weeding accuracy and a 32.3% reduction in energy consumption compared to traditional detection-based methods.
Introduction
Traditional weed management relies heavily on chemical herbicides or mechanical intervention, both of which carry significant environmental and labor costs. Laser weeding has emerged as a promising "clean" alternative, utilizing high-energy beams to neutralize weeds thermally. The efficacy of this method depends entirely on hitting the "kill point"—the stem or root—rather than the leaves.
Most existing object detection models are optimized for Mean Average Precision (mAP) based on bounding boxes. However, the geometric center of a bounding box rarely coincides with the weed's actual stem. This discrepancy leads to wasted energy and surviving weeds. This research addresses the challenge of precise weed stem localization to enable efficient robotic weeding.
The Weed Stem Detection (WSD) Dataset
To facilitate research in this area, the authors developed the WSD dataset, the first of its kind to provide human-annotated stem coordinates.
- Scale: 7,161 high-resolution images (2048x2048) featuring 11,151 weed instances.
- Diversity: Includes maize, soybean, and mungbean seedlings alongside various weed species.
- Precision: Each annotation includes both a bounding box and the exact $(x, y)$ coordinate of the stem, enabling the training of models for precise robotic intervention.
Methodology
The proposed system integrates detection and localization into a single end-to-end architecture through three primary innovations:
- Stem Regression Head: A coordinate regression branch was added to the YOLOv7 backbone. While standard heads predict bounding boxes, this branch specifically targets the stem coordinates.
- Multi-Task Loss: The model is trained using a joint loss function that balances classification accuracy, bounding box regression, and the Euclidean distance (MSE) between predicted and ground-truth stem locations.
- Semi-Supervised Learning (SSL) with a "Weed Bank": To overcome annotation scarcity, a teacher-student framework was employed. A "Weed Bank" of labeled embeddings was used to filter pseudo-labels via cosine similarity, ensuring that only high-confidence predictions were used to train the student model.
Key Insights: Beyond mAP
A critical finding of this study is that mAP is an insufficient metric for laser weeding. As shown in the figure below, a model can achieve high mAP by accurately bounding the leaves while failing to locate the stem. The authors advocate for using Euclidean Distance (Dist) as the primary performance indicator.
Furthermore, the study noted that anchor-based models like YOLOv7 provided more stable stem predictions than newer anchor-free models (e.g., YOLOv8), which exhibited significant "drift" in point localization due to the lack of grid-based constraints.
Results and Impact
The integration of the stem regression head reduced localization error from 4.33 pixels (using the bbox center) to 2.48 pixels. With the full SSL pipeline, this error was further minimized to 2.15 pixels.
In simulated environments, these improvements translated to a 6.7% increase in weeding accuracy and a 32.3% reduction in energy usage. Crucially, the model maintained a 0% false positive rate for crops, ensuring no accidental damage to valuable seedlings.
Conclusion
This work provides a robust foundation for intelligent laser weeding by shifting the focus from general detection to precise localization. While the results are promising, future research will aim to expand the WSD dataset to more crop species and explore temporal consistency in video-based tracking for moving robotic platforms.
Summary updated