Election 2026 A Forecast of Every Senate, House & Governor Race See the Forecast

High Energy Particle CNN Classifier

Computer Vision
Deep Learning
Research
A convolutional neural network that identifies five particle types from liquid argon detector images, reaching 88.2% accuracy on a held-out test set.
Published

June 1, 2024

The Decision

Tune the learning-rate schedule rather than the architecture.

Takeaways

  • Plateau learning-rate scheduling raised the best validation accuracy from 83.4% to 89.1%.
  • On 40,000 held-out test events, accuracy rose from 82.9% to 88.2%.
  • Additional capacity reduced performance, suggesting the baseline architecture was already sufficiently expressive.
  • Pions remain the weakest class, with about one in five classified as a muon.

This project identifies particles in images from a liquid argon time projection chamber. The dataset contains five classes: electrons, muons, photons, pions and protons. Following the approach of the MicroBooNE Collaboration [1], a convolutional neural network learns track patterns directly from the images, without hand-crafted physics features. Most of the improvement came from the learning-rate schedule, and the final model reaches 89.1% validation accuracy and 88.2% on a held-out test set.

Source code: github.com/olivia-jackson-lambert/high-energy-particle-classifier

Data Exploration

Particle Types in the Dataset

The dataset comprises 90,000 simulated events, 18,000 per class. Four of the classes are charged particles and the fifth, the photon, is neutral. Mass and charge together largely determine how each particle appears in the detector.

Particle PDG code Symbol Charge (e) Mass (MeV/c²) Typical detector signature
Electron 11 e⁻ −1 0.511 Branching electromagnetic shower
Muon 13 μ⁻ −1 105.7 Long, straight, penetrating track
Photon 22 γ 0 0 Electromagnetic shower, similar to an electron
Pion 211 π⁺ +1 139.6 Moderately long hadronic track
Proton 2212 p +1 938.3 Short track with dense energy deposition

The data were divided into 50,000 training events and 40,000 test events, with 5,000 of the training events reserved for validation.

Example Particle Tracks Across the Momentum Range

Each event has three detector projections, in the XY, YZ and ZX planes. The animation cycles through the five classes, and each frame shows five training events chosen to span the momentum range from lowest to highest.

Heavier particles leave shorter, denser tracks, while lighter particles travel farther and undergo more scattering. Electrons and photons both initiate electromagnetic showers, which makes them difficult to distinguish by eye.

Animated grid cycling through electron, muon, photon, pion and proton. Each frame shows five events of one class at increasing momentum, with the XY, YZ and ZX projections as rows. Muons and pions leave thin lines, protons short bright stubs, and electrons and photons branching showers.

Example Tracks by Particle Type

Truth-Level Feature Distributions

Each image is accompanied by truth-level kinematics: the total momentum, its three components and the production point. The momentum components are symmetric about zero, as particles are emitted in all directions. Total momentum, \(p = \sqrt{p_x^2 + p_y^2 + p_z^2}\), covers a wide range whose shape depends on particle type; for protons it begins near 300 MeV and rises. The production coordinates are bounded by the detector volume.

Animated grid of histograms, one frame per particle type. The top row shows total momentum and the three momentum components; the bottom row shows the three production coordinates. Momentum components are symmetric around zero; they peak at zero for every class except the proton, whose components have two humps either side of zero. Total momentum is flat for most classes but starts near 300 MeV and rises for protons. Production coordinates are broad and bounded.

Truth Feature Distributions by Particle Type

Initial Model

Architecture

The network consists of three convolutional blocks, each applying two convolutions with batch normalisation and ReLU activation, followed by max pooling and dropout. The number of filters doubles from one block to the next, from 16 to 32 to 64.

Global average pooling reduces the final feature maps to a single vector, and a small dense layer feeds a five-way softmax. With about 77,000 parameters the model trains quickly while retaining enough capacity to learn the track morphologies.

Stacked diagram of the network: flattened input of 196,608 values, reshape to 256 by 256 by 3, three convolutional blocks with 16, 32 and 64 filters, then a head of global average pooling, a 64-unit dense layer, dropout and a five-class softmax.

CNN Architecture

Initial Model Performance

Training Dynamics

The baseline was trained for five epochs at a learning rate of 1e‑3. A plateau scheduler was attached but was not triggered during that period. Training accuracy rose steadily to 82.7%, whereas validation accuracy peaked at 83.4% in epoch 4 before falling to 53.6% in epoch 5. The saved checkpoint is the epoch 4 model, which scores 82.9% on the test set. The instability in validation accuracy suggested that the learning rate was too high for training to converge.

Line chart of training and validation loss over five epochs. Training loss falls steadily. Validation loss falls to 0.42 at epoch 4, then jumps to 1.1 at epoch 5.

Initial Model Loss

Line chart of training and validation accuracy over five epochs. Training accuracy rises to 83%. Validation accuracy peaks at 83% at epoch 4 and drops to 54% at epoch 5.

Initial Model Accuracy

Classification Performance

Protons and electrons are the most easily identified classes, with test recall of 97% and 90% respectively. The misclassifications are consistent with the underlying physics. A quarter of photons are classified as electrons, since both produce electromagnetic showers, and muons and pions, which both leave thin tracks, are confused in both directions.

Row-normalised confusion matrix for the initial model on the test set. Diagonal: electron 90%, muon 77%, photon 73%, pion 78%, proton 97%. Largest errors: photon called electron 25%, muon called pion 21%, pion called muon 15%.

Initial Model Confusion Matrix, Test Set. Each row is normalised by true class, and dots mark values under 0.5%.

Hyperparameter Optimisation

First Round Results

The first sweep varied one setting at a time relative to the baseline. Learning rate had the largest effect, and raising it to 2e‑3 gave the best validation accuracy of the round, 83.2%.

Wider filters and a larger dense head both reduced performance, and removing batch normalisation cost five percentage points, while changes to dropout had only a small effect. These results indicated that further gains were more likely to come from the optimisation procedure than from the architecture.

Configuration Key Change Best Validation Accuracy Final Validation Loss
Higher learning rate Learning rate raised to 2e‑3 0.832 0.410
Less dropout Reduced dropout 0.814 0.462
Baseline Reference architecture 0.813 0.464
Average pooling Average pooling in place of max pooling 0.806 0.458
More dropout Increased dropout 0.790 0.501
Wider filters More convolutional filters 0.782 0.481
No batch normalisation Batch normalisation removed 0.763 0.525
Larger dense head Wider dense layer 0.759 0.515
Lower learning rate Learning rate lowered to 3e‑4 0.721 0.607

Second Round Results

The second round tested initial learning rates between 1e‑3 and 3e‑3. The first sweep had used plateau scheduling, which reduces the learning rate when the validation loss stops improving. To isolate the effect of the initial rate, scheduling was disabled for this round, and each rate was then run again with scheduling re-enabled.

Impact of Learning Rate Scheduling

Plateau scheduling improved the result at every initial learning rate. The best configuration, 1e‑3 with plateau scheduling, reached 89.1% validation accuracy, 5.7 percentage points above the same rate without scheduling.

Initial Learning Rate Best Val Acc (No Plateau) Best Val Acc (With Plateau) Improvement
1.0e‑3 0.834 0.891 +5.7pp
1.2e‑3 0.679 0.735 +5.6pp
1.5e‑3 0.633 0.820 +18.7pp
2.0e‑3 0.654 0.832 +17.8pp
3.0e‑3 0.641 0.844 +20.3pp

Final Model

Performance Evaluation

Training Dynamics

The final model was trained for 14 epochs. Up to epoch 8, validation accuracy fluctuated between 54% and 85%. The scheduler then reduced the learning rate from 1e‑3 to 2e‑4 from epoch 9, and to 4e‑5 from epoch 13. After the first reduction, validation performance tracked training performance closely. Validation accuracy peaked at 89.1% in epoch 10, and that checkpoint was retained as the final model.

Line chart of training and validation loss over 14 epochs, with dotted lines marking learning-rate cuts before epochs 9 and 13. Validation loss spikes above 1.0 at epochs 5 and 8, then settles near 0.30 alongside training loss after the first cut.

Final Model Loss

Line chart of training and validation accuracy over 14 epochs, with dotted lines marking learning-rate cuts before epochs 9 and 13. Validation accuracy drops to 54% and 65% early on, then holds near 89% with training accuracy after the first cut.

Final Model Accuracy

Classification Performance

On the 40,000 test events the final model achieves 88.2% accuracy, 5.3 percentage points above the initial model. Muon recall rose from 77% to 91% and photon recall from 73% to 87%. Pion recall did not improve: about 18% of pions are still classified as muons, and this pair remains the principal source of error.

Row-normalised confusion matrix for the final model on the test set. Diagonal: electron 92%, muon 91%, photon 87%, pion 74%, proton 98%. Largest errors: pion called muon 18%, photon called electron 13%, electron called photon 8%, muon called pion 8%.

Final Model Confusion Matrix, Test Set. Each row is normalised by true class, and dots mark values under 0.5%.

The grid below shows the first 20 test events in the XY plane, without selection. Seventeen are classified correctly, and two of the three errors are photons classified as electrons.

Four by five grid of detector images in the XY plane, each titled with its true class. Seventeen are correct. Three misclassified panels are outlined in red: two photons called electrons and one pion called a proton.

First 20 Test Events With Final Model Predictions

Next Steps

Architecture. Evaluate residual or attention-based networks to improve the separation of pions from muons.

Evaluation. Add uncertainty estimates so that low-confidence predictions can be flagged.

Explainability. Apply Grad-CAM to identify which regions of each image drive a given prediction.

References

[1] MicroBooNE Collaboration. “A Convolutional Neural Network for Multiple Particle Identification in the MicroBooNE Liquid Argon Time Projection Chamber.” arXiv:2010.08653 (2020). https://arxiv.org/abs/2010.08653

Also covered
Machine LearningSupervised LearningConvolutional Neural NetworkKerasTensorFlowHyperparameter OptimizationParticle PhysicsPython