Search
2026 Volume 2
Article Contents
ORIGINAL RESEARCH   Open Access    

Elemental composition-based prediction of persistent free radicals concentration and g-Factor in lignocellulose-derived biochar combining interpretable machine learning and experimental analysis

  • Full list of author information is available at the end of the article.

  • Received: 20 May 2026
    Revised: 01 July 2026
    Accepted: 22 July 2026
    Published online: 17 August 2026
    Biochar X  2 Article number: e022 (2026)  |  Cite this article
  • Multiple ML models predicted biochar PFRs properties from elemental descriptors.

    H/C and O were dominant descriptors for PFRs concentration.

    O and O/C governed g-Factor and oxygen-centered radical formation.

    Experimental Spearman analysis supported interpretable ML conclusions.

  • Persistent free radicals (PFRs), related to the elemental composition, are important factors that determine the reactivity of lignocellulose-derived biochar. However, the mechanism by which the elemental composition influences the PFRs properties in biochar is unclear. A comprehensive review of existing literature investigation on the relationship between PFRs and the elemental composition is urgently needed to elucidate the formation mechanism of PFRs. By collecting data from published papers, six machine-learning algorithms, namely, XGBoost, gradient boosting, support vector regression, shallow neural network, random forest, and ensemble learning, were compared, and the feature effects were interpreted using SHAP, feature-importance, and partial dependence analyses. The models showed satisfactory predictive and discriminative performance, with the best test R2 values reaching 0.7797 for PFRs concentration and 0.7647 for g-Factor, while the ROC-AUC values were > 0.9600 and 0.9780, respectively. Interpretable analyses identified H/C and O content as the dominant descriptors for PFRs concentration, whereas O content and O/C governed g-Factor variation. Decreases in H/C and O were associated with increased PFRs concentration, while increases in O and O/C promoted higher g-Factor values, indicating a shift toward the generation of oxygen-centered radicals. Independent experimental biochars prepared from lignocellulosic feedstocks further supported these results. The Spearman correlation analysis showed that H/C and O had the strongest correlations with PFRs concentration, while O and O/C were most strongly correlated with g-Factor; notably, at similar O/C values, higher H content increased g-Factor. This study provides a new perspective to elucidate the formation mechanism of PFRs.
    Graphical Abstract
  • 加载中
  • The supplementary files can be downloaded from here.
  • [1] Abdullah N, Mohd Taib R, Mohamad Aziz NS, Omar MR, Md Disa N. 2023. Banana pseudo-stem biochar derived from slow and fast pyrolysis process. Heliyon 9:e12940 doi: 10.1016/j.heliyon.2023.e12940

    CrossRef   Google Scholar

    [2] Guo J, Xiao H, Zhang JB, Dai C, Li T, et al. 2024. Characterization of highly stable biochar and its application for removal of phenol. Biomass Conversion and Biorefinery 14:13311−13321 doi: 10.1007/s13399-022-03375-3

    CrossRef   Google Scholar

    [3] Han KH, Yun SI, Choi DH, Lee SI. 2024. Net CO2 removal of rice husk biochar as soil amendment depending on energy reuse in the production stage. Korean Journal of Soil Science and Fertilizer 57:130−139 doi: 10.7745/KJSSF.2024.57.2.130

    CrossRef   Google Scholar

    [4] Lin M, Li F, Li X, Rong X, Oh K. 2023. Biochar-clay, biochar-microorganism and biochar-enzyme composites for environmental remediation: a review. Environmental Chemistry Letters 21:1837−1862 doi: 10.1007/s10311-023-01582-6

    CrossRef   Google Scholar

    [5] Luo K, Pang Y, Wang D, Li X, Wang L, et al. 2021. A critical review on the application of biochar in environmental pollution remediation: role of persistent free radicals (PFRs). Journal of Environmental Sciences 108:201−216 doi: 10.1016/j.jes.2021.02.021

    CrossRef   Google Scholar

    [6] Lian F, Xing B. 2017. Black carbon (biochar) in water/soil environments: molecular structure, sorption, stability, and potential risk. Environmental Science & Technology 51:13517−13532 doi: 10.1021/acs.est.7b02528

    CrossRef   Google Scholar

    [7] Zhang X, Wei F, Fu H, Guo H. 2025. Characterisation of environmentally persistent free radicals and their contributions to oxidative potential and reactive oxygen species in sea spray and size-resolvedambient particles. npj Climate and Atmospheric Science 8:27 doi: 10.1038/s41612-025-00911-6

    CrossRef   Google Scholar

    [8] Zhang Y, Xu M, Liu X, Wang M, Zhao J, et al. 2021. Regulation of biochar mediated catalytic degradation of quinolone antibiotics: important role of environmentally persistent free radicals. Bioresource Technology 326:124780 doi: 10.1016/j.biortech.2021.124780

    CrossRef   Google Scholar

    [9] Liu X, Chen Z, Lu S, Shi X, Qu F, et al. 2024. Persistent free radicals on biochar for its catalytic capability: a review. Water Research 250:120999 doi: 10.1016/j.watres.2023.120999

    CrossRef   Google Scholar

    [10] Xie L, Zhu K, Chen N, Deng Y, Jiang W, et al. 2024. A critical review of an environmental risk substance induced by aging microplastics: insights into environmentally persistent free radicals. Environmental Science & Technology 58:22502−22518 doi: 10.1021/acs.est.4c09107

    CrossRef   Google Scholar

    [11] Yang H, Chen N, Wang Z, Liu J, Qin J, et al. 2023. Biochar-associated free radicals reduce soil bacterial diversity: new insight into ecoenzymatic stoichiometry. Environmental Science & Technology 57:20238−20248 doi: 10.1021/acs.est.3c06864

    CrossRef   Google Scholar

    [12] Huang Y, Guo X, Ding Z, Chen Y, Hu X. 2020. Environmentally persistent free radicals in biochar derived from Laminaria japonica grown in different habitats. Journal of Analytical and Applied Pyrolysis 151:104941 doi: 10.1016/j.jaap.2020.104941

    CrossRef   Google Scholar

    [13] Bi D, Huang F, Jiang M, He Z, Lin X. 2022. Effect of pyrolysis conditions on environmentally persistent free radicals (EPFRs) in biochar from co-pyrolysis of urea and cellulose. Science of the Total Environment 805:150339 doi: 10.1016/j.scitotenv.2021.150339

    CrossRef   Google Scholar

    [14] Xiang C, Liu Q, Shi L, Liu Z. 2020. A study on the new type of radicals in corncob derived biochars. Fuel 277:118163 doi: 10.1016/j.fuel.2020.118163

    CrossRef   Google Scholar

    [15] Tao W, Zhang P, Li H, Yang Q, Oleszczuk P, et al. 2022. Generation mechanism of persistent free radicals in lignocellulose-derived biochar: roles of reducible carbonyls. Environmental Science & Technology 56:10638−10645 doi: 10.1021/acs.est.1c06997

    CrossRef   Google Scholar

    [16] Chen D, Xu J, Ling P, Fang Z, Ren Q, et al. 2024. Formation and evolution mechanism of persistent free radicals in biochar during biomass pyrolysis: insights from biochar's element composition and chemical structure. Fuel 357:129910 doi: 10.1016/j.fuel.2023.129910

    CrossRef   Google Scholar

    [17] Franklin J. 2005. The elements of statistical learning: data mining, inference and prediction. The Mathematical Intelligencer 27:83−85 doi: 10.1007/BF02985802

    CrossRef   Google Scholar

    [18] Hutengs C, Vohland M. 2016. Downscaling land surface temperatures at regional scales with random forest regression. Remote Sensing of Environment 178:127−141 doi: 10.1016/j.rse.2016.03.006

    CrossRef   Google Scholar

    [19] Deng R, Luo H, Huang D, Zhang C. 2020. Biochar-mediated Fenton-like reaction for the degradation of sulfamethazine: role of environmentally persistent free radicals. Chemosphere 255:126975 doi: 10.1016/j.chemosphere.2020.126975

    CrossRef   Google Scholar

    [20] Fang G, Zhu C, Dionysiou DD, Gao J, Zhou D. 2015. Mechanism of hydroxyl radical generation from biochar suspensions: implications to diethyl phthalate degradation. Bioresource Technology 176:210−217 doi: 10.1016/j.biortech.2014.11.032

    CrossRef   Google Scholar

    [21] Huang D, Luo H, Zhang C, Zeng G, Lai C, et al. 2019. Nonnegligible role of biomass types and its compositions on the formation of persistent free radicals in biochar: insight into the influences on Fenton-like process. Chemical Engineering Journal 361:353−363 doi: 10.1016/j.cej.2018.12.098

    CrossRef   Google Scholar

    [22] Zhu Z, Gou Q, Duan W, Chen F, Steinberg CEW, et al. 2025. Biochar-mediated degradation of p-nitrophenol as influenced by species of Fe(III). Biochar 7:65 doi: 10.1007/s42773-025-00448-0

    CrossRef   Google Scholar

    [23] Baltrėnaitė-Gedienė E, Lomnicki S, Guo C. 2022. Impact of biochar, fertilizers and cultivation type on environmentally persistent free radicals in agricultural soil. Environmental Technology & Innovation 28:102755 doi: 10.1016/j.eti.2022.102755

    CrossRef   Google Scholar

    [24] Baltrėnaitė-Gedienė E, Lomnicki S, Ogunmusi O. 2024. Research of the impact of environmentally persistent free radicals on chemical element behaviour in the soil-plant system. Chemosphere 364:143088 doi: 10.1016/j.chemosphere.2024.143088

    CrossRef   Google Scholar

    [25] Bao D, Li Z, Tang R, Wan C, Zhang C, et al. 2021. Metal-modified sludge-based biochar enhance catalytic capacity: characteristics and mechanism. Journal of Environmental Management 284:112113 doi: 10.1016/j.jenvman.2021.112113

    CrossRef   Google Scholar

    [26] Bi D, Yin M, Huang F, Zhang J, Yi W. 2023. Evolution and prediction model of environmentally-persistent free radicals in biomass three-component pyrolytic carbon with pyrolysis temperature. Industrial Crops and Products 206:117643 doi: 10.1016/j.indcrop.2023.117643

    CrossRef   Google Scholar

    [27] Cheng Y, Lu K, Chen Z, Li N, Wang M. 2024. Biochar reduced the risks of human bacterial pathogens in soil via disturbing quorum sensing mediated by persistent free radicals. Environmental Science & Technology 58:22343−22354 doi: 10.1021/acs.est.4c07668

    CrossRef   Google Scholar

    [28] Gao Y, Gao Y, Li A. 2025. Effect mechanism of H3PO4 on the formation and transformation of persistent free radicals in biochar. Biochar 7:28 doi: 10.1007/s42773-024-00405-3

    CrossRef   Google Scholar

    [29] Hu Y, Tong K, Guo Q, Zhang B, Jiao L, et al. 2022. Effect of controlled temperature and biomass addition on the formed environmental persistent free radicals (EPFRs) in sewage sludge-based biochar from pyrolysis treatment. Journal of Analytical and Applied Pyrolysis 162:105460 doi: 10.1016/j.jaap.2022.105460

    CrossRef   Google Scholar

    [30] Hu Y, Zhang B, Guo Q, Wang S, Lu S. 2022. Characterization into environmentally persistent free radicals formed in incineration fly ash and pyrolysis biochar of sewage sludge and biomass. Journal of Cleaner Production 373:133666 doi: 10.1016/j.jclepro.2022.133666

    CrossRef   Google Scholar

    [31] Wang Y, Gu X, Huang Y, Ding Z, Chen Y, et al. 2022. Insight into biomass feedstock on formation of biochar-bound environmentally persistent free radicals under different pyrolysis temperatures. RSC Advances 12:19318−19326 doi: 10.1039/d2ra03052g

    CrossRef   Google Scholar

    [32] Xuchao Z, Yi C, Die H, Li Z, Lin W, et al. 2019. Neurotoxic effect of environmental persistent free radicals in rice biochar to Caenorhabditis elegans. China Environmental Science 39:2644−2651 doi: 10.19674/j.cnki.issn1000-6923.2019.0314

    CrossRef   Google Scholar

    [33] Yan X, Cao T, Chen H, Wu J, Xu C, et al. 2025. Formation and evolution of environmentally persistent free radicals in charcoal and soot generated from biomass materials. Journal of Hazardous Materials 488:137523 doi: 10.1016/j.jhazmat.2025.137523

    CrossRef   Google Scholar

    [34] Zhao J, Shen G, Shi L, Li H, Lang D, et al. 2022. Real-world emission characteristics of environmentally persistent free radicals in PM2.5 from residential solid fuel combustion. Environmental Science & Technology 56:3997−4004 doi: 10.1021/acs.est.1c08449

    CrossRef   Google Scholar

    [35] Zhong D, Zhang Y, Wang L, Chen J, Jiang Y, et al. 2018. Mechanistic insights into adsorption and reduction of hexavalent chromium from water using magnetic biochar composite: key roles of Fe3O4 and persistent free radicals. Environmental Pollution 243:1302−1309 doi: 10.1016/j.envpol.2018.08.093

    CrossRef   Google Scholar

    [36] Xiao X, Chen Z, Chen B. 2016. H/C atomic ratio as a smart linkage between pyrolytic temperatures, aromatic clusters and sorption properties of biochars derived from diverse precursory materials. Scientific Reports 6:22644 doi: 10.1038/srep22644

    CrossRef   Google Scholar

    [37] Fang G, Liu C, Gao J, Dionysiou DD, Zhou D. 2015. Manipulation of persistent free radicals in biochar to activate persulfate for contaminant degradation. Environmental Science & Technology 49:5645−5653 doi: 10.1021/es5061512

    CrossRef   Google Scholar

    [38] Hasan F, Khachatryan L, Lomnicki S. 2020. Comparative studies of environmentally persistent free radicals on total particulate matter collected from electronic and tobacco cigarettes. Environmental Science & Technology 54:5710−5718 doi: 10.1021/acs.est.0c00351

    CrossRef   Google Scholar

    [39] Tang Z, Zhao S, Qian Y, Jia H, Gao P, et al. 2021. Formation of persistent free radicals in sludge biochar by hydrothermal carbonization. Environmental Chemistry Letters 19:2705−2712 doi: 10.1007/s10311-021-01198-8

    CrossRef   Google Scholar

    [40] Tay HL, Kajitani S, Zhang S, Li CZ. 2013. Effects of gasifying agent on the evolution of char structure during the gasification of Victorian brown coal. Fuel 103:22−28 doi: 10.1016/j.fuel.2011.02.044

    CrossRef   Google Scholar

    [41] Ruan X, Liu Y, Wang G, Frost RL, Qian G, et al. 2018. Transformation of functional groups and environmentally persistent free radicals in hydrothermal carbonisation of lignin. Bioresource Technology 270:223−229 doi: 10.1016/j.biortech.2018.09.027

    CrossRef   Google Scholar

    [42] Vejerano EP, Rao G, Khachatryan L, Cormier SA, Lomnicki S. 2018. Environmentally persistent free radicals: insights on a new class of pollutants. Environmental Science & Technology 52:2468−2481 doi: 10.1021/acs.est.7b04439

    CrossRef   Google Scholar

  • Cite this article

    Gao L, Xu C, Li M, Xu Z, Tao W. 2026. Elemental composition-based prediction of persistent free radicals concentration and g-Factor in lignocellulose-derived biochar combining interpretable machine learning and experimental analysis. Biochar X 2: e022 doi: 10.48130/bchax-0026-0020
    Gao L, Xu C, Li M, Xu Z, Tao W. 2026. Elemental composition-based prediction of persistent free radicals concentration and g-Factor in lignocellulose-derived biochar combining interpretable machine learning and experimental analysis. Biochar X 2: e022 doi: 10.48130/bchax-0026-0020

Figures(6)

Article Metrics

Article views(229) PDF downloads(48)

Original Research   Open Access    

Elemental composition-based prediction of persistent free radicals concentration and g-Factor in lignocellulose-derived biochar combining interpretable machine learning and experimental analysis

Biochar X  2 Article number: e022  (2026)  |  Cite this article

Abstract: Persistent free radicals (PFRs), related to the elemental composition, are important factors that determine the reactivity of lignocellulose-derived biochar. However, the mechanism by which the elemental composition influences the PFRs properties in biochar is unclear. A comprehensive review of existing literature investigation on the relationship between PFRs and the elemental composition is urgently needed to elucidate the formation mechanism of PFRs. By collecting data from published papers, six machine-learning algorithms, namely, XGBoost, gradient boosting, support vector regression, shallow neural network, random forest, and ensemble learning, were compared, and the feature effects were interpreted using SHAP, feature-importance, and partial dependence analyses. The models showed satisfactory predictive and discriminative performance, with the best test R2 values reaching 0.7797 for PFRs concentration and 0.7647 for g-Factor, while the ROC-AUC values were > 0.9600 and 0.9780, respectively. Interpretable analyses identified H/C and O content as the dominant descriptors for PFRs concentration, whereas O content and O/C governed g-Factor variation. Decreases in H/C and O were associated with increased PFRs concentration, while increases in O and O/C promoted higher g-Factor values, indicating a shift toward the generation of oxygen-centered radicals. Independent experimental biochars prepared from lignocellulosic feedstocks further supported these results. The Spearman correlation analysis showed that H/C and O had the strongest correlations with PFRs concentration, while O and O/C were most strongly correlated with g-Factor; notably, at similar O/C values, higher H content increased g-Factor. This study provides a new perspective to elucidate the formation mechanism of PFRs.

    • Biochar is a carbon-rich solid produced by pyrolysis under oxygen-limited or anaerobic conditions[1]. Owing to its porous structure, high surface area, and abundant functional groups, biochar has potential applications in agriculture, environmental remediation, and energy storage[24]. However, some specific physicochemical properties of biochars, particularly persistent free radicals (PFRs), may alter their performance and pose environmental risks. PFRs are stable, relatively long-lived radicals located on biochar surfaces and within pores[5], with lifetimes ranging from days to months[6]. They can mediate the formation of reactive oxygen species (ROS), including •OH, •O2, and 1O2, thereby promoting the removal of organic pollutants[7,8] and heavy metals[9]. Conversely, PFRs can induce oxidative stress in plant and animal cells[10]. For example, PFRs-derived •OH in biochar can reduce soil bacterial diversity and activity[11]. PFRs may also directly react with plant and animal cells and induce ROS formation, leading to environmental risks. The reactivity of PFRs is mainly determined by their concentration and radical type, as reflected by the g-Factor. However, comprehensive studies linking PFRs properties with biochar physicochemical properties, especially elemental composition, remain limited.

      PFRs concentration and radical type are commonly determined by electron paramagnetic resonance (EPR) spectroscopy (a.k.a. electron spin resonance [ESR] or electron magnetic resonance [EMR]). For radical-type identification, oxygen-centered radicals generally exhibit g-Factor values > 2.0040, mixed carbon- and oxygen-centered radicals exhibit values of 2.0030–2.0040, and carbon-centered radicals exhibit values < 2.0030[12]. Previous studies have examined factors affecting PFRs properties, including elemental composition and chemical structure. As oxygen-containing functional groups decrease in biochar, g-Factor values decline, and carbon-centered radicals form[13]. PFRs concentration is also directly associated with structural defects in biochar[14]. Our previous study showed that PFRs concentration is significantly and positively correlated with the peak areas of C=O and aromatic C=C groups[15]. The decomposition and reorganization of carbonaceous structures during pyrolysis constitute the main route for PFRs formation in biochar and directly change the elemental composition. A linear relationship between PFRs properties and elemental composition has been previously established for six types of lignocellulose-derived biochars[16]. However, such simple linear relationships may not be transferable to other lignocellulose-derived biochars. Therefore, owing to source-dependent differences in elemental composition and the likely nonlinear correlations between elemental composition and PFRs properties, a more general prediction model is needed to better understand diverse lignocellulose-derived biochars.

      Machine learning (ML) is well suited to explore complex relationships between elemental composition and PFRs properties in lignocellulose-derived biochars. These data-driven approaches, including classification and regression tree-based models[17], can reduce the risk of overfitting, require relatively straightforward parameterization, and quantify the relative importance of individual factors[18]. This study constructed predictive models for PFRs concentration and g-Factor using eXtreme Gradient Boosting (XGBoost), gradient boosting, Support Vector Regression (SVR), shallow neural network (shallow NN), Random Forest (RF), and ensemble learning. In addition, this study interprets the importance of C, H, O, H/C, and O/C using Shapley additive explanations (SHAP), feature importance, and partial dependence plot (PDP) analyses. Independent lignocellulose-derived biochars were further prepared for experimental validation. This study provides scientific guidance for regulating biochar PFRs and a theoretical basis for evaluating the environmental impacts of biochar application.

    • A total of 263 paired records of PFRs concentration and g-Factor were collected from published studies to build prediction models (Supplementary Table S1)[12,13,16,1935]. The raw datasets were preprocessed, including outlier removal and missing-value imputation. Outliers were identified using the interquartile range (IQR) method. For each dataset, the lower quartile (Q1), upper quartile (Q3), and interquartile range (IQR = Q3 − Q1) were determined. Samples with values lower than (Q1 − 1.5 IQR) or higher than (Q3 + 1.5 IQR) were identified as outliers and removed from the dataset (Supplementary Fig. S1). Before model construction, all literature-derived PFRs concentration data were converted to a uniform unit of ×1020 spins/g to ensure comparability among studies. No missing-value imputation was performed because the collected dataset did not contain any missing entries for the selected variables. However, because detailed EPR acquisition parameters, such as microwave power and modulation amplitude, were not uniformly available in the collected studies, further normalization based on instrumental settings was not performed. Consequently, the comparisons of PFRs concentration may contain minor uncertainties related to interstudy differences in EPR settings, and g-Factor-based radical identification might be less sensitive to signal intensity.

    • After the removal of outliers, only complete records containing all features were used for ML modeling. PFRs concentration and g-Factor were set as response variables, and C, H, O, H/C, and O/C were used as input variables. Pairwise linear correlations were quantified using the PCC analysis, as shown in Eq. (1):

      $ r=\dfrac{\displaystyle\sum\limits_{i=1}^{n}\left({x}_{i}-\overline{x}\right)\left({y}_{i}-\overline{y}\right)}{\sqrt{\displaystyle\sum\limits_{i=1}^{n}{\left({x}_{i}-\overline{x}\right)}^{2}\displaystyle\sum\limits_{i=1}^{n}{\left({y}_{i}-\overline{y}\right)}^{2}}} $ (1)

      where, $ \overline{x} $ and $ \overline{y} $ denote the mean values of variable x and y, respectively, and$ {x}_{i} $ and$ {y}_{i} $ are two random variables.

    • All input value datasets were subjected to Z-score normalization to achieve standardization, as per Eq. (2):

      $ x_{i}^{*}=\left({x}_{i}-\mu \right)/\sigma $ (2)

      where, $ x_{i}^{*} $ represents the normalized form of the input variable and xi denotes the initial raw value. The mean and standard deviation are represented by $ \mu $ and $ \sigma $, respectively.

      The ML models of PFRs concentration and g-Factor were assessed through the coefficient of determination (R2) and mean-squared error (MSE). The calculation formulas of R2 and MSE are shown in Eqs (3) and (4), respectively:

      $ {R}^{2}=1-\dfrac{\displaystyle\sum{\left({y}_{i}-{\hat{y}}_{i}\right)}^{2}}{\displaystyle\sum{\left({y}_{i}-\overline{y}\right)}^{2}} $ (3)
      $ MSE=\dfrac{1}{n}\sum\limits_{i=1}^{n}{\left({y}_{i}-{\hat{y}}_{i}\right)}^{2} $ (4)

      where, $ {y}_{i} $ represents the actual measured value, $ {\hat{y}}_{i} $ stands for the predicted value, and $ \overline{y} $ corresponds to the average of all measured values.

    • ROC curves were used as an auxiliary evaluation tool to assess the ability of each model to discriminate between high- and low-value samples. The median measured value of the response variable in the training set was used as the classification threshold. Samples above this threshold were assigned to the high-value class, and the remaining samples were assigned to the low-value class. The continuous predicted values generated by each model on the test set were then used as discriminant scores to calculate ROC curves and the corresponding area under the curve (AUC).

    • The experimental lignocellulose biochars derived from lignin, cellulose, pine sawdust (PS), rice straw (RS), and peanut hull (PH) were used to verify the ML results. Both cellulose and lignin feedstocks were sourced from Aladdin Reagent Company (Shanghai, China). The PH, RS, and PS feedstocks were purchased from an agricultural and forestry waste treatment plant in Kunming City, Yunnan Province. All raw materials were first crushed and sieved through a 100-mesh standard sieve and then subjected to pyrolysis at 300–800 °C under a 99.999% high-purity nitrogen atmosphere, with a holding time of 1 h. A heating rate of 10 °C/min was adopted.

    • The contents of C, H, and O were determined using an elemental analyzer (Vario MICRO Cube, Elementar, Germany) with a thermal conductivity detector. The combustion and reduction tube temperatures were set to 1,150 and 850 °C, respectively.

      Both the PFRs concentration and g-Factor were determined by an electron paramagnetic resonance spectrometer (ESR, Bruker X-band A300-6/1, Germany). First, 10 ± 0.5 mg of biochar was loaded into quartz tubes with an outer diameter of 5.0 mm and an inner diameter of 3.0 mm. ESR parameters were set as follows based on our previous studies: 100 kHz modulation frequency, 9.2−9.9 GHz microwave frequency, 100 G sweep width, 1.00 G modulation amplitude, and 1,024 points as the resolution in the X-axis[15]. The microwave power was 0.1 mW (31 dB attenuation). The PFRs concentration (spins/g) was measured using the DPPH standard curve and adjusted by biochar weight, as described in our previous work.

    • Figure 1 shows the PCC matrix among all variables. H was weakly negatively correlated with PFRs concentration (r = −0.26), indicating that hydrogen content was inversely related to PFRs concentration, probably because of structural changes during biomass pyrolysis. O showed a moderate negative correlation with the PFRs concentration (r = −0.40), suggesting that higher oxygen content was associated with lower PFRs concentration, likely due to changes in oxygen-containing functional groups. O/C and H/C were also negatively correlated with PFRs concentration, with r values of −0.36 and −0.18, respectively. By contrast, C was weakly positively correlated with PFRs concentration (r = 0.11), indicating a minor contribution of carbon content to PFRs formation during biochar production. Overall, Fig. 1a indicates that H/C, H, O, and O/C were negatively associated with PFRs concentration and may be key descriptors affecting PFRs accumulation. For the PFRs g-Factor, H, O, and O/C showed significant positive correlations (p < 0.001). H was positively correlated with the g-Factor (r = 0.66), suggesting that changes in hydrogen-related functional groups may influence the radical type. O and O/C showed stronger positive correlations with the g-Factor (r = 0.77 and 0.74, respectively), indicating a shift from carbon-centered to oxygen-centered radicals. By contrast, C and H/C were only weakly correlated with the g-Factor (r = 0.067 and 0.038, respectively), further indicating that oxygen-related descriptors are the primary drivers of radical-type variations. These linear correlations provided a preliminary basis for subsequent ML modeling, while interpretable ML was used to elucidate nonlinear feature effects and interactions.

      Figure 1. 

      Pairwise Pearson correlation matrix of all variables—H, O, O/C, H/C, and C: (a) Pearson correlation matrix between PFRs concentration and the variables. (b) Pearson correlation matrix between PFRs g-Factor value and the variables.

    • Five molecular descriptor variables—H, O, O/C, H/C, and C—were selected as input features, while PFRs concentration and g-Factor values were used as the corresponding response variables. For each dataset, all samples were randomly divided into training and test subsets at a ratio of 80:20 after shuffling. A fixed random seed of 42 was used to ensure the reproducibility of the modeling results. Six ML algorithms, namely, XGBoost, Gradient Boosting, SVR, Shallow NN, RF, and ensemble learning, were employed to establish predictive models. The ensemble model was constructed by averaging the predicted outputs of XGBoost, gradient boosting, SVR, and RF. The predictive performance of each model was quantitatively evaluated using the R2 and MSE for both the training and test sets (Supplementary Table S2).

      For PFRs concentration prediction, the regression plots in Fig. 2 show that the predicted values of most models are distributed close to the ideal y = x line, indicating that the selected elemental composition could effectively characterize the variation trend of PFRs concentration. XGBoost and gradient boosting exhibited strong fitting capability on the training set, with Train R2 values of 0.9916 and 0.9919, respectively. However, their Test R2 values decreased to 0.7193 and 0.7328, respectively, suggesting that these two boosting models tended to overfit the training data. By comparison, SVR and shallow NN achieved more balanced performance between the training and test sets, with Test R2 values of 0.7786 and 0.7797, respectively, indicating relatively favorable generalization capability. The RF model yielded a Train R2 of 0.9186 and Test R2 of 0.7553, reflecting stable but moderate predictive performance. The ensemble model achieved a Train R2 of 0.9683 and Test R2 of 0.7768, suggesting that model averaging improved the fitting capacity while maintaining reasonable predictive robustness on unseen samples. Overall, SVR, shallow NN, and ensemble learning exhibited comparatively better generalization performance for PFRs concentration prediction.

      Figure 2. 

      Regression performance of different machine-learning models for PFRs concentration prediction. (a) XGBoost. (b) Gradient boosting. (c) SVR. (d) Shallow NN. (e) Random forest. (f) Ensemble.

      Supplementary Figure S2 shows the ROC analysis, which further demonstrates the discriminative ability of the models for high-concentration PFRs samples. The threshold used for PFRs concentration was 1.1115 × 1020 (Supplementary Fig. S2). All ROC curves were located well above the diagonal reference line, with the AUC values ranging from 0.9600 to 0.9886. Among the six models, SVR achieved the highest AUC value of 0.9886, followed by the shallow NN and ensemble learning, with the AUC values of 0.9771 and 0.9714, respectively. These results indicate that, although several models show moderate regression performance on the test set, they retained excellent capability for distinguishing high-concentration samples from low-concentration samples.

      Figure 3 shows that, for the g-Factor prediction, the regression performance is generally lower than that for PFRs concentration. This result can be attributed to the much narrower numerical range of the g-Factor values, which increases the sensitivity of R2 to small absolute prediction errors. XGBoost and gradient boosting achieved high Train R2 values of 0.9949 and 0.9971, respectively, whereas their Test R2 values were only 0.6351 and 0.6599, respectively. This discrepancy indicated apparent overfitting and reduced generalization ability. SVR showed a Train R2 of 0.9325 and Test R2 of 0.5767, suggesting limited predictive robustness for the g-Factor dataset. By contrast, shallow NN achieved the highest Test R2 value of 0.7647, indicating that the nonlinear mapping ability of the shallow NN is more suitable for capturing the subtle variations in the g-Factor values. RF and ensemble learning had Test R2 values of 0.6880 and 0.6573, respectively, showing acceptable but not superior generalization performance. Therefore, compared with PFRs concentration, the accurate regression prediction of the g-Factor values remains more challenging.

      Figure 3. 

      Regression performance of different machine-learning models for g-Factor value prediction. (a) XGBoost. (b) Gradient boosting. (c) SVR. (d) Shallow NN. (e) Random forest. (f) Ensemble.

      Despite the relatively limited regression accuracy of the g-Factor values, the ROC curves reveal excellent classification discrimination. The threshold used for the PFRs g-Factor value was 2.002655 (Supplementary Fig. S3). The AUC values of all models were higher than 0.9780, and the ensemble model had an AUC of 1.0000. XGBoost and RF also exhibited very high AUC values of 0.9971 and 0.9956, respectively. These findings suggest that the models could effectively differentiate high-g-Factor samples from low-g-Factor samples, even though precise continuous-value prediction was constrained by the narrow distribution range of the target variable. Overall, the regression and ROC analyses demonstrate that the selected ML models are capable of predicting PFRs concentration and g-Factor values. The models showed stronger regression robustness for PFRs concentration and greater high-/low-value discrimination ability for g-Factor values.

    • SHAP analysis was used to analyze the feature importance of the elemental composition for the concentration of PFRs in biochar. Figure 4 shows that the average SHAP importance of different features to the model output follows the following order: H/C (0.3684) > O (0.1546) > H (0.0666) > O/C (0.0558) > C (0.0406) for PFRs concentration. The average SHAP value of the H/C feature is the largest, indicating that it has the most significant effect on the prediction of the PFRs concentration. Previous investigations have shown that the H/C atomic ratio can serve as a quantitative index for the degree of aromatization in biochar[36].

      Figure 4. 

      Relative contribution of each feature based on SHAP feature-importance analysis and beeswarm plots: (a), (b) of PFRs concentration (the top row), and (c), (d) of PFRs g-Factor value (the bottom row). Error bars represent ± 5% of the corresponding mean absolute SHAP values.

      In this elemental composition-based model, H/C was considered an elemental-ratio descriptor potentially associated with hydrogen deficiency and carbon condensation during pyrolysis, rather than a direct structural measurement of aromaticity. Figure 4b shows that in the SHAP beeswarm plot, H/C exhibits a wider horizontal distribution than the other descriptors, further supporting its strong influence. Lower H/C values are associated with higher PFRs concentration, likely because aromatic-ring formation provides a stable environment for radicals. C showed the lowest average SHAP value, indicating a weak contribution. This may be attributed to the high and relatively stable C content of biochar and its limited variation range. PFRs formation is more closely related to the chemical form of carbon, such as aromatic structures, than to the total C content[37]. In addition, O, H, and O/C showed negative effects on the predicted PFRs concentration. O/C reflects the abundance of oxygen-containing functional groups in biochar and is an indicator of oxygen content[38,39]. Therefore, decreases in O/C, O, and H may reflect functional-group rearrangement and carbon-structure condensation during pyrolysis, which promote PFRs accumulation.

      Figure 4c shows that for the PFRs g-Factor, SHAP analysis revealed that the average feature importance ranked as follows: O (0.530) > O/C (0.218) > H (0.121) > C (0.067) > H/C (0.064) (Fig. 4c). O exhibited the highest importance score and exerted the dominant positive effect on the predicted g-Factor. O/C also contributed substantially; higher O/C values increase the predicted g-Factor. These results indicate that oxygen-rich compositions favor higher g-Factor values and are associated with oxygen-centered radicals[40,41]. H and C had weaker effects, although increases in their values also slightly elevated the predicted g-Factor. This trend may be related to the cleavage of the hydrocarbon structure during pyrolysis, which generates small radicals that can enter the macromolecular carbon skeleton and increase the g-Factor[40]. Overall, the feature-importance pattern for g-Factor reflects the transformation of radical types during biomass pyrolysis.

    • After confirming the relative importance of individual input variables, PDP analysis was carried out to clarify the dependence of model outputs on key features. A PDP describes the overall effects of selected descriptors on the PFRs concentration or g-Factor. The univariate PDP results are shown in Fig. 5. The tick marks on the x-axis represent the fractiles of each feature and indicate data density. Regions with sparse data provide less reliable trends and were excluded from mechanistic interpretation. For example, in Fig. 5a, the trendline remains nearly unchanged when H/C > 0.7 because of the small number of data points within this range; therefore, the PDP here was not analyzed. Additionally, the intervals of O > 18 wt.% (Fig. 5b), O/C > 0.25 (Fig. 5c) and O > 17.5 wt.% (Fig. 5d) were not included in the analysis because of the sparse data points, which did not have reliable mechanistic interpretability.

      Figure 5. 

      The univariate PDP analysis on important features: (a), (b) of PFRs concentration (the top row), and (c), (d) of PFRs g-Factor (the bottom row). The tick marks on the x-axis represent the fractiles of target feature values and reflect the data density.

      Based on the feature-importance results, the two most important features for each response variable were selected for univariate PDP analysis. Figure 5a, b shows the effects of H/C and O on PFRs concentration. H/C values are mainly concentrated between 0.3 and 0.7 and show a negative effect, consistent with the SHAP results. Thus, a higher degree of aromatization, reflected by lower H/C, is associated with a higher PFRs concentration[36]. O values are mainly concentrated between 10 and 15 wt.% and also show a negative effect, consistent with the feature-importance analysis. Figure 5c, d shows the effects of O/C and O on PFRs g-Factor. In Fig. 5c, partial dependence generally increases with O/C, indicating a positive effect of O/C on the g-Factor in the ML model. The increase is slower at low O/C and faster at higher O/C. This trend is consistent with the decrease in the g-Factor and shift from oxygen-centered to carbon-centered radicals as oxygen-related descriptors decline; a previous work also reported lower g-Factor values with decreasing H/C and O/C[16]. In Fig. 5d, partial dependence remains nearly stable at low O values and then sharply increases when O reaches approximately 10–12.5 wt.%. This result indicates that low O content has limited influence on the g-Factor, whereas higher O content strongly promotes g-Factor increases and the transition toward oxygen-centered radicals[41]. Overall, H/C and O show negative effects on PFRs concentration, whereas O and O/C show positive effects on the PFRs g-Factor within the reliable data ranges. However, univariate PDP analysis cannot fully resolve feature synergy. Therefore, multivariate PDP analysis is required.

      Two-feature PDP analysis was further used to evaluate the synergistic effects on PFRs concentration and g-Factor. The top three descriptors identified by feature-importance analysis were selected; the representative results are shown in Fig. 6. High PFRs concentrations mainly occur when O is approximately 10–30 wt.%, H is approximately 2.0–4.0 wt.%, and H/C is approximately 0.6–0.9 (Fig. 6ac). The response tends to decrease when O, H, or H/C is below or above these favorable ranges, indicating that either insufficient or excessive elemental contents are unfavorable for PFRs accumulation. Moderate O content may provide suitable oxygen-containing sites for radical formation and stabilization, whereas excessive O may promote radical quenching or over-oxidation[42]. Similarly, moderate H/C may maintain an appropriate C–H structure for stabilizing PFRs, whereas a low or too high H/C weakens radical accumulation. For the PFRs g-Factor, the partial dependence on H is small, whereas the partial dependences on O/C and O are stronger. Increasing O/C and O markedly increases the partial dependence of the PFRs g-Factor (Fig. 6d, e), indicating that O and O/C increase the g-Factor and promote the transformation from carbon-centered to oxygen-centered radicals[38,39]. Although the dependence of the g-Factor on H is weaker, higher H content increases the g-Factor when O/C and O are comparable. This result suggests that higher H reduces the relative contribution of carbon-centered radicals, possibly because small radicals generated during pyrolysis enter the macromolecular carbon skeleton and increase the g-Factor[40]. The conditional PDP and SHAP interaction analyses were further conducted to evaluate the H–O/C effect on the g-Factor (Supplementary Fig. S4). The conditional PDPs show that the predicted g-Factor generally increases with H within low-, medium-, and high-O/C strata, indicating that H has a positive contribution under comparable O/C conditions. However, the magnitude of this increase varies among O/C strata, with the strongest response observed in the medium-O/C range. Consistently, the SHAP dependence analysis shows that higher H content generally contributes positively to the predicted g-Factor (Supplementary Fig. S5), while the SHAP interaction map reveals that the H × O/C interaction is non-negligible but spatially heterogeneous. These results are consistent with previous findings[16]. Figure 6f further shows that the PFRs g-Factor has the greatest partial dependence under high O and high O/C conditions, indicating that biochars with higher O and O/C contain more oxygen-centered radicals. Overall, two-feature PDP analysis clarifies the elemental synergy mechanisms governing PFRs concentration and g-Factor.

      Figure 6. 

      PDP analysis with two features: (a)–(c) of PFRs concentration (the top row), (d)–(f) of PFRs g-Factor (the bottom row).

      These results elucidate how elemental composition regulates PFRs formation. They also provide a theoretical basis for controlling PFRs-related risks. Correlations between elemental composition and PFRs concentration can guide the targeted regulation of elemental composition to mitigate environmental risks. PDP analysis also provides an engineering reference for regulating PFRs with different atomic centers and interpreting the evolution of elemental composition during biochar formation.

    • To further validate the ML results, biochars derived from cellulose, lignin, peanut hull, rice straw, and pine sawdust were used to examine the relationships between elemental composition and PFRs properties in an independent experimental dataset. As shown in Supplementary Figs S6 and S7, C, H, O, H/C, and O/C are linearly fitted with PFRs concentration and the g-Factor. This is consistent with the results of SHAP analysis. When the pyrolysis temperature is more than 600 °C, the condensation and graphitization degree of the aromatic ring structure (lower H/C value around 0.0015) may induce the disappearance of PFRs in biochar (Supplementary Fig. S8). The g-Factor increases with increasing O and O/C, indicating that high O content generates more oxygen-centered free radicals. During pyrolysis, the thermal loss of O induces a decrease in O/C, resulting in the gradual transformation of the free-radical type from oxygen-centered to carbon-centered. Therefore, O and O/C are important features of the g-Factor. To further elaborate the relationship between the g-Factor and elements, a 3D scatter diagram was plotted (Supplementary Fig. S9), with O/C, H, and g-Factor as the x, y, and z axes, respectively. When the O/C values are similar, a higher H content can result in a greater g-Factor value, which is consistent with the outcomes of the PDP analysis and SHAP interaction heatmap.

      To further verify the conclusions obtained from the ML interpretation, the Spearman rank correlation analysis was performed using the independently prepared experimental biochar dataset (Supplementary Fig. S10). For PFRs concentration, the absolute Spearman correlation coefficients followed the order H/C (ρ = −0.961) > O (ρ = −0.955) > H (ρ = −0.817) > O/C (ρ = −0.809) > C (ρ = 0.679), with all correlations being statistically significant. This ranking is consistent with the SHAP analysis and RF feature-importance results, confirming that H/C and O are the dominant experimental descriptors associated with PFRs concentration.

      For the g-Factor, O and O/C show the strongest positive correlations, with Spearman coefficients of 0.905 and 0.882, respectively, followed by H. This result supports the ML conclusion that oxygen-related descriptors are the key factors governing the g-Factor variations. The positive correlations of O and O/C with g-Factor indicate that biochars with a higher oxygen content tend to contain more oxygen-centered radicals, whereas the decrease in oxygen-containing structures during pyrolysis promotes the transformation toward carbon-centered radicals.

      Overall, the Spearman correlation analysis based on independent experimental biochars supported the feature-importance ranking obtained from interpretable ML and provided experimental evidence for the dominant roles of H/C and O in PFRs concentration and O and O/C in g-Factor regulation.

    • Multiple ML algorithms were used to predict PFRs concentration and g-Factor from elemental composition. The comparisons among XGBoost, gradient boosting, SVR, Shallow NN, RF, and ensemble learning showed that elemental descriptors effectively characterized both responses. SHAP analysis identified H/C and O as the dominant descriptors of PFRs concentration, whereas O and O/C dominated g-Factor variation. PDP analysis further showed that lower H/C and O favored PFRs accumulation, probably through free-radical stabilization, aromatization, and carbon-structure evolution during pyrolysis. At comparable O/C values, higher H content increased the g-Factor, indicating a lower relative contribution of carbon-centered radicals. Higher O and O/C promoted oxygen-centered radical formation and increased the g-Factor. Independent experimental validation confirmed the following ML interpretations: the Spearman correlation analysis showed that H/C and O were most strongly associated with PFRs concentration, while O and O/C primarily regulated the g-Factor. These results reveal the elemental regulation mechanism of PFRs and provide a predictive basis for biochar risk assessment and structure optimization in environmental remediation applications.

      • Not applicable.

      • During the preparation of this study, the authors did not use any AI tools for language refinement, data analysis, figure enhancement, or any other purpose. The authors take full responsibility for the integrity and originality of the final manuscript.

      • The authors confirm their contributions to this study as follows: Linjian Gao: investigation, writing – original draft, data analysis and programming. Chengcheng Xu: writing – review & editing. Zhongda Xu: data curation. Mengzi Li: writing – review & editing. Wenmei Tao: funding acquisition, writing – review & editing, supervision. All authors reviewed the results and approved the final version of the manuscript.

      • The datasets used or analyzed during the current study are available from the corresponding author upon reasonable request.

      • The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

      • Full list of author information is available at the end of the article.

      • Copyright: © 2026 by the author(s). Published by Maximum Academic Press, Fayetteville, GA. This article is an open access article distributed under Creative Commons Attribution License (CC BY 4.0), visit https://creativecommons.org/licenses/by/4.0/.
    Figure (6)  References (42)
  • About this article
    Cite this article
    Gao L, Xu C, Li M, Xu Z, Tao W. 2026. Elemental composition-based prediction of persistent free radicals concentration and g-Factor in lignocellulose-derived biochar combining interpretable machine learning and experimental analysis. Biochar X 2: e022 doi: 10.48130/bchax-0026-0020
    Gao L, Xu C, Li M, Xu Z, Tao W. 2026. Elemental composition-based prediction of persistent free radicals concentration and g-Factor in lignocellulose-derived biochar combining interpretable machine learning and experimental analysis. Biochar X 2: e022 doi: 10.48130/bchax-0026-0020

Catalog

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return