Abstract
Estimating how many people are food insecure and where they are is of fundamental importance for governments and humanitarian organizations to make informed and timely decisions on relevant policies and programmes. In this study, we propose a machine learning approach to predict the prevalence of people with insufficient food consumption and of people using crisis or above-crisis food-based coping when primary data are not available. Making use of a unique global dataset, the proposed models can explain up to 81% of the variation in insufficient food consumption and up to 73% of the variation in crisis or above food-based coping levels. We also show that the proposed models can nowcast the food security situation in near real time and propose a method to identify which variables are driving the changes observed in predicted trends—which is key to make predictions serviceable to decision-makers.
This is a preview of subscription content, access via your institution
Access options
Access Nature and 54 other Nature Portfolio journals
Get Nature+, our best-value online-access subscription
$32.99 /Â 30Â days
cancel any time
Subscribe to this journal
Receive 12 digital issues and online access to articles
$119.00 per year
only $9.92 per issue
Buy this article
- Purchase on SpringerLink
- Instant access to the full article PDF.
USD 39.95
Prices may be subject to local taxes which are calculated during checkout






Similar content being viewed by others
Data availability
The data that support the findings of this study are available in a Zenodo repository: https://zenodo.org/record/6953981.
Code availability
The code used to generate the results reported in this study is available in a Zenodo repository: https://zenodo.org/record/6953981.
References
Food Security Analysis (World Food Programme, 2022); https://www.wfp.org/food-security-analysis
Blumenstock, J., Cadamuro, G. & On, R. Predicting poverty and wealth from mobile phone metadata. Science 350, 1073–1076 (2015).
Jean, N. et al. Combining satellite imagery and machine learning to predict poverty. Science 353, 790–794 (2016).
Steele, J. E. et al. Mapping poverty using mobile phone and satellite data. J. R. Soc. Interface 14, 20160690 (2017).
Pokhriyal, N. & Jacques, D. C. Combining disparate data sources for improved poverty prediction and mapping. Proc. Natl Acad. Sci. USA 114, E9783–E9792 (2017).
Engelmann, G., Smith, G. & Goulding, J. The unbanked and poverty: predicting area-level socio-economic vulnerability from m-money transactions. In 2018 IEEE International Conference on Big Data 1357–1366 (IEEE, 2018).
Sheehan, E. et al. Predicting economic development using geolocated Wikipedia articles. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining 2698–2706 (ACM, 2019).
Kondmann, L., Haeberle, M. & Zhu, X. X.Combining Twitter and Earth observation data for local poverty mapping. In NeuRIPS Machine Learning for the Developing World Workshop 1–5 (NeurIPS, 2020).
Fatehkia, M. et al. Mapping socioeconomic indicators using social media advertising data. EPJ Data Sci. 9, 22 (2020).
IFAD, UNICEF, WFP & WHO. The State of Food Security and Nutrition in the World 2021. Transforming Food Systems for Food Security, Improved Nutrition and Affordable Healthy Diets for All (FAO, 2021).
FSIN. Global Report on Food Crises 2020 (FSIN, 2020); https://www.wfp.org/publications/2020-global-report-food-crises
Emergency Operations Division WFP Global Operational Response Plan: Update #3–November 2021 (WFP, 2021); https://www.wfp.org/publications/wfp-global-operational-response-plan-update-3-november-2021
Declaration of the World Summit on Food Security (FAO, 2009).
Vaitla, B. et al. The measurement of household food security: correlation and latent variable analysis of alternative indicators in a large multi-country dataset. Food Policy 68, 193–205 (2017).
Lobell, D. B. et al. Prioritizing climate change adaptation needs for food security in 2030. Science 319, 607–610 (2008).
Zufiria, P. J. et al. Identifying seasonal mobility profiles from anonymized and aggregated mobile phone data. Application in food security. PloS ONE 13, e0195714 (2018).
Napoli, M. Towards a Food Insecurity Multidimensional Index (FIMI). MSc thesis, Roma Tre Univ. (2011).
Caccavale, O. M. & Giuffrida, V. The proteus composite index: towards a better metric for global food security. World Dev. 126, 104709 (2020).
Okori, W. & Obua, J. Machine learning classification technique for famine prediction. In Proceedings of the World Congress on Engineering, Vol. 2 4–9 (Citeseer, 2011).
Andree, B. P. J., Chamorro, A., Kraay, A., Spencer, P. & Wang, D. Predicting Food Crises (World Bank, 2020).
Wang, D., Andree, B. P. J., Chamorro, A. F. & Girouard Spencer, P. Stochastic Modeling of Food Insecurity (World Bank, 2020).
Lentz, E., Michelson, H., Baylis, K. & Zhou, Y. A data-driven approach improves food insecurity crisis prediction. World Dev.122, 399–409 (2019).
Westerveld, J. J. et al. Forecasting transitions in the state of food security with machine learning using transferable features. Sci. Total Environ. 786, 147366 (2021).
Deléglise, H. et al. Food security prediction from heterogeneous data combining machine and deep learning methods. Expert Syst. Appl. 190, 116189 (2021).
Chen, T. & Guestrin, C. Xgboost: a scalable tree boosting system. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining Pages 785–794 (ACM, 2016).
Funk, C. et al. Recognizing the famine early warning systems network: over 30 years of drought early warning science advances and partnerships promoting global food security. Bull. Am. Meteorol. Soc. 100, 1011–1027 (2019).
HungerMap LIVE (WFP, 2022); https://hungermap.wfp.org/
Lundberg, S. M. & Lee, S.-I. in Advances in Neural Information Processing Systems, Vol. 30 4765-4774 (eds Guyon, I. et al.) (Curran Associates Inc., 2017).
Lundberg, S. M. et al. From local explanations to global understanding with explainable AI for trees. Nat. Mach. Intell. 2, 2522–5839 (2020).
HungerMap LIVE: Global Insights and Key Trends (WFP, 2022); https://static.hungermapdata.org/insight-reports/latest/global-summary.pdf
Blumenstock, J. E. Estimating economic characteristics with phone data. AEA Pap. Proc. 108, 72–76 (2018).
Singh, S., Nourozi, S., Acharya, L. & Thapa, S. Estimating the potential effects of COVID-19 pandemic on food commodity prices and nutrition security in Nepal. J. Nutr. Sci. 9, E51 (2020).
Jelilov, G., Iorember, P. T., Usman, O. & Yua, P. M. Testing the nexus between stock market returns and inflation in Nigeria: does the effect of COVID-19 pandemic matter? J. Public Aff. 20, e2289 (2020).
Ogunleye, A. & Wang, Q.-G. Xgboost model for chronic kidney disease diagnosis. IEEE/ACM Trans. Comput. Biol. Bioinf. 17, 2131–2140 (2019).
Zhang, Y. & Hamori, S. Forecasting crude oil market crashes using machine learning technologies. Energies 13, 2440 (2020).
Smith, G., Mansilla, R. & Goulding, J. Model class reliance for random forests. In Ao, I.S. et al. (eds) Adv. Neural Inf. Process. Syst. 33 22305-22315 Newswood Limited (2020). http://www.iaeng.org/publication/WCE2011/#:~:text=The%20WCE%202011%20takes%20place,engineering%20and%20computer%20science%20subjects
Kumar, I. E., Venkatasubramanian, S., Scheidegger, C. & Friedler, S. Problems with Shapley-value-based explanations as feature importance measures. In International Conference on Machine Learning 5491–5500 (PMLR, 2020).
Food Consumption Analysis Calculation and Use of the Food Consumption Score in Food Security Analysis (WFP, 2008); https://documents.wfp.org/stellent/groups/public/documents/manual_guide_proced/wfp197216.pdf
The Coping Strategies Index: Field Methods Manual (WFP, 2008); https://documents.wfp.org/stellent/groups/public/documents/manual_guide_proced/wfp211058.pdf
Bowling, A. Mode of questionnaire administration can have serious effects on data quality. J. Public Health 27, 281–291 (2005).
The World Food Programme’s Real-Time Monitoring Systems: Approaches and Methodologies (WFP, 2021); https://docs.wfp.org/api/documents/WFP-0000135070/download/
Technical Manual Version 3.0. Evidence and Standards for Better Food Security and Nutrition Decisions (IPC, 2019).
Chan, J. Y.-L. et al. Mitigating the multicollinearity problem and its machine learning approach: a review. Mathematics 10, 1283 (2022).
Calculation and Use of the Alert for Price Spikes (ALPS) Indicator, Technical Guidance Note (WFP, 2014); https://documents.wfp.org/stellent/groups/public/documents/manual_guide_proced/wfp264186.pdf
WFP Food Price Forecasting and Alert for Price Spikes (WFP, 2022); https://dataviz.vam.wfp.org/economic_explorer/price-forecasts-alerts
Trading Economics (Trading Economics, 2022); https://tradingeconomics.com/
WFP Economic Explorer (WFP, 2022); https://dataviz.vam.wfp.org/economic_explorer/macro-economics/exchange_rate
WFP Seasonal Explorer (WFP, 2022); https://dataviz.vam.wfp.org/seasonal_explorer/rainfall_vegetation/visualizations
Funk, C. C. et al. A quasi-global precipitation time series for drought monitoring. US Geol. Surv. Data Series 832, 4 (2014).
MODIS Vegetation Index Products (NDVI and EVI) (NASA, 2022); https://modis.gsfc.nasa.gov/data/dataprod/mod13.php
Data Export Tool (ACLED, 2022); https://acleddata.com/data-export-tool/
Dowd, C. in Cahill, B.H. and Lawton, J. (eds) A Skein of Thought 119–132 (Fordham Univ. Press, 2020).
Food and Agriculture Organization Corporate Statistical Database (FAOSTAT, 2022); http://www.fao.org/faostat
Gridded Population of the World version 4 (GPWv4): Population Density, Revision 11 (NASA, 2018); https://doi.org/10.7927/H49C6VHW
Friedman, J. H. Greedy function approximation: a gradient boosting machine. Ann. Stat. 29, 1189–1232 (2001).
Lundberg, S. SHAP Documentation (Read the Docs, 2018); https://shap.readthedocs.io/
Acknowledgements
We thank our colleagues at WFP in headquarters, regional bureaus and country offices for the fruitful discussions, and Alibaba Cloud for initial contribution in terms of data infrastructure and modelling approach.
Author information
Authors and Affiliations
Contributions
E.O., L.R. and J.R. conceptualized the study and G.M. and A.B. contributed to its further design. G.M., L.R. and E.O. analysed the data. G.M., A.B., S.J., M.C., L.R. and E.O. designed and developed the Python code used in the work. E.O. supervised the research. E.O., G.M. and A.B. wrote the manuscript, and all authors reviewed and approved it.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests. The content and views expressed in this paper are solely those of the authors and do not necessarily reflect the official views of the UN World Food Programme.
Peer review
Peer review information
Nature Food thanks Erin Lentz, Gavin Smith and James Goulding for their contribution to the peer review of this work.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Supplementary Information (download PDF )
Supplementary Figs. 1–157.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Martini, G., Bracci, A., Riches, L. et al. Machine learning can guide food security efforts when primary data are not available. Nat Food 3, 716–728 (2022). https://doi.org/10.1038/s43016-022-00587-8
Received:
Accepted:
Published:
Version of record:
Issue date:
DOI: https://doi.org/10.1038/s43016-022-00587-8
This article is cited by
-
Examining the role of agroecology in food security prediction: evidence from Burkina Faso using machine learning methods
Agriculture & Food Security (2026)
-
Predicting risk of inadequate micronutrient intake with transferable machine learning models
Scientific Reports (2026)
-
Improving machine learning models through explainable AI for predicting the level of dietary diversity among Ethiopian preschool children
Italian Journal of Pediatrics (2025)
-
Text mining and machine learning reveal global determinants of food insecurity
Scientific Reports (2025)
-
Early warning of complex climate risk with integrated artificial intelligence
Nature Communications (2025)


