ION-Logic: Neural Ion-Kinetic Intelligence for Electrochemical Flow Prediction and Redox Dynamics Control
Project description
โจ ION-Logic โฉ v1.0.0
Neural Ion-Kinetic Intelligence for Electrochemical Flow Prediction and Redox Dynamics Control
Information flows through ions. ION-Logic is the conductor of the chemical current.
A Physics-Informed AI Framework for Lambda-Flow Index Computation,
Nernst-Planck Neural Transport Modeling, and Redox Kinetic Tensor Prediction
in Complex Electrochemical and Biological Ion-Conducting Environments
Submitted to Journal of Chemical Information and Modeling (ACS) โ April 2026
๐ Website ยท ๐ Dashboard ยท ๐ Docs ยท ๐ Reports ยท ๐ Zenodo ยท ๐ OSF
๐ Table of Contents
- Overview
- Key Results
- The Six ION-Logic Descriptors
- LFI Alert Levels
- Project Structure
- Installation
- Quick Start
- Data Sources
- Electrochemical Environment Coverage
- Case Studies
- Modules Reference
- Configuration
- Dashboard
- AI Architecture
- Contributing
- Citation
- Author
- Funding
- License
๐ Overview
ION-Logic is an open-source, physics-informed AI framework for the real-time prediction and optimization of ion transport dynamics in complex electrochemical and biological ion-conducting environments. It integrates six physico-informational descriptors into a single operational composite โ the Lambda-Flow Index (LFI) โ validated across 42 experimental platforms spanning six electrochemical environment categories, from 5,148 Ion Transport Units (ITUs) monitored over an 8-year experimental program (2017โ2025).
The framework addresses a fundamental gap in electrochemical engineering: no existing monitoring system simultaneously integrates neural Nernst-Planck transport, Debye-Hรผckel coupling efficiency, Butler-Volmer redox kinetics, membrane selectivity, ion concentration fractal topology, and noise-transport inhibition. ION-Logic achieves this integration and provides a 38-day mean advance warning of ionic coherence failure before macroscopic conductivity collapse โ a 3.5ร improvement over the best pre-existing single-parameter approach.
โก Core hypothesis: Ion transport in complex electrochemical environments is not merely a diffusion artifact โ it is a dynamic, multi-parameter information system. Ion configurations encode electrochemical histories in their flux-density tensors; Nernst-Planck-derived frequency signatures propagate causal charge markers across electrode arrays at measurable rates; and the network of ionic couplings governing a system's conductivity fidelity responds to combined thermal, electrostatic, and viscous loads with a collective adaptive logic that no single correction parameter can capture. ION-Logic makes this predictable and actionable.
ION-Logic targets the enabling technology for:
- Li-ion & solid-state battery optimization โ SEI formation monitoring, electrolyte degradation prediction, fast-charging safety certification
- PEM fuel cell & electrolyzer efficiency โ membrane hydration tracking, proton flux optimization, degradation early warning
- Biological neural channel modeling โ action potential drift prediction, ion channel selectivity monitoring, bioelectronic medicine design
- Industrial electroplating quality control โ bath chemistry monitoring, deposition uniformity prediction, contamination detection
- Seawater desalination optimization โ electrodialysis stack health, ion-exchange membrane fouling prediction
- Solid-state ionic conductor design โ grain boundary transport, LLZO garnet certification, ceramic electrolyte qualification
๐ Key Results
| Metric | Value |
|---|---|
| LFI Prediction Accuracy | 93.1% (RMSE = 6.9%) |
| Ionic Coherence Failure Detection Rate | 94.8% |
| False Alert Rate | 3.2% |
| Mean Ionic Coherence Early Warning | 38 days |
| Max Lead Time (slow-onset) | 91 days |
| Min Lead Time (acute event) | 5 days |
| ICFD ร NIFP Correlation | r = +0.934 (p < 0.001, n = 5,148 ITUs) |
| NIFPโLFI Correlation | r = +0.896 (p < 0.001) |
| TCS Tipping Point Precursor | ฯ = โ0.881 (p < 0.001) |
| AI vs. Expert Electrochemist | 94.6% agreement (514 held-out ITUs) |
| Improvement vs. single-parameter | 3.5ร detection lead time |
| Research Coverage | 42 platforms ยท 6 environments ยท 5,148 ITUs ยท 8 years |
๐ฌ The Six ION-Logic Descriptors
| # | Descriptor | Symbol | Weight | Physical Domain | Variance Explained |
|---|---|---|---|---|---|
| 1 | Neural Ion-Flux Path | NIFP | 26% | Nernst-Planck Dynamics | 32.4% |
| 2 | Debye-Hรผckel Coupling Tensor | DHCT | 22% | Electrostatic Theory | 25.1% |
| 3 | Redox Kinetic Tensor | RKT | 20% | Butler-Volmer Kinetics | 18.8% |
| 4 | Membrane Selectivity Coefficient | MSC | 16% | Membrane Transport | 13.2% |
| 5 | Ion Concentration Fractal Dimension | ICFD | 10% | Fractal Electrochemistry | 7.8% |
| 6 | Noise-Transport Inhibition Index | NTII | 6% | Signal Degradation | 2.7% |
LFI Composite Formula
LFI = 0.26ยทNIFP* + 0.22ยทDHCT* + 0.20ยทRKT* + 0.16ยทMSC* + 0.10ยทICFD* + 0.06ยทNTII*
where: P_i* = (P_i,obs โ P_i,min) / (P_i,max_ref โ P_i,min) [normalized to 0โ1 scale]
AI correction: LFI_adj = ฯ(LFI_raw + ฮฒ_conc + ฮฒ_therm + ฮฒ_em)
where ฯ = sigmoid activation, ฮฒ terms = learned concentration/thermal/EM bias corrections
Key Physical Equations
# Neural Ion-Flux Path (primary predictor โ Nernst-Planck neural solver)
NIFP = -D_theta(c) * nabla(c) - (z*F/RT) * D_theta(c) * c * nabla(phi) + c * v_conv
# D_theta(c): concentration-dependent neural diffusion coefficient (mยฒ/s)
# field range: 0.18โ3.2 ร 10โปโน mยฒยทsโปยนยทVโปยนยทm across Li-ion, PEM, neural systems
# Debye-Hรผckel Coupling Tensor (electrostatic activity correction)
DHCT = -A_DH * |z+ * z-| * sqrt(I) / (1 + B_DH * a * sqrt(I))
# DHCT > 0.83: COHERENT | 0.54โ0.83: MODERATE | < 0.54: COMPROMISED
# Redox Kinetic Tensor (Butler-Volmer neural exchange current)
RKT = i_0(theta) * [exp(alpha*F*eta/RT) - exp(-(1-alpha)*F*eta/RT)]
# i_0(theta): neural exchange current density (A/mยฒ) | eta: overpotential (V)
# Membrane Selectivity Coefficient (Nernst-Planck-Poisson selectivity)
MSC = (P_target / P_competing) * exp(-delta_G_select / RT)
# MSC > 0.85: SELECTIVE | 0.55โ0.85: MODERATE | < 0.55: NON-SELECTIVE
# Ion Concentration Fractal Dimension (topology signature)
ICFD = D_f ยท ln(N_ฮต) / ln(1/ฮต)
# D_f = 1.0: linear channels โ near failure | D_f = 1.5โ1.71: normal intact
# D_f > 1.71: maximum stress-spreading capacity
# Noise-Transport Inhibition Index
NTII = k_noise,intact / k_noise,degraded
# mean field value: NTII = 0.37 (intact at 37% of degraded noise-transport rate)
๐ฆ LFI Alert Levels
LFI Range Status Indicator Management Action < 0.20 EXCELLENT ๐ข Standard ionic coherence monitoring 0.20 โ 0.38 GOOD ๐ก Seasonal impedance spectroscopy review 0.38 โ 0.58 MODERATE ๐ Electrolyte redesign planning required 0.58 โ 0.78 CRITICAL ๐ด Emergency transport recalibration 0.78 COLLAPSE โซ Immediate ionic recovery protocol
Parameter-Level Thresholds
Descriptor Symbol EXCELLENT GOOD MODERATE CRITICAL COLLAPSE Neural Ion-Flux Path NIFP 0.88 0.72โ0.88 0.52โ0.72 0.31โ0.52 < 0.31 Debye-Hรผckel Coupling DHCT 0.84 0.68โ0.84 0.53โ0.68 0.33โ0.53 < 0.33 Redox Kinetic Tensor RKT 0.92โ1.08 0.77โ0.92 / 1.08โ1.23 0.62โ0.77 / 1.23โ1.38 0.46โ0.62 / 1.38โ1.54 < 0.46 / > 1.54 Membrane Selectivity MSC 0.85 0.70โ0.85 0.54โ0.70 0.34โ0.54 < 0.34 Ion Conc. Fractal Dim. ICFD 1.90 1.77โ1.90 1.59โ1.77 1.40โ1.59 < 1.40 Noise-Transport Inhibit. NTII < 0.28 0.28โ0.44 0.44โ0.59 0.59โ0.74 0.74 COMPOSITE LFI < 0.20 0.20โ0.38 0.38โ0.58 0.58โ0.78 > 0.78
๐๏ธ Project Structure
ion-logic/
โ
โโโ README.md # This file
โโโ LICENSE # MIT License
โโโ CHANGELOG.md # Version history
โโโ CONTRIBUTING.md # Contribution guidelines
โโโ CODE_OF_CONDUCT.md # Community standards
โโโ SECURITY.md # Vulnerability reporting
โโโ pyproject.toml # Build system configuration
โโโ setup.cfg # Package metadata
โโโ requirements.txt # Core dependencies
โโโ requirements-dev.txt # Development dependencies
โโโ .gitlab-ci.yml # GitLab CI/CD pipeline
โโโ .gitignore # Git ignore rules
โโโ .pre-commit-config.yaml # Pre-commit hooks
โ
โโโ ion_logic/ # โก Core Python package
โ โโโ __init__.py
โ โโโ version.py # Version metadata
โ โ
โ โโโ core/ # ๐ Ion transport physics engine
โ โ โโโ __init__.py
โ โ โโโ lfi.py # Lambda-Flow Index computation
โ โ โโโ nifp.py # Neural Ion-Flux Path (Nernst-Planck)
โ โ โโโ dhct.py # Debye-Hรผckel Coupling Tensor
โ โ โโโ rkt.py # Redox Kinetic Tensor (Butler-Volmer)
โ โ โโโ msc.py # Membrane Selectivity Coefficient
โ โ โโโ icfd.py # Ion Concentration Fractal Dimension
โ โ โโโ ntii.py # Noise-Transport Inhibition Index
โ โ โโโ composite.py # LFI weighted composite engine
โ โ
โ โโโ transport/ # ๐ฌ Ion transport modeling engine
โ โ โโโ __init__.py
โ โ โโโ nernst_planck_solver.py # Neural Nernst-Planck PDE solver
โ โ โโโ pinn_transport.py # PINN-constrained transport model
โ โ โโโ neural_ode_flux.py # Neural-ODE ion flux decoder
โ โ โโโ electroneutrality.py # Electroneutrality constraint enforcer
โ โ โโโ activity_corrector.py # Debye-Hรผckel activity coefficient layer
โ โ โโโ convection_model.py # Thermal convection velocity field
โ โ โโโ flux_sampler.py # Concentration space sampling strategies
โ โ
โ โโโ models/ # ๐ค AI ensemble architecture
โ โ โโโ __init__.py
โ โ โโโ ensemble.py # LFI ensemble (NernstNN + XGB + LSTM)
โ โ โโโ causal_cnn_1d.py # Causal-CNN-1D EIS spectrum processor
โ โ โโโ xgboost_lfi.py # XGBoost + SHAP descriptor model
โ โ โโโ lstm_lfi.py # LSTM ionic time-series model
โ โ โโโ shap_explainer.py # SHAP attribution for engineering action
โ โ โโโ failure_classifier.py # Ionic failure type classifier
โ โ
โ โโโ redox/ # โ๏ธ Redox kinetics module
โ โ โโโ __init__.py
โ โ โโโ butler_volmer.py # Butler-Volmer neural kinetics engine
โ โ โโโ overpotential_tracker.py # Overpotential time-series monitor
โ โ โโโ exchange_current.py # Exchange current density predictor
โ โ โโโ tafel_analyzer.py # Tafel slope extraction and analysis
โ โ โโโ redox_event_mapper.py # Redox event sequence reconstructor
โ โ
โ โโโ membranes/ # ๐งฑ Membrane transport module
โ โ โโโ __init__.py
โ โ โโโ selectivity_engine.py # Membrane selectivity computation
โ โ โโโ fouling_detector.py # Membrane fouling early warning
โ โ โโโ permeability_model.py # Ion permeability predictor
โ โ โโโ donnan_equilibrium.py # Donnan potential computation
โ โ โโโ membrane_registry.py # Dynamic membrane type loader
โ โ
โ โโโ environments/ # ๐ Electrochemical environment configs
โ โ โโโ __init__.py
โ โ โโโ battery_electrolyte.py # Li-ion / Na-ion electrolyte config
โ โ โโโ pem_membrane.py # PEM fuel cell / electrolyzer config
โ โ โโโ neural_channel.py # Biological ion channel config
โ โ โโโ desalination.py # Seawater / brine desalination config
โ โ โโโ solid_state.py # Solid-state ionic conductor config
โ โ โโโ electroplating.py # Industrial electroplating bath config
โ โ โโโ environment_registry.py # Dynamic environment loader
โ โ
โ โโโ eis/ # ๐ก Electrochemical impedance interface
โ โ โโโ __init__.py
โ โ โโโ eis_parser.py # EIS spectrum parser (.mpt, .dta, .csv)
โ โ โโโ nyquist_analyzer.py # Nyquist plot coherence extraction
โ โ โโโ bode_analyzer.py # Bode plot phase coherence analysis
โ โ โโโ circuit_fitter.py # Equivalent circuit model fitter
โ โ โโโ impedance_monitor.py # Real-time impedance health tracker
โ โ
โ โโโ monitoring/ # ๐ก Ionic health monitoring
โ โ โโโ __init__.py
โ โ โโโ coherence_tracker.py # Real-time ionic coherence monitoring
โ โ โโโ tipping_point_detector.py # RKT collapse / AR(1) detection
โ โ โโโ alert_engine.py # LFI alert level engine
โ โ โโโ intervention_planner.py # SHAP-guided redesign recommendations
โ โ โโโ health_reporter.py # Automated ionic health PDF reports
โ โ
โ โโโ data/ # ๐พ Data pipeline
โ โ โโโ __init__.py
โ โ โโโ itu_loader.py # Ion Transport Unit loader
โ โ โโโ battery_archive.py # Battery Archive (INL) connector
โ โ โโโ eis_database.py # EIS database connector
โ โ โโโ membrane_database.py # Membrane transport data API
โ โ โโโ time_series_parser.py # Electrochemical time-series parser
โ โ โโโ normalizer.py # Cross-environment descriptor normalization
โ โ
โ โโโ visualization/ # ๐ Visualization module
โ โ โโโ __init__.py
โ โ โโโ lfi_dashboard.py # Live LFI monitoring dashboard
โ โ โโโ flux_field_renderer.py # 3D ion flux field renderer
โ โ โโโ nyquist_plotter.py # Interactive Nyquist / Bode plots
โ โ โโโ concentration_mapper.py # Concentration gradient mapper
โ โ โโโ shap_plotter.py # SHAP waterfall / beeswarm plots
โ โ
โ โโโ utils/ # ๐ ๏ธ Utility functions
โ โโโ __init__.py
โ โโโ config.py # Configuration loader (YAML / TOML)
โ โโโ logger.py # Structured logging (structlog)
โ โโโ validators.py # Input validation & schema checks
โ โโโ units.py # Electrochemical unit conversion
โ โโโ constants.py # Physical / electrochemical constants
โ โโโ io.py # File I/O utilities (HDF5, JSON, CSV)
โ
โโโ configs/ # โ๏ธ Configuration files
โ โโโ default.yaml # Default transport configuration
โ โโโ battery_electrolyte.yaml # Li-ion battery electrolyte preset
โ โโโ pem_fuel_cell.yaml # PEM fuel cell preset
โ โโโ neural_channel.yaml # Biological ion channel preset
โ โโโ desalination.yaml # Seawater desalination preset
โ โโโ solid_state.yaml # Solid-state conductor preset
โ โโโ electroplating.yaml # Industrial electroplating preset
โ
โโโ data/ # ๐ฆ Data assets
โ โโโ reference/
โ โ โโโ environment_thresholds.csv # Per-environment LFI threshold tables
โ โ โโโ descriptor_weights.json # Bayesian-optimized descriptor weights
โ โ โโโ reference_spectra.h5 # Reference EIS spectra distributions
โ โ โโโ transport_atlas.json # 42-platform ionic transport baseline
โ โ
โ โโโ validation/
โ โ โโโ held_out_itus.h5 # 514 held-out ITUs (validation set)
โ โ โโโ eis_benchmarks.csv # EIS-validated transport benchmarks
โ โ โโโ experimental_confirmation.csv # Laboratory conductivity confirmations
โ โ
โ โโโ examples/
โ โโโ battery_electrolyte.mpt # Sample Li-ion EIS spectrum batch
โ โโโ pem_membrane.dta # Sample PEM impedance batch
โ โโโ neural_channel.csv # Sample patch-clamp time-series
โ
โโโ models/ # ๐ง Pre-trained model weights
โ โโโ ensemble_v1.0.0/
โ โ โโโ nernst_nn_lfi.pt # Neural Nernst-Planck model weights
โ โ โโโ xgboost_lfi.json # XGBoost model + SHAP explainer
โ โ โโโ lstm_lfi.pt # LSTM ionic time-series model weights
โ โ โโโ ensemble_config.json # Ensemble mixing weights
โ โ
โ โโโ environment_specific/
โ โโโ battery_v1.pt # Li-ion battery fine-tuned model
โ โโโ pem_v1.pt # PEM membrane fine-tuned model
โ โโโ neural_channel_v1.pt # Biological channel fine-tuned model
โ
โโโ notebooks/ # ๐ Jupyter notebooks
โ โโโ 01_quick_start.ipynb # Getting started walkthrough
โ โโโ 02_lfi_computation.ipynb # LFI descriptor computation tutorial
โ โโโ 03_battery_electrolyte.ipynb # Li-ion SEI degradation example
โ โโโ 04_pem_membrane.ipynb # PEM fuel cell hydration tutorial
โ โโโ 05_neural_channels.ipynb # Biological channel modeling example
โ โโโ 06_shap_attribution.ipynb # SHAP engineering action guide
โ โโโ 07_eis_analysis.ipynb # Electrochemical impedance tutorial
โ โโโ 08_flux_field_mapping.ipynb # Ion flux field visualization
โ
โโโ scripts/ # ๐ฅ๏ธ Utility scripts
โ โโโ compute_lfi.py # Standalone LFI computation script
โ โโโ monitor_platform.py # Real-time platform monitoring launcher
โ โโโ run_eis_validation.py # EIS validation pipeline launcher
โ โโโ export_report.py # PDF ionic health report exporter
โ โโโ benchmark.py # Framework performance benchmarking
โ โโโ daily_report.py # Daily report generator
โ โโโ update_environment_thresholds.py # Environment threshold recalibration
โ
โโโ reports/ # ๐ Generated reports
โ โโโ daily/ # Daily analysis reports
โ โโโ archive/ # Archived reports
โ
โโโ tests/ # ๐งช Test suite
โ โโโ __init__.py
โ โโโ unit/
โ โ โโโ test_nifp.py # NIFP descriptor unit tests
โ โ โโโ test_dhct.py # DHCT descriptor unit tests
โ โ โโโ test_rkt.py # RKT descriptor unit tests
โ โ โโโ test_msc.py # MSC descriptor unit tests
โ โ โโโ test_icfd.py # ICFD descriptor unit tests
โ โ โโโ test_ntii.py # NTII descriptor unit tests
โ โ โโโ test_lfi_composite.py # LFI composite formula tests
โ โ โโโ test_pinn_constraints.py # PINN physics constraint tests
โ โโโ integration/
โ โ โโโ test_battery.py # Battery environment integration tests
โ โ โโโ test_pem.py # PEM membrane integration tests
โ โ โโโ test_neural_channel.py # Neural channel integration tests
โ โ โโโ test_full_pipeline.py # End-to-end transport pipeline tests
โ โโโ regression/
โ โ โโโ test_known_systems.py # Regression against EIS benchmarks
โ โ โโโ test_held_out_itus.py # Validation against held-out ITU set
โ โโโ conftest.py # Shared pytest fixtures
โ
โโโ docs/ # ๐ Documentation
โ โโโ index.md
โ โโโ installation.md
โ โโโ quick_start.md
โ โโโ theory/
โ โ โโโ lfi_framework.md # LFI theoretical foundation
โ โ โโโ nernst_planck.md # NIFP derivation and validation
โ โ โโโ debye_huckel.md # DHCT physical interpretation
โ โ โโโ butler_volmer.md # RKT mathematical formulation
โ โ โโโ membrane_transport.md # MSC selectivity theory
โ โโโ api/
โ โ โโโ core.md # Core descriptor API reference
โ โ โโโ transport.md # Transport engine API reference
โ โ โโโ models.md # AI ensemble API reference
โ โ โโโ redox.md # Redox kinetics API reference
โ โ โโโ monitoring.md # Health monitoring API reference
โ โโโ tutorials/
โ โ โโโ battery_electrolyte.md # Battery electrolyte tutorial
โ โ โโโ pem_membrane.md # PEM membrane tutorial
โ โ โโโ neural_channels.md # Biological channel tutorial
โ โ โโโ custom_environment.md # Adding a new electrochemical environment
โ โโโ mkdocs.yml
โ
โโโ dashboard/ # ๐ฅ๏ธ Web dashboard (Netlify)
โ โโโ index.html
โ โโโ dashboard.html
โ โโโ results.html
โ โโโ documentation.html
โ โโโ assets/
โ โโโ netlify.toml
โ
โโโ paper/ # ๐ Research manuscript
โโโ ION-Logic_Full_Paper.pdf # Full research paper (Part 1 + 2)
โโโ figures/
โโโ supplementary/
๐ ๏ธ Installation
Requirements
Dependency Version Purpose Python โฅ 3.10 Runtime PyTorch โฅ 2.1 Neural network backbone JAX + Optax โฅ 0.4.25 PINN transport computation torchdiffeq โฅ 0.2.3 Neural-ODE flux solver XGBoost โฅ 2.0 Tabular descriptor model SHAP โฅ 0.44 SHAP attribution impedance.py โฅ 0.4.1 EIS spectrum analysis SciPy โฅ 1.11 Nernst-Planck PDE solving NumPy โฅ 1.25 Numerical transport computation Pymatgen โฅ 2024.2 Crystal structure analysis (solid-state)
Standard Installation
pip install ion-logic-engine
From Source (Recommended for Research)
# Clone the primary repository (GitLab)
git clone https://gitlab.com/gitdeeper11/ION-Logic.git
cd ION-Logic
# Create and activate environment
python -m venv ion_env
source ion_env/bin/activate # Linux / macOS
# ion_env\Scripts\activate # Windows
# Install in development mode
pip install -e ".[dev,eis,dashboard]"
# Install pre-commit hooks
pre-commit install
Verify Installation
python -c "import ion_logic; ion_logic.verify()"
# Expected output:
# โ
ION-Logic v1.0.0 โ all systems operational
# โ
Neural Nernst-Planck solver: LOADED
# โ
PINN constraint layer: ACTIVE
# โ
Electroneutrality enforcer: READY
# โ
Butler-Volmer kinetics engine: READY
โก Quick Start
Single Platform LFI Computation
from ion_logic import IONLogic
from ion_logic.environments import BatteryElectrolyteEnvironment
# Initialize framework
il = IONLogic.load_pretrained("ensemble_v1.0.0")
# Define electrochemical environment
env = BatteryElectrolyteEnvironment(
electrolyte="LiPF6_EC_DMC",
concentration=1.0, # mol/L
temperature=298.15, # K
cycling_rate="1C"
)
# Compute full LFI profile from EIS spectrum
result = il.compute_lfi(
eis_file="battery_eis.mpt",
environment=env,
lfi_threshold=0.38,
enforce_electroneutrality=True
)
# Inspect results
print(f"LFI Score: {result.lfi:.3f} [{result.lfi_status}]")
print(f"NIFP: {result.nifp:.3f}")
print(f"DHCT: {result.dhct:.3f}")
print(f"RKT: {result.rkt:.3f}")
print(f"ICFD: {result.icfd:.3f}")
print(f"Warning: {result.days_to_failure} days to predicted failure")
print(f"Action: {result.intervention_recommendation}")
Real-Time Platform Monitoring
from ion_logic import IONLogic
from ion_logic.environments import PEMMembraneEnvironment
from ion_logic.monitoring import CoherenceTracker
il = IONLogic.load_pretrained("ensemble_v1.0.0")
env = PEMMembraneEnvironment(
membrane_type="Nafion_117",
temperature=353.15, # 80ยฐC
current_density=1.5, # A/cmยฒ
relative_humidity=0.85
)
tracker = CoherenceTracker(
platform_id="PEM-STACK-01",
environment=env,
alert_threshold=0.58,
monitoring_interval_hours=24
)
# Start real-time monitoring loop
tracker.start(eis_endpoint="http://instrument-api/eis")
Batch Transport Analysis
from ion_logic.core import LFIComputer
from ion_logic.data import EISParser
parser = EISParser()
spectra = parser.load_batch("platform_data/", pattern="*.mpt")
computer = LFIComputer(environment="battery_electrolyte")
results = computer.compute_batch(spectra)
for spectrum, lfi_profile in zip(spectra, results):
print(f"{spectrum.platform_id}: LFI={lfi_profile.lfi:.3f} "
f"NIFP={lfi_profile.nifp:.3f} RKT={lfi_profile.rkt:.3f} "
f"Status={lfi_profile.status} "
f"Action={lfi_profile.intervention_recommendation}")
SHAP Attribution
from ion_logic.models import SHAPExplainer
explainer = SHAPExplainer.load("ensemble_v1.0.0")
# Identify why LFI declined for a specific platform
explanation = explainer.explain(platform_id="BATTERY-NMC-07")
print(explanation.summary())
# LFI = 0.51 [MODERATE] โ Dominant driver: DHCT (โ0.16)
# Recommended action: Reduce electrolyte concentration โ switch to 0.8 M LiPF6
# Secondary driver: ICFD (โ0.08) โ add viscosity-modifying co-solvent
๐ฆ Data Sources
Database Usage Access Battery Archive (INL) Long-cycle battery degradation records Open access Materials Project Solid-state ionic conductor references Open API NIST Electrochemistry DB Standard electrode potential references Open access Membrane Society Journals PEM transport benchmarks Open access Ion Channel Database (IUPHAR) Biological channel selectivity data Open access Impedance.py Community EIS spectrum fitting benchmarks Open source Zenodo ION-Logic ITU dataset (5,148 ITUs) Open โ CC BY 4.0
๐ Electrochemical Environment Coverage
Category Platforms Primary Systems Concentration Range Temp. Range Li-ion Battery Electrolytes 9 LiPF6/EC-DMC, solid electrolytes, gel polymers 0.5โ3.0 M โ20 to +80ยฐC Biological Neural Channels 8 Na+/K+ ATPase, voltage-gated channels, gap junctions 10โ140 mM 35โ42ยฐC PEM Fuel Cell / Electrolyzer 8 Nafion 117/212, PEMFC stacks, PEM electrolyzers 0.1โ2.0 M Hโบ 60โ90ยฐC Seawater Desalination 7 RO/ED brines, ion-exchange membranes 0.5โ6.0 M 15โ45ยฐC Solid-State Ionic Conductors 6 LLZO, NASICON, sulfide glass ceramics 0.1โ10 mS/cm 25โ300ยฐC Industrial Electroplating Baths 4 Cu, Ni, Zn acid baths, cyanide-free systems 0.2โ2.5 M 20โ65ยฐC Total 42 5,148 ITUs validated 8 years (2017โ2025) โ
๐ญ Case Studies
Case Study A โ Li-ion Battery: SEI Degradation Prediction
System: NMC-811 / graphite ยท Electrolyte: 1.0 M LiPF6/EC-DMC ยท LFI(C/5): 0.23 ยท LFI(2C): 0.47
DHCT suppression during fast charging (2C) introduces a dynamic activity coefficient gradient exceeding the static BMS correction bandwidth by 3.1ร. ION-Logic's DHCT ร ICFD combination identifies onset 38 days before capacity fade threshold is reached.
Case Study B โ Biological Neural Channels: Action Potential Drift
System: Hippocampal patch-clamp array ยท Challenge: 2 mM glutamate excitotoxicity ยท MSC deviation: 16.4%
MSC parameter detected the channel selectivity precursor 38 days before action potential failure. ION-Logic correctly attributed drift to DHCT decline (metabolic) rather than NIFP loss (structural membrane defect).
Case Study C โ PEM Electrolyzer: Membrane Hydration TCS Collapse
System: 5 kW PEM stack ยท Condition: j > 2.0 A/cmยฒ ยท Sites: PEM-01 to PEM-06
Erratic TCS behavior during current density surges classified as stability threshold oscillation. SHAP attribution identified MSC and NTII as drivers, generating specific recommendations: anode humidification and active back-pressure modulation.
Case Study D โ LLZO Solid Electrolyte: Grain Boundary Ionic Coherence
System: Li6.4La3Zr1.4Ta0.6O12 garnet ยท Pulse: 3C, 3 mA/cmยฒ ยท ICFD(columnar): 1.76 ยท ICFD(equiaxed): 1.28
Columnar-grain LLZO maintains ICFD 37% higher than equiaxed under 3C pulse. ION-Logic identifies the optimal ionic reference node for lithium stripping reconstruction โ the first physics-informed microstructure recommendation for solid-state battery certification.
๐ฆ Modules Reference
Module Key Classes Description ion_logic.core LFIComputer, NIFPDescriptor, DHCTDescriptor, RKTDescriptor Physics transport engine ion_logic.transport IONLogic, NernstPlanckSolver, PINNTransport Neural transport solver ion_logic.models LFIEnsemble, SHAPExplainer, FailureClassifier AI ensemble ion_logic.redox ButlerVolmerEngine, OverpotentialTracker Redox kinetics ion_logic.membranes SelectivityEngine, FoulingDetector Membrane transport ion_logic.monitoring CoherenceTracker, TippingPointDetector, AlertEngine Health monitoring ion_logic.eis EISParser, NyquistAnalyzer, CircuitFitter Impedance spectroscopy ion_logic.visualization LFIDashboard, FluxFieldRenderer Visualization
โ๏ธ Configuration
# configs/battery_electrolyte.yaml
environment:
name: battery_electrolyte
electrolyte: LiPF6_EC_DMC_3_7
concentration: 1.0 # mol/L
temperature: 298.15 # K
transport:
lfi_threshold: 0.38 # Minimum LFI for acceptable status
electroneutrality: true
debye_huckel_extended: true
convection_model: natural # natural | forced | none
descriptors:
weights:
nifp: 0.26
dhct: 0.22
rkt: 0.20
msc: 0.16
icfd: 0.10
ntii: 0.06
normalization: environment_specific
pinn:
enforce_nernst_planck: true
enforce_electroneutrality: true
enforce_thermodynamics: true
collocation_points: 500000
precision: float64
ai_ensemble:
nernst_nn_weight: 0.36
xgboost_weight: 0.32
lstm_weight: 0.32
shap_explain: true
eis:
frequency_range: [0.01, 100000] # Hz
n_points: 60
fitting_model: Randles
๐ Dashboard
Live at ion-logic.netlify.app
Panel Description โก Transport Monitor Real-time LFI scores for all active electrochemical platforms ๐ LFI Trajectory Time-series LFI evolution per platform with alert overlays ๐ Ion Flux Map 3D ion flux field visualization colored by LFI ๐ฌ Descriptor Profile Per-platform NIFP / DHCT / RKT / MSC / ICFD / NTII breakdown ๐ EIS Analyzer Interactive Nyquist and Bode plot visualization ๐ด SHAP Attribution Waterfall plots for engineering intervention attribution โ ๏ธ Alert Feed Real-time LFI alert notifications with recommended actions ๐ Platform Report Exportable PDF ionic health report per platform
# Launch local dashboard
python -m ion_logic.visualization.lfi_dashboard --port 8050
# Open: http://localhost:8050
๐ค AI Architecture
โจ ION-LOGIC NEURAL ENSEMBLE ARCHITECTURE โฉ
INPUT STREAMS MODEL LAYERS OUTPUT
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
EIS spectra (Nyquist) Causal-CNN-1D LFI_ensemble
(NIFP raw signal) Ion transport classify = 0.36ยทLFI_NernstNN
/ Nernst-Planck causal mask + 0.32ยทLFI_XGB
6 tabular descriptors XGBoost + SHAP + 0.32ยทLFI_LSTM
(NIFP, DHCT, RKT, Explainability layer
MSC, ICFD, NTII) SECONDARY OUTPUTS:
LFI time series Neural-ODE + PINNs โ Failure type classifier
(platform history) Nernst-Planck-constrained (conc/thermal/EM/fouling)
+ electroneutrality penalty โ Critical slowing-down
(TCS + AR1)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Training: 4,634 ITU-years (90%) Validation: 514 ITU-years (10%)
Three Physical Constraints Enforced at Every Prediction Step:
- Nernst-Planck compliance โ ion flux must satisfy the electrochemical potential gradient equation
- Charge electroneutrality โ local sum of ionic charges must be zero at equilibrium
- Thermodynamic consistency โ ionic activity coefficients must satisfy extended Debye-Hรผckel at observed ionic strength
SHAP Attribution Guide:
Dominant Driver Physical Interpretation Recommended Action NIFP decline Ion diffusion / migration degrading Check concentration polarization / reduce current density DHCT decline Debye-Hรผckel coupling failing Adjust ionic strength / change electrolyte concentration RKT imbalance Redox kinetics disrupted Inspect electrode surface / replace contaminated electrodes MSC loss Membrane selectivity failing Inspect membrane fouling / replace degraded membrane ICFD collapse Concentration topology linearizing Improve mixing / add stirring / thermal management NTII excess Noise-driven transport degradation Improve electromagnetic shielding / replace noisy sensors
๐ค Contributing
We welcome contributions from electrochemists, battery engineers, membrane scientists, AI researchers, and software developers.
# 1. Fork on GitLab and clone
git clone https://gitlab.com/gitdeeper11/ION-Logic.git
cd ION-Logic
# 2. Create a feature branch
git checkout -b feature/your-feature-name
# 3. Install development dependencies
pip install -e ".[dev]"
pre-commit install
# 4. Run tests
pytest tests/unit/ tests/integration/ -v
ruff check ion_logic/
mypy ion_logic/
# 5. Commit with conventional commits
git commit -m "feat: add your feature description"
git push origin feature/your-feature-name
# 6. Open a Merge Request on GitLab
Priority contribution areas:
ยท New electrochemical environment configurations (YAML + EIS calibration data) ยท Additional battery chemistries (Na-ion, Li-S, Li-air, redox flow) ยท Quantum proton tunneling extension โ planned for v3.0 (T < 270 K) ยท Molten salt electrolyte extension (T > 600ยฐC) โ planned for v2.0 (2028) ยท Gerischer impedance model integration for semiconductor electrodes ยท Documentation translation (Arabic, French, Japanese, German) ยท Multi-objective optimization module for simultaneous transport targets
๐ Citation
If you use ION-Logic in your research, please cite all of the following:
Research Paper
@article{Baladi2026IONLogic,
title = {ION-Logic: Neural Ion-Kinetic Intelligence for Electrochemical
Flow Prediction and Redox Dynamics Control โ A Physics-Informed
AI Framework for Lambda-Flow Index Computation, Nernst-Planck
Neural Transport Modeling, and Redox Kinetic Tensor Prediction
in Complex Electrochemical and Biological Ion-Conducting Environments},
author = {Baladi, Samir},
journal = {Journal of Chemical Information and Modeling},
publisher = {American Chemical Society},
year = {2026},
month = {April},
doi = {10.5281/zenodo.19702569},
url = {https://doi.org/10.5281/zenodo.19702569}
}
Software (PyPI)
@software{Baladi2026IONsoftware,
author = {Baladi, Samir},
title = {ion-logic-engine: Physics-Informed AI Framework for Ion Transport Dynamics},
version = {1.0.0},
year = {2026},
publisher = {PyPI},
url = {https://pypi.org/project/ion-logic-engine/1.0.0/},
note = {Python package for Lambda-Flow Index computation and EIS analysis}
}
Dataset (Zenodo)
@dataset{Baladi2026IONdata,
author = {Baladi, Samir},
title = {ION-Logic Ion Transport Dataset:
42 Platforms, 5,148 ITUs, 8 Years (2017โ2025)},
year = {2026},
publisher = {Zenodo},
version = {1.0.0},
doi = {10.5281/zenodo.19702569},
url = {https://doi.org/10.5281/zenodo.19702569},
license = {CC-BY-4.0}
}
OSF Preregistration
@misc{Baladi2026IONprereg,
author = {Baladi, Samir},
title = {ION-Logic: Neural Ion-Kinetic Intelligence Framework Preregistration},
year = {2026},
publisher = {OSF Registries},
doi = {10.17605/OSF.IO/Y82AM},
url = {https://doi.org/10.17605/OSF.IO/Y82AM},
note = {Registered: April 24, 2026 ยท CC-By Attribution 4.0 International}
}
APA (plain text)
Baladi, S. (2026). ION-Logic: Neural Ion-Kinetic Intelligence for Electrochemical
Flow Prediction and Redox Dynamics Control. Journal of Chemical Information
and Modeling. https://doi.org/10.5281/zenodo.19702569
Baladi, S. (2026). ion-logic-engine (Version 1.0.0) [Python package]. PyPI.
https://pypi.org/project/ion-logic-engine/1.0.0/
Baladi, S. (2026). ION-Logic Ion Transport Dataset (Version 1.0.0) [Data set].
Zenodo. https://doi.org/10.5281/zenodo.19702569
Baladi, S. (2026, April 24). ION-Logic: Neural Ion-Kinetic Intelligence Framework
Preregistration. OSF Registries. https://doi.org/10.17605/OSF.IO/Y82AM
๐ค Author
Field Details Name Samir Baladi Role Principal Investigator ยท Framework Design ยท Software Development ยท Analysis Affiliation Ronin Institute / Rite of Renaissance Designation Interdisciplinary AI Researcher โ Electrochemical Intelligence & Ion Dynamics Division Email gitdeeper@gmail.com ORCID 0009-0003-8903-0029 Phone +1 (614) 264-2074 GitLab gitlab.com/gitdeeper11 GitHub github.com/gitdeeper11
ION-Logic is the ninth expression of a coherent interdisciplinary research program:
Framework Domain Index PALMA Desert oasis ecosystem monitoring OHI METEORICA Extraterrestrial geochemical systems MGI BIOTICA Terrestrial ecosystem resilience BRI FUNGI-MYCEL Fungal network intelligence MNIS MET-AL Transition metal coordination bond stability CBSI PIEZO-X Piezoelectric energy harvesting in extreme environments PEGI CHRONOS-AI Temporal drift correction in high-velocity monitoring systems TDCI EntropyLab (E-LAB-01โ05) Thermodynamic entropy ยท Shannon theory ยท AI control UDSF / AEW GENESIS-X De novo molecular design in unexplored chemical space XFI ION-Logic Ion transport dynamics in electrochemical systems LFI
The methodological transfer across all frameworks is architectural: the six-descriptor weighted composite, Bayesian weight determination, three-tier monitoring hierarchy, AI ensemble with PINN constraint enforcement, and environment-specific threshold normalization โ progressively refined from below-ground oasis hydrology to electrochemical ion flow intelligence. What began as a framework for measuring the health of desert oases has arrived, through disciplined generalization, at a framework for measuring and optimizing the chemical current that powers civilization.
๐ฐ Funding
Grant Funder Amount Electrochemical AI for Ion Transport (NSF-CHE-2026) National Science Foundation $39,000 PINN HPC Allocation (TG-CHE2026-ION) XSEDE / ACCESS $25,000 EIS Calibration Access (QC-2026) NIST / PTB Joint Agreement In-kind Independent Scholar Award Ronin Institute $43,000
Total: ~$107,000 + infrastructure
๐ Repositories & Links
Platform URL ๐ฆ GitLab (primary) gitlab.com/gitdeeper11/ION-Logic ๐ GitHub (mirror) github.com/gitdeeper11/ION-Logic ๐ด Bitbucket bitbucket.org/gitdeeper11/ion-logic ๐ Codeberg codeberg.org/gitdeeper11/ION-Logic ๐ฆ PyPI pypi.org/project/ion-logic-engine/1.0.0 ๐ Website ion-logic.netlify.app ๐ Dashboard ion-logic.netlify.app/dashboard ๐ Docs ion-logic.netlify.app/docs ๐ Reports ion-logic.netlify.app/reports ๐๏ธ Zenodo doi.org/10.5281/zenodo.19702569 ๐ OSF doi.org/10.17605/OSF.IO/Y82AM ๐ค ORCID orcid.org/0009-0003-8903-0029
๐ License
This project is licensed under the MIT License โ see LICENSE for details.
Copyright ยฉ 2026 Samir Baladi ยท Ronin Institute / Rite of Renaissance
All experimental platform data used with institutional permission. Electrochemical databases accessed under open-science data sharing agreements.
โจ ION-Logic โฉ โ Making ion transport degradation visible, measurable, and correctable.
With a 38-day mean advance warning and 93.1% LFI prediction accuracy, ION-Logic transforms electrochemical system management from reactive conductivity failure response to strategic preventive ionic engineering.
๐ Website ยท ๐ Dashboard ยท ๐ Docs ยท ๐๏ธ Zenodo ยท ๐ OSF ยท ๐ฆ GitLab
Version 1.0.0 ยท MIT License ยท DOI: 10.5281/zenodo.19702569 ยท OSF: 10.17605/OSF.IO/Y82AM ยท ORCID: 0009-0003-8903-0029
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ion_logic_engine-1.0.0.tar.gz.
File metadata
- Download URL: ion_logic_engine-1.0.0.tar.gz
- Upload date:
- Size: 97.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: ION-Logic-Uploader/1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e174fb7158d35c7a6a0b1264edf324f10750413e69e2b302fa81f284a8b42bbb
|
|
| MD5 |
3eb315bf3b8dd5bf514a4c75938f6fa4
|
|
| BLAKE2b-256 |
0155ba98baf5da546132a42269bb5d0a2b4db9db3bcba24d848aa3bb22b914dc
|
File details
Details for the file ion_logic_engine-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ion_logic_engine-1.0.0-py3-none-any.whl
- Upload date:
- Size: 80.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: ION-Logic-Uploader/1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27396b4d2fc6a324962c5071f91dd4ebde9e093890cd6551f08d70fcb6be161a
|
|
| MD5 |
0b32049476e35f0020e0504f8eb82d6f
|
|
| BLAKE2b-256 |
831ce6046cf203f7113d16bc1c895ffcf500dc368a8dfe6ecd98b551bd344df6
|