NeuralCrop: Combining physics and machine learning for improved crop yield predictions

Yunan Lin, Sebastian Bathiany, Maha Badri, Maximilian Gelbrecht, Philipp Hess, Brian Groenke, Jens Heinke, Christoph Müller, Niklas Boers · DOI

Introduction

Global food security faces unprecedented challenges as climate change increases the frequency and severity of extreme weather events. Accurately predicting crop yields is essential for adaptation, yet current modeling approaches face a significant trade-off. Traditional Global Gridded Crop Models (GGCMs), such as LPJmL, are physically consistent but computationally intensive and often struggle to represent complex biological processes. Conversely, pure machine learning (ML) models offer speed and pattern recognition but lack physical constraints, often leading to poor generalization in unseen climate scenarios.

NeuralCrop addresses this gap by integrating deep learning directly into a biophysical modeling framework. By replacing uncertain biological components with neural networks while maintaining a core physical structure, NeuralCrop achieves state-of-the-art accuracy and remarkable computational efficiency.

The NeuralCrop Architecture and Training Strategy

NeuralCrop is built upon a differentiable version of the LPJmL model, implemented in the Julia programming language. This differentiability allows for "online training," where neural network components—such as Multi-Layer Perceptrons (MLPs) for diagnostic variables and Neural Ordinary Differential Equations (NODEs) for prognostic variables like carbon allocation—are optimized within the physical simulation loop.

The model employs a robust two-stage training pipeline to ensure both physical consistency and real-world accuracy:

  1. Pre-training: The model is first trained to emulate the outputs of the original LPJmL model using synthetic data. This step ensures that the neural components learn to respect fundamental physical laws, such as mass and energy balance, before being exposed to noisy real-world data.
  2. Fine-tuning: The pre-trained model is then calibrated using high-frequency observational data from global eddy-covariance networks (e.g., FLUXNET). This stage allows the model to correct inherent biases in the original physical equations by learning from actual carbon and water flux measurements.

Performance and Computational Efficiency

Evaluation against subnational wheat statistics in Europe and corn statistics in the US Corn Belt demonstrates that NeuralCrop consistently outperforms both its parent model (LPJmL) and the median of the AgMIP multi-model ensemble.

Key performance highlights include:

  • Accuracy in Extremes: NeuralCrop significantly improved yield loss predictions during major climate anomalies, such as the 2018 European drought and the 2012 US drought.
  • Generalization: Unlike black-box ML models, NeuralCrop maintains robust performance when applied to new geographic regions, thanks to its underlying physical constraints.
  • Speed: Optimized for GPU acceleration, NeuralCrop achieves an 82.3x speedup compared to traditional CPU-based simulations. A global simulation that previously took hours can now be completed in under two minutes.

Conclusion and Future Directions

NeuralCrop represents a significant step forward in hybrid environmental modeling. By combining the interpretability of physics-based models with the flexibility of deep learning, it provides a powerful tool for large-scale climate impact assessments. While currently limited by the availability of high-quality flux data in certain regions, future iterations incorporating satellite remote sensing data promise to expand its global reach and further refine its predictive capabilities for complex stressors like pests and diseases.

Summary updated

BibTeX
@misc{lin2025neuralcrop,
  author = {Yunan Lin and Sebastian Bathiany and Maha Badri and Maximilian Gelbrecht and Philipp Hess and Brian Groenke and Jens Heinke and Christoph Müller and Niklas Boers},
  title = {{NeuralCrop: Combining physics and machine learning for improved crop yield predictions}},
  year = {2025},
  eprint = {2512.20177},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.20177},
}
Figure