A method for predicting and treating heavy metals in acid mine drainage based on model analysis
By combining 3D spatial modeling and hybrid model prediction techniques with LSTM networks, the problems of low accuracy and insufficient targeted treatment of heavy metals in acidic mine wastewater have been solved, enabling accurate prediction of heavy metal concentrations and treatment in multiple scenarios.
Patent Information
- Application Number
- CN202611416809.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-14
- Publication Date
- 2026-11-27
AI Technical Summary
Existing heavy metal prediction technologies for acidic mine wastewater have low accuracy, making it difficult to accurately characterize nonlinear concentration fluctuations caused by random disturbances such as rainfall leaching, and they cannot explain the underlying mechanisms of concentration changes, resulting in a lack of targeted treatment solutions.
By employing 3D spatial modeling, dual-mode concentration prediction, and hybrid model physical constraints, a hybrid prediction model integrating mechanistic and data-driven models is constructed. Combined with an LSTM long short-term memory network, the nonlinear fluctuation characteristics of heavy metal concentration are captured, and differentiated treatment solutions are generated through scenario-based process matching.
It enables accurate prediction of heavy metal concentrations and identification of high-risk areas, improving the precision and efficiency of heavy metal pollution prevention and control in mining areas, and adapting to the needs of multi-scenario governance.
Smart Images

Figure CN123182804A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mine wastewater treatment, and more specifically, to a method for predicting and treating heavy metals in acidic mine wastewater based on model analysis. Background Technology
[0002] Acidic mine wastewater is a highly acidic wastewater produced during the oxidation and hydrolysis of sulfide minerals in mineral extraction. It is characterized by low pH, a high concentration of heavy metals, large concentration fluctuations, and long discharge cycles. Heavy metals such as iron, copper, lead, zinc, cadmium, and chromium in the wastewater exhibit bioaccumulation and irreversible toxicity, polluting surrounding soil, surface water, and groundwater through surface runoff and infiltration. This severely damages the mining area's ecosystem and threatens drinking water safety and human health. Accurately predicting the spatiotemporal distribution patterns of heavy metal concentrations and developing differentiated treatment plans are core prerequisites for the scientific prevention and control of water pollution in mining areas.
[0003] However, existing heavy metal prediction technologies for acidic mine wastewater mainly rely on fixed sampling analysis, lacking analytical methods for heavy metal migration and transformation processes based on mechanism-driven and data-driven approaches. Furthermore, they are difficult to accurately characterize nonlinear concentration fluctuations caused by random disturbances such as rainfall leaching and micro-leakage from tailings ponds, resulting in significantly lower prediction accuracy for sudden pollution events. In addition, prediction results are prone to distortion in data-sparse areas and cannot explain the underlying mechanisms of concentration changes, making it difficult to directly guide the formulation of remediation plans.
[0004] To address the aforementioned shortcomings of existing technologies, this invention proposes a model-based method for predicting and treating heavy metals in acidic mine wastewater. By employing techniques such as three-dimensional spatial modeling, dual-mode concentration prediction, hybrid model physical constraints, and scenario-based process matching, this method solves the problems of low prediction accuracy, poor scenario adaptability, and insufficient targeted treatment in traditional methods, providing technical support for the precise prevention and control of heavy metal pollution in mining areas. Summary of the Invention
[0005] This invention overcomes the shortcomings of existing technologies and proposes a method for predicting and treating heavy metals in acidic mine wastewater based on model analysis.
[0006] The first aspect of this invention provides a method for predicting and treating heavy metals in acidic mine wastewater based on model analysis, comprising: S1. Construct a three-dimensional map model based on the target mining area; S2. Sampling and pollutant determination of acidic mine wastewater were carried out at multiple sampling points in the target mining area to form a pollution dataset; S3. Based on the pollution dataset, perform linear regression fitting on the changes in heavy metal concentrations between sampling points, analyze the linear change pattern, and construct the first predicted concentration distribution map in the map model based on the linear prediction data. S4. Construct a hybrid prediction model that integrates the mechanistic model and the data-driven model. The mechanistic model is used to characterize the concentration change law of heavy metal migration and transformation, while the data-driven model uses an LSTM long short-term memory network to capture the nonlinear fluctuation characteristics of time series data. The output of the mechanistic model is embedded as a constraint term into the loss function of the LSTM network to train a scene-adaptive dynamic prediction model of heavy metal concentration and output a second predicted concentration distribution map. S5. Based on the first predicted concentration distribution map, conduct pollution scenario analysis on each sampling point area, and collect the data closest to the effluent water quality data, match the treatment process, and generate the final pollution control plan.
[0007] In this solution, S1 specifically refers to: Collect remote sensing images, topographic elevation data, and mining area layout maps of the target mining area, and extract the boundary outline, total area, and topographic slope information of the mining area. Mark the spatial coordinates of tailings ponds, waste rock dumps, mine drainage outlets, surface runoff nodes, and fixed work points for miners; Based on the density and spatial distribution of sampling points, the study area was divided into multiple square grid pollution units. Each grid unit was associated with corresponding geological parameters, hydrological parameters and land type. The sampling point area consisted of multiple grid units. A visualized three-dimensional map model was constructed based on the geographical information collected.
[0008] In this solution, S2 specifically refers to: The sampling points cover four typical locations: tailings pond leachate collection points, waste rock dump leachate collection points, mine water inflow and drainage outlet collection points, and surface runoff section collection points in the mining area. There are no fewer than 3 collection points for each type, and the total number of sampling points is no fewer than 15. Pollutant concentration data were obtained by measuring the pollutants in the water samples collected at the sampling points. Combined with the temperature and meteorological parameters during the sampling period, a pollution dataset was formed, and the pollution dataset was preprocessed.
[0009] In this solution, S3 specifically refers to: Using the spatial coordinates (x, y), distance from the pollution source, water flow path length, and pH value of each sampling point as independent variables, and the corresponding heavy metal concentration as the dependent variable, a multiple linear regression model is constructed: C = a0 + a1x + a2y + a3L + a4pH + ε, where C is the predicted heavy metal concentration, a0 is the constant term, a1~a4 are the regression coefficients, L is the distance from the pollution source along the water flow direction, ε is the random error term, and x and y are the coordinates; The regression coefficients were solved using the least squares method, and the fit was verified by the coefficient of determination R² and the significance test. For each grid pollution unit, the corresponding spatial and attribute parameters are input to calculate the predicted value of heavy metal concentration under steady-state conditions. The ordinary kriging spatial interpolation method is used to interpolate the predicted values of discrete sampling points into a continuous spatial concentration surface, which is used as its linear variation mode. The data is then mapped to a three-dimensional map model to generate the first predicted concentration distribution map.
[0010] In this solution, S4 specifically refers to: The mechanistic model is represented by data mapping through the linear change pattern in S3, and the continuous spatial concentration surface is used as the basic mechanistic change feature of heavy metal concentration. A long short-term memory (LSTM) network based on an embedded attention mechanism is constructed, with the following structural layers: input layer, first LSTM hidden layer, second LSTM hidden layer, and fully connected output layer. The input features of the input layer include: time-series data of heavy metal concentration for the previous 7 days, pH value, wastewater flow rate, rainfall, temperature, and redox potential for the corresponding time period, with an input step size of 7; the number of neurons in the first LSTM hidden layer and the second LSTM hidden layer are 64 and 32, respectively, and tanh() is used as the activation function. A dropout layer is introduced to prevent overfitting, and the dropout ratio is set to 0.2; the predicted heavy metal concentration values for the next 1 day, 3 days, and 7 days are output through a fully connected output layer. In the prediction process of Long Short-Term Memory Network, the loss function uses the output of the mechanistic model as a constraint term, and the specific calculation is as follows: Loss = Loss_data + λ·Loss_phy; Where Loss is the final loss term, Loss_data is the original LSTM prediction loss term, Loss_phy is the absolute difference between the LSTM prediction value and the mechanistic model prediction value, λ is the balance coefficient with a value range of [0.1, 1.0], and λ·Loss_phy is the additional mechanistic loss term. The Long Short-Term Memory network is iteratively trained with the goal of minimizing the final loss term.
[0011] In this solution, S4 specifically includes: Based on the pollution dataset, the pollution time series data of the most recent period of each grid pollution unit is input into the trained hybrid prediction model to obtain the dynamic prediction values of heavy metal concentrations for different future periods; the heavy metal distribution migration assessment is performed based on the prediction results, and the prediction results are mapped to a three-dimensional map model to generate a second predicted concentration distribution map; Calculate the concentration difference between each preset region in the second predicted concentration distribution map and the first predicted concentration distribution map, and set the mutation threshold to 20% of the first predicted concentration; When the concentration difference in a preset area is greater than the mutation threshold, it is marked as a concentration mutation area; if the interval between concentration mutation areas is within a preset distance, the concentration mutation areas are connected to form a continuous concentration mutation area, which is marked as a high-risk area.
[0012] In this solution, S5 specifically refers to: By overlaying the first and second predicted concentration distribution maps, the concentration fluctuation coefficient, prediction residual, and spatial continuity index of each sampling point area are analyzed to classify each sampling point area into multiple pollution scenarios: In a steady-state linear scenario, the concentration fluctuation coefficient is less than 10%, the relative deviation between the second prediction and the first prediction is less than 15%, the spatial distribution of concentration is continuous, corresponding to a normal migration state without sudden disturbances. In the slow-changing nonlinear scenario, the concentration fluctuation coefficient is 10%~30%, the relative deviation is 15%~30%, and the concentration shows a slow rising and falling trend, corresponding to the slow-changing state under conventional disturbances such as rainfall and flow changes. High-risk scenarios for sudden changes, concentration fluctuation coefficients greater than 30%, relative deviations greater than 30%, and sudden increases in local concentrations correspond to sudden pollution states such as tailings dam leaks and leaching from heavy rainfall.
[0013] In this solution, S5 further includes: A database of acidic mine wastewater treatment processes is pre-constructed, covering process parameters, applicable concentration ranges, heavy metal removal efficiency, operating costs, and land area information for chemical precipitation, sulfide precipitation, biosorption, electrocoagulation, permeable reactive barriers, and constructed wetlands. Different process matching strategies are adopted for different pollution scenarios: In a steady-state linear scenario, based on effluent quality standards and with the goal of minimizing operating costs, a multi-objective optimization algorithm is used to match conventional treatment processes, and a basic process route of "equalization tank, chemical sedimentation, and filtration" is adopted. In the case of slow-changing nonlinear scenarios, a dynamic adjustment module for process load is introduced to match the combination of bioadsorption and chemical precipitation processes that can adapt to concentration fluctuations. A concentration warning threshold is set, and the dosage of reagents is automatically adjusted. For high-risk scenarios of sudden changes, an enhanced process route of "emergency collection pool, electrocoagulation, and activated carbon adsorption" is adopted to match emergency treatment processes. At the same time, an emergency dispatch plan is generated, which clarifies the reagent reserves, treatment capacity and response time. The final pollution control plan is sent to the process treatment terminal.
[0014] A second aspect of the present invention also provides a model-based system for predicting and treating heavy metals in acidic mine wastewater. The system includes a memory, a processor, a database, and a process processing terminal. The memory includes a model-based program for predicting and treating heavy metals in acidic mine wastewater. When the model-based program for predicting and treating heavy metals in acidic mine wastewater is executed by the processor, it performs the steps S1-S5 described above.
[0015] A third aspect of the present invention also provides a computer-readable storage medium comprising a model-based analysis program for predicting and treating heavy metals in acidic mine wastewater. When the model-based analysis program for predicting and treating heavy metals in acidic mine wastewater is executed by a processor, it implements the steps of the model-based analysis method for predicting and treating heavy metals in acidic mine wastewater as described in any of the preceding claims.
[0016] This invention discloses a model-based method for predicting and treating heavy metal pollution in acidic mine wastewater. The method includes constructing a three-dimensional spatial map model of the target mining area; sampling and detecting mine wastewater at multiple points across different time periods to form a pollution dataset; analyzing the steady-state migration patterns of heavy metals through multiple linear regression fitting to generate a first predicted concentration distribution map; constructing a hybrid prediction model integrating a mechanistic model and an attention-based LSTM mechanism, embedding the mechanistic output as a physical constraint term into the loss function for training, and outputting a second predicted concentration distribution map that can identify nonlinear abrupt changes; and classifying pollution scenarios based on the dual prediction maps to match differentiated treatment processes and generate control schemes. This invention can accurately capture the linear and nonlinear variation characteristics of heavy metals, identify high-risk areas of concentration abrupt changes, adapt to differentiated treatment in multiple scenarios, and significantly improve the accuracy and efficiency of heavy metal pollution prevention and control in mining areas. Attached Figure Description
[0017] Figure 1 A flowchart of a method for predicting and treating heavy metals in acidic mine wastewater based on model analysis according to the present invention is shown. Figure 2 A flowchart of the first predicted concentration distribution map construction process of the present invention is shown; Figure 3 A block diagram of a model-based heavy metal prediction and treatment system for acidic mine wastewater according to the present invention is shown. Detailed Implementation
[0018] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0019] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.
[0020] Figure 1 The flowchart of a method for predicting and treating heavy metals in acidic mine wastewater based on model analysis according to the present invention is shown.
[0021] like Figure 1 As shown, the first aspect of this invention provides a method for predicting and treating heavy metals in acidic mine wastewater based on model analysis, comprising: S1. Construct a three-dimensional map model based on the target mining area; S2. Sampling and pollutant determination of acidic mine wastewater were carried out at multiple sampling points in the target mining area to form a pollution dataset; S3. Based on the pollution dataset, perform linear regression fitting on the changes in heavy metal concentrations between sampling points, analyze the linear change pattern, and construct the first predicted concentration distribution map in the map model based on the linear prediction data. S4. Construct a hybrid prediction model that integrates the mechanistic model and the data-driven model. The mechanistic model is used to characterize the concentration change law of heavy metal migration and transformation, while the data-driven model uses an LSTM long short-term memory network to capture the nonlinear fluctuation characteristics of time series data. The output of the mechanistic model is embedded as a constraint term into the loss function of the LSTM network to train a scene-adaptive dynamic prediction model of heavy metal concentration and output a second predicted concentration distribution map. S5. Based on the first predicted concentration distribution map, conduct pollution scenario analysis on each sampling point area, and collect the data closest to the effluent water quality data, match the treatment process, and generate the final pollution control plan.
[0022] According to an embodiment of the present invention, S1 specifically includes: Collect remote sensing images, topographic elevation data, and mining area layout maps of the target mining area, and extract the boundary outline, total area, and topographic slope information of the mining area. Mark the spatial coordinates of tailings ponds, waste rock dumps, mine drainage outlets, surface runoff nodes, and fixed work points for miners; Based on the density and spatial distribution of sampling points, the study area was divided into multiple square grid pollution units. Each grid unit was associated with corresponding geological parameters, hydrological parameters and land type. The sampling point area consisted of multiple grid units. A visualized three-dimensional map model was constructed based on the geographical information collected.
[0023] It should be noted that this map model supports attribute querying of grid cells, hierarchical display of concentration data, and migration path simulation.
[0024] According to an embodiment of the present invention, step S2 specifically includes: The sampling points cover four typical locations: tailings pond leachate collection points, waste rock dump leachate collection points, mine water inflow and drainage outlet collection points, and surface runoff section collection points in the mining area. There are no fewer than 3 collection points for each type, and the total number of sampling points is no fewer than 15. Pollutant concentration data were obtained by measuring the pollutants in the water samples collected at the sampling points. Combined with the temperature and meteorological parameters during the sampling period, a pollution dataset was formed, and the pollution dataset was preprocessed.
[0025] Here, the sampling frequency can be set to once a day, with continuous sampling for no less than 90 days, and sampling frequency increased to once every 6 hours during rainy weather; the heavy metal indicators to be measured can include multiple ones from iron, copper, lead, zinc, cadmium, chromium, manganese and arsenic, and the wastewater pH value, redox potential, flow velocity, flow rate hydrological parameters, as well as the daily rainfall and temperature meteorological parameters are measured simultaneously; the data preprocessing includes: using the 3σ criterion to remove concentration outliers, using linear interpolation to complete missing data, performing min-max normalization on all indicators, and aligning them by timestamp to form a time-series pollution dataset.
[0026] Figure 2 A flowchart illustrating the construction process of the first predicted concentration distribution map of the present invention is shown.
[0027] According to an embodiment of the present invention, step S3 specifically includes: Using the spatial coordinates (x, y), distance from the pollution source, water flow path length, and pH value of each sampling point as independent variables, and the corresponding heavy metal concentration as the dependent variable, a multiple linear regression model is constructed: C = a0 + a1x + a2y + a3L + a4pH + ε, where C is the predicted heavy metal concentration, a0 is the constant term, a1~a4 are the regression coefficients, L is the distance from the pollution source along the water flow direction, ε is the random error term, and x and y are the coordinates; The regression coefficients were solved using the least squares method, and the fit was verified by the coefficient of determination R² and the significance test. For each grid pollution unit, the corresponding spatial and attribute parameters are input to calculate the predicted value of heavy metal concentration under steady-state conditions. The ordinary kriging spatial interpolation method is used to interpolate the predicted values of discrete sampling points into a continuous spatial concentration surface, which is used as its linear variation mode. The data is then mapped to a three-dimensional map model to generate the first predicted concentration distribution map.
[0028] It should be noted that the first predicted concentration distribution map is used to characterize the linear migration and diffusion law of heavy metals along the water flow path under the condition of no sudden disturbance, corresponding to the steady-state pollution scenario.
[0029] According to an embodiment of the present invention, step S4 specifically includes: The mechanistic model is represented by data mapping through the linear change pattern in S3, and the continuous spatial concentration surface is used as the basic mechanistic change feature of heavy metal concentration. A long short-term memory (LSTM) network based on an embedded attention mechanism is constructed, with the following structural layers: input layer, first LSTM hidden layer, second LSTM hidden layer, and fully connected output layer. The input features of the input layer include: time-series data of heavy metal concentration for the previous 7 days, pH value, wastewater flow rate, rainfall, temperature, and redox potential for the corresponding time period, with an input step size of 7; the number of neurons in the first LSTM hidden layer and the second LSTM hidden layer are 64 and 32, respectively, and tanh() is used as the activation function. A dropout layer is introduced to prevent overfitting, and the dropout ratio is set to 0.2; the predicted heavy metal concentration values for the next 1 day, 3 days, and 7 days are output through a fully connected output layer. In the prediction process of Long Short-Term Memory Network, the loss function uses the output of the mechanistic model as a constraint term, and the specific calculation is as follows: Loss = Loss_data + λ·Loss_phy; Where Loss is the final loss term, Loss_data is the original LSTM prediction loss term, Loss_phy is the absolute difference between the LSTM prediction value and the mechanistic model prediction value, λ is the balance coefficient with a value range of [0.1, 1.0], and λ·Loss_phy is the additional mechanistic loss term. The Long Short-Term Memory network is iteratively trained with the goal of minimizing the final loss term.
[0030] Here, in the process of calculating the absolute difference between the LSTM prediction value and the mechanistic model prediction value, the predicted concentration of heavy metals is specifically compared with the prediction parameters in the linear change mode and the LSTM prediction value.
[0031] According to an embodiment of the present invention, step S4 specifically includes: Based on the pollution dataset, the pollution time series data of the most recent period of each grid pollution unit is input into the trained hybrid prediction model to obtain the dynamic prediction values of heavy metal concentrations for different future periods; the heavy metal distribution migration assessment is performed based on the prediction results, and the prediction results are mapped to a three-dimensional map model to generate a second predicted concentration distribution map; Calculate the concentration difference between each preset region in the second predicted concentration distribution map and the first predicted concentration distribution map, and set the mutation threshold to 20% of the first predicted concentration; When the concentration difference in a preset area is greater than the mutation threshold, it is marked as a concentration mutation area; if the interval between concentration mutation areas is within a preset distance, the concentration mutation areas are connected to form a continuous concentration mutation area, which is marked as a high-risk area.
[0032] It should be noted that the pollution time series data refers to the corresponding heavy metal pollution time series data. The preset area can be the sampling point area or a designated pollution core area. The second predicted concentration distribution map is used to characterize the nonlinear fluctuations of heavy metal concentrations under sudden disturbances such as rainfall leaching and tailings dam leakage, and to identify abnormal pollution areas that cannot be covered by conventional linear prediction. Regional connection is achieved by connecting two regions with a straight line on the map model, and the large area formed by the connection is marked as a high-risk area.
[0033] According to an embodiment of the present invention, step S5 specifically includes: By overlaying the first and second predicted concentration distribution maps, the concentration fluctuation coefficient, prediction residual, and spatial continuity index of each sampling point area are analyzed to classify each sampling point area into multiple pollution scenarios: In a steady-state linear scenario, the concentration fluctuation coefficient is less than 10%, the relative deviation between the second prediction and the first prediction is less than 15%, the spatial distribution of concentration is continuous, corresponding to a normal migration state without sudden disturbances. In the slow-changing nonlinear scenario, the concentration fluctuation coefficient is 10%~30%, the relative deviation is 15%~30%, and the concentration shows a slow rising and falling trend, corresponding to the slow-changing state under conventional disturbances such as rainfall and flow changes. High-risk scenarios for sudden changes, concentration fluctuation coefficients greater than 30%, relative deviations greater than 30%, and sudden increases in local concentrations correspond to sudden pollution states such as tailings dam leaks and leaching from heavy rainfall.
[0034] It should be noted that the concentration fluctuation coefficient generally represents the relative fluctuation range of heavy metal concentration within a region over a statistical time window, reflecting the temporal stability of the pollution state. A smaller fluctuation coefficient indicates a smoother concentration change over time, closer to steady-state migration characteristics; a larger fluctuation coefficient indicates a stronger influence of disturbances such as rainfall and seepage, and more significant nonlinear changes. The prediction residual is specifically the relative deviation between the second predicted concentration (output of the hybrid model) and the first predicted concentration (output of the linear regression model). It quantifies the degree to which heavy metal concentration changes deviate from the steady-state linear migration law and is a core indicator for identifying nonlinear pollution behavior. A smaller deviation indicates that the concentration change conforms more closely to the linear migration law; a larger deviation indicates the presence of nonlinear abrupt change factors (such as leaching from heavy rainfall, micro-leakage from tailings dams, etc.).
[0035] The relative deviation is calculated as follows: ; Where R is the relative deviation, and C1 and C2 correspond to the regional values of the first and second predicted concentration distribution maps.
[0036] Spatial continuity indicators are used to characterize the spatial correlation between heavy metal concentrations within a region and the concentrations of neighboring grid cells, reflecting the spatial smoothness and continuity of pollution distribution. Smaller values indicate more continuous spatial distribution of pollution, conforming to the laws of areal migration and diffusion; larger values indicate abrupt changes in local concentrations, suggesting point source leakage or localized high pollution risk. This can also be obtained through linear variation pattern analysis. Furthermore, high-risk areas can be directly included in abrupt high-risk scenarios or used as a reference for determining abrupt high-risk situations.
[0037] According to an embodiment of the present invention, step S5 further includes: A database of acidic mine wastewater treatment processes is pre-constructed, covering process parameters, applicable concentration ranges, heavy metal removal efficiency, operating costs, and land area information for chemical precipitation, sulfide precipitation, biosorption, electrocoagulation, permeable reactive barriers, and constructed wetlands. Different process matching strategies are adopted for different pollution scenarios: In a steady-state linear scenario, based on effluent quality standards and with the goal of minimizing operating costs, a multi-objective optimization algorithm is used to match conventional treatment processes, and a basic process route of "equalization tank, chemical sedimentation, and filtration" is adopted. In the case of slow-changing nonlinear scenarios, a dynamic adjustment module for process load is introduced to match the combination of bioadsorption and chemical precipitation processes that can adapt to concentration fluctuations. A concentration warning threshold is set, and the dosage of reagents is automatically adjusted. For high-risk scenarios of sudden changes, an enhanced process route of "emergency collection pool, electrocoagulation, and activated carbon adsorption" is adopted to match emergency treatment processes. At the same time, an emergency dispatch plan is generated, which clarifies the reagent reserves, treatment capacity and response time. The final pollution control plan is sent to the process treatment terminal.
[0038] It is worth mentioning that traditional predictions are often based on fixed numerical predictions. This invention, through a comprehensive prediction scheme, can analyze the linear and nonlinear variation segments of heavy metals in mine wastewater, match hidden concentration change patterns, and meet the treatment needs of multiple scenarios.
[0039] Figure 3 A block diagram of a model-based heavy metal prediction and treatment system for acidic mine wastewater according to the present invention is shown.
[0040] A second aspect of the present invention also provides a model-based system for predicting and treating heavy metals in acidic mine wastewater. The system includes a memory, a processor, a database, and a process processing terminal. The memory includes a model-based program for predicting and treating heavy metals in acidic mine wastewater. When the model-based program for predicting and treating heavy metals in acidic mine wastewater is executed by the processor, it performs the steps S1-S5 described above.
[0041] When the system is running, it can perform one or more steps of the above-described model-based method for predicting and treating heavy metals in acidic mine wastewater.
[0042] A third aspect of the present invention also provides a computer-readable storage medium comprising a model-based analysis program for predicting and treating heavy metals in acidic mine wastewater. When the model-based analysis program for predicting and treating heavy metals in acidic mine wastewater is executed by a processor, it implements the steps of the model-based analysis method for predicting and treating heavy metals in acidic mine wastewater as described in any of the preceding claims.
[0043] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.
[0044] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0045] In addition, in the various embodiments of the present invention, each functional unit can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0046] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0047] Alternatively, if the integrated units of this invention are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.
[0048] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for predicting and treating heavy metals in acidic mine wastewater based on model analysis, characterized in that, include: S1. Construct a three-dimensional map model based on the target mining area; S2. Sampling and pollutant determination of acidic mine wastewater were carried out at multiple sampling points in the target mining area to form a pollution dataset; S3. Based on the pollution dataset, perform linear regression fitting on the changes in heavy metal concentrations between sampling points, analyze the linear change pattern, and construct the first predicted concentration distribution map in the map model based on the linear prediction data. S4. Construct a hybrid prediction model that integrates the mechanistic model and the data-driven model. The mechanistic model is used to characterize the concentration change law of heavy metal migration and transformation, while the data-driven model uses an LSTM long short-term memory network to capture the nonlinear fluctuation characteristics of time series data. The output of the mechanistic model is embedded as a constraint term into the loss function of the LSTM network to train a scene-adaptive dynamic prediction model of heavy metal concentration and output a second predicted concentration distribution map. S5. Based on the first predicted concentration distribution map, conduct pollution scenario analysis on each sampling point area, and collect the data closest to the effluent water quality data, match the treatment process, and generate the final pollution control plan.
2. The method for predicting and treating heavy metals in acidic mine wastewater based on model analysis according to claim 1, characterized in that, Specifically, S1 is: Collect remote sensing images, topographic elevation data, and mining area layout maps of the target mining area, and extract the boundary outline, total area, and topographic slope information of the mining area. Mark the spatial coordinates of tailings ponds, waste rock dumps, mine drainage outlets, surface runoff nodes, and fixed work points for miners; Based on the density and spatial distribution of sampling points, the study area was divided into multiple square grid pollution units. Each grid unit was associated with corresponding geological parameters, hydrological parameters and land type. The sampling point area consisted of multiple grid units. A visualized three-dimensional map model was constructed based on the geographical information collected.
3. The method for predicting and treating heavy metals in acidic mine wastewater based on model analysis according to claim 2, characterized in that, Specifically, S2 is: The sampling points cover four typical locations: tailings pond leachate collection points, waste rock dump leachate collection points, mine water inflow and drainage outlet collection points, and surface runoff section collection points in the mining area. There are no fewer than 3 collection points for each type, and the total number of sampling points is no fewer than 15. Pollutant concentration data were obtained by measuring the pollutants in the water samples collected at the sampling points. Combined with the temperature and meteorological parameters during the sampling period, a pollution dataset was formed, and the pollution dataset was preprocessed.
4. The method for predicting and treating heavy metals in acidic mine wastewater based on model analysis according to claim 3, characterized in that, Specifically, S3 is: Using the spatial coordinates (x, y), distance from the pollution source, water flow path length, and pH value of each sampling point as independent variables, and the corresponding heavy metal concentration as the dependent variable, a multiple linear regression model is constructed: C = a0 + a1x + a2y + a3L + a4pH + ε, where C is the predicted heavy metal concentration, a0 is the constant term, a1~a4 are the regression coefficients, L is the distance from the pollution source along the water flow direction, ε is the random error term, and x and y are the coordinates; The regression coefficients were solved using the least squares method, and the fit was verified by the coefficient of determination R² and the significance test. For each grid pollution cell, the corresponding spatial and attribute parameters are input, and the predicted value of heavy metal concentration under steady-state conditions is calculated. Using the ordinary kriging spatial interpolation method, the predicted values of discrete sampling points are interpolated into a continuous spatial concentration surface, which is then used as its linear variation pattern. The data is then mapped onto a three-dimensional map model to generate the first predicted concentration distribution map.
5. The method for predicting and treating heavy metals in acidic mine wastewater based on model analysis according to claim 4, characterized in that, Specifically, S4 is: The mechanistic model is represented by data mapping through the linear change pattern in S3, and the continuous spatial concentration surface is used as the basic mechanistic change characteristics of heavy metal concentration. A long short-term memory (LSTM) network based on an embedded attention mechanism is constructed, with the following structural layers: input layer, first LSTM hidden layer, second LSTM hidden layer, and fully connected output layer. The input features of the input layer include: time-series data of heavy metal concentration for the previous 7 days, pH value, wastewater flow rate, rainfall, temperature, and redox potential for the corresponding time period, with an input step size of 7; the number of neurons in the first LSTM hidden layer and the second LSTM hidden layer are 64 and 32, respectively, and tanh() is used as the activation function. A dropout layer is introduced to prevent overfitting, and the dropout ratio is set to 0.2; the predicted heavy metal concentration values for the next 1 day, 3 days, and 7 days are output through a fully connected output layer. In the prediction process of Long Short-Term Memory Network, the loss function uses the output of the mechanistic model as a constraint term, and the specific calculation is as follows: Loss = Loss_data + λ·Loss_phy; Where Loss is the final loss term, Loss_data is the original LSTM prediction loss term, Loss_phy is the absolute difference between the LSTM prediction value and the mechanistic model prediction value, λ is the balance coefficient with a value range of [0.1, 1.0], and λ·Loss_phy is the additional mechanistic loss term. The Long Short-Term Memory network is iteratively trained with the goal of minimizing the final loss term.
6. The method for predicting and treating heavy metals in acidic mine wastewater based on model analysis according to claim 5, characterized in that, Specifically, in S4: Based on the pollution dataset, the pollution time series data of the most recent period of each grid pollution unit is input into the trained hybrid prediction model to obtain the dynamic prediction values of heavy metal concentrations for different future periods. Based on the prediction results, the distribution and migration of heavy metals are assessed, and the prediction results are mapped to a three-dimensional map model to generate a second predicted concentration distribution map. Calculate the concentration difference between each preset region in the second predicted concentration distribution map and the first predicted concentration distribution map, and set the mutation threshold to 20% of the first predicted concentration; When the concentration difference in a preset area is greater than the mutation threshold, it is marked as a concentration mutation area; if the interval between concentration mutation areas is within a preset distance, the concentration mutation areas are connected to form a continuous concentration mutation area, which is marked as a high-risk area.
7. A method for predicting and treating heavy metals in acidic mine wastewater based on model analysis, as described in claim 6, is characterized in that... Specifically, S5 is: By overlaying the first and second predicted concentration distribution maps, the concentration fluctuation coefficient, prediction residual, and spatial continuity index of each sampling point area are analyzed to classify each sampling point area into multiple pollution scenarios: In a steady-state linear scenario, the concentration fluctuation coefficient is less than 10%, the relative deviation between the second and first predictions is less than 15%, the spatial distribution of concentration is continuous, corresponding to a normal migration state without sudden disturbances. In the slow-changing nonlinear scenario, the concentration fluctuation coefficient is 10%~30%, the relative deviation is 15%~30%, and the concentration shows a slow rising and falling trend, corresponding to the slow-changing state under conventional disturbances such as rainfall and flow changes. High-risk scenarios for sudden changes, concentration fluctuation coefficients greater than 30%, relative deviations greater than 30%, and sudden increases in local concentrations correspond to sudden pollution states such as tailings dam leaks and leaching from heavy rainfall.
8. A method for predicting and treating heavy metals in acidic mine wastewater based on model analysis, as described in claim 7, is characterized in that... The S5 also includes: A database of acidic mine wastewater treatment processes is pre-constructed, covering process parameters, applicable concentration ranges, heavy metal removal efficiency, operating costs, and land area information for chemical precipitation, sulfide precipitation, biosorption, electrocoagulation, permeable reactive barriers, and constructed wetlands. Differentiated process matching strategies are adopted for different pollution scenarios: In a steady-state linear scenario, based on effluent quality standards and with the goal of minimizing operating costs, a multi-objective optimization algorithm is used to match conventional treatment processes, adopting the basic process route of "equalization tank, chemical sedimentation, and filtration". In the case of slow-changing nonlinear scenarios, a dynamic adjustment module for process load is introduced to match the combination of bioadsorption and chemical precipitation processes that can adapt to concentration fluctuations. A concentration warning threshold is set, and the dosage of reagents is automatically adjusted. In high-risk scenarios of sudden changes, an enhanced process route of "emergency collection pool, electrocoagulation, and activated carbon adsorption" is adopted to match emergency treatment processes. At the same time, an emergency dispatch plan is generated, which clarifies the reagent reserves, treatment capacity and response time. The final pollution control plan is then sent to the process treatment terminal.
9. A model-based system for predicting and treating heavy metals in acidic mine wastewater, characterized in that, The system includes: a memory, a processor, a database, and a process processing terminal. The memory includes a model-based heavy metal prediction and treatment program for acidic mine wastewater. When the model-based heavy metal prediction and treatment program for acidic mine wastewater is executed by the processor, it implements the steps of the model-based heavy metal prediction and treatment method for acidic mine wastewater as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a model-based heavy metal prediction and treatment program for acidic mine wastewater. When the model-based heavy metal prediction and treatment program for acidic mine wastewater is executed by a processor, it implements the steps of the model-based heavy metal prediction and treatment method for acidic mine wastewater as described in any one of claims 1 to 8.
