An evaluation method and system for urban waste classification based on machine learning

Through the multi-layer recurrent neural network and LASSO regression model based on machine learning, the amount of garbage generated and influencing factors are identified, which solves the problem of low accuracy of traditional models in garbage prediction and classification effectiveness identification, and achieves higher prediction accuracy and influencing factors. Identification improves the efficiency of waste management decision-making.

CN114169730BActive Publication Date: 2024-10-22WENZHOU VOCATIONAL COLLEGE OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111448267.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2024-10-22
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

Traditional waste generation prediction models tend to ignore the nonlinear relationship between social factors and residents' internal factors, which affects the accuracy of waste generation prediction and classification effectiveness identification, resulting in low efficiency of urban solid waste management decision-making.

Method used

Using a machine learning-based method, the multi-layer recurrent neural network (LSTM) model is used to predict the amount of garbage generated, and combined with the LASSO regression model to identify factors affecting the effectiveness of garbage classification, including age, gender, education, garbage classification habits, rewards, punishments and publicity , improve the prediction accuracy and the accuracy of identifying influencing factors.

Benefits of technology

It improves the accuracy of garbage prediction and the stability of results, effectively identifies the main influencing factors of garbage classification effectiveness, improves the identification accuracy, and can more objectively evaluate the effectiveness of garbage classification work.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114169730B_ABST
    Figure CN114169730B_ABST
Patent Text Reader

Abstract

The present invention provides an evaluation method for urban garbage classification based on machine learning, including obtaining the garbage generation of historical quarterly data and dividing it into a training set and a test set in proportion, and further performing data normalization processing; building an LSTM neural network model, inputting the data of the training set and the test set into the LSTM neural network model for training and testing; denormalizing the trained data, outputting the results and describing the structure and parameters of each layer of the model to obtain a trained LSTM neural network model; obtaining the garbage generation of the current quarter; importing the garbage generation of the current quarter into a pre-trained LSTM neural network model for prediction, and obtaining the garbage generation of the next quarter. The implementation of the present invention not only makes the garbage prediction accuracy higher and the prediction results more stable, but also can effectively identify and screen the main influencing factors of garbage classification effectiveness, and improves the recognition accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of garbage classification, and in particular to an evaluation method and system for urban garbage classification based on machine learning. Background Art

[0002] At present, my country is vigorously promoting garbage classification. Timely feedback and management of the effectiveness of garbage classification work are of great strategic significance for alleviating the "garbage siege" and promoting sustainable and high-quality development. Predicting the amount of garbage generated is an important part of promoting the management and improvement of urban solid waste, and can intuitively characterize the current reduction effect of garbage classification. At the same time, as the main body of source classification of domestic waste, the participation of urban residents is a key factor affecting the reduction of garbage. Analyzing and identifying the main factors affecting residents' satisfaction with garbage classification work will also help improve the efficiency of urban garbage management.

[0003] Currently, the common garbage generation prediction models include grey model, time series analysis (Auto-regressive Integrated Moving Average model, ARIMA), etc.; the research methods on the influencing factors of garbage classification mainly include principal component analysis, multivariate regression linear, system dynamic model, etc.

[0004] However, traditional prediction models tend to ignore the nonlinear relationship between garbage generation and social factors (such as infrastructure, residents' living standards, etc.) and residents' internal factors (such as gender, age, education level, etc.), which affects the accuracy of identifying the main influencing factors of garbage generation prediction and garbage classification effectiveness, thereby resulting in inefficient decision-making in urban solid waste management.

[0005] Therefore, it is necessary to establish an efficient garbage classification assessment system to objectively evaluate the garbage classification and reduction effect, which is crucial to promoting the management of urban solid waste. Summary of the invention

[0006] The technical problem to be solved by the embodiments of the present invention is to provide an evaluation method and system for urban garbage classification based on machine learning, which not only makes the garbage prediction accuracy higher and the prediction results more stable, but also can effectively identify and screen the main influencing factors of garbage classification effectiveness, thereby improving the recognition accuracy.

[0007] In order to solve the above technical problems, an embodiment of the present invention provides an evaluation method for urban waste classification based on machine learning, comprising the following steps:

[0008] Obtain the garbage generation amount of each historical quarter, and divide the obtained garbage generation amount of each historical quarter into a training set and a test set in proportion, and further perform data normalization processing so that the sample values ​​are mapped to the (-1, 1) interval;

[0009] A multi-layer recurrent neural network is used to build an LSTM neural network model, a training set is input into the LSTM neural network model for training, and data of a test set is input into the LSTM neural network model for testing, and the trained data is further denormalized, the results are output, and the structure and parameters of each layer of the model are described to obtain a trained LSTM neural network model; wherein the LSTM neural network model is optimized with the Adam algorithm, the root mean square error is selected as the model loss function for model evaluation, and the Dropout method is used to prevent the model from overfitting;

[0010] Obtain the amount of garbage generated in the current quarter, and import the amount of garbage generated in the current quarter into the trained LSTM neural network model for prediction to obtain the amount of garbage generated in the next quarter;

[0011] The predicted garbage generation in the next quarter is compared with the actual garbage generation in the next quarter, and the comparison result is imported into a pre-defined LASSO regression model for calculation to obtain residents' satisfaction with garbage classification; wherein, the independent variables of the LASSO regression model are factors affecting the effectiveness of garbage classification, including age, gender, education level, garbage classification habits, garbage classification rewards, garbage classification penalties and garbage classification publicity.

[0012] The LASSO regression model is constructed by using the LARs package in R language to perform the least angle regression method to implement LASSO regression. The specific construction steps are as follows:

[0013] Step 1: Use the R language function lars() to implement lasso regression analysis and visualization;

[0014] Step 2: Get the independent variable coefficients of the model. 2 =0.348, the model corresponding to the minimum cp value is selected as the optimal model; where cp = 8.000, step = 7;

[0015] Step 3: Obtain the intercept value of the model corresponding to the minimum cp value;

[0016] Step 4: Obtain the LASSO regression model formula.

[0017] Wherein, the multi-layer recurrent neural network has 100 neurons.

[0018] The embodiment of the present invention also provides an evaluation system for urban garbage classification based on machine learning, comprising:

[0019] An acquisition unit is used to acquire the garbage generation amount of a historical quarter, and divide the acquired garbage generation amount of a historical quarter into a training set and a test set in proportion, and further perform data normalization processing so that the sample value is mapped to the (-1, 1) interval;

[0020] A training and testing unit, for building an LSTM neural network model using a multi-layer recurrent neural network, inputting a training set into the LSTM neural network model for training, inputting data of a test set into the LSTM neural network model for testing, and further denormalizing the trained data, outputting results and describing the structure and parameters of each layer of the model to obtain a trained LSTM neural network model; wherein the LSTM neural network model is optimized using an Adam algorithm, a root mean square error is selected as a model loss function for model evaluation, and a Dropout method is used to prevent the model from overfitting;

[0021] The prediction unit is used to obtain the garbage generation amount in the current quarter and import the garbage generation amount in the current quarter into the trained LSTM neural network model for prediction to obtain the garbage generation amount in the next quarter;

[0022] The evaluation unit is used to compare the predicted garbage generation in the next quarter with the actual garbage generation in the next quarter, and import the comparison result into a pre-defined LASSO regression model for calculation to obtain residents' satisfaction with garbage classification; wherein the independent variables of the LASSO regression model are factors affecting the effectiveness of garbage classification, including age, gender, education level, garbage classification habits, garbage classification rewards, garbage classification penalties and garbage classification publicity.

[0023] Wherein, the LASSO regression model is implemented by using the least angle regression method using the LARs package of R language.

[0024] Wherein, the multi-layer recurrent neural network has 100 neurons.

[0025] Implementing the embodiments of the present invention has the following beneficial effects:

[0026] 1. Compared with the traditional garbage generation prediction model, the recurrent neural network LSTM model (average relative error 3.10%) constructed based on machine learning in the present invention is more accurate. LSTM has the characteristics of storing long-term and short-term memory functions when using long short-term memory neural networks. It has higher accuracy and more stable results in urban domestic garbage prediction, and can more objectively evaluate the effectiveness of garbage classification work. Therefore, it can improve the accuracy of garbage prediction and make the prediction results more stable.

[0027] 2. Compared with the traditional garbage classification work effectiveness evaluation model, the LASSO regression (cross validation method and minimum angle regression method (R2 =0.348)) The fitting result is high. LASSO can effectively identify and screen the influencing factors and reduce the complexity of the model. Therefore, it can effectively identify and screen the main influencing factors of garbage classification effectiveness and improve the recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, without paying creative labor, other drawings obtained based on these drawings still belong to the scope of the present invention.

[0029] Figure 1 A flowchart of an evaluation method for urban waste classification based on machine learning provided in an embodiment of the present invention;

[0030] Figure 2 A graph showing changes in the root mean square error (MSE) during the LSTM model training process in an evaluation method for urban waste classification based on machine learning provided in an embodiment of the present invention;

[0031] Figure 3 A comparison chart of the amount of garbage generated in an application scenario of an evaluation method for urban garbage classification based on machine learning provided by an embodiment of the present invention, based on predictions by an LSTM neural network model, predictions by a RIMA model, and actual generation;

[0032] Figure 4 A schematic diagram of visualization of the least angle regression method LASSO-LARs function in an application scenario of an evaluation method for urban waste classification based on machine learning provided by an embodiment of the present invention;

[0033] Figure 5 A structural schematic diagram of an evaluation system for urban waste classification based on machine learning provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0034] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.

[0035] like Figure 1 As shown in the figure, an evaluation method for urban waste classification based on machine learning is proposed in an embodiment of the present invention, comprising the following steps:

[0036] Step S1, obtaining the garbage generation amount of each historical quarter, and dividing the obtained garbage generation amount of each historical quarter into a training set and a test set in proportion, and further performing data normalization processing so that the sample values ​​are mapped to the (-1, 1) interval;

[0037] Step S2, using a multi-layer recurrent neural network to build an LSTM neural network model, inputting the training set into the LSTM neural network model for training, inputting the test set data into the LSTM neural network model for testing, and further denormalizing the trained data, outputting the results and describing the structure and parameters of each layer of the model to obtain a trained LSTM neural network model; wherein the LSTM neural network model is optimized with the Adam algorithm, the root mean square error is selected as the model loss function for model evaluation, and the Dropout method is used to prevent the model from overfitting; Step S3, obtaining the amount of garbage generated in the current quarter, and importing the amount of garbage generated in the current quarter into the trained LSTM neural network model for prediction to obtain the amount of garbage generated in the next quarter;

[0038] Step S4: Compare the predicted garbage generation in the next quarter with the actual garbage generation in the next quarter, and import the comparison result into a pre-defined LASSO regression model for calculation to obtain residents' satisfaction with garbage classification; wherein the independent variables of the LASSO regression model are factors affecting the effectiveness of garbage classification, including age, gender, education level, garbage classification habits, garbage classification rewards, garbage classification penalties and garbage classification publicity.

[0039] The specific process is as follows: in step S1, a simulation model is established using the garbage generation in each quarter of a certain year in Ouhai District as basic data, which specifically includes:

[0040] Step 1: Data acquisition (i.e., garbage generation in historical quarters) and data preprocessing, dividing the data into training and test sets in proportion;

[0041] Step 2: Data normalization is performed to map sample values ​​to the (-1, 1) interval.

[0042] In step S2, first, a multi-layer recurrent neural network (100 neurons) is used to pre-build an LSTM neural network model (programmed using Python Keras package) for garbage generation prediction, and the data is processed; the training set is input into the LSTM neural network model for training, and the test set data is input into the LSTM neural network model for testing; at this time, the LSTM neural network model continuously trains the required data, optimizes it with the Adam algorithm, and selects the mean square error (MSE) as the model loss function for model evaluation (such as Figure 2As shown), the Dropout method is used to prevent the model from overfitting;

[0043] Finally, the predicted (trained) data is denormalized; the results are output and the structure and parameters of each layer of the model are described (as shown in Table 1 below), thereby obtaining a trained LSTM neural network model.

[0044] Table 1

[0045]

[0046] In step S3, the amount of garbage generated in the current quarter is obtained, and then the amount of garbage generated in the current quarter is imported into a pre-trained LSTM neural network model for prediction to obtain the amount of garbage generated in the next quarter.

[0047] In step S4, first, a LASSO regression model is pre-constructed, and the independent variables of the LASSO regression model are the factors affecting the effectiveness of garbage classification, including age, gender, education level, garbage classification habits, garbage classification rewards, garbage classification penalties and garbage classification publicity.

[0048] Among them, the LASSO regression model uses the R language LARs package to perform the minimum angle regression method to implement LASSO regression. The specific construction steps are as follows:

[0049] Step 1: Use the R language function lars() to implement lasso regression analysis and visualization;

[0050] Step 2: Get the independent variable coefficients of the model. 2 =0.348, the model corresponding to the minimum cp value is selected as the optimal model; where cp = 8.000; step = 7, and the independent variables include age, gender, education, garbage classification habits, garbage classification rewards, garbage classification penalties, and garbage classification publicity;

[0051] Step 3: Obtain the intercept value of the model corresponding to the minimum cp value;

[0052] Step 4: Obtain the LASSO regression model formula, and output the residents’ satisfaction with waste classification.

[0053] Finally, the predicted garbage generation in the next quarter is compared with the actual garbage generation in the next quarter, and the comparison results are imported into the pre-defined LASSO regression model for calculation to obtain the residents' satisfaction with garbage classification. The comparison results include satisfaction and dissatisfaction; for example, if the actual garbage generation in the next quarter is higher than the predicted garbage generation in the next quarter, then the residents are dissatisfied; on the contrary, if the actual garbage generation in a quarter is lower than the predicted garbage generation in the next quarter, then the residents are satisfied.

[0054] like Figure 3 to Figure 4 As shown, an application scenario of an evaluation method for urban garbage classification based on machine learning in an embodiment of the present invention is further described:

[0055] Taking Ouhai District of Wenzhou City as the research area, the amount of garbage generated and residents' satisfaction with garbage classification in each quarter from 2012 to 2019 were investigated.

[0056] 1. Comparison of garbage generation: Figure 3 In the figure, we get a comparison chart of the LSTM neural network model prediction value, the RIMA model prediction value and the actual production volume from 2012 to 2019.

[0057] At the same time, it can be seen from Table 2 below that the constructed LSTM model (average relative error 3.10%) is more accurate than the ARIMA (0, 1, 0) model (average relative error 3.64%).

[0058] Table 2

[0059]

[0060] (II) Evaluation of residents’ satisfaction with waste classification:

[0061] In the traditional stepwise regression analysis, four factors were finally selected: age, education level, waste sorting habits, and waste sorting (R 2 =0.317), but not significantly correlated with residents' gender, punishment for garbage sorting, and publicity for garbage sorting. Dependent variable: residents' satisfaction with garbage sorting.

[0062] Among them, the stepwise regression model formula is:

[0063] Y 垃圾分类满意度 =-0.355+0.548X 习惯 +0.424X 奖励 +0.228X 年龄 +0.144X 学历

[0064] Among them, the results of stepwise regression analysis (n=343) are shown in Table 3 below:

[0065] Table 3

[0066]

[0067] like Figure 4 As shown, in the present invention, the independent variable coefficient (R 2 =0.348, cp=8.000, step=7). Dependent variable: residents’ satisfaction with waste sorting.

[0068] Among them, the linear regression model (LASSO-LARs) formula is:

[0069] Y 垃圾分类满意度 =0.326+0.461X 习惯 +0.401X 奖励 +0.302X 宣传 +0.211X 年龄 +0.162X 性别 +0.144X 学历 +0.007X 惩罚

[0070] Among them, the LASSO regression analysis results of the LARs function (n=343) are shown in Table 4 below:

[0071] Table 4

[0072]

[0073] like Figure 5 As shown in the figure, an evaluation system for urban waste classification based on machine learning is proposed in an embodiment of the present invention, comprising:

[0074] The acquisition unit 110 is used to acquire the garbage generation amount of the historical quarter, and divide the acquired garbage generation amount of the historical quarter into a training set and a test set according to a proportion, and further perform data normalization processing to map the sample value to the (-1, 1) interval;

[0075] The training and testing unit 120 is used to build an LSTM neural network model using a multi-layer recurrent neural network, input the training set into the LSTM neural network model for training, input the test set data into the LSTM neural network model for testing, and further denormalize the trained data, output the results and describe the structure and parameters of each layer of the model to obtain a trained LSTM neural network model; wherein the LSTM neural network model is optimized by the Adam algorithm, the root mean square error is selected as the model loss function for model evaluation, and the Dropout method is used to prevent the model from overfitting;

[0076] The prediction unit 130 is used to obtain the garbage generation amount in the current quarter, and import the garbage generation amount in the current quarter into the trained LSTM neural network model for prediction to obtain the garbage generation amount in the next quarter;

[0077] The evaluation unit 140 is used to compare the predicted garbage generation in the next quarter with the actual garbage generation in the next quarter, and import the comparison result into a pre-defined LASSO regression model for calculation to obtain residents' satisfaction with garbage classification; wherein the independent variables of the LASSO regression model are factors affecting the effectiveness of garbage classification, including age, gender, education level, garbage classification habits, garbage classification rewards, garbage classification penalties and garbage classification publicity.

[0078] Wherein, the LASSO regression model is implemented by using the least angle regression method using the LARs package of R language.

[0079] Wherein, the multi-layer recurrent neural network has 100 neurons.

[0080] Implementing the embodiments of the present invention has the following beneficial effects:

[0081] 1. Compared with the traditional garbage generation prediction model, the recurrent neural network LSTM model (average relative error 3.10%) constructed based on machine learning is more accurate. LSTM has the characteristics of storing long-term and short-term memory functions when using long short-term memory neural networks. It has higher accuracy and more stable results in urban domestic garbage prediction, and can more objectively evaluate the effectiveness of garbage classification work. Therefore, it can improve the accuracy of garbage prediction and make the prediction results more stable.

[0082] 2. Compared with the traditional garbage classification work effectiveness evaluation model, the LASSO regression (cross validation method and minimum angle regression method (R 2 =0.348)) The fitting result is high. LASSO can effectively identify and screen the influencing factors and reduce the complexity of the model. Therefore, it can effectively identify and screen the main influencing factors of garbage classification effectiveness and improve the recognition accuracy.

[0083] It is worth noting that in the above system embodiment, the various units included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0084] A person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as ROM / RAM, disk, CD-ROM, etc.

[0085] The above disclosure is only a preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. An evaluation method for urban waste sorting based on machine learning, It is characterized in that The following steps are involved: Obtain the garbage generation amount of each historical quarter, and divide the obtained garbage generation amount of each historical quarter into a training set and a test set in proportion, and further perform data normalization processing so that the sample values ​​are mapped to the (-1, 1) interval; A multi-layer recurrent neural network is used to build an LSTM neural network model, a training set is input into the LSTM neural network model for training, and data of a test set is input into the LSTM neural network model for testing, and the trained data is further denormalized, the results are output, and the structure and parameters of each layer of the model are described to obtain a trained LSTM neural network model; wherein the LSTM neural network model is optimized with the Adam algorithm, the root mean square error is selected as the model loss function for model evaluation, and the Dropout method is used to prevent the model from overfitting; Obtain the amount of garbage generated in the current quarter, and import the amount of garbage generated in the current quarter into the trained LSTM neural network model for prediction to obtain the amount of garbage generated in the next quarter; The predicted garbage generation in the next quarter is compared with the actual garbage generation in the next quarter, and the comparison result is imported into a pre-defined LASSO regression model for calculation to obtain residents' satisfaction with garbage classification; wherein the independent variables of the LASSO regression model are factors affecting the effectiveness of garbage classification, including age, gender, education level, garbage classification habits, garbage classification rewards, garbage classification penalties and garbage classification publicity; The LASSO regression model is implemented by using the LARs package of R language to perform the least angle regression method. The specific construction steps are as follows: Step 1: Use the R language function lars() to implement lasso regression analysis and visualization; Step 2: Get the independent variable coefficients of the model. 2 =0.348, the model corresponding to the minimum cp value is selected as the optimal model; where cp=8.000, step=7; Step 3: Obtain the intercept value of the model corresponding to the minimum cp value; Step 4: Obtain the LASSO regression model formula; The multi-layer recurrent neural network has 100 neurons.

2. An evaluation system for urban waste sorting based on machine learning, It is characterized in that include: An acquisition unit is used to acquire the garbage generation amount of a historical quarter, and divide the acquired garbage generation amount of a historical quarter into a training set and a test set according to a proportion, and further perform data normalization processing so that the sample value is mapped to the (-1, 1) interval; The training and testing unit is used to build an LSTM neural network model using a multi-layer recurrent neural network, input the training set into the LSTM neural network model for training, input the test set data into the LSTM neural network model for testing, and further denormalize the trained data, output the results and describe the structure and parameters of each layer of the model to obtain a trained LSTM neural network model; The LSTM neural network model is optimized using the Adam algorithm, the root mean square error is used as the model loss function for model evaluation, and the Dropout method is used to prevent the model from overfitting. The prediction unit is used to obtain the garbage generation amount in the current quarter and import the garbage generation amount in the current quarter into the trained LSTM neural network model for prediction to obtain the garbage generation amount in the next quarter; An evaluation unit is used to compare the predicted garbage generation in the next quarter with the actual garbage generation in the next quarter, and import the comparison result into a pre-defined LASSO regression model for calculation to obtain residents' garbage classification satisfaction; wherein the independent variables of the LASSO regression model are factors affecting the effectiveness of garbage classification, including age, gender, education level, garbage classification habits, garbage classification rewards, garbage classification penalties and garbage classification publicity; The LASSO regression model is implemented by using the LARs package of R language to perform the least angle regression method. The specific construction steps are as follows: Step 1: Use the R language function lars() to implement lasso regression analysis and visualization; Step 2: Get the independent variable coefficients of the model. 2 =0.348, the model corresponding to the minimum cp value is selected as the optimal model; where cp=8.000, step=7; Step 3: Obtain the intercept value of the model corresponding to the minimum cp value; Step 4: Obtain the LASSO regression model formula; The multi-layer recurrent neural network has 100 neurons.