Method, system, device and medium for hydrothermal carbon property regulation based on machine learning
A biomass hydrothermal carbon property regulation system was established by using machine learning methods. This system solves the problem of time-consuming and labor-intensive prediction and regulation in the biomass hydrothermal carbonization process in existing technologies, and realizes rapid and accurate prediction and regulation of hydrothermal carbon properties, providing an online prediction platform.
Patent Information
- Application Number
- CN202311337722.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-16
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-10-16
AI Technical Summary
Existing technologies make it difficult to quickly and accurately predict and control the properties of hydrothermal carbon during the hydrothermal carbonization process of biomass. They are also time-consuming and labor-intensive, and cannot effectively establish the relationship between biomass hydrothermal process parameters and hydrothermal carbon.
By employing a machine learning-based approach, we acquire features such as biomass composition, hydrothermal conditions, hydrothermal char yield, and elemental composition. We then perform data preprocessing and multi-objective prediction model training to establish an online prediction website, enabling precise prediction and control of biomass hydrothermal char properties.
It reduces experimental and time costs, enables rapid and accurate prediction and control of biomass hydrothermal carbon properties, provides an online prediction platform, and saves subsequent statistical time costs.
Smart Images

Figure CN117393073B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of biomass hydrothermal carbonization technology, and in particular to a method, system, equipment and medium for regulating the properties of hydrothermal carbon based on machine learning. Background Technology
[0002] Hydrothermal carbonization using subcritical water as the reaction solvent is a promising biomass treatment and recycling technology that can convert wet biomass into materials and chemicals without pre-drying. The properties of hydrothermal char are influenced by factors such as the composition of the biomass feedstock and the parameters of the reaction process. Depending on its characteristics, hydrothermal char can also be used as an adsorbent, catalyst, carbon-based material, fertilizer, soil additive, and many other applications, depending on the properties of the hydrothermal char material. Traditional research mainly focuses on measuring the physical and chemical properties of the prepared hydrothermal char products. Currently, the selection of optimal high-performance hydrothermal char materials relies primarily on extensive experiments and artificial optimization using single-variable methods, which is time-consuming, labor-intensive, and not conducive to the rapid acquisition of the desired hydrothermal char.
[0003] Some existing technologies attempt to predict the fuel quality of biomass products by establishing models through hydrothermal carbonization, pelleting, and FCI factors. However, this method requires a large number of experiments and calculations, and the process is complex. It does not directly establish the relationship between biomass hydrothermal process parameters and hydrothermal carbonization. Other existing technologies determine key parameters by establishing a database of the original biomass conversion process, data preprocessing, and training artificial neural network models. However, this method lacks the ability to quickly predict the products after biomass conversion, cannot be extended to untrained biomass samples, and is difficult to perform multi-objective prediction. Summary of the Invention
[0004] This invention aims to at least solve one of the technical problems existing in the prior art. To this end, this invention proposes a method, system, device, and medium for regulating the properties of hydrothermal carbon based on machine learning. This method can obtain the mapping between multiple parameters in the biomass hydrothermal process and hydrothermal carbon, and can achieve accurate prediction and regulation of biomass hydrothermal carbon, reducing the consumption of a large amount of experimental and time costs.
[0005] In a first aspect, embodiments of the present invention provide a method for controlling the properties of hydrothermal carbon based on machine learning, comprising:
[0006] Obtain the first biomass composition, first hydrothermal conditions, first yield of hydrothermal carbon, first elemental composition and first calorific value characteristics of the tested sample;
[0007] The first biomass composition and the first hydrothermal conditions are used as input features, and the first yield, the first elemental composition and the first calorific value characteristics are used as output features. Data preprocessing is performed on the input features and the output features to obtain the measured sample dataset.
[0008] The measured sample dataset is divided into a training set, and a preset multi-objective prediction model is trained using the training set to obtain the final multi-objective prediction model;
[0009] The final multi-objective prediction model is deployed online to obtain an online prediction website.
[0010] The second biomass composition and second hydrothermal conditions of the sample to be controlled are adjusted, and the second biomass composition and second hydrothermal conditions are input into the online prediction website to obtain the second yield, second elemental composition and second calorific value characteristics of the hydrothermal carbon output by the online prediction website.
[0011] The control operation corresponding to the sample to be controlled is selected by the second yield, the second elemental composition, and the second calorific value characteristic.
[0012] The method according to embodiments of the present invention has at least the following beneficial effects:
[0013] This method first utilizes the first biomass composition, first hydrothermal conditions, first yield, first elemental composition, and first calorific value characteristics collected from the prediction samples to demonstrate the relationship between biomass hydrothermal process parameters and hydrothermal char. By preprocessing these characteristics, a measured sample dataset is obtained, providing a solid data foundation for training the subsequent multi-objective prediction model and accurately determining the mapping relationship between biomass hydrothermal process parameters and hydrothermal char. Secondly, a pre-defined multi-objective prediction model is trained using the training set to obtain the final multi-objective prediction result. The model achieves accurate prediction and regulation of biomass hydrothermal carbon through multi-objective prediction, reducing the consumption of a large amount of experimental and time costs. Then, based on the final multi-objective prediction model, an online system is deployed to obtain an online prediction website, which provides an online rapid prediction platform for hydrothermal carbon properties. At the same time, the online prediction website enables efficient prediction statistics, saving the time cost of subsequent statistics. Finally, the second yield, second elemental composition and second calorific value characteristics output by the online prediction website are used to select the corresponding regulation operation for the sample to be regulated. Through the virtual adjustment of the online prediction website, precise regulation operation is achieved, while also saving a large amount of experimental and time costs.
[0014] According to some embodiments of the present invention, the step of performing data preprocessing on the input features and the output features to obtain a measured sample dataset includes:
[0015] Remove missing data from the input features and the output features and perform statistical analysis to obtain statistical data;
[0016] The statistical data is normalized to obtain the measured sample dataset; wherein, the calculation formula for normalizing the statistical data includes:
[0017]
[0018] in, x represents the normalized result of the i-th dimension of the measured sample dataset. i Let represent the i-th dimension of the measured sample dataset, μ represent the mean of each dimension of the measured sample dataset, and s represent the standard deviation of each dimension of the measured sample dataset.
[0019] According to some embodiments of the present invention, the step of training a preset multi-objective prediction model through the training set to obtain a final multi-objective prediction model includes:
[0020] The training set is input into the multi-objective prediction model, and the multi-objective loss function of the multi-objective prediction model is calculated using the gradient boosting regression tree algorithm.
[0021] The multi-objective prediction model is trained under the supervision of the multi-objective loss function to obtain the final multi-objective prediction model.
[0022] According to some embodiments of the present invention, before inputting the training set into the multi-objective prediction model, the machine learning-based hydrothermal carbon property control method further includes:
[0023] The hyperparameters of the multi-objective prediction model used in the gradient boosting regression tree algorithm are adjusted by cross-validation error; the hyperparameters include the number of trees, the depth of the trees, the learning rate, and the loss function.
[0024] The optimal hyperparameters are obtained by supervising the adjustment of the hyperparameters through optimization algorithms; the optimization algorithms include particle swarm optimization, simulated annealing optimization, and Bayesian optimization.
[0025] According to some embodiments of the present invention, the step of supervising the training of the multi-objective prediction model through the multi-objective loss function to obtain the final multi-objective prediction model includes:
[0026] Calculate the multi-objective loss function result for each iteration of the multi-objective prediction model training; wherein the calculation formula for the multi-objective loss function result includes:
[0027]
[0028] Among them, L M This represents the result of a multi-objective loss function, where M represents the number of objectives, and α... t N1 represents the weight factor for each objective t, and N1 represents the number of actual values in the tree node. This represents the i1th actual value. This represents the mean of a tree node and the predicted value of its child nodes;
[0029] If the result of the multi-objective loss function is lower than the loss threshold or the number of iterations is higher than the number threshold, the final multi-objective prediction model is obtained.
[0030] According to some embodiments of the present invention, after the multi-objective prediction model is trained under the supervision of the multi-objective loss function to obtain the final multi-objective prediction model, the machine learning-based hydrothermal carbon property regulation method further includes:
[0031] A test set is obtained by dividing the measured sample dataset, and the test set is input into the final multi-objective prediction model to obtain the prediction result output by the final multi-objective prediction model;
[0032] The determination coefficient and root mean square error (RMSE) of the final multi-objective prediction model are calculated based on the prediction results; the formulas for calculating the determination coefficient and the RMSE include:
[0033]
[0034]
[0035] Among them, R 2 The coefficient of determination is given by RMSE, the root mean square error is given by RMSE, and N² represents the number of samples in the test set. and These represent the i2th experimental value and the corresponding predicted value, respectively. This represents the average of N² experimental values;
[0036] The evaluation result of the final multi-objective prediction model is calculated based on the determination coefficient and the root mean square error.
[0037] According to some embodiments of the present invention, the step of deploying the final multi-objective prediction model online to obtain an online prediction website includes:
[0038] Using Hypertext Markup Language, Cascading Style Sheets, Python, and Flask frameworks, the calling and prediction functions of the final multi-objective prediction model are defined. The calling function is used to call the final multi-objective prediction model based on the content of the input box on the front-end interface, and the prediction function is used to predict the content of the input box after the final multi-objective prediction model is called.
[0039] The online prediction website is obtained by linking the front-end interface and the back-end data of the prediction function through a visualization platform.
[0040] Secondly, embodiments of the present invention provide a machine learning-based hydrothermal carbon property control system, comprising:
[0041] The data acquisition module is used to acquire the first biomass composition, first hydrothermal conditions, first yield of hydrothermal carbon, first elemental composition and first calorific value characteristics of the tested sample;
[0042] The data preprocessing module is used to take the first biomass composition and the first hydrothermal conditions as input features and the first yield, the first elemental composition and the first calorific value characteristics as output features, and to perform data preprocessing on the input features and the output features to obtain the measured sample dataset.
[0043] The multi-objective prediction model training module is used to divide the measured sample dataset into a training set, and train a preset multi-objective prediction model through the training set to obtain the final multi-objective prediction model.
[0044] The online prediction website deployment module is used to deploy the final multi-objective prediction model online to obtain an online prediction website.
[0045] The online prediction module is used to adjust the second biomass composition and the second hydrothermal conditions of the sample to be controlled, and input the second biomass composition and the second hydrothermal conditions into the online prediction website to obtain the second yield, second elemental composition and second calorific value characteristics of the hydrothermal carbon output by the online prediction website.
[0046] The control operation module is used to select the control operation corresponding to the sample to be controlled based on the second yield, the second elemental composition and the second calorific value characteristics.
[0047] Thirdly, embodiments of the present invention provide an electronic device including at least one control processor and a memory for communicatively connecting to the at least one control processor; the memory stores instructions executable by the at least one control processor, the instructions being executed by the at least one control processor to enable the at least one control processor to perform the machine learning-based hydrothermal carbon property control method as described in the first aspect.
[0048] Fourthly, embodiments of the present invention provide a computer storage medium storing computer-executable instructions for causing a computer to perform the machine learning-based hydrothermal carbon property control method as described in the first aspect.
[0049] It should be noted that the beneficial effects of the second to fourth aspects of the present invention compared with the prior art are the same as the beneficial effects of the machine learning-based hydrothermal carbon property control method of the first aspect, and will not be described in detail here.
[0050] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. Attached Figure Description
[0051] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:
[0052] Figure 1 This is a flowchart of a method for controlling the properties of hydrothermal carbon based on machine learning, provided in an embodiment of the present invention;
[0053] Figure 2 This is a flowchart of a method for preprocessing input and output features to obtain a measured sample dataset, provided by an embodiment of the present invention.
[0054] Figure 3 This is a flowchart of an embodiment of the present invention, which describes how to obtain a final multi-objective prediction model by training a preset multi-objective prediction model using a training set.
[0055] Figure 4 This is a flowchart of a machine learning-based method for regulating the properties of hydrothermal carbon before inputting the training set into a multi-objective prediction model, according to an embodiment of the present invention.
[0056] Figure 5 This is a flowchart of an embodiment of the present invention, which describes obtaining the final multi-objective prediction model by supervising the training of a multi-objective prediction model using a multi-objective loss function;
[0057] Figure 6This is a flowchart of a machine learning-based method for regulating the hydrothermal carbon properties after obtaining the final multi-objective prediction model through supervised training of a multi-objective prediction model using a multi-objective loss function, according to an embodiment of the present invention.
[0058] Figure 7 This is a flowchart of an embodiment of the present invention, which describes the online deployment of a final multi-objective prediction model to obtain an online prediction website.
[0059] Figure 8 This is a schematic diagram of a method for controlling the properties of hydrothermal carbon based on machine learning, provided in an embodiment of the present invention;
[0060] Figure 9 This is a graph showing the experimental results of the final multi-objective prediction model provided in an embodiment of the present invention;
[0061] Figure 10 This is a data graph showing the evaluation results of the final multi-objective prediction model provided in an embodiment of the present invention;
[0062] Figure 11 This is an interface diagram of the input and output of an online prediction website provided in an embodiment of the present invention;
[0063] Figure 12 This is a structural diagram of a hydrothermal carbon property control system based on machine learning, provided in an embodiment of the present invention.
[0064] Figure 13 This is a structural diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0065] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0066] In the description of this invention, the use of terms such as "first," "second," etc., is for the purpose of distinguishing technical features only and should not be construed as indicating or implying relative importance, or implicitly indicating the number of technical features indicated, or implicitly indicating the order of the technical features indicated.
[0067] In the description of this invention, it should be understood that the orientation descriptions, such as up, down, etc., are based on the orientation or positional relationship shown in the drawings and are only for the convenience of describing this invention and simplifying the description, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this invention.
[0068] In the description of this invention, it should be noted that, unless otherwise explicitly defined, terms such as "setting," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this invention in conjunction with the specific content of the technical solution.
[0069] The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are some embodiments of the present invention, not all embodiments.
[0070] Before providing a further detailed description of the embodiments of this disclosure, the terms and concepts used in these embodiments are explained, and they are subject to the following interpretations:
[0071] The composition of biomass includes elemental composition, biochemical composition, and industrial analysis. The elemental composition includes elements such as C, H, O, N, and S, while the biochemical composition includes proteins, fats, and carbohydrates.
[0072] Hydrothermal conditions include temperature, time, and solids content.
[0073] Reference Figure 1 and Figure 8 In some embodiments of the present invention, a method for controlling the properties of hydrothermal carbon based on machine learning is provided, comprising:
[0074] Step S100: Obtain the first biomass composition, first hydrothermal conditions, first yield of hydrothermal carbon, first elemental composition and first calorific value characteristics of the tested sample.
[0075] Step S200: Take the first biomass composition and the first hydrothermal conditions as input features and the first yield, the first elemental composition and the first calorific value characteristics as output features, and perform data preprocessing on the input features and output features to obtain the measured sample dataset.
[0076] Step S300: Divide the measured sample dataset into a training set, and train the preset multi-objective prediction model using the training set to obtain the final multi-objective prediction model.
[0077] Step S400: Deploy the final multi-objective prediction model in an online system to obtain an online prediction website.
[0078] Step S500: Adjust the second biomass composition and second hydrothermal conditions of the sample to be controlled, and input the second biomass composition and second hydrothermal conditions into the online prediction website to obtain the second yield, second elemental composition and second calorific value characteristics of hydrothermal carbon output by the online prediction website.
[0079] Step S600: Select the control operation for the corresponding sample to be controlled based on the second yield, the second elemental composition, and the second calorific value characteristics.
[0080] Firstly, the first biomass composition, first hydrothermal conditions, first yield of hydrothermal char, first elemental composition, and first calorific value characteristics collected from the prediction samples can demonstrate the relationship between biomass hydrothermal process parameters and hydrothermal char. Preprocessing these parameters yields a measured sample dataset, providing a solid data foundation for training the subsequent multi-objective prediction model and accurately establishing the mapping relationship between biomass hydrothermal process parameters and hydrothermal char. Secondly, the pre-set multi-objective prediction model is trained using the training set to obtain the final multi-objective prediction. The model achieves accurate prediction and regulation of biomass hydrothermal carbon through multi-objective prediction, reducing the consumption of a large amount of experimental and time costs. Then, based on the final multi-objective prediction model, an online system is deployed to obtain an online prediction website, which provides an online rapid prediction platform for hydrothermal carbon properties. At the same time, the online prediction website enables efficient prediction statistics, saving the time cost of subsequent statistics. Finally, the second yield, second elemental composition and second calorific value characteristics output by the online prediction website are used to select the corresponding regulation operation for the sample to be regulated. Through the virtual adjustment of the online prediction website, precise regulation operation is achieved, while also saving a large amount of experimental and time costs.
[0081] Reference Figure 2 In some embodiments of the present invention, data preprocessing is performed on the input features and output features to obtain a measured sample dataset, including:
[0082] Step S201: Remove missing data from the input and output features and perform statistical analysis to obtain statistical data.
[0083] It should be noted that, in this embodiment, statistical analysis is preferably performed in tabular form. As shown in Table 1, the statistical data obtained by statistical analysis of detailed information of 648 sets of data containing 14 input features and 6 output variables are as follows:
[0084] Table 1 Statistical Data
[0085]
[0086] Step S202: Normalize the statistical data to obtain the measured sample dataset; wherein, the calculation formula for normalizing the statistical data includes:
[0087]
[0088] in, x represents the normalized result of the i-th dimension of the measured sample dataset. i Let represent the i-th dimension of the measured sample dataset, μ represent the mean of each dimension of the measured sample dataset, and s represent the standard deviation of each dimension of the measured sample dataset.
[0089] By removing missing data and then performing statistical analysis, the statistical data can be deredundant, making it easier to train subsequent multi-objective prediction models. Normalization then makes incomparable data comparable while maintaining the relative relationship between the two compared data points, enabling training of more dimensional objectives and greatly improving generalization.
[0090] Reference Figure 3 In some embodiments of the present invention, a pre-defined multi-objective prediction model is trained using a training set to obtain a final multi-objective prediction model, including:
[0091] Step S330: Input the training set into the multi-objective prediction model, and calculate the multi-objective loss function of the multi-objective prediction model using the gradient boosting regression tree algorithm.
[0092] It should be noted that the gradient boosting regression tree algorithm in this embodiment is trained using an ensemble learning method, including the following steps: First, leaves are obtained from the average of the observed output values, which also serves as the initial predicted value for obtaining the initial error. Then, a first regressor tree is constructed using the gradient boosting strategy, predicting the error based on the change between the actual value and the original value. Next, the previous predicted value is added to the prediction error of the new regressor tree to obtain a new prediction. Finally, the new residual between the predicted value of the previous tree and the actual experimental value is used to further construct the next regression tree, until the residual is maximized.
[0093] Step S340: Train the multi-objective prediction model under supervision using a multi-objective loss function to obtain the final multi-objective prediction model.
[0094] The gradient boosting regression tree algorithm is better suited to training sets composed of statistical data. It is one of the best performing algorithms in statistical learning and can flexibly handle various types of data, including continuous and discrete values. It is more suitable for the multi-objective prediction model in this method. It can also achieve relatively high prediction accuracy with relatively little parameter tuning time. Using some robust loss functions, it is very robust to outliers.
[0095] Reference Figure 4 In some embodiments of the present invention, the machine learning-based hydrothermal carbon property control method further includes, before inputting the training set into the multi-objective prediction model:
[0096] Step S310: Adjust the hyperparameters of the multi-objective prediction model used for gradient boosting regression tree algorithm by cross-validation error; the hyperparameters include the number of trees, the depth of the trees, the learning rate, and the loss function.
[0097] It's important to note that cross-validation error refers to the prediction error of the model on the validation dataset during the cross-validation process. Cross-validation divides the dataset into several parts, using one part as the validation dataset each time, and the remaining parts as the training dataset to train the model. The trained model is then used to make predictions on the validation dataset, and the prediction error is calculated. This process is repeated multiple times, each time using a different data group. Finally, the prediction errors from all repeated experiments are averaged to obtain the cross-validation error. Cross-validation error can be used to evaluate the model's generalization ability, i.e., its performance on unknown data.
[0098] Five-fold cross-validation involves dividing the data into five parts and performing five cross-validations. In each cross-validation, one part of the data is selected as the validation set, and the remaining four parts are used as the training set. This ensures that each part of the data is used as the validation set once, and that the result of each cross-validation is independent.
[0099] Step S320: The optimal hyperparameters are obtained by supervising the adjustment of hyperparameters through optimization algorithms; the optimization algorithms include particle swarm optimization algorithm, simulated annealing optimization algorithm and Bayesian optimization algorithm.
[0100] It should be noted that this embodiment preferably uses a five-fold cross-validation combined with simulated annealing optimization algorithm.
[0101] Cross-validation errors yield more stable and reliable model evaluation results. Since the results of a single cross-validation may be affected by the data partitioning method, performing multiple cross-validations can reduce this influence, thereby obtaining more accurate model evaluation results and better tuning hyperparameters. Combining optimization algorithms with cross-validation can more efficiently find the optimal solution and improve the efficiency of hyperparameter tuning.
[0102] Reference Figure 5 In some embodiments of the present invention, a multi-objective prediction model is trained under the supervision of a multi-objective loss function to obtain a final multi-objective prediction model, including:
[0103] Step S341: Calculate the multi-objective loss function result for each iteration of the multi-objective prediction model training; wherein, the calculation formula for the multi-objective loss function result includes:
[0104]
[0105] Among them, L M This represents the result of a multi-objective loss function, where M represents the number of objectives, and α... tN1 represents the weight factor for each objective t, and N1 represents the number of actual values in the tree node. This represents the i1th actual value. This represents the mean of tree nodes and the predicted value of their child nodes.
[0106] Step S342: If the result of the multi-objective loss function is lower than the loss threshold or the number of iterations is higher than the number of iterations, the final multi-objective prediction model is obtained.
[0107] By integrating the loss functions of each objective through a multi-objective loss function, a unified and standardized multi-objective loss function can supervise the training of the multi-objective prediction model. At the same time, the convergence of the multi-objective loss model is guaranteed by loss threshold and number of iterations threshold.
[0108] Reference Figure 6 In some embodiments of the present invention, after obtaining the final multi-objective prediction model by supervising the training of a multi-objective prediction model through a multi-objective loss function, the machine learning-based method for regulating the hydrothermal carbon properties further includes:
[0109] Step S350: Divide the measured sample dataset into a test set, and input the test set into the final multi-objective prediction model to obtain the prediction results output by the final multi-objective prediction model.
[0110] Step S360: Calculate the coefficient of determination and root mean square error (RMSE) of the final multi-objective prediction model based on the prediction results; the formulas for calculating the coefficient of determination and RMSE include:
[0111]
[0112]
[0113] Among them, R 2 The coefficient of determination is given by RMSE, the root mean square error is given by RMSE, and N² represents the number of samples in the test set. and These represent the i2th experimental value and the corresponding predicted value, respectively. It represents the average of N2 experimental values.
[0114] Step S370: Calculate the final evaluation result of the multi-objective prediction model based on the coefficient of determination and root mean square error.
[0115] By evaluating the final multi-objective prediction model using the coefficient of determination and root mean square error, we can obtain the accuracy of the final multi-objective prediction model more intuitively, and we can judge whether the final multi-objective prediction model is qualified through a unified standard, thus ensuring the accuracy of the final multi-objective prediction model.
[0116] Reference Figure 7In some embodiments of the present invention, the final multi-objective prediction model is deployed online to obtain an online prediction website, including:
[0117] Step S401: Using Hypertext Markup Language, Cascading Style Sheets, Python, and Flask framework, define the calling function and prediction function of the final multi-objective prediction model. The calling function is used to call the final multi-objective prediction model based on the content of the input box on the front-end interface, and the prediction function is used to predict the content of the input box after the final multi-objective prediction model is called.
[0118] Step S402: Link the front-end interface and the back-end data of the prediction function through a visualization platform to obtain an online prediction website.
[0119] It should be noted that, referring to Figure 11 In the online prediction website constructed in this embodiment, users only need to open the online prediction website, enter the elemental composition, biochemical composition, industrial analysis and hydrothermal conditions in the "Input features" on the homepage, and then click the "Prediction" button below to quickly predict the yield, elemental composition and calorific value of hydrothermal carbon.
[0120] By linking the visualization platform of the online prediction website with the backend data of the front-end interface and prediction function, the yield, elemental composition and calorific value of hydrothermal carbon can be made public, and a more convenient online prediction method is provided.
[0121] To verify the effectiveness of the embodiments, a specific experimental embodiment of a machine learning-based hydrothermal carbon property control method is provided:
[0122] Reference Figure 9 This embodiment utilizes the aforementioned final multi-objective prediction model, using soybean straw as biomass raw material (C = 41.05%, H = 5.52%, N = 2.90%, O = 41.39%, S = 0.28%, ash = 8.87%, fixed carbon = 74.38%, volatile matter = 16.75%, protein = 20.80%, fat = 2.19%, carbohydrate = 68.14%). By adjusting the input hydrothermal carbonization conditions, optimal hydrothermal carbon production is achieved. Specifically, the temperature increments from 140℃ to 310℃ are 5℃, the time increments from 5 min to 240 min are 5 min, and the moisture content increments from 74% to 99% are 5%. The optimal objective function for hydrothermal carbon is set as follows:
[0123] Optimal performance hydrothermal carbon = Yield_char + C_char + H_char – N_char – O_char
[0124] Where Yield_char, C_char, H_char, N_char and O_char represent hydrothermal carbon yield, carbon content, hydrogen content, nitrogen content and oxygen content, respectively.
[0125] Among numerous prediction results, the optimal performance hydrothermal carbon function was sought to maximize Yield_char, C_char, and H_char while minimizing N_char and O_char. Six optimized results were selected from the maximized optimal performance hydrothermal carbon function for experimental verification. The experimental scheme and results are shown in Table 2. It can be observed that the relative errors in the hydrothermal carbon properties are relatively small, and the experiments verify the model's ability to precisely control and obtain the optimal performance hydrothermal carbon, as well as its strong generalization ability.
[0126] Table 2 Experimental Results
[0127]
[0128] a Experimental values
[0129] b Model predictions
[0130] c RE: Relative Error
[0131] Reference Figure 10 In this embodiment, the average correlation coefficient between the predicted values of the yield, elemental composition and calorific value of hydrothermal carbon and the experimental values in the literature was calculated to be 0.803, and the average root mean square error was 3.045.
[0132] Reference Figure 12 In one embodiment of the present invention, a machine learning-based hydrothermal carbon property control system is also provided, comprising a data acquisition module 1001, a data preprocessing module 1002, a multi-objective prediction model training module 1003, an online prediction website deployment module 1004, an online prediction module 1005, and a control operation module 1006, wherein:
[0133] The data acquisition module 1001 is used to acquire the first biomass composition, first hydrothermal conditions, first yield of hydrothermal carbon, first elemental composition and first calorific value characteristics of the measured sample.
[0134] The data preprocessing module 1002 is used to take the first biomass composition and the first hydrothermal conditions as input features and the first yield, the first elemental composition and the first calorific value characteristics as output features, and to perform data preprocessing on the input features and output features to obtain the measured sample dataset.
[0135] The multi-objective prediction model training module 1003 is used to divide the measured sample dataset into a training set, and train a preset multi-objective prediction model through the training set to obtain the final multi-objective prediction model.
[0136] The online prediction website deployment module 1004 is used to deploy the final multi-objective prediction model online to obtain an online prediction website.
[0137] The online prediction module 1005 is used to adjust the second biomass composition and the second hydrothermal conditions of the sample to be controlled, and input the second biomass composition and the second hydrothermal conditions into the online prediction website to obtain the second yield, second elemental composition and second calorific value characteristics of hydrothermal carbon output by the online prediction website.
[0138] The regulation operation module 1006 is used to select the regulation operation of the corresponding sample to be regulated based on the second yield, the second elemental composition, and the second calorific value characteristics.
[0139] It should be noted that since the hydrothermal carbon property control system based on machine learning in this embodiment is based on the same inventive concept as the hydrothermal carbon property control method based on machine learning described above, the corresponding content in the method embodiment is also applicable to this device embodiment, and will not be described in detail here.
[0140] refer to Figure 13 In another embodiment of the present invention, an electronic device 6000 is also provided, which can be any type of smart terminal, such as a mobile phone, tablet computer, personal computer, etc.
[0141] Specifically, the electronic device 6000 includes: one or more control processors 6001 and memory 6002. Figure 13 Taking a control processor 6001 and a memory 6002 as an example, the control processor 6001 and the memory 6002 can be connected via a bus or other means. Figure 13 Taking the example of a connection between China and Israel via a bus.
[0142] The memory 6002, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions / modules corresponding to an electronic device in an embodiment of the present invention.
[0143] The control processor 6001 executes various functional applications and data processing of a machine learning-based hydrothermal carbon property control method by running non-transient software programs, instructions, and modules stored in the memory 6002, thereby realizing a machine learning-based hydrothermal carbon property control method as described in the above method embodiment.
[0144] The memory 6002 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created using a machine learning-based hydrothermal carbon property control method, etc. Furthermore, the memory 6002 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 6002 may optionally include memory remotely located relative to the control processor 6001, and these remote memories can be connected to the electronic device 6000 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0145] One or more modules are stored in memory 6002. When executed by one or more control processors 6001, a machine learning-based hydrothermal carbon property control method from the above method embodiments is executed, for example, the method described above. Figures 1 to 7 The method and steps.
[0146] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0147] It should be noted that since the electronic device in this embodiment is based on the same inventive concept as the above-described method for regulating the properties of hydrothermal carbon based on machine learning, the corresponding content in the method embodiment is also applicable to this device embodiment, and will not be described in detail here.
[0148] In one embodiment of the present invention, a computer-readable storage medium is also provided, storing computer-executable instructions for performing: the machine learning-based hydrothermal carbon property control method as described in the above embodiment.
[0149] It should be noted that since the computer-readable storage medium in this embodiment is based on the same inventive concept as the above-described method for regulating the properties of hydrothermal carbon based on machine learning, the corresponding content in the method embodiment is also applicable to this device embodiment, and will not be described in detail here.
[0150] Those skilled in the art will understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing data (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired data and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any data delivery medium.
[0151] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0152] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
Claims
1. A method for controlling the properties of hydrothermal carbon based on machine learning, characterized in that, The machine learning-based method for regulating the properties of hydrothermal carbon includes: Obtain the first biomass composition, first hydrothermal conditions, first yield of hydrothermal carbon, first elemental composition and first calorific value characteristics of the tested sample; The first biomass composition and the first hydrothermal conditions are used as input features, and the first yield, the first elemental composition and the first calorific value characteristics are used as output features. Data preprocessing is performed on the input features and the output features to obtain the measured sample dataset. The measured sample dataset is divided into a training set, and a preset multi-objective prediction model is trained using the training set to obtain the final multi-objective prediction model; The final multi-objective prediction model is deployed online to obtain an online prediction website. The second biomass composition and second hydrothermal conditions of the sample to be controlled are adjusted, and the second biomass composition and second hydrothermal conditions are input into the online prediction website to obtain the second yield, second elemental composition and second calorific value characteristics of the hydrothermal carbon output by the online prediction website. The control operation corresponding to the sample to be controlled is selected by the second yield, the second elemental composition and the second calorific value characteristics; The step of training a pre-defined multi-objective prediction model using the training set to obtain the final multi-objective prediction model includes: The training set is input into the multi-objective prediction model, and the multi-objective loss function of the multi-objective prediction model is calculated using the gradient boosting regression tree algorithm. The multi-objective prediction model is trained under supervision using the multi-objective loss function to obtain the final multi-objective prediction model; Before inputting the training set into the multi-objective prediction model, the machine learning-based hydrothermal carbon property control method further includes: The hyperparameters of the multi-objective prediction model used in the gradient boosting regression tree algorithm are adjusted by cross-validation error; the hyperparameters include the number of trees, the depth of the trees, the learning rate, and the loss function. The optimal hyperparameters are obtained by supervising the adjustment of the hyperparameters through optimization algorithms; the optimization algorithms include particle swarm optimization, simulated annealing optimization, and Bayesian optimization. The step of supervising the training of the multi-objective prediction model using the multi-objective loss function to obtain the final multi-objective prediction model includes: Calculate the multi-objective loss function result for each iteration of the multi-objective prediction model training; wherein the calculation formula for the multi-objective loss function result includes: in, This represents the result of the multi-objective loss function. Indicates the target number. Represent each target Weighting factors This indicates the number of actual values in a tree node. Indicates the first One actual value, This represents the mean of a tree node and the predicted value of its child nodes; If the result of the multi-objective loss function is lower than the loss threshold or the number of iterations is higher than the number threshold, the final multi-objective prediction model is obtained.
2. The method for controlling the properties of hydrothermal carbon based on machine learning according to claim 1, characterized in that, The step of preprocessing the input features and the output features to obtain the measured sample dataset includes: Remove missing data from the input features and the output features and perform statistical analysis to obtain statistical data; The statistical data is normalized to obtain the measured sample dataset; wherein, the calculation formula for normalizing the statistical data includes: in, Indicates the first sample in the measured sample dataset The result after dimensional data normalization Indicates the first sample in the measured sample dataset Dimensional data, This represents the mean of each dimension of the measured sample dataset. This represents the standard deviation of each dimension of the data in the test sample dataset.
3. The method for controlling the properties of hydrothermal carbon based on machine learning according to claim 1, characterized in that, After obtaining the final multi-objective prediction model through supervised training of the multi-objective loss function, the machine learning-based hydrothermal carbon property regulation method further includes: A test set is obtained by dividing the measured sample dataset, and the test set is input into the final multi-objective prediction model to obtain the prediction result output by the final multi-objective prediction model; The determination coefficient and root mean square error (RMSE) of the final multi-objective prediction model are calculated based on the prediction results; the formulas for calculating the determination coefficient and the RMSE include: in, The coefficient of determination is represented by the coefficient of determination. This represents the root mean square error. This indicates the number of samples in the test set. and They represent the first Each experimental value and its corresponding predicted value, express The average of the experimental values; The evaluation result of the final multi-objective prediction model is calculated based on the determination coefficient and the root mean square error.
4. The method for controlling the properties of hydrothermal carbon based on machine learning according to claim 1, characterized in that, The step of deploying the final multi-objective prediction model online to obtain an online prediction website includes: Using Hypertext Markup Language, Cascading Style Sheets, Python, and Flask frameworks, the calling and prediction functions of the final multi-objective prediction model are defined. The calling function is used to call the final multi-objective prediction model based on the content of the input box on the front-end interface, and the prediction function is used to predict the content of the input box after the final multi-objective prediction model is called. The online prediction website is obtained by linking the front-end interface and the back-end data of the prediction function through a visualization platform.
5. A hydrothermal carbon property control system based on machine learning, characterized in that, The machine learning-based hydrothermal carbon property control system includes: The data acquisition module is used to acquire the first biomass composition, first hydrothermal conditions, first yield of hydrothermal carbon, first elemental composition and first calorific value characteristics of the tested sample; The data preprocessing module is used to take the first biomass composition and the first hydrothermal conditions as input features and the first yield, the first elemental composition and the first calorific value characteristics as output features, and to perform data preprocessing on the input features and the output features to obtain the measured sample dataset. The multi-objective prediction model training module is used to divide the measured sample dataset into a training set, and train a preset multi-objective prediction model through the training set to obtain the final multi-objective prediction model. The online prediction website deployment module is used to deploy the final multi-objective prediction model online to obtain an online prediction website. The online prediction module is used to adjust the second biomass composition and the second hydrothermal conditions of the sample to be controlled, and input the second biomass composition and the second hydrothermal conditions into the online prediction website to obtain the second yield, second elemental composition and second calorific value characteristics of the hydrothermal carbon output by the online prediction website. The control operation module is used to select the control operation corresponding to the sample to be controlled based on the second yield, the second elemental composition and the second calorific value characteristic; The step of training a pre-defined multi-objective prediction model using the training set to obtain the final multi-objective prediction model includes: The training set is input into the multi-objective prediction model, and the multi-objective loss function of the multi-objective prediction model is calculated using the gradient boosting regression tree algorithm. The multi-objective prediction model is trained under supervision using the multi-objective loss function to obtain the final multi-objective prediction model; Before inputting the training set into the multi-objective prediction model, the machine learning-based hydrothermal carbon property control method further includes: The hyperparameters of the multi-objective prediction model used in the gradient boosting regression tree algorithm are adjusted by cross-validation error; the hyperparameters include the number of trees, the depth of the trees, the learning rate, and the loss function. The optimal hyperparameters are obtained by supervising the adjustment of the hyperparameters through optimization algorithms; the optimization algorithms include particle swarm optimization, simulated annealing optimization, and Bayesian optimization. The step of supervising the training of the multi-objective prediction model using the multi-objective loss function to obtain the final multi-objective prediction model includes: Calculate the multi-objective loss function result for each iteration of the multi-objective prediction model training; wherein the calculation formula for the multi-objective loss function result includes: in, This represents the result of the multi-objective loss function. Indicates the target number. Represent each target Weighting factors This indicates the number of actual values in a tree node. Indicates the first One actual value, This represents the mean of a tree node and the predicted value of its child nodes; If the result of the multi-objective loss function is lower than the loss threshold or the number of iterations is higher than the number threshold, the final multi-objective prediction model is obtained.
6. An electronic device, characterized in that: It includes at least one control processor and a memory for communicatively connecting to the at least one control processor; the memory stores instructions executable by the at least one control processor, which, when executed by the at least one control processor, enable the at least one control processor to perform the machine learning-based hydrothermal carbon property control method as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions for causing a computer to perform the machine learning-based hydrothermal carbon property control method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Charcoal-based biological geological catalytic material property prediction and preparation method
CN115497573A
