4.1. Ablation Experiments of Weed Detection Model
To further verify the effectiveness of each improved module of the proposed weed detection model, this paper conducted ablation experiments on the proposed weed detection model under the same dataset division, input size, and training strategies, to respectively study the impacts of the MobileNetV3 lightweight backbone network, CBAM attention module, and Shape-IoU loss function on the detection accuracy, model complexity, and model compactness of the model. The experimental results are shown in
Table 3.
It can be seen from
Table 3 that introducing MobileNetV3 alone reduced the number of parameters from 3.00 M to 1.52 M and decreased FLOPs from 8.1 G to 4.1 G, corresponding to reductions of 49.3% and 49.4%, respectively. However, the detection accuracy did not improve after using MobileNetV3 alone. The mAP@0.5 slightly decreased from 92.1% to 92.0%, and mAP@0.5:0.95 decreased from 62.3% to 62.0%. Precision and recall also showed slight decreases. This result indicates that MobileNetV3 mainly contributes to reducing model complexity and improving model compactness, rather than directly improving detection accuracy.
After adding CBAM alone to the YOLOv8n baseline, mAP@0.5 and mAP@0.5:0.95 increased to 93.0% and 63.1%, respectively, while precision and recall also increased to 91.8% and 89.2%. This suggests that CBAM helps enhance weed-related feature responses and suppress part of the background interference in close-range agricultural images. After replacing the original bounding-box regression loss with Shape-IoU, mAP@0.5 and mAP@0.5:0.95 increased to 92.9% and 63.5%, respectively, while Params and FLOPs remained unchanged. This indicates that Shape-IoU mainly improves bounding-box regression during training without increasing the inference-stage model complexity.
When MobileNetV3, CBAM, and Shape-IoU were introduced together, MCS-YOLOv8 achieved a mAP@0.5 of 94.1% and mAP@0.5:0.95 of 65.0%, which were 2.0 and 2.7 percentage points higher than those of the YOLOv8n baseline. Meanwhile, the number of parameters decreased from 3.00 M to 1.60 M, and FLOPs decreased from 8.1 G to 4.3 G. These results show that the combined model obtains a better trade-off between detection accuracy and model complexity under the current dataset. It should be noted that the observed improvements were based on the current experimental setting, and the interaction effects among all module combinations still require further analysis in future work.
It can be seen from
Table 4 that under the premise of unchanged network structure, training parameters, and dataset division, the Params and FLOPs corresponding to each bounding box loss function were basically consistent, indicating that this experiment reduced the influence of model structure changes on the comparison. Compared with GIoU, DIoU and CIoU, Shape-IoU achieved relatively higher results in both mAP@0.5 and mAP@0.5:0.95, as well as precision and recall. Among them, mAP@0.5:0.95 was 0.6 percentage points higher than CIoU, indicating that the bounding box regression of the model for weed targets with irregular shapes was also improved after introducing shape constraints. Although the improvement was not large, Shape-IoU provided a modest but consistent improvement in bounding-box localization accuracy under the current experimental setting.
4.2. Performance Comparison and Edge-Side Inference Analysis of Weed Detection Models
To further verify the comprehensive performance of the proposed MCS-YOLOv8 in weed detection tasks, this paper selected typical object detection models such as Faster R-CNN, SSD, YOLOv5s, YOLOv8n, YOLOv8s, YOLOv8m, YOLOv9-tiny, YOLOv10n, and RT-DETR-L to conduct comparative experiments [
25,
26,
27,
28,
29]. Among them, YOLOv8n is the baseline model of the improved model in this paper, which was used to evaluate the differences between the proposed MCS-YOLOv8 and traditional detection models, YOLO series lightweight models, and larger-scale detection models [
27,
28]. This paper adopted training and testing methods under the same dataset division, input size, and training strategies to ensure comparability of the experimental results [
29]. For fairness, all detection models were trained and evaluated using the same training, validation, and test split, with the input image size fixed at 640 × 640 pixels. The training epoch number, batch size, optimizer, initial learning rate, momentum, and weight decay were kept consistent with the settings described in
Section 3.3. The same data augmentation strategy and evaluation metrics were also used for all models. For models with different architectural characteristics, only model-specific default configuration items that were necessary for normal training were retained, while the dataset split, input resolution, training schedule, and evaluation protocol were kept aligned.
The mAP@0.5, mAP@0.5:0.95, number of parameters, FLOPs, and platform-specific inference frame rates were used as the main evaluation indicators to evaluate the comprehensive performance of different models from three aspects: detection accuracy, model complexity, and inference efficiency. To avoid ambiguity between desktop offline inference and edge-side deployment speed, the FPS results in
Table 5 are reported separately for the RTX 4060 desktop GPU and the EAT230 embedded AI edge controller.
It should be noted that the compared models in
Table 5 are not all lightweight detectors. Faster R-CNN and SSD are included as representative traditional detection models, while YOLOv5s, YOLOv8n, YOLOv9-tiny, and YOLOv10n are used as lightweight or compact detection baselines. YOLOv8s, YOLOv8m, and RT-DETR-L are further included as larger-scale reference models. Therefore,
Table 4 is intended to provide a comprehensive comparison among traditional detectors, lightweight YOLO-series models, and larger-scale detectors, rather than comparing only lightweight architectures.
Since the main objective of MCS-YOLOv8 is lightweight weed detection, the comparison with compact models such as YOLOv8n, YOLOv9-tiny, and YOLOv10n is emphasized in the following analysis.
As shown in
Table 5, the desktop GPU FPS and edge-device FPS are reported separately. On the RTX 4060 platform, MCS-YOLOv8 achieved 125 FPS, which was lower than YOLOv8n, YOLOv9-tiny, and YOLOv10n, but its mAP@0.5 and mAP@0.5:0.95 were higher than these compact models. On the EAT230 edge device, MCS-YOLOv8 achieved 51.0 FPS, slightly lower than YOLOv8n, but it reduced the number of parameters and FLOPs while maintaining competitive edge-side inference speed.
Compared with larger-scale models such as YOLOv8s, YOLOv8m, and RT-DETR-L, although the detection accuracy of MCS-YOLOv8 was slightly lower, its number of parameters and FLOPs were much smaller, and the inference speed was much faster. For example, the mAP@0.5 and mAP@0.5:0.95 of RT-DETR-L were 94.5% and 66.0% respectively, slightly higher than MCS-YOLOv8, but its number of parameters and FLOPs reached 32.0 M and 110.5 G, which were much higher than the 1.6 M and 4.3 G of MCS-YOLOv8. Overall, MCS-YOLOv8 does not simply pursue the highest detection accuracy, but achieves a better balance between detection accuracy, model complexity, and inference efficiency, which indicates its potential for edge-side weed detection modules in resource-constrained agricultural perception scenarios.
The comparison mainly includes representative general-purpose detectors and recent YOLO/transformer-based object detection models. In addition to these general detection models, related studies have also explored binocular vision-based ranging and localization methods in agricultural or UAV scenarios [
30], as well as weed-specific lightweight detection models such as AVGS-YOLO for cotton weed detection in field environments [
31]. However, these methods are not directly included in the current comparison because of differences in task objectives, implementation settings, dataset sources, and target categories. In this study, the comparative experiments focused on evaluating the proposed MCS-YOLOv8 under the same dataset division, input size, and training strategy, and cross-dataset evaluation with more weed-specific detection models will be considered in future work.
To further analyze the deployment efficiency of the baseline YOLOv8n and the proposed MCS-YOLOv8, more detailed latency, model size, and memory usage results on the RTX 4060 and EAT230 platforms are reported in
Table 6.
As shown in
Table 6, MCS-YOLOv8 had fewer parameters, lower FLOPs, and a smaller model size than YOLOv8n on both test platforms. On the RTX 4060 platform, MCS-YOLOv8 achieved an average inference latency of 8.00 ms and a frame rate of 125.0 FPS. On the EAT230 embedded AI edge computing controller, it achieved an average inference latency of 19.60 ms and a frame rate of 51.0 FPS. Although its FPS was lower than that of YOLOv8n, the proposed model reduced the model size and memory usage while maintaining a relatively high detection-module inference speed. It should be emphasized that these results only evaluate the edge-side inference performance of the weed detection module, rather than the real-time performance of the complete stereo-based 3D localization pipeline.
To further analyze the detection effect of MCS-YOLOv8 on different weed categories, this paper compared the AP values of the YOLOv8n baseline model and the improved MCS-YOLOv8 on each weed category, and the results are shown in
Table 7.
It can be seen from
Table 7 that the AP of MCS-YOLOv8 improved for most weed categories. Specifically, the AP values of barnyard grass, Canada thistle, and Carolina geranium increased by 1.6, 1.8, and 1.8 percentage points, respectively, indicating that the improved model can enhance the recognition performance for some irregularly shaped weed targets. The AP of roundleaf toothcup also increased by 0.6 percentage points. However, the AP values of crabgrass and shepherd’s purse decreased slightly by 0.4 and 0.3 percentage points, respectively. This may be related to the visual similarity between these weed species, partial occlusion, or differences in sample distribution. Overall, MCS-YOLOv8 improved the overall mAP compared with YOLOv8n, but its category-level improvement was not uniform across all weed species.
Based on the results of
Table 6 and
Table 7, MCS-YOLOv8 improves the overall detection accuracy while reducing the number of parameters, FLOPs, and model size. However, its FPS was slightly lower than that of YOLOv8n on both platforms. This indicates that lower FLOPs do not necessarily lead to lower inference latency, because actual runtime is also affected by operator type, memory access, hardware acceleration, and deployment optimization. Therefore, MCS-YOLOv8 shows a better accuracy–compactness trade-off for the detection module, but the real-time capability of the complete visual perception pipeline still needs to be analyzed separately, together with RAFT-Stereo, adaptive WLS depth optimization, and 3D coordinate calculation.
The above experiments mainly evaluated the detection module from three aspects: detection accuracy, model complexity, and edge-side inference efficiency. However, the complete visual perception pipeline proposed in this paper also includes RAFT-Stereo disparity estimation, adaptive WLS depth optimization, and 3D coordinate calculation modules. Therefore, the following sections further analyze the disparity estimation quality, WLS depth optimization effect, 3D localization accuracy, and the computational cost introduced by the complete localization workflow.
4.3. Weed Detection Experiment
To further analyze the model’s attention to weed target regions, this paper obtained the weed target heatmaps of YOLOv8n and MCS-YOLOv8 at two different scales through KPCA-CAM (Class Activation Mapping method based on Kernel Principal Component Analysis), as shown in
Figure 11.
It can be seen from
Figure 11 that compared with YOLOv8n, the high-response regions of MCS-YOLOv8 were more concentrated on weed leaves and target body regions, while the responses to background regions such as soil and gravel were relatively reduced. This result indicates that the improved model tends to focus more on weed-related visual features in the displayed samples. To further support the qualitative KPCA-CAM visualization, two attention-distribution indicators were introduced for quantitative analysis. The activation area ratio (AAR) denotes the proportion of high-response pixels in the heatmap, and a lower AAR indicates a more concentrated activation region. The target attention ratio (TAR) denotes the proportion of heatmap response located inside the detected weed target region, and a higher TAR indicates that the model focuses more on weed-related regions rather than background areas.
As shown in
Table 8, compared with YOLOv8n, MCS-YOLOv8 reduced the AAR from 0.386 to 0.291 and increased the TAR from 0.624 to 0.713. This indicates that the improved model produces a more concentrated attention response and assigns a larger proportion of activation to weed target regions. The quantitative attention-distribution results are consistent with the KPCA-CAM visualization in
Figure 11, suggesting that the CBAM attention mechanism and Shape-IoU loss help the model suppress background responses and focus more on weed-related visual features.
To further provide an intuitive comparison of detection results across different weed categories, representative samples from all six weed categories were selected for visualization. As shown in
Figure 12, each row corresponds to one weed category, and the original input image, YOLOv8n detection result, and MCS-YOLOv8 detection result are arranged side by side. This layout allows the performance differences between the baseline and the proposed model to be visually compared under different weed morphologies and background conditions.
The expanded visual comparison shows that MCS-YOLOv8 generally maintains stable bounding-box localization across different weed categories. For categories such as Canada thistle, barnyard grass, roundleaf toothcup, and Carolina geranium, the proposed model shows clearer target localization or higher detection confidence in the displayed samples, which is consistent with the category-level AP improvements reported in
Table 6. For shepherd’s purse and crabgrass, the visual differences between YOLOv8n and MCS-YOLOv8 were relatively small, which is also consistent with the small category-level performance gap observed in
Table 7. Overall, the expanded visualization provides a more direct category-level comparison between the baseline and the proposed model.
4.4. Localization Experiments and Result Analysis
4.4.1. Comparison of Disparity Estimation Results Between SGBM and RAFT-Stereo
To evaluate the applicability of RAFT-Stereo as the initial disparity estimator in the close-range binocular perception of farmland weeds, this paper selected the traditional SGBM (semi-global block matching) algorithm as a representative comparison method. SGBM is widely used in binocular stereo matching and can reduce local mismatching to a certain extent through multi-directional cost aggregation. However, in close-range weed images, weed leaves are often slender and irregular, while the soil background contains gravel, shadows, and texture noise. Therefore, traditional SGBM may suffer from mismatching, holes, and local noise around weed boundaries and low-texture regions [
13].
RAFT-Stereo was adopted in this study to obtain the initial dense disparity map for subsequent depth optimization and 3D localization. It should be noted that RAFT-Stereo was used here as an initial disparity estimation module rather than an independent methodological contribution of this paper. Compared with traditional SGBM, RAFT-Stereo can make better use of correlation-volume construction and iterative update mechanisms to produce more continuous disparity results in the displayed close-range weed samples. Since subsequent 3D localization and pointing verification rely on stable target depth estimation, the quality of the initial disparity map directly affects the reliability of the following localization process. Therefore, this paper first provides a qualitative visual comparison between SGBM and RAFT-Stereo, as shown in
Figure 13.
It can be seen from
Figure 13 that the disparity maps generated by SGBM contain more local noise, holes, and discontinuous regions around the soil background and weed leaf edges. In contrast, the disparity maps generated by RAFT-Stereo are more continuous in the main weed regions, and the leaf structures and target boundaries are clearer in the displayed samples. This visual comparison indicates that RAFT-Stereo can provide a more stable initial disparity map for subsequent depth calculation and 3D coordinate solving.
However, this comparison is mainly qualitative and only uses SGBM as a representative traditional stereo matching baseline. It is not intended to serve as a complete benchmark of stereo matching methods. In addition, RAFT-Stereo may still produce disparity blurring or local mismatching around slender leaf edges, target-background junctions, and partially occluded regions. Therefore, based on the initial disparity results provided by RAFT-Stereo, the following section further introduces a detection-guided adaptive WLS depth optimization method to improve the depth stability of target regions and provide a more reliable basis for subsequent 3D localization and pointing verification.
4.4.2. Result Analysis of Detection-Guided Adaptive WLS Depth Optimization
To verify the impact of the detection-guided adaptive WLS depth optimization method on depth measurement accuracy, this paper selected typical weed samples in indoor simulated farmland to conduct close-range depth measurement experiments.
The output result of RAFT-Stereo is not a direct depth map, but a set of disparity maps. Therefore, this paper first takes the output result of RAFT-Stereo as the disparity map for detection-guided adaptive WLS optimization, and then calculates the depth value of the target region according to the camera focal length, binocular baseline, and the optimized disparity value. At three typical close-range measurement positions of 0.3 m, 0.5 m and 0.8 m respectively, 10 groups of binocular images were collected at each distance, and the depth error magnitude of the target region before and after optimization was counted. The experimental results are shown in
Table 9.
It can be seen from
Table 9 that the depth measurement errors at different distances were reduced after detection-guided adaptive WLS optimization. At the measurement distances of 300 mm, 500 mm, and 800 mm, the MAE values decreased from 12.0 mm, 25.0 mm, and 50.0 mm before optimization to 3.0 mm, 5.0 mm, and 8.0 mm after optimization, respectively. The corresponding error reduction rates were 75.0%, 80.0%, and 84.0%. Meanwhile, the RMSE, Std, and Max Error also decreased after optimization, indicating that the proposed WLS refinement can reduce the average depth error, suppress error fluctuation, and improve the worst-case depth measurement performance under the current close-range experimental setting.
To further illustrate the depth refinement effect of the detection-guided adaptive WLS optimization, the MAE values before and after WLS optimization at different measurement distances are visualized in
Figure 14.
As shown in
Figure 14, the MAE values at 300 mm, 500 mm, and 800 mm were substantially reduced after adaptive WLS optimization. This result is consistent with the quantitative results in
Table 7 and indicates that the proposed adaptive filtering strategy can improve target-region depth stability under the current close-range experimental setting.
To further evaluate the runtime performance of the complete 3D localization pipeline, the single-frame processing time of each stage was measured on both the RTX 4060 desktop GPU platform and the EAT230 embedded edge controller. The evaluated stages included weed detection, RAFT-Stereo disparity estimation, detection-guided adaptive WLS depth optimization, and 3D coordinate calculation. The results are summarized in
Table 10.
As shown in
Table 10, RAFT-Stereo disparity estimation was the most time-consuming step in the complete 3D localization pipeline on both platforms. On the RTX 4060 platform, RAFT-Stereo took 168.40 ms per frame, while the MCS-YOLOv8 detection module and 3D coordinate calculation took 8.00 ms and 1.12 ms, respectively. After introducing the detection-guided adaptive WLS depth optimization, the total processing time increased from 177.52 ms to 185.37 ms, and the corresponding FPS decreased from 5.63 to 5.39. The additional latency introduced by WLS was 7.85 ms, accounting for about 4.23% of the total processing time after optimization. This indicates that WLS is not the main computational bottleneck of the complete pipeline on the desktop GPU platform.
On the EAT230 edge controller, the complete pipeline could also be executed, but the processing speed was much lower than that on the RTX 4060 platform. With WLS optimization, the total processing time reached 759.05 ms, corresponding to approximately 1.32 FPS. Among all stages, RAFT-Stereo still dominated the runtime, with an average processing time of 718.60 ms per frame. In contrast, the MCS-YOLOv8 detection module took 19.60 ms on the EAT230 platform, indicating that the lightweight detection module is not the main factor limiting the complete pipeline speed. The WLS module introduced an additional latency of 18.40 ms on EAT230, accounting for about 2.42% of the optimized total processing time.
Combined with the depth error results in
Table 10, the detection-guided adaptive WLS optimization improved the depth measurement accuracy of target regions while introducing a relatively small additional computational cost compared with RAFT-Stereo. However, the complete stereo-based localization pipeline only reached about 5.39 FPS on the RTX 4060 platform and about 1.32 FPS on the EAT230 edge controller after WLS optimization. These results indicate that the current complete pipeline has not yet achieved real-time performance for high-speed field deployment, especially on edge platforms. Therefore, the role of WLS in this study should be understood as depth refinement based on the initial RAFT-Stereo output, rather than as an independent depth estimation method or a complete solution for real-time edge deployment. Further lightweight stereo matching, model acceleration, and pipeline optimization are still required before practical real-time field application.
It should also be noted that this experiment was conducted under indoor simulated close-range conditions, and its results mainly reflect the depth refinement effect and runtime characteristics in a controlled setting rather than full outdoor field generalization.
4.4.3. Target and Weed Localization Verification Experiments
After disparity estimation and detection-guided adaptive WLS depth optimization, target localization verification experiments were conducted to evaluate the 3D coordinate calculation ability of the proposed visual perception pipeline. The experimental process is as follows. First, the binocular camera captures the left and right images simultaneously, and MCS-YOLOv8 is used to detect the target region. Then, the rectified binocular images are input into RAFT-Stereo to obtain the initial disparity map, and the target-region depth is refined through detection-guided adaptive WLS optimization. Finally, the 3D coordinates of the target center are calculated in the camera coordinate system according to the camera calibration parameters, and then transformed into the execution-end coordinate system through the hand-eye calibration matrix for laser pointing verification.
To quantitatively verify the coordinate calculation and coordinate transformation accuracy, five target points with known spatial coordinates were set for static localization experiments. The experimental process is shown in
Figure 15, and the target point localization results are shown in
Table 11.
It can be seen from
Table 11 that in the static target localization experiment, the proposed pipeline could estimate the 3D coordinates of the target points with relatively small errors under indoor controlled conditions. According to the localization results, the mean absolute errors in the X, Y, and Z directions were 2.2 mm, 2.6 mm, and 3.2 mm, respectively. The average 3D Euclidean error was about 4.7 mm, and the maximum 3D error was 5.8 mm. These results indicate that the binocular localization pipeline achieved millimeter-level localization accuracy for known static target points in the current indoor experimental setting, providing a basis for subsequent weed target localization and laser pointing verification.
To further provide a visual verification of weed target localization, several representative weed samples were selected as qualitative examples. In these examples, MCS-YOLOv8 first detects the weed target region, RAFT-Stereo and detection-guided adaptive WLS are then used to estimate the target depth, and the target center is finally mapped into the execution-end coordinate system using the hand-eye calibration matrix. As shown in
Figure 16, the proposed pipeline can generate target localization points for weed samples with different morphologies and soil backgrounds. However, these weed localization examples are mainly used as qualitative visual evidence. The quantitative localization accuracy is primarily supported by the static target point experiments in
Table 11, and further outdoor validation is still required to verify the robustness of the method under more complex field conditions.
4.4.4. Dynamic Target Localization and Laser Pointing Verification Experiments
The aforementioned target and weed localization experiments mainly verified the 3D coordinate calculation ability under static conditions. To further evaluate whether the localization results could support execution-end pointing when the target position changes, dynamic target localization and laser pointing verification experiments were conducted. Different from the static target experiment, the target point in this experiment changes its position by target switching or continuous movement. The system needs to complete image acquisition, target detection, disparity estimation, WLS depth refinement, 3D coordinate calculation, coordinate transformation, and laser pointing response in sequence.
The specific process is as follows. First, the binocular camera synchronously acquires the current target image, and MCS-YOLOv8 detects the target region. Then, the rectified left and right images are input into RAFT-Stereo for initial disparity estimation, and the target-region depth is refined using detection-guided adaptive WLS optimization. The 3D coordinates of the target are calculated according to the optimized disparity, camera focal length, and binocular baseline. Finally, the target position is transformed from the camera coordinate system to the execution-end coordinate system through the hand-eye calibration matrix, and the laser execution end is driven to point to the target center.
In the dynamic pointing experiment, 30 tests were conducted for each dynamic condition. A trial is regarded as successful when the target is correctly detected, the 3D coordinate is updated, and the laser pointing position falls within the preset allowable error range around the target center. Specifically, the pointing error is defined as the planar distance between the laser spot center and the target center on the calibrated target plane. In this study, a trial is considered successful when this distance does not exceed 20 mm. Therefore, the success criterion is based on the distance threshold from the target center rather than simply whether the laser spot falls within the detection bounding box. The target plane is calibrated using a millimeter-scale calibration board, and the image-coordinate distance between the laser spot center and the target center is converted into physical distance in millimeters. Success rate (SR), mean pointing error (MPE), maximum pointing error (MaxE), and average response time (ART) were used to evaluate the dynamic pointing performance. The experimental results are shown in
Table 12.
It can be seen from
Table 12 that under the dynamic target switching condition, 29 out of the 30 tests were successful, corresponding to a success rate of 96.7%. The mean pointing error was 6.8 mm, the maximum pointing error was 11.5 mm, and the average response time was 185 ms. Compared with the static target localization experiment, the pointing error increases because target switching requires the system to update target detection, depth estimation, coordinate transformation, and execution-end pointing after the target position changes.
Under the dynamic target movement condition, 28 out of the 30 tests were successful, corresponding to a success rate of 93.3%. The mean pointing error increased to 9.4 mm, the maximum pointing error reached 16.8 mm, and the average response time increased to 236 ms. This indicates that continuously moving targets introduce higher requirements for visual perception, coordinate update, and execution-end response than target switching. The increase in error and response time is consistent with the higher difficulty of continuous target movement.
The failed or larger-error cases mainly occurred under the dynamic target movement condition. Possible reasons include motion-induced target position changes during image acquisition and processing, local disparity fluctuations around target edges, slight detection-box shifts, and the accumulated delay caused by RAFT-Stereo disparity estimation and execution-end response. In addition, when the target is close to the edge of the field of view or partially occluded by the simulated soil background, the estimated target center and depth may fluctuate, leading to pointing deviation. These results indicate that the proposed pipeline can support indoor dynamic pointing verification, but its robustness still needs to be improved for high-speed field operation and mobile agricultural robot platforms.
To further intuitively demonstrate the process of dynamic target localization and laser pointing, this paper selected two typical experimental scenarios, dynamic target switching and dynamic target movement, for visual display. The dynamic target switching result is shown in
Figure 17. The yellow bright spot in the figure represents the actual pointing position of the laser execution end at the current moment, which is used to reflect the results of the system completing target recognition, 3D coordinate update, and execution end pointing after the target position changes, and to visually assist in explaining the effectiveness of the dynamic experimental results in
Table 12.
It can be seen from
Figure 17 that during the dynamic target switching process, as the position of the target point changes, the system can re-identify the current target position and drive the laser execution end to point to the corresponding target region. The appearance of yellow bright spots near different target points indicates that the system completes coordinate update and execution end response according to the target switching results. Combined with the quantitative results in
Table 12, it can be seen that the proposed method has certain dynamic localization and laser pointing capabilities under indoor dynamic pointing conditions. The visualization results are used as qualitative evidence, while the dynamic pointing performance is mainly supported by the quantitative results in
Table 12.
To further simulate the movement of the agricultural robot during operation with the movement of the platform or the movement of the conveying mechanism on its operating area, this paper built a conveyor belt-type dynamic target movement experiment. In this experiment, multiple target points are fixed on the conveyor belt and enter the field of view of the binocular camera sequentially according to the movement of the conveyor belt. The system needs to complete target detection, disparity estimation, 3D coordinate update, hand-eye coordinate transformation and laser execution end pointing under the condition that the position of each target point is constantly changing. Different from the dynamic target switching experiment, this experiment investigates how to locate and point to different target points during continuous conveying.
The experimental process is shown in
Figure 18.
It can be seen from
Figure 18 that under the condition of conveyor belt-driven dynamic target movement, multiple target points can enter the operating area sequentially with the movement of the conveyor belt.
Figure 18a shows the initial movement of the conveyor belt at the beginning of the experiment, and
Figure 18b–f sequentially presents the results of the system completing laser pointing on different target points during the movement of the conveyor belt. It can be seen that as the position of the target point changes, the system can timely identify and update the 3D coordinates and point the laser execution end. The yellow laser striking bright spots in the figure all appeared near the corresponding target points, indicating that the system can make continuous responses according to the dynamically changing target positions. Compared with the dynamic target switching experiment, the target position in the conveyor-based dynamic movement experiment changes continuously in the image, which places higher requirements on the response speed of visual perception, coordinate update, and the execution end.
Therefore, it can be seen from
Table 12 that the mean pointing error and average response time of the system under dynamic target movement conditions are higher than those under dynamic target switching conditions, which is consistent with the experimental law. From the visual results, although certain dynamic errors occurred during the continuous movement of the target, the system could still complete pointing responses to different target points in the indoor conveyor-based scenario. This indicates that the visual localization pipeline composed of MCS-YOLOv8, RAFT-Stereo, and detection-guided adaptive WLS has a certain dynamic execution capability under controlled indoor conditions.
The experiments in this section mainly verify the feasibility of localization and laser pointing under indoor dynamic target conditions, and they cannot be regarded as equivalent to real field operation on mobile agricultural robot platforms. In practical field operation, platform vibration, natural illumination variation, plant occlusion, irregular terrain, and complex soil background changes may further affect localization and pointing accuracy. Therefore, future work should conduct field dynamic verification on mobile agricultural robot platforms to evaluate the robustness of the complete visual perception and execution pipeline.