Evolutionary Hierarchical Harvest Schedule Optimization for Food Waste Prevention

Maurice Günder, Nico Piatkowski, Laura von Rueden, Rafet Sifa, Christian Bauckhage

TL;DR

Balancing harvest yields across hundreds of crop species is essential for cutting food waste and transport emissions, but weather variability and cultivation constraints make it a scheduling nightmare. This paper introduces a $(1+1)$-Evolution Strategy equipped with an oscillating adaptive mutation rate and a novel hierarchical loss function, converting a messy multi-objective agricultural problem into a fast-converging single-objective search that cuts harvest over- and undershoot by up to 100%.

What Problem Does This Paper Address?

Intercropping—growing diverse crop species together rather than relying on monocultures—is crucial for soil health and biodiversity. However, managing it at scale is difficult: each crop has distinct planting windows, temperature requirements, and maturation times.

When harvest schedules are uncoordinated, farms experience severe peaks (overshoot) and valleys (undershoot) in weekly yields. Exceeding processing and logistical capacities leads directly to agricultural food waste, while operating below capacity creates logistical inefficiencies and excess greenhouse gas emissions. Compounding the challenge, harvest timing is uncertain because plant development hinges on accumulated heat over time, measured in Growing Degree Units (GDU). The authors tackle the challenge of simultaneously scheduling more than 1,000 crop plantings to produce a steady, predictable harvest stream despite uncertain weather conditions.

Methods

The authors structure their pipeline around three primary components:

  • Predictive Growth Modeling: Gaussian Process Regression (GPR) models 11 years of historical weather data to forecast time-dependent GDU accumulation alongside prediction uncertainties. This allows precomputing a discrete harvest matrix mapping every valid planting date to an expected harvest date.
  • Hierarchical Loss Formulation: Rather than using standard Pareto-based multi-objective optimization, the authors structure the objective hierarchically as $\vec{L} = (L_+, L_-)$:
  • $L_+$ penalizes harvest amounts exceeding capacity (using a convex exponential penalty) to eliminate food waste.
  • $L_-$ penalizes harvests falling below capacity (using a concave function that pushes yields toward either zero or full capacity, eliminating under-utilized harvest weeks).
  • Minimization strictly prioritizes $L_+$ over $L_-$, effectively transforming a multi-objective trade-off into a prioritized pseudo-single-objective problem.
  • Adaptive Oscillating Mutation in $(1+1)$-ES: Building on a $(1+1)$ Evolution Strategy, the search dynamically adjusts its mutation rate between $1/|S|$ (mutating a single crop) and a cap $\rho_{\max} = 1\%$ via a sine-squared oscillation. When progress stalls on fitness plateaus, the mutation rate ramps up to escape local optima without degenerating into an undirected random walk.
       Uncertain GDU Forecast (GPR)
                   │
                   ▼
       Precomputed Harvest Matrix
                   │
                   ▼
        (1+1)-Evolution Strategy
       ├── Oscillating Mutation Rate  ──> Escapes local plateaus
       └── Hierarchical Loss:

1. Minimize Overshoot (L+)  ──> Stop food waste
             2. Minimize Undershoot (L-) ──> Maximize transport efficiency

Datasets

  • Weather & GDU Data: 11 years of historical regional temperature data used to train GPR models and predict GDU accumulation for the 2020/21 harvest season across two distinct geographic sites.
  • Crop Scheduling Datasets: Real-world commercial farming scenarios across two production locations:
  • Site 0: 1,375 distinct crop species/plantings.
  • Site 1: 1,194 distinct crop species/plantings. (Note: Due to copyright restrictions on the proprietary field data, the authors released synthetic datasets mirroring these exact properties on GitHub).

Key Insights and Ideas

  • Concave vs. Convex Splitting: Standard squared-error penalties fail to distinguish between different operational modes. By using a concave loss below capacity, the optimizer actively splits mid-volume weeks into either complete rest weeks or fully utilized harvest weeks, streamlining downstream logistics.
  • Hierarchy Bypasses Pareto Stagnation: Traditional multi-objective evolutionary algorithms (like NSGA-II or MOEA/D) struggle with high-dimensional scheduling spaces. Lexicographically ranking waste prevention ($L_+$) strictly above logistical smoothing ($L_-$) enforces a clear optimization direction, accelerating convergence.
  • Simulated-Annealing-Style Mutation: Instead of fixed perturbation rates, an oscillating mutation frequency triggered by plateau counters allows the algorithm to periodically take "big leaps" to discover new harvest week configurations, then cool down for fine-tuning.

Key Results

  • Drastic Waste & Emission Reduction: Across tested scenarios (fixed capacity vs. automatically inferred capacity), the optimized schedule reduced harvest overshoot ($R_o$) and undershoot ($R_u$) by 62% to 100% compared to historical baseline schedules.
  • Outperforming Baselines: In short-run evaluations ($10^6$ evaluations), the hierarchical $(1+1)$-ES achieved lower distance-to-optimum metrics ($L = (1.35, 0.26)$) than 2-objective and 6-objective variants of NSGA-II ($L = (2.41, 0.71)$), MOEA/D ($L = (4.52, 1.25)$), and an exact Mixed-Integer Linear Program (MILP solved via IBM CPLEX, $L = (3.01, 4.02)$).
  • Robustness Under Forecast Uncertainty: Resampling 100 alternate harvest matrices using bootstrap sampling from the GPR confidence intervals confirmed that yield fluctuations remained tight and largely within predicted error bands.

Limitations and Future Work

  • Iteration Cost: While initial saturation occurs around $10^6$ generations, high-level fine-tuning requires up to $10^9$ generations, which could challenge near-real-time operational re-planning.
  • Multi-Scenario Training Costs: Evaluating loss across numerous bootstrapped weather realizations simultaneously remains computationally expensive; optimization is currently performed on a single forecast mean and evaluated post-hoc against uncertainty.
  • Scope Constraints: The paper primarily evaluates centralized schedule optimization for single farm enterprises. Extending the method across decentralized multi-farm networks with dynamic transport constraints remains an open challenge.

Summary updated

BibTeX
@inproceedings{gunder2022evolutionary,
  author = {Maurice Günder and Nico Piatkowski and Laura von Rueden and Rafet Sifa and Christian Bauckhage},
  title = {{Evolutionary Hierarchical Harvest Schedule Optimization for Food Waste Prevention}},
  booktitle = {AIAFS @ AAAI},
  year = {2022},
  url = {https://openreview.net/forum?id=vWblR-4KSLZ},
}
Figure