CarbonLab: CO2 uptake of biomass-derived porous carbons

An entropy-TOPSIS weighted ensemble of six tree models (Random Forest, Extra Trees, Gradient Boosting, XGBoost, LightGBM, CatBoost) that predicts CO2 uptake (mmol/g) of biomass-derived porous carbons from their structure, elemental composition and test conditions. It applies the ensemble-ML approach of Fan et al. (2026) to the Yuan et al. (2021) data set (526 unique rows after removing 1 duplicate).

Live app and code: https://github.com/madhithyasharma-del/co2-adsorption-ml

Inputs (10)

Surface area, total pore volume, micropore volume, C, H, N, O, S (%), temperature (C), pressure (bar). The two pore volumes may be blank (the training median is used).

Test results (106 held-out rows)

Model RMSE MAE R2
Ensemble (entropy-TOPSIS) 0.644 0.477 0.848
CatBoost alone 0.605 0.446 0.866
Ridge baseline 0.974 0.745 0.652

On this test set CatBoost alone scored slightly better than the weighted ensemble; the ensemble is kept because it follows the base paper's method.

Enhancement over the base paper: prediction intervals

The base paper reports point predictions. We add split-conformal prediction intervals calibrated on 5-fold out-of-fold residuals of the development data (420 rows) and checked on the untouched test rows:

Target level Interval half-width (mmol/g) Actual test coverage
80% 0.724 78.3%
90% 1.092 92.5%
95% 1.437 96.2%

The half-width is the same for every input (it does not adapt to how uncertain a particular prediction is).

Files

  • model_bundle.joblib : dict with the six fitted pipelines (median imputer + model), ensemble weights, feature names
  • conformal.json : interval half-widths
  • feature_info.json : min / max / median of each input in the training data
  • results/ : test metrics, interval coverage, plots

Usage

import joblib
from huggingface_hub import hf_hub_download
path = hf_hub_download("adhithyasharma/carbonlab-co2-ensemble", "model_bundle.joblib")
bundle = joblib.load(path)   # only load pickle files from sources you trust

Requires scikit-learn 1.7.2, xgboost 3.4.1, lightgbm 4.7.0, catboost 1.2.10, pandas 2.3.3, numpy 2.3.5 (the versions it was trained with).

Limitations

Trained on only 526 samples at a few temperatures (0-30 C) and pressures (0.1-1.01 bar); predictions outside the training ranges are unreliable.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support