Preparation method of traditional Chinese medicine residue composting inoculant based on artificial intelligence

Through artificial intelligence-based methods, nanocomposting membranes and intelligent prediction algorithms are used to optimize the composting experiment of traditional Chinese medicine residues and determine the microbial community ratio, which solves the problem of low composting efficiency of traditional Chinese medicine residues and achieves fast and accurate optimization of composting parameters.

CN118800337APending Publication Date: 2024-10-18INNER MONGOLIA UNIV OF SCI & TECH
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410765829.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the existing technology, the composting efficiency of traditional Chinese medicine residues is low, and the conventional separation and screening combination performance measurement is time-consuming, has poor specificity and low efficiency, and it is difficult to optimize the microbial agent ratio.

Method used

An artificial intelligence-based method was used to conduct a natural composting experiment of traditional Chinese medicine residues in an outdoor environment through a nano-composting film, and a data set for bacterial agent preparation was constructed. An intelligent prediction algorithm and a multi-objective optimization algorithm were used to determine that the total humic acid and temperature reached the maximum value at the same time. The ratio of microbial communities.

Benefits of technology

It simplifies the detection process, improves the level of intelligent detection, reduces the use of reagents and experimental time, quickly detects and optimizes composting parameters in real time, and solves the problems of low composting efficiency and cumbersome detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118800337A_ABST
    Figure CN118800337A_ABST
Patent Text Reader

Abstract

The invention provides a traditional Chinese medicine residue composting inoculant preparation method based on artificial intelligence, and relates to the technical field of artificial intelligence, and the method comprises the following steps: carrying out a traditional Chinese medicine residue natural composting experiment in an outdoor environment by using a nano composting film; the method comprises the following steps: acquiring target parameters and characteristic parameters in a natural composting experiment process of traditional Chinese medicine residues to construct a microbial inoculum preparation data set, and preprocessing and dividing the data set to obtain a data training set and a test set; the characteristic parameters and the target parameters serve as input data and output data of an intelligent prediction algorithm, different artificial intelligence algorithms are adopted for prediction, a final traditional Chinese medicine residue compost parameter prediction model is determined, and the generalization ability of the prediction model on a test set is evaluated; and through the final traditional Chinese medicine residue compost parameter prediction model, determining the microbial community ratio when the total humic acid and the temperature simultaneously reach the maximum value by using a multi-objective optimization algorithm. In actual production and application, the microbial inoculum proportion suitable for composting can be rapidly obtained, and the composting process is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of artificial intelligence, and in particular to a method for preparing a traditional Chinese medicine residue composting agent based on artificial intelligence. Background Art

[0002] With the development of urbanization and the improvement of people's quality of life, a large amount of waste materials such as traditional Chinese medicine residues, agricultural and forestry waste, kitchen waste, animal feces, urban sludge, etc. are generated. These waste materials contain harmful substances such as pathogenic microorganisms and heavy metals, which can easily pollute the surrounding environment. At the same time, these waste materials contain nutrients such as nitrogen and phosphorus, as well as organic matter such as lignin, cellulose and hemicellulose. Their rational development and utilization are conducive to economic and environmental sustainable development.

[0003] Aerobic composting technology has a simple process and low operating costs, and has gradually developed into one of the main technical means to solve the above wastes, making them resource-based, harmless, and reduced in volume. Aerobic composting technology is a biochemical process that uses bacteria, fungi and other microorganisms to degrade complex organic matter in solid wastes through fermentation and repolymerize them to form humus-like substances. It is a resource-based approach that can stably produce high-value-added humus-like products.

[0004] The rapid development of Chinese medicine enterprises has produced a large amount of Chinese medicine residues, and the main treatment methods are incineration, stacking, landfilling, etc., which has caused serious environmental pollution and waste of resources. Therefore, using Chinese medicine residues for aerobic composting experiments and preparing bio-organic fertilizers is of great significance to the sustainable development of Chinese medicine.

[0005] At present, the main factor affecting composting efficiency is the appropriate composting agent. Conventional separation, screening, combination and performance determination methods have problems such as long time consumption, poor specificity and low efficiency. Summary of the invention

[0006] The technical problem to be solved by the present invention is to provide a method for preparing a Chinese medicine residue composting agent based on artificial intelligence, and to optimize the proportion and content of the microbial agent by measuring the microbial community structure composition, pile temperature and humic acid content of the compost product.

[0007] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0008] In a first aspect, a method for preparing a Chinese medicine residue composting agent based on artificial intelligence, the method comprising:

[0009] The experiment of natural composting of Chinese medicine residue was carried out in outdoor environment using nano composting membrane;

[0010] The target parameters and characteristic parameters in the natural composting experiment of traditional Chinese medicine residues were obtained to construct a bacterial preparation data set, and the data set was preprocessed and divided to obtain a data training set and a test set.

[0011] The characteristic parameters and target parameters are used as the input data and output data of the intelligent prediction algorithm, and different artificial intelligence algorithms are used for prediction to determine the final prediction model of Chinese medicinal residue composting parameters, and the generalization ability of the prediction model on the test set is evaluated;

[0012] The final Chinese medicine residue composting parameter prediction model was developed, and the multi-objective optimization algorithm was used to determine the microbial community ratio that simultaneously achieved the maximum values ​​of total humic acid and temperature.

[0013] Furthermore, the nano composting membrane was used to carry out natural composting experiments of traditional Chinese medicine residues in outdoor environments, including:

[0014] Identify raw materials for agroforestry composting in outdoor environments;

[0015] Natural composting experiments were conducted using nano-composting membranes, and indicators such as the microbial community structure, compost body temperature, and humic acid of the compost products were regularly measured.

[0016] Furthermore, the target parameters and characteristic parameters in the natural composting experiment of traditional Chinese medicine residues were obtained to construct a bacterial preparation data set, and the data set was preprocessed and divided to obtain a data training set and a test set, including:

[0017] Taking total humic acid and temperature values ​​as target data and the relative abundance of dominant groups of microbial communities as characteristic data, the error values, missing values ​​and outliers in the natural composting experimental data of traditional Chinese medicine residues were detected and preprocessed to obtain valid experimental data. The valid experimental data set was normalized, and the normalization calculation formula was as follows:

[0018]

[0019] Among them, x min Indicates the minimum value of a set of sample data; x max Indicates the maximum value of a set of sample data; x new represents the normalized data; x new The value range of is [0, 1];

[0020] The corresponding microbial communities were extracted based on the Pearson correlation coefficient between total humic acid and temperature;

[0021] The microbial community was divided into training and testing sets.

[0022] Furthermore, the characteristic parameters and target parameters are used as the input data and output data of the intelligent prediction algorithm, and different artificial intelligence algorithms are used for prediction to determine the final prediction model of Chinese medicinal residue composting parameters, and the generalization ability of the prediction model on the test set is evaluated, including:

[0023] According to the characteristic parameters and target parameters, the intelligent prediction algorithm is compared and tested to obtain the comparison results;

[0024] According to the comparison results, The intelligent prediction algorithm is evaluated to obtain the evaluation index results, where MSE represents mean square error; R 2 represents the coefficient of determination; m represents the amount of sample data; y i represents the actual value of the target; f(x i ) represents the model target prediction value; represents the actual mean of the target;

[0025] According to the evaluation index results, the corresponding intelligent prediction algorithm is determined, and the hyperparameters of the determined intelligent prediction algorithm are optimized to obtain the optimization results; the final parameters are determined according to the optimization results;

[0026] The final parameters are tested through the test set to determine the final prediction algorithm.

[0027] Furthermore, the final prediction model of TCM residue composting parameters was used, and the multi-objective optimization algorithm was used to determine the microbial community ratio that simultaneously achieved the maximum value of total humic acid and temperature, including:

[0028] Establish a mathematical model between the predicted target data and the input feature data;

[0029] According to the mathematical model, a multi-objective planning model is established, and the objective function, decision variables and constraints of the multi-objective planning model are set;

[0030] The multi-objective optimization algorithm was used to solve the multi-objective programming model to obtain the microbial community ratio that simultaneously achieved the maximum values ​​of total humic acid and temperature.

[0031] Furthermore, the calculation formula of the mathematical model is:

[0032] Among them, f(X) represents the target data; m represents the number of features; a i represents the feature weight coefficient; b i represents the feature bias parameter; n i represents the corresponding feature index; c represents a constant; X represents feature data; i represents the index, and the value range of i is [1, m].

[0033] Furthermore, the formula of the multi-objective programming model is:

[0034] Among them, x i represents the decision variable; g i represents the lower limit of the decision variable; h irepresents the upper limit of the decision variable; f1 represents the predicted target total humic acid; f2 represents the predicted target temperature.

[0035] In the second aspect, a system for preparing a Chinese medicine residue composting agent based on artificial intelligence comprises:

[0036] The acquisition module uses nanocomposting membranes to carry out natural composting experiments on Chinese herbal medicine residues in outdoor environments; the target parameters and characteristic parameters in the natural composting experiment of Chinese herbal medicine residues are obtained to construct a bacterial preparation data set, and the data set is preprocessed and divided to obtain a data training set and a test set;

[0037] The processing module is used to use the characteristic parameters and target parameters as the input data and output data of the intelligent prediction algorithm, adopt different artificial intelligence algorithms to make predictions, and evaluate the generalization ability of the prediction model on the test set to determine the final prediction model for the composting parameters of traditional Chinese medicine residue; through the final prediction model for the composting parameters of traditional Chinese medicine residue, and use a multi-objective optimization algorithm to determine the microbial community ratio that simultaneously reaches the maximum value of total humic acid and temperature.

[0038] According to a third aspect, a computing device includes:

[0039] one or more processors;

[0040] The storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method described.

[0041] In a fourth aspect, a computer-readable storage medium stores a program, and when the program is executed by a processor, the method described is implemented.

[0042] The above solution of the present invention includes at least the following beneficial effects:

[0043] The invention is used for the preparation of composting agent for Chinese medicine residues, adopts a non-contact dynamic monitoring method, simplifies the detection process, improves the intelligent detection level, pre-processes the collected composting parameters, uses an intelligent prediction algorithm to establish the connection between target characteristic parameters, and uses an optimization algorithm to optimize them, thereby reducing the use of reagents, shortening the experimental time, and quickly detecting and optimizing composting parameters in real time. The invention solves the problems of the existing composting experiment being time-consuming, the detection process being cumbersome, the reagent consumption, and the low level of intelligence. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a schematic flow chart of a method for preparing a Chinese medicine residue composting agent based on artificial intelligence provided by an embodiment of the present invention.

[0045] Figure 2It is a schematic diagram of an artificial intelligence-based Chinese medicine residue composting inoculant preparation system provided by an embodiment of the present invention.

[0046] Figure 3 This is a scene diagram of the biocomposting experiment of the present invention;

[0047] Figure 4 This is the first comparison chart of the intelligent prediction algorithm model training set of the present invention;

[0048] Figure 5 This is the second comparison chart of the intelligent prediction algorithm model training set of the present invention;

[0049] Figure 6 This is the first comparison chart of the intelligent prediction algorithm model test set of the present invention;

[0050] Figure 7 This is the second comparison chart of the intelligent prediction algorithm model test set of the present invention;

[0051] Figure 8 This is the non-inferior solution frontier graph for multi-objective optimization of the present invention. DETAILED DESCRIPTION

[0052] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0053] like Figure 1 As shown, an embodiment of the present invention provides a method for preparing a Chinese medicine residue composting agent based on artificial intelligence, and the method comprises the following steps:

[0054] Step 1, using nano composting membrane to carry out natural composting experiment of traditional Chinese medicine residue in outdoor environment;

[0055] Step 2, obtaining the target parameters and characteristic parameters in the natural composting experiment of traditional Chinese medicine residues to construct a bacterial preparation data set, and preprocessing and dividing the data set to obtain a data training set and a test set;

[0056] Step 3: Using the characteristic parameters and target parameters as the input data and output data of the intelligent prediction algorithm, different artificial intelligence algorithms are used for prediction to determine the final prediction model for the composting parameters of traditional Chinese medicine residues, and the generalization ability of the prediction model on the test set is evaluated;

[0057] Step 4: Through the final prediction model of Chinese medicinal residue composting parameters, a multi-objective optimization algorithm is used to determine the microbial community ratio that simultaneously achieves the maximum value of total humic acid and temperature.

[0058] In an embodiment of the present invention, during the composting experiment, target parameters (such as total humic acid content, temperature, etc.) and characteristic parameters (such as microbial community ratio, composting time, ambient temperature, etc.) are regularly collected, these parameters are organized into data sets, and necessary preprocessing, such as data cleaning, normalization, etc., are performed to ensure data quality. The data set is divided into a training set and a test set for subsequent artificial intelligence algorithm training and testing. With characteristic parameters as input data and target parameters as output data, a variety of artificial intelligence algorithms (such as linear regression, support vector regression, neural network regression, etc.) are trained to construct a prediction model. By comparing the performance of different algorithms on the training set, the model with the best prediction performance is determined. The selected model is tested for generalization performance using the test set to ensure its reliability in practical applications. Using the selected optimal prediction model, combined with a multi-objective optimization algorithm (such as a multi-objective genetic optimization algorithm, a multi-objective particle swarm optimization algorithm, etc.), the microbial community ratio that makes total humic acid and temperature reach the maximum value at the same time is determined. Through the iterative optimization process, the ratio of the microbial community is continuously adjusted until the optimal solution that meets the conditions is determined.

[0059] Through the use of nano-composting membranes, the environmental conditions during the composting process of Chinese medicine residues are optimized, thereby improving the efficiency of composting and the quality of compost products. By building and training intelligent prediction models, it is possible to more accurately predict the composting effect under different microbial community ratios, providing support for decision-making in actual production. The natural composting of Chinese medicine residues not only realizes the resource utilization of waste, but also reduces environmental pollution during waste treatment, which is in line with the green and environmentally friendly development concept. By optimizing the microbial community ratio, the market value of compost products can be increased, thereby improving the economic benefits of the resource utilization of Chinese medicine residues.

[0060] In a preferred embodiment of the present invention, a natural composting experiment of Chinese medicinal residues is carried out in an outdoor environment using a nano composting film, comprising:

[0061] Identify raw materials for agroforestry composting in outdoor environments;

[0062] Natural composting experiments were conducted using nano-composting membranes, and indicators such as the microbial community structure, compost body temperature, and humic acid of the compost products were regularly measured.

[0063] In an embodiment of the present invention, raw materials suitable for agricultural and forestry composting such as Chinese medicinal residues are determined in an outdoor environment. These raw materials are rich in organic matter and nutrients and are a high-quality basis for composting. The nano composting film is covered on the composting raw materials, and its special functions include determining permeability, that is, allowing small molecules such as water vapor and carbon dioxide to pass through, while blocking large molecules such as odor, thereby reducing odor emissions and ammonia losses. The nano membrane also ensures that the internal oxygen supply of the pile is uniform and sufficient through a micro-pressure air supply system, providing a suitable environment for aerobic fermentation. During the composting process, the microbial community structure composition of the compost product is regularly measured to understand the activity and diversity of microorganisms, which is an important indicator for evaluating the maturity and quality of the compost. At the same time, indicators such as the pile temperature and humic acid are monitored. The change in temperature can reflect the strength of microbial activity during the composting process, and the humic acid content is an important basis for evaluating the fertilizer efficiency and maturity of the compost.

[0064] Nano composting membrane reduces the emission of odor and ammonia, effectively improves the environmental pollution problem in the composting process, and makes composting more environmentally friendly. Through the micro-pressure air supply system of the nano membrane, the oxygen supply inside the pile is uniform, which promotes the aerobic fermentation of microorganisms and improves the efficiency and quality of composting. Regular measurement and monitoring ensure the microbial diversity and activity of the compost product, as well as the appropriate humic acid content, thereby improving the fertility and stability of the compost product. The reuse of agricultural and forestry wastes such as traditional Chinese medicine residues not only solves the problem of waste disposal, but also converts it into valuable organic fertilizer, realizing the recycling of resources.

[0065] In a preferred embodiment of the present invention, the target parameters and characteristic parameters in the natural composting experiment of traditional Chinese medicine residues are obtained to construct a bacterial preparation data set, and the data set is preprocessed and divided to obtain a data training set and a test set, including:

[0066] Taking total humic acid and temperature values ​​as target values ​​and the relative abundance of dominant groups of microbial communities as characteristic data, the error values, missing values ​​and outliers in the natural composting experimental data of traditional Chinese medicine residues were detected and preprocessed to obtain valid experimental data, and the valid experimental data set was normalized. The normalization calculation formula is:

[0067]

[0068] Among them, x min Indicates the minimum value of a set of sample data; x max Indicates the maximum value of a set of sample data; x new represents the normalized data; x new The value range of is [0, 1];

[0069] The corresponding microbial communities were extracted based on the Pearson correlation coefficient between total humic acid and temperature;

[0070] The microbial community was divided into training and testing sets.

[0071] In the present embodiment, the total humic acid and temperature values ​​are set as target values ​​because they directly reflect the maturity of the compost and the strength of microbial activity. The relative abundance of dominant groups in the microbial community is used as feature data to predict the target value. The error values, missing values ​​and abnormal values ​​in the natural composting experimental data of traditional Chinese medicine residues are detected and preprocessed to ensure the accuracy and reliability of the data. First, determine the minimum value x in the original data set. min and the maximum value x max . These two values ​​represent the range of the original data.

[0072] Next, a linear transformation is performed on each original data value x. This transformation includes two steps: a. Subtract the minimum value x from the original data value x min The purpose of this is to move the starting point of the data set to 0. b. Then, divide the result of the previous step by x max -x min , which is the range of the data. This division operation scales the data to the interval [0,1]. After the above transformation, the normalized data value x is obtained. new This value lies between 0 and 1 (including 0, but theoretically not including 1 unless there is only one value in the original data set, namely x max Equal to x min An important purpose of normalization is to eliminate the dimensional differences between different features. By mapping all feature values ​​to the [0,1] interval, it ensures that each feature has the same weight and influence in subsequent data analysis or machine learning models.

[0073] The Pearson correlation coefficient method was used to analyze the correlation between microbial communities and total humic acid and temperature, and microbial communities that were highly correlated with these two were screened out, thereby reducing the feature dimension and reducing the computational complexity of the subsequent intelligent prediction algorithm. Combined with the experience of agricultural and forestry composting experts and microbial characteristics, qualified microbial communities were further screened out to improve the accuracy of the prediction model. Considering the important influence of time characteristics on total humic acid and temperature, a specific data set partitioning method was adopted: the biological communities except the last group were divided into training sets for training the prediction model; the biological communities in the last group were divided into test sets for verifying the prediction performance of the model.

[0074] Through data preprocessing, errors, missing values, and outliers were removed, ensuring the accuracy and completeness of the data set, providing a reliable basis for subsequent analysis. Through feature determination, redundant features were reduced, the computational complexity of the intelligent prediction algorithm was reduced, and the operating efficiency of the model was improved. Feature screening was performed by combining expert experience and microbial characteristics, so that the model could more accurately capture the key factors affecting total humic acid and temperature, thereby improving the accuracy of the prediction model. Considering the influence of time characteristics, a specific data set partitioning method was used to ensure that the training set and test set had complete time characteristics. This partitioning method helps to more realistically evaluate the prediction performance of the model.

[0075] In a preferred embodiment of the present invention, the characteristic parameters and target parameters are used as input data and output data of the intelligent prediction algorithm, different artificial intelligence algorithms are used for prediction, and the generalization ability of the prediction model on the test set is evaluated to determine the final prediction model of the composting parameters of traditional Chinese medicine residues, including:

[0076] According to the characteristic parameters and target parameters, the intelligent prediction algorithm is compared and tested to obtain the comparison results;

[0077] According to the comparison results, Evaluate the intelligent prediction algorithm.

[0078] To obtain the evaluation index results, where MSE represents mean square error; R 2 represents the coefficient of determination; m represents the amount of sample data; y i represents the actual value of the target; f(x i ) represents the model target prediction value; represents the actual mean of the target;

[0079] According to the evaluation index results, the corresponding intelligent prediction algorithm is determined, and the hyperparameters of the determined intelligent prediction algorithm are optimized to obtain the optimization results; the final parameters are determined according to the optimization results;

[0080] The final parameters are tested through the test set to determine the final prediction algorithm.

[0081] In the embodiment of the present invention, characteristic parameters (such as the abundance of the relatively dominant groups of microbial communities, etc.) are used as input data of the intelligent prediction algorithm, and target parameters (such as total humic acid and temperature values) are used as output data of the intelligent prediction algorithm. A variety of intelligent prediction algorithms with high interpretability and low computational complexity (such as linear regression, decision tree, random forest, extreme gradient boosting, etc.) are used for comparative experiments. For a given data set, which contains m samples, each sample has an actual observation value y i And the predicted value f(x i). MSE compares the predicted value of each sample with the actual observed value one by one and calculates the difference between them (i.e., the prediction error). These differences are squared to ensure that positive and negative errors do not cancel each other out, while highlighting large prediction deviations.

[0082] Finally, the average of the squared differences of all samples is calculated to obtain the MSE. The smaller the MSE value, the closer the model's prediction result is to the actual observed value, that is, the higher the prediction accuracy. 2 It is used to quantify the degree to which the model explains the data changes. The closer its value is to 1, the better the model fit is. Next, the total variation between the actual observations and the mean is calculated, which represents the overall fluctuation of the data. Next, the residual between the model predictions and the actual observations is calculated, which is the portion of the data that the model failed to accurately predict. R is calculated by comparing the variation in the data explained by the model (regression sum of squares) with the total variation (total sum of squares). 2 . R 2 The closer the value is to 1, the more data changes the model explains; the lower the value is, the worse the model fit is. According to the evaluation index results, the hyperparameters of each intelligent prediction algorithm are adjusted and optimized. Hyperparameters include learning rate, regularization strength, number of trees (for tree models), etc. These parameters directly affect the performance and complexity of the model. The optimization goal is to determine the minimum MSE and R 2 The hyperparameter combination closest to 1. Use an independent test set to test the generalization of each optimized parameter model. The test set should contain data that the model has not seen during training to evaluate the model's predictive ability for new data. By comparing the MSE and R 2 value, and determine the best performing model as the optimal prediction algorithm.

[0083] By comparing multiple intelligent prediction algorithms and determining the best one, the prediction accuracy of TCM residue composting parameters can be significantly improved. Accurate prediction helps guide the optimization and control of the composting process and improve the quality and efficiency of composting. Determining algorithms with high interpretability and low computational complexity can reduce computing resource consumption while ensuring prediction performance. This is especially important for scenarios that require fast response and real-time prediction in practical applications. Testing the generalization of the model through an independent test set can ensure that the selected model has good prediction performance on new data. Models with strong generalization ability can better adapt to different composting conditions and environmental changes. The optimized prediction model can provide a scientific basis and guidance for the actual production of TCM residue composting. By predicting key parameters such as total humic acid and temperature, it can help producers adjust composting conditions in time to achieve the best results.

[0084] In a preferred embodiment of the present invention, the final Chinese medicine residue composting parameter prediction model is used, and a multi-objective optimization algorithm is used to determine the microbial community ratio that simultaneously reaches the maximum value of total humic acid and temperature, including:

[0085] Establish a mathematical model between the predicted target data and the input feature data;

[0086] According to the mathematical model, a multi-objective planning model is established, and the objective function, decision variables and constraints of the multi-objective planning model are set;

[0087] The multi-objective optimization algorithm was used to solve the multi-objective programming model to obtain the microbial community ratio that simultaneously achieved the maximum values ​​of total humic acid and temperature.

[0088] In an embodiment of the present invention, first, a Chinese medicine residue composting experimental sample containing data such as microbial community ratio, total humic acid and temperature is collected. A mathematical model is established between the predicted target data (total humic acid and temperature) and the input feature data (microbial community ratio, etc.) using the final Chinese medicine residue composting parameter prediction model (such as the optimal prediction algorithm selected by the previous steps). An objective function is set, and the goal is to maximize total humic acid and temperature at the same time. According to the actual situation and experimental conditions, reasonable constraints are set, such as the sum of the microbial community ratio must be 1, or the proportion of certain microbial communities must be within a specific range, etc. A variety of multi-objective optimization algorithms are applied, such as a multi-objective genetic optimization algorithm, a multi-objective particle swarm optimization algorithm, a multi-objective whale algorithm, a reinforcement learning algorithm, etc., to solve the established multi-objective programming model.

[0089] By comparing the optimization effects of different algorithms, such as convergence speed, diversity of solution sets, and quality of solutions, the optimal multi-objective optimization algorithm is selected. From the solution set obtained by the selected optimal multi-objective optimization algorithm, a non-inferior solution set (also called a Pareto optimal solution set) that simultaneously maximizes total humic acid and temperature is sought. According to the specific needs and preferences of the natural composting experiment of Chinese herbal medicine residue, the optimal temperature, humic acid index, and the corresponding microbial community ratio and required time are determined from the non-inferior solution set. By optimizing the ratio of the microbial community, the total humic acid and temperature in the composting process can be increased simultaneously, thereby accelerating the composting process and improving the quality of the compost product. Using data-driven modeling and multi-objective optimization methods, the operation of the natural composting experiment of Chinese herbal medicine residue can be scientifically guided, reducing the blindness and trial-and-error costs in the experimental process. Through clear mathematical models and optimization algorithms, the standardization and repeatability of the experiment can be improved, making the results under different experimental conditions more comparable.

[0090] In a preferred embodiment of the present invention, the calculation formula of the mathematical model is:

[0091]

[0092] Among them, f(X) represents the target data; m represents the number of features; a i represents the feature weight coefficient; b i represents the feature bias parameter; n i represents the corresponding feature index; c represents a constant; X represents feature data; i represents the index, and the value range of i is [1, m].

[0093] In the embodiment of the present invention, f(X) represents the target data, including key indicators such as total humic acid content and temperature. X represents the input feature data, which includes the ratio of microbial communities, composting time, ambient temperature, etc., which have a direct impact on the target data. m represents the number of features, that is, how many factors affecting the target data are considered, a i is the feature weight coefficient, which reflects the importance of each feature on the target data, b i is the feature bias parameter, which is used to adjust the baseline output value of the model to make the model more flexible. i The exponent of the corresponding feature allows the model to capture the nonlinear relationship between the feature and the target, enhancing the expressive power of the model. c is a constant term used to adjust the overall output level of the model.

[0094] By adjusting the above parameters (feature weight coefficient, feature bias parameter, etc.), the prediction accuracy of the model can be optimized. During the training process, the model will continuously learn how to better predict the target data based on the input features. In the application of the preparation of Chinese medicine residue composting agents, this model can help understand which microbial community ratios and other operating conditions can maximize the composting effect (such as total humic acid content and temperature). By inputting different feature data, the model can predict the corresponding target data, thereby guiding the optimization of the preparation process. Through data-driven modeling, the composting effect under different microbial community ratios and operating conditions can be more accurately predicted. This helps to reduce the number of experimental trial and error and improve research efficiency. By adjusting the feature weight coefficient, feature bias parameter, etc., the model can find the best microbial community ratio and other operating conditions, thereby optimizing the preparation process of Chinese medicine residue composting agents. This can not only improve composting efficiency, but also ensure product quality. The optimized preparation process can reduce unnecessary waste of resources, such as excessive microbial input or excessive composting time, thereby reducing production costs.

[0095] In a preferred embodiment of the present invention, the formula of the multi-objective programming model is:

[0096]

[0097] Among them, x i represents the decision variable; g i represents the lower limit of the decision variable; hi represents the upper limit of the decision variable; f1 represents the predicted target total humic acid; f2 represents the predicted target temperature.

[0098] In this embodiment of the present invention, in this model, there are two objective functions, which represent the prediction targets to be optimized, such as total humic acid (represented by f1) and temperature (represented by f2). By adjusting the values ​​of decision variables, the values ​​of these objective functions can be maximized, thereby achieving the purpose of optimization. Decision variables are adjustable parameters in the model that are used to affect the value of the objective function. Decision variables are represented as vectors x i , contains multiple components. These decision variables represent different operating conditions, resource allocation or other adjustable factors. In the Chinese medicine residue composting experiment, they represent the ratio of microbial communities. Constraints are used to limit the range of decision variables to ensure that they vary within a reasonable range. Constraints are expressed as g i ≤x≤h i , where g i is the lower limit of the decision variable, h i is the upper limit. These constraints ensure the feasibility and reality of the optimization process. By optimizing the ratio of microbial communities, the resources of Chinese medicine residues can be used more effectively and resource waste can be reduced. The optimized ratio can promote the decomposition and transformation of organic matter during the composting process, thereby improving the quality and fertilizer efficiency of the compost product.

[0099] The optimized composting process can reduce the generation and emission of harmful substances and reduce pollution to the environment. At the same time, by improving the composting efficiency, the time and space required for processing Chinese medicine residues can be reduced, thereby reducing the pressure on the environment. By optimizing total humic acid and temperature at the same time, higher quality compost products can be produced. Total humic acid is one of the important indicators for evaluating the quality of compost products. The increase in its content means that the compost product has better fertilizer efficiency and soil improvement ability. The optimization of temperature helps to accelerate the composting process and improve the stability of the product.

[0100] When it comes to specific applications, such as Figures 2 to 8 As shown, the method for preparing a Chinese medicine residue composting agent based on artificial intelligence disclosed in the present invention specifically includes:

[0101] Firstly, under outdoor conditions, natural composting experiments of Chinese medicinal residues were carried out using nano-composting membranes, and indicators such as the microbial community structure, pile temperature and humic acid of the compost products were regularly measured.

[0102] Specifically, in an outdoor environment, raw materials widely used in agricultural and forestry composting were selected to conduct a natural composting experiment on Chinese medicinal residues.

[0103] This patent uses ganoderma residue and dry cow dung as compost raw materials, and adopts a compost cone (bottom radius 2m, height 1.5m) covered with nano compost cover (4m×5m) for outdoor aerobic composting and natural composting fermentation.

[0104] The initial raw material dry matter was 350 kg, the number of repetitions was 3 times, and the fermentation cycle was 85 days. The sampling time was 0, 10, 20, 30, 40, 50, 57, 64, 71, 78 and 85 days of composting. The sampling adopted the 5-point mixed sampling method, 100 g of sample was taken at each sampling point, and the 5-point samples were mixed evenly as the sample to be tested. The sample was dried in the shade, passed through an 80-mesh sieve, and the physical and chemical properties and microbial community structure composition were determined.

[0105] Furthermore, it is necessary to predict and optimize the natural composting parameters of traditional Chinese medicine residues. The specific steps are as follows:

[0106] First, the collected data were preprocessed, with total humic acid and temperature values ​​as target data and the relative abundance of dominant groups in the microbial community as feature data. In order to obtain effective experimental data, it is necessary to process the error values, missing values ​​and outliers in the natural composting experimental data of traditional Chinese medicine residues, and normalize the effective experimental data set.

[0107] Secondly, the Pearson correlation coefficient method was used to extract bacterial species with high correlation between total humic acid and temperature, reducing the feature dimension and the computational complexity of the prediction. Five microbial communities were selected from the microbial feature combination based on the experience of agricultural and forestry composting experts and microbial characteristics.

[0108] Next, the data set is divided reasonably. Since the total humic acid will gradually accumulate with time, and the temperature will increase first and then decrease with time, it is necessary to ensure that the training set and the test set have complete time characteristics. Therefore, the first two sets of data, totaling 22 samples, are divided into the training set, and the third set of data, totaling 11 samples, is divided into the test set.

[0109] Then, we selected intelligent prediction algorithms: random forest regression algorithm, extreme gradient boosting regression algorithm, K nearest neighbor regression algorithm, decision tree regression algorithm, linear regression algorithm and other machine learning algorithms for comparative experiments. The prediction results of the model training set were compared. Figure 4 and Figure 5 As shown, the model test set prediction results are compared Figure 6 and Figure 7 The mean square error (MSE) and the coefficient of determination (R 2 ) as the evaluation index, and use grid search and cross validation to optimize the model hyperparameters, and select the model with the smallest MSE value and R 2 The prediction result closest to 1 is the optimal result, and the corresponding parameter is the optimal parameter.

[0110] According to the prediction results and evaluation indicators, the random forest regression algorithm was selected as the optimal algorithm for subsequent composting parameter optimization experiments.

[0111] Finally, taking the maximum total humic acid and temperature as the goal, the NSGA-II multi-objective optimization algorithm was combined to find the microbial community ratio that simultaneously achieved the maximum values ​​of total humic acid and temperature.

[0112] Establish a multi-objective planning model, set the objective function, decision variables and constraints as follows:

[0113]

[0114] Among them, x i is the decision variable; i is the lower limit of the decision variable; b i is the upper limit of the decision variable; f1 is the predicted target total humic acid; f2 is the predicted target temperature.

[0115] The multi-objective optimization algorithm was used to solve the multi-objective planning model. After comparing the optimization effects of the multi-objective genetic algorithm, multi-objective particle swarm algorithm, multi-objective whale algorithm, and reinforcement learning algorithm, the multi-objective genetic algorithm was selected as the best multi-objective optimization algorithm. The non-inferior solution set in which the total humic acid and temperature simultaneously reached the maximum value was found, and then the optimal temperature, humic acid index, and the ratio of each microbial community and the required time were selected according to the needs of the natural composting experiment of traditional Chinese medicine residue.

[0116] Since humic acid will gradually accumulate over time, and temperature will increase first and then decrease over time, it is obvious that total humic acid and temperature will show a contradictory phenomenon after a period of time. In actual biocomposting, after considering economic factors, it is believed that total humic acid should account for the majority. Therefore, when determining the characteristic data set, after the total humic acid reaches a relatively high content, the temperature must be kept as high as possible. Please refer to Figure 5 , based on the above standards, a non-inferior solution with a total humic acid content of (350, 400) and a higher temperature should be selected. The total humic acid and temperature values ​​are shown in the following table:

[0117] Total humic acid (g / kg) Temperature(℃) 376.5995333 53.54 376.8498667 52.95 386.6183333 52.29 388.879 51.47 391.0387333 51.31 350.5385333 54.64 396.0556 47.2 400.082 43.77 405.6748667 42.13

[0118] The characteristic data group corresponding to the non-inferior solution, i.e., the microbial community ratio, is shown in the following table:

[0119] time Bacterial Agent 1 Bacterial Agent 2 Bacterial Agent 3 Bacterial Agent 4 Bacterial Agent 5 84.97 5.276E-07 4.244E-04 9.629E-14 9.972E-01 2.389E-03 79.89 3.943E-08 5.708E-04 2.196E-07 9.971E-01 2.280E-03 81.58 1.146E-06 5.312E-04 2.014E-07 9.965E-01 3.010E-03 82.04 6.881E-06 5.078E-04 5.803E-08 9.967E-01 2.762E-03 85.00 3.084E-06 5.329E-04 3.688E-07 9.963E-01 3.117E-03 81.02 1.019E-04 6.892E-05 1.154E-10 9.990E-01 8.418E-04 82.74 7.563E-07 6.318E-04 0.000E+00 9.957E-01 3.639E-03 81.17 0.000E+00 9.970E-04 0.000E+00 9.940E-01 5.019E-03 81.80 7.046E-06 9.416E-04 3.106E-08 9.937E-01 5.377E-03

[0120] The technical solution of the present invention is also applicable to actual composting processes, has a guiding role in agricultural and forestry production and operations, and is portable.

[0121] In the biological field, according to the actual situation, natural composting experiments are set up with the conditions and materials required for specific production operations. Define the data collection standards, collect the values ​​of each parameter in detail according to the number of days, and repeat the experiment as much as possible to provide a large amount of objective data support for the subsequent model prediction and target optimization of the program.

[0122] In the field of artificial intelligence, it is divided into two aspects: model prediction and target optimization.

[0123] In terms of model prediction, the specific steps are as follows:

[0124] First, the target and feature data are determined, and the recorded biological experimental data are preprocessed using data-driven technology. It is necessary to detect and process the error values, missing values, and outliers in the natural composting experimental data of traditional Chinese medicine residues, so as to obtain valid experimental data and standardize the valid experimental data set.

[0125] Then, the data set needs to be divided based on the number of experimental groups, with at least 2 / 3 of the experimental data being used as the training set and at least one group being the test set.

[0126] Finally, the divided training set feature data is used as the input of the intelligent prediction algorithm, and the training set target data is used as the output of the intelligent prediction algorithm. By changing the intelligent prediction algorithm parameters and adopting prediction evaluation indicators, the prediction model is optimized, and the generalization of the prediction model is tested with the test set to improve the generalization ability of the prediction model.

[0127] During this stage, it is necessary to ensure that the predictions of the algorithm model are as accurate as possible, which means that comparative experiments need to be conducted on various models, and the intelligent algorithm model whose indicators meet the standards should be selected.

[0128] In terms of target optimization, the specific steps are as follows:

[0129] First, the optimization algorithm is selected according to the parameters that need to be optimized in actual production, such as single-objective optimization genetic algorithm, multi-objective optimization genetic algorithm and multi-objective particle swarm algorithm.

[0130] Secondly, a multi-objective planning model is established, and the connection between the target and the feature data is established with the intelligent prediction model, that is, the objective function is established, and the decision variables and constraints are set, and the optimization algorithm is combined to find the optimal value of the objective function and the feature data group when the optimal value is reached.

[0131] like Figure 2 As shown, an embodiment of the present invention further provides a Chinese medicine residue composting agent preparation system 20 based on artificial intelligence, comprising:

[0132] The acquisition module 21 is used to carry out a natural composting experiment of Chinese medicine residues in an outdoor environment using a nano composting film; obtain target parameters and characteristic parameters in the natural composting experiment of Chinese medicine residues to construct a bacterial preparation data set, and pre-process and divide the data set to obtain a data training set and a test set;

[0133] The processing module 22 is used to use the characteristic parameters and target parameters as the input data and output data of the intelligent prediction algorithm, use different artificial intelligence algorithms to make predictions, determine the final prediction model for the composting parameters of traditional Chinese medicine residue, and evaluate the generalization ability of the prediction model on the test set; through the final prediction model for the composting parameters of traditional Chinese medicine residue, and use a multi-objective optimization algorithm to determine the microbial community ratio that simultaneously reaches the maximum value of total humic acid and temperature.

[0134] The embodiment of the present invention further provides a computing device, comprising: a processor, a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0135] The embodiment of the present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the method described above. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0136] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0137] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0138] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0139] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be determined according to actual needs to achieve the purpose of the solution of this embodiment.

[0140] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0141] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0142] In addition, it should be noted that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understood that all or any steps or components of the method and apparatus of the present invention can be implemented in any computing device (including processors, storage media, etc.) or a network of computing devices in hardware, firmware, software or a combination thereof, which can be achieved by those of ordinary skill in the art using basic programming skills after reading the description of the present invention.

[0143] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.

[0144] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for preparing a Chinese medicine residue composting agent based on artificial intelligence, characterized in that: The method comprises: The experiment of natural composting of Chinese medicine residue was carried out in outdoor environment using nano composting membrane; The target parameters and characteristic parameters in the natural composting experiment of traditional Chinese medicine residues were obtained to construct a bacterial preparation data set, and the data set was preprocessed and divided to obtain a data training set and a test set. The characteristic parameters and target parameters are used as the input data and output data of the intelligent prediction algorithm, and different artificial intelligence algorithms are used for prediction to determine the final prediction model of Chinese medicinal residue composting parameters, and the generalization ability of the prediction model on the test set is evaluated; The final Chinese medicine residue composting parameter prediction model was developed, and the multi-objective optimization algorithm was used to determine the microbial community ratio that simultaneously achieved the maximum values ​​of total humic acid and temperature.

2. The method for preparing the Chinese medicine residue composting agent based on artificial intelligence according to claim 1, characterized in that: The natural composting experiment of Chinese medicine residue was carried out in an outdoor environment using nano composting membrane, including: Identify raw materials for agroforestry composting in outdoor environments; Natural composting experiments were conducted using nano-composting membranes, and the microbial community structure, compost body temperature and humic acid index of the compost products were regularly measured.

3. The method for preparing the Chinese medicine residue composting agent based on artificial intelligence according to claim 2, characterized in that: The target parameters and characteristic parameters of the natural composting experiment of traditional Chinese medicine residue were obtained to construct a bacterial preparation data set, and the data set was preprocessed and divided to obtain a data training set and a test set, including: Taking total humic acid and temperature values ​​as target values ​​and the relative abundance of dominant groups of microbial communities as characteristic data, the error values, missing values ​​and outliers in the natural composting experimental data of traditional Chinese medicine residues were detected and preprocessed to obtain valid experimental data, and the valid experimental data set was normalized. The normalization calculation formula is: Among them, x min Indicates the minimum value of sample data; x max Indicates the maximum value of sample data; x new represents the normalized data, x new The value range of is [0, 1]; The corresponding microbial communities were extracted based on the Pearson correlation coefficient between total humic acid and temperature; The microbial community was divided into training and testing sets.

4. The method for preparing the Chinese medicine residue composting agent based on artificial intelligence according to claim 3 is characterized in that: The characteristic parameters and target parameters are used as the input data and output data of the intelligent prediction algorithm, and different artificial intelligence algorithms are used for prediction to determine the final prediction model of Chinese medicinal residue composting parameters, and the generalization ability of the prediction model on the test set is evaluated, including: According to the characteristic parameters and target parameters, the intelligent prediction algorithm is compared and tested to obtain the comparison results; According to the comparison results, The intelligent prediction algorithm is evaluated to obtain the evaluation index results, where MSE represents mean square error; R 2 represents the coefficient of determination; m represents the amount of sample data; y i represents the actual value of the target; f(x i ) represents the model target prediction value; represents the target actual mean; According to the evaluation index results, the corresponding intelligent prediction algorithm is determined, and the hyperparameters of the determined intelligent prediction algorithm are optimized to obtain the optimization results; the final parameters are determined according to the optimization results; The final parameters are tested through the test set to determine the final prediction algorithm.

5. The method for preparing the Chinese medicine residue composting agent based on artificial intelligence according to claim 4, characterized in that: Through the final prediction model of Chinese medicine residue composting parameters, the multi-objective optimization algorithm is used to determine the microbial community ratio that can simultaneously achieve the maximum value of total humic acid and temperature, including: Establish a mathematical model between the predicted target data and the input feature data; According to the mathematical model, a multi-objective planning model is established, and the objective function, decision variables and constraints of the multi-objective planning model are set; The multi-objective optimization algorithm was used to solve the multi-objective programming model to obtain the microbial community ratio that simultaneously achieved the maximum values ​​of total humic acid and temperature.

6. The method for preparing the Chinese medicine residue composting agent based on artificial intelligence according to claim 5, characterized in that: The calculation formula of the mathematical model is: Among them, f(X) represents the target data; m represents the number of features; a i represents the feature weight coefficient; b i represents the feature bias parameter; n i Represents the corresponding feature index; c represents a constant; X represents feature data, i represents index, and the value range of i is [1, m].

7. The method for preparing the Chinese medicine residue composting agent based on artificial intelligence according to claim 6, characterized in that: The formula of the multi-objective programming model is: Among them, x i represents the decision variable; g i represents the lower limit of the decision variable; h i represents the upper limit of the decision variable; f1 represents the predicted target total humic acid; f2 represents the predicted target temperature.

8. A system for preparing Chinese medicine residue composting agent based on artificial intelligence, characterized in that: include: Obtain the module and use the nano composting membrane to carry out the natural composting experiment of traditional Chinese medicine residue in outdoor environment; The target parameters and characteristic parameters in the natural composting experiment of traditional Chinese medicine residues were obtained to construct a bacterial preparation data set, and the data set was preprocessed and divided to obtain a data training set and a test set. The processing module is used to use the characteristic parameters and target parameters as the input data and output data of the intelligent prediction algorithm, adopt different artificial intelligence algorithms to make predictions, and evaluate the generalization ability of the prediction model on the test set to determine the final prediction model for the composting parameters of traditional Chinese medicine residue; through the final prediction model for the composting parameters of traditional Chinese medicine residue, and use a multi-objective optimization algorithm to determine the microbial community ratio that simultaneously reaches the maximum value of total humic acid and temperature.

9. A computing device, characterized in that include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Traditional Chinese medicine waste compost quality evaluation method and system

    CN120746397A

  • A method and system for evaluating the quality of traditional Chinese medicine waste compost

    CN120746397B

  • Aerobic composting intelligent control method based on artificial intelligence

    CN120864913A

  • Intelligent pollutant treatment method and system and medium

    CN121051361A