Optimizing Crop Management with Reinforcement Learning and Imitation Learning

Ran Tao, Pan Zhao, Jing Wu, Nicolas F. Martin, Matthew Tom Harrison, Carla Sofia Santos Ferreira, Zahra Kalantari, Naira Hovakimyan

1. Introduction

Precision agriculture faces a significant challenge: balancing the maximization of crop yield and economic profit with the minimization of resource costs and environmental damage, such as nitrate leaching. While crop simulators like the Decision Support System for Agrotechnology Transfer (DSSAT) allow for the development of optimized strategies using Reinforcement Learning (RL), a "deployment gap" often persists. Standard RL agents typically require "full observation"—access to internal simulator variables that are impossible to measure in real-time on a farm. This paper presents a framework to bridge this gap by combining RL with Imitation Learning (IL) to create deployable, high-performance management policies.

2. Methodology: Bridging the Deployment Gap

The researchers propose a two-stage training pipeline designed to translate "god-mode" simulation expertise into real-world utility:

  1. Expert Training (RL): A Deep Q-Network (DQN) is used to train an expert policy. This agent operates with "full observation" of the DSSAT simulator, learning the theoretically optimal timing and quantity for nitrogen (N) fertilization and irrigation.
  2. Student Training (IL): A second policy, the "student," is trained using Behavior Cloning to mimic the expert's actions. Crucially, the student only has access to "partial observations"—data readily available to farmers, such as weather forecasts, soil water content, and crop growth stages.
The two-stage training pipeline: RL-based expert training followed by IL-based student training for partial observation deployment.

This approach allows the student model to learn how to infer optimal actions from limited data, effectively using observable variables as proxies for the hidden internal states of the simulator.

3. Experimental Setup and Key Results

The framework was tested across two distinct geographical and climatic contexts: Florida, US (1982) and Zaragoza, Spain (1995). The reward functions were carefully calibrated to weigh crop yield ($Y$) against the costs of fertilizer ($N_t$), irrigation ($W_t$), and environmental penalties for nitrate leaching ($N_{l,t}$).

Performance comparison of baseline and trained policies across Florida and Zaragoza cases.

Key Findings:

  • Profitability and Efficiency: The RL-trained policies achieved a 45% increase in profit for the Florida case and a 55% increase for the Zaragoza case compared to traditional management baselines.
  • Environmental Impact: By tuning the reward function to penalize nitrate leaching (RF 5), the system achieved a 400% improvement in the environmental-economic balance in Florida.
  • IL Performance: The IL-trained student policies performed remarkably well, achieving cumulative rewards within 1.4% of the full-observation expert in the Florida case. This demonstrates that the "hidden" variables of the simulator can be effectively navigated using only 10-15 observable data points.
  • Joint Optimization: The study highlights that managing nitrogen and irrigation simultaneously is superior to optimizing them in isolation, as the two factors interact significantly to influence plant health and resource runoff.

4. Discussion and Future Work

While the IL-trained models are directly compatible with standard farm sensors and weather APIs, the authors note that a "sim-to-real" gap remains. Real-world dynamics are more chaotic than DSSAT models. Sensitivity analysis showed that policies are particularly vulnerable to errors in temperature and rainfall data, suggesting that high-accuracy local sensors are vital for deployment success.

Future research will focus on implementing "domain randomization" to ensure policies remain robust across varying soil types and unexpected climate shifts. The researchers are currently transitioning from simulation to real-world validation through field experiments at the University of Illinois.

Summary updated

BibTeX
@inproceedings{tao2023optimizing,
  author = {Ran Tao and Pan Zhao and Jing Wu and Nicolas F. Martin and Matthew Tom Harrison and Carla Sofia Santos Ferreira and Zahra Kalantari and Naira Hovakimyan},
  title = {{Optimizing Crop Management with Reinforcement Learning and Imitation Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/691},
}
Figure