High Energy Particle CNN Classifier
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.
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.
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.
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.
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.
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.
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.
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.
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









