Aug 2025 – Aug 2026
AI · CSLast edited
Tagging the Positron Sky: A Naive Bayes Classifier for β+ Decay
A β⁺ decay ejects a positron that annihilates with an electron into two back-to-back 511 keV photons — the Joliot-Curies' 1934 discovery, and the origin of the Galaxy's brightest gamma-ray line, whose dominant source is still unknown. COSI, a NASA Small Explorer mission launching in 2027, will map that line with high-purity germanium detectors. But the spacecraft is itself activated into a 511 keV background, and COSI's analysis chain had no way to tag β⁺ events; pipelines only ever vetoed them.
BEvAn (the β⁺ Decay Event Analyzer) inverts that test. It reduces each reconstructed event to three physics factors — energy consistency with the 511 keV line, an angular resolution measure of the Compton scatter, and a back-to-back score for the two-photon vertex — and combines them through naive Bayes into a posterior probability of β⁺ origin.
Across seven simulated HPGe geometries differing thirtyfold in detector count, ROC-AUC spans just 98.3–99.6 %. Tuned for completeness, it recovers roughly 90–97 % of true β⁺ events at 80–85 % precision, beats the whole-event 511 keV cut in every geometry, and is a 25 kB model cheap enough to refit as the in-orbit background drifts.
Affiliation
NASA Small Explorers (SMEX) Program / UC Berkeley Space Sciences Laboratory
Partners
Report
- In preparation — targeting the American Astronomical Society (AAS)
Keywords
- Naive Bayes Classifier
- Event Reconstruction
- Gamma-Ray Astrophysics
- Compton Physics
- High-Purity Germanium Detectors
- Physics-Informed Machine Learning
- Lightweight Models
- Python
- C++
- PyTorch
- MEGAlib
- Geant4
- ROOT
Telling a positron’s death from everything that imitates it
In 1934 the Joliot-Curies bombarded aluminium with alpha particles and made the first artificial radioisotope — phosphorus-30, a β⁺ emitter. A positron does not last long: it stops in matter, meets an electron, and the pair leaves as two 511 keV photons flying apart back-to-back.


The same decay happens across the Galaxy. Isotopes forged in supernovae — ²⁶Al, ⁴⁴Ti, ⁵⁶Co — are β⁺ emitters, and their positrons light up the 511 keV line: the brightest persistent gamma-ray line of cosmic origin, whose dominant source is still unidentified after fifty years.

COSI, a NASA Small Explorer mission launching in 2027, will map that line with high-purity germanium (HPGe) detectors. The catch: cosmic rays activate the spacecraft itself into a background that also emits at 511 keV, and COSI’s analysis chain had no way to tag a β⁺ event — pipelines only ever vetoed them. BEvAn, the β⁺ Decay Event Analyzer, inverts that test. Built at UC Berkeley’s Space Sciences Laboratory with Andreas Zoglauer and John Tomsick; in preparation for the American Astronomical Society (AAS).

The signature — and everything that fakes it
An annihilation leaves a particular imprint in germanium: two photons Compton-scattering through the array, each recorded interaction a hit with a position and an energy. A clean event writes up to two scatter chains, with energies climbing toward 511 keV per photon and initial directions anti-parallel.
No single property is unique to annihilation, though. Compton-continuum events, partial deposits, and de-excitation gamma-rays each mimic one aspect of the signature — almost never all of them at once. The joint structure is what a real annihilation has and a background imitation lacks.
How it works
BEvAn never sees the decay, only the hits its photons leave behind. Three steps turn those into a decision: reconstruct the event, reduce it to three physically motivated scalars, and combine them through naive Bayes — chosen for transparency and for being cheap to refit as the in-orbit background drifts.

The three physics factors. Each event is reduced to three scalars, each testing a different half of the signature and blind to what the others measure.



Multiplicity classes. ΔE needs one hit, Ω a candidate of two, Ψ a vertex with two arms. Events are routed by how much their reconstruction produced, each class with its own densities and prior, so a missing factor is never imputed.
Densities, not thresholds. For each class and each of β⁺ and background, BEvAn estimates a smoothed 2D histogram over the feature space, pairing the angular scores with ΔE to keep their correlation. The ratio of the two densities in an event’s cell is its likelihood ratio. Empty cells get a small Jeffreys pseudo-count; the ΔE axis is log-spaced so the region near zero is finely resolved.


The decision. Naive Bayes multiplies each class’s density terms with a prior and assigns the larger posterior. Equivalently, a single evidence sum: log-likelihood ratios weighed against log prior odds — separately readable terms that show what each factor contributed.

Results
Trained and evaluated on MEGAlib activation simulations of seven HPGe geometries, from a four-layer telescope to a 125-detector array. The separation is a property of the annihilation signature, not the instrument: ROC-AUC spans just 98.3–99.6 % across a thirtyfold change in detector count.

BEvAn recovers roughly 90–97 % of true β⁺ events at 80–85 % precision — tuned toward completeness, because for annihilation-line science the expensive mistake is discarding a real event, not admitting a few extra.
The obvious heuristic is a single cut: tag an event β⁺ if its total energy falls near 511 keV. At the heuristic’s own false-positive rate, BEvAn beats it on both precision and recall in every geometry, with the widest margin on complex, high-multiplicity instruments where several photons pile into one event and an energy sum can no longer isolate the annihilation photon. Where energy alone nearly suffices, the angular factors add little; where deposits pile together, they carry the physics the energy test has lost.
It is also cheap. Nearly all the cost is building the factors, at a few hundred microseconds to two milliseconds per event; scoring runs at order 10⁷ events per second, and the fitted model is 25 kB — small enough to refit epoch by epoch as the activation background builds after each pass through the South Atlantic Anomaly.

What I took away
The difficulty lives in the physics factors, not the inference. Nearly all of the signal, and nearly all of the cost, is in building the Compton reconstruction, the scatter kinematics, and the back-to-back geometry; the classifier on top is a deliberately simple, readable sum.
That points to the next step. An event is already a graph — hits as nodes, kinematic relations as edges — and the current pipeline collapses it into three scalars. A graph neural network could score the hit structure directly, at the price of a larger model and the per-factor transparency. The way to get both is to stack them: BEvAn runs first as a cheap, high-recall filter that hands on a β⁺-enriched pool, and a GNN then rejects the residual background it cannot separate. Since the second stage only removes candidates, BEvAn sets the recall ceiling and the GNN buys precision.
