EELSpecNet is a Python-based deep convolutional neural network designed for tackling challenges in electron energy loss spectroscopy (EELS) spectral deconvolution. It implements a blind deconvolutional neural network architecture inspired by U-shaped and dilated deep neural network architectures.
git clone https://github.com/shmouses/EELSpecNet.git
cd EELSpecNet
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
python src/main.py
notebook
directory.EELSpecNet/
├── src/ # Source code
├── data/ # Data directory (created during runtime)
├── docs/ # Documentation
├── tests/ # Test files
├── examples/ # Example scripts and notebooks
├── notebook/ # Jupyter notebooks
└── requirements.txt # Python dependencies
Detailed documentation is available in the docs
directory:
Note on Figures: The figures presented in this repository are from our open access publication in Scientific Reports, used with proper attribution under Creative Commons Attribution 4.0 International License. As the author of this work, I have included these figures to provide comprehensive documentation of the method and results.
Hyperspectral imaging techniques, particularly electron energy loss spectroscopy (EELS), face significant challenges in signal quality and interpretation. The primary challenges stem from signal distortions caused by instrumental artifacts, including broad optical transfer functions and electronic noise. Traditional deconvolution methods, whether based on partial differential equations or filter-based techniques, often struggle with these challenges, especially when dealing with low signal-to-noise ratios or when quantitative analysis is required.
Figure 1: The EELSpecNet architecture, as presented in Mousavi et al., 2022. The network employs a U-shaped structure with dilated convolutions and skip connections, enabling effective multi-scale feature processing.
EELSpecNet introduces a novel approach to spectral deconvolution through its unique architecture. The network employs a U-shaped convolutional structure with dilated convolutions, allowing it to capture features at multiple scales while maintaining computational efficiency. The architecture processes 2048-dimensional spectral inputs through several key stages:
This design enables the network to handle multiple types of signal distortions simultaneously, a significant advantage over traditional methods that typically address each issue separately.
Figure 2: Demonstration of EELSpecNet’s signal processing capabilities from Mousavi et al., 2022. The comparison shows (a) original signal, (b) distorted signal with instrumental artifacts, and (c) EELSpecNet’s reconstruction, highlighting the model’s ability to recover fine spectral features.
The effectiveness of EELSpecNet in signal reconstruction is demonstrated through comprehensive comparisons with both simulated and experimental data. As shown in Figure 2, the model successfully recovers fine spectral features even in the presence of significant distortion. The reconstruction process maintains the physical reality of the signal while effectively removing artifacts that typically plague EELS measurements.
Figure 3: Quantitative performance comparison from Mousavi et al., 2022, showing EELSpecNet’s superior performance against traditional Bayesian methods in terms of noise handling and feature preservation.
Figure 4: Real-world EELS data processing results from Mousavi et al., 2022, demonstrating EELSpecNet’s effectiveness in practical applications with varying experimental conditions.
The model’s practical utility has been extensively validated on real experimental data. Figure 4 showcases EELSpecNet’s performance on actual EELS measurements, where it successfully:
Figure 5: Advanced spectral analysis applications from Mousavi et al., 2022, showing the model’s versatility in handling different types of spectral data and experimental conditions.
Figure 6: Detailed quantitative analysis from Mousavi et al., 2022, demonstrating the high accuracy of peak position and intensity reconstructions across various experimental scenarios.
EELSpecNet’s capabilities extend beyond basic signal reconstruction. The model has demonstrated exceptional performance in:
These capabilities have significant implications for various fields, including optoelectronics, photonics, biosensing, and materials science. The model’s ability to handle complex spectral data while maintaining physical accuracy makes it a valuable tool for both research and practical applications.
For support:
We welcome contributions! Please see our Contributing Guidelines for details.
If you use EELSpecNet in your research, please cite:
Mousavi M, S. Shayan, Alexandre Pofelski, Hassan Teimoori, and Gianluigi A. Botton. “Alignment-invariant signal reality reconstruction in hyperspectral imaging using a deep convolutional neural network architecture.” Scientific Reports 12, no. 1 (2022): 17462.
Mousavi M, S. Shayan, Pofelski, A., & Botton, G. “Eelspecnet: Deep convolutional neural network solution for electron energy loss spectroscopy deconvolution.” Microscopy and Microanalysis, 27(S1), 1626-1627 (2021).
This project is licensed under the MIT License - see the LICENSE file for details.