Mine pollution assessment and future early warning method and system
Through density functional theory and Transformer time series prediction methods, combined with CNN and Transformer neural network, it solves the high-precision and intelligent problems of mine pollution assessment and future early warning, and achieves efficient assessment and early warning of mine pollution.
Patent Information
- Application Number
- CN202410896659.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-29
AI Technical Summary
Existing technology cannot effectively use theoretical methods such as density functional theory to conduct high-precision assessments of mine pollution, and the degree and level of future warning intelligence are insufficient.
A method based on density functional theory and Transformer time series prediction is used to obtain the migration rate and stability of heavy metal ions by collecting soil samples, preprocessing, building a soil model, and performing DFT calculations, and uses a neural network that combines CNN and Transformer structures. Trend forecast.
It achieves high-precision assessment of mine pollution and prediction of future trends, avoids the high cost and low efficiency of experimental methods, and improves the intelligence and prediction accuracy of early warning.
Smart Images

Figure CN118863641A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of mine pollution and restoration, and in particular relates to a mine pollution assessment and future early warning method and system. Background Art
[0002] Mine environmental issues refer to the study of the pollution and damage to the environment caused by mining activities, such as the destruction of the original terrain, landforms and geological structures. Mine pollution not only damages the ecological environment, but also seriously threatens human health and the sustainable development of social economy. With the improvement of environmental governance requirements and the limitations of traditional technologies, such as insufficient accuracy, low efficiency and poor environmental friendliness, how to conduct large-scale and high-precision monitoring of mine pollution environment is one of the difficult problems in mine environmental restoration and governance. Therefore, there is an urgent need to introduce advanced scientific methods such as quantum mechanics and density functional theory to solve the difficulties of traditional technologies and provide more efficient and accurate solutions for the evaluation of the effectiveness of mine pollution control.
[0003] Therefore, there is an urgent need for a mine pollution assessment and future early warning method based on density functional theory and Transformer time series prediction to address the shortcomings of existing technologies. Summary of the invention
[0004] The purpose of the present invention is to propose a mine pollution assessment and future warning method and system to solve the problem that the existing technology cannot use theoretical methods such as density functional theory to assess mine pollution, and the technical intelligence level and level of future warning based on the assessment results are still insufficient.
[0005] On the one hand, to achieve the above-mentioned purpose, the present invention provides a method for mine pollution assessment and future early warning, comprising the following steps:
[0006] Collecting an initial soil sample, and performing pretreatment and physical and chemical property determination on the initial soil sample;
[0007] Based on the pretreated soil samples, an initial soil model is constructed using the physical and chemical properties of the soil samples, and the initial soil model is optimized in combination with density functional theory to obtain a soil model;
[0008] Performing DFT calculation on the soil model to obtain the electron density function of several sampling points, and then obtaining the migration rate and stability of heavy metal ions;
[0009] Based on the migration rate of the metal ions and the stability of the heavy metal ions, the mine pollution is evaluated and warned in the future.
[0010] According to a mine pollution assessment and future early warning method provided by the present invention, an initial soil sample is collected, and the initial soil sample is pretreated and the physical and chemical properties are measured, including:
[0011] Selecting a soil sample sampling point, and performing sampling based on the soil sample point to obtain the initial soil sample;
[0012] Pre-treating the initial soil sample to obtain the pre-treated soil sample, wherein the pre-treatment includes washing, drying, crushing and screening;
[0013] The physical and chemical properties of the pretreated soil sample are measured to obtain the physical and chemical properties of the soil sample, wherein the physical and chemical properties of the soil sample include the particle size, morphology, pH, composition, type and concentration of heavy metal ions, and crystal structure of the soil sample.
[0014] According to a mine pollution assessment and future early warning method provided by the present invention, based on pretreated soil samples, an initial soil model is constructed using the physical and chemical properties of the soil samples, and the initial soil model is optimized in combination with density functional theory to obtain a soil model, including:
[0015] Based on the pretreated soil sample, according to the physical and chemical properties of the soil sample, an ab initio molecular dynamics method is used to construct the initial soil model;
[0016] The initial soil model is optimized by a density functional theory method to obtain the soil model.
[0017] According to a mine pollution assessment and future early warning method provided by the present invention, DFT calculation is performed on the soil model to obtain the electron density function of several sampling points, and then the migration rate of heavy metal ions and the stability of heavy metal ions are obtained, including:
[0018] Performing DFT calculation, exchange-correlation functional and basis set calculation on the soil model, and configuring convergence criteria and cutoff energy to obtain electron density functions of several sampling points;
[0019] Based on the electron density function of adjacent sampling points, obtaining the heavy metal ion migration rate;
[0020] The heavy metal ion stability is obtained based on the electron density function of the same sampling point at adjacent time points.
[0021] According to a mine pollution assessment and future early warning method provided by the present invention, the heavy metal ion migration rate is:
[0022] J=-D*dC / dx
[0023] D=D0exp(-ΔE / kT)
[0024] Among them, J represents the total flux of heavy metal ions, that is, the migration rate of heavy metal ions to be calculated, D represents the diffusion coefficient, dC / dx represents the gradient of heavy metal ion concentration with spatial coordinates, D0 is the diffusion constant, ΔE refers to the energy required for the migration of heavy metal ions in the soil, k refers to the Boltzmann constant, and T refers to the ambient temperature at the time of sampling.
[0025] According to a mine pollution assessment and future early warning method provided by the present invention, mine pollution is assessed and early warning is provided according to the metal ion migration rate and the stability of the heavy metal ions, including:
[0026] Based on the metal ion migration rate and the heavy metal ion stability, obtaining the mine pollution degree;
[0027] Obtaining time series data of the metal ion migration rate through the metal ion migration rate, wherein the time series data includes target time series data and covariate time series data, and the covariate time series data includes temperature time series data, air pressure time series data and sampling date time series data;
[0028] Based on the time series data of the metal ion migration rate, a trend prediction is performed on the migration rate of the heavy metal ions in the soil to obtain a trend prediction result;
[0029] Based on the mine pollution level and the trend prediction results, future warning of mine pollution is carried out.
[0030] According to a mine pollution assessment and future early warning method provided by the present invention, a neural network based on a combination of CNN and Transformer structures is used to predict the trend of the migration rate of the heavy metal ions in the soil. The neural network based on a combination of CNN and Transformer structures consists of an input layer, an LSTM layer, a position encoding layer, a Transformer layer and a prediction layer.
[0031] On the other hand, to achieve the above-mentioned purpose, the present invention provides a mine pollution assessment and future early warning system, including: a soil sample sampling module, a quantum chemical Gaussian module and an artificial intelligence trend prediction module;
[0032] The soil sample sampling module is used to collect initial soil samples, and perform pretreatment and physical and chemical property determination on the initial soil samples;
[0033] The quantum chemical Gaussian module is used to construct an initial soil model based on the pretreated soil sample using the physical and chemical properties of the soil sample, optimize the initial soil model in combination with density functional theory, obtain the soil model, and perform DFT calculation on the soil model to obtain the electron density function of several sampling points, thereby obtaining the migration rate of heavy metal ions and the stability of heavy metal ions;
[0034] The artificial intelligence trend prediction module is used to evaluate mine pollution and provide future warnings based on the metal ion migration rate and the stability of the heavy metal ions.
[0035] According to a mine pollution assessment and future early warning system provided by the present invention, the artificial intelligence trend prediction module adopts a neural network based on the combination of CNN and Transformer structures, and the neural network based on the combination of CNN and Transformer structures consists of an input layer, an LSTM layer, a position encoding layer, a Transformer layer and a prediction layer.
[0036] According to a mine pollution assessment and future warning system provided by the present invention, the Transformer layer includes an encoder and a fully connected layer;
[0037] The encoder is formed by stacking a plurality of Transformer encoder layers, each of which is composed of a first sub-layer connection structure and a second sub-layer connection structure;
[0038] The first sub-layer connection structure includes a multi-head self-attention layer, a first regularization layer and a first residual connection;
[0039] The second sub-connection structure includes a feed-forward fully connected layer, a second regularization layer and a second residual connection. The present invention has the following beneficial effects:
[0040] (1) The present invention uses density functional theory to quantitatively describe mine pollution from both the spatial and temporal levels, and uses density functional theory to achieve quantum theorization of mine pollution assessment from both the theoretical and quantum mechanical levels;
[0041] (2) The present invention achieves the assessment of mine pollution from a theoretical perspective, avoiding the disadvantages of experimental methods such as high cost, long time consumption, and low efficiency. At the same time, it also uses Transformer to achieve the prediction of future trends of mine pollution and advance prevention plans. The future warning technology based on Transformer has a high degree of intelligence and high prediction accuracy.
[0042] (3) The present invention can utilize theoretical methods such as density functional theory to evaluate mine pollution, and at the same time, based on the evaluation results, a highly intelligent future warning technology is realized based on Transformer, truly realizing a mine pollution assessment and future warning method based on quantum mechanics theory and Transformer intelligent network. In addition, the present invention integrates density functional theory (quantum mechanics) and Transformer (artificial intelligence) methods, and has a high degree of technological advancement. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0044] Figure 1 This is a logical framework principle diagram of a mine pollution assessment and future early warning method according to an embodiment of the present invention;
[0045] Figure 2 The logical framework principle diagram of the LSTM-Transformer proposed in the embodiment of the present invention;
[0046] Figure 3 A schematic diagram of the Transformer encoder according to an embodiment of the present invention;
[0047] Figure 4 This is a diagram of the LSTM framework proposed in an embodiment of the present invention. DETAILED DESCRIPTION
[0048] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0049] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0050] Quantum mechanics is a physical theory that studies the laws of motion and properties of microscopic particles (such as electrons, atoms, etc.). Through this theory, we can obtain the atomic and molecular structure of matter, intermolecular forces, laws of electron motion, and other properties, so that we can analyze the physical and chemical properties of matter. Quantum mechanics originated in the early 20th century. Its emergence explains many phenomena that cannot be explained by classical physics, such as the wave-particle duality of particles, the dispersion of light, atomic spectra, etc. The basic principles of quantum mechanics include wave-particle duality, uncertainty principle, quantum superposition and quantum entanglement. Quantum mechanics can describe the behavior of particles at the microscopic scale, including the position, momentum, energy, etc. of particles. In quantum mechanics, the state of microscopic particles is described by wave functions, and the changes in wave functions in space form the probability distribution of particles. Quantum mechanics uses probability theory and wave function evolution to explain various strange phenomena in the microscopic world, and accurately calculates and predicts them.
[0051] Density Functional Theory (DFT) is a quantum mechanical method for solving the electronic structure of multi-electron systems. Its core idea is to describe and calculate multi-electron systems by expressing energy as a functional of electron density.
[0052] The basic concept of density functional theory originated from the Thomas-Fermi model in 1927, but it was not until 1964 that Hohenberg and Kohn proposed the Hohenberg-Kohn (HK) theorem that laid the foundation for density functional theory. Later, the Kohn-Sham equation proposed by Kohn and Sham in 1965 really pushed density functional theory to the level of practical application. This equation transforms complex multi-body quantum problems into single-body problems for solving electron density functions, greatly reducing the amount of calculation and difficulty of calculation. The core idea of DFT is that the electron density of a substance is the only variable that describes its physical and chemical properties. The theory is based on the HK theory, with the electron density function as a variable. The Kohn-Sham equation is solved to obtain the ground state energy and electron density of the system, and the energy level distribution, bond length, bond energy and other properties of the substance are calculated by studying the changes in electron density, thereby studying the physical and chemical properties of the substance. Density functional theory can reveal the complex behaviors in the microscopic world based on basic principles and mathematical models. It has been widely used in fields such as materials science, physical chemistry and biochemistry. It is one of the most commonly used methods in fields such as condensed matter physics, materials chemistry and biochemistry.
[0053] Gaussian is a well-known quantum chemistry software for computational chemistry, materials science and biochemistry. It is widely used to calculate the structure and properties of complex molecular systems. Gaussian quantum chemistry software has functions such as molecular structure optimization, energy calculation, reaction path search, energy barrier analysis, frequency analysis, chemical reactivity research, solvent effect simulation, spectral property calculation, etc. It has become one of the most commonly used and important software in the field of quantum chemistry. Gaussian quantum chemistry software provides a graphical user interface and a command line interface, which can complete molecular structure optimization, energy calculation, reaction path search and other calculations by inputting molecular structure and its calculation parameters. Gaussian uses an adaptive density grid method, which can reduce the calculation time and the use of computing resources while maintaining the calculation accuracy. At the same time, Gaussian also uses a variety of non-local exchange-correlation functionals, such as B3LYP, M06, etc. These functionals can better describe electronic interactions and molecular properties. Therefore, Gaussian quantum chemistry software has played a huge role in scientific research and industry.
[0054] Transformer is a network architecture proposed by Google in 2017 based on the self-attention mechanism. It uses the self-attention mechanism to model the dependencies between sequences and has a strong modeling ability for time series data. In addition, Transformer has the ability to simultaneously model long-term and short-term time series features based on the multi-head attention mechanism, so it has a strong ability to obtain global and local information. The core idea of Transformer is to use the attention mechanism to deal with the dependency between input and output. The self-attention mechanism can model the association between different positions in the input sequence, effectively solving the long dependency problem in the traditional loop structure. Transformer has a strong ability to capture long-range dependencies and can directly obtain the global information of the sequence. In addition, Transformer can also perform parallel operations, greatly improving the computing efficiency. Therefore, Transformer has been widely used in many fields such as natural language processing (NLP), computer vision (CV) and multimodality.
[0055] LSTM (Long Short-Term Memory Network) is a special type of recurrent neural network (RNN), which is an extension of RNN. Its hidden layer adds input gate, output gate and forget gate, and uses memory state units to store and retrieve short-range information. The structure is as follows: Figure 4As shown in the figure. LSTM solves the difficulties of traditional RNN in dealing with long-term dependency problems by introducing special memory units and gating mechanisms, so that it can effectively process and predict time series data. LSTM consists of three main gating units: input gate, forget gate, output gate and memory cell, which work through a series of mathematical operations and nonlinear activation functions. The gating mechanism of LSTM can control the flow of information and help the network adaptively and selectively update and forget information, thereby improving the robustness and stability of the network. In addition, the gating mechanism also enables the network to explain its own decisions made during learning and inference, improving the interpretability of the model.
[0056] LSTM Transformer adopts the structural mode of LSTM+Transformer, which is a neural network based on the combination of LSTM and Transformer structures. Figure 2 As shown, LSTM can enhance the ability to capture local or short-term dependencies of time series, while Transformer performs well in capturing long-range dependencies, can directly obtain global information, and has the ability to extract ultra-long period information. The two complement each other, thereby improving the accuracy of time series prediction. LSTM Transformer has the unique advantages of Transformer architecture, and has the following advantages: (1) Supports parallel computing and faster training. (2) Stronger long-term dependency modeling capabilities. (3) Based on the Multi-head Attention structure, long-term dependencies and short-term dependencies can be modeled simultaneously. Therefore, LSTM Transformer has a better prediction effect in time series prediction. In response to the above technical problems, the invention proposes a method and system for evaluating mine pollution using theoretical methods such as density functional theory, and at the same time, based on the evaluation results, a highly intelligent future warning method and system based on Transformer is implemented.
[0057] like Figure 1 As shown, the present invention provides a method for mine pollution assessment and future early warning, comprising the following steps:
[0058] Collecting initial soil samples, pre-treating the initial soil samples and measuring their physical and chemical properties;
[0059] Specifically, sampling is performed independently at each sampling point and once every M days, and then the soil samples at each sampling point are independently pretreated and subjected to physical and chemical property experimental determination.
[0060] Based on the pretreated soil samples, the initial soil model is constructed using the physical and chemical properties of the soil samples, and the initial soil model is optimized in combination with density functional theory to obtain the soil model;
[0061] Specifically, quantum chemistry Gaussian software was used to construct and optimize the soil model of each sampling point based on its physicochemical properties after pretreatment.
[0062] Perform DFT calculation on the soil model to obtain the electron density function of several sampling points, and then obtain the migration rate and stability of heavy metal ions;
[0063] Specifically, after the optimization is completed, DFT calculation is performed to obtain the electron density function of the soil sample at each sampling point; the migration rate of heavy metal ions between adjacent sampling points is obtained based on the electron density function of adjacent sampling points; the stability of heavy metal ions can be obtained based on the electron density function of the same sampling point at adjacent time points.
[0064] Based on the migration rate of metal ions and the stability of heavy metal ions, mine pollution can be assessed and early warning can be given in the future;
[0065] Specifically, the degree of mine pollution or the effect of mine management can be obtained based on the migration rate of heavy metal ions and the stability of heavy metal ions. By utilizing the time series data composed of the migration rate of heavy metal ions, the future trend of the migration rate of heavy metal ions can be predicted based on artificial intelligence trend prediction software, thereby realizing future early warning of mine pollution.
[0066] Furthermore, initial soil samples are collected, and the initial soil samples are pretreated and subjected to physical and chemical property determination, including:
[0067] Selecting soil sample sampling points, and performing sampling based on the soil sample points to obtain initial soil samples;
[0068] Pre-treating the initial soil sample to obtain a pre-treated soil sample, wherein the pre-treatment includes washing, drying, crushing and screening;
[0069] The physical and chemical properties of the pretreated soil samples are measured to obtain the physical and chemical properties of the soil samples, wherein the physical and chemical properties of the soil samples include the particle size, morphology, pH, composition, type and concentration of heavy metal ions, and crystal structure of the soil samples.
[0070] Specifically, soil sample sampling points should be selected every 200-500 meters from the mine to the far mine, and about 10-15 sampling points are sufficient. The sampling depth should ensure that the required samples can be obtained and avoid interference from surface pollutants; after sampling, the samples should be placed in appropriate containers and stored under low temperature, light-proof, sealed and stable conditions to maintain their quality and representativeness.
[0071] The soil samples at each sampling point are pretreated independently, and the pretreatment process includes steps such as washing, drying, crushing, and screening to obtain samples with fine, uniform, and dry particles. The soil samples are cleaned with solvents such as ethanol or deionized water. After the pretreatment, each soil sample (corresponding to each sampling point) is independently tested for its particle size, morphology, pH, composition, type and concentration of heavy metal ions, crystal structure and other physical and chemical properties. X-ray diffraction analysis can be used to analyze the crystal structure of soil samples, including determining information such as lattice constants, unit cell parameters, and crystal structure; scanning electron microscopy analysis can be used to analyze the morphology of soil samples, including information such as the surface morphology and microstructure of soil samples. The experimental measurement process must ensure the accuracy and reliability of the experimental data, because these experimental data are the key to establishing an accurate and reliable soil model.
[0072] Furthermore, based on the pretreated soil samples, the initial soil model is constructed using the physical and chemical properties of the soil samples, and the initial soil model is optimized in combination with density functional theory to obtain the soil model, including:
[0073] Based on the pretreated soil samples and the physical and chemical properties of the soil samples, the initial soil model was constructed using the ab initio molecular dynamics method;
[0074] The initial soil model is optimized by density functional theory method to obtain the soil model.
[0075] Specifically, the soil samples at each sampling point were independently constructed using quantum chemistry software Gaussian based on the experimentally determined physicochemical properties using ab initio molecular dynamics (AIMD) to construct a soil model that can represent the heavy metal ions in the soil sample and its surrounding environment. The construction method was B3LYP / 6-311++G (2d, 2p); then quantum chemistry software Gaussian was used to optimize the structure and energy of the soil model at the B3LYP / 6-311++G (2d, 2p) level using density functional theory to ensure that the soil model was the most stable configuration. Finally, the model was compared with experimental data to verify its accuracy and stability.
[0076] Ab initio Molecular Dynamics (AIMD) is a computational method based on first principles. Its core idea is to describe the motion of nuclei and electrons in the system by solving the Schrödinger equation. The AIMD method uses density functional theory (DFT) or quantum chemistry methods to calculate the electronic structure of the system. On this basis, Newton's laws of motion and classical molecular dynamics (MD) algorithms are used to simulate the motion of the nuclei of the system. B3LYP is a hybrid density functional that combines the double ζ basis set (B3) and the local density approximation (LDA) or generalized gradient approximation (GGA) method to obtain a high-precision description of the ground state geometry and properties. The basis set 6-311++G (2d, 2p) contains a series of basis functions that are used to expand and describe electronic wave functions.
[0077] The quantum chemistry software Gaussian16 was used to optimize the structure and energy of the soil model. Structural optimization refers to finding the most stable configuration of the system by changing the position of atoms; energy optimization refers to finding the global energy minimum of the system through iterative methods and relaxation algorithms. When optimizing the model, choosing to perform structural optimization and energy optimization at the same time can obtain more accurate and reliable results. During the optimization process, a suitable convergence criterion should be selected to ensure that the optimization process can achieve sufficient accuracy. The convergence criterion can be defined by controlling the gradient, energy change, or atomic displacement size. Here, you can choose the convergence of energy change, which is usually limited to a smaller energy change value, such as 0.001-0.0001 Hartree; you can also choose the convergence of atomic displacement, which is usually also set to a smaller value, such as 0.001-0.0001 Bohr.
[0078] Furthermore, the soil model is subjected to DFT calculation to obtain the electron density function of several sampling points, and then the migration rate and stability of heavy metal ions are obtained, including:
[0079] Perform DFT calculations on the soil model, exchange-correlation functionals and basis sets, configure convergence criteria and cutoff energies, and obtain electron density functions at several sampling points;
[0080] Based on the electron density function of adjacent sampling points, the migration rate of heavy metal ions is obtained;
[0081] The stability of heavy metal ions is obtained based on the electron density function of the same sampling point at adjacent time points.
[0082] Specifically, the soil model of each sampling point is independently subjected to DFT calculation using quantum chemistry software Gaussian16 to obtain the electron density function of the soil model. When performing DFT calculation on the soil model, the exchange-correlation functional selects B3LYP, and the basis set selects 6-311++G(2d, 2p). In addition to the exchange-correlation functional and basis set, the convergence criteria and cutoff energy need to be configured during the DFT calculation, where the convergence criteria identify the conditions under which the optimization algorithm stops iterating. Common convergence criteria include gradient size, energy change, and maximum displacement of atomic coordinates. Here, you can choose the convergence of energy change, which is usually limited to a smaller energy change value, such as 0.001-0.0001 Hartree; you can also choose the convergence of atomic displacement, which is usually also set to a smaller value, such as 0.001-0.0001 Bohr.
[0083] Cutoff energy is the energy of truncating the basis set used for the expansion of the wave function, which defines the maximum wave function expansion used to calculate the electron density. Since the expansion of the wave function is a series, it is theoretically necessary to consider an infinite number of basis functions. For the feasibility of actual calculations, the basis set needs to be truncated, that is, only the part with higher energy is considered. The configuration of the cutoff energy is determined by referring to a certain proportion of the highest energy in the basis set. In general, a common cutoff energy configuration method is to select 20% or 30% of the highest energy in the basis set as the cutoff energy. This means that the 20% or 30% with higher energy in the basis set will be retained to calculate the range of motion of the electron. The purpose of this is to ensure the convergence and accuracy of the calculation results. By selecting a sufficiently large cutoff energy, the part with higher electron energy and important contribution to the soil model can be captured as much as possible, and the calculation error can be reduced. Therefore, the value of the cutoff energy should be large enough to ensure the convergence and accuracy of the calculation results. In the present invention, 20% or 30% of the highest energy in the basis set is selected as the cutoff energy.
[0084] The DFT calculations of the soil model performed by the quantum chemistry software Gaussian are carried out in parallel on multiple GPUs of the high-performance computing processing platform, and CUDA is used to accelerate the parallel DFT calculations on multiple GPUs. GPUs have strong parallel computing capabilities when performing intensive computing tasks, and can execute multiple computing tasks at the same time, thereby completing large-scale calculations in a short time and significantly improving the computing speed. Therefore, performing DFT calculation tasks on multiple GPUs simultaneously can speed up the calculation process. CUDA (Compute Unified Device Architecture) is a programming model and platform for parallel computing that can effectively utilize the parallel computing capabilities of GPUs to accelerate the calculation process. CUDA can be used to accelerate GPUs, thereby speeding up the completion of DFT calculation tasks.
[0085] Heavy metal ions refer to metal elements with relatively large atomic mass and high density, such as lead, cadmium, mercury, chromium, etc. They exist in the form of ions in the soil and can migrate in the soil through water flow, infiltration, diffusion, etc. The migration rate and stability of heavy metal ions in the soil refer to the movement rate of heavy metal ions in the soil and the degree of fixation in the soil. By studying the migration behavior of heavy metal ions under different soil types and environmental conditions, the mechanism and law of heavy metal ion migration can be revealed. The migration rate and stability of heavy metal ions in the soil have important application value in environmental science, soil pollution prevention and control, agricultural ecology, etc. Studying the migration law and stability of heavy metal ions can provide a scientific basis for soil pollution prevention and control and guide soil remediation work; it can be used to evaluate mine pollution, or it can be used to evaluate the effect of adopting a certain mine remediation technology; it can also provide a reference for agricultural production, rationally utilize soil resources, and reduce the potential risks of heavy metals to agricultural products and the environment. In short, the migration rate and stability of heavy metal ions in soil is a complex and important research field. By in-depth research on its mechanisms and laws, we can better understand the behavior of heavy metal ions in the soil environment and provide specific scientific support for mine restoration and management, environmental protection and agricultural ecology.
[0086] The migration rate of heavy metal ions between adjacent sampling points can be calculated by comparing the two electron density functions of two adjacent sampling points to obtain the energy band structure of the soil and the migration energy barrier, adsorption energy and migration path of heavy metal ions between two adjacent sampling points, and then the migration rate of heavy metal ions in the soil between adjacent sampling points can be calculated according to Fick's first law. Of course, the migration rate of heavy metal ions between two non-adjacent sampling points can also be obtained by the above method. Fick's first law is a macroscopic law describing the diffusion phenomenon, which was discovered in 1855. Fick's first law states that in the steady-state diffusion process, the flow rate of diffused substances per unit cross-sectional area perpendicular to the diffusion direction per unit time (called diffusion flux) is proportional to the concentration gradient at the cross section. In other words, the greater the concentration gradient, the greater the diffusion flux.
[0087] The soil samples at each sampling point are collected repeatedly every M days, where M is constant and M can be set according to the normal monitoring cycle. It does not need to be too small, but it should also be avoided to be too large. For example, if the normal monitoring cycle is 15 or 30 days, M can be set to 15 or 30 days. In this way, it can be ensured that the time intervals for repeated collection of soil samples at each sampling point are the same, and the time intervals are fixed and unchanged, all M. In addition, the ambient temperature, air pressure and collection date at the time of collection must be recorded and saved each time the collection is completed. These parameters will also affect the electronic structure and physical properties of the soil samples. After the collection is completed, the soil samples at each sampling point are independently pre-processed, experimentally measured, model established and optimized, DFT calculated, etc. to obtain the latest electron density function of each sampling point, and then the latest electron density function between adjacent sampling points is calculated by comparison to obtain the latest migration rate of heavy metal ions in the soil between adjacent sampling points. These heavy metal ion migration rates constitute time series data in the order of sampling time, which is used for artificial intelligence time series prediction software to predict the future trend of heavy metal ion migration rate.
[0088] The stability of heavy metal ions can be obtained by comparing and calculating the electron density function between adjacent sampling times but the same sampling points. If the electron density function does not change much over time, it means that the heavy metal ions are relatively stable in the soil; if the electron density function changes significantly over time, it means that the heavy metal ions may be unstable in the soil. Of course, the stability of heavy metal ions between non-adjacent sampling times but the same sampling points can also be obtained by the above method.
[0089] Furthermore, the migration rate of heavy metal ions is:
[0090] J=-D*dC / dx
[0091] D=D0exp(-ΔE / kT)
[0092] Among them, J represents the total flux of heavy metal ions, that is, the migration rate of heavy metal ions to be calculated, D represents the diffusion coefficient, dC / dx represents the gradient of heavy metal ion concentration with spatial coordinates, D0 is the diffusion constant, ΔE refers to the energy required for the migration of heavy metal ions in the soil, k refers to the Boltzmann constant, and T refers to the ambient temperature at the time of sampling.
[0093] Specifically, Fick's first law is used to calculate the migration rate of heavy metal ions, and its formula is as follows:
[0094] J=-D*dC / dx
[0095] Among them, J represents the total flux of heavy metal ions, that is, the migration rate of heavy metal ions to be calculated, D represents the diffusion coefficient, and dC / dx represents the gradient of heavy metal ion concentration with spatial coordinates.
[0096] The gradient dC / dx of metal ion concentration with spatial coordinates can be calculated through the energy band structure of soil and the migration energy barrier and migration path of heavy metal ions between adjacent sampling points;
[0097] The diffusion coefficient D can be calculated by the following formula:
[0098] D=D0exp(-ΔE / kT)
[0099] Among them, ΔE refers to the energy required for the migration of heavy metal ions in the soil, which can be obtained through the energy band structure of the soil and the migration energy barrier of heavy metal ions between adjacent sampling points; T refers to the ambient temperature at the time of sampling, and this temperature is the absolute temperature; D0 is the diffusion constant, which is obtained by fitting method based on experimental data.
[0100] Furthermore, based on the migration rate of metal ions and the stability of heavy metal ions, the mine pollution is evaluated and early warning is provided in the future, including:
[0101] Obtain the degree of mine pollution based on the migration rate of metal ions and the stability of heavy metal ions;
[0102] Obtaining time series data of the metal ion migration rate through the metal ion migration rate, wherein the time series data includes target time series data and covariate time series data;
[0103] Based on the time series data of metal ion migration rate, the migration rate of heavy metal ions in soil is trend predicted to obtain trend prediction results;
[0104] Based on the results of mine pollution degree and trend forecast, future warning of mine pollution is carried out.
[0105] Specifically, the migration rate of heavy metal ions between adjacent sampling points refines the migration of heavy metal ions in the soil from near to far points of the mine at a spatial level, and can thus reflect the degree of heavy metal pollution in the soil from near to far. A high migration rate indicates that the pollution level in that section is high, otherwise the pollution level may not be high, and the overall heavy metal pollution level of the soil can be obtained based on the pollution level in each section.
[0106] The stability of heavy metal ions between adjacent sampling times but the same sampling points refines the stability of heavy metal ions in the soil step by step from the beginning of mining to the middle and late stages of mining. This can reflect the changes in the degree of heavy metal pollution in the soil step by step along the timeline. A low degree of stability indicates that the degree of pollution has become more serious at this stage, otherwise the pollution degree is relatively stable and does not change much.
[0107] The artificial intelligence time series prediction software makes short / medium / long term future trend forecasts on the migration rate of heavy metal ions in the soil based on the target time series data and covariate time series data of the migration rate of heavy metal ions, and then makes future warnings based on the trend prediction results. If the trend prediction results are not good, relevant personnel will be arranged in advance to make preventive plans in advance.
[0108] The artificial intelligence time series prediction software supports simultaneous trend prediction of multiple sets of independent and parallel target time series data, and each set of target time series data will obtain a trend prediction result; at the same time, the software also supports multivariate time series prediction, that is, the target and covariate time series data can contain multiple different variables.
[0109] The total number of multiple sets of parallel target time series data is equal to the number of sampling points minus 1, that is, each set of target time series data is the time series data of the migration rate of heavy metal ions between two adjacent sampling points in the order of sampling time. Each set of target time series data needs to be updated in real time to supplement the latest data so that the artificial intelligence time series prediction software can accurately predict the trend of the migration rate of heavy metal ions.
[0110] Covariate time series data include: (1) temperature time series data, i.e., time series data of ambient temperature at the time of sampling in the order of sampling time; (2) air pressure time series data, i.e., time series data of ambient air pressure at the time of sampling in the order of sampling time; (3) sampling date time series data, i.e., time series data of date at the time of sampling in the order of sampling time. Covariate time series data are all time series data in the order of sampling time, where temperature data, air pressure data and date data refer to ambient temperature, ambient air pressure and sampling date at the time of sampling respectively, and multiple sets of parallel target time series data correspond to the same set of covariate time series data. In addition, multiple sets of parallel target time series data and covariate time series data must be time series data in the same order of sampling time, and they are all equally spaced, and the time intervals are all equal to the time intervals of repeated sampling of soil samples.
[0111] Furthermore, a neural network based on the combination of CNN and Transformer structures is used to predict the migration rate of heavy metal ions in soil. The neural network based on the combination of CNN and Transformer structures consists of an input layer, an LSTM layer, a position encoding layer, a Transformer layer and a prediction layer.
[0112] Specifically, the artificial intelligence time series prediction software is deployed on a high-performance computing processing platform. Its function is to make short / medium / long-term future trend predictions on the migration rate of heavy metal ions in the soil based on the target time series data and the covariate time series data. The artificial intelligence time series prediction software is obtained using a time series prediction method based on the LSTM Transformer, where the LSTM Transformer is a neural network based on the combination of CNN and Transformer structures. The Transformer only requires an encoder but no decoder. The LSTM Transformer consists of an input layer, an LSTM layer, a position encoding layer, a Transformer layer, and a prediction layer. The input of the LSTM layer is a 3D tensor of (batch size, input sequence length, number of input channels), and the number of input channels is equal to the number of variables in the multivariate; the position encoding layer uses sine and cosine functions to positionally encode the output features of the LSTM layer. The encoding formula is as follows:
[0113] PE(i,2j)=sin(i / 10000 (2j / d) )
[0114] PE(i,2j+1)=cos(i / 10000 (2j / d) )
[0115] Among them, PE(i, 2j) represents the sine function value in the 2j-th dimension at position i, and PE(i, 2j+1) represents the cosine function value in the 2j+1-th dimension at position i.
[0116] In the LSTM Transformer neural network, LSTM can enhance the ability to capture local or short-term dependencies of time series, and Transformer has the ability to extract ultra-long period information. The two complement each other, thereby improving the accuracy of trend prediction of heavy metal ion migration rate. After obtaining the trend prediction results of heavy metal ion migration rate, future warnings are made based on the trend prediction results. If the trend prediction results are not good, relevant personnel are arranged in advance to make preventive plans in advance. This not only avoids further aggravation of mine pollution, but also avoids the high cost and high pollution problems caused by serious pollution.
[0117] The present invention also provides a mine pollution assessment and future early warning system, including: a soil sample sampling module, a quantum chemical Gaussian module and an artificial intelligence trend prediction module;
[0118] A soil sample sampling module is used to collect initial soil samples, and to pre-treat and measure the physical and chemical properties of the initial soil samples;
[0119] The quantum chemistry Gaussian module is used to construct an initial soil model based on the physical and chemical properties of the pretreated soil samples, optimize the initial soil model in combination with density functional theory, obtain the soil model, and perform DFT calculations on the soil model to obtain the electron density function of several sampling points, thereby obtaining the migration rate and stability of heavy metal ions;
[0120] The artificial intelligence trend prediction module is used to evaluate mine pollution and provide future warnings based on the migration rate of metal ions and the stability of heavy metal ions.
[0121] Specifically, the evaluation and early warning system of the present invention includes: soil sample sampling points, quantum chemical Gaussian software and artificial intelligence trend prediction software. The soil sampling points provide soil samples, which are collected every M days, and the soil samples at each sampling point are pretreated and the physical and chemical properties are experimentally determined. The quantum chemical Gaussian software performs model establishment, model optimization and model DFT calculation (DFT calculation is performed after the model optimization is completed) on the soil samples that have been pretreated and experimentally determined for physical and chemical properties, and obtains the electron density function of the soil sample model, and then the heavy metal ion migration rate between adjacent sampling points can be obtained based on the electron density function of the soil samples at adjacent sampling points; the heavy metal ion stability can be obtained based on the electron density function of the soil samples at the same sampling point at adjacent time points. The artificial intelligence trend prediction software obtains the degree of mine pollution or the effect of mine governance based on the heavy metal ion migration rate and the heavy metal ion stability, and predicts the future trend of the heavy metal ion migration rate based on the time series data of the heavy metal ion migration rate, so as to achieve future early warning of mine pollution.
[0122] The AI time series prediction software supports the following functions:
[0123] (1) It supports simultaneous trend prediction of multiple sets of independent and parallel target time series data, and each set of target time series data will obtain a trend prediction result; this ensures that the migration rate of heavy metal ions between all adjacent sampling points can be predicted simultaneously, thereby realizing multi-task parallel prediction.
[0124] (2) Supports multivariate time series forecasting, that is, the target and covariate time series data can contain multiple different variables. Multivariate time series forecasting takes into account the mutual influence relationship between multiple related variables, so as to more comprehensively model and predict the behavior of the system. By observing the trends and correlations between different variables, multivariate time series forecasting can better capture the dynamic changes of the system and, to some extent, improve the accuracy of trend forecasting.
[0125] The assessment and early warning system also includes a high-performance computing processing platform. The high-performance computing processing platform deploys the Linux system and the dependent environment of artificial intelligence and Gaussian software. Quantum chemistry Gaussian software and artificial intelligence trend prediction software are both deployed on the high-performance computing processing platform. Quantum chemistry Gaussian software and artificial intelligence trend prediction software have requirements for computing power and computing energy during the calculation execution process, so a high-performance computing processing platform is needed.
[0126] The high-performance computing processing platform deploys the Linux system and installs the CUDA software. The Linux system deploys Ubuntu18.04 or a later version, CUDA deploys CUDA10.2 or a later version, and the torch-1.10 or a later version of the deep learning framework is deployed. Ubuntu18.04 and CUDA 10.2 and later versions are long-term support versions that have been officially maintained and supported for a long time, have better stability and security, and have good compatibility and can run on more systems and hardware. Compared with Windows systems, Linux systems are usually more suitable for Gaussian computing because Linux systems are better at handling parallel computing, frequent access, large files, and massive computing, which are all difficulties that may be encountered in Gaussian computing. After CUDA is deployed, you need to configure the CUDA environment variables in the ~ / .bashrc file, that is, add the following two lines in the ~ / .bashrc file: LD_LIBRARY_PATH=$LD_LIBRARY_PATH: / usr / local / cuda-10.2 / lib64 and export PATH=$PATH: / usr / local / cuda-10.2 / bin. You can view the CUDA version information through the command nvcc--version. If the CUDA version number can be displayed correctly, it means that the installation is successful.
[0127] The high-performance computing processing platform simultaneously deploys the dependent environments of Gaussian quantum chemistry software and artificial intelligence trend prediction software, wherein the artificial intelligence dependent environment must meet the actual operation requirements of the artificial intelligence trend prediction software, and needs to install the deep learning framework of Pytorch1.10 or above, and install basic environment dependent packages such as torchvision, python, and numpy. The Gaussian dependent environment must meet the actual operation requirements of the Gaussian16 quantum chemistry software, and needs to install the Fortran compiler, MPI library, etc. The intelligent computing processing platform must have a sufficiently large system memory and video memory to meet the requirements of the high-level operation of the Gaussian quantum chemistry software or the artificial intelligence trend prediction software. Therefore, the high-performance computing processing platform of the present invention requires at least 64G of memory, and the high-performance computing processing platform needs to be equipped with multiple GPUs, each GPU having at least 12G video memory. System memory (RAM) and video memory (VRAM) are two different types of memory in a computer, wherein the system memory is mainly used to store and run the data of the operating system and application programs, which can be viewed by the top or free command in the Linux system; the video memory is specifically used to process and render graphics data, which can be viewed by the nvidia-smi command in the Linux system.
[0128] The high-performance computing and processing platform deploys the AMD Ryzen Threadripper 2950*16-core Processor*32 processor, which is launched by AMD and adopts the Zen architecture, with 16 physical cores and 32 threads; the intelligent computing and processing platform deploys the NVIDIA GeForce RTX 2080Ti / PCIe / SSE2 graphics card, which adopts the Turing architecture and supports the PCIe interface and SSE2 instruction set. For the DFT calculation of Gaussian 16, the performance of the processor and graphics card is very critical, and the processor and graphics card deployed by the intelligent computing and processing platform of the present invention cannot be lower than the above performance. In addition, the intelligent computing and processing platform must have sufficient computing and processing capabilities to ensure the high-speed operation requirements of the above-mentioned Gaussian quantum chemistry software or artificial intelligence trend prediction software. The intelligent computing and processing platform must deploy multiple GPUs to support multi-GPU parallel computing and multi-channel program operation; the intelligent computing and processing platform should also have a large hard disk space to meet the possible storage needs of massive historical data.
[0129] The quantum chemistry Gaussian software is deployed on a high-performance computing processing platform. Gaussian software uses Gaussian 16 or higher versions, because newer versions usually contain more features and improvements, and more density functionals have been verified and optimized; Gaussian16 quantum chemistry software requires the installation of a Fortran compiler and an MPI library, where the Fortran compiler is used to compile Gaussian's source code; the MPI library is used to support Gaussian's parallel computing capabilities, and commonly used MPI libraries include OpenMPI and MPICH; in addition to the Fortran compiler and MPI library, Gaussian16 also requires some other dependencies such as BLAS, LAPACK, etc., but these dependencies are often automatically processed and installed when installing Gaussian, and there is no need to install these dependencies separately. After installing the Fortran compiler and MPI library, you need to make corresponding configurations in the configuration file. The specific steps are as follows:
[0130] (1) Create a file named .g16.profile in the user directory;
[0131] (2) Edit the file and add the following code:
[0132] export GAUSS_SCRDIR= / path / to / g16_scrdir
[0133] export g16root= / path / to / g16root
[0134] export GAUSS_EXEDIR=$g16root / g09
[0135] export PGIˋ= / path / to / Fortran
[0136] Among them, GAUSS_SCRDIR specifies the working directory of Gaussian 16, which stores temporary files; g16root specifies the installation path of Gaussian 16; GAUSS_EXEDIR specifies the path of the Gaussian 16 executable file, where g16 represents the Gaussian 16 version; PGIˋ specifies the Fortran compiler installation path.
[0137] (3) Add the following code to the .bashrc file:
[0138] source~ / .g16.profile
[0139] This will load the environment variables every time you open the command line tool.
[0140] Furthermore, the artificial intelligence trend prediction module adopts a neural network based on the combination of CNN and Transformer structures. The neural network based on the combination of CNN and Transformer structures consists of an input layer, an LSTM layer, a position encoding layer, a Transformer layer and a prediction layer.
[0141] Specifically, the structure of LSTM Transformer is as follows Figure 2 As shown in the figure, it consists of an input layer, an LSTM layer, a position encoding layer, a Transformer layer, and a prediction layer. The input layer inputs time series data, including target time series data and covariate time series data. The length of the input time series can be defined by yourself, representing the number of input time steps. If the time series data is relatively large, the input sequence length or the number of time steps can be relatively large. If the time series data is relatively small, the input sequence length or the number of time steps is appropriately smaller. The input of the LSTM layer is a 3D tensor of (batch size, input sequence length, number of input channels), and the number of input channels is equal to the number of variables of the multivariate. The LSTM layer uses memory cells to process the position information of the time series, and the main function of the LSTM layer is to enhance the ability to capture local or short-term dependencies of the time series. In the Transformer layer, the encoder structure of the Transformer does not process the position information of the time series. Therefore, it is necessary to add a position encoder in the position encoding layer to add the position information of the time series to the sequence embedding tensor to make up for the lack of position information. Position encoding usually uses sine and cosine functions, which is used to add a vector representation to each position in the input sequence so that the model can perceive the position information of the input. Therefore, the position encoding layer uses sine and cosine functions to positionally encode the output features of the LSTM layer. The specific encoding formula is as follows:
[0142] PE(i,2j)=sin(i / 10000 (2j / d) )
[0143] PE(i,2j+1)=cos(i / 10000 (2j / d) )
[0144] Among them, PE(i, 2j) represents the sine function value in the 2jth dimension at position i, and PE(i, 2j+1) represents the cosine function value in the 2j+1th dimension at position i. In this way, the position encoding in each dimension will change periodically as the position increases, thereby providing position information for the network.
[0145] Furthermore, the Transformer layer includes an encoder and a fully connected layer;
[0146] The encoder is composed of several stacked Transformer encoder layers, each of which consists of a first sub-layer connection structure and a second sub-layer connection structure;
[0147] The first sub-layer connection structure includes a multi-head self-attention layer, a first regularization layer, and a first residual connection;
[0148] The second sub-connection structure includes a feed-forward fully connected layer, a second regularization layer, and a second residual connection.
[0149] Specifically, the Transformer layer consists of an encoder and a fully connected layer, where the encoder is composed of N stacked Transformer encoder layers. The structure of each Transformer encoder layer is as follows: Figure 3 As shown in the figure, it consists of two sub-layer connection structures. The first sub-layer connection structure includes a multi-head self-attention layer, a regularization layer and a residual connection (i.e., summation); the second sub-layer connection structure includes a feed-forward fully connected layer, a regularization layer and a residual connection (i.e., summation); for time series prediction tasks, only the encoder is needed to extract the features of the input sequence and then make predictions based on these features, so no decoder is needed, so the Transformer layer only has an encoder. In the Transformer layer, a residual connection structure is used between the multi-head self-attention module and the fully connected layer, and the fully connected layer performs a linear transformation on the features extracted by LSTM and Transformer; the prediction layer finally outputs the trend prediction result. The residual connection (Add) allows information to directly skip the self-attention or fully connected operation, and pass the information to the next layer by adding the input to the output of the operation. Through the residual connection structure, the model can learn the changing part of the input data while passing the original information, maintaining the stability and expression ability of the model. The residual connection structure allows information to be directly transmitted between different layers, which helps to alleviate the problem of gradient disappearance, makes the model easier to train and optimize, and helps to improve the performance of the model. The fully connected layer performs linear transformation on the features extracted by the LSTM and self-attention modules, maps the input vector to a new feature space, and then generates the final output through the activation function. The prediction layer outputs the trend prediction results of the migration rate of heavy metal ions.
[0150] If the trend prediction results show that the migration rate of heavy metal ions will become faster, it means that the degree of mine pollution will become more serious, and relevant personnel need to be arranged to make preventive plans in advance; if the trend prediction results show that the migration rate will become smaller, it means that mine pollution control is likely to have a certain effect, but specific arrangements still need to be made based on actual conditions.
[0151] Example
[0152] like Figure 1 As shown, the embodiment of the present invention provides a method for mine pollution assessment and future early warning, which selects 10-15 sampling points from near the mine to far away from the mine, and the interval between each two sampling points is 200-500 meters. To obtain the electron density function of the soil sample at each sampling point, the following operations are performed in sequence:
[0153] Step 1: Each of the pretreatments such as cleaning and drying is performed independently;
[0154] Step 2: independently using experiments to determine the composition, heavy metal ion concentration, crystal structure and other physical and chemical properties;
[0155] Step 3: The quantum chemistry software Gaussian was used to construct a soil model that can represent the heavy metal ions in the soil sample and its surrounding environment based on the experimentally determined physicochemical properties using the ab initio molecular dynamics method (AIMD);
[0156] Step 4: The quantum chemistry software Gaussian is independently used to optimize the soil model through density functional theory method to ensure that the soil model is the most stable configuration.
[0157] Step 5: The quantum chemistry software Gaussian is used to perform DFT calculations on the soil model to obtain the electron density function of the soil model. When performing DFT calculations on the soil model, B3LYP is selected as the exchange-correlation functional and 6-311++G (2d, 2p) is selected as the basis set. It should also be noted that the DFT calculations on the soil model performed by the quantum chemistry software Gaussian are performed in parallel on multiple GPUs of the high-performance computing processing platform, and CUDA is used to accelerate the parallel DFT calculations on multiple GPUs.
[0158] Through the above steps, the electron density function of each sampling point can be obtained, and then the two electron density functions of adjacent sampling points can be used to analyze and calculate the migration rate of heavy metal ions between adjacent sampling points. The specific process is as follows:
[0159] By comparing and calculating the two electron density functions of adjacent sampling points, the energy band structure of the soil and the properties of the migration energy barrier, adsorption energy and migration path of heavy metal ions between adjacent sampling points can be obtained. Then, the migration rate of heavy metal ions in the soil between adjacent sampling points can be calculated according to Fick's first law. The formula of Fick's first law is as follows:
[0160] J=-D*dC / dx
[0161] Where J represents the migration rate of heavy metal ions, D represents the diffusion coefficient, and dC / dx represents the gradient of heavy metal ion concentration with spatial coordinates, where dC / dx can be calculated through the energy band structure of the soil and the migration energy barrier and migration path of heavy metal ions between adjacent sampling points; the diffusion coefficient D can be obtained by the following formula:
[0162] D=D0exp(-ΔΔE / kT)
[0163] Among them, ΔE refers to the energy required for the migration of heavy metal ions in the soil, which can be obtained through the energy band structure of the soil and the migration energy barrier of heavy metal ions between adjacent sampling points; T refers to the ambient temperature at the time of sampling, and this temperature is the absolute temperature; D0 is the diffusion constant, which is obtained by fitting method based on experimental data.
[0164] For each sampling point, soil samples are collected again every M days. In addition, the ambient temperature, air pressure and collection date at the time of collection must be recorded and saved each time, and then the above steps of pretreatment, experimental measurement, model construction, etc. are repeated to obtain the latest electron density function of each sampling point, and then the latest migration rate of heavy metal ions between adjacent sampling points is obtained according to the analysis and calculation process of heavy metal ion migration rate.
[0165] The stability of heavy metal ions in soil can be analyzed and calculated according to the following process:
[0166] It is obtained by comparing and calculating the electron density function between adjacent sampling times but the same sampling points. If the electron density function does not change much over time, it means that the heavy metal ions are relatively stable in the soil; if the electron density function changes significantly over time, it means that the heavy metal ions may be unstable in the soil.
[0167] The migration rate of heavy metal ions between two adjacent sampling points can reflect the degree of heavy metal pollution in the soil from near to far, and the overall degree of heavy metal pollution in the soil can be obtained based on the degree of pollution in each section. The stability of heavy metal ions can reflect the changes in the degree of heavy metal pollution in the soil stage by stage along the timeline.
[0168] The obtained heavy metal ion migration rate is used to form time series data in the order of sampling time, and this time series data is the target sequence data. In this way, a target sequence data will be obtained between every two adjacent sampling points. If there are 5 sampling points, 4 sets of target sequence data will be obtained in the end. The ambient temperature, ambient air pressure and sampling date at the time of sampling are used to form covariate time series data in the order of sampling time. Then multiple sets of target sequence data and covariate time series data are simultaneously input into the LSTM Transformer trend prediction network, and finally the future trend prediction results of the heavy metal ion migration rate between every two adjacent sampling points can be obtained. Finally, future warnings are made based on this future trend prediction result. If the trend prediction result is not good, relevant personnel are arranged in advance to make preventive plans in advance.
[0169] The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for assessing and early warning of mine pollution, characterized in that: The specific steps include: Collecting an initial soil sample, and performing pretreatment and physical and chemical property determination on the initial soil sample; Based on the pretreated soil samples, an initial soil model is constructed using the physical and chemical properties of the soil samples, and the initial soil model is optimized in combination with density functional theory to obtain a soil model; Performing DFT calculation on the soil model to obtain the electron density function of several sampling points, and then obtaining the migration rate of heavy metal ions and the stability of heavy metal ions; Based on the migration rate of the metal ions and the stability of the heavy metal ions, the mine pollution is evaluated and warned in the future.
2. The mine pollution assessment and future early warning method according to claim 1, characterized in that: Collecting an initial soil sample, and pre-treating and measuring the physical and chemical properties of the initial soil sample, including: Selecting a soil sample sampling point, and performing sampling based on the soil sample point to obtain the initial soil sample; Pre-treating the initial soil sample to obtain the pre-treated soil sample, wherein the pre-treatment includes washing, drying, crushing and screening; The physical and chemical properties of the pretreated soil sample are measured to obtain the physical and chemical properties of the soil sample, wherein the physical and chemical properties of the soil sample include the particle size, morphology, pH, composition, type and concentration of heavy metal ions, and crystal structure of the soil sample.
3. The mine pollution assessment and future early warning method according to claim 1, characterized in that: Based on the pretreated soil samples, an initial soil model is constructed using the physical and chemical properties of the soil samples, and the initial soil model is optimized in combination with density functional theory to obtain a soil model, including: Based on the pretreated soil sample, according to the physical and chemical properties of the soil sample, an ab initio molecular dynamics method is used to construct the initial soil model; The initial soil model is optimized by a density functional theory method to obtain the soil model.
4. The mine pollution assessment and future early warning method according to claim 1, characterized in that: Perform DFT calculation on the soil model to obtain the electron density function of several sampling points, and then obtain the heavy metal ion migration rate and the heavy metal ion stability, including: Performing DFT calculation, exchange-correlation functional and basis set calculation on the soil model, and configuring convergence criteria and cutoff energy to obtain electron density functions of several sampling points; Based on the electron density function of adjacent sampling points, obtaining the heavy metal ion migration rate; The heavy metal ion stability is obtained based on the electron density function of the same sampling point at adjacent time points.
5. The mine pollution assessment and future early warning method according to claim 4, characterized in that: The heavy metal ion migration rate is: J=-D*dC / dx D=D0exp(-ΔE / kT) Among them, J represents the total flux of heavy metal ions, that is, the migration rate of heavy metal ions to be calculated, D represents the diffusion coefficient, dC / dx represents the gradient of heavy metal ion concentration with spatial coordinates, D0 is the diffusion constant, ΔE refers to the energy required for the migration of heavy metal ions in the soil, k refers to the Boltzmann constant, and T refers to the ambient temperature at the time of sampling.
6. The mine pollution assessment and future warning method according to claim 1, characterized in that: Based on the migration rate of the metal ions and the stability of the heavy metal ions, the mine pollution is evaluated and early warning is provided in the future, including: Based on the metal ion migration rate and the heavy metal ion stability, obtaining the mine pollution degree; Obtaining time series data of the metal ion migration rate through the metal ion migration rate, wherein the time series data includes target time series data and covariate time series data, and the covariate time series data includes temperature time series data, air pressure time series data and sampling date time series data; Based on the time series data of the metal ion migration rate, a trend prediction is performed on the migration rate of the heavy metal ions in the soil to obtain a trend prediction result; Based on the mine pollution level and the trend prediction results, future warning of mine pollution is carried out.
7. The mine pollution assessment and future warning method according to claim 6, characterized in that: The migration rate of the heavy metal ions in the soil is trend predicted by a neural network based on a combination of CNN and Transformer structures, wherein the neural network based on a combination of CNN and Transformer structures consists of an input layer, an LSTM layer, a position encoding layer, a Transformer layer and a prediction layer.
8. A mine pollution assessment and future early warning system, implementing the method according to any one of claims 1 to 7, characterized in that: include: Soil sample sampling module, quantum chemistry Gaussian module and artificial intelligence trend prediction module; The soil sample sampling module is used to collect initial soil samples, and perform pretreatment and physical and chemical property determination on the initial soil samples; The quantum chemical Gaussian module is used to construct an initial soil model based on the pretreated soil sample using the physical and chemical properties of the soil sample, optimize the initial soil model in combination with density functional theory, obtain the soil model, and perform DFT calculation on the soil model to obtain the electron density function of several sampling points, thereby obtaining the migration rate of heavy metal ions and the stability of heavy metal ions; The artificial intelligence trend prediction module is used to evaluate mine pollution and provide future warnings based on the metal ion migration rate and the stability of the heavy metal ions.
9. The mine pollution assessment and future warning system as claimed in claim 8, characterized in that: The artificial intelligence trend prediction module adopts a neural network based on the combination of CNN and Transformer structures, and the neural network based on the combination of CNN and Transformer structures consists of an input layer, an LSTM layer, a position encoding layer, a Transformer layer and a prediction layer.
10. The mine pollution assessment and future warning system according to claim 9, characterized in that: The Transformer layer includes an encoder and a fully connected layer; The encoder is formed by stacking a plurality of Transformer encoder layers, each of which is composed of a first sub-layer connection structure and a second sub-layer connection structure; The first sub-layer connection structure includes a multi-head self-attention layer, a first regularization layer and a first residual connection; The second sub-connection structure includes a feed-forward fully connected layer, a second regularization layer and a second residual connection.
Citation Information
Cited By
Mining area heavy metal pollutant risk early warning system and method
CN120509722A
A mine heavy metal pollutant risk early warning system and method
CN120509722B
