phantom-methane / README.md
girisachin248's picture
License: CC BY-NC 4.0 (non-commercial use)
ab63acd verified
|
Raw History Blame Contribute Delete
3.96 kB
---
library_name: pytorch
pipeline_tag: image-segmentation
license: cc-by-nc-4.0
tags:
- methane
- hyperspectral
- remote-sensing
- aviris-ng
- physics-informed
- gan
- transformer
- plume-detection
---
# PHANTOM: Physics-Informed Hyperspectral Adversarial Network for Transformer-Optimized Methane Detection
Released weights for **PHANTOM**, which segments methane plumes in AVIRIS-NG hyperspectral imagery.
> Sachin Giri, Derek Hollenbeck, Rafal Krzysiak, YangQuan Chen, Wan Du. *IEEE Transactions on Geoscience and Remote Sensing*, vol. 64, 2026, Art. no. 5532810. [doi:10.1109/TGRS.2026.3741902](https://doi.org/10.1109/TGRS.2026.3741902)
**Code:** [github.com/sachingirime/phantom-methane](https://github.com/sachingirime/phantom-methane) · **Colab:** [evaluation notebook](https://colab.research.google.com/drive/1COOFV7Re-6FLPMktRTrAA9vpjmy2Q05V?usp=sharing) · **Also on:** [Kaggle](https://www.kaggle.com/models/sachingiri348/phantom)
## Files
| File | Contents |
|---|---|
| `generator_model_full_dataset_128.pth` | Generator state dict: a U-Net with a 4-layer, 8-head Transformer bottleneck, 0.96M parameters. This is the only network used at inference. |
| `background_estimator_model.pth` | Background estimator state dict (3,141 parameters). It is used only to show the Beer–Lambert reconstruction. |
**Input.** A 6 × 128 × 128 tensor: five AVIRIS-NG SWIR bands (2004, 2109, 2310, 2350, 2360 nm), each min–max normalized per tile, plus STARCOP's `weight_mag1c`, min–max normalized and multiplied by 0.2. **Output.** Plume logits of shape 1 × 128 × 128; apply a sigmoid and threshold at 0.5.
The model classes and the full evaluation are in [`phantom_evaluation.ipynb`](https://github.com/sachingirime/phantom-methane/blob/main/phantom_evaluation.ipynb).
```python
import torch
from huggingface_hub import hf_hub_download
g_path = hf_hub_download("girisachin248/phantom-methane", "generator_model_full_dataset_128.pth")
G = UNetGenerator(in_ch=6) # class defined in the notebook
G.load_state_dict(torch.load(g_path, map_location="cpu"))
G.eval()
```
## Results
STARCOP AVIRIS-NG test set (342 tiles), Table I of the paper:
| Model | Params | F1 (strong) | F1 (weak) | FPR by tile ↓ | AUPRC |
|:---|:---:|:---:|:---:|:---:|:---:|
| HyperSTARCOP, mag1c + rgb | 6.63M | 81.96 ± 3.71 | 43.42 ± 5.72 | 43.66 ± 7.36 | 51.99 ± 2.76 |
| PHANTOM (this checkpoint) | 0.96M | 100.00 | 96.65 | 11.43 | 62.42 |
The two PHANTOM rows in the paper report the strong/weak columns differently; see the [GitHub notes](https://github.com/sachingirime/phantom-methane#notes-on-reproducing-table-i). As a capture rate (the share of plume tiles detected), this checkpoint scores 100.00 on strong and 93.52 on weak plumes.
## Training data
[STARCOP](https://zenodo.org/records/7863343) (Růžička *et al.*, *Scientific Reports*, 2023): 3,425 training tiles from the 2019 AVIRIS-NG Permian Basin campaign.
## License
The model weights are released under [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/). You may use, share and adapt them for non-commercial purposes, such as research and teaching, if you credit the paper above. Commercial use requires written permission from the authors. The license covers copyright in the weights only and grants no patent rights.
## Citation
```bibtex
@article{giri2026phantom,
title = {{PHANTOM}: Physics-Informed Hyperspectral Adversarial Network for Transformer-Optimized Methane Detection},
author = {Giri, Sachin and Hollenbeck, Derek and Krzysiak, Rafal and Chen, YangQuan and Du, Wan},
journal = {IEEE Transactions on Geoscience and Remote Sensing},
volume = {64},
pages = {5532810},
year = {2026},
doi = {10.1109/TGRS.2026.3741902}
}
```
## Acknowledgements
Supported in part by the Center for Methane Emission Research and Innovation (CMERI) through the University of California, Merced Climate Action Seed Funds grant.