Tabular Regression
Keras
Joblib
English
battery
state-of-health
remaining-useful-life
time-series
regression
lstm
transformer
xgboost
lightgbm
random-forest
ensemble
Instructions to use NeerajCodz/aiBatteryLifeCycle with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use NeerajCodz/aiBatteryLifeCycle with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://NeerajCodz/aiBatteryLifeCycle") - Notebooks
- Google Colab
- Kaggle
| license: mit | |
| language: | |
| - en | |
| tags: | |
| - battery | |
| - state-of-health | |
| - remaining-useful-life | |
| - time-series | |
| - regression | |
| - lstm | |
| - transformer | |
| - xgboost | |
| - lightgbm | |
| - random-forest | |
| - ensemble | |
| datasets: | |
| - NASA-PCoE-Battery | |
| metrics: | |
| - r2 | |
| - mae | |
| - rmse | |
| pipeline_tag: tabular-regression | |
| # AI Battery Lifecycle β Model Repository | |
| Trained model artifacts for the [aiBatteryLifeCycle](https://huggingface.co/spaces/NeerajCodz/aiBatteryLifeCycle) project. | |
| SOH (State-of-Health) and RUL (Remaining Useful Life) prediction for lithium-ion batteries | |
| trained on the NASA PCoE Battery Dataset. | |
| ## Repository Layout | |
| ``` | |
| artifacts/ | |
| βββ v1/ | |
| β βββ models/ | |
| β β βββ classical/ # Ridge, Lasso, ElasticNet, KNN Γ3, SVR, XGBoost, LightGBM, RF | |
| β β βββ deep/ # Vanilla LSTM, Bi-LSTM, GRU, Attention-LSTM, TFT, | |
| β β # BatteryGPT, iTransformer, Physics-iTransformer, | |
| β β # DG-iTransformer, VAE-LSTM | |
| β βββ scalers/ # MinMax, Standard, Linear, Sequence scalers | |
| βββ v2/ | |
| βββ models/ | |
| β βββ classical/ # Same family + Extra Trees, Gradient Boosting, best_rul_model | |
| β βββ deep/ # Same deep models re-trained on v2 feature set | |
| βββ scalers/ # Per-model feature scalers | |
| βββ results/ # Validation JSONs | |
| ``` | |
| ## Model Performance Summary (v3) | |
| | Rank | Model | RΒ² | MAE | Family | | |
| |------|-------|----|-----|--------| | |
| | 1 | XGBoost | 0.9866 | 1.58 | Classical | | |
| | 2 | GradientBoosting | 0.9860 | 1.38 | Classical | | |
| | 3 | LightGBM | 0.9826 | 1.98 | Classical | | |
| | 4 | RandomForest | 0.9814 | 1.83 | Classical | | |
| | 5 | ExtraTrees | 0.9701 | 3.20 | Classical | | |
| | 6 | TFT | 0.8751 | 3.88 | Transformer | | |
| | 7 | Weighted Avg Ensemble | 0.8991 | 3.51 | Ensemble | | |
| ## Usage | |
| These artifacts are automatically downloaded by the Space on startup via | |
| `scripts/download_models.py`. You can also use them directly: | |
| ```python | |
| from huggingface_hub import snapshot_download | |
| local = snapshot_download( | |
| repo_id="NeerajCodz/aiBatteryLifeCycle", | |
| repo_type="model", | |
| local_dir="artifacts", | |
| token="<your-token>", # only needed if private | |
| ) | |
| ``` | |
| ## Framework | |
| - **Classical models:** scikit-learn / XGBoost / LightGBM `.joblib` | |
| - **Deep models (PyTorch):** `.pt` state-dicts (CPU weights) | |
| - **Deep models (Keras):** `.keras` SavedModel format | |
| - **Scalers:** scikit-learn `.joblib` | |
| ## Citation | |
| ```bibtex | |
| @misc{aiBatteryLifeCycle2025, | |
| author = {Neeraj}, | |
| title = {AI Battery Lifecycle β SOH/RUL Prediction}, | |
| year = {2025}, | |
| url = {https://huggingface.co/spaces/NeerajCodz/aiBatteryLifeCycle} | |
| } | |
| ``` |