Integrating data from multiple sources to improve species distribution models

David L Miller (@millerdl)

International Statistical Ecology Conference 2016


Slides available at http://converged.yt

Data topography

The terminology around Big Data is surprisingly bucolic.

- Maciej Ceglowski

But what should we do with all this data?

Species distribution models

Density surface models (and friends)

Smooth functions of covariates

No problem adding more and more data into this formulation (in theory), but should we?

Data "compatibility"

  • Before modelling?
    • Are counts similar in similar areas?
    • Does this matter?
  • Can we “model away” the differences?
    • Detectability for different platforms!
    • Environmental covariates?

plot of chunk unnamed-chunk-1

An example

North Atlantic right whales

plot of chunk ltdat

A common modelling strategy

  • Build a big model with mix of dynamic and physical (static) covariates
    • physical: depth, distance to isobath
    • dynamic: sea surface temperature, small critter abundance
  • Assume static variable responses don't change over time/survey

See e.g. Roberts et al (2015), Mannocci et al (under review)

Is "thowing everything in" a bad idea?

Experiment: North Atlantic right whales

  • Build a model
    • smooth of depth
    • space as proxy for everything else (for simplicity)
  • What did the depth smooths look like?
    • All together
    • Per survey

Depth smooth with all data pooled

plot of chunk fitbig-p

Smooths of depth, 1 model per survey

plot of chunk unnamed-chunk-3

They are different, so what?

A different kind of "closure"

  • Assumption is often the effects of physical features don't change
  • “Whales like depths in the range \( (a,b) \)”
  • Effect is closed under that covariate over time

“Depth is the same everywhere/everywhen”

Can we test the closure assumption?

Random effect-smoother interactions

  • smooth random effects
    • te(Depth, survey, bs=c("ts", "re"))
  • base level + deviations
    • "fs" basis (Baayen et al, 2015)
  • Variations between
    • Selecting between these options is tricky (for now)


Comparison with "big" model

plot of chunk recomp-plot

Comparison with "per-survey" models

plot of chunk recompall-plot

How is this different from a tensor product with time?

  • More computationally efficient
    • in general: \( \otimes \) \( \Rightarrow \)
  • Implicit interaction
    • “Things are different” vs. “things are different in this order”
    • No ordering
    • No isotropy wrt time

Acknowledgements

  • Eric Pedersen, Noam Ross & Gavin Simpson introduced me to these smooths.
  • Jason Roberts & Laura Mannocci inspired the pracitcal appplication.
  • Simon Wood for mgcv.
     

Summary

  • Assumption of closure under covariate effects could be a bad idea
  • Include more data (and look at its effect)
  • Many modelling options in mgcv:
    • t(effect, random_effect) (what we did here)
    • by= variables
    • "fs" basis
  • in some sense: “random effects for smooth terms”
  • Ross, Pedersen, Simpson, Miller (in prep)

Talk available at converged.yt

Going to be at ESA in Ft. Lauderdale?

1 day mgcv course

Me, Eric Pedersen, Gavin Simpson, Noam Ross

Ask me for details!

References

Baayen, R. H., van Rij, J., de Cat, C., & Wood, S. N. (2016). Autocorrelated errors in experimental data in the language sciences: Some solutions offered by Generalized Additive Mixed Models. arXiv.org.

Mannocci, L., Monestiez, P., Spitz, J., & Ridoux, V. (2015). Extrapolating cetacean densities beyond surveyed regions: habitat-based predictions in the circumtropical belt. Journal of Biogeography. http://doi.org/10.1111/jbi.12530

Mannocci, M, J Roberts, DL Miller, P Halpin. Extrapolating cetacean densities beyond surveyed regions to qualitatively assess human impacts on populations in the high seas. In review at Conservation Biology.

Roberts, J. J., Best, B. D., Mannocci, L., Fujioka, E., Halpin, P. N., Palka, D. L., et al. (2016). Habitat-based cetacean density models for the U.S. Atlantic and Gulf of Mexico. Scientific Reports, 1–12. http://doi.org/10.1038/srep22615

Slides to keep in my back pocket...

Density surface models (and friends)

  • GAMs that relate counts to smooths of environmental covariates

\[ n_j = \color{red}{A_j\hat{p}_j} \color{green}{\exp}\left[\color{grey}{ \beta_0 + \sum_k f_k(z_{kj})} \right] + \epsilon_j \]

where \( \epsilon_j \sim N(0, \sigma^2) \), \( \quad n_j\sim \) count distribution

  • \( \color{red}{\text{effective area surveyed}} \) (detectability/availability)
  • \( \color{green}{\text{(inverse) link function}} \)
  • \( \color{grey}{\text{functions of predictors}} \)

Factor-smooth interactions

  • “random effects but for smoothers”
  • base level + deviations
  • "fs" basis in mgcv
  • ?smooth.construct.fs.smooth.spec

       
    s(Depth, survey, bs="fs")