# Context-Aware Adaptive Pesticide Spraying for Agricultural Robots under Changing Weather and Terrain Using Vision-Language Models

Robotics.world

> Automated sprayers typically detect crops and then apply pesticide using fixed, pre-programmed parameters, whereas a skilled human operator constantly adjusts spray volume, direction, and walking…

**arXiv**: 2610.08807

**Published**: 2026-09-09

**Authors**: Cong-Thanh Vu, Yen-Chen Liu

## In plain words

Automated sprayers typically detect crops and then apply pesticide using fixed, pre-programmed parameters, whereas a skilled human operator constantly adjusts spray volume, direction, and walking speed based on wind, temperature, canopy structure, and the chemical being applied.

## AI summary

## Overview

**Research area:** Agricultural robotics — precision pesticide application, vision-language model (VLM) reasoning for robot decision-making, and model predictive control for field navigation.

**Technical level:** Intermediate to Advanced. The paper assumes familiarity with ROS2 robot stacks, LiDAR-based mapping, VLM prompting strategies (few-shot and chain-of-thought), and stochastic model predictive control.

**Scope (one sentence):** The paper presents a tracked field robot that uses a VLM to (i) classify crop rows for global path planning and (ii) jointly decide travel speed and spray flow rate from weather, crop, pesticide, and terrain context, with an MPPI controller tracking the resulting path.

## What This Paper Is About

Automated sprayers typically detect crops and then apply pesticide using fixed, pre-programmed parameters, whereas a skilled human operator constantly adjusts spray volume, direction, and walking speed based on wind, temperature, canopy structure, and the chemical being applied. The authors build a robot that mimics this human-style contextual reasoning by feeding camera images, a 2D map of detected trees with row colors and wind direction, and semantic metadata (crop type, cultivation location, season, pesticide type, humidity, temperature, wind speed) into a Vision-Language Model. The VLM outputs, for each crop row and plant, a travel speed and a spray flow rate, which are then executed by an MPPI path-tracking controller.

## Key Contributions

1. **VLM-in-the-loop spraying framework.** A system that generates adaptive pesticide application strategies conditioning on crop type, the operational environment, and external factors such as wind direction and temperature, instead of predefined spraying parameters.
2. **VLM-based crop-row detection for global planning.** A method that classifies tree rows from a 2D, ID-annotated representation of tree positions, benchmarked against unsupervised clustering methods (K-means, DBSCAN) and manual parameter tuning. The authors report at least a 30% accuracy improvement over these baselines.
3. **MPPI path-tracking controller for spraying missions.** A non-holonomic Model Predictive Path Integral controller that follows the global spraying path, avoids obstacles using a spatio-temporal voxel costmap, and tracks the VLM-supplied speed command.
4. **Two-environment field evaluation.** Experiments in a woodland area (approximately 8,000 m²) and a mango farm (approximately 5,000 m²), at three time points per environment, showing context-dependent adjustment of flow rate and travel speed and reduced spray drift.

## Main Findings

- **Row detection accuracy:** Clustering baselines reached 60.80% (K-means) and 59.96% (DBSCAN), while the smallest GPT variant tested, GPT-4.1 Nano, reached 91.87%. Gemini 2.0 Flash Lite, Gemini 2.5 Flash Lite, Gemini 2.5 Flash, GPT-4.1, and GPT-4.1 Mini are described as achieving high accuracy, but their exact values are only shown graphically in the paper's figure and are not stated numerically in the text provided. Accuracy is defined as the number of correctly identified trees belonging to tree rows, over 20 environments with 10 repeats per scenario per method.
- **Model latency trade-off:** Average API response latency was 2.92 s (Gemini 2.5 Flash Lite), 3.88 s (Gemini 2.0 Flash Lite), 3.93 s (GPT-4.1 Nano), 5.38 s (GPT-4.1 Mini), 7.28 s (Gemini 2.5 Flash), and 11.65 s (GPT-4.1), with GPT-4.1 also showing greater variability. Gemini 2.5 Flash was selected because row detection only runs during global planning and does not need high-frequency execution.
- **Wind-adaptive flow control:** At low wind (2.0–2.3 m/s) the two nozzles stayed near-balanced at roughly 2.85–2.90 L/min. At higher wind (3.5–4.5 m/s) the fluctuation amplitude grew, with regions near 3.0 L/min and others near 2.7 L/min forming alternating patterns across the field.
- **Spray deposition uniformity (Water Sensitive Papers, analyzed with ImageJ):** The VLM-based strategy produced 26.4% average surface coverage at 62 droplets/cm², described as uniform and discrete. The fixed-rate baseline produced 61.7% average coverage with clustered, overlapping droplets and visible oversaturation.
- **Speed adaptation:** In Environment 1 the average travel speed decreased from 0.93 m/s under light wind (2.3 m/s) to 0.73 m/s under moderate wind. The provided text is truncated at this point, so the remaining speed values are not reported here.
- **Mapping and path quality:** LiDAR point-cloud maps captured tilted trunks and misaligned trees in Environment 1 and varying row lengths, inconsistent tree counts per row, and dense canopies in Environment 2. Environment 1 contained 497 trees in 11 rows (42–64 trees per row); Environment 2 contained 204 trees in 14 rows (11–17 trees per row). VLM-assigned row colors and the resulting global paths aligned with the actual rows.
- **Reporting gap:** Quantitative controller tracking results at different velocities (Figure 11) are not given as numbers in the provided text, and the paper's conclusion section is cut off in the supplied content.

## Methodology in Plain English

The robot first builds a map. A 3D LiDAR with a built-in IMU runs Fast-LIO2 to produce a global point-cloud map and estimate the robot's pose. Meanwhile, a ZED X camera runs YOLOv8 to detect trees, and each detection is transformed into the global frame and stored in a working map with a unique ID.

Next, the robot figures out which trees form which row. Instead of clustering by distance — which breaks down when plants are unevenly spaced — the system renders the tree positions as a 2D image with coordinates and ID labels and hands it to a VLM with an engineered prompt (task definition, rules, example outputs). The VLM returns groups of IDs corresponding to rows. Centerlines are drawn between adjacent rows and connected into a zig-zag path covering the field.

Then the robot decides how to spray. The VLM receives RGB images from the field, a 2D visualization showing row colors, the planned path, and wind direction from the Windy API, plus metadata: crop type, cultivation location, season and time, pesticide type, humidity, temperature, and wind speed. A chain-of-thought prompt makes the model reason step by step before outputting a speed and a flow rate per row and per plant. Output rules constrain the response to the path structure so the robot cannot receive unsafe commands.

Spraying is triggered by geometry: when the Euclidean distance to a plant falls inside a threshold and the plant is on the correct side, the corresponding pump fires at the VLM-specified volume. Two independent pump modules, one per side, driven by Eagle Power Wa3510 BLDC pumps through an Arduino Uno issuing PWM to ESCs, feed adjustable nozzles from a 20-liter tank.

Finally, an MPPI controller running at 100 Hz on the Jetson Orin with CUDA acceleration tracks the path. Its cost function sums three terms: path tracking (lookahead point plus nearest point), obstacle avoidance (from a spatio-temporal voxel costmap), and velocity tracking toward the VLM's requested speed. Wind direction came from the Windy API at the macro level while an onboard anemometer at 1.67 m height measured local wind speed, since neither sensor alone covers both direction and local magnitude.

## Why This Matters

**Impact on research.** The paper moves precision spraying from "detect and spray at fixed rates" to "reason about context and then spray." It also supplies a direct, quantitative head-to-head between VLM row classification and the unsupervised clustering methods that dominate the crop-row literature, and it shows that even small/lightweight model variants can outperform clustering on this task.

**Real-world applications:**

- Orchard and vineyard spraying on uneven terrain, where row geometry is irregular and canopy density varies.
- Drift-sensitive operations near water bodies, ditches, or residential boundaries, where the reported reduction from 61.7% to 26.4% coverage directly lowers runoff risk.
- Variable-rate application across mixed plots where crop species, growth stage, or pesticide product changes between passes.
- Retrofit of existing tracked agricultural platforms with a camera-LiDAR-perception and VLM-decision layer, since the hardware set here is largely commercial off-the-shelf.

**Industry relevance.** Chemical cost, regulatory limits on off-target deposition, and operator safety all push toward applying the minimum effective dose. A system that autonomously couples flow rate and ground speed to measured wind is directly aligned with that pressure, and the paper's latency measurements give implementers concrete guidance on which commercial VLM tiers are fast enough for planning-stage use.

## Future Directions

- **On-board versus API-based inference.** The best-performing configurations are cloud APIs with latencies between 2.92 s and 11.65 s. Whether a locally hosted VLM can match row-detection accuracy while removing connectivity dependence in rural fields is an open question.
- **Closed-loop validation of spray efficacy.** The evaluation measures deposition on Water Sensitive Papers and flow-rate commands, but not biological outcome. Linking adaptive flow to actual pest or disease control would test whether the adaptive strategy preserves efficacy at lower volume.
- **Quantitative controller characterization.** Tracking error, obstacle-avoidance margin, and speed-tracking performance at different velocities are referenced in the paper's controller figure but not reported numerically in the supplied text, leaving the control contribution less substantiated than the perception contribution.
- **Generalization beyond the two tested sites and three time points per site.** Scaling to more crop species, more pesticide classes, and longer seasonal variation — and handling VLM output errors or refusals safely — are natural extensions.

## Target Audience

Robotics researchers working on agricultural autonomy; precision-agriculture engineers integrating perception, foundation models, and control on field platforms; VLM/LLM researchers looking for embodied, safety-constrained decision-making applications; and agronomists or equipment developers interested in how contextual reasoning can be formalized into machine-executable spraying parameters.

## Authors’ abstract

Precision pesticide spraying is essential for optimizing application efficiency and ensuring uniform chemical distribution. Spraying performance is influenced by multiple factors, including environmental conditions such as temperature and wind speed, pesticide type, and the robot's capability to accurately perceive crops and target spray locations. Existing approaches predominantly emphasize crop detection and rely on predefined spraying parameters, whereas human operators…

[The full abstract on arXiv](https://arxiv.org/abs/2610.08807)

[Read the original paper](https://arxiv.org/abs/2610.08807)

## Related papers

- [Multimodal-Language-Model-Driven Interaction and Companionship for Service Robots in Elderly-Care Facilities](https://robotics.world/paper/multimodal-language-model-driven-interaction-and-companionship-for-2608.21387) 2026-07-22 · cs.RO · Also by Cong-Thanh Vu, Yen-Chen Liu
- [Low-Latency Turn-Taking via Context-Aware Preface Generation in a Real-World Dialogue Robot](https://robotics.world/paper/low-latency-turn-taking-via-context-aware-preface-generation-in-a-real-2607.23204) 2026-07-25 · cs.RO · Key terms of the title in common
- [Vision-Language Grounded Task-Context-Aware Imitation Learning for Robotic Disassembly](https://robotics.world/paper/vision-language-grounded-task-context-aware-imitation-learning-for-2609.17714) 2026-09-15 · cs.RO · Key terms of the title in common
- [HINT-Plan: Human Intention-Aware Robot Task Planning in Context-Rich Environments using Vision Language Models](https://robotics.world/paper/hint-plan-human-intention-aware-robot-task-planning-in-context-rich-2609.17771) 2026-09-15 · cs.RO · Key terms of the title in common
- [PlantShade: Predicting Plant Shadows for Lighting-Aware Robotic Agricultural Operation](https://robotics.world/paper/plantshade-predicting-plant-shadows-for-lighting-aware-robotic-2609.21059) 2026-09-17 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/context-aware-adaptive-pesticide-spraying-for-agricultural-robots-under-2610.08807
