Algorithm-Powered Analyzer for Continuous Electrochemistry: A Toolkit for Real-Time Electrochemical Data Analysis

Yan Song Jiang, Yihang Chen, Yufei Cai, Kaixuan Zhou, Hayden J. Ousley, Jun Li, H. Tom Soh, Kaiyu FubioRxiv 2025 · DOI

TL;DR

A-PACE is an open-source toolkit that automates the analysis of continuous electrochemical data, transforming a labor-intensive, subjective process into a real-time, objective pipeline. By combining change-point detection with an ensemble of baseline-fitting algorithms, it successfully extracts signals from highly degraded sensors—extending the usable life of in vivo biosensors from days to weeks.

What Problem Does This Paper Address?

Continuous electrochemical biosensors (like those used for glucose monitoring or detecting specific drugs in the bloodstream) are the future of personalized medicine. However, they face a massive "data bottleneck."

As these sensors sit in biological fluids, they suffer from biofouling—proteins and cells stick to the surface, degrading the signal-to-noise ratio (SNR) and causing the baseline to drift or tilt. Traditionally, researchers have to manually or semi-automatically identify "peaks" in the data, a process that is slow, prone to human bias, and often fails entirely as the sensor degrades. Existing software often relies on "fixed-form" baselines that break when the data gets "messy," leading to inconsistent results and making it difficult to compare studies across different labs.

Methods

The authors developed the Algorithm-Powered Analyzer for Continuous Electrochemistry (A-PACE), which uses a three-layer architecture:

  1. Change Point Detection (CPD): Instead of assuming where a peak is, A-PACE uses statistical algorithms (like Dynp-rank and BottomUp-rank) to identify abrupt transitions in the data. This objectively partitions every curve into "peak" and "baseline" regions.
  2. Algorithm-Powered Analyzer (A-PA): Rather than using a single mathematical formula for the baseline, A-PACE screens an ensemble of 30 different fitting algorithms (polynomials, B-splines, Gaussian fits). It uses a "shape check" and "outlier check" to discard unreasonable fits and selects the best combination using Markowitz efficient frontier theory—a method borrowed from finance to balance the "success rate" against "error."
  3. Real-Time & Post-Processing GUI: A user-friendly interface that supports high-throughput batch processing and real-time visualization with less than a one-second delay.

Datasets

The researchers didn't just test this on synthetic data; they used a massive library of real-world electrochemical signals:

  • The Master Set: Over 100,000 electrochemical curves collected over five years.
  • The Training Set: A curated subset of 2,000 curves representing diverse conditions (different amplitudes, frequencies, and electrode sizes).
  • In Vitro Case Study: A month-long experiment monitoring Kanamycin (an antibiotic) in undiluted human serum.
  • In Vivo Case Study: A week-long experiment with sensors implanted in the femoral veins of free-moving rats.

Key Insights and Ideas

  • Software as a "Longevity" Tool: One of the most striking insights is that we can extend the life of a physical sensor through better math. Even when a sensor was 90% fouled and the signal was nearly buried in noise, A-PACE could still "rescue" the data, whereas commercial software (MultiTrace) failed completely.
  • The Ensemble Advantage: There is no "one size fits all" baseline. By allowing multiple algorithms to compete and then taking the median of the "survivors," A-PACE achieves a level of robustness that fixed-form models cannot match.
  • Removing the Human Element: By automating peak detection, the processing time dropped from minutes per signal (human labeling) to seconds. More importantly, it removes the subjectivity that leads to "lab-dependent" outcomes.

Key Results

  • Superior Success Rate (SR): In in vivo rat studies, commercial software (MultiTrace) saw its success rate drop to 0% by Day 7 due to signal degradation. In contrast, A-PACE maintained a 100% success rate using its optimized algorithm set.
  • High Fidelity: On clean, high-SNR data, A-PACE showed a 0.9999 cosine similarity with established commercial tools, proving it is just as accurate as the "gold standard" while being far more robust.
  • Speed: A-PACE processed 288 complex Square Wave Voltammetry (SWV) curves in just 18.7 seconds.
  • Sensitivity: The system successfully tracked signal degradation over four weeks in vitro, extracting peak heights as low as 13.6% of the original signal.

Limitations and Future Work

While A-PACE is a major step forward, the authors note a few constraints:

  • Multi-Peak Complexity: Accurately identifying peak positions in complex voltammograms with multiple overlapping peaks remains a challenge.
  • Library Dependence: The system’s performance is ultimately tied to the breadth and quality of its underlying CPD and baseline fitting libraries.
  • Future Directions: The authors aim to integrate A-PACE with cloud storage and self-supervised machine learning. This could lead to "closed-loop" platforms where sensors stream raw data, the software cleans and quantifies it in real-time, and medical interventions are triggered automatically with minimal human oversight.

Summary updated

Abstract

ABSTRACT Real-time biosensors offer significant potential for continuous monitoring of biomolecules. However, their practical application and further development face challenges on data analysis, including poor signal-to-noise ratio when effective sensing area decreases due to signal degradation by biofouling, time-consuming and subjective process of manual or semi-automated peak identification, and inconsistencies in data interpretation, thereby complicating reproducibility and cross-comparison of biosensing results. In this study, we introduce the Algorithm-Powered Analyzer for Continuous Electrochemistry (A-PACE), an open-source toolkit providing streamlined and automated data analysis protocol optimized for real-time electrochemical data analysis. A-PACE comprises three modules: (1) Change point detection for automated identification of peak regions; (2) Baseline fitting with multiple algorithms to handle diverse electrochemical signals and baseline screening to eliminate unreasonable fits; (3) Large dataset input with user-friendly interface for data processing, exporting and visualization. To ensure optimal performance, we curated a training set of 2000 electrochemical curves from an extensive electrochemical dataset (>100,000 curves) collected over the past five years under varied electrochemical measurement conditions. These curves were analyzed using 2046 algorithm sets to identify a default algorithm set, compared to existing tools, demonstrating its capability in peak detection and baseline fitting across a broad spectrum of electrochemical data. Case studies reveal the A-PACE can analyze month-long in vitro serum data and week-long in vivo intravenous blood data, extending the operational lifespan of real-time sensors. This cross-platform compatible toolkit supports both real-time and post-processing analysis, reducing the processing time from minute level per signal by human labeling to second level by A-PACE and subjectivity associated with electrochemical signal processing. By providing this solution for continuous electrochemical data analysis, A-PACE enhances biosensors’ applications in medical diagnostics and continuous monitoring with high throughput analysis.
BibTeX
@misc{jiang2025algorithm,
  author = {Yan Song Jiang and Yihang Chen and Yufei Cai and Kaixuan Zhou and Hayden J. Ousley and Jun Li and H. Tom Soh and Kaiyu Fu},
  title = {{Algorithm-Powered Analyzer for Continuous Electrochemistry: A Toolkit for Real-Time Electrochemical Data Analysis}},
  year = {2025},
  doi = {10.1101/2025.09.28.678418},
  howpublished = {bioRxiv},
}
Figure