A method for predicting multiple properties of biochar based on residual multi-layer perceptron
By using a residual multilayer perceptron model to process biochar data from multiple sources, the inconsistency and nonlinear coupling problems in the prediction of multiple biochar properties were solved, enabling efficient prediction and interpretive analysis of multiple properties.
Patent Information
- Application Number
- CN202611250922.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-18
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies struggle to predict multiple properties of biochar simultaneously. Inconsistencies in data from multiple sources and complex nonlinear coupling relationships are difficult to fully characterize. Traditional models suffer from hindered feature transfer and gradient decay, making the interpretation of prediction results difficult to understand.
A residual multilayer perceptron model was adopted, and multi-source data were processed by deduplication, dry basis conversion, biochemical composition normalization, missing value imputation and Z-score standardization. A multi-property index prediction model was constructed by using K-fold cross-validation and SHAP interpretation methods.
It achieves efficient prediction of multiple properties of biochar, improves data consistency and comparability, enhances the ability to express nonlinear features, and provides explanatory analysis of key influencing variables.
Smart Images

Figure CN123142829A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of biomass resource utilization, biochar preparation, and machine learning prediction technology, specifically to a method for predicting multiple physicochemical properties of biochar using the properties of biomass raw materials and pyrolysis process parameters. Background Technology
[0002] Biochar is a solid carbonaceous material produced from carbon-containing raw materials such as agricultural and forestry waste, herbaceous biomass, lignocellulosic biomass, and sludge biomass through pyrolysis or other thermochemical transformation processes under anaerobic or oxygen-limited conditions. It possesses high carbon stability, porous structure, surface functional groups, and ion exchange capacity, and can be used in soil improvement, heavy metal pollution remediation, carbon sequestration, wastewater treatment, and resource recycling.
[0003] The properties of biochar are influenced by both the composition of the biomass feedstock and the pyrolysis process conditions. The volatile matter, fixed carbon, ash, and elemental content (carbon, hydrogen, oxygen, nitrogen), as well as the composition of cellulose, hemicellulose, and lignin in the feedstock, affect biochar yield, elemental composition, pore structure, and surface electrochemical properties. Pyrolysis temperature, heating rate, and residence time also alter the degree of carbonization, ash enrichment, surface charge characteristics, and pore development level. Traditional experimental screening typically requires numerous repeated experiments, resulting in long cycles, high costs, and low trial-and-error efficiency.
[0004] Existing machine learning solutions have been used to predict the performance of biochar materials. For example, existing solutions predict the methylene blue adsorption performance of activated carbon, the phosphorus removal performance of metal-modified biochar, and biochar yield, respectively. These solutions demonstrate that machine learning can establish a mapping relationship between raw materials, processes, and material properties, but its prediction tasks mainly focus on single properties or specific application performance.
[0005] The main problems with existing technologies are: 1. The prediction target is relatively singular and it is difficult to simultaneously cover multiple indicators such as biochar yield, carbon-hydrogen-oxygen content, atomic ratio, total pore volume, Zeta potential and zero charge point.
[0006] 2. Data from multiple sources have inconsistencies in dry and wet baselines, units of measurement, total biochemical composition, and missing patterns. Direct merging of these data would reduce data comparability.
[0007] 3. There is a complex nonlinear coupling between industrial analysis, elemental analysis, biochemical composition and pyrolysis conditions of biomass raw materials, and traditional shallow regression models are unable to fully extract high-order combination features.
[0008] 4. As the number of layers increases, ordinary deep fully connected networks may experience hindered feature propagation, gradient decay, and decreased training stability.
[0009] 5. Providing only predicted values is insufficient to explain the direction and relative importance of the influence of different raw material properties and process parameters on the various predicted results. Summary of the Invention
[0010] Objective: To address the problems in existing biochar samples, such as inconsistent baselines, missing variables, difficulty in directly comparing variables of different dimensions, and the inability to fully characterize the nonlinear coupling relationship between raw material properties and pyrolysis process parameters, this invention aims to provide a method for predicting multiple biochar properties based on a residual multilayer perceptron. This method employs unified data preprocessing, construction of a residual multilayer perceptron, cross-validation and parameter optimization, comparison with a benchmark model under the same conditions, and the SHAP interpretation method. This invention enables the prediction of multiple biochar properties and the identification of key influencing variables, providing data support for raw material selection, process optimization, and target performance control.
[0011] Technical solution: The present invention provides a method for predicting multiple properties of biochar based on residual multilayer perceptron, comprising the following steps: (1) Obtain sample data, which includes the properties of biomass raw materials, pyrolysis process parameters and corresponding biochar properties; (2) The sample data is preprocessed, including duplicate data removal, dry basis conversion, biochemical composition normalization, missing value imputation and standardization of continuous input variables, to obtain the preprocessed dataset; (3) Construct a residual multilayer perceptron model, the model including an input layer, at least one residual block and an output layer, wherein the residual block adds its input features to the features of the same dimension after nonlinear transformation element by element, and outputs the result after activation by an activation function; (4) The residual multilayer perceptron model is trained and evaluated using the dataset; and, (5) Input the sample to be predicted into the trained model to obtain the prediction results of biochar property indicators, and use the SHAP method to interpret the feature importance.
[0012] Further, the preprocessing is performed in the following order: duplicate data removal, dry basis conversion, biochemical composition normalization, missing value imputation, and Z-score standardization; the dry basis conversion is used to uniformly convert the fixed carbon, volatile matter, and ash content expressed on a wet basis to dry basis data; the biochemical composition normalization is used to sum and normalize the contents of cellulose, hemicellulose, and lignin to a total of 100%.
[0013] Furthermore, in step (2), missing value imputation is performed using MICE, where variables containing missing values are sequentially used as variables to be predicted, and a conditional prediction model is established using the remaining variables. The complete dataset is obtained through multiple rounds of iterative updates.
[0014] Further, each residual block in step (3) includes a first fully connected layer, a first batch normalization layer, a first activation function layer, a random deactivation layer, a second fully connected layer, and a second batch normalization layer; the input features of the residual block and the nonlinear transformation features output by the second batch normalization layer have the same dimension. After the two are added element by element through identity mapping, they are activated by the second activation function layer to obtain the output features of the residual block.
[0015] Furthermore, the feature transformation relationship of the residual block is expressed as:
[0016] in, For the input feature vector, and These are the weight matrices for the first and second fully connected layers, respectively. and These represent the first batch of normalized layers and the second batch of normalized layers, respectively. It is a non-linear activation function. This is a random deactivation regularization operation. The residual block outputs features; the residual connection passes the input features. The features are added to the nonlinearly transformed features to enhance their expressive power and alleviate the gradient decay problem in deep network training.
[0017] Further, in step (4), K-fold cross-validation is used for model training and validation, where K is an integer not less than 3. Each fold selects a subset as a validation subset, and the remaining subsets are used as training subsets. Training and validation are repeated until each subset is used as a validation subset. During the training process, the hyperparameters are optimized, including the learning rate, number of training rounds, batch size, hidden feature dimension, number of residual blocks, and random deactivation ratio.
[0018] Furthermore, the K-fold cross-validation is a five-fold cross-validation; the preferred combination of hyperparameters is: 1600 training epochs and a learning rate of 5×10⁻⁶. -4 Batch size 32, hidden feature dimension 256, number of residual blocks 3, random deactivation ratio 0.4.
[0019] Furthermore, in step (4), the root mean square error (RMSE) and the coefficient of determination (R²) are used. 2 Evaluate the model's predictive performance:
[0020]
[0021] in, For the sample size, For the first The true value of each sample For the first The model prediction value for each sample. This is the average of the true values.
[0022] Further, the SHAP method described in step (5) calculates the SHAP value corresponding to each input variable. The sign of the SHAP value indicates the direction of the influence of the input variable on the prediction result, and the magnitude of the absolute value indicates the degree of influence. The global feature importance is determined based on the distribution of SHAP values on all samples, and the key variables are ranked.
[0023] Furthermore, the properties of the biomass raw materials include industrial analysis indicators, elemental analysis indicators, and biochemical composition indicators; the pyrolysis process parameters include pyrolysis temperature, heating rate, and residence time; and the biochar properties include biochar yield, ash content, carbon content, hydrogen content, oxygen content, hydrogen-to-carbon atomic ratio, oxygen-to-carbon atomic ratio, total pore volume, Zeta potential, and zero charge point.
[0024] The innovation of this invention lies in: Innovation 1: For biochar data from multiple sources, a combination of repeated data processing, dry basis conversion, biochemical composition normalization, missing value imputation, and Z-score standardization is used to form a dataset that can be used for multi-property prediction.
[0025] Existing biochar machine learning research is mostly based on single-source or limited experimental data, resulting in limited sample sizes and making it difficult to establish predictive models with generalization capabilities. The primary technical challenge of this invention lies in the inconsistencies in the wet / dry basis of samples from different sources in published literature, open databases, and experimental data (some are reported on a received basis, while others are reported on a dry basis), the inconsistent reporting methods of biochemical composition (the sum of cellulose + hemicellulose + lignin deviates from 100% in some cases), and the varying patterns of variable omissions. Directly merging these data will lead to data distortion and model bias.
[0026] This invention addresses the characteristics of the aforementioned multi-source heterogeneous data by designing a specific preprocessing chain: First, duplicate data removal eliminates identical redundant records to prevent data leakage; then, dry basis conversion unifies all industrial analysis indicators to the same benchmark, eliminating comparability barriers caused by differences in wet and dry states; next, biochemical composition normalization forces cellulose, hemicellulose, and lignin to 100%, correcting the component summation bias caused by different literature testing methods; then, missing value imputation (preferably MICE) supplements missing entries while preserving the covariance between variables; finally, Z-score standardization eliminates the impact of differences in the dimensions and value ranges of different variables on the gradient descent optimization process.
[0027] The five preprocessing steps described above are not simply superimposed, but rather form an ordered combination based on the unique deficiencies of multi-source biochar data: duplicate data processing eliminates redundant records, dry basis conversion addresses baseline inconsistencies, biochemical composition normalization resolves component non-closure issues, missing value imputation addresses data incompleteness, and Z-score normalization addresses scale imbalances. These five steps work together to form a preprocessing scheme specifically designed for integrating multi-source biochar data. This combination approach has not been publicly reported in the field of biochar prediction.
[0028] Innovation Point 2: Using residual multilayer perceptron to simultaneously predict ten properties of biochar In existing technologies, biochar property prediction models are mostly single-task models—one model predicts only the yield, another only the carbon content, and yet another only the adsorption performance. This single-task approach has significant drawbacks: on the one hand, there are inherent correlations between different biochar property indicators (such as the correlation between carbon content and the hydrogen-to-carbon atomic ratio, and the correlation between total pore volume and pyrolysis temperature), and single-task prediction severs these correlations; on the other hand, modeling each indicator separately increases computational costs and deployment complexity.
[0029] This invention employs a multi-output residual multilayer perceptron, with a shared residual feature extraction layer within the same network structure. The output layer simultaneously provides predicted values for ten indicators: yield, ash content, carbon content, hydrogen content, oxygen content, hydrogen-to-carbon atomic ratio, oxygen-to-carbon atomic ratio, total pore volume, Zeta potential, and zero charge point. The shared hidden layer enables the model to learn shared feature representations across different output tasks. The multi-task learning mechanism itself has a regularization effect, improving the generalization ability of each task. Covering the ten most critical physicochemical indicators in biochar preparation and application with a single model is a unique technical solution in the field of biochar prediction.
[0030] Innovation Point 3: In the residual block, the input features of the current residual block are added element-wise with the nonlinear transformation features of the same dimension, and the addition result is subjected to nonlinear activation. In conventional deep fully connected networks, as the number of layers increases, the gradient decays layer by layer during backpropagation, shallow layer parameters update slowly, and the network struggles to converge. Simultaneously, deep networks are prone to feature degradation—increasing the number of layers actually leads to a rise in training error. Existing biochar prediction models mostly employ shallow structures (such as random forests, support vector machines, or single-hidden-layer neural networks), which have limited feature extraction capabilities and struggle to fully capture the high-order nonlinear coupling relationship between raw material composition (industrial analysis, elemental analysis, biochemical composition) and process conditions (temperature, heating rate, residence time).
[0031] This invention introduces a residual block structure into a multilayer perceptron. Each residual block consists of a nonlinear transformation branch formed by "first fully connected layer → first batch of normalized layers → ReLU activation → random deactivation layer → second fully connected layer → second batch of normalized layers". The output of this branch (in the same dimension) is then added element-wise to the input of the residual block, and the result is then activated by ReLU before being output. This structure has the following technical advantages: The identity mapping provides a direct path for the gradient, allowing the gradient to bypass the nonlinear transformation layer and be directly propagated back to the shallow layer during backpropagation, effectively mitigating gradient decay. The network does not need to learn the identity mapping from scratch, but only needs to learn the residual deviation between the input and the target, which reduces the optimization difficulty of deep networks; Key information about the properties of raw materials and process parameters can be directly passed to subsequent layers through residual connections, avoiding the loss of original information due to excessive abstraction of features in deep networks. Introducing this residual structure into the field of biochar multi-property prediction is a unique technical improvement of this invention.
[0032] Innovation Point 4: K-fold cross-validation and hyperparameter optimization are used to determine model parameters, and the model is compared and evaluated with random forest and support vector machine under the same conditions. The reliability of performance evaluation of machine learning models is highly dependent on the rigor of the validation methods. In existing biochar prediction studies, some adopt a simple single training-test split, and the evaluation results are greatly affected by random partitioning; while others use cross-validation, they do not compare with classic models under the same conditions, making it difficult to objectively identify the technical advantages of the model.
[0033] This invention employs K-fold cross-validation (K≥3, preferably five-fold), randomly dividing the dataset into K non-overlapping subsets. One fold is used as the validation set, and the rest as the training set, repeated K times, with the average taken as the final evaluation result. This method ensures that each sample has at least one opportunity to serve as the validation set, effectively reducing the randomness of a single data partition and improving the robustness of the evaluation results.
[0034] In determining hyperparameters, this invention uses a nested approach of grid search or Bayesian optimization with cross-validation—each set of candidate hyperparameters undergoes full K-fold validation, with the average performance across K folds used as the selection criterion to avoid overfitting on the validation set. The optimization targets comprehensively cover six key hyperparameters: learning rate, number of training epochs, batch size, hidden feature dimension, number of residual blocks, and random deactivation ratio.
[0035] More importantly, this invention constructs random forests and support vector machines as benchmark models under the same data preprocessing methods and the same five-fold cross-validation partitioning conditions, achieving fairness and repeatability in performance comparisons between models. This evaluation paradigm for comparing multiple model systems under the same conditions has standardization value in biochar property prediction research.
[0036] Innovation Point 5: Employing the SHAP interpretation method to analyze the direction of influence of input variables on the prediction results of different biochar properties and the importance of global characteristics. The "black box" nature of deep learning models has long constrained their practical application in experimental science—even if researchers obtain high-precision prediction results, they cannot understand "why the prediction is made this way," making it difficult to transform the prediction results into a basis for experimental design decisions.
[0037] After the prediction is completed, this invention introduces the SHAP interpretation method to calculate the SHAP value for each input variable (raw material industrial analysis indicators, elemental analysis indicators, biochemical composition indicators, and pyrolysis process parameters) for each biochar property indicator. The SHAP value is based on the Shapley value in cooperative game theory, which has mathematical guarantees of consistency and local accuracy.
[0038] The direction of the input variable's influence on a specific property is determined by the sign of the SHAP value (positive promotion or negative inhibition), and the strength of the influence is determined by the absolute value of the SHAP value. This is then used to summarize the global feature importance ranking across all samples. This mechanism transforms the model from a "black box" to an "interpretable white box"—researchers can clearly know that: for biochar yield, pyrolysis temperature is the most critical variable and is negatively correlated; for zeta potential, raw material ash and lignin content contribute the most; and for total pore volume, heating rate and residence time have a significant interaction effect.
[0039] The results of this interpretability analysis directly serve raw material screening (selecting raw materials that contribute to the target properties), pyrolysis process optimization (adjusting the direction and magnitude of key process parameters), and target performance regulation (customizing biochar properties for specific application scenarios), forming a closed loop of "prediction → interpretation → decision-making".
[0040] Innovation Point 6: Integrating data preprocessing, residual network prediction, model evaluation, and interpretability analysis into a complete programmed prediction process. In existing technologies, data preparation, model training, performance evaluation, and result interpretation are often scattered across different tools or workflows, lacking an end-to-end integrated solution, which increases the barrier to entry and the risk of operational inconsistencies.
[0041] This invention integrates five steps—(1) sample data acquisition and variable definition, (2) data preprocessing (including dry basis conversion, biochemical normalization, MICE imputation, and Z-score standardization), (3) residual multilayer sensing mechanism construction, (4) model training and K-fold cross-validation evaluation, and (5) property prediction and SHAP interpretation—to form a complete and repeatable programmed prediction process. This process, based on a computer program, can be deployed on personal computers, workstations, or cloud environments. Users only need to input the conventional properties of the raw material to be predicted (industrial analysis, elemental analysis, biochemical composition) and the proposed pyrolysis process parameters (temperature, heating rate, residence time) to automatically complete data verification, standardization, model inference, multi-index output, and SHAP interpretation report generation.
[0042] This integrated process transforms the model development work led by data scientists into a decision-making tool that experimental researchers can directly use, significantly lowering the application threshold of machine learning technology in the field of biochar preparation and demonstrating clear engineering practical value.
[0043] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. Utilizing publicly available literature, open databases, or publicly available experimental data to construct datasets can reduce repetitive experiments and lower time and trial-and-error costs.
[0044] 2. Improve the consistency and comparability of multi-source data through unified conversion, normalization, missing value imputation, and Z-score standardization.
[0045] 3. Imputation methods such as MICE can improve the utilization rate of missing variables and better preserve the association between variables.
[0046] 4. Residual connections can preserve the original feature information and enhance the ability to express nonlinear features and transfer deep features.
[0047] 5. Five-fold cross-validation can reduce the randomness of a single data split and improve the stability of model evaluation results.
[0048] 6. Among 547 valid samples, the residual multilayer perceptron outperformed random forest and support vector machine in overall prediction performance, with the Zeta potential showing the highest R-value. 2 The R value of the total pore volume reached 0.974. 2 It reached 0.919.
[0049] 7. SHAP interpretation results can identify key raw material properties and process parameters, providing data support for raw material screening, pyrolysis process adjustment, and target performance control. Attached Figure Description
[0050] Figure 1 This is a schematic diagram of the method flow of the present invention, showing in sequence S1 sample data acquisition, S2 data preprocessing, S3 residual multilayer perceptron model construction, S4 model training, and S5 property prediction and SHAP feature importance analysis. Figure 2 This is a schematic diagram of the residual multilayer perceptron model structure, showing that the input features are transformed into nonlinear features through a fully connected layer, a batch normalization layer, an activation function layer, and a random deactivation layer, and then added element-wise to the input features of the same dimension. Figure 3 This is a schematic diagram of the five-fold cross-validation and parameter optimization process; Figure 4 This is a diagram comparing the prediction performance of residual multilayer perceptron, random forest, and support vector machine. Figure 5 This is a schematic diagram illustrating the global feature importance analysis of SHAP and its application in decision-making. Detailed Implementation
[0051] To make the objectives, technical solutions, and advantages of the present invention clearer, the technical solutions of the present invention will be further described below.
[0052] 1. Overall process of this invention This invention comprises five steps, wherein steps (1) to (5) respectively correspond to Figure 1 The steps S1 to S5, namely S1 sample data acquisition, S2 data preprocessing, S3 residual multilayer perceptron model construction, S4 model training and evaluation, and S5 property prediction and SHAP interpretation, are interconnected to form a complete biochar multi-property index prediction process.
[0053] 2. Sample Data Acquisition and Variable Definition Variable categories Specific variables use Industrial Analysis Indicators Moisture, volatile matter, fixed carbon, ash Input variables Elemental analysis indicators Carbon, hydrogen, oxygen, nitrogen Input variables Biochemical composition indicators Cellulose, hemicellulose, lignin Input variables Pyrolysis process parameters Pyrolysis temperature, heating rate, residence time Input variables Biochar properties Biochar yield, ash content, carbon content, hydrogen content, oxygen content, hydrogen-to-carbon ratio, oxygen-to-carbon ratio, total pore volume, Zeta potential, zero charge point Output variables
[0054] 3. Data Preprocessing The sample data were processed sequentially, including duplicate data processing, dry basis conversion, biochemical composition normalization, missing value imputation, and Z-score standardization of continuous input variables, to obtain a biochar property dataset for model training and validation, and input feature vectors were constructed.
[0055] Dry basis conversion Fixed carbon, volatile matter, and ash content expressed on a wet basis will be converted to dry basis data:
[0056]
[0057]
[0058] in, , , These are, respectively, the fixed carbon content on a dry basis, the volatile matter content on a dry basis, and the ash content on a dry basis. Moisture content, , , These are the wet-based fixed carbon content, wet-based volatile matter content, and wet-based ash content, respectively.
[0059] Biochemical composition normalization When the sum of the contents of cellulose, hemicellulose, and lignin is not equal to 100%, normalization is performed using the following formula:
[0060]
[0061]
[0062] in, , , These are the contents of cellulose, hemicellulose, and lignin, respectively. , and These represent the normalized contents of cellulose, hemicellulose, and lignin, respectively.
[0063] Missing value imputation For duplicate records with identical raw material names, properties, pyrolysis process parameters, and biochar properties, only one record is retained. Missing value imputation can be performed using MICE, K-nearest neighbor imputation, or imputation methods based on extreme gradient boosting models. MICE is preferred, where variables with missing values are sequentially used as variables to be predicted, and a conditional prediction model is built using the remaining variables. The complete dataset is obtained through multiple rounds of iterative updates. After missing value imputation, continuous input variables are Z-score standardized to reduce the impact of differences in the units and ranges of values of different variables on model training.
[0064] 4. Construction of the residual multilayer perceptron model A residual multilayer perceptron model is constructed, comprising an input layer, at least one residual block, and an output layer. The input layer receives pre-processed biomass feedstock properties and pyrolysis process parameters; the residual block extracts high-order nonlinear coupling characteristics between feedstock composition and process conditions; and the output layer provides predicted values for multiple biochar property indicators.
[0065] Each residual block consists of a first fully connected layer, a first batch normalization layer, a first activation function layer, a random deactivation layer, a second fully connected layer, a second batch normalization layer, a residual summing layer, and a second activation function layer. The input features of the residual block have the same dimension as the nonlinear transformation features output by the second batch normalization layer, and are added element-wise through an identity mapping.
[0066]
[0067] in, For the input feature vector, and These are the weight matrices for the first and second fully connected layers, respectively. and These represent the first batch of normalized layers and the second batch of normalized layers, respectively. It is a non-linear activation function. This is a random deactivation regularization operation. The residual block outputs features; the residual connection passes the input features. The features are added to the nonlinearly transformed features to enhance their expressive power and alleviate the gradient decay problem in deep network training.
[0068] 5. Model training, parameter optimization, and performance evaluation A residual multilayer perceptron model is trained using the biochar property dataset obtained in step S2, enabling the model to establish a nonlinear mapping relationship between the input feature vector and biochar property indicators. K-fold cross-validation is employed, where K is an integer not less than 3, with five-fold cross-validation being preferred. For each fold, a subset is selected as the validation subset, and the remaining subsets are used as the training subset. Training and validation are repeated, ensuring that each subset serves as a validation subset in one iteration.
[0069] The parameters to be optimized include the learning rate, number of training epochs, batch size, hidden feature dimension, number of residual blocks, and random deactivation ratio. Grid search, random search, or Bayesian optimization can be used to determine the combination of parameters.
[0070] Using root mean square error (RMSE) and coefficient of determination (R²) 2 Evaluate the model's predictive performance:
[0071]
[0072] in, For the sample size, For the first The true value of each sample For the first The model prediction value for each sample. R is the average of the true values; RMSE is used to characterize the average deviation between the predicted and true values, and the smaller the value, the lower the model prediction error; 2 It is used to characterize the model's ability to explain changes in the target variable; the closer the value is to 1, the better the model's predictive performance.
[0073] To verify the effectiveness of the technology, under the same data preprocessing method and cross-validation partitioning conditions, a random forest model and a support vector machine model were constructed as benchmark models, and the RMSE and R-squared values of the different models were compared. 2 .
[0074] 6. Property Prediction and SHAP Interpretation The raw material properties and pyrolysis process parameters of the biomass raw material to be predicted are obtained. After processing according to step S2, they are input into the trained residual multilayer perceptron model, and the corresponding biochar property index prediction results are output.
[0075] The SHAP interpretation method is used to calculate the SHAP value corresponding to each input variable. The sign of the SHAP value indicates the direction of the input variable's influence on the prediction result, and the magnitude of the absolute value indicates the degree of influence. Based on the distribution of the SHAP values of each input variable across all samples, the importance of global features is determined and key variables are ranked, providing a basis for raw material selection, process optimization, and target performance control.
[0076] 7. Computer implementation environment of the invention method As a prediction method invention containing a program, this method can be executed by a computing device. The computing device may include a processor, a memory, and a data storage unit; the memory stores a computer program for performing data reading, data preprocessing, model training, cross-validation, property prediction, and SHAP interpretation; the processor calls the program to complete steps S1 to S5. This computer implementation environment is used to illustrate the implementable carrier of the method of the present invention and does not change the core protected object of the present invention, which is the prediction method.
[0077] The following embodiments are used to illustrate the preferred implementation process of the present invention and do not constitute a limitation on the scope of protection. Those skilled in the art can make equivalent substitutions for data sources, imputation methods, cross-validation folds, parameter optimization methods, and model sizes without departing from the core concept of the present invention.
[0078] 1. Data Acquisition and Dataset Construction Paired data on biomass feedstock properties, pyrolysis process parameters, and corresponding biochar properties were collected from 68 publicly published articles, resulting in 547 valid samples. Results obtained from the same article using different feedstocks, pyrolysis temperatures, heating rates, or residence times were recorded as independent samples.
[0079] The data screening criteria included: the research subject was biochar produced by pyrolysis of biomass or organic solid feedstocks under anaerobic or limited oxygen conditions; at least identifiable feedstock properties, pyrolysis process parameters, and one biochar property index were reported; inputs and outputs could be clearly correlated at the sample level; and data units, wet / dry standards, or experimental conditions could be determined and uniformly converted. Data that could not be accurately read, lacked sample correspondence, could not be identified as key standards, was duplicated, or whose original source could not be traced were not included.
[0080] Pyrolysis temperature is uniformly expressed in degrees Celsius, heating rate is uniformly expressed in degrees Celsius per minute, and residence time is uniformly expressed in minutes; moisture, raw material composition, and biochar composition indicators are uniformly expressed as mass percentages; total pore volume is expressed in cubic centimeters per gram; Zeta potential is expressed in millivolts. Moisture content is converted to decimal mass fractions when converting to a dry basis.
[0081] 2. Data Preprocessing Complete the dry basis conversion of industrial analysis data according to formulas (4) to (6), and complete the normalization of cellulose, hemicellulose and lignin according to formulas (7) to (9).
[0082] Missing values were handled using K-nearest neighbor imputation, multiple chain equation imputation, and imputation based on an extreme gradient boosting model, and the predictive performance of the imputed models was compared. The results show that MICE (Multi-Nearest Neighbor Imputation) can better preserve the correlation between different variables, and therefore is the preferred imputation method.
[0083] After completing the MICE imputation, Z-score standardization was applied to the continuous input variables to obtain a biochar properties dataset containing 547 valid samples, which was used for subsequent model training and five-fold cross-validation.
[0084] 3. Construction of residual multilayer perceptron model The input layer receives the properties of the pre-processed biomass feedstock and pyrolysis process parameters. The residual block adopts a structure of "first fully connected layer – first batch of normalized layers – ReLU – random deactivation layer – second fully connected layer – second batch of normalized layers – residual summation layer – ReLU". The output of the second batch of normalized layers maintains the same dimension as the current residual block input, so as to perform element-wise summation through identity mapping. The output layer provides ten predicted biochar properties.
[0085] 4. Model training and five-fold cross-validation The biochar properties dataset was randomly divided into five non-overlapping subsets. In each subset, one subset was selected as the validation subset, and the remaining four subsets were selected as the training subsets. This process was repeated five times, so that each subset served as a validation subset once, and the average of the five validation results was calculated.
[0086] A grid search combined with five-fold cross-validation was used to optimize the number of training epochs, learning rate, batch size, hidden feature dimension, number of residual blocks, and random deactivation ratio. Candidate training epochs were set within the range of 1200-1800, and the hidden feature dimension was set to 128, 256, and 384. The optimal parameter combinations are as follows: parameter Preferred value Number of training rounds 1600 Learning rate <![CDATA[5×10⁻ 4 ]]> Batch size 32 Hidden feature dimensions 256 Number of residual blocks 3 Random inactivation rate 0.4
[0087] 5. Benchmark Model Construction and Performance Comparison Under the same data preprocessing method and five-fold cross-validation, random forest and support vector machine were constructed as baseline models. The number of decision trees in the random forest was set to 150, and the maximum depth was set to 16; the support vector machine used a radial basis kernel function, and the penalty coefficient C was set to 100.
[0088] Ten biochar properties were predicted, and RMSE and RMS were used to evaluate their performance. 2 An evaluation was conducted. The results show that the overall prediction performance of the residual multilayer perceptron is superior to that of random forest and support vector machine, with the R-value of the Zeta potential being significantly higher. 2 The R of the total pore volume is 0.974. 2 It is 0.919.
[0089] 6. SHAP Feature Importance Analysis and Application For each biochar property to be predicted, calculate the SHAP value for each input variable. The sign of the SHAP value indicates the direction of influence, and the magnitude of the absolute value indicates the degree of influence. Determine the global feature importance and the ranking of key variables based on the distribution of SHAP values across all samples.
[0090] The analysis results show that pyrolysis temperature is an important variable affecting the degree of carbonization, carbon-hydrogen-oxygen composition, and pore structure of biochar, and can influence biochar yield, carbon content, hydrogen-to-carbon atomic ratio, oxygen-to-carbon atomic ratio, and total pore volume. The compositional indicators of raw materials, such as ash content, hemicellulose, and lignin, are of high importance in predicting surface electrochemical properties such as Zeta potential and zero-charge point.
[0091] Alternative implementation methods 1. Missing values can be handled using methods such as MICE, K-nearest neighbors, or imputation methods based on extreme gradient boosting models, or other methods that can achieve the same missing value estimation function.
[0092] 2. Cross-validation can be performed using K-fold cross-validation, where K is an integer not less than 3; five-fold cross-validation is the preferred method.
[0093] 3. Model parameters can be determined using grid search, random search, or Bayesian optimization.
[0094] 4. A residual multilayer perceptron may contain one or more residual blocks. The number of residual blocks and the dimension of hidden features can be adjusted according to the sample size and prediction target.
[0095] 5. Sample data may come from one or more of the following sources: publicly available literature, open databases, publicly available experimental data, or actual experimental data collected.
[0096] 6. The method of the present invention can be deployed and executed on a personal computer, workstation, server or cloud computing environment.
[0097] This invention can be applied to fields such as biochar preparation, biomass resource utilization, high-value conversion of solid waste, pollution remediation material design, and comprehensive utilization of agricultural waste. By inputting the properties of biomass raw materials and pyrolysis process parameters, it can predict biochar yield, ash content, carbon content, hydrogen content, oxygen content, hydrogen-to-carbon atomic ratio, oxygen-to-carbon atomic ratio, total pore volume, Zeta potential, and zero charge point, assisting researchers and engineers in raw material screening, process design, performance prediction, and experimental scheme optimization.
[0098] The above are merely preferred embodiments of the present invention and do not constitute any limitation on the present invention. Any equivalent substitutions or modifications made by those skilled in the art to the technical solutions and content disclosed in the present invention without departing from the scope of the present invention shall be deemed to have remained within the scope of protection of the present invention.
Claims
1. A method for predicting multiple properties of biochar based on residual multilayer perceptron, characterized in that, Includes the following steps: (1) Obtain sample data, which includes the properties of biomass raw materials, pyrolysis process parameters and corresponding biochar properties; (2) The sample data is preprocessed, including duplicate data removal, dry basis conversion, biochemical composition normalization, missing value imputation and standardization of continuous input variables, to obtain the preprocessed dataset; (3) Construct a residual multilayer perceptron model, the model including an input layer, at least one residual block and an output layer, wherein the residual block adds its input features to the features of the same dimension after nonlinear transformation element by element, and outputs the result after activation by an activation function; (4) The residual multilayer perceptron model is trained and evaluated using the dataset; (5) Input the sample to be predicted into the trained model to obtain the prediction results of biochar property indicators, and use the SHAP method to interpret the feature importance.
2. The method according to claim 1, characterized in that, The preprocessing is performed in the following order: duplicate data removal, dry basis conversion, biochemical composition normalization, missing value imputation, and Z-score standardization. The dry basis conversion is used to convert the fixed carbon, volatile matter, and ash content expressed on a wet basis into dry basis data. The biochemical composition normalization is used to sum and normalize the contents of cellulose, hemicellulose, and lignin to a total of 100%.
3. The method according to claim 1, characterized in that, The missing value imputation method described in step (2) adopts the multiple chain equation imputation method (MICE), which takes the variables containing missing values as the variables to be predicted in turn, uses the remaining variables to build a conditional prediction model, and obtains the complete dataset through multiple rounds of iterative updates.
4. The method according to claim 1, characterized in that, In step (3), each residual block includes a first fully connected layer, a first batch normalization layer, a first activation function layer, a random deactivation layer, a second fully connected layer, and a second batch normalization layer. The input features of the residual block and the nonlinear transformation features output by the second batch normalization layer have the same dimension. After the two are added element by element through an identity mapping, they are activated by the second activation function layer to obtain the output features of the residual block.
5. The method according to claim 4, characterized in that, The feature transformation relationship of the residual block is expressed as follows: ; in, For the input feature vector, and These are the weight matrices for the first and second fully connected layers, respectively. and These represent the first batch of normalized layers and the second batch of normalized layers, respectively. It is a non-linear activation function. This is a random deactivation regularization operation. The residual block outputs features; the residual connection passes the input features. The features are added to the nonlinearly transformed features to enhance their expressive power and alleviate the gradient decay problem in deep network training.
6. The method according to claim 1, characterized in that, In step (4), K-fold cross-validation is used for model training and validation, where K is an integer not less than 3. Each fold selects a subset as a validation subset, and the remaining subsets are used as training subsets. Training and validation are repeated until each subset is used as a validation subset. During training, hyperparameters are optimized, including learning rate, number of training rounds, batch size, hidden feature dimension, number of residual blocks, and random deactivation ratio.
7. The method according to claim 6, characterized in that, The K-fold cross-validation is a five-fold cross-validation; the preferred combination of hyperparameters is: 1600 training epochs, learning rate 5×10⁻⁶. -4 Batch size 32, hidden feature dimension 256, number of residual blocks 3, random deactivation ratio 0.
4.
8. The method according to claim 1, characterized in that, Step S4 uses the root mean square error (RMSE) and the coefficient of determination (R²). 2 Evaluate the model's predictive performance: ; ; in, For the sample size, For the first The true value of each sample For the first The model prediction value for each sample. This is the average of the true values.
9. The method according to claim 1, characterized in that, The SHAP method described in step (5) calculates the SHAP value corresponding to each input variable. The sign of the SHAP value indicates the direction of the influence of the input variable on the prediction result, and the magnitude of the absolute value indicates the degree of influence. The importance of global features is determined based on the distribution of SHAP values across all samples, and a ranking of key variables is formed.
10. The method according to claim 1, characterized in that, The properties of the biomass raw materials include industrial analysis indicators, elemental analysis indicators, and biochemical composition indicators; the pyrolysis process parameters include pyrolysis temperature, heating rate, and residence time; and the biochar properties include biochar yield, ash content, carbon content, hydrogen content, oxygen content, hydrogen-to-carbon atomic ratio, oxygen-to-carbon atomic ratio, total pore volume, Zeta potential, and zero charge point.
