Cyclic Positional U-Net (CPU-Net) is a transfer learning model for ad-hoc pulse shape translation in HPGe detectors.
- CPU-Net utilizes a cycle GAN architecture coupled with positional encoding to accurately translate pulse shapes.
- Utilizes U-Net architecture with positional encoding for its generators (A2B and B2A). This allows for accurate pulse translation between real and simulated data while maintaining cycle and identity consistency.
- Discriminators (DA and DB) are Recurrent Neural Networks (RNN) with attention mechanisms, evaluating translated pulses and optimizing the performance of generators through adversarial training.
- CPU-Net accurately translates the simulated pulses to match data pulses, while reproducing the ensemble distribution of the data.
- Although designed for HPGe detectors, CPU-Net's architecture is adaptable to different scientific domains for convoluting and deconvoluting noise.
The model expects datasets in .pickle
format containing dictionaries with pulse data and attributes. Structure your dataset accordingly and update the dataset paths in the provided notebooks to point to your data files.
network.py
: Contains the CPU-Net model architecture.dataset.py
: Defines a function for loading and preprocessing pulse data into Pytorch Dataloader.tools.py
: Includes utilities for data processing, pulse analysis, and evaluation metrics.TrainAndPlot.ipynb
: Jupyter notebook for training the model and visualizing results.Analysis.ipynb
: Notebook for model performance analysis on unseen data.
Open TrainAndPlot.ipynb
and follow the steps for data loading, model training, and visualization of results. The notebook outlines the training process, including:
-
Data preprocessing.
-
Model initialization.
-
Training loop execution.
-
Model saving.
-
GPU: Nvidia A100 GPUs
-
RAM usage: About 6Gb
-
Training Time: 60 mins
Use Analysis.ipynb
to evaluate the model on test data. This notebook allows for:
- Pulse transformation through the CPU-Net.
- Comparison of real, simulated, and transformed pulses.
- Visualization and statistical analysis of the results.
This project is released under the MIT License - see the LICENSE file for details.
For questions, feedback, or contributions to the CPU-Net project, please feel free to reach out. You can contact us via email:
-
Kevin Bhimani
- Email: [email protected]
- For: Technical queries, bug reports, and development contributions.
-
Aobo Li
- Email: [email protected]
- For: General inquiries, research collaboration, and project insights.