Optimizing Navigation And Chemical Application in Precision Agriculture With Deep Reinforcement Learning And Conditional Action Tree

Mahsa Khosravi, Zhanhong Jiang, Joshua R. Waite, Sarah E. Jones, Hernan Torres, Arti Singh, Baskar Ganapathysubramanian, Asheesh Kumar Singh, Soumik SarkararXiv 2025 · DOI

Abstract

Precision agriculture requires balancing the thoroughness of pest detection with the efficiency of chemical application. This paper introduces HAM-PPO (Hierarchical Action Masking Proximal Policy Optimization), a reinforcement learning framework designed for autonomous agricultural robots. By employing hierarchical action trees and invalid action masking, the system optimizes the trade-off between "scouting" for infections and "deep scouting" for targeted treatment. Experimental results in simulated environments demonstrate that HAM-PPO achieves significantly higher yield recovery and lower chemical waste compared to traditional uniform application methods.

Introduction

The primary goal of precision agriculture is the site-specific application of pesticides and herbicides to minimize environmental impact and maximize economic return. However, robotic agents face a significant resource-management dilemma. While Uncrewed Aerial Vehicles (UAVs) provide rapid wide-area surveys, they are prone to chemical drift and limited by payload capacity. Conversely, ground robots offer high precision but are constrained by battery life and complex navigation requirements.

Traditional "lawnmower" patterns or simple reactive triggers often fail to account for economic constraints—such as the cost of chemicals versus the value of saved crops—and struggle with sensor noise. This research addresses these challenges by developing an intelligent agent capable of autonomous path planning and spraying schedules to optimize financial and environmental outcomes under uncertainty.

Methodology: The HAM-PPO Framework

The proposed HAM-PPO framework integrates several advanced reinforcement learning techniques to manage the complexities of agricultural environments.

The HAM-PPO reinforcement learning loop, illustrating the interaction between the agent, the environment state, and the hierarchical action space.

Hierarchical Action Tree (CAT)

Instead of a flat action space, the agent utilizes a structured decision process. It first selects a high-level intent: Scouting (rapid movement for broad surveying) or Deep Scouting (stationary, detailed assessment and potential spraying). This hierarchy allows the agent to commit heavy resources only when confidence in an infection is high.

Invalid Action Masking (IAM)

To accelerate training and ensure operational safety, the framework employs invalid action masking. This prevents the agent from attempting impossible actions, such as moving outside the field boundaries or re-spraying a previously treated grid cell, allowing the RL model to focus on high-level strategic optimization.

State Estimation and Reward Function

The system transitions from a Partially Observable Markov Decision Process (POMDP) to a standard MDP by integrating noisy drone data with local ground-robot measurements. The agent is guided by a domain-specific reward function that prioritizes Yield Recovery (monetary value of saved crops) while penalizing Pesticide Cost, redundant movements, and excessive battery usage.

Experimental Setup

The framework was evaluated using AgGym, a specialized simulation environment. The study utilized stochastic infection maps across $10 \times 10$ grids with varying infection levels (20–40%) and spatial distributions (clustered vs. random). To simulate real-world conditions, the observation data included Gaussian noise and Binary Flip noise to represent sensor inaccuracies and misclassifications.

Key Results and Discussion

The HAM-PPO agent demonstrated superior performance across several metrics:

  • Yield Recovery: In scenarios with 20-30% infection, the agent achieved a 79-84% yield recovery, significantly outperforming "Carpet Spraying" baselines (52-62%).
  • Resource Efficiency: The agent learned to ignore "mild" infections where treatment costs would exceed the value of the crop saved, maintaining lower pesticide costs than uniform application methods.
  • Adaptive Navigation: Trajectory analysis revealed that the agent dynamically "hunts" for infection clusters rather than following rigid paths, prioritizing the most severe areas of the field.
  • Robustness: The hierarchical decision-making process allowed the ground robot to "double-check" noisy drone data, maintaining high performance even with a 15% misclassification rate in initial surveys.

Conclusion and Future Work

HAM-PPO provides a robust solution for autonomous precision spraying, successfully balancing exploration and exploitation in a resource-constrained environment. Future research will focus on dynamic environments where infections spread over time, multi-agent coordination between fleets of drones and ground robots, and validation on physical hardware to address real-world variables such as wind and mechanical constraints.

Summary updated

BibTeX
@misc{khosravi2025optimizing,
  author = {Mahsa Khosravi and Zhanhong Jiang and Joshua R. Waite and Sarah E. Jones and Hernan Torres and Arti Singh and Baskar Ganapathysubramanian and Asheesh Kumar Singh and Soumik Sarkar},
  title = {{Optimizing Navigation And Chemical Application in Precision Agriculture With Deep Reinforcement Learning And Conditional Action Tree}},
  year = {2025},
  eprint = {2503.17985},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.17985},
}
Figure