Skip to content

Latest commit

Β 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ§ͺ Open-EChemNet: Deep Learning-based Autonomous Electrochemistry Analysis

Website | CV Detection | CV Analysis | EIS Analysis | Automation

Team Member: Weitong Zhang (UNC), Quanquan Gu (UCLAοΌ‰, Chong Liu (UCLA)


πŸ“– Overview

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.

Key Features

  • πŸ” 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

πŸ“š Papers

This repository implements methods from three peer-reviewed publications:

1. Redox-Detecting Deep Learning

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

2. Electrochemical Mechanistic Analysis

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

3. EIS Data Preprocessing and Analysis

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

4. Autonomous closed-loop mechanistic investigation

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


πŸš€ Installation

Prerequisites

  • Python 3.10 or higher
  • CUDA 10.2 or higher (for GPU support)
  • Conda or Miniconda

Setup Environment

  1. Clone the repository:
git clone https://github.com/UNCSciML/redox-detecting.git
cd redox-detecting
  1. Create and activate the conda environment:
conda env create -f environment.yml
conda activate chem
  1. Verify installation:
python -c "import torch; print(torch.__version__)"
python -c "import pytorch_lightning; print('PyTorch Lightning installed successfully')"

Dependencies

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.


πŸ’» Usage

Training Models

Train a redox-detecting model with default parameters:

python train.py

Testing and Evaluation

Run evaluation on test datasets:

python test.py

For detailed testing instructions and available experiments, see README_TEST.md.

Configuration

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)

πŸ“ Repository Structure

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

✈️ Ongoing Support

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

πŸ“„ Citation

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}
}

πŸ“§ Contact

For questions, issues, or collaborations, please open an issue on GitHub or contact Weitong Zhang


πŸ“§ Acknowledgement

This project is supported by NSF-CHE-2140762; NSF-CHE-2247426


Made with ❀️ for the electrochemistry and machine learning community

Releases

Packages

Contributors

Languages