File size: 3,251 Bytes
dc69008
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bbdcdd2
dc69008
 
 
 
 
bbdcdd2
 
 
 
dc69008
 
 
 
 
 
 
 
 
dcec635
 
 
dc69008
dcec635
dc69008
 
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
---
license: mit
task_categories:
  - time-series-forecasting
language: []
tags:
  - air-quality
  - spatio-temporal
  - graph-neural-networks
  - missing-data
pretty_name: AirQualityBench
size_categories:
  - 1G-10G
---

# AirQualityBench

A global-scale air quality forecasting benchmark featuring **3,720 monitoring stations** across the world with **authentic missing patterns** and physical-scale evaluation.

## Dataset Summary

AirQualityBench provides a realistic testbed for air quality prediction by preserving raw observational characteristics that prior benchmarks have removed through imputation. The dataset spans **5 years (2021–2025)** of hourly measurements across **6 primary pollutants** (PM2.5, PM10, NO₂, O₃, SO₂, CO).

### Key Features

- **Global scale**: 3,720 active stations spanning 7 continents, sourced from [OpenAQ](https://openaq.org/)
- **Authentic missingness**: No imputation — evaluation uses boolean masks to score only valid observations
- **Physical-scale metrics**: All statistics computed in original concentration units (μg/m³ for gases, mg/m³ for CO)
- **Multi-pollutant**: 6 pollutants evaluated jointly

## Data Structure

Each yearly HDF5 file (`aq_compact_{year}.h5`) contains:

| Dataset       | Shape          | Description                          |
|--------------|----------------|--------------------------------------|
| `values`     | `(T, 3720, 6)`  | Hourly concentrations (float32)      |
| `masks`      | `(T, 3720, 6)`  | Valid observation flags (bool)       |
| `station_ids`| `(3720,)`       | Station identifiers                  |
| `params`     | `(6,)`          | Pollutant names                      |

Additional files:
- `adj_mx_10.pkl` — KNN adjacency matrix (k=10, Haversine distance)
- `scaler.csv` — Per-pollutant mean/std for normalization
- `global_quality_stats.csv` — Per-station, per-pollutant coverage rates
- `selected_nodes_metadata.csv` — Station coordinates and metadata
- `all_stations_coords.csv` — Raw station coordinates from OpenAQ

## Data Splits

| Split      | Years       | Approx. Hours |
|-----------|-------------|---------------|
| Train     | 2021–2023   | ~26,280       |
| Validation| 2024        | ~8,784        |
| Test      | 2025        | ~8,760        |

## Usage

This dataset uses the HDF5 format with multiple internal arrays of different shapes, which is incompatible with the `datasets` library's HDF5 loader. Use `h5py` to read the files directly:

```python
import h5py

with h5py.File("aq_compact_2021.h5", "r") as f:
    values = f["values"][:]       # (T, 3720, 6) float32
    masks = f["masks"][:]         # (T, 3720, 6) bool
    params = f["params"][:]       # (6,) pollutant names
    station_ids = f["station_ids"][:]  # (3720,) station IDs
```

## Benchmark Code

Training and evaluation code: [github.com/Star-Learning/AirQualityBench](https://github.com/Star-Learning/AirQualityBench)

## Citation

```bibtex
@article{xu2026airqualitybench,
  title={AirQualityBench: A Realistic Evaluation Benchmark for Global Air Quality Forecasting},
  author={Xu, Xing and Wang, Xu and Zhang, Yudong and Zhao, Huilin and Zhou, Zhengyang and Wang, Yang},
  journal={arXiv preprint arXiv:2605.05854},
  year={2026}
}
```