PINN-TC
Model Introduction
PINN-TC reconstructs three-dimensional tropical-cyclone wind and pressure-related fields from sparse flight, dropsonde, or simulated observations, using physical equations to constrain unobserved regions for vortex initialization and data-assimilation research.
Paper: Realistic tropical cyclone wind and pressure fields can be reconstructed from sparse data using deep learning
https://doi.org/10.1038/s43247-023-01144-2
Model Description
The method was proposed by research teams at Princeton University, the California Institute of Technology, Stanford University, and NOAA's Geophysical Fluid Dynamics Laboratory. The paper trains and validates the method with Hurricane Ida T-SHiELD simulations and NOAA/AOML flight-level, dropsonde, and Tail Doppler Radar observations. It is intended for sparse tropical-cyclone wind and geopotential reconstruction, physics-consistent constraints, and vortex-initialization research.
Use Cases
| Use Case | Description |
|---|---|
| Tropical-cyclone reconstruction | Reconstruct wind, geopotential, and pressure-vertical-velocity fields from sparse coordinate observations. |
| Physics-informed constraints | Constrain unobserved regions with horizontal momentum and pressure-continuity equations. |
| ModelScope/OneCode execution | Validate sparse sampling, training, full-grid inference, scientific metrics, and visualization in ModelScope or OneCode environments. |
| Multi-GPU training | Launch distributed data-parallel training through 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/PINN-TC --local-dir ./PINN-TC
cd PINN-TC
Environment Dependencies
Hardware Requirements
- A GPU or DCU is recommended.
- A CPU can be used to validate the workflow 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
pip install numpy pyyaml matplotlib
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
pip install numpy pyyaml matplotlib
Training Data
Training data consist of tropical-cyclone simulation fields and sparse observations containing storm-centered coordinates, horizontal winds, and geopotential. Model inputs are [y,x,t,p] coordinates, and targets are winds and geopotential at the same locations, while vertical velocity is constrained by the physical equations. The data cover a ±400 km horizontal domain, 150-900 hPa, and observation times at -3/0/+3 h. This repository uses a small number of synthetic samples to validate training, inference, and evaluation; they do not represent the official T-SHiELD or NOAA distribution, training scale, or formal paper performance.
python scripts/fake_data.py --force
Training
For single-device training, use:
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
Training jointly optimizes observational data loss and PDE residuals from the beta-plane horizontal momentum equations and the pressure-coordinate continuity equation. The checkpoint at result/checkpoints/pinn-tc.pt contains model state, model configuration, data format version, Adam/L-BFGS states, training history, and completed-step state.
Trained Weights
This repository does not bundle official paper weights, and no confirmed official checkpoint is available in the public resources. Running the training script produces a local engineering checkpoint, but no compatibility with external weights or equivalence to paper training results is claimed.
Inference
python scripts/inference.py
Inference loads the trained checkpoint and generates complete three-dimensional wind, geopotential, and pressure-vertical-velocity fields from sparse tropical-cyclone observation coordinates and physical constraints. Complete numerical results are saved to result/output/predictions.npz.
Evaluation and Visualization
python scripts/result.py
Evaluation computes wind-speed RMSE, Pearson correlation, PDE residuals, and radial RMSE as aggregates over the three observation times; it saves neither per-class metrics nor separate per-time metrics. It also generates a four-panel comparison of sparse observations, target wind speed, predicted wind speed, and error. Synthetic-data results validate the engineering workflow only and do not represent formal paper performance.
Official OneScience Information
| Platform | OneScience Main Repository | Skills Repository |
|---|---|---|
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
Citation and License
This repository is an independent engineering reproduction of the public PINN-TC specifications.
Use of this repository's code, official model weights, and data remains subject to the licenses and terms of their respective projects.
中文说明
模型简介
PINN-TC 根据稀疏的飞行观测、下投探空仪观测或模拟观测重建三维热带气旋风场及气压相关场,并以物理方程约束未观测区域,用于涡旋初始化和资料同化(data assimilation)研究。
论文:利用深度学习从稀疏数据重建逼真的热带气旋风场和气压场
https://doi.org/10.1038/s43247-023-01144-2
模型描述
方法由普林斯顿大学、加州理工学院、斯坦福大学及 NOAA 地球物理流体动力学实验室的研究团队提出。论文使用 Hurricane Ida 的 T-SHiELD 模拟和 NOAA/AOML 的飞行高度观测、下投探空仪及 Tail Doppler Radar 观测训练并验证方法。其研究用途包括基于稀疏数据重建热带气旋风场及位势场、施加物理一致性约束和涡旋初始化。
使用场景
| 使用场景 | 说明 |
|---|---|
| 热带气旋重建 | 根据稀疏坐标观测重建风场、位势及气压坐标下的垂直速度场。 |
| 物理信息约束 | 使用水平动量方程与气压坐标连续方程约束未观测区域。 |
| ModelScope/OneCode 运行 | 在 ModelScope 或 OneCode 环境中验证稀疏采样、训练、完整网格推理(inference)、科学指标及可视化。 |
| 多 GPU 训练 | 通过 torchrun 启动分布式数据并行训练。 |
使用指南
1.OneCode
通过 OneCode 在线环境体验智能一键 AI4S 编程。
2. 下载与安装
hf download OneScience-Group/PINN-TC --local-dir ./PINN-TC
cd PINN-TC
环境依赖
硬件要求
- 建议使用 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
pip install numpy pyyaml matplotlib
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
pip install numpy pyyaml matplotlib
训练数据
训练数据由热带气旋模拟场和稀疏观测组成,包含以风暴为中心的坐标、水平风及位势。模型以 [y,x,t,p] 坐标为输入,目标为同一位置的风及位势,垂直速度受物理方程约束。数据覆盖 ±400 km 水平区域、150-900 hPa 及 -3/0/+3 h 观测时刻。本仓库使用少量合成样本验证训练、推理和评估。这些样本无法代表官方 T-SHiELD 或 NOAA 的分布、训练规模或论文正式性能。
python scripts/fake_data.py --force
训练
单设备训练
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
训练联合优化观测数据损失,以及来自 β 平面水平动量方程和气压坐标连续方程的 PDE 残差。result/checkpoints/pinn-tc.pt 中的模型权重(检查点)(checkpoint)包含模型状态、模型配置、数据格式版本、Adam/L-BFGS 状态、训练历史和已完成步数状态。
训练权重
本仓库未附带论文官方权重,公开资源中也没有已确认的官方模型权重(检查点)。运行训练脚本会生成本地工程模型权重(检查点),其与外部权重的兼容性及与论文训练结果的一致性均未声明。
推理
python scripts/inference.py
推理加载训练得到的模型权重(检查点),根据稀疏的热带气旋观测坐标和物理约束生成完整的三维风场、位势及气压坐标下的垂直速度场。完整数值结果保存到 result/output/predictions.npz。
评估与可视化
python scripts/result.py
评估汇总三个观测时刻的风速 RMSE、Pearson 相关系数、PDE 残差及径向 RMSE,不保存逐类别指标或单独的逐时刻指标。评估还生成四面板对比图,呈现稀疏观测、目标风速、预测风速和误差。合成数据结果仅用于验证工程流程,无法代表论文正式性能。
OneScience 官方信息
| 平台 | OneScience 主仓库 | Skills 仓库 |
|---|---|---|
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
引用与许可证
本仓库是对公开 PINN-TC 规范的独立工程复现。
本仓库代码、官方模型权重及数据的使用仍受各自项目的许可证和条款约束。
- Downloads last month
- 25