EchoCast-3D

Model Introduction

EchoCast-3D generates five future probabilistic radar volumes from three historical 3D scans for convective evolution, missing-data reconstruction, and short-range nowcasting. It jointly learns spatiotemporal evolution and vertical storm structure during diffusion and can form complete ensemble forecasts when observations contain gaps.

Paper: Generative machine learning for skilful 3D radar nowcasting
https://doi.org/10.1038/s41612-026-01407-7

Model Description

The method was proposed by teams from the Chinese Academy of Sciences, Hohai University, and collaborating institutions. The paper trains and evaluates on four-elevation radar volumes from the China Meteorological Administration. EchoCast-3D encodes multi-elevation wedge blocks as unified tokens and jointly learns echo evolution and gap recovery through MaskDiT diffusion and masked reconstruction. The model supports probabilistic 3D radar nowcasting from the previous 18 minutes to the next 30 minutes.

Use Cases

Use Case Description
3D radar nowcasting Predict five future radar volumes from three historical frames.
Gap-robust forecasting Jointly perform 75% token-mask reconstruction and diffusion denoising.
Local validation Validate ensemble forecasts and metrics on real packed-wedge geometry.
ModelScope/OneCode execution Validate data, training, inference, radar metrics, and visualization.
Multi-GPU training Validate distributed training and checkpoint workflows through torchrun.

Usage Instructions

1.OneCode

Try intelligent, one-click AI4S programming

2. Download and Installation

hf download OneScience-Group/EchoCast-3D --local-dir ./EchoCast-3D
cd EchoCast-3D

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 synthetic dataset for engineering validation, including eight consecutive six-minute volumes, four elevations, three history frames, five targets, and the real packed-wedge dimensions. Four elevations retain 366/366/363/363 azimuths and 180/180/120/120 range bins while reducing samples, model scale, diffusion steps, and epochs; 3×3 patching yields 24,320 tokens whereas the paper reports 24,400. These data validate MaskDiT, gap reconstruction, diffusion training, ensemble inference, and evaluation only and do not represent official CMA radar distributions and scale.

python scripts/fake_data.py

Training

For single-GPU 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 combines score matching on unmasked tokens with 0.1-weighted reconstruction over the 75% randomly masked tokens. The default reduces hidden dimension, DiT depth, heads, diffusion steps, samples, and epochs while preserving radar geometry and the three-to-five-frame protocol. Training artifacts are saved to:

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

Trained Weights

The paper does not provide a confirmed public pretrained-weight URL, and no weights are bundled under weight/.

Inference

python scripts/inference.py

Inference loads the local checkpoint and conditions on the previous three radar volumes and their validity masks. Starting from 3D Gaussian noise, the model iteratively denoises five future volumes and uses different random seeds to form an ensemble. Outputs retain lead, elevation, azimuth, and range ordering. Inference results are saved to:

result/output/predictions.npz

Evaluation and Visualization

python scripts/result.py

Evaluation computes ensemble CRPS, MAE, and RMSE and CSI, FAR, and POD at 20, 30, and 40 dBZ thresholds. It also saves ensemble coverage ratios for five leads and four elevations and generates observed-versus-ensemble-mean composite reflectivity comparisons. Synthetic-data results validate engineering only and do not represent formal paper performance. Evaluation results are saved to:

result/evaluation/metrics.json
result/evaluation/comparison.png

Official OneScience Information

Citation and License

This repository is an independent engineering reproduction of the public EchoCast-3D specifications, with code licensed under the Apache License 2.0.

The original paper is licensed under CC BY-NC-ND 4.0; the paper, official model weights, and China Meteorological Administration radar data remain subject to the licenses and terms of their respective projects.


中文说明

模型简介

EchoCast-3D 根据历史三次 3D 扫描生成未来五个概率性雷达体扫,用于对流演变、缺失数据重建与短时临近预报(nowcasting)。模型在扩散过程中联合学习时空演变与风暴垂直结构,在观测存在缺测时也能形成完整的集合预报(ensemble forecast)。

论文《用于高技巧 3D 雷达临近预报的生成式机器学习》
https://doi.org/10.1038/s41612-026-01407-7

模型描述

该方法由中国科学院、河海大学及合作机构的团队提出。论文在中国气象局的四仰角雷达体扫数据上训练和评估。EchoCast-3D 将多仰角楔形块编码为统一的词元,通过 MaskDiT 扩散与掩码重建联合学习回波演变及缺测恢复。模型支持由过去 18 分钟预报未来 30 分钟的概率性 3D 雷达临近预报。

使用场景

使用场景 说明
3D 雷达临近预报 根据历史三帧预测未来五个雷达体扫。
耐缺测预报 联合执行 75% 词元掩码重建和扩散去噪。
本地验证 在真实的紧凑楔形几何结构上验证集合预报和指标。
在 ModelScope/OneCode 中运行 验证数据、训练、推理(inference)、雷达指标及可视化。
多 GPU 训练 通过 torchrun 验证分布式训练和模型权重(检查点)(checkpoint)工作流。

使用说明

1.OneCode

体验智能一键 AI4S 编程

2. 下载和安装

hf download OneScience-Group/EchoCast-3D --local-dir ./EchoCast-3D
cd EchoCast-3D

环境依赖

硬件要求

  • 建议使用 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

训练数据

本仓库使用小规模合成数据集进行工程验证,包含八个连续的六分钟雷达体扫、四个仰角、三帧历史输入、五个目标,以及真实的紧凑楔形维度。四个仰角分别保留 366/366/363/363 个方位角及 180/180/120/120 个距离库,同时减小样本数、模型规模、扩散步数和训练轮数。3×3 分块生成 24,320 个词元,论文报告为 24,400 个。这些数据仅用于验证 MaskDiT、缺测重建、扩散训练、集合推理和评估,不代表中国气象局官方雷达数据的分布与规模。

python scripts/fake_data.py

训练

单 GPU 训练使用以下命令。

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

训练结合未遮蔽词元的得分匹配与对随机遮蔽的 75% 词元进行的 0.1 加权重建。默认配置减小隐藏维数、DiT 深度、头数、扩散步数、样本数和训练轮数,同时保留雷达几何结构与三帧到五帧的规约。训练产物保存至以下位置。

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

训练权重

论文未给出经确认的公开预训练权重 URL,weight/ 下未附带权重。

推理

python scripts/inference.py

推理加载本地模型权重(检查点),并以前三个雷达体扫及其有效性掩码为条件。模型从 3D 高斯噪声出发,对未来五个雷达体扫迭代去噪,并使用不同的随机种子形成集合。输出保留预报时效、仰角、方位角和距离的顺序。推理结果保存至以下位置。

result/output/predictions.npz

评估与可视化

python scripts/result.py

评估计算集合 CRPS、MAE、RMSE,以及阈值为 20、30 和 40 dBZ 时的 CSI、FAR 和 POD。评估还会保存五个预报时效与四个仰角的集合覆盖率,生成观测与集合均值复合反射率对比图。合成数据结果仅用于工程验证,不代表正式论文性能。评估结果保存至以下位置。

result/evaluation/metrics.json
result/evaluation/comparison.png

OneScience 官方信息

引用与许可证

本仓库是对公开 EchoCast-3D 规范的独立工程复现,代码采用 Apache License 2.0 授权。

原始论文采用 CC BY-NC-ND 4.0 授权。论文、官方模型权重和中国气象局雷达数据仍受各自项目的许可证和条款约束。

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