摘要
CO2的捕集与封存(CCS)是一种潜力巨大的减排措施。多孔生物炭含有丰富的多尺度孔隙结构,具有优异的CO2吸附性能。针对传统基于试验数据建立的CO2吸附预测模型存在的精度低、计算复杂等不足,采用梯度提升决策树(GBDT)、极端梯度增强算法(XGB)、轻型梯度增压机算法(LGBM)等机器学习方法对生物炭吸附CO2进行模型预测,并对预测结果进行对比分析。结果表明:影响CO2吸附量的前3个因素依次为生物炭的比表面积、C含量、O含量。3种算法均能有效预测生物炭对CO2的吸附性能。相比之下,LGBM的预测精度最高,达到94%;GBDT在异常样本数据处理方面有显著优势;而XGB对不同测试集变化的预测结果更加稳定。在设计生物炭吸附性能时,不应盲目追求过高的表面积。建议生物炭C含量优先选择83%~88%之间,O含量优先选择15%~18%之间。
温室气体积累导致全球变暖,已经成为国际社会研究的热点问
生物炭对CO2的吸附性能主要取决于生物质原料类型和炭化方
基于此,笔者分别采用GBDT、XGB、LGBM三种机器学习算法,建立生物炭对CO2吸附性能的预测模型,评估各个预测模型的优劣和可靠性。
收集334个数据样本,并以此构建预测生物炭对CO2吸附性能的数据模型。数据集包含不同原料类型,如甘蔗渣、竹子、松木、树皮、家禽垃圾、稻草等。原始数据收集过程中主要考虑生物炭的制备工艺和自身理化特性,包括热解温度Pt、热解速率、元素组成(C、H、O、N)、比表面积SBET、总孔隙体积Vt、微孔体积Vm、CO2吸附量Ac、激活温度、原料类型及pH值等13种特征值。由于原材料来源广泛,不易统计,且影响生物炭吸附CO2性能的关键因素为孔隙特征与化学性质,故将原材料类型剔除。此外,数据集可能存在缺失值,当数据缺失率达70%以上,则会删除该参数属性。对于输入的生物炭自身参数,其中,激活温度、pH值数据都不足70%,从而排除在模型开发之外。对于其他部分数据缺失值,采用平均值替代,以保证数据的连续

图1 不同特征组合下的均方根误差RMSE、
Fig. 1 Trends of root mean square error,
变量 | 特征 | 平均值 | SD | Min | Q/4 | Q/2 | 3Q/4 | Max |
---|---|---|---|---|---|---|---|---|
X1 | 热解温度/℃ | 654.04 | 149.36 | 300 | 600 | 700 | 800 | 1 000 |
X2 |
比表面积/( | 1 493.48 | 751.44 | 248 | 966 | 1 408.8 | 1960 | 3 537 |
X3 |
总孔隙体积/(c | 0.810 6 | 0.476 5 | 0.02 | 0.48 | 0.69 | 1.03 | 3.09 |
X4 |
微孔空隙/(c | 0.545 1 | 0.297 7 | 0.04 | 0.33 | 0.49 | 0.73 | 1.87 |
X5 | C/% | 76.98 | 10.791 | 40.4 | 70.6 | 78.62 | 85.15 | 96.96 |
X6 | H/% | 2.048 | 1.180 2 | 0.04 | 1.17 | 1.97 | 2.58 | 6.01 |
X7 | O/% | 51.668 | 210.73 | 0.23 | 7.46 | 11.4 | 19.49 | 50.63 |
X8 | N/% | 3.641 5 | 3.045 9 | 0.01 | 1.35 | 2.75 | 5.05 | 15.88 |
Y | CO2吸附量/(mmol/g) | 3.383 8 | 0.925 6 | 0.46 | 2.78 | 3.47 | 4.08 | 5.63 |
注: SD为标准差;Q为四分位数。

(a) 热解温度

(b) 比表面积

(c) 总孔隙体积

(d) 微孔体积

(e) C元素

(f) H元素

(g) O元素

(h) N元素

(i) CO2吸附量
图2 变量分布直方图与核密度图
Fig. 2 Histogram of variable distribution and kernel density
由于各个参数数值范围不同,采用数据标准化处理,得到符合标准的正态分布函数,以解决各个指标之间的可比性问题。其正态分布函数如
(1) |
式中:Xi为原始数据;ρ为所有样本的均值;σ为所有样本的标准差。
GBDT(gradient boosting decision tree)算法使用CART回归决策树,常用于处理回归、二分类与多分类问题。GBDT算法的核心是通过每次迭代都以真实值与预测值之差作为学习目标,直至差值小于某个接近0的阈值。其主要流程为将多个弱分类器结合起来得到强分类器的结果。
XGB(extreme gradient boosting)算法是一种基于GBDT算法的改进型,拥有更快的数据训练速度和更准确的预测精度。与传统的GDBT算法相比,XGB算法在目标函数中增加了正则化,从而控制模型的复杂度。此外,XGB算法对损失函数进行了二阶泰勒展开,使得预测结果不易过拟合,具有更高的扩展
LGBM(light gradient boosting machine)算法是一种高效、低内存占用、高精确度的数据科学工具,被广泛应用于数据模型的预测中。相较于XGB算法,LGBM在决策树进行特征分裂时使用梯度大、残差大的样本来生成树,与GBDT中更改样本残差有相似之处。这样使模型对某些特定训练样本有较好的划分能力,从而加大树与树之间的异质性,对于模型加权有更大提升。如

图3 LGBM算法原理示意图
Fig. 3 Schematic diagram of LGBM algorithm
将8个输入变量(Pt、SBET、Vt、Vm、C、H、O、N)和输出变量CO2吸附量(Ac)的数据集进行标准差归一化。为度量两个变量之间的相关程度,引入对原始数据要求较低的皮尔逊相关系数(Pearson's Correlation Coefficient,PCC)进行特征筛选,其计算公式为
(5) |
式中:xi、yi为数据集中的两个变量。
此外,

(a) 热力图

(b) CO2吸附量

(c) 生物炭表征因素
图4 生物炭吸附CO2性能特征重要性分析
Fig. 4 Analysis of the importance of biochar adsorption characteristics of CO2
模型的预测精度、对异常样本处理的稳定性是衡量模型优劣的关键指标。

(a) 1∶9 GBDT

(b) 2∶8 GDBT

(c) 3∶7 GBDT

(d) 1∶9 XGB

(e) 2∶8 XGB

(f) 3∶7 XGB

(g) 1∶9 LGBM

(h) 2∶8 LGBM

(i) 3∶7 LGBM
图5 10%、20%、30%测试集划分比例下GBDT、XGB、LGBM分别对生物炭吸附CO2性能预测
Fig. 5 GBDT, XGB and LGBM were respectively used to predict the CO2 adsorption performance of biochar under the proportion of 10%, 20% and 30% test sets
由
部分依赖(partial dependence,PD)是将分析目标值与特征之间的交互关系进行可视化。使用PD分析了生物炭对CO2吸附性能影响最显著的3个变量(SBET、C含量、O含量)之间的相互依赖关系。由

(a) 比表面积

(b) 比表面积-C元素

(c) C元素

(d) 比表面积-O元素

(e) O元素

(f) C元素-O元素
图6 CO2吸附性能和生物炭特性的部分依赖图
Fig. 6 Partial dependence plot of CO2 adsorption and biochar properties
热解温度是影响生物炭物理性质的决定性因

图7 生物炭的CO2吸附能力对热解温度部分依赖图
Fig. 7 Partial dependence of CO2 adsorption performance of biochar on pyrolysis temperature
使用机器学习方法建立了生物炭对CO2吸附性能的预测模型,采用皮尔逊相关系数评估各变量的重要性,同时使用部分依赖分析3个最显著的影响因素,以增强模型的可解释性。根据特征选择,确定了8个输入变量(SBET、Vt、Vm、C含量、H含量、O含量、N含量、Pt)和一个输出变量(Ac),从而构建了CO2吸附量数据集。使用GBDT、XGB、LGBM三种模型进行预测,并在测试集划分比例与异常样本变化方面进行了稳定性分析。3种算法模型的训练性能评估结果如
模型类型 | 缺失值处理 | 运算时间 | 防过拟合 | 精度 | 异常样本稳定性 | 测试集划分稳定性 |
---|---|---|---|---|---|---|
GBDT | 无处理 | 一般 | 一般 | 一般 | 较好 | 一般 |
XGB | 自动处理 | 一般 | 较好 | 一般 | 一般 | 较好 |
LGBM | 自动处理 | 较快 | 较好 | 较好 | 一般 | 一般 |
对8个输入变量进行了皮尔逊相关系数分析,结果表明,SBET、C含量、O含量3个输入变量对生物炭吸附CO2特征重要性影响最显著,与Zhang
该模型不仅考虑了生物炭本身化学组成成分、热解条件,还考虑了生物炭物理性质特征,从而提高了预测结果的泛化精度。所使用的数据集是在100 kPa与25 ℃外界条件下测得的,但在不同的气压和温度条件下,CO2吸附性能可能会有不同的表现。因此,外部因素对生物炭吸附CO2性能的影响仍需要进一步探讨。部分依赖分析只考虑了8种输入变量之间的关系,并未考虑KOH或K2CO3在不同温度下活化的生物炭对CO2吸附性能的影响。此外,未来的研究将进一步通过试验来验证所建立模型的可靠性,为今后建立生物炭智慧碳库提供更好的数据和借鉴。
采用GBDT、XGB、LGBM三种机器学习模型对生物炭吸附CO2的性能进行了预测,将3种模型的精度与稳定性进行了对比与分析,以确定不同表征下生物炭对CO2的吸附能力,得出以下结论:
1)影响生物炭CO2吸附量的前3个因素依次为比表面积SBET、C含量、O含量,选择比表面积较大或C、O含量丰富的生物炭更有利于碳封存和捕捉。
2)不同算法对材料数据不同性能的预测效果存在差异。LGBM算法适用于对精度要求高的数据集;GBDT算法适用于处理异常样本和试验误差大的数据集;而XGB算法对测试集划分比例和缺失值的处理更具有可靠性。
3)预测部分依赖图结果表明,生物炭表面积SBET超过1 300
参考文献
DISSANAYAKE P D, CHOI S W, IGALAVITHANA A D, et al. Sustainable gasification biochar as a high efficiency adsorbent for CO2 capture: A facile method to designer biochar fabrication [J]. Renewable and Sustainable Energy Reviews, 2020, 124: 109785. [百度学术]
张宇航, 李伟, 马春慧, 等. 多孔炭材料吸附CO2研究进展[J]. 林产化学与工业, 2021, 41(1): 107-122. [百度学术]
ZHANG Y H, LI W, MA C H, et al. Progress of research on CO2 adsorption by porous carbon materials [J]. Chemistry and Industry of Forest Products, 2021, 41(1): 107-122. (in Chinese) [百度学术]
ZHANG X, ZHANG S H, YANG H P, et al. Nitrogen enriched biochar modified by high temperature CO2- ammonia treatment: Characterization and adsorption of CO2 [J]. Chemical Engineering Journal, 2014, 257: 20-27. [百度学术]
董华松, 黄文辉. CO2捕捉与地质封存及泄漏监测技术现状与进展 [J]. 资源与产业, 2010, 12(2): 123-128. [百度学术]
DONG H S, HUANG W H. Research of CO2 capture, geological storage and leakage technologies [J]. Resources & Industries, 2010, 12(2): 123-128. (in Chinese) [百度学术]
崔鸿劼. 碱金属盐修饰中高温CO2固体吸附材料的构效关系和吸附机理研究 [D]. 上海: 华东理工大学, 2021. [百度学术]
CUI H J. Structure-performance relationship and sorption mechanisms of alkali metal salt-promoted solid sorbents for intermediate-and high-temperature CO2 capture [D]. Shanghai: East China University of Science and Technology, 2021. (in Chinese) [百度学术]
张琳, 刘洪波, 张红波. 双电层电容器用多孔炭材料的研究与开发 [J]. 炭素, 2003(4): 3-9. [百度学术]
ZHANG L, LIU H B, ZHANG H B. Research and development of porous carbon materials for electric double-layer capacitor [J]. Carbon, 2003(4): 3-9. (in Chinese) [百度学术]
SEOW Y X, TAN Y H, MUBARAK N M, et al. A review on biochar production from different biomass wastes by recent carbonization technologies and its sustainable applications [J]. Journal of Environmental Chemical Engineering, 2022, 10(1): 107017. [百度学术]
YUE L M, XIA Q Z, WANG L W, et al. CO2 adsorption at nitrogen-doped carbons prepared by K2CO3 activation of urea-modified coconut shell [J]. Journal of Colloid and Interface Science, 2018, 511: 259-267. [百度学术]
WANG R T, WANG P Y, YAN X B, et al. Promising porous carbon derived from celtuce leaves with outstanding supercapacitance and CO ₂ capture performance [J]. ACS Applied Materials & Interfaces, 2012, 4(11): 5800-5806. [百度学术]
CAO L Y, ZHANG X Y, XU Y, et al. Straw and wood based biochar for CO2 capture: Adsorption performance and governing mechanisms [J]. Separation and Purification Technology, 2022, 287: 120592. [百度学术]
TIWARI D, BHUNIA H, BAJPAI P K. Urea-formaldehyde derived porous carbons for adsorption of CO2 [J]. RSC Advances, 2016, 6(113): 111842-111855. [百度学术]
YANG J E, YUE L M, HU X, et al. Efficient CO2 capture by porous carbons derived from coconut shell [J]. Energy & Fuels, 2017, 31(4): 4287-4293. [百度学术]
YANG X P, YUAN C, HE S R, et al. Machine learning prediction of specific capacitance in biomass derived carbon materials: Effects of activation and biochar characteristics [J]. Fuel, 2023, 331: 125718. [百度学术]
ZHU X Z, TSANG D C W, WANG L, et al. Machine learning exploration of the critical factors for CO2 adsorption capacity on porous carbon materials at different pressures [J]. Journal of Cleaner Production, 2020, 273: 122915. [百度学术]
ABDI J, HADAVIMOGHADDAM F, HADIPOOR M, et al. Modeling of CO2 adsorption capacity by porous metal organic frameworks using advanced decision tree-based models [J]. Scientific Reports, 2021, 11: 24468. [百度学术]
HALALSHEH N, ALSHBOUL O, SHEHADEH A, et al. Breakthrough curves prediction of selenite adsorption on chemically modified zeolite using boosted decision tree algorithms for water treatment applications [J]. Water, 2022, 14(16): 2519. [百度学术]
YUAN X Z, SUVARNA M, LOW S, et al. Applied machine learning for prediction of CO2 adsorption on biomass waste-derived porous carbons [J]. Environmental Science & Technology, 2021, 55(17): 11925-11936. [百度学术]
LI Y Z, GUPTA R, YOU S M. Machine learning assisted prediction of biochar yield and composition via pyrolysis of biomass [J]. Bioresource Technology, 2022, 359: 127511. [百度学术]
熊余婷. 基于XGB_BN模型的福州市水质评价研究[D]. 福州: 福建师范大学, 2021. [百度学术]
XIONG Y T. Study on water quality evaluation of Fuzhou city based on XGB_BN model [D].Fuzhou: Fujian Normal University, 2021. (in Chinese) [百度学术]
ZHAO H, LIU X, CAO Z, et al. Adsorption behavior and mechanism of chloramphenicols, sulfonamides, and non-antibiotic pharmaceuticals on multi-walled carbon nanotubes [J]. Journal of Hazardous Materials, 2016, 310: 235-245. [百度学术]
ZHANG Y, WANG S Z, FENG D D, et al. Functional biochar synergistic solid/liquid-phase CO2 capture: A review [J]. Energy & Fuels, 2022, 36(6): 2945-2970. [百度学术]
ZHANG S J, SHAO T, KOSE H S, et al. Adsorption of aromatic compounds by carbonaceous adsorbents: A comparative study on granular activated carbon, activated carbon fiber, and carbon nanotubes [J]. Environmental Science & Technology, 2010, 44(16): 6377-6383. [百度学术]
JIAO S, CHENG L, LI P, et al. Study on fatigue crack monitoring of metallic aircraft structure based on attached eddy current sensor [M]//Structural Health Monitoring and Integrity Management. CRC Press, 2015: 239-245. [百度学术]
JIN H M, CAPAREDA S, CHANG Z Z, et al. Biochar pyrolytically produced from municipal solid wastes for aqueous As(V) removal: Adsorption property and its improvement with KOH activation [J]. Bioresource Technology, 2014, 169: 622-629. [百度学术]
ZUO X J, LIU Z G, CHEN M D. Effect of H2O2 concentrations on copper removal using the modified hydrothermal biochar [J]. Bioresource Technology, 2016, 207: 262-267. [百度学术]
CHEN H Y, LI X Y, FENG Z B, et al. Shield attitude prediction based on Bayesian-LGBM machine learning[J]. Information Sciences, 2023, 632: 105-129. [百度学术]
ZHU X Z, HE M J, SUN Y Q, et al. Insights into the adsorption of pharmaceuticals and personal care products (PPCPs) on biochar and activated carbon with the aid of machine learning [J]. Journal of Hazardous Materials, 2022, 423: 127060. [百度学术]
WOOLF D, AMONETTE J E, STREET-PERROTT F A, et al. Sustainable biochar to mitigate global climate change [J]. Nature Communications, 2010, 1: 56. [百度学术]
GRAY M, JOHNSON M G, DRAGILA M I, et al. Water uptake in biochars: The roles of porosity and hydrophobicity [J]. Biomass and Bioenergy, 2014, 61: 196-205. [百度学术]
KUA H W, PEDAPATI C, LEE R V, et al. Effect of indoor contamination on carbon dioxide adsorption of wood-based biochar: Lessons for direct air capture[J]. Journal of Cleaner Production, 2019, 210: 860-871. [百度学术]
ZHAO L, CAO X D, MAŠEK O, et al. Heterogeneity of biochar properties as a function of feedstock sources and production temperatures [J]. Journal of Hazardous Materials, 2013, 256/257: 1-9. [百度学术]
WANG S S, GAO B, ZIMMERMAN A R, et al. Physicochemical and sorptive properties of biochars derived from woody and herbaceous biomass [J]. Chemosphere, 2015, 134: 257-262. [百度学术]
ZHANG K, ZHONG S F, ZHANG H C. Predicting aqueous adsorption of organic compounds onto biochars, carbon nanotubes, granular activated carbons, and resins with machine learning [J]. Environmental Science & Technology, 2020, 54(11): 7008-7018. [百度学术]
GUO J, CHONG LUA A. Characterization of chars pyrolyzed from oil palm stones for the preparation of activated carbons [J]. Journal of Analytical and Applied Pyrolysis, 1998, 46(2): 113-125. [百度学术]
FU P, YI W M, BAI X Y, et al. Effect of temperature on gas composition and char structural features of pyrolyzed agricultural residues [J]. Bioresource Technology, 2011, 102(17): 8211-8219. [百度学术]