GlobalSurgeML

Model Introduction

GlobalSurgeML simulates daily maximum storm surge from wind fields, mean sea-level pressure, sea-surface temperature, and precipitation around tide gauges. It applies PCA to reduce multicollinearity in gridded predictors, then uses stepwise multiple linear regression or random forests to map station-level features to daily maximum non-tidal residuals in meters, providing a computationally efficient approach for long-period and large-scale storm-surge simulation.

Paper: Data-Driven Modeling of Global Storm Surges
https://doi.org/10.3389/fmars.2020.00260

Model Description

The method was proposed by researchers from the University of Central Florida and Universidad de Cantabria. The paper trained and validated models using GESLA-2 tide gauges, CCMP, 20CRV2c, Microwave OI SST, GPCP, ERA-Interim, and GTSR. It supports daily maximum storm-surge regression at quasi-global tide gauges, extreme-event evaluation, and comparison with the GTSR hydrodynamic reanalysis.

Use Cases

Use Case Description
Daily maximum surge simulation Estimate the daily maximum non-tidal residual from PCA features of meteorological and oceanographic predictors around a station.
Lagged forcing Use 6-hourly inputs and wind/pressure information up to 30 hours before surge occurrence.
Method comparison Compare stepwise linear regression, random forests, remote-sensing inputs, and ERA-Interim inputs across six configurations.
ModelScope/OneCode execution Validate training, inference, evaluation, visualization, and checkpoint workflows in ModelScope or OneCode.
Multi-GPU training Launch distributed data-parallel optimization of the linear models with torchrun.

Usage Instructions

1.OneCode

Experience intelligent, one-click AI4S programming through the OneCode online environment:

Try intelligent, one-click AI4S programming

2. Download and Installation

hf download OneScience-Group/GlobalSurgeML --local-dir ./GlobalSurgeML
cd GlobalSurgeML

Environment Dependencies

Hardware Requirements

  • A GPU or DCU is recommended.
  • A CPU can be used for connectivity validation with the default small-sample configuration.
  • DCU users must install DTK in advance. DTK 25.04.2 or later, or the OneScience-recommended version matching the current cluster, is recommended.

DCU Environment

# Activate DTK and Conda first
conda create -n onescience311 python=3.11 -y
conda activate onescience311
pip install onescience[earth-dcu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai

GPU Environment

# Activate Conda first
conda create -n onescience311 python=3.11 -y libstdcxx-ng=12 libgcc-ng=12 gcc_linux-64=12 gxx_linux-64=12
conda activate onescience311
pip install onescience[earth-gpu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai

Training Data

This repository uses a small number of synthetic station-day records to validate the engineering workflow.

The synthetic data combines persistent weather states, a seasonal cycle, latitude effects, and nonlinear cyclone forcing to produce correlated features and surge targets rather than unrelated random noise. It preserves the approximate 50/300-dimensional configurations in paper Table 1. The paper also states that local raw grids may contain up to about 5,000 variables and generally retain 300 to 500 PCs at 90% explained variance, so no single fixed raw spatial tensor applies to every station. Synthetic results validate only the core method and engineering workflow; they do not represent the official data distribution or training scale.

python scripts/fake_data.py

Training

python scripts/train.py

For multi-GPU training, use:

torchrun --nproc_per_node=8 --nnodes=1 --rdzv_id=1000 --rdzv_backend=c10d --max_restarts=0 --master_addr="localhost" --master_port=29500 scripts/train.py

The default engineering configuration preserves all four 50/300-dimensional inputs and the scalar output while reducing the sample count, maximum selected linear features, and random-forest depth. Formal experiments should rerun station-wise PCA, 10-fold cross-validation, and six-configuration majority-metric selection on complete real records.

result/checkpoints/globalsurgeml.pt
result/training/metrics.json

Trained Weights

No weights are bundled under weight/. The paper and its supplementary material do not provide a confirmed official model checkpoint. The generated checkpoint uses this independent PyTorch/scikit-learn engineering format and is not claimed to be compatible with external weights.

Inference

python scripts/inference.py

Inference loads globalsurgeml.pt, restores all six configurations, and runs them on the four station-day PCA inputs. The complete numerical output includes six daily maximum surge predictions, observed targets, the GTSR baseline, timestamps, and station coordinates in result/output/predictions.npz.

Evaluation and Visualization

python scripts/result.py

Evaluation follows the paper by computing Pearson correlation, RMSE, NSE, and relative RMSE, separately evaluating extreme surges above the observed 95th percentile and separating tropical from subtropical/extratropical samples by latitude. It saves result/evaluation/metrics.json and generates the surge-series and observed-versus-modeled plot result/evaluation/comparison.png. Synthetic-data results validate only the engineering workflow and do not represent paper performance on real test data.

Official OneScience Information

Citation and License

This repository is an independent engineering reproduction of the public GlobalSurgeML paper specifications.

Use of this repository's code, official model weights, and data remains subject to the licenses and terms of their respective projects.


中文说明

模型简介

GlobalSurgeML 利用验潮站周围的风场、平均海平面气压、海表温度和降水模拟日最大风暴潮。该模型先使用 PCA 降低网格预测因子之间的多重共线性,再通过逐步多元线性回归或随机森林将站点特征映射到以米为单位的日最大非潮汐残差,为长时段、大范围的风暴潮模拟提供计算高效的方法。

论文《全球风暴潮的数据驱动建模》
https://doi.org/10.3389/fmars.2020.00260

模型描述

该方法由中佛罗里达大学和坎塔布里亚大学的研究人员提出。论文使用 GESLA-2 验潮站数据以及 CCMP、20CRV2c、Microwave OI SST、GPCP、ERA-Interim 和 GTSR 训练和验证模型。该方法支持近全球验潮站的日最大风暴潮回归、极端事件评估以及与 GTSR 水动力再分析(reanalysis)的比较。

使用场景

使用场景 说明
日最大风暴潮模拟 利用站点周围气象和海洋预测因子的 PCA 特征估算日最大非潮汐残差。
滞后强迫 使用 6 小时间隔的输入,以及风暴潮发生前最多 30 小时的风场与气压信息。
方法比较 在六种配置下比较逐步线性回归、随机森林、遥感(remote sensing)输入和 ERA-Interim 输入。
ModelScope/OneCode 运行 在 ModelScope 或 OneCode 中验证训练、推理(inference)、评估、可视化及模型权重(检查点)(checkpoint)流程。
多 GPU 训练 使用 torchrun 启动线性模型的分布式数据并行优化。

使用说明

1.OneCode

通过 OneCode 在线环境体验智能一键 AI4S 编程。

体验智能一键 AI4S 编程

2. 下载与安装

hf download OneScience-Group/GlobalSurgeML --local-dir ./GlobalSurgeML
cd GlobalSurgeML

环境依赖

硬件要求

  • 建议使用 GPU 或 DCU。
  • 可使用 CPU 在默认小样本配置下验证连通性。
  • DCU 用户必须提前安装 DTK。建议使用 DTK 25.04.2 或更高版本,或使用 OneScience 推荐的与当前集群匹配的版本。

DCU 环境

# Activate DTK and Conda first
conda create -n onescience311 python=3.11 -y
conda activate onescience311
pip install onescience[earth-dcu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai

GPU 环境

# Activate Conda first
conda create -n onescience311 python=3.11 -y libstdcxx-ng=12 libgcc-ng=12 gcc_linux-64=12 gxx_linux-64=12
conda activate onescience311
pip install onescience[earth-gpu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai

训练数据

本仓库使用少量按站点和日期生成的合成记录来验证工程流程。

合成数据结合持续性天气状态、季节周期、纬度效应和非线性气旋强迫,以生成相关的特征和风暴潮目标值,而非彼此无关的随机噪声。合成数据保留论文表 1 中约为 50/300 维的配置。论文还指出,局部原始网格可能包含多达约 5,000 个变量,在解释方差达到 90% 时通常保留 300 到 500 个主成分,因此没有适用于所有站点的统一固定原始空间张量。合成数据结果仅验证核心方法和工程流程,不代表官方数据分布或训练规模。

python scripts/fake_data.py

训练

python scripts/train.py

多 GPU 训练使用以下命令。

torchrun --nproc_per_node=8 --nnodes=1 --rdzv_id=1000 --rdzv_backend=c10d --max_restarts=0 --master_addr="localhost" --master_port=29500 scripts/train.py

默认工程配置保留全部四种 50/300 维输入以及标量输出,同时减少样本数、线性特征选择数量上限和随机森林深度。正式实验应在完整的真实记录上重新执行逐站 PCA、10 折交叉验证和基于多数指标的六配置筛选。

result/checkpoints/globalsurgeml.pt
result/training/metrics.json

训练权重

weight/ 中未附带权重。论文及其补充材料未提供经确认的官方模型权重(检查点)。生成的模型权重(检查点)采用本独立 PyTorch/scikit-learn 工程实现的格式,未声明与外部权重兼容。

推理

python scripts/inference.py

推理加载 globalsurgeml.pt,恢复全部六种配置并在四种按站点和日期构建的 PCA 输入上运行。完整数值输出在 result/output/predictions.npz 中,包括六组日最大风暴潮预测、观测目标、GTSR 基线、时间戳和站点坐标。

评估与可视化

python scripts/result.py

评估遵循论文方法,计算 Pearson 相关系数、RMSE、NSE 和相对 RMSE,单独评估高于观测值第 95 百分位数的极端风暴潮,并按纬度区分热带与副热带/热带外样本。评估保存 result/evaluation/metrics.json,并生成风暴潮序列及观测与模拟对比图 result/evaluation/comparison.png。合成数据结果仅验证工程流程,不代表论文在真实测试数据上的性能。

OneScience 官方信息

引用与许可证

本仓库是对 GlobalSurgeML 论文公开规范的独立工程复现。

使用本仓库的代码、官方模型权重和数据仍须遵守各自项目的许可证和条款。

Downloads last month
17
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support