James-Thorson-NOAA / VAST

Spatio-temporal analysis of univariate or multivariate data, e.g., standardizing data for multiple species or stages
http://www.FishStats.org
GNU General Public License v3.0
124 stars 54 forks source link

adding spatial exclusion zones #145

Closed Craig44 closed 3 years ago

Craig44 commented 5 years ago

Hi there,

I am curious to know if there are any functions or if anyone has had any success in adding exclusion areas in the middle of grid? for example an island, this relates to an earlier issue #92. Also related is a recent presentation by Hans Skaug

Cheers

agruss2 commented 5 years ago

I think that a solution would be to implement soap film smoothers in VAST - I think that @James-Thorson recently mentioned this idea. For more information on soap smoothers, see:

Craig44 commented 5 years ago

Thanks @agruss2 . I was thinking that, but just checking no one had already implemented it.

James-Thorson commented 5 years ago

Craig,

my understanding is that soap-film smoothers impose a constraint on the boundaries, and I've never been convinced that marine boundaries have any obvious constraints. So I've never been that motivated to explore them. However, there's a few issues we can address:

  1. If you're concerned with avoiding area-expansion of indices/derived-quanties into some exclosures (islands, MPAs, etc), then this can be accomplished by properly specifying the "extrapolation grid" such that it doesn't include those areas.

  2. If you're concerned about spatial correlations proceeding over land (i.e., when modelling marine areas around an island), then we're developing code to have covariates on the spatial correlation parameters, i.e., where kappa (decorrelation rate) approaches Inf from below, such that correlations are negligible over land.

Are you specifically interested in one or the other?

Craig44 commented 5 years ago

Thanks for the response, I was concerned with the latter of those two options, so thanks for pointing out the component I need to dig into. Could you give any guidance on applying the approach mentioned above?

jkbest2 commented 5 years ago

Hi Craig,

Jim looped me in on this as I've been doing some related work. Probably the best reference I've seen is Bakka et al. 2016. They use the SPDE method to decorrelate more quickly over barriers. This is a type of nonstationarity in the spatial field. Hans's presentation mentions that just using equation 22 from Lindgren et al. 2011 doesn't work. This equation just says that you can do a log-regression on the covariance parameters to achieve some nonstationarity in the spatial field. I was hoping to explore this for barriers (i.e. using an indicator variable for the barrier and adjusting the decorrelation distance through that), but I haven't quite gotten there yet.

At this point, I think your best bet is probably to use the barrier functions in the inla package (e.g. inla.barrier.fem to get the relevant FEM matrices. These can then be passed to TMB as sparse matrices and be used to form the precision matrix of the spatial field. A couple caveats with this:

  1. I'm not positive this will work, as I don't know exactly how the barrier method is implemented in INLA. The INLA folks have always been helpful to me on their mailing list, so it could be worth asking there if these matrices can be exported the same as for a stationary field.
  2. I'm not sure the best way to pass these into VAST, but that's a better question for @James-Thorson .
James-Thorson-NOAA commented 3 years ago

Just a quick note that the barrier-SPDE option is now available in VAST. It is currently undergoing testing by Cecilia O'Leary. VAST can also exclude some areas through user-controlled specification of the extrapolation-grid, either by specifying a shapefile or a data-frame representing extrapolation-points.