A method for composting waste vegetables based on artificial intelligence
Patent Information
- Application Number
- CN202411147030.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-08-21
AI Technical Summary
然而,传统的堆肥处理方法存在一些问题,如堆肥过程难以控制、堆肥质量不稳定、堆肥周期长等
[0029] 1. Real-time monitoring and adjustment of composting parameters through artificial intelligence technology can optimize the composting process, shorten the composting cycle, and improve composting efficiency.
Smart Images

Figure CN118652141B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of waste vegetable composting treatment, and in particular to a waste vegetable composting treatment method based on artificial intelligence. Background Art
[0002] With the development of agriculture, the amount of waste vegetables is increasing. Waste vegetables refer to the waste generated during the harvesting, processing, transportation and sales of vegetables, such as leaves, roots and stems. If these waste vegetables are not properly handled, they will not only waste resources but also pollute the environment. Traditional methods of waste vegetable disposal mainly include landfill and incineration, but these methods will occupy a lot of land resources and produce harmful gases and leachate, causing serious harm to the environment.
[0003] Composting is an effective way to deal with waste vegetables. It can convert waste vegetables into organic fertilizer and realize the recycling of resources. However, there are some problems with traditional composting methods, such as the composting process is difficult to control, the compost quality is unstable, and the composting cycle is long. In order to solve these problems, people began to apply artificial intelligence technology to waste vegetable composting.
[0004] Artificial intelligence technology can monitor various parameters in the composting process in real time, such as temperature, humidity, oxygen content, etc., and automatically adjust the composting conditions according to these parameters, thereby improving composting efficiency and quality. In addition, artificial intelligence technology can also optimize the composting process and improve the stability and reliability of composting by analyzing historical data.
[0005] At present, the waste vegetable composting treatment method based on artificial intelligence is still in the development stage and needs to be further improved and optimized. The machine learning algorithm is optimized to better adapt to different composting environments and raw materials. Therefore, the present invention proposes a waste vegetable composting treatment method based on artificial intelligence, which aims to solve the problems existing in the prior art and improve the efficiency and quality of waste vegetable composting treatment. Summary of the invention
[0006] In order to achieve the above object, the present invention proposes a waste vegetable composting method based on artificial intelligence, comprising the following steps:
[0007] S1. First, collect the waste vegetables, and perform preliminary classification and crushing to ensure that the particle size of the waste vegetables is suitable for composting;
[0008] S2. Secondly, multiple monitoring devices are installed in the composting device for real-time monitoring of composting parameters, and the initial materials of tail vegetables, feces and sawdust are mixed in proportion;
[0009] S3, then use the deep neural network to normalize the collected parameters to pave the way for subsequent machine learning algorithms;
[0010] S4. Then, based on historical data, the bat algorithm BA is used to optimize the gradient boosting tree GBDT for model training. According to the real-time monitored environmental parameters, the parameters are adjusted to create suitable composting conditions.
[0011] S5. Finally, when the compost reaches the maturity standard, the automatic control is stopped, the compost is collected, and the quality of the compost is tested to ensure that it meets the organic fertilizer standard;
[0012] The specific steps of using the bat algorithm BA to optimize the gradient boosting tree GBDT in step S4 are as follows:
[0013] S41, first divide the data set into 80% training set and 20% test set;
[0014] S42, then set the basic structure of the GBDT model, including the number of decision trees, tree depth, and learning rate;
[0015] S43, then define the bat algorithm BA, generate a set of initial solutions, that is, hyperparameter configurations, which represent the initial positions of the bats; speed is to assign an initial speed to each solution; frequency is to set the initial frequency of each bat to control the exploration range; loudness and pulse rate are to initialize loudness and pulse rate, these parameters are used to control the breadth and frequency of the search;
[0016] S44, then perform fitness evaluation, use the GBDT model to train each bat solution, and evaluate the model performance on the validation set;
[0017] S45, update position and speed, the position is updated to ,in, is the current position of the i-th bat, represents the speed of the i-th bat; the speed is updated as ,in is the adjustment factor, is the current best solution;
[0018] S46. Finally, continue to adjust the loudness and pulse rate, randomly select a local search area for fine search to improve the quality of the solution, and record the optimal solution found in the current iteration.
[0019] Preferably, the detection equipment in step S2 includes a temperature sensor, a humidity sensor and an oxygen concentration sensor.
[0020] Preferably, the composting parameters in step S2 include temperature, humidity, oxygen content, pH value, carbon-nitrogen ratio, nitrogen content, ventilation volume, water spraying frequency and stirring speed parameters.
[0021] Preferably, the normalization process by the deep neural network in step S3 is:
[0022] S31. First, the neural network is constructed. The input layer receives the original data. The hidden layer designs multiple hidden layers to extract features. The normalization layer normalizes the data in each batch or each layer.
[0023] S32. Assume that the input data is X, and the output after passing through the deep neural network is Y. The deep neural network mapping rule is ,in is a deep neural network, are the parameters of the deep neural network;
[0024] S33, then for each feature have ,in denote the batch mean and variance respectively, is a small constant used to normalize the output to avoid division by zero errors ;
[0025] S34, then define the loss function mean square error, which is used to measure the difference between the predicted output and the target value;
[0026] S35, then perform model training including forward propagation, calculate loss and backward propagation, and use the test set for verification, and calculate the loss value on the test data;
[0027] S36. Finally, the trained model is applied to the actual data to achieve normalization.
[0028] Compared with the prior art, the advantages and positive effects of the present invention are:
[0029] 1. Real-time monitoring and adjustment of composting parameters through artificial intelligence technology can optimize the composting process, shorten the composting cycle and improve composting efficiency.
[0030] 2. Using deep neural networks for normalization and the bat algorithm (BA) to optimize the gradient boosting tree (GBDT) for model training can more accurately predict and adjust composting conditions and ensure the stability of composting quality.
[0031] 3. It realizes automatic control of the composting process, reduces interference from human factors, and improves the scientificity and accuracy of composting treatment. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0033] Figure 1 Schematic diagram of the structure of GBDT optimized for the bat algorithm;
[0034] Figure 2 It is the curve diagram of nitrogen content;
[0035] Figure 3 It is the curve of organic matter content change;
[0036] Figure 4 It is the humidity change curve;
[0037] Figure 5 It is a temperature change curve. DETAILED DESCRIPTION
[0038] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described below in conjunction with embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0039] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways than those described herein. Therefore, the present invention is not limited to the specific embodiments of the following disclosure.
[0040] Embodiment, first is the collection and preliminary treatment of tail vegetables. A large amount of tail vegetables are collected from farmland and vegetable processing plants. These tail vegetables mainly include vegetable leaves, vegetable roots, vegetable stems, etc., which belong to the waste generated by agricultural products during harvesting, processing, transportation and sales. In order to ensure the smooth progress of the composting process, the collected tail vegetables are subjected to preliminary classification and crushing treatment. Specifically, the tail vegetables are crushed to a particle size of 2-3 cm, so that it is easier to decompose and evenly mix with other compost materials. After the preliminary treatment, the crushed tail vegetables are mixed with a certain proportion of organic materials to promote the fermentation process of composting. In the present embodiment, excrement and sawdust are selected as mixed materials and mixed according to the mass ratio of 4:1:1. The selection of this ratio is based on early experimental research, and is intended to provide a suitable carbon-nitrogen ratio for the growth of microorganisms, while ensuring the aeration and moisture regulation ability of the compost pile.
[0041] In order to achieve precise control of the composting process, a variety of monitoring devices are installed in the composting device. These devices include temperature sensors, humidity sensors and oxygen concentration sensors, which are used to monitor the changes of various key parameters in the composting process in real time. Specifically, temperature sensors are installed at different depths of the compost pile to monitor the temperature changes of each layer of the compost. The humidity sensor is used to monitor the moisture content of the composting material to ensure that the humidity during the composting process remains between 40-60%. In addition, the oxygen concentration sensor is used to detect the oxygen content in the pile to prevent anaerobic fermentation due to lack of oxygen during the composting process, thereby affecting the quality of the compost. The data sampling frequency of the above sensors is set to collect data every 30 minutes, and the collected data will be stored in the database in real time for subsequent normalization processing and model training of the deep neural network.
[0042] The data in the composting process fluctuates greatly. In order to make these data more suitable as input for the machine learning model, this embodiment uses a deep neural network to normalize the collected data. The deep neural network model includes an input layer, multiple hidden layers, and a normalization layer. The input layer receives raw data from sensors such as temperature, humidity, and oxygen concentration, and the hidden layer extracts the key features of the data through nonlinear transformation. A normalization layer is set after each hidden layer to perform batch normalization on the data to eliminate the differences between different batches of data, thereby improving the stability and generalization ability of the model. Assume that the input data is X, and the output after passing through the deep neural network is Y, The deep neural network mapping rule is ,in is a deep neural network, is the parameter of the deep neural network; then for each feature have ,in denote the batch mean and variance respectively, is a small constant used to normalize the output to avoid division by zero errors ; Then define the loss function mean square error to measure the difference between the predicted output and the target value; then perform model training including forward propagation, calculate the loss and backward propagation, and use the test set for verification, calculate the loss value on the test data; finally, apply the trained model to the actual data to achieve normalization.
[0043] In order to adjust the composting conditions in real time during the composting process to achieve the best effect, this embodiment introduces a gradient boosting decision tree GBDT model optimized by the bat algorithm. The bat algorithm is an optimization algorithm based on swarm intelligence that can effectively search for the global optimal solution and avoid falling into the local optimum. In the GBDT model training, the collected data set is first divided into 80% training set and 20% test set. The training set is used for parameter learning of the model, and the test set is used to verify the predictive performance of the model. The basic structure of the GBDT model includes parameters such as the number of decision trees, the depth of the tree, and the learning rate. The selection of these parameters has an important impact on the performance of the model. In order to optimize these hyperparameters, this embodiment uses the bat algorithm for tuning. The bat algorithm generates a set of initial solutions and evaluates the model performance based on fitness. The fitness function is calculated based on the performance of the model on the validation set. The better the performance, the higher the fitness. In each iteration, the bat algorithm updates the position and velocity of the solution. The position is updated as ,in, is the current position of the i-th bat, represents the speed of the i-th bat; the speed is updated as ,in is the adjustment factor, The optimized GBDT model is used to analyze the real-time monitoring data of the composting process, and the composting environmental parameters such as ventilation volume, water spraying frequency and stirring speed are automatically adjusted according to the prediction results of the model to create suitable composting conditions.
[0044] When the temperature during the composting process gradually drops below 45 degrees Celsius and the humidity stabilizes between 40-60%, the compost is judged to have reached a mature state. At this point, automatic regulation is stopped and compost samples are collected. In order to verify the advantages of the artificial intelligence-based waste vegetable composting method in improving composting efficiency and quality, a comparative experiment was also designed, using the traditional composting method and the artificial intelligence composting method of the present invention for composting.
[0045] The experimental design is to set up a control group and an experimental group in the experiment. The initial composting materials and environmental conditions of the two groups are kept consistent. The control group uses the traditional manual composting method, while the experimental group uses the composting method based on artificial intelligence. The main parameters of the experiment include temperature, humidity, oxygen concentration and composting cycle. During the experiment, the temperature change curves, humidity control conditions, and the final compost nitrogen content and organic matter content of the two groups were recorded.
[0046] The experimental results are shown in the figure. Figure 2It shows the changes in nitrogen content in the experimental group and the control group. At the beginning, the nitrogen content of the two groups was equivalent. As time went on, the nitrogen content of the two groups showed a trend of first decreasing and then increasing. However, the experimental group increased faster than the control group, and the total amount reached in the end was also larger. Figure 3 It shows the changes in the content of organic matter in the experimental group and the control group. As time goes by, the content of organic matter in the two experimental groups becomes more and more. In addition, the accumulation rate of organic matter in the experimental group is stronger than that in the control group. Figure 4 The humidity curves of the experimental and control groups are shown. As time went on, the humidity of the experimental group dropped to about 50% on the fifth day. At this time, the sensor detected this change and began to intervene, so that the humidity of the experimental group remained at about 50%, improving the efficiency of composting. The experimental group, on the other hand, had a normal temperature drop, and the composting time was slower than that of the experimental group. Figure 5 The temperature curves of the experimental and control groups are shown. For the experimental group, the temperature was quickly raised using artificial intelligence technology. The high temperature environment accelerated the decomposition process and improved efficiency. The temperature reached its highest point around the 8th day and then began to decline. The temperature of the control group did not rise as well as that of the experimental group, reaching its highest temperature around the 25th day, which also made the composting time of the control group longer.
[0047] In summary, it can be seen that the composting cycle of the control group was about 50 days, the temperature rose slowly during the composting process, and the final compost had an organic matter content of 45% and a nitrogen content of 1.2%. In contrast, the composting cycle of the experimental group was significantly shortened to only 35 days. The temperature rose quickly, and the humidity was always controlled within a more suitable range. The final compost organic matter content of the experimental group increased to 55%, and the nitrogen content reached 1.5%.
[0048] The above experiments have verified that the AI-based composting method can significantly shorten the composting cycle, improve composting efficiency, and improve key indicators such as organic matter content and nitrogen content of the compost compared to traditional methods. This shows that the application of AI technology in the composting process has good practicality and promotion value, and can significantly shorten the composting cycle and improve composting efficiency.
[0049] The above description is only a preferred embodiment of the present invention and does not limit the present invention in other forms. Any technician familiar with the profession may use the technical content disclosed above to change or modify it into an equivalent embodiment with equivalent changes and apply it to other fields. However, any simple modification, equivalent change and modification made to the above embodiment based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A method for composting waste vegetables based on artificial intelligence, characterized in that: The following steps are involved: S1. First, collect the waste vegetables, and perform preliminary classification and crushing to ensure that the particle size of the waste vegetables is suitable for composting; S2. Secondly, multiple monitoring devices are installed in the composting device for real-time monitoring of composting parameters, and the initial materials of tail vegetables, feces and sawdust are mixed in proportion; S3, then use the deep neural network to normalize the collected parameters to pave the way for subsequent machine learning algorithms; S4. Then, based on historical data, the bat algorithm BA is used to optimize the gradient boosting tree GBDT for model training. According to the real-time monitored environmental parameters, the parameters are adjusted to create suitable composting conditions. S5. Finally, when the compost reaches the maturity standard, the automatic control is stopped, the compost is collected, and the quality of the compost is tested to ensure that it meets the organic fertilizer standard; The specific steps of using the bat algorithm BA to optimize the gradient boosting tree GBDT in step S4 are as follows: S41, first divide the data set into 80% training set and 20% test set; S42, then set the basic structure of the GBDT model, including the number of decision trees, tree depth, and learning rate; S43, then define the bat algorithm BA, generate a set of initial solutions, that is, hyperparameter configurations, which represent the initial positions of the bats; the speed is to assign an initial speed to each solution; Frequency is to set the initial frequency of each bat, which is used to control the exploration range; Loudness and pulse rate are to initialize loudness and pulse rate, these parameters are used to control the breadth and frequency of the search; S44, then perform fitness evaluation, use the GBDT model to train each bat solution, and evaluate the model performance on the validation set; S45, update position and speed, the position is updated to ,in, is the current position of the i-th bat, represents the speed of the i-th bat; the speed is updated as ,in is the adjustment factor, is the current best solution; S46, finally continue to adjust the loudness and pulse rate, randomly select a local search area for fine search to improve the quality of the solution, and record the optimal solution found in the current iteration; The normalization process of the deep neural network in step S3 is: S31. First, the neural network is constructed. The input layer receives the original data. The hidden layer designs multiple hidden layers to extract features. The normalization layer normalizes the data in each batch or each layer; S32. Assume that the input data is X, and the output after passing through the deep neural network is Y. The deep neural network mapping rule is , where f represents a deep neural network, are the parameters of the deep neural network; S33, then for each feature have ,in denote the batch mean and variance respectively, is a small constant used to normalize the output to avoid division by zero errors ; S34, then define the loss function mean square error, which is used to measure the difference between the predicted output and the target value; S35, then perform model training including forward propagation, calculate loss and backward propagation, and use the test set for verification, and calculate the loss value on the test data; S36. Finally, the trained model is applied to the actual data to achieve normalization.
2. The artificial intelligence-based waste vegetable composting method according to claim 1, characterized in that: The detection equipment in step S2 includes a temperature sensor, a humidity sensor and an oxygen concentration sensor.
3. The artificial intelligence-based waste vegetable composting method according to claim 1, characterized in that: The composting parameters in step S2 include temperature, humidity, oxygen content, pH value, carbon-nitrogen ratio, nitrogen content, ventilation volume, water spraying frequency and stirring speed parameters.
