Skip to content

Perform data driven modelling of Li-ion batteries using convex optimization for parametrization of RC link models from open source testing datasets.

License

Notifications You must be signed in to change notification settings

raghuramshankar/data-driven-modelling-of-li-ion-batteries

Repository files navigation

Data Driven Modelling of Li-ion Cell Batteries

Repository for project titled Data-driven modelling of Li-ion Batteries.

Requirements

  • Python>=3.8
  • Numpy
  • Scipy
  • Matplotlib
  • Pandas

Usage

Overview

This project is an implementation of RC link modelling of Li-ion Batteries using convex optimization to fit desired parameters.

Open Source Datasets Used

  • Kollmeyer, Phillip; Vidal, Carlos; Naguib Mina; Skells, Michael (2020), “LG 18650HG2 Li-ion Battery Data and Example Deep Neural Network xEV SOC Estimator Script”, Mendeley Data, V3, doi: 10.17632/cp3473x7xv.3

Battery Models Used

RC2 model:

  • rc2

RC2 model with hysteresis:

  • rc2-hyst

OCV-SOC Curve Extraction

  • The OCV-SOC curve is computed as the averge of the charge and discharge OCV-SOC curves extracted from OCV test data.
  • ocv-test
  • ocv
  • The computed OCV-SOC curve is the stored for simulation of cell using known cell parameters.
  • loaded-ocv

Model Parameter Extraction

  • The cell parameters are extracted from the dynamic test data using the minimize function from scipy.optimize.
  • The Cumulative Root Mean Squared Error (CRMSE) between the simulated terminal voltage and actual terminal voltage for a given dynamic test is considered as the loss function to be minimized.
  • The bounds of the cell parameters are defined with plausible values for the resistances and time constants of each RC branch.
  • Once the parameters are trained from a training data, it is then validated on different dynamic test data by comparing the computed CRMSEs.

Results

RC2 model:

OCV-SOC curve extracted from 25degC/549_C20DisCh.csv, training done on 25degC/551_Mixed1.csv and validation done on 25degC/551_LA92.csv:

Training:

  • dynamic-training

Validation:

  • dynamic-validation
Parameter R0(ohm) R1(ohm) R2(ohm) C1(farad) C2(farad) Training CRMSE(mV) Validation CRMSE(mV)
Value 0.01951358 0.01541913 0.5 1395.97247796 84959.64540431 20.01416826514894 20.095525362647045

RC2 model with hysteresis: TBD

License

MIT License

About

Perform data driven modelling of Li-ion batteries using convex optimization for parametrization of RC link models from open source testing datasets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published