euler314 commited on
Commit
42eb202
·
verified ·
1 Parent(s): 425fa71

Publish Trackformer 1.2 model weights and model card

Browse files
README.md CHANGED
@@ -3,218 +3,80 @@ license: mit
3
  library_name: pytorch
4
  pipeline_tag: time-series-forecasting
5
  tags:
6
- - tropical-cyclone
7
- - weather-forecasting
8
- - pytorch
9
- - ibtracs
10
- - causal-inference
11
  ---
12
 
13
- # Trackformer1.1
14
 
15
- Trackformer1.1 is a research model for causal tropical-cyclone track,
16
- pressure, intensity, and wind-structure inference over the western Pacific.
17
- It is not an operational warning system and must not be used for evacuation,
18
- aviation, maritime, emergency-management, or other safety-critical decisions.
19
-
20
- ## Release names
21
-
22
- - **Current public release:** `Trackformer1.1`
23
- - **Historical public releases:** `Trackformer1.0.x`, where `x` identifies the
24
- historical patch or experiment in that family.
25
-
26
- The current public package and model card use `Trackformer1.1` only. Historical
27
- experiments are described as `Trackformer1.0.x` so old internal experiment
28
- labels are not presented as current models.
29
-
30
- ## Demo and forecast grids
31
-
32
- Open the interactive demonstration on the project GitHub Pages site:
33
-
34
- **[Trackformer1.1 live demo](https://yu314-coder.github.io/typhoon-tracks.html)**
35
-
36
- The repository also contains the forecast maps, pressure maps, and intensity
37
- plots used for the two public case snapshots:
38
-
39
- - [Dolphin world map](https://github.com/yu314-coder/typhoon-predict/blob/main/paper/dolphin_trackformer_1_1_pacific_domain_world_map.html)
40
- - [Dolphin pressure map](https://github.com/yu314-coder/typhoon-predict/raw/refs/heads/main/paper/dolphin_trackformer_1_1_pacific_pressure_forecast.png)
41
- - [Dolphin intensity and structure plot](https://github.com/yu314-coder/typhoon-predict/raw/refs/heads/main/paper/dolphin_trackformer_1_1_intensity_structure.png)
42
- - [Tip world map](https://github.com/yu314-coder/typhoon-predict/blob/main/paper/tip_trackformer_1_1_pacific_domain_world_map.html)
43
- - [Tip pressure map](https://github.com/yu314-coder/typhoon-predict/raw/refs/heads/main/paper/tip_trackformer_1_1_pacific_pressure_forecast.png)
44
- - [Tip intensity and structure plot](https://github.com/yu314-coder/typhoon-predict/raw/refs/heads/main/paper/tip_trackformer_1_1_intensity_structure.png)
45
-
46
- These tables are compact forecast grids from the checked-in case artifacts.
47
- They are examples for inspecting the output, not a skill score and not a
48
- replacement for an official forecast. Wind is maximum 1-minute wind in knots;
49
- pressure is central pressure in hPa; radius is the radius of maximum wind in
50
- kilometres.
51
-
52
- ### Dolphin, issue time 2026-07-31 15:00 UTC
53
-
54
- | Lead | Latitude | Longitude | Max wind (kt) | Pressure (hPa) | RMW (km) |
55
- |---:|---:|---:|---:|---:|---:|
56
- | +6 h | 19.856 | 158.902 | 124.8 | 924.5 | 25.1 |
57
- | +24 h | 20.723 | 156.159 | 118.3 | 931.5 | 22.0 |
58
- | +48 h | 21.335 | 152.621 | 106.0 | 949.4 | 21.6 |
59
- | +72 h | 22.093 | 149.456 | 95.6 | 963.9 | 22.8 |
60
- | +96 h | 23.162 | 146.200 | 88.1 | 973.5 | 23.4 |
61
- | +120 h | 24.242 | 142.811 | 80.1 | 980.5 | 25.1 |
62
-
63
- ### Tip, issue time 1979-10-12 00:00 UTC
64
-
65
- | Lead | Latitude | Longitude | Max wind (kt) | Pressure (hPa) | RMW (km) |
66
- |---:|---:|---:|---:|---:|---:|
67
- | +6 h | 16.860 | 137.717 | 161.1 | 892.6 | 19.0 |
68
- | +24 h | 18.005 | 135.849 | 152.1 | 898.8 | 17.8 |
69
- | +48 h | 18.794 | 133.396 | 135.7 | 913.8 | 16.9 |
70
- | +72 h | 19.569 | 131.390 | 118.6 | 931.5 | 18.1 |
71
- | +96 h | 20.614 | 129.499 | 108.2 | 942.7 | 18.7 |
72
- | +120 h | 21.668 | 127.791 | 97.8 | 952.6 | 21.6 |
73
-
74
- ## Data used and how to get it
75
-
76
- Trackformer1.1 uses observed or analyzed weather available at the forecast
77
- issue time and earlier. The model does not use another agency's predicted
78
- track or positive-lead weather forecast as an input.
79
-
80
- | Data | Role in Trackformer1.1 | How to obtain it |
81
- |---|---|---|
82
- | IBTrACS | Observed storm track history, intensity history, training labels, and post-run verification | [NOAA/NCEI IBTrACS](https://www.ncei.noaa.gov/products/international-best-track-archive) |
83
- | Historical atmospheric analysis | Current, -12 h, and -24 h pressure, height, and wind states for causal hindcasts | [NOAA Climate Forecast System data and documentation](https://www.ncei.noaa.gov/products/weather-climate-models/climate-forecast-system) |
84
- | Current atmospheric analysis | The latest available pressure and multi-level wind state for a live-style run | [NOAA NOMADS](https://nomads.ncep.noaa.gov/) using an analysis/`f000` product whose valid time is no later than the issue time |
85
- | Derived arrays and case artifacts | Compact tensors, manifests, maps, and plots consumed by the public inference bundle | Build from the repository scripts locally or in GitHub Actions; raw archives are intentionally not stored in this model repository |
86
-
87
- For historical coverage, CFSR and CFSv2 are different sources: CFSR does not
88
- cover the full modern period, so later cases must use the matching CFSv2/CDAS
89
- analysis product when that is the source selected for the run. The source and
90
- valid time must be recorded in the preprocessing manifest.
91
-
92
- The public GitHub Pages site serves generated JSON, PNG, HTML, and model-demo
93
- assets. It should not hold private credentials or try to download large raw
94
- archives in a browser. A GitHub Actions job can fetch public analysis files,
95
- reject files newer than the issue time, build compact derived arrays, and
96
- publish the resulting artifacts for the [live demo](https://yu314-coder.github.io/typhoon-tracks.html).
97
-
98
- ### Causal data boundary
99
-
100
- At inference time, the model uses:
101
-
102
- - the observed storm track and intensity history up to the issue time;
103
- - current, 12-hour-old, and 24-hour-old analysis fields;
104
- - the full western-Pacific domain covering China, Japan, Taiwan, the
105
- Philippines, and the surrounding Pacific;
106
- - derived pressure minima, pressure deficit, wind flow, steering layers, and
107
- nearby-system context computed from those analysis fields.
108
-
109
- It does **not** use JMA or JTWC forecast tracks, any official forecast track,
110
- positive-lead GFS/GEFS/CFS forecast fields, or observations that became
111
- available after the issue time. Later data may be used only to score the
112
- forecast.
113
-
114
- ## Model structure
115
-
116
- 1. A causal regional state module extrapolates pressure, 500 hPa height, and
117
- 850/500/200 hPa wind from three analysis snapshots.
118
- 2. A weighted steering ensemble samples inner, deep-layer, ridge, trough, and
119
- jet views across the full western-Pacific domain and integrates the route.
120
- 3. Three primary neural experts predict maximum wind, central pressure, RMW,
121
- and directional 34/50/64 kt radii from a nine-step track window and the
122
- current four-channel analysis patch.
123
- 4. Three structure experts provide a validation-selected secondary blend.
124
- 5. Three temporal experts read only same-storm 12-hour and 24-hour analysis
125
- patches. Their residual branch is enabled only for the validated wind
126
- adjustment; pressure remains on the calibrated primary path.
127
- 6. The final intensity output is coupled to the causal pressure-map minimum,
128
- pressure deficit, 850 hPa wind, and quadrant anomaly extent. Radius outputs
129
- remain ordered as `R34 >= R50 >= R64`.
130
-
131
- The public bundle contains frozen inference checkpoints and calibration state;
132
- it does not include raw weather archives or a training service.
133
-
134
- ## Intensity upgrade plan using the same data
135
-
136
- The current intensity head is the weakest part of the public model. The next
137
- improvement should keep the existing causal data boundary and change only the
138
- target formulation, feature extraction, and calibration:
139
-
140
- 1. Build a lead-wise feature vector from data already available to Trackformer1.1:
141
- current wind and pressure, 6/12/24-hour observed tendencies, pressure-map
142
- minimum and deficit, 850/500/200 hPa flow, vertical-shear proxies, latitude,
143
- and the pressure-anomaly area around the storm.
144
- 2. Predict changes from the current observed intensity (`delta wind`, `delta
145
- pressure`, and `delta radius`) rather than predicting every future absolute
146
- value from scratch. Use separate short-, medium-, and long-lead heads so a
147
- 120-hour estimate cannot dominate the 6-hour behavior.
148
- 3. Fit the calibration and regime gate only on the existing storm-held-out
149
- training/validation arrays. Keep complete storms in one split, and keep the
150
- test storms untouched until the final comparison against persistence and
151
- the current Trackformer1.1 head.
152
- 4. Add physical consistency constraints: pressure deepening must agree with
153
- wind strengthening, weakening must not create an implausible pressure fall,
154
- radii must be non-negative and ordered, and changes must be bounded by the
155
- observed analysis tendency and map confidence.
156
- 5. Report wind MAE, pressure MAE, RMW/radius MAE, bias by lead, and uncertainty
157
- coverage for every split. Publish new checkpoints only if the same-data
158
- model improves both all-lead and 120-hour test metrics without degrading
159
- track error.
160
-
161
- The current calibration reference is 16.40 kt test wind MAE across leads and
162
- 14.52 hPa test pressure MAE at 120 hours. Those numbers are a baseline for the
163
- next experiment, not a guarantee of operational accuracy. No new intensity
164
- weights are claimed by this README update.
165
-
166
- ## Files
167
-
168
- - `trackformer_1_1.py` - public loader and route API.
169
- - `trackformer_1_1_route.py` - whole-domain causal pressure-state route.
170
- - `trackformer_1_1_intensity.py` - intensity and wind-structure inference.
171
- - `trackformer_1_1_temporal.py` - inference-only temporal expert architecture.
172
- - `models/trackformer_1_1/` - three expert groups, calibration, and manifest.
173
- - `track_build/` - checked-in Dolphin and Tip forecast-grid source artifacts.
174
- - `paper/` - map, pressure-map, and intensity/structure visualizations.
175
-
176
- ## Quick start
177
-
178
- ```bash
179
- python -m pip install -r requirements.txt
180
- python - <<'PY'
181
- import numpy as np
182
- from trackformer_1_1 import load_intensity
183
-
184
- model = load_intensity(device="cpu")
185
- track = np.zeros((9, 54), dtype="float32")
186
- field = np.zeros((4, 17, 17), dtype="float32")
187
- current_structure = np.full(13, np.nan, dtype="float32")
188
- rows, metadata = model.predict(
189
- track,
190
- field,
191
- current_wind=65.0,
192
- current_pressure=980.0,
193
- previous_wind=60.0,
194
- previous_pressure=985.0,
195
- current_structure=current_structure,
196
- )
197
- print(rows[0])
198
- print(metadata["model"])
199
- PY
200
- ```
201
-
202
- The intensity contract is `track=(9,54)`, `field=(4,17,17)`, and optional
203
- `history_field=(8,17,17)` for the 12-hour and 24-hour analysis patches. The
204
- route contract is `fields=(3,7,latitude,longitude)` and
205
- `pressure=(3,latitude,longitude)`, ordered current, 12 hours before, and 24
206
- hours before. See `models/trackformer_1_1/manifest.json` for the complete
207
- contract.
208
-
209
- ## Requirements and limits
210
-
211
- CPU inference works with Python 3.10+, NumPy, PyTorch, and SciPy. A modern
212
- Mac with 8 GB RAM is a practical minimum; 16 GB RAM is preferable when
213
- decoding large analysis grids. The checkpoints are native PyTorch files.
214
- GGUF is not an appropriate format for this CNN/Transformer weather model;
215
- keep the native PyTorch weights or convert to another format only after
216
- numerical parity testing.
217
-
218
- The model is experimental. Track and intensity errors vary by storm, basin,
219
- analysis source, and data quality. Use official meteorological agencies for
220
- real-world forecasts and warnings.
 
3
  library_name: pytorch
4
  pipeline_tag: time-series-forecasting
5
  tags:
6
+ - weather
7
+ - tropical-cyclone
8
+ - typhoon
9
+ - causal-forecasting
10
+ - pytorch
11
  ---
12
 
13
+ # Trackformer 1.2
14
 
15
+ Trackformer 1.2 is an experimental causal western-Pacific tropical-cyclone
16
+ forecasting model. It predicts storm motion, maximum sustained wind, central
17
+ pressure, radius of maximum wind, and R34/R50/R64 wind radii through +120 h.
18
+
19
+ This Hugging Face repository is the model repository. The Hugging Face Space
20
+ is not part of this release.
21
+
22
+ ## Current Release
23
+
24
+ The current public model is **Trackformer 1.2**. Its files are in
25
+ `models/trackformer_1_2/`. The historical Trackformer 1.1 files remain in
26
+ `models/trackformer_1_1/` for reproducible baseline comparison and are not
27
+ mixed into the 1.2 weights.
28
+
29
+ ## Causal Data Boundary
30
+
31
+ The model uses only issue-time or earlier information:
32
+
33
+ - observed IBTrACS history;
34
+ - current, -12 h, and -24 h atmospheric analysis summaries;
35
+ - current and lagged SST summaries;
36
+ - causal nearby-storm and basin/global pressure context;
37
+ - static land/sea, coastline, terrain, land-cover, and location features.
38
+
39
+ It does not use JMA, JTWC, ECMWF, GFS, GEFS, or another agency's forecast
40
+ track or positive-lead weather field. Future best-track values are labels used
41
+ only after a forecast is frozen for evaluation.
42
+
43
+ ## Evaluation
44
+
45
+ The split is chronological and storm-disjoint: training through 2015,
46
+ validation from 2016 through 2019, and an untouched test cohort from 2020
47
+ onward. At +120 h on 9,994 test windows, lower is better:
48
+
49
+ | Metric | Frozen baseline | Trackformer 1.2 |
50
+ |---|---:|---:|
51
+ | Maximum wind MAE (kt) | 19.876 | 19.618 |
52
+ | Central pressure MAE (hPa) | 13.634 | 13.519 |
53
+ | Mean radius MAE (km) | 28.952 | 28.944 |
54
+ | R34 MAE (km) | 46.672 | 46.672 |
55
+ | R50 MAE (km) | 25.417 | 25.417 |
56
+ | R64 MAE (km) | 14.767 | 14.742 |
57
+
58
+ These are research diagnostics and do not establish universal operational
59
+ superiority.
60
+
61
+ ## Files And Formats
62
+
63
+ `models/trackformer_1_2/` contains native PyTorch route and intensity
64
+ checkpoints, a joblib structure-calibration artifact, NumPy feature statistics,
65
+ and `manifest.json`.
66
+
67
+ GGUF is not an appropriate format for this CNN/Transformer weather model. The
68
+ matching public inference adapter is not included in this minimal weight
69
+ bundle; use the feature contract in `manifest.json` when integrating the
70
+ native artifacts.
71
+
72
+ ## Links
73
+
74
+ - [GitHub repository](https://github.com/yu314-coder/typhoon-predict)
75
+ - [Trackformer 1.2 GitHub release](https://github.com/yu314-coder/typhoon-predict/releases/tag/trackformer-1.2)
76
+
77
+ ## Limitations
78
+
79
+ Forecast error varies by storm, basin, structure, land interaction, analysis
80
+ source, and missing-data pattern. This is a research artifact, not an
81
+ operational warning system. Use official meteorological agencies for real-world
82
+ forecasts and warnings.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
models/trackformer_1_2/manifest.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_name": "Trackformer 1.2",
3
+ "release_tag": "trackformer-1.2",
4
+ "status": "promoted_research_candidate",
5
+ "task": "causal western-Pacific tropical-cyclone track and intensity forecasting",
6
+ "forecast_horizon_hours": 120,
7
+ "lead_interval_hours": 6,
8
+ "architecture": {
9
+ "route": "whole western-Pacific causal analysis-state route with land, coastline, terrain, and ocean context",
10
+ "intensity": "masked lead-wise residual head for maximum wind and central pressure",
11
+ "structure": "pooled log-radius groups with non-negative outputs, containment constraints, and validation-selected ocean-availability gate",
12
+ "ensemble": "two route checkpoints and two intensity checkpoints; structure calibration artifact"
13
+ },
14
+ "causal_input_contract": {
15
+ "track_history": "observed IBTrACS history available at issue time",
16
+ "atmospheric_analysis": ["current", "-12 h", "-24 h"],
17
+ "sea_surface_temperature": ["current", "lagged"],
18
+ "nearby_storm_context": "causal nearby-storm and basin/global pressure summaries",
19
+ "static_geography": ["land-sea", "coastline", "terrain", "land-cover", "location"]
20
+ },
21
+ "forbidden_inputs": [
22
+ "JMA forecast track or positive-lead weather field",
23
+ "JTWC forecast track or positive-lead weather field",
24
+ "ECMWF, GFS, or GEFS forecast track or positive-lead weather field",
25
+ "any future weather observation relative to the issue time"
26
+ ],
27
+ "label_boundary": "future IBTrACS best-track values are used only after the forecast is frozen for scoring",
28
+ "splits": {
29
+ "training": "storms through 2015",
30
+ "validation": "storms from 2016 through 2019",
31
+ "test": "storms from 2020 onward; 9994 windows; untouched until scoring"
32
+ },
33
+ "test_metrics_at_120h": {
34
+ "frozen_baseline": {
35
+ "maximum_wind_mae_kt": 19.875914,
36
+ "central_pressure_mae_hpa": 13.634097,
37
+ "mean_radius_mae_km": 28.952265,
38
+ "r34_mae_km": 46.672489,
39
+ "r50_mae_km": 25.417385,
40
+ "r64_mae_km": 14.766924
41
+ },
42
+ "trackformer_1_2": {
43
+ "maximum_wind_mae_kt": 19.617579,
44
+ "central_pressure_mae_hpa": 13.518673,
45
+ "mean_radius_mae_km": 28.943916,
46
+ "r34_mae_km": 46.672489,
47
+ "r50_mae_km": 25.417385,
48
+ "r64_mae_km": 14.741875
49
+ }
50
+ },
51
+ "artifacts": [
52
+ "trackformer_1_2_route_seed0.pt",
53
+ "trackformer_1_2_route_seed1.pt",
54
+ "trackformer_1_2_intensity_seed0.pt",
55
+ "trackformer_1_2_intensity_seed1.pt",
56
+ "trackformer_1_2_ocean_structure.joblib",
57
+ "trackformer_1_2_feature_stats.npz"
58
+ ],
59
+ "formats": {
60
+ "neural_checkpoints": "native PyTorch state dictionaries",
61
+ "structure_calibration": "joblib",
62
+ "feature_statistics": "NumPy NPZ",
63
+ "gguf": "not supported; this is not a language model"
64
+ },
65
+ "limitations": "Research artifact only. Error varies by storm, basin, structure, land interaction, analysis source, and missing-data pattern."
66
+ }
models/trackformer_1_2/trackformer_1_2_feature_stats.npz ADDED
Binary file (10.2 kB). View file
 
models/trackformer_1_2/trackformer_1_2_intensity_seed0.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7f58ccae7f254cf4864abb75a3441e735459063bc9c50cff1b8c5ae685d8166
3
+ size 4787940
models/trackformer_1_2/trackformer_1_2_intensity_seed1.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf4c1ff0f91e823910fab4397d3950020611a2d644a1013f6a8dc94cbbb4b56a
3
+ size 4787940
models/trackformer_1_2/trackformer_1_2_ocean_structure.joblib ADDED
Binary file (47.4 kB). View file
 
models/trackformer_1_2/trackformer_1_2_route_seed0.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9328c73f7a78506c8194de2c56876dfd959e5188ffde7e3165b431cc7bf3344b
3
+ size 2808757
models/trackformer_1_2/trackformer_1_2_route_seed1.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:348948a1a10395ee5cb029edd857767eb50baab3c48a5a89034eda63bd4abdcf
3
+ size 2808757