Inspiration

Satellites watch industrial sites every day, but clouds and quality filters block many of their readings. OBSCURA asks a practical question: how much can we say about the air above a facility using only things that are almost always available, a Sentinel-2 image chip and the weather and terrain around it

Methane, nitrogen dioxide, carbon monoxide, smoke and fire are released together and moved by the same winds, yet they are usually studied one at a time. We wanted to build a pipeline that predicts all five together and, just as importantly, tells us honestly where it can and cannot learn anything.

What it does

For every sample (a site at a point in time), the model predicts five z-scored targets:

  • methane (t_ch4)
  • nitrogen dioxide (t_no2)
  • carbon monoxide (t_co)
  • absorbing aerosol index (t_aai)
  • fire/flare intensity (t_firms)

The inputs are a 14-layer Sentinel-2 chip (12 spectral bands, a scene classification layer and a cloud probability layer) and 29 weather, terrain and month columns. The training set has 3,218 rows from 81 sites. The test set has 1,221 rows from new sites photographed later, so the model has to generalize rather than memorize places.

Scoring is masked mean column-wise RMSE, where a blank target is skipped and never treated as zero:

$$\text{MCRMSE}=\frac{1}{5}\sum_{t}\sqrt{\frac{\sum_i m_{it}\,(y_{it}-p_{it})^2}{\sum_i m_{it}}}$$

Here the mask m is 1 only if the truth for target t was measured.

How we built it

  1. Image features. We kept only clear, valid pixels (cloud probability below 40, no zeros in B1–B12, with safe fallbacks). Each chip became a compact feature table of band statistics and percentiles, vegetation, water, burn and built-up indices, band ratios, brightness thresholds and local texture. For fire we added hot-pixel features from the shortwave-infrared bands B11 and B12: top-pixel averages, hot-region counts and sizes, and local contrast. All features come from the competition data only, with no pretrained models.
  2. Target-specific features. Each target got only the feature families that helped it in validation:
    • Nitrogen dioxide uses inverse wind speed combined with urban-texture features (edges, local standard deviation, built-up index).
    • Aerosol uses solar radiation and temperature combined with how bare the surface looks.
    • Fire uses the hot-pixel families.
  3. Small, regularised models. With only 81 sites, big models memorise places. The main pipeline averaged shallow histogram gradient boosting, Ridge on rank-transformed columns, CatBoost and SVR into small per-target teams. Fire also got a two-stage "high or low" model. For nitrogen dioxide in V02, boosting and Ridge were replaced by random-subspace copies. A second pipeline used LightGBM, CatBoost and an MLP in a centred ensemble.
  4. Shrinkage. Where the signal is weak, a confident prediction hurts. For every target we chose a shrink factor toward zero on held-out sites. Final factors: methane 0.40, carbon monoxide 0.49, nitrogen dioxide 0.94, aerosol 1.00, fire 1.00.
  5. Blending and a physical floor. The final submission is an equal 50/50 blend of the two pipelines (v14 and the updated v102 pipeline). Fire predictions are clipped at the training minimum, since a fire score cannot be lower than "no detection". The blend step also checks sample IDs, column order and finite values.

Validation strategy

A random split would let a model recognise a site and recall its typical values, so we never used one.

  • Site-grouped folds. Every site appears in exactly one fold, plus regime-based folds (sites clustered by weather and terrain) in the v14 pipeline.
  • Repeated half-site runs. We chose the model and shrink factor on one half of the sites and scored on the other half. This used 160 runs in the main pipeline and 8 partition sets × 20 splits × 2 directions in V02.
  • A fixed adoption rule. Fixed before looking at results: a change was adopted only if it gained at least 0.001 MCRMSE and won in at least 75% of runs, in both halves of the runs. Later experiments used a stricter 0.0015 / 85% rule.
  • No leakage. Targets were clipped at the 1st and 99th percentile inside training folds only.
Site-grouped validation (lower is better) MCRMSE
Predict zero for everything 0.9963
Main pipeline, earlier version (v102) 0.8548
Site-aware single model (V02) 0.8505
Main pipeline, final version 0.8483

Per-target held-out RMSE of V02: aerosol 0.58, fire 0.79, nitrogen dioxide 0.90, carbon monoxide 0.99, methane 1.00.

Challenges we ran into

  • Overfitting to sites. About 40 rows share one site and look alike. Dropping 130 of 248 noisy columns (raw image statistics and generic ratios) for the fire target improved its held-out RMSE from 0.825 to 0.798. Fewer, more physical features generalized better.
  • Weak targets. For methane and carbon monoxide the honest answer is "very little is learnable". Shrinkage helped more than a bigger model.
  • Missing labels. Blank targets are skipped in training and scoring, and never treated as zero.
  • Noisy feedback. The public split is small, so we relied on repeated grouped validation instead of leaderboard chasing.
  • Validation and leaderboard disagree. Some changes passed our validation rule but did not help on the leaderboard, and others failed the rule. We kept these in the notebooks on purpose so the process stays transparent.

Accomplishments that we're proud of

  • A clear, repeatable gain over the zero baseline on unseen sites: 0.9963 down to 0.8505 for the single V02 model, and 0.8483 for the final main pipeline.
  • Aerosol is learned well (0.58 against about 1.0 for zero), and fire and nitrogen dioxide are learned to a useful degree.
  • Public leaderboard: our single files scored 1.01690 and 1.01807, and the blended submissions scored 1.01510 and 1.01633.
  • The pruning result for fire (130 columns removed, better held-out error) and the random-subspace copies for nitrogen dioxide (+0.0013 gain, better in 96% of runs and in 8 of 8 partition sets).
  • A pre-registered decision rule, so we never tuned against the public leaderboard.
  • A team of four who shared ideas, ran experiments and reviewed each other's results.

What we learned

  • With few sites, small and shrunk models were safer than flexible ones.
  • A small validation gain alone was not enough to trust a change. It had to repeat across many partitions and both halves.
  • Validation and leaderboard are measured on different sites, so we compare changes rather than absolute values. Our public score is clearly higher than our grouped validation score. We believe the main reasons are the move to new places and a later time period, and a small, noisy public split. We cannot confirm this without the private labels.
  • Blending gained only about 0.0001 on our own validation, so we treat its small public improvement with caution.
  • Our explanations for why features help (wind, urban texture, hot pixels) are hypotheses, not proven mechanisms.
  • Methane and carbon monoxide stay close to predicting zero. We did not find a reliable way to predict them.

What's next for Satellite-Based-Atmospheric-Signal-Prediction

  • Check our results against the private leaderboard labels, to confirm or reject the "new places, later time period" explanation for the gap between validation and public scores.
  • Add time-aware validation (train earlier, test later) on top of the site-grouped splits, since the test set is both new places and a later period.
  • Keep searching for a reliable methane and carbon-monoxide signal, for example from better wind and plume features, or accept that shrinkage toward zero is the honest answer.
  • Test the physical hypotheses behind our features directly, for example whether wind and urban texture really drive nitrogen dioxide.
  • Keep what worked (target-specific features, pruning, shrinkage, the pre-set adoption rule) and try them on other satellite products.

Built With

  • catboost
  • ensemble-learning
  • feature-engineering
  • gradient-boosting
  • grouped-cross-validation
  • joblib
  • jupyter-notebook
  • kaggle
  • lightgbm
  • matplotlib
  • numpy
  • pandas
  • python
  • rasterio
  • remote-sensing
  • ridge-regression
  • scikit-learn
  • scipy
  • sentinel-2
  • tifffile
Share this project:

Updates

Submission history