Method and device for predicting concentration of heavy metal pollutants in soil
By combining the prediction model with shallow soil characteristic information to infer the deep soil pollution situation, it solves the problem of high cost and difficulty in soil heavy metal pollution detection in the existing technology, and achieves efficient and accurate pollutant concentration prediction.
Patent Information
- Application Number
- CN202410829213.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-13
AI Technical Summary
In the existing technology, the detection of heavy metal pollution in soil requires professional equipment and expensive sampling and detection steps, and it is difficult to effectively obtain the pollution information of deep soil, resulting in high cost and long detection cycle.
By obtaining characteristic information of shallow soil, we use a pre-trained soil pollution prediction model to predict metal pollution concentration, and combine soil quality information and groundwater information to infer the pollution situation at different soil depths, reducing sampling depth and equipment usage.
It reduces the cost and difficulty of predicting the concentration of soil heavy metal pollutants, improves the prediction efficiency and accuracy, requires only shallow samples to make predictions, and takes into account the impact of soil layers and groundwater on pollution.
Smart Images

Figure CN118643340A
Abstract
Description
Technical Field
[0001] One or more embodiments of the present specification relate to the technical field of environmental pollution prediction, and specifically to a method and device for predicting the concentration of heavy metal pollutants in soil. Background Art
[0002] Soil metal pollution refers to an environmental pollution phenomenon in which the content of certain metal elements in the soil exceeds the natural background value, or exceeds the environmental quality standard caused by human activities, posing a potential threat to the ecological environment and human health. Heavy metal pollution in the soil will accumulate in organisms and seriously affect human health. In order to develop and reuse contaminated sites, it is necessary to conduct pollution detection and remediation of the site before use to ensure that the site is safe and clean before reuse.
[0003] In the related technology, sampling is carried out at points throughout the site to be tested, and the sampled samples are sent to a professional laboratory for testing to determine the metal pollution concentration at each point. However, the sampling and testing steps of this method require the use of professional equipment and instruments, which are expensive. In addition, in order to obtain pollution information of deep soil, the depth of point sampling is required to reach 6~9m, which is far beyond the shallow depth, making sampling more difficult and extending the detection cycle. Summary of the invention
[0004] The embodiments of this specification provide a method, device, electronic device, and storage medium for predicting the concentration of heavy metal pollutants in soil, and the technical solutions are as follows: In a first aspect, the present specification provides a method for predicting the concentration of heavy metal pollutants in soil, comprising: Acquire shallow soil characteristic information of the target sampling point, wherein the soil characteristic information includes: soil quality information, groundwater information, soil layer depth, and metal pollution concentration of the corresponding sampling point in the shallow layer; Inputting the acquired soil characteristic information into a pre-trained soil pollution prediction model, so that the soil pollution prediction model can predict the metal pollution concentration of the soil in other soil layers of the target sampling point; The metal pollution concentration of the target sampling point at different soil layer depths is determined according to the metal pollution concentration output by the soil pollution prediction model and the metal pollution concentration in the soil characteristic information.
[0005] In a second aspect, the embodiments of this specification provide a method for training a soil pollution prediction model, including: Acquire a training data set, wherein each training sample in the training data set includes: soil quality information, groundwater information, soil layer depth, and actual metal pollution concentration corresponding to different soil layer depths of a corresponding sampling point; wherein the different soil layer depths include shallow layers and other soil layers; Inputting the training data set into the model to be trained, so that the model to be trained outputs the predicted metal pollution concentration at different soil depths corresponding to each training sample; The actual metal pollution concentration and the predicted metal pollution concentration are compared, and the hyperparameters of the model to be trained are optimized according to the comparison result until the model to be trained is used to predict the metal pollution in the soil.
[0006] In a third aspect, the present specification provides a device for predicting the concentration of heavy metal pollutants in soil, comprising: An acquisition unit is used to acquire shallow soil characteristic information of a target sampling point, wherein the soil characteristic information includes soil quality information, groundwater information, soil layer depth, and metal pollution concentration of the corresponding sampling point in the shallow layer; A prediction unit, used for inputting the acquired soil characteristic information into a pre-trained soil pollution prediction model, so that the soil pollution prediction model predicts the metal pollution concentration of the soil of other soil layers at the target sampling point; A determination unit is used to determine the metal pollution concentration of the target sampling point at different soil layer depths according to the metal pollution concentration output by the soil pollution prediction model and the metal pollution concentration in the soil characteristic information.
[0007] In a fourth aspect, an embodiment of the present specification provides a training device for a soil pollution prediction model, comprising: An acquisition unit is used to acquire a training data set, wherein each training sample in the training data set includes: soil quality information, groundwater information, soil layer depth, and actual metal pollution concentration corresponding to different soil layer depths of a corresponding sampling point; wherein the different soil layer depths include shallow layers and other soil layers; An input unit, used to input the training data set into the model to be trained, so that the model to be trained outputs the predicted metal pollution concentration at different soil depths corresponding to each training sample; The optimization unit is used to compare the actual metal pollution concentration with the predicted metal pollution concentration, and optimize the hyperparameters of the model to be trained according to the comparison result until the model to be trained is used to predict the metal pollution of the soil.
[0008] In a fifth aspect, an embodiment of this specification provides an electronic device, comprising a processor and a memory; the processor is connected to the memory; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the steps described in the first aspect or the second aspect of the above embodiment.
[0009] In a sixth aspect, an embodiment of the present specification provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps described in the first aspect or the second aspect of the above embodiment.
[0010] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least: On the one hand, the soil pollution prediction model is used to predict the metal pollution concentration of the soil below the shallow layer, so that only shallow soil samples need to be collected during soil sampling. This not only reduces the sampling difficulty and improves the prediction efficiency of soil heavy metal pollutant concentrations, but also reduces the number of equipment analysis samples and reduces costs. On the other hand, when predicting the metal pollution concentration of deep soil, the soil pollution prediction model not only predicts the metal pollution concentration based on the shallow soil, but also takes into account the influence of soil information, groundwater information, etc. on the metal pollution concentration, making the predicted metal pollution concentration more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of this specification, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0012] Figure 1 It is a flow chart of a method for predicting the concentration of heavy metal pollutants in soil provided in an embodiment of this specification.
[0013] Figure 2 It is a flowchart of a soil pollution prediction model training method provided in an embodiment of this specification.
[0014] Figure 3 This is a schematic diagram of a data set division provided in an embodiment of this specification.
[0015] Figure 4 It is a block diagram of a device for predicting the concentration of heavy metal pollutants in soil provided in an embodiment of this specification.
[0016] Figure 5 It is a block diagram of a soil pollution prediction model training device provided in an embodiment of this specification.
[0017] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0018] The technical solutions in the embodiments of this specification will be described clearly and completely below in conjunction with the drawings in the embodiments of this specification.
[0019] The terms "first", "second", etc. in the description and claims of this specification and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any variation thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0020] The following is a detailed description of the method for predicting the concentration of heavy metal pollutants in soil in combination with one or more embodiments.
[0021] Soil metal pollution refers to an environmental pollution phenomenon in which the content of certain metal elements in the soil exceeds the natural background value, or exceeds the environmental quality standard caused by human activities, posing a potential threat to the ecological environment and human health. Heavy metal pollution in the soil will accumulate in organisms and seriously affect human health. In order to develop and reuse contaminated sites, it is necessary to conduct pollution detection and remediation of the site before use to ensure that the site is safe and clean before reuse.
[0022] In the related art, sampling is carried out at points throughout the site to be tested, and the sampled samples are sent to a professional laboratory for testing to determine the metal pollution concentration at each point. However, the sampling and testing steps of this method require the use of professional equipment and instruments, which is expensive.
[0023] In addition, the surface fill soil of the site is much more affected by human activities than the inner clay layer and silt layer. Unlike other natural plots, the surface of the site is often excavated, constructed, and filled when in use, and its soil conditions may also change frequently. There may be gravel, gravel, stones, concrete blocks, and even a small amount of plastic waste inside the soil layer. Since the existence of these conditions may directly affect the accumulation of pollution in the deep clay layer and silt layer, the method of predicting the pollution risk of the plot based only on the surface environment may cause some points to deviate seriously from the true value in the prediction of site pollutants. In order to obtain pollution information of deep soil, the depth of sampling is required to reach 6~9m, which is far beyond the sub-surface depth, making sampling more difficult and extending the detection cycle.
[0024] In order to solve the problems existing in the related art, this specification proposes a method, device, electronic device, and storage medium for predicting the concentration of heavy metal pollutants in soil.
[0025] See also Figure 1 , Figure 1A schematic diagram of a method for predicting the concentration of heavy metal pollutants in soil provided in an embodiment of this specification is shown. Figure 1 As shown, the method for predicting the concentration of heavy metal pollutants in soil may at least include the following steps: Step 102: Obtain shallow soil characteristic information of the target sampling point, wherein the soil characteristic information includes: soil quality information, groundwater information, soil layer depth, and metal pollution concentration of the shallow soil at the corresponding sampling point.
[0026] The target sampling point can be any sampling point pre-set by the inspector. The inspector can obtain soil characteristic information through professional means, such as drilling, sampling, and sending the sampled samples to professional institutions for analysis to obtain soil characteristic information of shallow soil. In this case, the characteristic information obtained is more accurate, thereby increasing the accuracy of the metal pollution concentration of the deep soil obtained in the end. The inspector can also obtain soil characteristic information through relatively simple means, such as directly using an excavator to dig and sample, and analyzing the sample through an XRF device (Energy Dispersive X-ray Fluorescence Spectrometer). This method is easy to operate, improves the sampling efficiency, and thus improves the prediction efficiency of the concentration of heavy metal pollutants in the soil.
[0027] Generally speaking, soil can be divided into several different layers according to its components and characteristics: miscellaneous fill layer (about 0-2 meters from the ground surface), silty clay layer (about 1.5-4 meters from the ground surface), silt layer (about 3-6 meters from the ground surface), and clay layer (about 4 meters below the ground surface). In this specification, the layer 0-2 meters from the ground surface is called the shallow layer: the top of the shallow layer 0-0.5 meters from the ground surface is the surface miscellaneous fill, referred to as the surface layer; the bottom of the shallow layer 1.5-2 meters from the ground surface includes the layer at the junction of the miscellaneous fill layer and the silty clay layer, referred to as the shallow bottom, and the soil below the shallow bottom (excluding the shallow bottom) can be called the deep soil. The soil layers mentioned in this specification are divided according to the depth of the soil layer from the ground surface. There may also be other soil distribution conditions not included here, and this specification does not limit this. Point Soil depth Miscellaneous fill Silty clay clay Water Level Cr metal concentration g / kg S1 0-0.5 0 1 0 -1.5~-1 82.3 S1 1.5-2 0 1 0 0~0.5 55.5
[0028] Table 1 Table 1 shows a schematic diagram of soil characteristic information provided by an embodiment of this specification.
[0029] Soil quality information can be the material composition of the soil at the corresponding soil layer depth. As shown in Table 1, it can include miscellaneous fill, silty clay, clay, etc. The field value of the corresponding material is "1", and the field value of the corresponding material is "0". For example: the shallow soil at point S1 does not contain miscellaneous fill and clay, but contains silty clay. Groundwater information can be the distance from the soil layer depth to the groundwater level, which is less than 0 above the water level and greater than 0 below the water level.
[0030] The surface metal pollution concentration is the metal pollution concentration of the soil at a soil depth of "0-0.5" meters at the target sampling point, and the sub-surface metal pollution concentration is the metal pollution concentration of the soil at a soil depth of "1.5-2" meters at the target sampling point.
[0031] Of course, soil characteristic information is not limited to the above information, for example, it may also include: water quality information, temperature, etc., and this specification does not limit this.
[0032] In addition to the shallow layer, the soil characteristic information may also include soil characteristic information of other soil layer depths (eg, 0.5-1, 1-1.5), which is helpful for predicting the metal pollution concentration in the deep soil. This specification does not limit the soil layer depth of the soil characteristic information input into the model.
[0033] The collected data is not directly soil characteristic information, it needs to be preprocessed and converted into a data set suitable for machine learning. Abnormal data is removed and the data is normalized; normalization is based on the following formula and is performed column by column: ; Where Xi is the normalized value, xi, xmin, and xmax are the value at position i, the minimum value of the column data, and the maximum value of the column data, respectively.
[0034] Step 104: input the acquired soil characteristic information into a pre-trained soil pollution prediction model, so that the soil pollution prediction model can predict the metal pollution concentration of the soil in other soil layers of the target sampling point.
[0035] The soil pollution prediction model is a model built based on machine learning technology, which is used to predict the metal pollution concentration of soil in other soil layers according to the input soil characteristic information. The other soil layer can be the remaining soil layer different from the shallow layer, such as the deep soil.
[0036] The specific training process of the soil pollution prediction model will be introduced in detail later and will not be repeated here.
[0037] Step 106: Determine the metal pollution concentration at different soil depths of the target sampling point according to the metal pollution concentration output by the soil pollution prediction model and the metal pollution concentration in the soil characteristic information.
[0038] The soil characteristic information obtained in this specification includes not only the surface layer and the shallow bottom layer, but also the soil layer between the surface layer and the shallow bottom layer, which is also included in the model prediction. The metal pollution concentration of the overlapping soil layer can be finally determined based on the soil characteristic information or by calculating the average value of the two, which is not limited in this specification.
[0039] In this embodiment, on the one hand, the soil pollution prediction model is used to predict the metal pollution concentration of the soil below the shallow layer, so that when sampling the soil, only shallow soil samples need to be collected, which not only reduces the sampling difficulty and improves the prediction efficiency of the concentration of heavy metal pollutants in the soil, but also reduces the number of equipment analysis samples and reduces costs. On the other hand, when predicting the metal pollution concentration of the deep soil, the soil pollution prediction model not only predicts the metal pollution concentration based on the shallow soil, but also takes into account the influence of soil information, groundwater information, etc. on the metal pollution concentration, so that the predicted metal pollution concentration is more accurate.
[0040] In one embodiment, the metal pollution concentration in the soil characteristic information includes pollution concentrations of multiple metals, and the output of the soil pollution prediction model is a set of pollution concentrations of the multiple metals, and the multiple metals include at least one of the following: Cr, Ni, Hg, As, Pb, Zn, and Cu.
[0041] Table 1 records the pollution concentration of metal chromium (Cr). In actual situations, the metal pollution components of soil are complex, and there may be multiple metal pollutions (such as As, Cu, Hg, Cd, Zn, Pb, etc.). Therefore, the model can make separate predictions for different types of metal pollution, and the soil characteristic information input into the model can include the pollution concentrations of multiple metals, so that the metal pollution concentrations of other soil layers output by the model can also include the pollution concentrations of these multiple metals.
[0042] Of course, different metals can also be trained separately during the model training process, and corresponding prediction models can be trained for different metals to make targeted metal pollution predictions, making the predictions more accurate.
[0043] In one embodiment, the soil pollution prediction model is a machine learning model constructed based on a preset technology, and the preset technology includes at least one of the following: random forest, multivariate linear regression, support vector machine, neural network.
[0044] The machine learning model can be constructed based on different technologies, for example, using multiple linear regression, BP neural network, RBF neural network, random forest, etc. Since the random forest is not easy to overfit, it can reduce the overfitting tendency of the model to the training data, so that the model has better generalization ability. Therefore, in this embodiment, a random forest is used to construct a soil pollution prediction model.
[0045] In this embodiment, a soil pollution prediction model is constructed by random forest to reduce the overfitting tendency of the model to the training data, so that the model has better generalization ability.
[0046] This specification also proposes a corresponding soil pollution prediction model training method.
[0047] See also Figure 2 , Figure 2 A schematic diagram of the training process of a soil pollution prediction model provided in an embodiment of this specification is shown, such as Figure 2 As shown, the training method of the abnormal analysis model may include at least the following steps: Step 202: Obtain a training data set, wherein each training sample in the training data set includes: soil quality information, groundwater information, soil layer depth, and actual metal pollution concentration corresponding to different soil layer depths of the corresponding sampling point; wherein the different soil layer depths include shallow layers and other soil layers.
[0048] Here, other soil layers can be set according to actual uses. For example, in actual situations, if it is necessary to predict the metal pollution concentration of soil with a soil layer depth of 0-5 meters, then other soil layers correspondingly include all soil layers with a soil layer depth of 0-5 meters (except the shallow layer).
[0049] As shown in Table 2, the soil layer depth can be divided into units of 0.5 m or 1 m. Point Soil depth Miscellaneous fill Silty clay clay Water Level Surface metal pollution concentration g / kg Subsurface metal pollution concentration g / kg Actual metal concentration g / kg S1 0-0.5 0 1 0 -1.5~-1 82.3 55.5 82.3 S1 0.5-1 0 1 0 -1~-0.5 82.3 55.5 98 S1 1-1.5 0 1 0 -0.5~0 82.3 55.5 89.3 S1 1.5-2 0 1 0 0~0.5 82.3 55.5 55.5 S1 2-2.5 0 1 0 0.5~1 82.3 55.5 79.3 S1 2.5-3 0 1 0 1~1.5 82.3 55.5 94.2 S1 3-4 0 0 1 1.5~2.5 82.3 55.5 86.3 S1 4-5 0 0 1 2.5~3.5 82.3 55.5 84.4
[0050] Table 2 Step 204: input the training data set into the model to be trained, so that the model to be trained outputs the predicted metal pollution concentration at different soil layer depths corresponding to each training sample.
[0051] Step 206: compare the actual metal pollution concentration with the predicted metal pollution concentration, and optimize the hyperparameters of the model to be trained according to the comparison result until the model to be trained is used to predict the metal pollution in the soil.
[0052] In addition to the training data set, it also includes a validation data set and a test data set. Figure 3As shown, the data set is divided into a training set, a validation set, and a test set in a ratio of 3:1:1. The condition for determining that the model to be trained can be used to predict metal pollution in soil can be that the concentration of metal pollutants predicted by the model to be trained passes the test of the test machine.
[0053] In this embodiment, on the one hand, the soil pollution prediction model is used to predict the metal pollution concentration of the soil below the shallow layer, so that when sampling the soil, only shallow soil samples need to be collected, which not only reduces the sampling difficulty and improves the prediction efficiency of the concentration of heavy metal pollutants in the soil, but also reduces the number of equipment analysis samples and reduces costs. On the other hand, when predicting the metal pollution concentration of the deep soil, the soil pollution prediction model not only predicts the metal pollution concentration based on the shallow soil, but also takes into account the influence of soil information, groundwater information, etc. on the metal pollution concentration, so that the predicted metal pollution concentration is more accurate.
[0054] In one embodiment, the model to be trained is a machine learning model constructed based on random forest, and the hyperparameters include: one or more of the number of decision trees, the number of leaves, the minimum number of samples of leaf nodes, and the maximum depth of the decision tree.
[0055] In this embodiment, a soil pollution prediction model is constructed by random forest to reduce the overfitting tendency of the model to the training data, so that the model has better generalization ability.
[0056] In one embodiment, the comparison results include: the average error, root mean square error, correlation coefficient, and determination coefficient of the actual metal pollution concentration and the predicted metal pollution concentration; the condition for the optimization of the model to be trained to be completed is that the average error, root mean square error, correlation coefficient, and determination coefficient reach the corresponding preset thresholds.
[0057] The calculation formulas for mean error (MAE), root mean square error (RMSE), correlation coefficient (R), and determination coefficient (R2) are as follows: in, are the true value, predicted value, and average of predicted values respectively; n is the number of samples; They are respectively the i-th real metal pollution concentration, the average of the real metal pollution concentration, the i-th predicted metal pollution concentration, and the average of the predicted metal pollution concentration.
[0058] In the above comparison results, the smaller the RMSE, the better; the R value is in [-1, 1], the closer to 1, the better; the R2 is in [0, 1], the closer to 1, the better.
[0059] In this embodiment, the optimization completion conditions of the training model are cross-validated by different evaluation methods, thereby improving the verification accuracy.
[0060] See also Figure 4 , Figure 4 This is a block diagram of a device for predicting the concentration of heavy metal pollutants in soil provided in an embodiment of this specification. The device includes: An acquisition unit 402 is used to acquire shallow soil characteristic information of a target sampling point, wherein the soil characteristic information includes soil quality information, groundwater information, soil layer depth, and metal pollution concentration of the corresponding sampling point in the shallow layer; The prediction unit 404 is used to input the acquired soil characteristic information into a pre-trained soil pollution prediction model, so that the soil pollution prediction model predicts the metal pollution concentration of the soil of other soil layers at the target sampling point; The determination unit 406 is used to determine the metal pollution concentration of the target sampling point at different soil layer depths according to the metal pollution concentration output by the soil pollution prediction model and the metal pollution concentration in the soil characteristic information.
[0061] Optionally, the metal pollution concentration in the soil characteristic information includes pollution concentrations of multiple metals, and the output of the soil pollution prediction model is a set of pollution concentrations of the multiple metals, and the multiple metals include at least one of the following: Cr, Ni, Hg, As, Pb, Zn, and Cu.
[0062] Optionally, the soil pollution prediction model is a machine learning model constructed based on preset technology, and the preset technology includes at least one of the following: random forest, multivariate linear regression, support vector machine, neural network.
[0063] In this embodiment, on the one hand, the soil pollution prediction model is used to predict the metal pollution concentration of the soil below the shallow layer, so that when sampling the soil, only shallow soil samples need to be collected, which not only reduces the sampling difficulty and improves the prediction efficiency of the concentration of heavy metal pollutants in the soil, but also reduces the number of equipment analysis samples and reduces costs. On the other hand, when predicting the metal pollution concentration of the deep soil, the soil pollution prediction model not only predicts the metal pollution concentration based on the shallow soil, but also takes into account the influence of soil information, groundwater information, etc. on the metal pollution concentration, so that the predicted metal pollution concentration is more accurate.
[0064] See also Figure 5 , Figure 5 A block diagram of a soil pollution prediction model training device provided in an embodiment of this specification. The device includes: The acquisition unit 502 is used to acquire a training data set, wherein each training sample in the training data set includes: soil quality information, groundwater information, soil layer depth, and actual metal pollution concentration corresponding to different soil layer depths at the corresponding sampling point; wherein the different soil layer depths include shallow layers and other soil layers; An input unit 504 is used to input the training data set into the model to be trained, so that the model to be trained outputs the predicted metal pollution concentration at different soil depths corresponding to each training sample; The optimization unit 506 is used to compare the actual metal pollution concentration with the predicted metal pollution concentration, and optimize the hyperparameters of the model to be trained according to the comparison result until the model to be trained is used to predict the metal pollution of soil.
[0065] Optionally, the model to be trained is a machine learning model constructed based on random forest, and the hyperparameters include: one or more of the number of decision trees, the number of leaves, the minimum number of samples of leaf nodes, and the maximum depth of the decision tree.
[0066] Optionally, the comparison results include: the average error, root mean square error, correlation coefficient, and determination coefficient between the actual metal pollution concentration and the predicted metal pollution concentration; the condition for the optimization of the model to be trained to be completed is that the average error, root mean square error, correlation coefficient, and determination coefficient reach corresponding preset thresholds.
[0067] In this embodiment, on the one hand, the soil pollution prediction model is used to predict the metal pollution concentration of the soil below the shallow layer, so that when sampling the soil, only shallow soil samples need to be collected, which not only reduces the sampling difficulty and improves the prediction efficiency of the concentration of heavy metal pollutants in the soil, but also reduces the number of equipment analysis samples and reduces costs. On the other hand, when predicting the metal pollution concentration of the deep soil, the soil pollution prediction model not only predicts the metal pollution concentration based on the shallow soil, but also takes into account the influence of soil information, groundwater information, etc. on the metal pollution concentration, so that the predicted metal pollution concentration is more accurate.
[0068] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiment of the device for predicting the concentration of heavy metal pollutants in soil, since it is basically similar to the embodiment of the method for predicting the concentration of heavy metal pollutants in soil, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0069] See also Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification is shown.
[0070] like Figure 6 As shown, the electronic device 600 may include: at least one processor 601 , at least one network interface 604 , a user interface 603 , a memory 605 , and at least one communication bus 602 .
[0071] The communication bus 602 may be used to realize the connection and communication among the above-mentioned components.
[0072] The user interface 603 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.
[0073] The network interface 604 may include, but is not limited to, a Bluetooth module, an NFC module, a Wi-Fi module, etc.
[0074] Among them, the processor 601 may include one or more processing cores. The processor 601 uses various interfaces and lines to connect the various parts of the entire electronic device 600, and executes various functions and processes data of the electronic device 600 by running or executing instructions, programs, code sets or instruction sets stored in the memory 605, and calling data stored in the memory 605. Optionally, the processor 601 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The processor 601 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 601, and it can be implemented separately through a chip.
[0075] Among them, the memory 605 may include RAM or ROM. Optionally, the memory 605 includes a non-transitory computer-readable medium. The memory 605 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 605 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 605 may also be at least one storage device located away from the aforementioned processor 601. The memory 605 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a prediction application for the concentration of heavy metal pollutants in soil. The processor 601 can be used to call the prediction application for the concentration of heavy metal pollutants in soil stored in the memory 605, and perform the steps of predicting the concentration of heavy metal pollutants in soil mentioned in the aforementioned embodiment.
[0076] The embodiment of the present specification also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer or a processor, the computer or the processor executes the above-mentioned Figure 2 ~ One or more steps in the embodiment shown in Figure 4. If the components of the electronic device are implemented in the form of software functional units and sold or used as independent products, they can be stored in the computer-readable storage medium.
[0077] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of this specification is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state drive (SSD)).
[0078] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.
[0079] The embodiments described above are merely preferred embodiments of this specification and are not intended to limit the scope of this specification. Without departing from the design spirit of this specification, various modifications and improvements made to the technical solutions of this specification by ordinary technicians in this field should fall within the scope of protection determined by the claims of this specification.
Claims
1. A method for predicting the concentration of heavy metal pollutants in soil, comprising: Acquire shallow soil characteristic information of the target sampling point, wherein the soil characteristic information includes: soil quality information, groundwater information, soil layer depth, and metal pollution concentration of the corresponding sampling point in the shallow layer; Inputting the acquired soil characteristic information into a pre-trained soil pollution prediction model, so that the soil pollution prediction model can predict the metal pollution concentration of the soil in other soil layers of the target sampling point; The metal pollution concentration of the target sampling point at different soil layer depths is determined according to the metal pollution concentration output by the soil pollution prediction model and the metal pollution concentration in the soil characteristic information.
2. According to the method for predicting the concentration of heavy metal pollutants in soil according to claim 1, the metal pollution concentration in the soil characteristic information includes the pollution concentration of multiple metals, and the output of the soil pollution prediction model is a set of pollution concentrations of the multiple metals, and the multiple metals include at least one of the following: Cr, Ni, Hg, As, Pb, Zn, Cu.
3. According to the method for predicting the concentration of heavy metal pollutants in soil according to claim 1, the soil pollution prediction model is a machine learning model constructed based on preset technology, and the preset technology includes at least one of the following: random forest, multivariate linear regression, support vector machine, neural network.
4. A soil pollution prediction model training method, comprising: Acquire a training data set, wherein each training sample in the training data set includes: soil quality information, groundwater information, soil layer depth, and actual metal pollution concentration corresponding to different soil layer depths of a corresponding sampling point; wherein the different soil layer depths include shallow layers and other soil layers; Inputting the training data set into the model to be trained, so that the model to be trained outputs the predicted metal pollution concentration at different soil depths corresponding to each training sample; The actual metal pollution concentration and the predicted metal pollution concentration are compared, and the hyperparameters of the model to be trained are optimized according to the comparison result until the model to be trained is used to predict the metal pollution in the soil.
5. According to the soil pollution prediction model training method of claim 4, the model to be trained is a machine learning model based on random forest, and the hyperparameters include: One or more of the number of decision trees, number of leaves, minimum number of samples for leaf nodes, and maximum depth of decision trees.
6. According to the soil pollution prediction model training method of claim 4, the comparison results include: The average error, root mean square error, correlation coefficient, and determination coefficient of the actual metal pollution concentration and the predicted metal pollution concentration; the condition for the optimization of the model to be trained to be completed is that the average error, root mean square error, correlation coefficient, and determination coefficient reach the corresponding preset thresholds.
7. A device for predicting the concentration of heavy metal pollutants in soil, comprising: An acquisition unit is used to acquire shallow soil characteristic information of a target sampling point, wherein the soil characteristic information includes soil quality information, groundwater information, soil layer depth, and metal pollution concentration of the corresponding sampling point in the shallow layer; A prediction unit, used for inputting the acquired soil characteristic information into a pre-trained soil pollution prediction model, so that the soil pollution prediction model predicts the metal pollution concentration of the soil of other soil layers at the target sampling point; A determination unit is used to determine the metal pollution concentration of the target sampling point at different soil layer depths according to the metal pollution concentration output by the soil pollution prediction model and the metal pollution concentration in the soil characteristic information.
8. A soil pollution prediction model training device, comprising: An acquisition unit is used to acquire a training data set, wherein each training sample in the training data set includes: soil quality information, groundwater information, soil layer depth, and actual metal pollution concentration corresponding to different soil layer depths of a corresponding sampling point; wherein the different soil layer depths include shallow layers and other soil layers; An input unit, used to input the training data set into the model to be trained, so that the model to be trained outputs the predicted metal pollution concentration at different soil depths corresponding to each training sample; The optimization unit is used to compare the actual metal pollution concentration with the predicted metal pollution concentration, and optimize the hyperparameters of the model to be trained according to the comparison result until the model to be trained is used to predict the metal pollution of the soil.
9. An electronic device comprising a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method according to any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Analysis and early warning method and system for soil heavy metal pollution
CN120298187A
Analysis and early warning method and system for soil heavy metal pollution
CN120298187B
