Website | CV Detection | CV Analysis | EIS Analysis | Automation
Team Member: Weitong Zhang (UNC), Quanquan Gu οΌUCLAοΌ, Chong Liu (UCLA)
This repository contains the implementation of deep learning models for electrochemical data analysis, encompassing three major research contributions in the field of electrochemistry and machine learning. Our work leverages advanced neural network architectures, including Faster R-CNN with 1D ResNet backbones, to automatically detect and classify redox events in cyclic voltammograms and analyze electrochemical impedance spectroscopy data.
- π Automated Redox Event Detection: Detect and classify multiple redox events in cyclic voltammograms using deep learning
- π― Mechanism Discernment: Automatically identify electrochemical mechanisms (E, EC, ECE, DISP, etc.) from CV data
- π Multi-Redox Analysis: Handle complex voltammograms with multiple overlapping redox events
- π οΈ EIS Data Preprocessing: Optimal data preprocessing pipelines for Electrochemical Impedance Spectroscopy
- π§ State-of-the-art Models: Implementation of Faster R-CNN with custom 1D ResNet backbone for time-series electrochemical data
- π Robust Performance: Handles noisy data and various scan rate conditions
This repository implements methods from three peer-reviewed publications:
Hoar, Benjamin B., et al. "Redox-Detecting Deep Learning for Mechanism Discernment in Cyclic Voltammograms of Multiple Redox Events." ACS Electrochemistry 1.1 (2024): 52-62.
- Focus: Multi-redox event detection and mechanism classification
- Method: Faster R-CNN with 1D ResNet backbone
- Key contribution: Simultaneous detection and classification of multiple redox events
Hoar, Benjamin B., et al. "Electrochemical mechanistic analysis from cyclic voltammograms based on deep learning." ACS Measurement Science Au 2.6 (2022): 595-604.
- Focus: Single mechanism classification from cyclic voltammograms
- Method: Deep learning-based automated mechanism identification
- Key contribution: End-to-end learning for mechanism discernment
Sun, Jingwen, et al. "Inquiry into the Appropriate Data Preprocessing of Electrochemical Impedance Spectroscopy for Machine Learning." The Journal of Physical Chemistry C 129.2 (2025): 1044-1051.
- Focus: Optimal preprocessing strategies for EIS data
- Method: Systematic investigation of preprocessing techniques
- Key contribution: Guidelines for effective EIS data preparation for ML models
Sheng, Hongyuan, et al. "Autonomous closed-loop mechanistic investigation of molecular electrochemistry via automation." Nature communications 15.1 (2024): 2781.
- Focus: Autonomous closed-loop mechanistic investigation
- Method: Bayesian Optimization using CV data and neural network prediction
- Key contribution: autonomous platform leveraging ML models in electrochemistry reserach
- Python 3.10 or higher
- CUDA 10.2 or higher (for GPU support)
- Conda or Miniconda
- Clone the repository:
git clone https://github.com/UNCSciML/redox-detecting.git
cd redox-detecting- Create and activate the conda environment:
conda env create -f environment.yml
conda activate chem- Verify installation:
python -c "import torch; print(torch.__version__)"
python -c "import pytorch_lightning; print('PyTorch Lightning installed successfully')"The environment includes:
- PyTorch 1.12.1 with CUDA support
- PyTorch Lightning 1.8.4 for training
- TensorBoard for visualization
- NumPy, Pandas, Matplotlib for data processing
- scikit-learn for metrics and evaluation
For a complete list of dependencies, see environment.yml.
Train a redox-detecting model with default parameters:
python train.pyRun evaluation on test datasets:
python test.pyFor detailed testing instructions and available experiments, see README_TEST.md.
Model and training parameters can be configured in src/config/parameters.py. Key parameters include:
- Data directory paths
- Noise magnitude settings
- Scan rate reduction options
- Model architecture hyperparameters
- Training hyperparameters (learning rate, batch size, epochs)
redox-detecting/
βββ src/ # Source code
β βββ models/ # Neural network models
β β βββ fasterRCNN.py # Faster R-CNN implementation
β β βββ resnet1d.py # 1D ResNet backbone
β β βββ backbone.py # Backbone network wrapper
β βββ utils/ # Utility functions
β β βββ utils.py # General utilities
β β βββ plot.py # Plotting functions
β β βββ stats.py # Statistics calculations
β βββ config/ # Configuration
β βββ parameters.py # Training parameters
βββ doc/ # Documentation and presentations
βββ train.py # Training script
βββ test.py # Testing and evaluation script
βββ environment.yml # Conda environment specification
βββ README.md # This file
βββ README_TEST.md # Testing instructions
We are activately updating Open-EChemNet to support the community research. Belows are the most recent todos.
- Cleanup the GPU-support code for ECM -> EIS simulation
- Merge the EIS data representation with CV
- Cleanup the
If you use this code in your research, please cite the relevant papers:
@article{hoar2024redox,
title={Redox-Detecting Deep Learning for Mechanism Discernment in Cyclic Voltammograms of Multiple Redox Events},
author={Hoar, Benjamin B. and others},
journal={ACS Electrochemistry},
volume={1},
number={1},
pages={52--62},
year={2024},
publisher={ACS Publications}
}
@article{hoar2022electrochemical,
title={Electrochemical mechanistic analysis from cyclic voltammograms based on deep learning},
author={Hoar, Benjamin B. and others},
journal={ACS Measurement Science Au},
volume={2},
number={6},
pages={595--604},
year={2022},
publisher={ACS Publications}
}
@article{sun2025inquiry,
title={Inquiry into the Appropriate Data Preprocessing of Electrochemical Impedance Spectroscopy for Machine Learning},
author={Sun, Jingwen and others},
journal={The Journal of Physical Chemistry C},
volume={129},
number={2},
pages={1044--1051},
year={2025},
publisher={ACS Publications}
}
@article{sheng2024autonomous,
title={Autonomous closed-loop mechanistic investigation of molecular electrochemistry via automation},
author={Sheng, Hongyuan and Sun, Jingwen and Rodr{\'\i}guez, Oliver and Hoar, Benjamin B and Zhang, Weitong and Xiang, Danlei and Tang, Tianhua and Hazra, Avijit and Min, Daniel S and Doyle, Abigail G and others},
journal={Nature communications},
volume={15},
number={1},
pages={2781},
year={2024},
publisher={Nature Publishing Group UK London}
}For questions, issues, or collaborations, please open an issue on GitHub or contact Weitong Zhang
This project is supported by NSF-CHE-2140762; NSF-CHE-2247426
Made with β€οΈ for the electrochemistry and machine learning community


