File size: 5,822 Bytes
03945d1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | ---
license: mit
library_name: pytorch
tags:
- tropical-cyclone
- remote-sensing
- pytorch
- conformal-prediction
language:
- en
datasets:
- incyde
- tcir
pipeline_tag: image-to-text
---
# Cloudie Cyclone Intensity Weights (`Anlea/cloudie-weights`)
Checkpoint archive and run records for **Cloudie**, an academic tropical-cyclone intensity estimation framework from infrared satellite imagery.
> [!WARNING]
> **Operational Disclaimer & Scientific Honesty**
> - This model is **not an operational warning, forecast, or cyclone advisory system**.
> - Do not use these outputs for life-safety, navigation, or emergency-response decisions.
> - Best-track labels (HURDAT2 / IMD best track) are subject to observational and post-analysis uncertainty; agreement with labels is not ground truth.
> - Monte Carlo dropout variance captures model uncertainty under dropout noise, not physical meteorological forecast bounds. Calibrated intervals require validation conformal scaling.
---
## Model Details
- **Model Type:** 4-Frame Spatiotemporal ConvLSTM / SimpleCNN
- **Primary Task:** Regression of tropical-cyclone maximum sustained wind speed in **knots (IMD 3-minute standard)**
- **Auxiliary Task:** 5 project intensity categories: `D_DD` [17, 34), `CS` [34, 48), `SCS` [48, 64), `VSCS` [64, 91), `ESCS_SUCS` [91+] kt (project grouping; not official IMD warning classes)
- **Input Modality:** Infrared satellite imagery (e.g. INSAT-3D/3DR IR1 from INCYDE or GridSat-B1 IR1 from TCIR), single-channel, normalized with train-storm statistics only, circular-masked.
- **Source Code:** [GitHub: AnleaMJ/cloudie](https://github.com/AnleaMJ/cloudie)
---
## Expected Repository Layout
When mirror runs are published to `Anlea/cloudie-weights`, the repository mirrors the canonical `artifacts/runs/nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d/` structure required by `src.inference.RunCheckpoint`:
```
Anlea/cloudie-weights/
βββ nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d/
β βββ checkpoint.pt # Torch model state dict + norm stats + config hash
β βββ config.yaml # Resolved training configuration
β βββ metrics.json # Evaluated test/val metrics (quote_as_result: yes)
β βββ run_record.json # Full provenance: git commit, hardware, seeds
β βββ loss_curve.png # Training & validation loss history
β βββ calibration.npz # Test/val MC draws and targets for conformal evaluation
βββ README.md
```
> [!IMPORTANT]
> Raw model weight files (`.pt`) must never be committed to the GitHub repository. Checkpoints belong exclusively on this Hugging Face Hub repository.
---
## Integration with Cloudie Hugging Face Space
The Cloudie Gradio Space ([`space/app.py`](https://github.com/AnleaMJ/cloudie/blob/main/space/app.py)) automatically queries this repository when configured.
To attach this model weights repository to the Space:
1. Open the Space settings on Hugging Face (`Anlea/cloudie` → Settings → Variables and secrets).
2. Set the Environment Variable:
```env
CLOUDIE_HF_MODEL_REPO=Anlea/cloudie-weights
CLOUDIE_RUN_ID=nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d
```
3. If the model weights repository is private, add a read-scoped secret:
```env
HF_TOKEN=hf_...
```
4. `src.inference.RunCheckpoint` validates the remote run record and verifies that it passed held-out storm evaluation before serving predictions.
---
## Python Inference Usage
```python
import os
import torch
from src.config import load_config
from src.inference import RunCheckpoint, predict_images
# Configure target repository
os.environ["CLOUDIE_HF_MODEL_REPO"] = "Anlea/cloudie-weights"
os.environ["CLOUDIE_RUN_ID"] = "nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d"
config = load_config("config/config.yaml")
# RunCheckpoint handles Hub download, integrity check, and held-out validation gating
checkpoint_path = RunCheckpoint.resolve_path(config)
print(f"Loaded checkpoint from: {checkpoint_path}")
```
---
## Evaluation & Data Splitting Guardrails
- **Zero Data Leakage:** Storms are partitioned disjointly across train, validation, and test splits (`src.splits.assign_storms`). No storm crosses split boundaries.
- **Normalization Isolation:** Finite-pixel z-score parameters are computed exclusively on training storms.
- **6-Point Leakage Audit:** Audited by `src.verify_splits` across `storm_wise`, `chronological`, and `holdout_basin` splits.
- **Conformal Uncertainty:** 90% confidence intervals are evaluated using post-hoc scaled conformal prediction (`src.calibration.compare_calibration`).
---
## License
Code is licensed under the [MIT License](https://github.com/AnleaMJ/cloudie/blob/main/LICENSE). Trained weights and meteorological satellite data (INCYDE, TCIR, NASA) remain subject to their respective institutional terms of use and licenses.
---
## Verified Model Performance (`nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d`)
**Dataset:** `NASA` | **Architecture:** `resnet18`
> **Verified Run Results:** `nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d` (NASA | Model: `resnet18`)
> All metrics use the held-out storm protocol with zero data leakage. Bins are this project's own grouping (17/34/48/64/91 kt), not official IMD classes.
### Val Split Performance
| Metric | Value |
|---|---|
| MAE (KT) | 7.35 |
| RMSE (KT) | 10.12 |
| BIAS (KT) | -1.68 |
| N (frames/windows) | 15979 |
### Test Split Performance
| Metric | Value |
|---|---|
| MAE (KT) | 9.13 |
| RMSE (KT) | 12.55 |
| BIAS (KT) | -3.78 |
| N (frames/windows) | 19855 |
|