Research · Astronomy & machine learning

Something in the Way It Clumps

Can what we know about a dense, cold cloud of gas and dust predict how grown-up the young stars inside it are?

So far: measurements of a clump say a fair amount about whether young stars are detected there, and very little about how evolved those stars are.

Start here ↓ Jump to findings

Intermediate results · November 2026 · not peer reviewed

Dotted words open up. Hover for a definition, click to play with the idea.open up. Tap one.

In one paragraph

Stars form in groups inside cold clumps of gas and dust. I'm asking what a clump, measured from the outside, can tell us about the young stars forming in it. I took 17,596 clumps from the Hi-GAL survey, matched them on the sky to three infrared surveys, and gave each two answers: whether any young star is detected, and how evolved the detected ones are on average. Models learned from 14 catalogue numbers and were tested on a stretch of the Milky Way they had never seen. They clearly beat guessing on the first question (average precision 0.57 against 0.26) and barely on the second (typical error 0.452 against 0.460). Next come images of the same clumps. What it adds to earlier work is a harder test, on sky kept apart, a finer target than two boxes, and a direct comparison: whether the shape and texture of a clump say anything its catalogue numbers don't.

Do a clump and its stars keep the same time?

Stars are born in groups, deep inside cold clumps of gas and dust. A clump and its young stars are two views of the same birth, seen in different light. The dust glows in the far infrared. The young stars show up at shorter infrared wavelengths.

What I'm asking

Suppose you could only measure the clump: how dense it is, how warm, how bright in each band. Could you say whether young stars are detected there, and how far along they are?

If you can, a clump is a clock, and whole regions of the galaxy can be read from dust alone. If you can't, the cloud and its stars may be telling different times, and reading one for the other would mislead.

The clumpfar infrared: dust glows

Its young starsnear and mid infrared

The same patch of sky in two kinds of light. An illustration, not data.

Who came before

Astronomers already sort clumps into stages. Urquhart and colleagues (2022) classified 5,007 of them and found no sharp breaks: the ratio of light to mass changes smoothly from stage to stage. In 2025 Maruccia and colleagues asked nearly my question with machine learning. A basic set of 16 features sorted clumps into two groups with 63% accuracy, when the commoner group was 58% of the sample. Adding infrared features tied to the young stars took it to 95%. They suggest clump and stars may mark different stages.

What was missing

  • A test on new sky. They held out 30% of clumps. The paper doesn't describe keeping regions of sky apart, and neighbours can look alike.
  • A finer question than two boxes. I ask separately whether any young star is detected, and then for the average class.
  • Pictures. Catalogue numbers squeeze each clump into a few values. Images keep its shape.

Urquhart et al. 2022 · Maruccia et al. 2025

What I did

From 17,596 clumps to a score on sky the models had never seen. Seven steps.

Start with the clumps

17,596 of them, from Hi-GAL, the Herschel telescope's map of the Milky Way's plane. Each comes with an ellipse on the sky and a row of measurements.

dense · warm · bright dense · warm · bright dense · warm · bright dense · warm · bright dense · warm · bright dense · warm · bright dense · warm · bright dense · warm · bright dense · warm · bright dense · warm · bright dense · warm · bright dense · warm · bright

Each clump comes with an outline on the sky and a row of measurements. Hover one.

Collect what lies inside

Three infrared surveys (GLIMPSE, AllWISE and UKIDSS) list millions of sources. I keep those that fall inside a clump's ellipse. On the sky, that is: some are only in front or behind.

kept: inside the ellipse faint: outside, left out
  • GLIMPSE
  • AllWISE
  • UKIDSS

Illustration, not data.

Decide which dots are the same star

One star can appear in several surveys at slightly different positions. Catalog matching links them, under written rules, and rejects blends.

same star, linked a blend, rejected

Illustration, not data.

Give every clump two answers

Matched sources are sorted into Class I (younger) and Class II (older) by their infrared colours. Each clump then gets a yes or no (is any young star detected?) and, when there are some, their mean class.

Class I younger Class II older Two answers for this clump any young star? yes mean class: 1 to 2

Illustration. Hover a source.

Keep the test sky apart

Training, validation and test clumps come from different stretches of the Milky Way (sky split), so a model can't pass by remembering the neighbourhood.

The Milky Way plane, galactic longitude 10° to 60°

Longitude increases to the left, as astronomers draw it.

  • Test, 47° to 60°
    2,464 clumps for detection, 649 for mean class
  • Train, 17° to 47°
    10,284 clumps for detection, 2,199 for mean class
  • Validation, 10° to 17°
    1,815 clumps for detection, 437 for mean class

Fourteen numbers in, one answer out

Models see only the clump: mass, temperature, luminosities and their ratios, surface density, brightness in five bands and two colours. They never see the stars. I compare linear models, random forests, LightGBM and small neural networks.

  • Mass
  • Temperature
  • Bolometric luminosity
  • Bolometric temperature
  • Luminosity ratio
  • Luminosity per mass
  • Surface density
  • 70 µm
  • 160 µm
  • 250 µm
  • 350 µm
  • 500 µm
  • Colour 70−250
  • Colour 250−350
Modelsees the clump only

Hover or arrow through the inputs to light a path.

Freeze, then score once

Choices use the training and validation sky only. Then everything is frozen and scored on the test sky against a baseline that knows nothing: guessing. New to training and testing? Try the toy.

It has now been scored, so later models on it are no longer a completely fresh test.

train + validation frozen test sky, once guessing, knows nothing the model Illustration: bar lengths are not results.

What I found

Finding 1

Two rule changes, 47 times more matches

What I did

I ran four rule sets for deciding which detections are the same source, from strict to relaxed, and checked them by shifting the positions on purpose and counting the matches that remain.

What I found

Demanding that all three surveys agree, pair by pair, left 451 matched sources. Anchoring on one survey and checking how much nearby light could be mixed in gave 21,013.

More isn't automatically better. I don't yet have a usable chance-match rate for the larger set. For a sibling rule it was about 0.83%.

Matched sources under two rules, areas drawn to scale

21,013 451
  • Anchored: one survey as the anchor, with a check on how much nearby light could be mixed in.
  • Strict: all three surveys must agree, pair by pair.

Finding 2

Are young stars detected there? The models can partly tell.

What I did

I gave five models the 14 numbers for each clump and asked for a yes or no: is any Class I or II young star detected? They learned from 10,284 clumps and were scored on 2,464 from another part of the sky.

What I found

On sky it had never seen, a small neural network reached an average precision of 0.57. Ranking clumps at random would get 0.26. Sort the test clumps by its score and young stars were detected in 8% of the bottom fifth and 61% of the top fifth.

“Detected” carries weight here. Distance and survey depth change what can be seen, and a zero doesn't mean a clump has no stars.

Average precision on unseen sky, by model

Neural networkmean of three runs, 0.564 to 0.572

0.57

Random forest

0.54

Logistic regression

0.53

LightGBM

0.49

Written by Claude, untrained

0.49

Neural network, test sky: clumps with a detected young star, by fifth of its score

  1. 8% lowest fifth
  2. 12% 2nd
  3. 20% 3rd
  4. 30% 4th
  5. 61% highest fifth

Finding 3

How evolved are they? On new sky, close to guessing.

What I did

Now only clumps with at least one classified star. I asked each model for the average class, from 1 (younger) to 2 (older): 2,199 clumps to learn from, 649 to be tested on. The score to beat is always answering the training average.

What I found

Always guessing the average gives a typical error of 0.460. The best model, LightGBM, got 0.452, and that difference is within chance.

There's still a faint signal. Its ranking agrees weakly with the truth (correlation 0.23, interval 0.15 to 0.30), and it puts an all-older clump above an all-younger one 65% of the time, where a coin would manage 50%.

On test, 73% of these clumps have exactly one detected star, so the “average” is often one star's class. And these are 14 catalogue numbers, one matching rule and one test region. That isn't the same as “clumps don't matter”.

LightGBM: predicted vs observed mean class

1.2 1.2 1.4 1.4 1.6 1.6 1.8 1.8 1 2 3 4 5 what the model predicted (mean class) axes cropped to 1.15 to 1.80 what was observed
Variance explained
3%of the spread in clumps' mean class
Rank correlation
0.23interval 0.15 to 0.30
Pair ordering
65%all-older clump ranked above all-younger. A coin gets 50%.

Dashed line: perfect predictions. Dots 1 to 5: the lowest to the highest fifth of predictions. Validation was also used to choose models, so it flatters them a little.

Finding 4

Accuracy fell, and so did the easy answer

What I did

I repeated the two-box version of the task from Maruccia and colleagues, mostly younger or mostly older, with LightGBM, the kind of model they used, on my sky split.

What I found

LightGBM went from 75.3% right on validation to 64.3% on test. But always picking the commoner answer also fell, from 68.0% to 57.5%. The model's lead over that barely changed: 7.3 points, then 6.8.

So part of the drop is a different mix of clumps, not only a worse model. Younger-class clumps also became harder to recognise.

Share of clumps called right (mostly younger or mostly older)

  • LightGBM
  • Always pick the commoner answer
50% 60% 70% 80% Validation sky Test sky 75.3% 68.0% 64.3% 57.5% +7.3 pts +6.8 pts

Axis cropped: it starts at 50%, not 0. The gap is LightGBM's lead over the easy answer.

Finding 5

Can an AI write a neural network by hand?

What I did

I set up an experiment in which Claude, an AI model, wrote all 65 numbers of each of two tiny networks by reasoning about the physics, with no training. It could study results on the training sky and revise. Then everything was frozen before testing.

What I found

Its first tries had larger errors than a constant guess on both tasks. After revision, one roughly matched the trained models on mean class and the other trailed most of them on detection.

The networks and their reasoning are Claude's. The question and the rules were mine. One slip is on record: the first detection network was written after Claude had seen summaries of only the clumps with stars.

Claude's ideas about clumps: which survived new sky?

Call each idea, then see what happened on the test sky.

  • Denser clumps are likelier to show young stars

  • Faint, light, cold clumps mean nothing is there

  • Clumps with no 70 µm glow have older stars on their sightline

  • Bluer 70 µm colour means more young stars

  • Hot, evolved clumps hold older stars

  • Average class starts near 1.6

Your score appears as you call them.

What each outcome would add

Catalogue numbers reduce a clump to a few values. Images keep where the dust is: one core or several, round or stretched, smooth or in threads. The next step compares the two on the same clumps and the same unseen sky.

Structure carries information. The layout of the dust would hold something about the young stars that catalogue values throw away. The next question would be which structure, and why. Surveys would have a reason to keep using their images, and not only the catalogues made from them.

A few numbers already say it. At this resolution and with these labels, a handful of catalogue values would hold about as much as a far-infrared picture. That would narrow the search to sharper images, shorter wavelengths or better labels. It would also fit the idea that dust and stars mark different stages.

The model learned the place. Images would be teaching the model about distance, background or which part of the galaxy it's looking at. That's a warning for any image model tested on neighbouring sky, and the reason the test region is kept apart.

Pick an outcome to see what it would add.

Where it leans nowNowhere yet: no image model has been trained. The catalogue result leaves room for images to help with how evolved the stars are. But most labelled clumps have a single detected star, and labels that coarse would hold images back too.

Where it stands

  1. Done

    Catalogue matching

  2. Done

    Labels and sky split

  3. Done

    Catalogue models

    Tested on new sky, 21 November 2026.

  4. Now

    Image pilot

    100 clumps cut out in 5 bands; 86 came out complete. The pilot was chosen to include awkward cases, and an independent check is pending.

  5. Next

    Image models, then images plus numbers

  6. Later

    Ablations and write-up

Field guide

Every dotted word on this page, collected. Most of them you can play with.

Stars form inside giant molecular clouds: huge, slow clouds of hydrogen gas mixed with tiny dust grains. Gravity gathers some of that gas into much denser lumps called clumps, a few light-years across. The most massive clumps are where the biggest stars are thought to form.

Clumps are cold, roughly 10 to 30 kelvin, because dust shades their insides from starlight, and cold gas pushes back only weakly against gravity. The dust is also how we find them: it blocks what lies behind it, and it glows in infrared.

A newborn star isn't born finished. For up to a few million years it is a young stellar object: a growing star still wrapped in leftovers from its cloud. First there is a thick envelope of falling gas and dust. Later the envelope thins and a flat disk remains. Finally the disk fades.

Astronomers sort these stages into Class 0, I, II and III by how the infrared glow is spread across colours. Classes are a sorting scheme, not a clock. My labels only separate Class I from Class II.

slope measured 350 µm 1101001000 µm energy →

Schematic curves, drawn for intuition, not real data.

Each detected young star is Class I (younger, counted as 1) or Class II (older, counted as 2). A clump's mean class is the average of its stars. Three Class I stars and one Class II star give 1.25.

A clump with no detected stars has no mean class, so it can't be scored. With one star, the mean is just that star's class, which makes many scores coarse.

Class I stars
2
Class II stars
1

Mean class 1.33

Hi-GAL is a survey of the Milky Way's plane made with the Herschel space telescope. It maps the sky in five colours of far-infrared light, from 70 to 500 micrometres, where cold dust glows. The clumps in this project come from its maps: patches of cold dust, picked out and catalogued.

Dust grains absorb visible light, so a dark cloud looks like a hole in the sky and the young stars inside are hidden. Longer wavelengths slip past the grains more easily. And dust glows: warm dust shines in the mid-infrared, cold dust like that in clumps brightest in the far-infrared.

Surveys such as Hi-GAL are basically maps of cold dust, while infrared catalogues list the warmer young stars themselves. Drag the slider to watch the picture change.

Illustration, not a real image.

A catalogue is a table with one row per object: position on the sky, brightness, size. To learn about a clump and the young stars in it, astronomers cross-match catalogues from different telescopes. If a source's position falls inside a clump's outline, the two are paired.

The catch is that the sky has no depth. A star that appears inside a clump may sit in front of it or far behind, like a bird that looks perched on the Moon. Projected inclusion is not physical inclusion, so careful matching asks how many pairs could be accidental.

What the sky shows

Side view (you, far left)

YOU 👁

A model can cheat by remembering. Neighbouring clumps tend to look alike, so if some were used for training and their neighbours for testing, a model could score well just by remembering the neighbourhood.

A sky split avoids that. Whole stretches of the Milky Way are set aside: one to train on, one for choosing between models (validation), and one for the final test. The test stretch is a different part of the sky from everything the model learned from.

Classification means teaching a computer to put things in boxes. It is shown examples where the answer is known, each described by features (numbers such as brightness at several wavelengths), and it tunes itself until its guesses match.

The danger is memorising, like a student who learns last year's answers but not the subject. So some examples are held back as a test set the model never sees until the exam. A score on the training data tells you almost nothing.

Training set

–

Test set (unseen)

–

Filled = training, hollow = test. Toy data, randomly generated.

LightGBM builds many small decision trees, one after another. Each tree is a short list of yes/no questions about the numbers: is the clump denser than this, warmer than that? Each new tree concentrates on the mistakes of the ones before it, and the final answer adds up all their votes. It often works well on tables of numbers like mine.

A neural network is layers of simple units. Each unit adds up its inputs, each with a weight, then bends the result with a simple curve. Training adjusts the weights until the outputs match known answers. Mine are tiny, with 4 to 16 units.

Rank every clump by a model's score and walk down the list. Average precision rewards putting the true cases (here, clumps with a detected young star) near the top. At each true case it takes the share of the list so far that is true, then averages those shares.

1 is a perfect ranking. A random ranking scores about the share of true cases overall.

Ranked list, best score first

    A tick marks a true case: a clump with a detected young star. 4 of the 12 are true.

    Average precision 0.00

    A random ranking scores about 0.33 here (4 of 12). Perfect is 1.00.

    status: in progress

    Catalogue models are done; images come next. Numbers here may change as I check them.

    ← back to Vold