Theoretical Ecology

, Volume 12, Issue 1, pp 49–59 | Cite as

Species distribution modelling through Bayesian hierarchical approach

  • Oscar Rodríguez de RiveraEmail author
  • Marta Blangiardo
  • Antonio López-Quílez
  • Ignacio Martín-Sanz


Usually in Ecology, the availability and quality of the data is not as good as we would like. For some species, the typical environmental study focuses on presence/absence data, and particularly with small animals as amphibians and reptiles, the number of presences can be rather small. The aim of this study is to develop a spatial model for studying animal data with a low level of presences; we specify a Gaussian Markov Random Field for modelling the spatial component and evaluate the inclusion of environmental covariates. To assess the model suitability, we use Watanabe-Akaike information criteria (WAIC) and the conditional predictive ordinate (CPO). We apply this framework to model each species of amphibian and reptiles present in the Las Tablas de Daimiel National Park (Spain).


Stochastic partial differential equation Integrated nested Laplace approximation Species distribution Spatial model 


  1. Acreman M, Almagro J, Alvarez J, Bouraoui F, Bradford R, Bromley J, Croke B, Crooks S, Cruces J, Dolz J, Dunbar M, Estrela T, Fernandez-Carrasco P, Fornes J, Gustard G, Haverkamp R, De La Hera A, Hernández-Mora N, Llamas R, Martinez CL, Papamasorakis J, Ragab R, Sánchez M, Vardavas I, Webb T (2000) Groundwater and river resources programme on a European scale (GRAPES). Technical report to the European Union ENV4–CT95-0186. Institute of Hydrology, WallingfordGoogle Scholar
  2. Akaike H (1973) Information theory and an extension of the maximum likelihood principle. In: B. N. Petrov and F. Csaki (eds) Proceedings of the Second International Symposium on Information Theory. Akademiai Kiado, Budapest, pp 267–281. Reprinted in Breakthroughs in Statistics, ed. S. Kotz, 610–624. New York: Springer (1992)Google Scholar
  3. Banerjee S, Carlin B, Gelfand A (2004) Hierarchical modeling and analysis for spatial data. CRC, LondonGoogle Scholar
  4. Bishop CA, Gendron AD (1998) Reptiles and amphibians: shy and sensitive vertebrates of the Great Lakes basin and St. Lawrence river. Environ Monit Assess 53:225–244CrossRefGoogle Scholar
  5. Blangiardo M, Cameletti M (2015) Spatial and Spatio-temporal Bayesian models with R-INLA. WileyGoogle Scholar
  6. Blangiardo M, Cameletti M, Baio G, Rue H (2013) Spatial and spatio-temporal models with R-INLA. Spat Spatiotemporal Epidemiol 7:39–55CrossRefGoogle Scholar
  7. Brost BM, Hooten MB, Hanks EM, Small RJ (2015) Animal movement constraints improve resource selection inference in the presence of telemetry error. Ecology 96:2590–2597CrossRefGoogle Scholar
  8. Burger J, Snodgrass J (1998) Heavy metals in bullfrog (Rana catesbeiana) tadpoles: effects of depuration before analysis. Environ Toxicol Chem 17:2203–2209CrossRefGoogle Scholar
  9. Busby JR (1991) BIOCLIM: a bioclimatic analysis and predictive system. In: Margules C, Austin M (eds) Nature conservation: cost effective biological surveys and data analysis. CSIRO, Canberra, pp 64–68Google Scholar
  10. Chakraborty A, Gelfand AE, Wilson AM, Latimer AM, Silander JA (2010) Modeling large scale species abundance with latent spatial processes. Ann Appl Stat 4(3):1403–1429CrossRefGoogle Scholar
  11. Clark JS (2005) Why environmental scientists are becoming Bayesians. Ecol Lett 8(1):2–14CrossRefGoogle Scholar
  12. Corn SP (2005) Climate change and amphibians. Anim Biodivers Conserv 28:59–67Google Scholar
  13. Coronado R, Del Portillo F, Sáez-Royuela R (1974) Tablas de Daimiel National Park Guide. ICONA, MadridGoogle Scholar
  14. Cosandey-Godin A, Teixeira Krainski E, Worm B, Mills Flemming J (2015) Applying Bayesian spatiotemporal models to fisheries bycatch in the Canadian Arctic. Can J Fish Aquat Sci 72:1–12CrossRefGoogle Scholar
  15. Cots F, David Tàbara J, Werners S, McEvoy D (2007) Climate change and water adaptive management through transboundary cooperation. The case of the Guadiana river basin. Paper presented to the first International Conference on Adaptive and Integrative Water Management (CAIWA), Basel, Switzerland, November 2007Google Scholar
  16. Crase B, Liedloff AC, Wintle BA (2012) A new method for dealing with residual spatial autocorrelation in species distribution models. Ecography 35(10):879–888CrossRefGoogle Scholar
  17. Cressie N, Calder CA, Clark JS, Hoef JMV, Wikle CK (2009) Accounting for uncertainty in ecological analysis: the strengths and limitations of hierarchical statistical modeling. Ecol Appl 19:553–5701CrossRefGoogle Scholar
  18. Cummins CP (2003) UV-B radiation, climate change and frogs—the importance of phenology. Ann Zool Fenn 40:61–67Google Scholar
  19. de Rivera ÓRD, López-Quílez A (2017) Development and comparison of species distribution models for forest inventories. ISPRS International Journal of Geo-Information 6(6):176CrossRefGoogle Scholar
  20. Diggle P, Ribeiro PJ (2007) Model-based Geostatistics. Springer-Verlag, New YorkGoogle Scholar
  21. Dorazio RM (2014) Accounting for imperfect detection and survey bias in statistical analysis of presence-only data. Glob Ecol Biogeogr 23(12):1472–1484CrossRefGoogle Scholar
  22. Dorit, R L, Walker W F, Barnes R D (1991) Zoology. Saunders College Publishing. ISBN 978-0-03-030504-7Google Scholar
  23. Elith J, Burgman MA (2002) Predictions and their validation: rare plants in the Central Highlands, Victoria, Australia. In: Scott JM, Heglund PJ, Morrison ML, Raphael MG, Wall WA, Samson FB (eds) Predicting Species Occurrences: Issues of Accuracy and Scale. Island Press, Covelo, pp 303–314Google Scholar
  24. Elith J, Leathwick JR (2009) Species distribution models: ecological explanation and prediction across space and time. Annu Rev Ecol Evol Syst 40:677–697CrossRefGoogle Scholar
  25. Fellers GM, Mcconnell LL, Pratt D, Datta S (2004) Pesticides in mountain yellow legged frogs (Rana muscosa) from the Sierra Nevada Mountains of California, USA. Environ Toxicol Chem 23:2170–2177CrossRefGoogle Scholar
  26. Fithian W, Elith J, Hastie T, Keith DA (2015) Bias correction in species distribution models: pooling survey and collection data for multiple species. Methods Ecol Evol 6(4):424–438CrossRefGoogle Scholar
  27. Geisser S, Eddy W (1979) A predictive approach to model selection. J Am Stat Assoc 74:153–160CrossRefGoogle Scholar
  28. Gelfand AE, Silander JA, Wu SJ, Latimer AM, Rebelo PLAG, Holder M (2006) Explaining species distribution patterns through hierarchical modeling. Bayesian Anal 1(1):41–92CrossRefGoogle Scholar
  29. Gelfand AE, Diggle P, Fuentes M, Guttorp P (eds) (2010) Handbook of spatial statistics. Chapman & Hall, Boca-RatonGoogle Scholar
  30. Gelman A, Shalizi C (2013) Philosophy and the practice of Bayesian statistics (with discussion). Br J Math Stat Psychol 66:8–80CrossRefGoogle Scholar
  31. Gendron AD, Marcogliese DJ, Barbeau S, Christin MS, Brousseau P, Ruby S, Cyr D, Fournier M (2006) Exposure of leopard frogs to a pesticide mixture affects life history characteristics of the lungworm Rhabdias ranae. Oecologia 135:469–476CrossRefGoogle Scholar
  32. Gibbons JW, Stangel PW (eds) (1999) Conserving amphibians and reptiles in the new millenium. Proceedings of the Partners in Amphibian and Reptile Conservation (PARC). Conference; 2–4 June 1999; Atlanta (GA).Aiken (SC): Savannah River Ecology Laboratory. Herp Outreach Publication #2Google Scholar
  33. Gibbons JW, Scott DE, Ryan TJ, Buhlmann KA, Tuberville TD, Metts BS, Greene JL, Mills T, Leiden Y, Poppy S, Winne CT (2000) The global decline of reptiles, Déjà vu amphibians. BioScience 50(8):653–666CrossRefGoogle Scholar
  34. Gneiting T, Raftery AE (2007) Strictly proper scoring rules, prediction, and estimation. J Am Stat Assoc 102(477):359–378CrossRefGoogle Scholar
  35. Golding N, Purse BV (2016) Fast and flexible Bayesian species distribution modelling using Gaussian processes. Methods Ecol Evol 7(5):598–608CrossRefGoogle Scholar
  36. Guisan A, Thuiller W (2005) Predicting species distribution: offering more than simple habitat models. Ecol Lett 8:993–1009CrossRefGoogle Scholar
  37. Guisan A, Edwards TC, Hastie T (2002) Generalized linear and generalized additive models in studies of species distributions: setting the scene. Ecol Model 157:89–100CrossRefGoogle Scholar
  38. Haining R, Law J, Maheswaran R, Pearson T, Brindley P (2007) Bayesian modelling of environmental risk: a small area ecological study of coronary heart disease mortality in relation to modelled outdoor nitrogen oxide levels. Stoch Env Res Risk A 21(5):501–509CrossRefGoogle Scholar
  39. Hatch AC, Blaustein AR (2003) Combined effects of UV-B radiation and nitrate fertilizer on larval amphibians. Ecol Appl 13:1083–1093CrossRefGoogle Scholar
  40. Hefley TJ, Hooten MB (2016) Hierarchical species distribution models. Current Landscape Ecology Reports 1(2):87–97CrossRefGoogle Scholar
  41. Henry PFP (2000) Aspects of amphibian anatomy and physiology: Society of Environmental Toxicology and Chemistry, 71–110Google Scholar
  42. Hijman R, Graham C (2006) The ability of climate envelope models to predict the effect of climate change on species distributions. Glob Chang Biol 12(12):2272–2281CrossRefGoogle Scholar
  43. Hijmans RJ, Elith J (2015) Species distribution modelling with R., The R foundation for statistical computing
  44. Hooten MB, Wikle CK (2008) A hierarchical Bayesian non-linear spatio-temporal model for the spread of invasive species with application to the Eurasian collared-dove. Environ Ecol Stat 15(1):59–70CrossRefGoogle Scholar
  45. Hooten MB, Wikle CK, Dorazio RM, Royle JA (2007) Hierarchical spatiotemporal matrix models for characterizing invasions. Biometrics 63(2):558–567CrossRefGoogle Scholar
  46. Huang J, Ling CX (2005) Using AUC and accuracy in evaluating learning algorithms. IEEE Trans Knowl Data Eng 17(3):299–310CrossRefGoogle Scholar
  47. Hui FK (2016) Boral–Bayesian ordination and regression analysis of multivariate abundance data in R. Methods Ecol Evol 7(5):744–750CrossRefGoogle Scholar
  48. Hurlbert SH (1984) Pseudoreplication and the design of ecological field experiments. Ecol Monogr 54:187–211CrossRefGoogle Scholar
  49. IGME (Instituto Geológico y Minero de España) (2017) Date visited: 01/03/2017
  50. Illian JB, Martino S, Sørbye SH, Gallego-Fernández JB, Zunzunegui M, Esquivias MP, Travis JMJ (2013) Fitting complex ecological point process models with integrated nested Laplace approximation. Methods Ecol Evol 4:305–315. CrossRefGoogle Scholar
  51. Johnson DS, Hooten MB, Kuhn CE (2013) Estimating animal resource selection from telemetry data using point process models. J Anim Ecol 82(6):1155–1164CrossRefGoogle Scholar
  52. Kery M, Schaub M (2011) Bayesian population analysis using WinBUGS: a hierarchical perspective. Academic Press, BurlingtonGoogle Scholar
  53. Latimer AM, Wu SS, Gelfand AE, Silander JA (2006) Building statistical models to analyze species distributions. Ecol Appl 16(1):33–50CrossRefGoogle Scholar
  54. Leathwick JR, Rowe D, Richardson J, Elith J, Hastie T (2005) Using multivariate adaptive regression splines to predict the distributions of New Zealand’s freshwater diadromous fish. Freshw Biol 50:2034–2052CrossRefGoogle Scholar
  55. Lecours V (2017) On the use of maps and models in conservation and resource management (warning: results may vary). Front Mar Sci 4:288CrossRefGoogle Scholar
  56. Li L, Qiu S, Zhang B, Feng CX (2015) Approximating cross-validatory predictive evaluation in Bayesian latent variable model with integrated IS and WAIC. Stat Comput 26:881–897. CrossRefGoogle Scholar
  57. Lindgren F, Rue H (2013) Bayesian spatial and spatio-temporal modelling with R-INLA. J Stat SoftwGoogle Scholar
  58. Lindgren F, Rue H, Lindström J (2011) An explicit link between Gaussian fields and Gaussian Markov random fields: the stochastic partial differential equation approach [with discussion]. J R Stat Soc B 73(4):423–498CrossRefGoogle Scholar
  59. Loarie SR, Carter BE, Hayhoe K, McMahon S, Moe R, Knight CA, Ackerly DD (2008) Climate change and the future of Californias endemic flora. PLoS One 3(6):e2502CrossRefGoogle Scholar
  60. MacKenzie DI, Nichols JD, Lachman GB, Droege S, Royle JA, Langtimm CA (2002) Estimating site occupancy rates when detection probabilities are less than one. Ecology 83:2248–2255CrossRefGoogle Scholar
  61. MacKenzie DI, Nichols JD, Royle JA, Pollock KH, Bailey LL, Hines JE (2006) Occupancy estimation and modeling inferring patterns and dynamics of species occurrence. Academic PressGoogle Scholar
  62. Meehan TD, Michel NL, Rue H (2017) Estimating animal abundance with N-mixture models using the R-INLA package for R arXiv preprint arXiv:1705.01581Google Scholar
  63. Midgley GF, Thuiller W (2007) Potential vulnerability of Namaqualand plant diversity to anthropogenic climate change. J Arid Environ 70:615–628CrossRefGoogle Scholar
  64. Muñoz F, Pennino MG, Conesa D, López-Quílez A, Bellido JM (2013) Estimation and prediction of the spatial occurrence of fish species using Bayesian latent Gaussian models. Stoch Environ Res Risk Assess 27:1171–1180CrossRefGoogle Scholar
  65. Navarro V, García B, Sánchez D, Asensio L (2011) An evaluation of the application of treated sewage effluents in Las Tablas de Daimiel National Park, Central Spain. J Hydrol 401:53–64CrossRefGoogle Scholar
  66. Osborne PE, Foody GM, Suárez-Seoane S (2007) Non-stationarity and local approaches to modelling the distributions of wildlife. Divers Distrib 13(3):313–323CrossRefGoogle Scholar
  67. Ovaskainen O, Soininen J (2011) Making more out of sparse data: hierarchical modeling of species communities. Ecology 92(2):289–295CrossRefGoogle Scholar
  68. Pettit LI (1990) The conditional predictive ordinate for the normal distribution. J R Stat Soc Ser B 52(1):175–184Google Scholar
  69. Piha H, Luoto M, Merilä J (2007) Amphibian occurrence is influenced by current and historic landscape characteristics. Ecol Appl 17(8):2298–2309CrossRefGoogle Scholar
  70. Pressey RL, Cabeza M, Watts EM, Cowling RM, Wilson KA (2007) Conservation planning in a changing world. Trends Ecol Evol 22:583–592CrossRefGoogle Scholar
  71. Qiao H, Soberón J, Peterson AT (2015) No silver bullets in correlative ecological niche modelling: insights from testing among many potential algorithms for niche estimation. Methods Ecol Evol 6(10):1126–1136. CrossRefGoogle Scholar
  72. R Core Team (2016) R: a language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria.
  73. Roos M, Held L (2011) Sensitivity analysis in Bayesian generalized linear mixed models for binary data. Bayesian Anal 6(2):259–278CrossRefGoogle Scholar
  74. Royle JA (2004) N-mixture models for estimating population size from spatially replicated counts. Biometrics 60:108–115CrossRefGoogle Scholar
  75. Royle JA, Dorazio RM (2008) Hierarchical modeling and inference in ecology: the analysis of data from populations, metapopulations and communities. Academic PressGoogle Scholar
  76. Royle JA, Kery M, Gautier R, Schmidt H (2007) Hierarchical spatial models of abundance and occurrence from imperfect survey data. Ecol Monogr 77:465–481CrossRefGoogle Scholar
  77. Rue H, Martino S, Chopin N (2009) Approximate Bayesian inference for latent Gaussian models using integrated nested Laplace approximations (with discussion). J R Stat Soc Ser B 71:319–392CrossRefGoogle Scholar
  78. Russell JC, Hanks EM, Haran M (2016) Dynamic models of animal movement with spatial point process interactions. J Agric Biol Environ Stat 21(1):22–40CrossRefGoogle Scholar
  79. Sánchez-Ramos D, Sánchez-Emeterio G, Florín Beltrán M (2015) Changes in water quality of treated sewage effluents by their receiving environments in Tablas de Daimiel National Park, Spain. Environ Sci Pollut Res 23:6082–6090. CrossRefGoogle Scholar
  80. Simpson D, Lindgren F, Rue H (2011) Fast approximate inference with INLA: the past, the present and the future. Technical report at
  81. Sower SA, Reed KL, Babbitt KJ (2000) Limb malformations and abnormal sex hormone concentrations in frogs. Environ Health Perspect 108:1085–1090CrossRefGoogle Scholar
  82. Sparling DW, Linder G, Bishop CA (eds) (2000) Ecotoxicology of amphibians and reptiles. Society of Environmental Toxicology and Chemistry (SETAC), Pensacola, pp 71–111Google Scholar
  83. Spiegelhalter DJ, Best NG, Carlin BP, van der Linde A (2002) Bayesian measures of model complexity and fit (with discussion). J R Stat Soc Ser B 64(4):583–616CrossRefGoogle Scholar
  84. Stuart S, Chanson JS, Cox NA, Young BE, Rodrigues ASL, Fishman DL, Waller RW (2004) Status and trends of amphibian declines and extinctions worldwide. Science 306:1783–1786CrossRefGoogle Scholar
  85. Underwood AJ (1981) Techniques of analysis of variance in marine biology and ecology. Oceanogr Mar Biol Annu Rev 19:513–605Google Scholar
  86. van der Linde A (2005) DIC in variable selection. Statistica Neerlandica 59(1):45–56CrossRefGoogle Scholar
  87. Vehtari A, Lampinen J (2002) Bayesian model assessment and comparison using cross validation predictive densities. Neural Comput 14:2439–2468CrossRefGoogle Scholar
  88. Wade PR (2000) Bayesian methods in conservation biology. Conserv Biol 14(5):1308–1316. CrossRefGoogle Scholar
  89. Warton DI, Blanchet FG, O’Hara RB, Ovaskainen O, Taskinen S, Walker SC, Hui FK (2015) So many variables: joint modeling in community ecology. Trends Ecol Evol 30(12):766–779CrossRefGoogle Scholar
  90. Watanabe S (2010) Asymptotic equivalence of Bayes cross validation and widely applicable information criterion in singular learning theory. J Mach Learn Res 11:3571–3594Google Scholar
  91. Wikle CK (2003) Hierarchical Bayesian models for predicting the spread of ecological processes. Ecology 84(6):1382–1394CrossRefGoogle Scholar
  92. Wintle BA, McCarthy MA, Volinsky CT, Kavanagh RP (2003) The use of Bayesian model averaging to better represent uncertainty in ecological models. Conserv Biol 17(6):1579–1590. CrossRefGoogle Scholar
  93. Wisz MS, Hijmans RJ, Li J, Peterson AT, Graham CH, Guisan A (2008) Effects of sample size on the performance of species distribution models. Divers Distrib 14:763–773CrossRefGoogle Scholar
  94. Yustres A, Navarro V, Asensio L, Candel M, García B (2013) Groundwater resources in the Upper Guadiana Basin (Spain): a regional modelling analysis. Hydrogeol J 21(5):1129–1146CrossRefGoogle Scholar

Copyright information

© Springer Nature B.V. 2018

Authors and Affiliations

  1. 1.Departament d’Estadística i I.OUniversitat de ValenciaBurjassotSpain
  2. 2.MRC Centre for Environment and Health, Department of Epidemiology and BiostatisticsImperial College LondonLondonUK
  3. 3.Departament Sistemas y Recursos Naturales, ETSI de Montes, Forestal y del Medio NaturalUniversidad Politécnica de MadridMadridSpain

Personalised recommendations