home/portfolio/solar filaments
Solar Filaments
Given a 2048 × 2048 image of the Sun in H-alpha light, find every filament and draw its exact outline, one mask per filament.
Kaggle · Filament Segmentation 2026 · closed 15 November 2026
Filaments are dense clouds of solar material held above the surface by magnetic fields. They sit at the core of solar eruptions, so finding them automatically matters for space-weather forecasting.
The dark threads on the disc are the filaments. Experts outlined them by hand; the job is to do the same automatically, and to get the fine shape right, not just a box around it.
Image: GONG H-alpha, National Solar Observatory. Expert outlines: the MAGFiLO dataset.
- Top 2%
- 29th of 1,567 in the final results, November 2026. The competition closed on 15 November.
- 0.38
- panoptic quality, private leaderboard (0.40 public)
- 18
- submissions in eight days
- 707
- training images, 2048 × 2048 each
How it works.
What did not work: classic image processing. Thresholding the dark regions found 510 real filaments and 4,415 things that were not.

- 01
Detect
A YOLO detector proposes a box around everything that might be a filament.
- 02
Draw
A small U-Net looks at each box at full resolution and draws the mask inside it.
- 03
Vote
Four detectors look at the same image and vote on which masks to keep.
The climb.
Every submission, in order. Not every idea was a good one.
show as a table
| # | Day | Score | What changed |
|---|---|---|---|
| 1 | Oct 9 | 0.35 | First two-stage baseline |
| 2 | Oct 9 | 0.33 | Stricter thresholds |
| 3 | Oct 9 | 0.34 | Consensus with a Mask R-CNN |
| 4 | Oct 9 | 0.35 | Three models, flip augmentation |
| 5 | Oct 9 | 0.35 | One more variant of the baseline |
| 6 | Oct 10 | 0.37 | Mask model trained on every annotator |
| 7 | Oct 10 | 0.37 | Learned quality score |
| 8 | Oct 10 | 0.39 | 77-feature scorer, merged fragments |
| 9 | Oct 10 | 0.39 | New tile detector |
| 10 | Oct 11 | 0.39 | Five-detector ensemble |
| 11 | Oct 11 | 0.38 | Probe: keep more masks |
| 12 | Oct 11 | 0.39 | Probe: keep fewer masks |
| 13 | Oct 11 | 0.40 | Rank-averaged scores |
| 14 | Oct 11 | 0.40 | Probe: slightly larger masks |
| 15 | Oct 13 | 0.40 | Masks averaged with a retrained model |
| 16 | Oct 14 | 0.40 | Rebuilt simpler: four detectors, one mask model |
| 17 | Oct 15 | 0.40 | Clean rewrite, trained from scratch: my final pick (0.38 private) |
| 18 | Oct 16 | 0.39 | Probe: one detector instead of four |
new best
- +0.02 Mask model trained on every annotator Oct 10
- +0.02 77-feature scorer, merged fragments Oct 10
- +0.01 Rank-averaged scores Oct 11
fell short of the best so far
- −0.02 Stricter thresholds Oct 9
- −0.01 Consensus with a Mask R-CNN Oct 9
- −0.01 Probe: keep more masks Oct 11
- −0.01 Probe: one detector instead of four Oct 16
Code, report and write-up.
About 800 lines of Python, the trained weights and a notebook that runs every step. The four-page report and Kaggle write-up cover the method, validation and dead ends. One finding from it: on images no model saw, the pipeline scores 0.46 against each expert, and the experts score 0.34 against each other.