Method for predicting efficiency of removing heavy metals in mine wastewater by constructed wetland through machine learning

By processing wetland data with machine learning technology, a multi-metal removal efficiency prediction model is constructed, which solves the problem of poor prediction performance of traditional models, achieves accurate prediction and stability improvement of wetland treatment efficiency, reduces operating costs and reduces environmental risks.

CN118863128APending Publication Date: 2024-10-29CHINA UNIV OF GEOSCIENCES (WUHAN)
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410858261.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Traditional models cannot accurately predict the heavy metal removal efficiency of constructed wetlands in treating mine wastewater under different conditions, resulting in limited application.

Method used

Using machine learning methods, by obtaining wetland inflow and outflow parameter data, time series data and attribute data, we perform data cleaning, feature engineering and model training, build multiple machine learning models to predict the removal efficiency of heavy metals, and select the optimal model.

Benefits of technology

It achieves accurate prediction of multi-metal removal efficiency, improves wetland treatment efficiency and stability, provides scientific decision-making basis, reduces operating costs and reduces environmental risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118863128A_ABST
    Figure CN118863128A_ABST
Patent Text Reader

Abstract

The invention provides a method for predicting the efficiency of removing heavy metals in mine wastewater by a constructed wetland through machine learning, and relates to the field of multi-metal removal efficiency prediction.The method comprises the steps that a plurality of machine learning models are constructed, the machine learning models are trained and verified through a training set and a test set, and the trained machine learning models are obtained; obtaining the prediction removal efficiency of each metal output by each trained machine learning model; and calculating an R2 index and an RMSE index of each trained machine learning model through prediction removal efficiency and actual removal efficiency, evaluating each trained machine learning model through the R2 index and the RMSE index, and selecting an optimal machine learning model to realize prediction of the multi-metal removal efficiency. According to the method, the influence of the wetland water inlet parameters, the wetland water outlet parameters, the wetland attribute parameters and the time on the multi-metal removal efficiency is comprehensively considered, and the accurate prediction of the multi-metal removal efficiency can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of multi-metal removal efficiency prediction, and in particular to a method for predicting the efficiency of heavy metal removal in mining wastewater by artificial wetlands through machine learning. Background Art

[0002] Acid mine drainage (AMD) is an environmental pollution problem caused by the development of mineral resources. The main characteristics of AMD are extremely low pH value and high concentrations of heavy metals and sulfates, which pose a serious threat to aquatic ecosystems and human health. Traditional AMD treatment technologies mainly include chemical neutralization, precipitation and adsorption. Although these methods have significant effects to a certain extent, they are often costly and may cause secondary pollution.

[0003] Constructed wetlands are considered a sustainable and cost-effective method for treating AMD. Constructed wetlands simulate the water purification function of natural wetlands and use the combined effects of plants, microorganisms and underlying substrates to increase the pH of AMD and remove pollutants, especially heavy metals, from the water. However, the efficiency of constructed wetlands in treating AMD is affected by many factors, including wetland design, operating conditions, and influent quality and quantity. Although constructed wetlands have shown good removal efficiency in practical applications, the volatility and poor predictability of their performance remain an important technical challenge. Traditional models often cannot accurately predict the treatment effects of wetlands under different conditions, making it difficult to take effective remedial measures in a timely manner under special circumstances, limiting the application of this technology in a wider range of scenarios. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a method for machine learning to predict the efficiency of artificial wetlands in removing heavy metals from mine wastewater, which is used to solve the problem that traditional models often cannot accurately predict the treatment effect of wetlands under different conditions.

[0005] The present invention provides a method for predicting the efficiency of artificial wetlands in removing heavy metals from mine wastewater by machine learning, comprising:

[0006] S1: Obtain wetland inflow parameter data, wetland outflow parameter data, time series data and wetland attribute data;

[0007] S2: Extract the influent concentration of each metal from the wetland inflow parameter data, extract the effluent concentration of each metal from the wetland outflow parameter data, and calculate the actual removal efficiency of each metal through the influent concentration and effluent concentration;

[0008] S3: Perform data cleaning, preprocessing and feature engineering on wetland inflow parameter data, wetland outflow parameter data, time series data and wetland attribute data to obtain training sets and test sets;

[0009] S4: construct multiple machine learning models, train and validate each machine learning model through training sets and cross-validation, obtain each trained machine learning model and cross-validation correlation coefficient, and obtain the predicted removal efficiency of each metal output by each trained machine learning model;

[0010] S5: Calculate the R of each trained machine learning model on the test set by predicting the removal efficiency and the actual removal efficiency 2 Indicators and RMSE indicators, through R 2 The indicators and RMSE indicators were used to evaluate each trained machine learning model, and the optimal machine learning model was selected to achieve the prediction of multi-metal removal efficiency.

[0011] Preferred:

[0012] Wetland inflow parameter data include: inflow pH, inflow chemical oxygen demand COD, inflow acidity, inflow total dissolved solids TDS, inflow electrical conductivity EC, inflow sulfate concentration SO4 2- , total iron inlet concentration, manganese inlet concentration, aluminum inlet concentration, zinc inlet concentration, nickel inlet concentration, cobalt inlet concentration and chromium inlet concentration;

[0013] Wetland outflow parameter data include: outflow pH, outflow chemical oxygen demand COD, outflow acidity, outflow total dissolved solids TDS, outflow conductivity EC, outflow sulfate concentration SO4 2- , total iron effluent concentration, manganese effluent concentration, aluminum effluent concentration, zinc effluent concentration, nickel effluent concentration, cobalt effluent concentration and chromium effluent concentration;

[0014] The time series data are the number of days the wetland was in operation;

[0015] Wetland attribute data include: length, width and depth.

[0016] Preferred:

[0017] The calculation formula for the actual removal efficiency of each metal is:

[0018]

[0019] Among them, X represents the type number of the metal, C i_X represents the concentration of metal X entering water, C o_X Represents the effluent concentration of metal X.

[0020] Preferably, step S3 specifically comprises:

[0021] S31: Use statistical methods to correct or exclude outliers, fill missing values, and improve the comparability of data between different features through z-score standardization to obtain feature data sets for wetland inflow parameter data, wetland outflow parameter data, time series data, and wetland attribute data;

[0022] S32: performing feature engineering processing based on hierarchical clustering and feature importance on the feature data set to obtain an optimized feature data set;

[0023] S33: Divide the optimized feature dataset into a training set and a test set.

[0024] Preferred:

[0025] The transformation function for z score standardization is:

[0026]

[0027] Among them, z is the standardized dimensionless variable, x is the observed value, μ is the mean of the population data, and σ is the standard deviation of the population data.

[0028] Preferably, step S32 is specifically:

[0029] S321: performing hierarchical clustering on the correlation matrix between the features in the feature data set to obtain a hierarchical clustering cluster;

[0030] S322: Calculate the importance score of each feature in the feature data set;

[0031] S323: retain the features with the highest importance scores in each level of clustering, remove the remaining features, and obtain an optimized feature data set.

[0032] Preferably, step S4 is specifically:

[0033] S41: Set the hyperparameters of each machine learning model, input the training set into each machine learning model, and calculate the cross-validation correlation coefficient Q of each machine learning model. 2 CV ;

[0034] S42: Repeat step S41 until the maximum number of iterations is reached, obtain all cross-validation correlation coefficients of each machine learning model, and take the machine learning model with the largest cross-validation correlation coefficient among all machine learning models as the trained machine learning model.

[0035] Preferred:

[0036] Cross-validation correlation coefficient Q 2 CV The expression is:

[0037]

[0038] Among them, j is the number of the feature data, is the predicted removal efficiency of feature data j, is the actual removal efficiency of feature data j, is the average of all predicted removal efficiencies, and n is the number of feature data.

[0039] Preferably, step S5 is specifically:

[0040] S51: Calculate the R of each trained machine learning model on the test set 2 The indicator is calculated as follows:

[0041]

[0042] S52: Calculate the RMSE index of each trained machine learning model on the test set. The calculation formula is:

[0043]

[0044] Among them, j is the number of the feature data, is the predicted removal efficiency of feature data j, is the actual removal efficiency of feature data j, is the average of all predicted removal efficiencies, and n is the number of characteristic data;

[0045] S53: R 2 The trained machine learning models are screened with the goal of maximizing the indicator and minimizing the RMSE indicator to obtain the optimal machine learning model.

[0046] A system for machine learning to predict the efficiency of artificial wetlands in removing heavy metals from mine wastewater, including: a processor and a storage medium; the processor loads and executes instructions and data in the storage medium to implement the method of machine learning to predict the efficiency of artificial wetlands in removing heavy metals from mine wastewater.

[0047] The present invention has the following beneficial effects:

[0048] The actual removal efficiency of each metal is obtained by calculating the inlet concentration and the outlet concentration, and the training set and the test set are obtained through the wetland inflow parameter data, the wetland outflow parameter data, the time series data and the wetland attribute data. The trained machine learning model is constructed using the training set and the test set, and the optimal machine learning model is selected through the actual removal efficiency and the predicted removal efficiency. The effects of wetland inlet parameters, wetland outlet parameters, wetland attribute parameters and time on the removal efficiency of multiple metals are comprehensively considered, and accurate prediction of the removal efficiency of multiple metals can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 This is a flow chart of a method according to an embodiment of the present invention;

[0050] Figure 2 This is a system structure diagram of an embodiment of the present invention;

[0051] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0052] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0053] The use of machine learning technology to develop new prediction models can effectively solve the problem that it is difficult to predict the treatment effect based on the AMD water quality entering the constructed wetland in traditional methods. The machine learning model can process a large amount of environmental data and complex nonlinear relationships. By learning the patterns and laws in historical data, it can predict the metal removal efficiency under different operating conditions and provide scientific data support and decision-making basis for the design and operation of constructed wetlands. Therefore, the development of a prediction method based on machine learning has important practical application value for improving the efficiency and stability of AMD treatment in constructed wetlands.

[0054] Reference Figure 1 , the present application provides a method for predicting the efficiency of artificial wetlands in removing heavy metals from mine wastewater by machine learning, comprising:

[0055] S1: Obtain wetland inflow parameter data, wetland outflow parameter data, time series data and wetland attribute data;

[0056] Furthermore, the wetland inflow parameter data include: inflow pH, inflow chemical oxygen demand COD, inflow acidity, inflow total dissolved solids TDS, inflow electrical conductivity EC, inflow sulfate concentration SO4 2- , total iron inlet concentration, manganese inlet concentration, aluminum inlet concentration, zinc inlet concentration, nickel inlet concentration, cobalt inlet concentration and chromium inlet concentration;

[0057] Wetland outflow parameter data include: outflow pH, outflow chemical oxygen demand COD, outflow acidity, outflow total dissolved solids TDS, outflow conductivity EC, outflow sulfate concentration SO4 2- , total iron effluent concentration, manganese effluent concentration, aluminum effluent concentration, zinc effluent concentration, nickel effluent concentration, cobalt effluent concentration and chromium effluent concentration;

[0058] The time series data are the number of days the wetland was in operation;

[0059] Wetland attribute data include: length, width and depth.

[0060] Specifically, wetland attribute data also includes other data such as the presence or absence of plants.

[0061] S2: Extract the influent concentration of each metal from the wetland inflow parameter data, extract the effluent concentration of each metal from the wetland outflow parameter data, and calculate the actual removal efficiency of each metal through the influent concentration and effluent concentration;

[0062] Furthermore, the calculation formula for the actual removal efficiency of each metal is:

[0063]

[0064] Among them, X represents the type number of the metal, C i_X represents the concentration of metal X entering water, C o_X Represents the effluent concentration of metal X.

[0065] S3: Perform data cleaning, preprocessing and feature engineering on wetland inflow parameter data, wetland outflow parameter data, time series data and wetland attribute data to obtain training sets and test sets;

[0066] Furthermore, after data collection is completed, data cleaning and preprocessing are required. Data cleaning and preprocessing can not only remove some noise data or features, but also convert the data into a form suitable for input model, which can greatly improve the accuracy and efficiency of the fitting model, see step S3 for details.

[0067] Step S3 is specifically as follows:

[0068] S31: Use statistical methods to correct or exclude outliers, fill missing values, and improve the comparability of data between different features through z-score standardization to obtain feature data sets for wetland inflow parameter data, wetland outflow parameter data, time series data, and wetland attribute data;

[0069] Specifically, outlier detection and processing: use statistical methods (such as box plots) to detect outliers, and if outliers are found, they can be corrected or excluded;

[0070] Missing value handling: Identify and handle any missing data. You can use the mean, median, or other interpolation methods and model prediction methods to fill in missing values.

[0071] Data standardization: Standardize the predictors to ensure that they have similar distributions, because data of different orders of magnitude will reduce model performance and introduce bias. Here, z-score standardization is used; the z-score standardization method is simple to calculate, improves the comparability of data between different features, and prevents some features from contributing too much to the model;

[0072] Furthermore, the transformation function of z score standardization is:

[0073]

[0074] Among them, z is the standardized dimensionless variable, x is the observed value, μ is the mean of the overall data, and σ is the standard deviation of the overall data;

[0075] The above steps help ensure the quality and consistency of the data for subsequent feature engineering and modeling analysis;

[0076] S32: performing feature engineering processing based on hierarchical clustering and feature importance on the feature data set to obtain an optimized feature data set;

[0077] Specifically, feature engineering: the selection of features cannot be based solely on statistical analysis results, but also needs to consider actual needs and domain knowledge. Considering the different monitoring difficulties and costs of different parameters, for example, the difficulty and cost of monitoring heavy metal concentrations are significantly higher than the conventional water quality parameter pH. Therefore, when selecting the representative features of a cluster, the selection optimization is combined with the feature importance ranking and actual needs;

[0078] Feature engineering can effectively select the most influential features from many possible features and optimize the model structure by removing unnecessary redundant features. This not only improves the operating efficiency of the model, but also enhances the model's predictive ability for specific problems (such as metal removal in acid mine drainage treatment);

[0079] Further, step S32 is specifically as follows:

[0080] S321: performing hierarchical clustering on the correlation matrix between the features in the feature data set to obtain a hierarchical clustering cluster;

[0081] Specifically, hierarchical clustering analysis: by calculating the Pearson correlation coefficient between features, hierarchical clustering is performed based on this. The clustering results are visualized through a dendrogram, which shows the correlation strength between different features and provides a basis for subsequent feature selection;

[0082] S322: Calculate the importance score of each feature in the feature data set;

[0083] Specifically, feature importance analysis: Machine learning-based models (such as random forests) are used to evaluate the importance of each feature to the model's prediction of the target variable to determine their contribution to the model's performance;

[0084] S323: retain the features with the highest importance scores in each level of clustering, remove the remaining features, and obtain an optimized feature data set;

[0085] Specifically, feature selection: combining the results of hierarchical clustering and feature importance analysis, select tree Figure 1 The most important feature in a cluster is taken as the representative feature of the cluster, and the remaining features of the cluster are considered redundant features and removed; finally, considering the difficulty of monitoring different parameters, the feature selection results are optimized in combination with actual needs;

[0086] S33: dividing the optimized feature data set into a training set and a test set;

[0087] Specifically, before building the model, the preprocessed data set needs to be randomly divided into a training set (80%) and a test set (20%) through stratified sampling, so that the training set and the test set are well representative of the sample population.

[0088] S4: construct multiple machine learning models, train and validate each machine learning model through training sets and cross-validation, obtain each trained machine learning model and cross-validation correlation coefficient, and obtain the predicted removal efficiency of each metal output by each trained machine learning model;

[0089] Specifically, five machine learning models were used to construct the relationship model between influencing factors and multi-metal removal efficiency, including random forest RF, extreme gradient boosting XGB, support vector machine SVM, artificial neural network ANN, and K nearest neighbor kNN. These methods were selected because they have strong model fitting capabilities for small data sets and have been widely used in the field of environmental science.

[0090] Furthermore, for machine learning models, in addition to establishing high-quality data sets and necessary data preprocessing, selecting appropriate hyperparameters can also improve the prediction accuracy of the model to a certain extent. Here we use random search for all models to cross-validate the correlation coefficient Q 2 CV The optimal hyperparameters of the model are determined based on the standard, as shown in step S4.

[0091] Step S4 is specifically as follows:

[0092] S41: Set the hyperparameters of each machine learning model, input the training set into each machine learning model, and calculate the cross-validation correlation coefficient Q of each machine learning model. 2 CV ;

[0093] Furthermore, the cross-validation correlation coefficient Q 2 CV The expression is:

[0094]

[0095] Among them, j is the number of the feature data, is the predicted removal efficiency of feature data j, is the actual removal efficiency of feature data j, is the average of all predicted removal efficiencies, and n is the number of feature data.

[0096] S42: Repeat step S41 until the maximum number of iterations is reached, obtain all cross-validation correlation coefficients of each machine learning model, and use the machine learning model with the largest cross-validation correlation coefficient among the machine learning models as the trained machine learning model;

[0097] Specifically, after the model is established, it is necessary to perform cross-validation and test set validation on the model to correctly evaluate its robustness and predictive ability, so as to select a well-trained model. Cross-validation is achieved through the K-fold cross-validation method. K-fold cross-validation is a technique commonly used to estimate performance and prevent overfitting. Here K is 5. The correlation coefficient (Q 2 CV ) and root mean square error (RMSE CV ) to evaluate the robustness of the model. Based on the above indicators, the extreme gradient boosting XGB of the trained model and its optimal hyperparameters are selected, and the prediction results of the model are visualized.

[0098] S5: Calculate the R of each trained machine learning model on the test set by predicting the removal efficiency and the actual removal efficiency 2 Indicators and RMSE indicators, through R 2 The indicators and RMSE indicators were used to evaluate each trained machine learning model, and the optimal machine learning model was selected to achieve the prediction of multi-metal removal efficiency.

[0099] Furthermore, step S5 is specifically as follows:

[0100] S51: Calculate the R of each trained machine learning model on the test set 2 The indicator is calculated as follows:

[0101]

[0102] S52: Calculate the RMSE index of each trained machine learning model on the test set. The calculation formula is:

[0103]

[0104] Among them, j is the number of the feature data, is the predicted removal efficiency of feature data j, is the actual removal efficiency of feature data j, is the average of all predicted removal efficiencies, and n is the number of characteristic data;

[0105] Specifically, the coefficient of determination (R 2 ) and root mean square error (RMSE) as a measure of the model's predictive ability. 2 Greater than 0.6, and R 2 With Q 2 CV When the difference is less than 0.3, the model is considered to be well fitted.

[0106] S53: R 2 The trained machine learning models are screened with the goal of maximizing the index and minimizing the RMSE index to obtain the optimal machine learning model;

[0107] Specifically, for the selection of the optimal machine learning model, R 2 The closer to 1, the better; the smaller and closer to 0, the better the RMSE; after the optimal machine learning model obtains the prediction results of multi-metal removal efficiency, this patent uses feature importance analysis and SHAP analysis to analyze the key influencing factors input into the model (i.e., find out which parameters are more important). The feature importance analysis of this patent is based on the XGB model. In order to avoid the deviation caused by using a single measurement indicator, SHAP evaluation is used to rank the feature importance.

[0108] Features and advantages of the present invention: The present invention uses a machine learning model to analyze and process complex AMD processing data, which enables it to identify and learn complex patterns and relationships in large amounts of data. Through multi-parameter analysis, including the physical structure of the wetland and water quality inflow parameters such as pH and chemical oxygen demand, as well as time series data, the comprehensiveness and accuracy of the prediction results are ensured. In addition, the system is able to adjust the prediction model based on the data collected in real time, optimize the processing process, and clarify the specific contribution of each influencing factor through feature engineering methods such as SHAP value analysis, providing a quantitative basis for operation optimization.

[0109] Compared with traditional methods, the present invention has many advantages. First, it can provide higher prediction accuracy than traditional linear models or empirical models, thereby improving the efficiency and accuracy of metal removal. Secondly, accurate predictions can more reasonably adjust operating strategies, such as the amount of chemicals added and the frequency of maintenance, which can not only reduce operating costs, but also improve the stability and efficiency of the treatment system under variable conditions. In addition, the detailed characteristic impact analysis provided by the present invention helps operators better understand the key influencing factors in the treatment process and provides stronger decision-making support. Finally, by optimizing treatment efficiency and taking timely intervention measures, possible environmental risks and pollutant emissions are reduced, which is more in line with the needs of sustainable development.

[0110] See also Figure 2 , Figure 2 It is a schematic diagram of the working of the hardware system of an embodiment of the present invention, and the hardware system specifically includes: a system 401 for machine learning to predict the efficiency of artificial wetlands in removing heavy metals from mine wastewater, a processor 402 and a storage medium 403.

[0111] A system 401 for predicting the efficiency of artificial wetlands in removing heavy metals from mine wastewater by machine learning: The system 401 for predicting the efficiency of artificial wetlands in removing heavy metals from mine wastewater by machine learning implements the method for predicting the efficiency of artificial wetlands in removing heavy metals from mine wastewater by machine learning.

[0112] Processor 402: The processor 402 loads and executes the instructions and data in the storage medium 403 to implement the method of machine learning to predict the efficiency of artificial wetlands in removing heavy metals from mine wastewater.

[0113] Storage medium 403: The storage medium 403 stores instructions and data; the storage medium 403 is used to implement the method of machine learning to predict the efficiency of artificial wetlands in removing heavy metals from mine wastewater.

[0114] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0115] The serial numbers of the embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. In a unit claim that lists several means, several of these means may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order and these words may be interpreted as identifiers.

[0116] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for predicting the efficiency of artificial wetlands in removing heavy metals from mine wastewater by machine learning, characterized in that: include: S1: Obtain wetland inflow parameter data, wetland outflow parameter data, time series data and wetland attribute data; S2: Extract the influent concentration of each metal from the wetland inflow parameter data, extract the effluent concentration of each metal from the wetland outflow parameter data, and calculate the actual removal efficiency of each metal through the influent concentration and effluent concentration; S3: Perform data cleaning, preprocessing and feature engineering on wetland inflow parameter data, wetland outflow parameter data, time series data and wetland attribute data to obtain training sets and test sets; S4: construct multiple machine learning models, train and validate each machine learning model through training sets and cross-validation, obtain each trained machine learning model and cross-validation correlation coefficient, and obtain the predicted removal efficiency of each metal output by each trained machine learning model; S5: Calculate the R of each trained machine learning model on the test set by predicting the removal efficiency and the actual removal efficiency 2 Indicators and RMSE indicators, through R 2 The indicators and RMSE indicators were used to evaluate each trained machine learning model, and the optimal machine learning model was selected to achieve the prediction of multi-metal removal efficiency.

2. The method for predicting the efficiency of artificial wetlands in removing heavy metals from mine wastewater by machine learning according to claim 1, characterized in that: Wetland inflow parameter data include: inflow pH, inflow chemical oxygen demand COD, inflow acidity, inflow total dissolved solids TDS, inflow electrical conductivity EC, inflow sulfate concentration SO4 2- , total iron inlet concentration, manganese inlet concentration, aluminum inlet concentration, zinc inlet concentration, nickel inlet concentration, cobalt inlet concentration and chromium inlet concentration; Wetland outflow parameter data include: outflow pH, outflow chemical oxygen demand COD, outflow acidity, outflow total dissolved solids TDS, outflow conductivity EC, outflow sulfate concentration SO4 2- , total iron effluent concentration, manganese effluent concentration, aluminum effluent concentration, zinc effluent concentration, nickel effluent concentration, cobalt effluent concentration and chromium effluent concentration; The time series data are the number of days the wetland was in operation; Wetland attribute data include: length, width and depth.

3. The method for predicting the efficiency of artificial wetlands in removing heavy metals from mine wastewater by machine learning according to claim 1, characterized in that: The calculation formula for the actual removal efficiency of each metal is: Among them, X represents the type number of the metal, C i_X represents the concentration of metal X entering water, C o_X Represents the effluent concentration of metal X.

4. The method for predicting the efficiency of artificial wetlands in removing heavy metals from mine wastewater by machine learning according to claim 1, characterized in that: Step S3 is specifically as follows: S31: Use statistical methods to correct or exclude outliers, fill missing values, and improve the comparability of data between different features through z-score standardization to obtain feature data sets for wetland inflow parameter data, wetland outflow parameter data, time series data, and wetland attribute data; S32: performing feature engineering processing based on hierarchical clustering and feature importance on the feature data set to obtain an optimized feature data set; S33: Divide the optimized feature dataset into a training set and a test set.

5. The method for predicting the efficiency of artificial wetlands in removing heavy metals from mine wastewater by machine learning according to claim 4, characterized in that: The standardized conversion function is: Among them, z is the standardized dimensionless variable, x is the observed value, μ is the mean of the population data, and σ is the standard deviation of the population data.

6. The method for predicting the efficiency of artificial wetlands in removing heavy metals from mine wastewater by machine learning according to claim 4, characterized in that: Step S32 is specifically as follows: S321: performing hierarchical clustering on the correlation matrix between the features in the feature data set to obtain a hierarchical clustering cluster; S322: Calculate the importance score of each feature in the feature data set; S323: retain the features with the highest importance scores in each level of clustering, remove the remaining features, and obtain an optimized feature data set.

7. The method for predicting the efficiency of artificial wetlands in removing heavy metals from mine wastewater by machine learning according to claim 1, characterized in that: Step S4 is specifically as follows: S41: Set the hyperparameters of each machine learning model, input the training set into each machine learning model, and calculate the cross-validation correlation coefficient Q of each machine learning model. 2 CV ; S42: Repeat step S41 until the maximum number of iterations is reached, obtain all cross-validation correlation coefficients of each machine learning model, and take the machine learning model with the largest cross-validation correlation coefficient among all machine learning models as the trained machine learning model.

8. The method for predicting the efficiency of artificial wetlands in removing heavy metals from mine wastewater by machine learning according to claim 7, characterized in that: Cross-validation correlation coefficient Q 2 CV The expression is: Among them, j is the number of the feature data, is the predicted removal efficiency of feature data j, is the actual removal efficiency of feature data j, is the average of all predicted removal efficiencies, and n is the number of feature data.

9. The method for predicting the efficiency of artificial wetlands in removing heavy metals from mine wastewater by machine learning according to claim 1, characterized in that: Step S5 is specifically as follows: S51: Calculate the R of each trained machine learning model on the test set 2 The indicator is calculated as follows: S52: Calculate the RMSE index of each trained machine learning model on the test set. The calculation formula is: Among them, j is the number of the feature data, is the predicted removal efficiency of feature data j, is the actual removal efficiency of feature data j, is the average of all predicted removal efficiencies, and n is the number of characteristic data; S53: R 2 The trained machine learning models are screened with the goal of maximizing the indicator and minimizing the RMSE indicator to obtain the optimal machine learning model.

10. A system for machine learning to predict the efficiency of artificial wetlands in removing heavy metals from mine wastewater, characterized by: include: A processor and a storage medium; the processor loads and executes instructions and data in the storage medium to implement the method for machine learning to predict the efficiency of artificial wetlands in removing heavy metals from mine wastewater as described in any one of claims 1 to 9.

Citation Information

Cited By

  • Hazardous waste landfill underground water monitoring project optimization method and system based on artificial intelligence

    CN120387536A

  • Ion dissolution concentration prediction and control method in homogeneous catalytic ozonation system based on LSTM model

    CN120578228A