xuxing123 commited on
Commit
dc69008
·
verified ·
1 Parent(s): 243d23f

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +95 -0
README.md ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - time-series-forecasting
5
+ language: []
6
+ tags:
7
+ - air-quality
8
+ - spatio-temporal
9
+ - graph-neural-networks
10
+ - missing-data
11
+ pretty_name: AirQualityBench
12
+ size_categories:
13
+ - 1G-10G
14
+ ---
15
+
16
+ # AirQualityBench
17
+
18
+ A global-scale air quality forecasting benchmark featuring **3,720 monitoring stations** across the world with **authentic missing patterns** and physical-scale evaluation.
19
+
20
+ ## Dataset Summary
21
+
22
+ 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).
23
+
24
+ ### Key Features
25
+
26
+ - **Global scale**: 3,720 active stations spanning 7 continents, sourced from [OpenAQ](https://openaq.org/)
27
+ - **Authentic missingness**: No imputation — evaluation uses boolean masks to score only valid observations
28
+ - **Physical-scale metrics**: All statistics computed in original concentration units (μg/m³ for gases, mg/m³ for CO)
29
+ - **Multi-pollutant**: 6 pollutants evaluated jointly
30
+
31
+ ## Data Structure
32
+
33
+ Each yearly HDF5 file (`aq_compact_{year}.h5`) contains:
34
+
35
+ | Dataset | Shape | Description |
36
+ |--------------|----------------|--------------------------------------|
37
+ | `values` | `(T, 3720, 6)` | Hourly concentrations (float32) |
38
+ | `masks` | `(T, 3720, 6)` | Valid observation flags (bool) |
39
+ | `station_ids`| `(3720,)` | Station identifiers |
40
+ | `params` | `(6,)` | Pollutant names |
41
+
42
+ Additional files:
43
+ - `adj_mx_10.pkl` — KNN adjacency matrix (k=10, Haversine distance)
44
+ - `scaler.csv` — Per-pollutant mean/std for normalization
45
+ - `global_quality_stats.csv` — Per-station, per-pollutant coverage rates
46
+ - `selected_nodes_metadata.csv` — Station coordinates and metadata
47
+ - `all_stations_coords.csv` — Raw station coordinates from OpenAQ
48
+
49
+ ## Data Splits
50
+
51
+ | Split | Years | Approx. Hours |
52
+ |-----------|-------------|---------------|
53
+ | Train | 2021–2023 | ~26,280 |
54
+ | Validation| 2024 | ~8,784 |
55
+ | Test | 2025 | ~8,760 |
56
+
57
+ ## Usage
58
+
59
+ ### Via `datasets` library
60
+
61
+ ```python
62
+ from datasets import load_dataset
63
+
64
+ # Load training split (2021–2023)
65
+ ds = load_dataset("xuxing123/AirQualityBench", "train", streaming=True)
66
+ for row in ds.take(5):
67
+ print(row["values"].shape) # (3720, 6)
68
+ print(row["masks"].shape) # (3720, 6)
69
+ ```
70
+
71
+ ### Direct HDF5 access (recommended for training)
72
+
73
+ ```python
74
+ import h5py
75
+
76
+ with h5py.File("aq_compact_2021.h5", "r") as f:
77
+ values = f["values"][:] # (8760, 3720, 6)
78
+ masks = f["masks"][:] # (8760, 3720, 6)
79
+ ```
80
+
81
+ ## Benchmark Code
82
+
83
+ Training and evaluation code: [github.com/Star-Learning/AirQualityBench](https://github.com/Star-Learning/AirQualityBench)
84
+
85
+ ## Citation
86
+
87
+ ```bibtex
88
+ @article{airqualitybench2025,
89
+ title={AirQualityBench: A Global-Scale Air Quality Forecasting Benchmark
90
+ for Spatio-Temporal Graph Neural Networks},
91
+ author={...},
92
+ journal={arXiv preprint arXiv:2605.05854},
93
+ year={2025}
94
+ }
95
+ ```