Data and code for: Predicting Seagrass Loss from Oceanographic Time Series with Deep Learning

Published: 1 November 2026| Version 1 | DOI: 10.17632/986mvdksc8.1
Contributors:
,

Description

This record contains the input data and the complete analysis code for the article "Predicting Seagrass Loss from Oceanographic Time Series with Deep Learning", which predicts cell-level seagrass loss in Chesapeake Bay and Tampa Bay from multi-month sequences of hydrodynamic model output. Data: Repeated seagrass-cover maps were converted to a regular grid: 500 m cells in Chesapeake Bay from the Virginia Institute of Marine Science submerged aquatic vegetation surveys of 2019-2022, and 152.4 m cells in Tampa Bay from the Southwest Florida Water Management District seagrass maps of 2020 and 2022. Each eligible cell is paired with a 24-month sequence of 14 channels summarizing water temperature, salinity, sea-surface height, and current velocity, extracted from the NOAA Chesapeake Bay and Tampa Bay Operational Forecast Systems. The deposited files are the two per-cell cover tables and the two assembled sequence tensors used to fit the models. Both tensors contain exactly the months the article models, July 2019 through June 2022 for Chesapeake Bay and August 2020 through July 2022 for Tampa Bay. Code: The package reproduces the full chain: downloading and gridding the seagrass maps, extracting and summarizing the hydrodynamic sequences, training the prototype-based bidirectional gated recurrent unit under both loss definitions, the perturbation analysis, and every table and figure in the article. Loss is defined two ways, as a 25-percentage-point absolute decline and as a 25% decline relative to initial cover, and both are reported throughout. Model selection and threshold calibration use spatially grouped out-of-fold predictions. See README.md for the order in which to run the scripts and for the source URLs of the raw maps, which are redistributed by their original providers rather than included here. The package also includes the 60 fitted models behind the reported performance tables and a script that scores the held-out cells with them.

Files

Steps to reproduce

Install the pinned dependencies from requirements.txt under Python 3.13, then follow README.md, which lists the scripts in the order they must run: download the seagrass maps from the provider URLs given there, build the per-cell cover tables, extract the hydrodynamic sequences from the NOAA THREDDS servers, then run the two bay pipelines and the figure scripts. The deposited model-input files let you skip straight to the pipelines if you do not want to re-download the raw maps or re-extract the sequences.

Institutions

Categories

Physical Oceanography, Seagrass, Coastal Ecology, Deep Learning

Funders

  • Collaborative for Bioregional Action Learning & Transformation (COBALT)

Licence