# ABU: Airport-Beach-Urban hyperspectral anomaly/target detection benchmark

## Facts

- Provider: sxt1996 (published benchmark, derived from AVIRIS/ROSIS public flight data)
- License: No license file published in the source repository. Widely used as a research benchmark in the hyperspectral anomaly-detection literature; confirm terms with the author (sxt1996@outlook.com) before any commercial use.
- Records: 13 .mat files: 4 airport, 4 beach, 5 urban scenes
- Access: public, readable without an account
- Category: Computer Vision
- Source: https://github.com/sxt1996/Airport-Beach-Urban-ABU
- Page: https://scigantic.com/archive/80620fad-7860-5cec-8819-563943e0a266
- Keywords: Computer Vision, benchmark

## About

ABU (Airport-Beach-Urban) is a widely-used hyperspectral anomaly-detection benchmark: 13 scene crops (4 airport, 4 beach, 5 urban) manually cropped from AVIRIS and ROSIS airborne imaging-spectrometer flights, each shipped as a MATLAB .mat file with a 3-D radiance/reflectance cube (variable spatial size and band count per scene) plus a binary per-pixel ground-truth map marking anomalous targets (vehicles, small structures, isolated objects that stand out spectrally from their surroundings) against the background scene. Ground-truth density is sparse and varies per scene (roughly 0.1%-2.7% of pixels). This entry clones the author's GitHub repository directly into ~/archive at launch (git-source, no S3 mirror) since no license file is published; nothing is copied onto Scigantic infrastructure ahead of time. Widely cited as a standard benchmark in hyperspectral anomaly-detection papers (RX detector variants, autoencoder/GAN-based detectors, low-rank + sparse decomposition methods). See the schema card for per-file band-count/dtype quirks before writing generic loading code.

## Load the data

```python
import scipy.io as sio
import numpy as np
import glob, os

root = os.path.expanduser("~/archive")
for f in sorted(glob.glob(f"{root}/abu-*.mat")):
    m = sio.loadmat(f)
    data, gt = m["data"], m["map"]
    target_frac = (gt != 0).sum() / gt.size
    print(f"{os.path.basename(f):20s} {data.shape} {data.dtype}  target={target_frac:.2%}")
```

Written for a Scigantic notebook, where /mnt/archive (SCIGANTIC_MOUNT_PATH) is the mounted dataset.

## Data structure

| Field | Type |
| --- | --- |
| `data` | 3-D array (rows, cols, bands) — uint16 in most files, int16 in several (can be negative — see caveats), float64… |
| `map` | 2-D uint8 array (rows, cols), values strictly {0, 1} in all 13 files — verified, not assumed |
| `filename` | abu-<scene_type>-<index>.mat; scene_type is airport \| beach \| urban, index is 1-based within that type |

Files:

```text
13 flat .mat files at the repo root, no subdirectories: abu-<airport|beach|urban>-<n>.mat.
Every file has exactly 2 MATLAB variables (verified via scipy.io.loadmat on all 13):
  data  — 3-D cube, (rows, cols, bands). Spatial size and band count VARY PER FILE.
  map   — 2-D binary ground truth, (rows, cols), uint8, values {0, 1}. 1 = anomalous target pixel.
There is no manifest/index file and no train/test split — this is 13 independent benchmark scenes,
each evaluated separately in the literature (per-scene AUC), not a partitioned ML dataset.
```

Example file: `abu-airport-1.mat -> data (100,100,205) uint16, DN range 0-6604; map (100,100) uint8, 144/10,000 target pixels (1.44%).`

## Open it

- In a hosted notebook with the data mounted: https://scigantic.com/archive/80620fad-7860-5cec-8819-563943e0a266
- Full record as JSON (schema card included): https://api.scigantic.com/api/archives/80620fad-7860-5cec-8819-563943e0a266
- Over MCP: `get_schema_card` with id `80620fad-7860-5cec-8819-563943e0a266` at https://api.scigantic.com/mcp

## Related topics

- [Benchmark datasets](https://scigantic.com/topics/benchmark)
- [Computer Vision datasets](https://scigantic.com/topics/computer-vision)
