Global distribution of cattle, horses, goats, sheep and buffaloes at 1 km resolution for 2000-2022 based on subnational census data and spatiotemporal machine learning.
Abstract: The article describes the production and evaluation of annual livestock densities and headcounts of cattle, horses, sheep, goats and buffaloes (including 95% probability prediction intervals) at 1 km spatial resolution for the 2000-2022 period using spatiotemporal machine learning. A compilation of subnational livestock census data has been imported, harmonized and used as reference data (55,336 census polygons and 939,257 individual data entries; covering 147 countries) to build predictive models. A large stack of multi-source harmonized raster data sets (128 individual layers) were used as features. Models were fitted using scikit-map and scikit-learn libraries with recursive feature elimination and Poisson criteria to represent the distribution of the target variable. Intermediate rasters estimating potential land for livestock production based on grassland and cropland extent, along with biophysical features, were used to estimate the spatial domain of livestock. The final predictions at 1 km were further adjusted to annual headcounts based on Food and Agriculture Organization Corporate Statistical (FAOSTAT) national database to ensure consistency. Model benchmarking based on 10% test samples (with spatial blocking) shows that Random Forest outperforms Gradient Boosting Tree for predicting livestock densities, with concordance correlation coefficient (CCC) values of 0.603, 0.547, 0.622, 0.598, 0.689, and Root Mean Squared Error (RMSE) values of 104.59, 6.06, 67.57, 64.09, 30.37 (heads per km) for cattle, horses, sheep, goats and buffaloes. Feature importance analysis shows that the key variables include climate and socio-economic layers, such as water vapor, aridity index, land surface temperature, travel time to the nearest cities, and the spatial distribution of religious groups. Further evaluation of the output layers shows similar distributions to existing global livestock products (FAO Gridded Livestock of The World-GLW, and Annual Gridded Livestock of the World-AGLW). The spatial domain of livestock (active grazing/forage areas) is often difficult to validate, with many countries having very specific management cultures that can not be seamlessly represented using existing global raster layers, hence modeling distribution of livestock per country using local country-specific features (instead of using global models) could help increase accuracy, specially for regional/local applications. The modeling pipeline is open source and available on GitHub (https://github.com/wri/global-pasture-watch) with output layers (both original ML predictions and FAOSTAT-adjusted values) publicly available under Creative Commons Attribution (CC-BY) license on Zenodo (https://doi.org/10.5281/zenodo.17491242).
The Equine Research Bank provides access to a large database of publicly available scientific literature. Inclusion in the Research Bank does not imply endorsement of study methods or findings by Mad Barn.
This research summary has been generated with artificial intelligence and may contain errors and omissions. Refer to the original study to confirm details provided. Submit correction.
Overview
This research presents high-resolution, annually updated maps of livestock densities and populations (cattle, horses, goats, sheep, and buffaloes) from 2000 to 2022 using advanced machine learning techniques and extensive subnational census data.
The study combines census data with environmental and socio-economic factors to predict livestock distribution at a fine 1 km resolution globally, adjusting the results to official national statistics for accuracy.
Data Collection and Preparation
Compiled a vast dataset of livestock census information:
55,336 census polygons and 939,257 individual data entries.
Coverage spanning 147 countries worldwide.
Harmonized this census data to serve as reference input for the predictive models.
Collected 128 harmonized raster data layers representing diverse environmental and socio-economic features to use as model covariates.
Modeling Approach
Used spatiotemporal machine learning frameworks implemented via scikit-map and scikit-learn libraries.
Employed:
Recursive feature elimination to select important predictors.
Poisson criteria suitable for count data to model livestock headcounts at fine spatial scale.
Included intermediate raster layers estimating potential livestock land based on:
Grassland and cropland extents.
Relevant biophysical features to define livestock spatial domain.
Model output predictions at 1 km resolution were then adjusted to align with official national livestock counts from the FAOSTAT database, ensuring consistency with reported data.
Model Validation and Performance
Model benchmarking used 10% spatially blocked test samples to evaluate predictive accuracy.
Compared two machine learning algorithms:
Random Forest demonstrated better performance than Gradient Boosted Trees.
Quality metrics for the Random Forest model include:
Concordance correlation coefficients (CCC) between 0.547 and 0.689 across species, reflecting strong agreement between predictions and observations.
Root Mean Squared Errors (RMSE) showing typical deviations in heads per square kilometer, varying by species (e.g., 104.59 for cattle, 30.37 for buffaloes).
Important Predictors
Key variables influencing livestock distribution were identified as:
Climate-related factors such as water vapor, aridity index, and land surface temperature.
Socio-economic variables like travel time to nearest cities and spatial distribution of religious groups, indicating anthropogenic influences on livestock patterns.
Comparison and Limitations
The predicted livestock patterns were compared with existing global datasets such as FAO’s Gridded Livestock of the World (GLW) and Annual Gridded Livestock of the World (AGLW), showing similar distribution patterns.
Challenges noted in accurately capturing livestock spatial domains due to:
Country-specific livestock management cultures and practices.
Limitations of global raster data in representing local grazing and forage areas.
Authors suggest that improving regional or local modeling by incorporating country-specific features could enhance accuracy for certain applications.
This work provides the most detailed spatial and temporal view to date on global livestock distribution, crucial for:
Supporting agricultural planning and food security assessments.
Understanding environmental impacts of livestock production.
Enabling targeted interventions and sustainable livestock management worldwide.
The fusion of extensive census data with advanced modeling and the provision of uncertainty estimates (95% prediction intervals) enhances confidence and utility of the data products.
Cite This Article
APA
Parente L, Ehrmann S, Hengl T, Fritz S, Bonannella C, Malek Ž, Gonzalez Fischer C, Perez K, Stanimirova R, Meyer C, Wisser D, Cinardi G, Sloat L.
(2026).
Global distribution of cattle, horses, goats, sheep and buffaloes at 1 km resolution for 2000-2022 based on subnational census data and spatiotemporal machine learning.
PeerJ, 14, e21494.
https://doi.org/10.7717/peerj.21494
Biotechnical Faculty, University of Ljubljana, Ljubljana, Slovenia.
Gonzalez Fischer, Carlos
Department of Global Development, Cornell University, Ithaca, United States.
Perez, Katya
International Institute for Applied Systems Analysis (IIASA), Vienna, Austria.
Stanimirova, Radost
World Resources Institute, Washington, D.C., United States.
Meyer, Carsten
German Centre for Integrative Biodiversity Research (iDiv), Leipzig, Germany.
Institute of Biology, Universität Leipzig, Leipzig, Germany.
Wisser, Dominik
Animal Production and Health Division, Food and Agriculture Organization of the United Nations|FAO, Rome, Italy.
Cinardi, Giuseppina
Animal Production and Health Division, Food and Agriculture Organization of the United Nations|FAO, Rome, Italy.
Sloat, Lindsey
World Resources Institute, Washington, D.C., United States.
MeSH Terms
Animals
Machine Learning
Sheep
Cattle
Goats
Buffaloes
Horses
Predictive Learning Models
Livestock
Random Forest
Spatio-Temporal Analysis
Conflict of Interest Statement
The authors declare that they have no competing interests.
References
This article includes 109 references
Alexandratos N, Bruinsma J. World agriculture towards 2030/2050: the 2012 revision. 2012.
Araza A, Herold M, de Bruin S, Ciais P, Gibbs DA, Harris N, Santoro M, Wigneron J-P, Yang H, Málaga N, Nesha K, Rodriguez-Veiga P, Brovkina O, Brown HC, Chanev M, Dimitrov Z, Filchev L, Fridman J, García M, Gikov A, Govaere L, Dimitrov P, Moradi F, Muelbert AE, Novotný J, Pugh TA, Schelhaas M-J, Schepaschenko D, Stereńczak K, Hein L. Past decade above-ground biomass change comparisons from four multi-temporal global maps. International Journal of Applied Earth Observation and Geoinformation 2023;118(4):103274.
Brazilian Institute of Geography and Statistics SIBGE automatic recovery system—SIDRA. Municipal Livestock Survey. 2025. https://www.ibge.gov.br/en/statistics/economic/agriculture-forestry-and-fishing/17353-municipal-livestock-production.html https://www.ibge.gov.br/en/statistics/economic/agriculture-forestry-and-fishing/17353-municipal-livestock-production.html
Byrnes RC, Eastburn DJ, Tate KW, Roche LM. A global meta-analysis of grazing impacts on soil health indicators. Journal of Environmental Quality 2018;47(4):758–765.
Consoli D, Parente L, Simoes R, Şahin M, Tian X, Witjes M, Sloat L, Hengl T. A computational framework for processing time-series of earth observation data based on discrete convolution: global-scale historical landsat cloud-free aggregates at 30 m spatial resolution. PeerJ 2024;12:e18585.
Correlates of War World religion data (v1.1) 2025. https://correlatesofwar.org/data-sets/world-religion-data. [11 February 2025]. https://correlatesofwar.org/data-sets/world-religion-data
Dac HH, Gonzalez Viejo C, Lipovetzky N, Tongson E, Dunshea FR, Fuentes S. Livestock identification using deep learning for traceability. Sensors 2022;22(21):8256.
de Area Leão Pereira EJ, de Santana Ribeiro LC, da Silva Freitas LF, de Barros Pereira HB. Brazilian policy and agribusiness damage the Amazon rainforest. Land Use Policy 2020;92(4):104491.
De Azevedo TR, Costa Junior C, Brandão Junior A, Cremer MdS, Piatto M, Tsai DS, Barreto P, Martins H, Sales M, Galuchi T, Rodrigues A, Morgado R, Ferreira AL, Barcellos e Silva F, Viscondi GdeF, dos Santos KC, Cunha KBda, Manetti A, Coluna IME, Albuquerque IRde, Junior SW, Leite C, Kishinami R. SEEG initiative estimates of Brazilian greenhouse gas emissions from 1970 to 2015. Scientific Data 2018;5:180045.
Demarchi L, Kania A, CikeŻkowski W, Piórkowski H, Oświecimska-Piasko Z, Chormański J. Recursive feature elimination and random forest classification of natura 2000 grasslands in lowland river valleys of Poland based on airborne hyperspectral and lidar data fusion. Remote Sensing 2020;12(11):1842.
DePaula G, Veloso L. Comparing market instruments for forest conservation in Brazil using farm-level census data. Environment and Development Economics 2025;30(2):1–31.
Dondini M, Martin M, De Camillis C, Uwizeye A, Soussana J-F, Robinson T, Steinfeld H. Global assessment of soil carbon in grasslands—from current stock estimates to sequestration potential. Rome, Italy: FAO Animal Production and Health Paper No. 187; 2023.
Donovan M, Pletnyakov P, Van der Weerden T, de Klein C. Quantifying spatial distributions and temporal trends of livestock populations across pastoral agroecosystems at high resolution.. Agricultural Systems 2024;221:104128.
Du Z, Yu L, Zhao Y, Li X, Liu X, Li X, Hao P, Chen Z, Guo Z, You L, Ma X, Wang H. Annual global grided livestock mapping from 1961 to 2021. Earth System Science Data 2025;17(10):5543–5556.
Ehrmann S, Meyer C. tabshiftr: reshape disorganised messy data. R package version 0.5.1. 2024.
Ehrmann S, Rümmler A. ontologics: code-logics to handle ontologies. R package version 0.7.3. 2024.
Ehrmann S, Rümmler A, Meyer C. arealDB: harmonise and integrate heterogeneous areal data. R package version 0.9.2. 2024a.
Ehrmann S, Rümmler A, Meyer C. The LUCKINet land use ontology. 2024b.
Ehrmann S, Seppelt R, Meyer C. Harmonise and integrate heterogeneous areal data with the R package arealDB. Environmental Modelling & Software 2020;133(2):104799.
FAO. Shaping the future of livestock: sustainably, responsibly, efficiently. 2018.
FAO. GLEAM 3 dashboard. Shiny Apps. 2022.
Farooq MS, Uzair M, Raza A, Habib M, Xu Y, Yousuf M, Yang SH, Ramzan Khan M. Uncovering the research gaps to alleviate the negative impacts of climate change on food security: a review. Frontiers in Plant Science 2022;13:927535.
Gábor L, Moudrý V, Lecours V, Malavasi M, Barták V, Fogl M, Šímová P, Rocchini D, Václavík T. The effect of positional error on fine scale species distribution models increases for specialist species. Ecography 2020;43(2):256–269.
Gibbs HK, Ruesch AS, Achard F, Clayton MK, Holmgren E, Ramankutty N, Foley JA. Tropical forests were the primary sources of new agricultural land in the, 1980s, and 1990s. Proceedings of the National Academy of Sciences of the United States of America 2010;107(38):16732–16737.
Greenspoon L, Krieger E, Sender R, Rosenberg Y, Bar-On YM, Moran U, Antman T, Meiri S, Roll U, Noor E, Milo R. The global biomass of wild mammals. Proceedings of the National Academy of Sciences of the United States of America 2023;120(10):e2204892120.
Hastie T, Tibshirani R, Friedman JH, Friedman JH. The elements of statistical learning: data mining, inference, and prediction. Vol. 2. Cham: Springer; 2009.
Heijmans MM, Magnússon RÍ, Lara MJ, Frost GV, Myers-Smith IH, van Huissteden J, Jorgenson MT, Fedorov AN, Epstein HE, Lawrence DM, Juul L. Tundra vegetation change and impacts on permafrost. Nature Reviews Earth & Environment 2022;3(1):68–84.
Herrero M, Mason-D’Croz D, Thornton PK, Fanzo J, Rushton J, Godde C, Bellows A, de Groot A, Palmer J, Chang J, van Zanten H, Wieland B, DeClerck F, Nordhagen S, Beal T, Gonzalez C, Gill M. Livestock and sustainable food systems: status, trends, and priority actions. Science and Innovations for Food Systems Transformation 2023;393(10184):375–399.
Herzon I, Mazac R, Erkkola M, Garnett T, Hansson H, Jonell M, Kaljonen M, Kortetmäki T, Lamminen M, Lonkila A, Niva M, Pajari A-M, Tribaldos T, Toivonen M, Tuomisto HL, Koppelmäki K, Röös E. Both downsizing and improvements to livestock systems are needed to stay within planetary boundaries. Nature Food 2024;5(8):642–645.
Ho Y-F, Grohmann CH, Lindsay J, Reuter HI, Parente L, Witjes M, Hengl T. GEDTM30: global ensemble digital terrain model at 30 m and derived multiscale terrain variables. PeerJ 2025;13(10):e19673.
Hodel L, Wegner J, Garnot VSF, Rocha-Gomes F, Valentim J, Garrett R. Spatial patterns of cattle densities across the Brazilian Amazon revealed by very high-resolution satellite imagery. Communications Sustainability 2026;1:98.
Humanitarian Data Exchange Common operational datasets—administrative boundaries. 2025. https://data.humdata.org/event/cod https://data.humdata.org/event/cod
Jamieson K, Talwalkar A. Non-stochastic best arm identification and hyperparameter optimization. Artificial Intelligence and Statistics 2016;pp. 240–248.
Kazanski CE, Balehegn M, Jones K, Bartlett H, Calle A, Garcia E, Hawkins H-J, Mayberry D, McDonald-Madden E, Odadi WO, Zionts J, Clark M, Garnett T, Herrero M, VanZanten H, Ritten J, Mallmann G, Harrison MT, Bossio D, Gennet S. Context is key to understand and improve livestock production systems. Global Food Security 2025;45(2):100840.
Kerner H, Nakalembe C, Yang A, Zvonkov I, McWeeny R, Tseng G, Becker-Reshef I. How accurate are existing land cover maps for agriculture in Sub-Saharan Africa?. Scientific Data 2024;11(1):486.
Kilibarda M, Hengl T, Heuvelink GB, Gräler B, Pebesma E, Perčec Tadić M, Bajat B. Spatio-temporal interpolation of daily temperatures for global land areas at 1 km resolution. Journal of Geophysical Research: Atmospheres 2014;119(5):2294–2313.
Kummu M, Kosonen M, Masoumzadeh Sayyar S. Downscaled gridded global dataset for gross domestic product (GDP) per capita PPP over 1990–2022. Scientific Data 2025;12(1):178.
Kummu M, Taka M, Guillaume JH. Gridded global datasets for gross domestic product and human development index over 1990–2015. Scientific Data 2018;5(1):1–15.
MacLeod M, Vellinga T, Opio C, Falcucci A, Tempio G, Henderson B, Makkar H, Mottet A, Robinson T, Steinfeld H, Gerber P. Invited review: a position on the global livestock environmental assessment model (GLEAM). Animal 2018;12(2):383–397.
Malek Ž, Romanchuk Z, Yashchun O, See L. A harmonized data set of ruminant livestock presence and grazing data for the European Union and neighbouring countries. Scientific Data 2024;11(1):1136.
Mathlouthi W, Fredette M, Larocque D. Regression trees and forests for non-homogeneous Poisson processes. Statistics & Probability Letters 2015;96:204–211.
Meisner J, Kato A, Lemerani M, Miaka EM, Ismail AT, Wakefield J, Rowhani-Rahbar A, Pigott D, Mayer J, Rabinowitz P. A time-series approach to mapping livestock density using household survey data. Scientific Reports 2022;12(1):13310.
Metzger N, Vargas-Muñoz JE, Daudt RC, Kellenberger B, Whelan TT-T, Ofli F, Imran M, Schindler K, Tuia D. Fine-grained population mapping from coarse census counts and open geodata. Scientific Reports 2022;12(1):20085.
Mgbenka RN, Mbah EN, Ezeano C. A review of smallholder farming in Nigeria: need for transformation. International Journal of Agricultural Extension and Rural Development Studies 2016;3(2):43–54.
Montesinos-Lopez OA, Montesinos-Lopez JC, Salazar E, Barron JA, Montesinos-Lopez A, Buenrostro-Mariscal R, Crossa J. Application of a Poisson deep neural network model for the prediction of count data in genome-based prediction. The Plant Genome 2021;14(3):e20118.
Moraga P. Geospatial health data: modeling and visualization with R-INLA and shiny. 2019.
Mu H, Li X, Wen Y, Huang J, Du P, Su W, Miao S, Geng M. A global record of annual terrestrial human footprint dataset from 2000 to 2018. Scientific Data 2022;9(1):176.
Ndiritu SW, Gichuki CN. Pastoralist decisions to participate in livestock marketing systems during drought seasons: evidence from Kenyan arid and semi-arid regions. Pastoralism: Research, Policy and Practice 2025;15:14333.
Nicolas G, Robinson TP, Wint GW, Conchedda G, Cinardi G, Gilbert M. Using random forest to improve the downscaling of global livestock census data. PLOS ONE 2016;11(3):e0150424.
O’Brien CM. Statistical learning with sparsity: the lasso and generalizations. 2016.
Parente L, Ehrmann S, Fritz S, Cinardi G, Wisser D, Malek Z, Perez-Guzman K, Meyer C. Global pasture watch— livestock reference samples based on multi-source sub-national census data (2000–2024) 2024a. Zenodo .
Parente L, Sloat L, Mesquita V, Consoli D, Stanimirova R, Hengl T, Bonannella C, Teles N, Wheeler I, Ehrmann S, Hunter M, Ferreira L, Mattos AP, Oliveira B, Meyer C, Şahin M, Witjes M, Fritz S, Malek Z, Stolle F. Annual 30-m maps of global grassland class and extent (2000–2022) based on spatiotemporal machine learning. Scientific Data 2024b;11:1303.
Parente L, Malek Ž, Gonzalez Fischer C. Global pasture watch—annual layers of potential land for livestock production at 1-km for 2000–2022 (including production systems). Zenodo 2025.
Pistora D. Deforestation: the elephant in the climate room: a research into the protection of forests through the lens of human rights. Utrecht Law Review 2024;20(1):80–99.
Potapov P, Hansen MC, Pickens A, Hernandez-Serna A, Tyukavina A, Turubanova S, Zalles V, Li X, Khan A, Stolle F, Harris N, Song X-P, Baggett A, Kommareddy I, Kommareddy A. The global 2000–2020 land cover and land use change dataset derived from the landsat archive: first results. Frontiers in Remote Sensing 2022a;3:856903.
Potapov P, Turubanova S, Hansen MC, Tyukavina A, Zalles V, Khan A, Song X-P, Pickens A, Shen Q, Cortez J. Global maps of cropland extent and change show accelerated cropland expansion in the twenty-first century. Nature Food 2022b;3(1):19–28.
Pradhan RK, Markonis Y, Godoy MRV, Villalba-Pradas A, Andreadis KM, Nikolopoulos EI, Papalexiou SM, Rahim A, Tapiador FJ, Hanel M. Review of GPM IMERG performance: a global perspective. Remote Sensing of Environment 2022;268(11):112754.
Raskutti G, Wainwright MJ, Yu B. Early stopping and non-parametric regression: an optimal data-dependent stopping rule. The Journal of Machine Learning Research 2014;15(1):335–366.
Reisinger A, Clark H, Cowie AL, Emmet-Booth J, Gonzalez Fischer C, Herrero M, Howden M, Leahy S. How necessary and feasible are reductions of methane emissions from livestock to support stringent temperature goals?. Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences 2021;379(2210):20200452.
Robinson TP, Thornton PK, Francesconi GN, Kruska R, Chiozza F, Notenbaert AMO, Cecchi G, Herrero MT, Epprecht M, Fritz S, You L, Conchedda G, See L. Global livestock production systems. Rome and Nairobi: FAO and ILRI; 2011.
Schultz A. Living near concentrated animal feeding operations (CAFOs) and respiratory and allergic disease: results from the survey of the health of Wisconsin 2008–2017. 2019. PhD thesis. University of Wisconsin, Madison.
Shaharum N, Shafri H, Ghani W, Samsatli S, Yusuf B, Al-Habshi M, Prince H. Image classification for mapping oil palm distribution via support vector machine using scikit-learn module. The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences 2018;42:133–137.
So B. Enhanced gradient boosting for zero-inflated insurance claims and comparative analysis of catboost, xgboost, and lightgbm. Scandinavian Actuarial Journal 2024;2024(10):1013–1035.
Stevens FR, Gaughan AE, Linard C, Tatem AJ. Disaggregating census data for population mapping using random forests with remotely-sensed and ancillary data. PLOS ONE 2015;10(2):e0107042.
Thornton PK. Livestock production: recent trends, future prospects. Philosophical Transactions of the Royal Society B: Biological Sciences 2010;365(1554):2853–2867.
Tian X, de Bruin S, Simoes R, Isik MS, Minarik R, Ho Y-F, Şahin M, Herold M, Consoli D, Hengl T. Spatiotemporal prediction of soil organic carbon density in Europe (2000–2022) using earth observation and machine learning. PeerJ 2025;13:e19605.
Tiecke TG, Liu X, Zhang A, Gros A, Li N, Yetman G, Kilic T, Murray S, Blankespoor B, Prydz EB, Dang H-AH. Mapping the world population one building at a time. 2017. ArXiv.
U.S. Department of Agriculture . National agricultural statistics service. Washington, DC: Quick Stats Lite; 2025.
Vanselow S, Schneising O, Buchwitz M, Reuter M, Bovensmann H, Boesch H, Burrows JP. Automated detection of regions with persistently enhanced methane concentrations using sentinel-5 precursor satellite data. Atmospheric Chemistry and Physics 2024;24(18):10441–10473.
Venier-Cambron C, Helm LT, Malek ž, Verburg PH. Representing justice in global land-use scenarios can align biodiversity benefits with protection from land grabbing. One Earth 2024;7(5):896–907.
Vidal-Cardos R, Fàbrega E, Dalmau A. Determining calf traceability and cow–calf relationships in extensive farming using geolocation collars and BLE ear tags. Frontiers in Animal Science 2024;5:1435729.
Wisser D, Cinardi G. GLW 4: gridded livestock density (global—2020—10 km). Rome: FAO; 2024.
Zhan N, Ye T, Herrero M, Peng J, Liu W, Ma H. Long-term ruminant livestock distribution datasets in grazing livestock production systems in China from 2000 to 2021 (CLRD-GLPS). Earth System Science Data Discussions 2024;2024:1–37.