Upload MISSION_US_N0.md
Browse files- MISSION_US_N0.md +110 -0
MISSION_US_N0.md
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# AtmosIQ — MISSION N-0: US EXPANSION SPEC
|
| 2 |
+
|
| 3 |
+
**Objective:** expand supervision ~10× by ingesting US EPA-monitored regions into the SAME
|
| 4 |
+
54-column, same-grid-framework pipeline, continue SSL from `encoder_v3.pt`, and test the
|
| 5 |
+
pre-registered transfer rule.
|
| 6 |
+
|
| 7 |
+
**N-1 adopt rule (frozen before any US run):** the judge stays **India spatial-held-out M2**.
|
| 8 |
+
Adopt the US-trained encoder only if India pm2_5 or pm10 improves ≥ +0.03 AND no pollutant
|
| 9 |
+
drops > 0.02. US numbers are diagnostics, never the verdict.
|
| 10 |
+
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
## §1 Regions — whole states, station-dense (user decision: full states, proper graph web)
|
| 14 |
+
|
| 15 |
+
| Region | States | Why |
|
| 16 |
+
|---|---|---|
|
| 17 |
+
| **US_CA** (mandatory) | California | Densest monitoring network in the US; terrain diversity (coast/valley/mountain — exercises the terrain mask); wildfire PM events (heavy-tail regime the log-Student-t was built for) |
|
| 18 |
+
| **US_NE** (mandatory) | New York + New Jersey + Pennsylvania | Urban corridor — traffic NO2/CO regime (our weakest species gets dense supervision) |
|
| 19 |
+
| **US_GL** (optional, if time) | Illinois + Indiana + Ohio | Industrial belt — SO2/industrial sources |
|
| 20 |
+
|
| 21 |
+
Rules: one contiguous 10 km equal-area grid **per region** (projection: US Albers EPSG:5070),
|
| 22 |
+
full grid inside state boundaries (unlabeled context cells INCLUDED — the graph needs them;
|
| 23 |
+
station-only rows would kill GAT/SSL/orphan). `node_id` scheme: `US_CA_xxxxx_yyyyy` —
|
| 24 |
+
permanent, never reassigned, per §2 of the frozen architecture. Per-region `node_set_hash`.
|
| 25 |
+
|
| 26 |
+
## §2 Label source — EPA AQS (the "US CPCB")
|
| 27 |
+
|
| 28 |
+
Pre-generated daily files: `aqs.epa.gov/aqsweb/airdata/` → `daily_<param>_<year>.zip`, 2018–2026.
|
| 29 |
+
|
| 30 |
+
| pollutant | AQS parameter code | EPA unit | convert to (CPCB convention) |
|
| 31 |
+
|---|---|---|---|
|
| 32 |
+
| pm2_5 | 88101 (FRM) + 88502 (non-FRM) | µg/m³ | as-is (merge both codes, FRM wins on conflict) |
|
| 33 |
+
| pm10 | 81102 | µg/m³ | as-is |
|
| 34 |
+
| o3 | 44201 | **ppm** | µg/m³ = ppm × 1000 × 48.00/24.45 |
|
| 35 |
+
| no2 | 42602 | **ppb** | µg/m³ = ppb × 46.01/24.45 |
|
| 36 |
+
| so2 | 42401 | **ppb** | µg/m³ = ppb × 64.07/24.45 |
|
| 37 |
+
| co | 42101 | **ppm** | **mg/m³** = ppm × 28.01/24.45 (CPCB uses mg/m³ for CO!) |
|
| 38 |
+
| nh3 | — not in routine AQS | mask = 0 everywhere (the mask design handles this) |
|
| 39 |
+
|
| 40 |
+
⚙️ pinned: conversion at 25 °C / 1 atm (24.45 L/mol). **🛑 THE unit-conversion assert is
|
| 41 |
+
mandatory at ingestion** — write a test that a known ppb value round-trips; this is the CO-bug
|
| 42 |
+
class from India, now ×6 pollutants. Verify converted US medians land in physically sane
|
| 43 |
+
ranges vs India (US pm2_5 median ≈ 5–15 µg/m³ — much cleaner air is EXPECTED, not a bug).
|
| 44 |
+
|
| 45 |
+
## §3 Feature columns — SAME 54, source mapping
|
| 46 |
+
|
| 47 |
+
- **Group A (18):** identical products — S5P L2 (AWS Open Data), MODIS/VIIRS AOD, FIRMS
|
| 48 |
+
fire_count/frp. Same per-pixel qa handling, same missingness flags.
|
| 49 |
+
- **Group B (12):** ERA5 (AWS `era5-pds`), same 12 columns. `u/v_1330ist` → **13:30 LOCAL
|
| 50 |
+
SOLAR time** per region (S5P overpasses ~13:30 local everywhere; India used IST for the
|
| 51 |
+
same reason). US_CA ≈ 13:30 PT, US_NE/GL ≈ 13:30 ET/CT.
|
| 52 |
+
- **Group C (13):** global sources — same DEM, OSM (roads/industry distances + densities),
|
| 53 |
+
population, MODIS NDVI. **🛑 land_use_class MUST come from the same GEE asset/vocabulary
|
| 54 |
+
as India** (embedding indices are shared with the pretrained encoder); assert max class <
|
| 55 |
+
n_landuse from India's meta.json.
|
| 56 |
+
- **Group D (16):** same 16 columns, US values: `is_holiday` = US federal holidays;
|
| 57 |
+
`festival_firecracker` = **July 4 (±1) + Dec 31/Jan 1** (real US PM spikes);
|
| 58 |
+
`festival_biomass` = 0; `crop_burning_intensity` = 0 in V1 (US ag-burning is regional and
|
| 59 |
+
poorly dated — a zeroed channel is honest, a guessed one is not); monsoon triplet = 0 /
|
| 60 |
+
inactive; `covid_lockdown_intensity` = US ranges (≈ 2020-03-19 .. 2020-05-31 ramp, state
|
| 61 |
+
variation ignored in V1); `grap_stage` = 0 always (no US equivalent); `heatwave_season` =
|
| 62 |
+
same May-centered ramp.
|
| 63 |
+
|
| 64 |
+
## §4 Normalization + splits — frozen decisions
|
| 65 |
+
|
| 66 |
+
- **India `norm.npz` stats FROZEN and applied to US features** (post-unit-conversion). The
|
| 67 |
+
encoder's weights are defined in India-standardized space; refitting stats would break the
|
| 68 |
+
init. US standardized values will sit off-center (cleaner air) — that is signal.
|
| 69 |
+
- **y_logmean/y_logstd: India's frozen too.** US targets standardize to negative territory —
|
| 70 |
+
correct and expected.
|
| 71 |
+
- **Splits per region:** same D-0 protocol — detrended correlogram → block size (run it; if
|
| 72 |
+
r_ac ≈ India's, reuse 300 km blocks) + targeted 50 km hard-leak buffer, connectivity check
|
| 73 |
+
after removal. Same `M0-mini` gate per region: uniqueness-asserted ingestion, edge build
|
| 74 |
+
(KNN k=8, r0=40 km — pinned values unchanged), terrain mask (Sierra Nevada / Appalachians
|
| 75 |
+
will produce barrier edges — sanity-check their locations like Himalaya was checked).
|
| 76 |
+
|
| 77 |
+
## §5 Training plan — weights carry forward, India stays the exam
|
| 78 |
+
|
| 79 |
+
```
|
| 80 |
+
encoder_v3.pt (India SSL) ← INIT (never from scratch)
|
| 81 |
+
→ SSL continue: pooled India + US days (no labels needed; ssl_epochs ~10,
|
| 82 |
+
region-balanced day sampling)
|
| 83 |
+
→ head: pooled labels, India-weighted (India:US sample weight ~2:1 start)
|
| 84 |
+
→ FINAL head FT: India-only (3-min, as always)
|
| 85 |
+
→ JUDGE: India spatial-held-out M2 vs N-1 rule
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
US-side diagnostics reported alongside (US spatial-held-out per region) but never gate.
|
| 89 |
+
All existing pins carry: TP-1 full-graph per region, TP-4 guards, TP-7 val_mse selection,
|
| 90 |
+
seed 42, λ_phys=0, orphan in SSL blackout only.
|
| 91 |
+
|
| 92 |
+
## §6 Build order + M0-US gate checklist
|
| 93 |
+
|
| 94 |
+
1. EPA daily files → per-region station list → region grids + graphs (+hash, terrain mask)
|
| 95 |
+
2. 12-source feature ingestion per region (reuse India ingestion code, region configs)
|
| 96 |
+
3. **M0-US mini-gate:** 0 duplicate keys · unit round-trip test green · converted medians
|
| 97 |
+
sane · land-use vocab assert · mean_deg ≥ 4 per region graph · D-0 correlogram + split
|
| 98 |
+
+ hard-leak = 0 · labeled-fraction report per pollutant
|
| 99 |
+
4. assemble → tensors per region → pooled SSL continue → probe (scoreboard) → heads → N-1
|
| 100 |
+
|
| 101 |
+
**Timeline honesty:** India ingestion took days with debugging; realistic here = 2–4 days
|
| 102 |
+
data (AWS-resident sources help), 1 day multi-region training-loop code, 1 day runs.
|
| 103 |
+
Nothing right of M0-US runs before M0-US passes — same discipline as India.
|
| 104 |
+
|
| 105 |
+
## §7 What would falsify this mission
|
| 106 |
+
|
| 107 |
+
If pooled training moves India M2 by < +0.03 (N-1 not fired), the conclusion is recorded as:
|
| 108 |
+
"cross-country label transfer does not close the India gap at this scale" — encoder reverts
|
| 109 |
+
(one `cp`), India V1 stands, and the mission still yields a US-validated model + the
|
| 110 |
+
strongest possible internship narrative either way. Pre-registered, no rationalizing after.
|