Reliability Analysis of Agricultural Foundation Models Under Distribution Shift
Highlights
- Extends the FARM framework with a systematic drift monitoring pipeline for agricultural foundation models under distribution shift.
- Quantifies drift using Mahalanobis, cosine, and Euclidean distances in both input (spectral) space and learned latent embedding space.
- Validates the detection of an anomalous drift year (2021) versus a stable year (2022), showing latent-space Mahalanobis distance is more sensitive to drift.
- Demonstrates a key disconnect: large drift scores do not reliably imply large prediction errors, and some out-of-distribution samples are predicted accurately.
- Highlights the need for reliability-aware monitoring by emphasizing limitations of drift-only indicators and motivating integration of uncertainty and adaptation strategies.
Abstract
1. Introduction
- We design a multi-space drift detection framework that computes distance metrics (Mahalanobis, cosine and Euclidean) in both the input spectral space and the model’s latent embedding space to identify out-of-distribution inputs.
- Through experiments on county-level and precision-agriculture datasets across 2021–2022, we evaluate the distribution differences and the ability of these distance metrics to detect drift and show that latent-space Mahalanobis distances can highlight drift years, although high distances do not consistently correspond to high prediction error.
- Our analysis reveals that some points flagged as out-of-distribution have prediction errors comparable to in-distribution points, indicating that distributional distance alone is insufficient for uncertainty quantification and motivating integrated adaptation strategies.
2. Methodology
2.1. Dataset
2.2. FARM Baseline Model: Architecture and Fine-Tuning Summary
2.3. Drift Monitoring Framework
2.3.1. Baseline Distribution and Metric Specification
2.3.2. Catch: Detecting Distribution Drift
2.3.3. Performance Quantification
3. Results
3.1. Validating Drift Detection
3.2. The Disconnect: Drift vs. Prediction Error
3.2.1. County Level
3.2.2. PA Level
3.3. Fine-Grained Analysis
4. Discussion
Limitations and Operational Implications
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Appendix A. Cross-Scale Reliability Analysis
Appendix A.1. County Level at Patch Scale

Appendix A.2. PA Level at Chip Scale

Appendix B. Per-Band and Per-Month Drift Analysis Results
Appendix B.1. Month-Wise Analysis




Appendix B.2. Band-Wise Analysis





References
- Li, H.; Porth, L.; Tan, K.S.; Zhu, W. Improved index insurance design and yield estimation using a dynamic factor forecasting approach. Insur. Math. Econ. 2021, 96, 208–221. [Google Scholar] [CrossRef]
- Basso, B.; Liu, L. Chapter Four—Seasonal crop yield forecast: Methods, applications, and accuracies. In Advances in Agronomy; Academic Press: Cambridge, MA, USA, 2019; Volume 154, pp. 201–255. [Google Scholar] [CrossRef]
- Lobell, D.B.; Schlenker, W.; Costa-Roberts, J. Climate Trends and Global Crop Production Since 1980. Science 2011, 333, 616–620. [Google Scholar] [CrossRef] [PubMed]
- Lesk, C.; Rowhani, P.; Ramankutty, N. Influence of extreme weather disasters on global crop production. Nature 2016, 529, 84–87. [Google Scholar] [CrossRef] [PubMed]
- Wheaton, E.; Kulshreshtha, S. Adaptations to prairie drought by farmers and ranchers. Prairie Forum 2008, 33, 99–123. [Google Scholar]
- Khaki, S.; Wang, L.; Archontoulis, S.V. A CNN-RNN framework for crop yield prediction. Front. Plant Sci. 2020, 10, 1750. [Google Scholar] [CrossRef] [PubMed]
- Leng, G.; Hall, J. Crop yield sensitivity of global major agricultural countries to droughts and the projected changes in the future. Sci. Total Environ. 2019, 654, 811–821. [Google Scholar] [CrossRef] [PubMed]
- Tian, H.; Wang, P.; Tansey, K.; Zhang, J.; Zhang, S.; Li, H. An LSTM neural network for improving wheat yield estimates by integrating remote sensing data and meteorological data in the Guanzhong Plain, PR China. Agric. For. Meteorol. 2021, 310, 108629. [Google Scholar] [CrossRef]
- Tuia, D.; Persello, C.; Bruzzone, L. Domain adaptation for the classification of remote sensing data: An overview of recent advances. IEEE Geosci. Remote Sens. Mag. 2016, 4, 41–57. [Google Scholar] [CrossRef]
- Wulder, M.A.; Roy, D.P.; Radeloff, V.C.; Loveland, T.R.; Anderson, M.C.; Johnson, D.M.; Healey, S.; Zhu, Z.; Scambos, T.A.; Pahlevan, N.; et al. Fifty years of Landsat science and impacts. Remote Sens. Environ. 2022, 280, 113195. [Google Scholar] [CrossRef]
- Szwarcman, D.; Roy, S.; Fraccaro, P.; Gíslason, Þ.E.; Blumenstiel, B.; Ghosal, R.; de Oliveira, P.H.; Almeida, J.L.D.S.; Sedona, R.; Kang, Y.; et al. Prithvi-eo-2.0: A versatile multi-temporal foundation model for earth observation applications. arXiv 2024, arXiv:2412.02732. [Google Scholar]
- Jakubik, J.; Yang, F.; Blumenstiel, B.; Scheurer, E.; Sedona, R.; Maurogiovanni, S.; Bosmans, J.; Dionelis, N.; Marsocci, V.; Kopp, N.; et al. TerraMind: Large-Scale Generative Multimodality for Earth Observation. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Honolulu, HI, USA, 19–23 October 2025; pp. 7383–7394. [Google Scholar]
- Nejadshamsi, S.; Zhang, Y.; Porth, B.; Zaki, S.; Porth, L.; Khoshdel, V. FARM: Crop Yield Prediction via Regression on Prithvi’s Encoder for Satellite Sensing. AgriEngineering 2026, 8, 2. [Google Scholar] [CrossRef]
- He, K.; Chen, X.; Xie, S.; Li, Y.; Dollár, P.; Girshick, R. Masked Autoencoders Are Scalable Vision Learners. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA, 21–24 June 2022; pp. 16000–16009. [Google Scholar] [CrossRef]
- Lu, J.; Liu, A.; Dong, F.; Gu, F.; Gama, J.; Zhang, G. Learning under concept drift: A review. IEEE Trans. Knowl. Data Eng. 2018, 31, 2346–2363. [Google Scholar] [CrossRef]
- Gama, J.; Žliobaitė, I.; Bifet, A.; Pechenizkiy, M.; Bouchachia, A. A survey on concept drift adaptation. ACM Comput. Surv. 2014, 46, 44. [Google Scholar] [CrossRef] [PubMed]
- Zamzmi, G.; Venkatesh, K.; Nelson, B.; Prathapan, S.; Yi, P.; Sahiner, B.; Delfino, J.G. Out-of-distribution detection and radiological data monitoring using statistical process control. J. Imaging Inform. Med. 2024, 38, 997–1015. [Google Scholar] [CrossRef] [PubMed]
- Mahalanobis, P.C. On the generalized distance in statistics. Proc. Natl. Inst. Sci. India 1936, 2, 49–55. [Google Scholar]
- Singhal, A. Modern information retrieval: A brief overview. IEEE Data Eng. Bull. 2001, 24, 35–43. [Google Scholar]
- Deza, E.; Deza, M.M. Encyclopedia of Distances; Springer: Berlin/Heidelberg, Germany, 2009. [Google Scholar] [CrossRef]
- Yang, J.; Zhou, K.; Li, Y.; Liu, Z. Generalized Out-of-Distribution Detection: A Survey. arXiv 2021, arXiv:2110.11334. [Google Scholar]
- Miller, J.P.; Taori, R.; Raghunathan, A.; Sagawa, S.; Koh, P.W.; Sagawa, S.; Liang, P.; Carmon, Y.; Schmidt, L. Accuracy on the Line: On the Strong Correlation Between Out-of-Distribution and In-Distribution Generalization. In Proceedings of the International Conference on Machine Learning (ICML), PMLR, Virtual, 18–24 July 2021; pp. 7721–7735. [Google Scholar]
- ICLR 2026 CAO Workshop Organizers. Catch, Adapt, and Operate (CAO): Monitoring ML Models Under Drift. In Proceedings of the ICLR 2026 Workshop, Rio de Janeiro, Brazil, 23–27 April 2026.
- Lee, K.; Lee, K.; Lee, H.; Shin, J. A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attacks. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Montreal, QC, Canada, 3–8 December 2018; Volume 31. [Google Scholar]
- Nalisnick, E.; Matsukawa, A.; Teh, Y.W.; Gorur, D.; Lakshminarayanan, B. Do deep generative models know what they don’t know? In Proceedings of the International Conference on Learning Representations (ICLR), New Orleans, LA, USA, 6–9 May 2019. [Google Scholar]
- Agriculture and Agri-Food Canada. Drought Conditions in the Canadian Prairies: 2021 Season Overview; Technical report; Agriculture and Agri-Food Canada: Ottawa, ON, Canada, 2021.
- Hendrycks, D.; Gimpel, K. A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networks. In Proceedings of the International Conference on Learning Representations (ICLR), Toulon, France, 24–26 April 2017. [Google Scholar]
- Lakshminarayanan, B.; Pritzel, A.; Blundell, C. Simple and Scalable Predictive Uncertainty Estimation using Deep Ensembles. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Long Beach, CA, USA, 4–9 December 2017; Volume 30. [Google Scholar]
- Spearman, C. The proof and measurement of association between two things. Am. J. Psychol. 1904, 15, 72–101. [Google Scholar] [CrossRef] [PubMed]
- Ovadia, Y.; Fertig, E.; Ren, J.; Nado, Z.; Sculley, D.; Nowozin, S.; Dillon, J.V.; Lakshminarayanan, B.; Snoek, J. Can You Trust Your Model’s Uncertainty? Evaluating Predictive Uncertainty Under Dataset Shift. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Vancouver, BC, Canada, 8–14 December 2019; Volume 32. [Google Scholar]
- Angelopoulos, A.N.; Bates, S. Conformal Prediction: A Gentle Introduction. Found. Trends Mach. Learn. 2023, 16, 494–591. [Google Scholar] [CrossRef]
- Gal, Y.; Ghahramani, Z. Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learning. In Proceedings of the International Conference on Machine Learning (ICML), PMLR, New York, NY, USA, 20–22 June 2016; pp. 1050–1059. [Google Scholar]
- De Lange, M.; Aljundi, R.; Masana, M.; Parisot, S.; Jia, X.; Leonardis, A.; Slabaugh, G.; Tuytelaars, T. A Continual Learning Survey: Defying Forgetting in Classification Tasks. IEEE Trans. Pattern Anal. Mach. Intell. 2021, 44, 3366–3385. [Google Scholar] [CrossRef] [PubMed]
- Geifman, Y.; El-Yaniv, R. Selective prediction in deep neural networks. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Long Beach, CA, USA, 4–9 December 2017; Volume 30. [Google Scholar]






| Model | RMSE | MAE | R2 |
|---|---|---|---|
| FARM-C | 0.4418 | 0.3482 | 0.7803 |
| FARM-PA | 0.6584 | 0.492 | 0.7271 |
| Model | Year | RMSE | MAE |
|---|---|---|---|
| FARM-C | 2022 (control) | 0.425 | 0.348 |
| 2021 (drift) | 0.581 | 0.414 | |
| FARM-PA | 2022 (control) | 0.653 | 0.483 |
| 2021 (drift) | 0.792 | 0.579 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Nejadshamsi, S.; Zhang, Y.; Porth, B.; Zaki, S.; Porth, L.; Khoshdel, V. Reliability Analysis of Agricultural Foundation Models Under Distribution Shift. Remote Sens. 2026, 18, 2416. https://doi.org/10.3390/rs18142416
Nejadshamsi S, Zhang Y, Porth B, Zaki S, Porth L, Khoshdel V. Reliability Analysis of Agricultural Foundation Models Under Distribution Shift. Remote Sensing. 2026; 18(14):2416. https://doi.org/10.3390/rs18142416
Chicago/Turabian StyleNejadshamsi, Shayan, Yuanyuan Zhang, Brock Porth, Shadi Zaki, Lysa Porth, and Vahab Khoshdel. 2026. "Reliability Analysis of Agricultural Foundation Models Under Distribution Shift" Remote Sensing 18, no. 14: 2416. https://doi.org/10.3390/rs18142416
APA StyleNejadshamsi, S., Zhang, Y., Porth, B., Zaki, S., Porth, L., & Khoshdel, V. (2026). Reliability Analysis of Agricultural Foundation Models Under Distribution Shift. Remote Sensing, 18(14), 2416. https://doi.org/10.3390/rs18142416

