FuXi-DA

Model Introduction

FuXi-DA fuses weather background fields and satellite observations into improved global atmospheric analyses for deep-learning data assimilation and forecast initialization. It learns background errors, observation biases, and analysis increments in a unified feature space to improve subsequent forecasts with multi-time geostationary satellite data.

Paper: FuXi-DA: a generalized deep learning data assimilation framework for assimilating satellite observations
https://doi.org/10.1038/s41612-025-01039-3

Model Description

The method was proposed by teams from the Shanghai Artificial Intelligence Laboratory, Fudan University, and collaborating institutions. The paper trains on ERA5, FuXi background fields, and Fengyun-4B AGRI observations. FuXi-DA performs multi-scale fusion with background, observation, and condition encoders and uses frozen-FuXi forecast errors to supervise assimilation. The model supports 0.25-degree global background correction and geostationary multi-channel satellite assimilation.

Use Cases

Use Case Description
Satellite assimilation Fuse 70-channel backgrounds with multi-time AGRI brightness temperatures.
Multimodal fusion Validate multi-scale interactions among background, observation, and condition branches.
Local validation Execute sampled aligned tiles under full-variable and global-coordinate protocols.
ModelScope/OneCode execution Validate data, training, inference, assimilation 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/FuXi-DA --local-dir ./FuXi-DA
cd FuXi-DA

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 70-variable global backgrounds, eight AGRI times, 15 observation channels, six-hour relationships, and the real [70,721,1440] background and [8,15,640,640] observation protocols. Procedural full-coordinate fields and a few aligned original-coordinate tiles preserve variables, channels, and spatiotemporal specifications while reducing executed samples and coverage. These data validate the multi-branch U-Net, feature fusion, training, inference, and evaluation only and do not represent official ERA5 or AGRI 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 latitude-weighted analysis L1 with multi-lead supervision from a frozen forecast proxy. The default reduces tile coverage, network width, iterations, and forecast steps while recording the paper's 6,000 iterations and ten forecast leads. Training artifacts are saved to:

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

Trained Weights

The paper does not provide directly loadable official model weights, and no weights are bundled under weight/.

Inference

python scripts/inference.py

Inference loads the local checkpoint and takes a 70-channel background tile and corresponding multi-time AGRI observations. Background, observation, and condition branches generate an increment that is added to the background to form the analysis. Outputs retain targets, backgrounds, observations, analyses, coordinates, and coverage metadata and explicitly indicate incomplete global coverage. Inference results are saved to:

result/output/predictions.npz

Evaluation and Visualization

python scripts/result.py

Evaluation compares latitude-weighted RMSE for the raw background, correction baseline, and FuXi-DA analysis and saves Z, T, U, V, R, and surface-variable groups. It also reports forecast-step errors and localization of analysis increments from a single-observation perturbation and generates a comparison of analysis schemes and variable-group errors. Synthetic tile results validate engineering only and do not represent complete global 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 FuXi-DA 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, ERA5 data, and Fengyun-4B AGRI data remain subject to the licenses and terms of their respective projects.


中文说明

模型简介

FuXi-DA 融合气象背景场与卫星观测,生成改进的全球大气分析场,用于深度学习资料同化(data assimilation)及预报初始化。它在统一的特征空间学习背景误差、观测偏差和分析增量,以利用多个时次的静止卫星数据改进后续预报。

论文《FuXi-DA:用于同化卫星观测的通用深度学习资料同化框架》
https://doi.org/10.1038/s41612-025-01039-3

模型描述

该方法由上海人工智能实验室、复旦大学与合作机构的团队提出。论文使用 ERA5、FuXi 背景场和 Fengyun-4B AGRI 观测进行训练。FuXi-DA 使用背景、观测及条件编码器进行多尺度融合,并以冻结的 FuXi 的预报误差监督同化。模型支持 0.25 度全球背景订正和静止卫星多通道观测同化。

使用场景

使用场景 说明
卫星同化 将 70 通道背景场与多时次 AGRI 亮温融合。
多模态融合 验证背景、观测和条件分支之间的多尺度交互。
本地验证 按完整变量及全球坐标规约运行采样且对齐的图块。
在 ModelScope/OneCode 中运行 验证数据、训练、推理(inference)、同化指标和可视化。
多 GPU 训练 通过 torchrun 验证分布式训练及模型权重(检查点)(checkpoint)工作流。

使用说明

1.OneCode

体验智能一键 AI4S 编程

2. 下载和安装

hf download OneScience-Group/FuXi-DA --local-dir ./FuXi-DA
cd FuXi-DA

环境依赖

硬件要求

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

训练数据

本仓库使用小规模合成数据集进行工程验证,包括 70 变量的全球背景场、八个 AGRI 时次、15 个观测通道、六小时间隔关系,以及真实的 [70,721,1440] 背景场和 [8,15,640,640] 观测规约。程序生成的全坐标场与少数按原始坐标对齐的图块保留了变量、通道及时间空间规格,同时减少了实际运行的样本数量和覆盖范围。此数据仅用于验证多分支 U-Net、特征融合、训练、推理及评估,不代表官方 ERA5 或 AGRI 的分布和规模。

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

训练结合按纬度加权的分析场 L1 损失与来自冻结预报代理的多时效监督。默认配置减少图块覆盖范围、网络宽度、迭代次数和预报步数,同时记录论文的 6,000 次迭代和十个预报时效。训练产物保存至以下位置。

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

训练权重

论文未提供可直接加载的官方模型权重,weight/ 下也未附带权重。

推理

python scripts/inference.py

推理加载本地模型权重(检查点),输入 70 通道的背景图块和对应的多时次 AGRI 观测。背景、观测和条件分支生成增量,将其加到背景场上得到分析场。输出保留目标、背景、观测、分析、坐标及覆盖范围元数据,并明确标明全球覆盖不完整。推理结果保存至以下位置。

result/output/predictions.npz

评估与可视化

python scripts/result.py

评估比较原始背景场、订正基线与 FuXi-DA 分析场的按纬度加权 RMSE,并保存 Z、T、U、V、R 和地表变量组。评估还报告分预报步误差与单观测扰动引起的分析增量局地化,并生成分析方案和变量组误差对比图。合成图块结果仅用于工程验证,不代表论文的完整全球性能。评估结果保存至以下位置。

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

OneScience 官方信息

引用与许可证

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

原始论文采用 CC BY-NC-ND 4.0 授权。论文、官方模型权重、ERA5 数据和 Fengyun-4B AGRI 数据仍受各自项目的许可证与条款约束。

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