# Model Release — VS2-UNet-NegCap1

Public release of the fire-discrimination model described in the manuscript
*"Multi-source conditional information for active-fire discrimination with
VIIRS single-overpass thermal observations"* (in preparation), together with
the away-2020 external evaluation benchmark used in its figure 14.

## What is released

| Item | Path | Size | License |
|---|---|---|---|
| Model code (architecture, self-contained) | `code/model.py` | 5 KB | MIT |
| Inference example | `code/inference_example.py` | 2 KB | MIT |
| Input specification (channels, normalization) | `code/channel_spec.json` | 3 KB | MIT |
| Trained weights, seed 42 | `weights/vs2_unet_negcap1_seed42.pt` | 3.0 MB | CC BY-NC 4.0 |
| 8-scene annotated benchmark + detections | `benchmark_away2020/` | 16.9 MB | CC BY 4.0 |
| Method figures (workflow / architecture) | `figures/` | 1.0 MB | CC BY 4.0 |

## Method figures

`figures/` holds the current v11 method-figure assets associated with the release site:

* `fig1_method_workflow.png` — study workflow (manuscript Fig. 1, v7, 2026-11-15);
* `fig5_model_architecture.png` — VS2-UNet dual-branch architecture with
  FiLM conditioning and dual heads (manuscript Fig. 5, v10, 2026-11-15).

The benchmark case map was updated to manuscript Fig. 14 v34 on 2026-11-16.

License texts: `LICENSE_CODE.txt` · `LICENSE_WEIGHTS.txt` ·
`LICENSE_BENCHMARK.txt` (this directory).

## The model in one paragraph

VS2-UNet is a two-branch network for discriminating active fires in
single-overpass VIIRS (375 m) thermal windows:

* a UNet trunk on 27-channel 64×64 VIIRS windows — 23 named
  spectral/thermal channels, 1 night indicator, 3 persistence-prior channels
  (p30 / p90 / frp90) — producing a per-pixel fire heatmap and a
  window-level objectness logit (decision at objectness ≥ 0.5);
* a Sentinel-2 encoder that maps a 9-band **pre-event** surface-composite
  patch (plus a validity flag; zero-filled when no composite exists) to a
  128-d conditioning vector injected into the trunk bottleneck via FiLM.

The released checkpoint is the single-arm NegCap variant with persistence
priors (727,666 parameters, ~3 MB fp32), trained with seed 42; it is the
checkpoint used for the external comparison in the manuscript.

**Checksum** — `weights/vs2_unet_negcap1_seed42.pt`
md5 `60cfb267c923018013ac070ac17d1fca` (3,011,453 bytes).

## Quick start

```bash
pip install torch numpy rasterio        # torch >= 1.10 is sufficient
cd code
python inference_example.py             # random-input shape/range demo
```

Assembling real inputs requires the VIIRS L1 radiance pipeline and
pre-event Sentinel-2 composites; the exact channel list, per-channel
normalization constants, S2 band set and DynamicWorld-style S2 transform
are fully specified in `code/channel_spec.json` (also embedded in the
checkpoint under `"normalization"`).

## Benchmark

See `benchmark_away2020/README.md`. In short: 8 Sentinel-2 scenes from
August 2020 with hand-annotated 20 m fire masks, detection points from this
checkpoint and from the operational VIIRS 375 m product, and a
self-contained `eval_coverage.py` (750 m haversine coverage) that
reproduces the manuscript numbers, e.g. ours 94.7 / 62.2 / 59.4 / 90.3 %
vs operational 95.3 / 54.9 / 22.7 / 78.0 % on the four primary scenes.

**Data acknowledgement.** The scenes and manual annotations are derived from
the Sentinel-2 active-fire dataset of Fusioka et al. (2024, IEEE JSTARS 17:
14093–14108, doi:10.1109/JSTARS.2024.3436811); operational detections come
from the VIIRS 375 m active fire product (VNP14IMG; Schroeder et al. 2014,
RSE 143: 85–96), courtesy of NASA/NOAA. Full citations in
`benchmark_away2020/README.md`.

## Not included

Training code, training data and the full VIIRS L1 / Sentinel-2 input
tensors are not part of this release; they will be released upon
publication of the manuscript.

## Citation

A citation entry will be provided upon publication. Until then, please cite
the checkpoint as: VS2-UNet-NegCap1 (seed 42), Yinbao Jin, Guangzhou
Meteorological Satellite Ground Station, 2026, https://fire-satellite.cloud/model_release/

## Contact

Yinbao Jin — jinyb_gzmss@yeah.net
