Course project · DSC 40A · Spring 2026
Signal or Background?
Classifying germanium-detector waveforms from the Majorana Demonstrator
The Majorana Demonstrator looked for one of the rarest processes physics has a name for — a nucleus decaying in a way that would show neutrinos are their own antiparticles. Almost everything its detectors record is background. This project was a classifier that reads the shape of a single detector pulse and says which is which.
Why the shape of a pulse matters
The experiment used high-purity germanium detectors. When something deposits energy inside one, it produces a pulse whose rise depends on where and how many places the energy was left. The decay being searched for deposits its energy at essentially a single point. Much of the background — gamma rays that scatter through the crystal — leaves energy at several points, and the pulse records that as a rise with a shoulder in it.
So the task is not about how big a pulse is but about how it rises. Switch between the two cases below and watch the second channel — the slope — which is the one the network was given precisely because it makes the difference visible.
How the classifier is built — click a step
The result, and which number to trust
The model was chosen and scored on a holdout of 1,600 waveforms that never took part in any training: ROC AUC 0.971. The course's final ranking used 65,000 further waveforms whose labels were never released.
| Candidate | Networks | Holdout ROC AUC |
|---|---|---|
| Second-generation students + time-shift averaging | 4 | 0.9711 |
| … plus first-generation distilled models | 8 | 0.9706 |
| … plus the original supervised models | 12 | 0.9709 |
The notebook also prints a score of 0.982 on the course's labelled test set. That number is not a fair measure: to give the final model as much signal as possible, I folded the labelled test set into training and kept back a separate holdout instead. The holdout is the honest score; the 0.982 is the model grading data it had already seen.
What I took from it
- Put the physics in the input. Handing the network the slope as its own channel did more than any amount of depth would have: it turned "find a shoulder in a rise" into "count the peaks".
- Unlabelled data is still data. Sixty-five thousand pulses with no answers taught the second-generation models more about what real waveforms look like than the twenty thousand with answers could alone.
- Pick the simplest model that is not worse. Three ensembles finished within 0.0005 of each other. The four-network one was cheaper to run and no less accurate, which made the choice.
- Know which score you are allowed to quote. Using every labelled example for training was the right call for the leaderboard and the wrong number to report — so the page reports the holdout.
It is also where my research started. Bringing machine learning to germanium-detector experiments — the Majorana Demonstrator and its successor, LEGEND — is part of the background of Prof. Aobo Li, whose Rare AI Lab I joined in September.
Why there is no code on this page
The course does not allow project notebooks to be shared between students, and a project like this is reused in later quarters. The method is described here in full; the notebook itself stays private.
Python · PyTorch · residual CNNs with squeeze-and-excitation · semi-supervised self-training · ensembling and test-time augmentation · ROC analysis