Zhen Wang

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.

Data
20,000 labelled · 65,000 unlabelled waveforms
Input
3,800 samples per pulse
Model
Residual 1D CNN, self-trained ensemble
Holdout
ROC AUC 0.971

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.

Schematic detector pulses and their derivatives Two illustrative cases. A single energy deposit gives one clean rise in the pulse and one sharp peak in its derivative. Deposits at several points give a rise with a shoulder and several peaks in the derivative. Schematic, not measured data. pulse (normalised) its slope — the second channel time →
Schematic pulses drawn to show the mechanism, not real detector data.

How the classifier is built — click a step

The classification pipeline Six stages: normalise each waveform, build two input channels, a residual convolutional network, training across four seeds, self-training on 65,000 unlabelled waveforms, and a test-time-augmented ensemble. Normaliseper waveformTwo channelspulse + slopeResidual CNNsqueeze-excitationTrain4 seeds · EMASelf-train65k unlabelledEnsemble4 nets × 3 shifts
Click any step to see what it does and why it is there.

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.

Final candidates, scored on the same 1,600-waveform holdout. The smallest ensemble was as good as the larger ones, so it was the one submitted.
CandidateNetworksHoldout ROC AUC
Second-generation students + time-shift averaging40.9711
… plus first-generation distilled models80.9706
… plus the original supervised models120.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