A hydrogeological soil heavy metal pollution analysis and early warning system and method

By selecting detection points in the hydrogeological soil, detecting the concentration of minerals and pollutants in the groundwater layer, and setting up early warning detection points for continuous detection, the problem of intensive detection and early warning in the monitoring area in the existing technology is solved, and efficient and accurate detection is achieved. Pollution warning.

CN118376763BActive Publication Date: 2024-09-20INST OF HYDROGEOLOGY & ENVIRONMENTAL GEOLOGY CHINESE ACAD OF GEOLOGICAL SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410835669.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-20
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

Existing technology is difficult to achieve intensive detection and early warning in the monitoring area, resulting in high cost and poor timeliness of heavy metal pollution monitoring, making it impossible to respond quickly and provide timely early warning.

Method used

By selecting multiple detection points in the hydrogeological soil, the concentration of minerals and pollutants in the groundwater layer is detected, features are extracted and compared with the flow direction of the groundwater veins, early warning detection points are set for continuous detection, and warnings are set based on the concentration of pollutants and The value is compared to determine whether to carry out early warning, and the pollution early warning area is output.

Benefits of technology

It achieves a balance between the cost and timeliness of soil pollution detection, can effectively ensure the accuracy of large-scale hydrogeological soil pollution early warning, reduces monitoring costs, and improves the timeliness of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118376763B
    Figure CN118376763B
Patent Text Reader

Abstract

The present invention discloses a hydrogeological soil heavy metal pollution analysis and early warning system and method, and relates to the field of pollution monitoring technology. The present invention includes: detecting and obtaining the concentration of multiple types of minerals and pollutants in the aquifer at each detection point; extracting the concentration characteristics of multiple types of minerals and pollutants at each detection point, and comparing and obtaining a number of detection points corresponding to each underground water vein in the aquifer in the monitoring area and the flow direction of the underground water vein; using the detection points at both ends of each underground water vein as early warning detection points; continuously performing soil component detection on each early warning detection point to obtain the concentration of several types of pollutants at each collection moment; comparing the concentration of several types of pollutants at each early warning detection point at each collection moment with the set warning value of the corresponding type of pollutant, and judging whether to issue an early warning. The present invention takes into account both the cost and timeliness of soil pollution detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of pollution monitoring, and in particular relates to a hydrogeological soil heavy metal pollution analysis and early warning system and method. Background Art

[0002] With the acceleration of industrialization and urbanization, heavy metal pollution has become one of the serious environmental problems worldwide. Heavy metal pollution mainly comes from industrial wastewater, mining, agricultural fertilizers and pesticides. These pollutants enter the soil and water bodies through atmospheric deposition, surface runoff and groundwater infiltration, leading to the deterioration of the hydrogeological environment. Once heavy metals enter the soil, they have long-term accumulation and non-degradability, and are likely to endanger human health through the food chain, posing a serious threat to the ecological environment and human life.

[0003] At present, heavy metal pollution monitoring is limited by the detection cost and cannot achieve intensive detection and early warning in the monitoring area. This makes it difficult to balance the detection cost and detection timeliness when facing large-scale soil pollution detection, and it is difficult to meet the needs of rapid response and timely warning. Summary of the invention

[0004] The purpose of the present invention is to provide a hydrogeological soil heavy metal pollution analysis and early warning system and method, which allocates sampling units to analyze and early warning units to perform normalized and continuous detection on a small number of early warning detection points, taking into account the cost and timeliness of soil pollution detection.

[0005] In order to solve the above technical problems, the present invention is achieved through the following technical solutions:

[0006] The present invention provides a hydrogeological soil heavy metal pollution analysis and early warning method, comprising:

[0007] Select multiple detection points within the monitoring area;

[0008] Detecting and obtaining the concentrations of multiple types of minerals and pollutants in the aquifer at each of the detection points;

[0009] Extracting the concentration characteristics of multiple types of minerals and pollutants at each of the detection points, and comparing to obtain a number of detection points corresponding to each groundwater vein in the aquifer in the monitoring area and the flow direction of the groundwater vein;

[0010] Use the detection points at both ends of each underground water vein as early warning detection points;

[0011] Continuously testing the soil composition of each of the early warning detection points to obtain the concentrations of several types of pollutants at each collection moment;

[0012] Compare the concentrations of several types of pollutants at each of the early warning detection points at each collection moment with the set warning values ​​of the corresponding types of pollutants to determine whether to issue an early warning;

[0013] If yes, the pollution warning area is obtained and output according to the distribution of the warning detection points that will exceed the corresponding set warning value in the groundwater vein;

[0014] If not, no warning will be issued.

[0015] The present invention also discloses a hydrogeological soil heavy metal pollution analysis and early warning police, comprising:

[0016] Obtain a spatial model containing the monitoring area;

[0017] Receive pollution warning areas;

[0018] The pollution warning area is identified and displayed in the spatial model.

[0019] The present invention also discloses a hydrogeological soil heavy metal pollution analysis and early warning system, comprising:

[0020] A sampling and detection unit, used for detecting and uploading the concentration of multiple types of minerals and pollutants in the aquifer at each of the detection points;

[0021] An analysis and early warning unit is used to select multiple detection points within the monitoring area;

[0022] Detecting and obtaining the concentrations of multiple types of minerals and pollutants in the aquifer at each of the detection points;

[0023] Extracting the concentration characteristics of multiple types of minerals and pollutants at each of the detection points, and comparing to obtain a number of detection points corresponding to each groundwater vein in the aquifer in the monitoring area and the flow direction of the groundwater vein;

[0024] Use the detection points at both ends of each underground water vein as early warning detection points;

[0025] Continuously testing the soil composition of each of the early warning detection points to obtain the concentrations of several types of pollutants at each collection moment;

[0026] Compare the concentrations of several types of pollutants at each of the early warning detection points at each collection moment with the set warning values ​​of the corresponding types of pollutants to determine whether to issue an early warning;

[0027] If yes, the pollution warning area is obtained and output according to the distribution of the warning detection points that will exceed the corresponding set warning value in the groundwater vein;

[0028] If not, no warning is issued; and,

[0029] A display unit, used for obtaining a spatial model including a monitoring area;

[0030] Receiving the pollution warning area;

[0031] The pollution warning area is identified and displayed in the spatial model.

[0032] The present invention controls the position distribution of the sampling detection unit in the monitoring area through the analysis and early warning unit to detect the concentration of minerals and pollutants, and obtains the early warning detection point according to the detection data uploaded by the sampling detection unit. After that, continuous data collection is performed on a small number of early warning detection points and uploaded to the analysis and early warning unit, which analyzes and obtains the pollution early warning area that needs to be warned. Since only a few early warning detection points need to be normalized for soil pollution detection during the continuous pollution early warning of the monitoring area, the cost and detection timeliness of large-scale hydrogeological soil pollution early warning can be taken into account, and at the same time, the accuracy of the early warning can be effectively guaranteed.

[0033] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0035] Figure 1 A schematic diagram of functional units and information flow of a hydrogeological soil heavy metal pollution analysis and early warning system in one embodiment of the present invention;

[0036] Figure 2 A schematic diagram of the steps of the analysis and early warning unit of the present invention in one embodiment;

[0037] Figure 3 A schematic diagram of a step flow chart of a display unit according to an embodiment of the present invention;

[0038] Figure 4 This is a schematic diagram of the step flow of step S3 in one embodiment of the present invention;

[0039] Figure 5 This is a schematic diagram of a step flow chart of step S32 in an embodiment of the present invention;

[0040] Figure 6 This is a schematic diagram of a step flow chart of step S326 in an embodiment of the present invention;

[0041] Figure 7 This is a schematic diagram of a step flow chart of step S3261 in an embodiment of the present invention;

[0042] Figure 8 This is a schematic diagram of the step flow of step S6 in one embodiment of the present invention;

[0043] Fig. 9 This is a schematic diagram of the step flow of step S7 in one embodiment of the present invention;

[0044] Fig.10 This is a schematic diagram of the step flow of step S9 in one embodiment of the present invention;

[0045] In the accompanying drawings, the components represented by the reference numerals are listed as follows:

[0046] 1- Sampling and detection unit, 2- Analysis and early warning unit, 3- Display unit. DETAILED DESCRIPTION

[0047] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0048] It should be noted that the terms "first", "second", etc. in this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0049] Factories, garbage dumps and other pollution sources may leak due to inadequate environmental protection measures, causing pollution to the surrounding soil, especially heavy metal pollution that cannot be naturally degraded will cause serious ecological harm to the soil. In order to conduct comprehensive and accurate analysis and early warning of heavy metal pollution in the soil in a timely and effective manner, the present invention provides the following solution.

[0050] See also Figures 1 to 3As shown, the present invention provides a hydrogeological soil heavy metal pollution analysis and early warning system, which can include a sampling detection unit 1, an analysis and early warning unit 2 and a display unit 3 in terms of functional units. The sampling detection unit 1 can be a plurality of sensors with different detection types, or a sensor with a comprehensive detection function, or a virtual functional unit, as long as it can realize the function of detecting minerals and pollutants in the soil. The sampling detection unit 1 uploads the detected data to the analysis and early warning unit 2 for analysis and judgment on whether to issue an early warning. The display unit 3 can be a specific hardware, or it can be an application installed in a mobile phone or a computer.

[0051] From the perspective of geological structure, the vertical division is from top to bottom, including soil layer, middle layer, aquifer, aquiclude, etc. The soil layer is generally composed of loose and porous soil particles. Although the soil layer contains water, it basically has no horizontal fluidity. However, with factors such as rainfall and sedimentation, the minerals and pollutants contained in the soil layer will seep into the aquifer below. The aquifer is generally composed of gravel, sand, pebbles, coarse sand, etc. that are saturated with groundwater. The groundwater can flow horizontally and the water storage is relatively abundant. Due to capillary action, pollutants and soluble minerals in the aquifer will also spread to the surrounding soil layers with the capillary diffusion and flow of groundwater.

[0052] As can be seen from the above, the soluble matter in the soil layer and the aquifer will be exchanged with the movement of groundwater, but the lateral movement and diffusion speed of the soluble matter in the aquifer is faster. Therefore, in the process of detecting and analyzing the state of groundwater veins in the monitoring area, the aquifer at each detection point can be directly detected, and the soil layer can be directly detected in the subsequent detection of each early warning detection point.

[0053] During the operation of this system, the sampling and detection unit 1 detects and uploads the concentrations of multiple types of minerals and pollutants in the aquifer at each detection point. The types of minerals include common silicates and carbonates in soil. The types of pollutants may include common lead (Pb), cadmium (Cd), mercury (Hg), chromium (Cr), copper (Cu), zinc (Zn), nickel (Ni), manganese (Mn), etc., and other types of detection items may also be added in combination with the actual conditions of the monitoring area. Due to the differences in the types of sensor detection items in the sampling and detection unit 1, common heavy metal pollutants are easily soluble in water, so liquid sensitive sensors can be used to bury them in the soil layer or aquifer for detection. In order to improve the accuracy of detection, the sensor can be placed in a filter, which prevents solid particles from directly contacting the sensor, and at the same time, groundwater will enter the filter and be directly detected by the sensor. In this way, the detection accuracy of the sampling and detection unit 1 can be fully utilized to avoid interference with the detection caused by solid substances. Of course, if the sensor in the sampling and detection unit 1 is a solid-state sensitive sensor, the sampling and detection unit 1 can also be directly buried.

[0054] See also Figure 1 and 2 As shown, due to the high cost of the analysis and early warning unit 2, it is not possible to deploy the monitoring area at a high density, especially when facing a monitoring area of ​​hundreds of square kilometers, it is even more difficult to conduct real-time and comprehensive early warning analysis. This requires first finding the most suitable early warning detection point for monitoring in combination with the hydrogeology of the monitoring area, and then conducting normalized soil detection and analysis at the early warning detection point, so as to achieve comprehensive monitoring of heavy metal pollution in the soil of the entire monitoring area.

[0055] Heavy metal pollutants in the soil are mainly diffused through the flow of groundwater in the aquifer. Therefore, it is only necessary to set up early warning detection points on the groundwater flow path of the aquifer and conduct real-time detection to achieve comprehensive, timely and accurate pollution warning for the entire monitoring area. Of course, due to the slow flow of groundwater, the timeliness of this solution means that it has a higher timeliness than taking turns to detect point by point in the monitoring area.

[0056] In order to obtain the flow path and flow direction of the groundwater in the aquifer in the monitoring area, the analysis and early warning unit 2 can execute step S1 to select multiple detection points in the monitoring area, and these points can be densely and evenly distributed in the monitoring area. Next, step S2 can be executed to detect and obtain the concentrations of multiple types of minerals and pollutants in the aquifer at each detection point. It can be that a large number of samples from the detection points are batch tested and analyzed in a high-throughput mass spectrometer, and the detection cost is relatively low. A high-throughput mass spectrometer is an instrument for quickly and efficiently analyzing compounds in samples. It usually combines chromatographic separation techniques such as high-performance liquid chromatography (HPLC) or gas chromatography (GC) with mass spectrometry detection technology, and can perform high-sensitivity, high-resolution qualitative and quantitative analysis of compounds in samples.

[0057] The groundwater in the aquifer will flow along the groundwater veins. In order to maximize the monitoring and early warning function of the limited sampling and detection unit 1, the sampling and detection unit 1 can be set at the inflow and outflow ends of the groundwater veins. This requires judging the state of the groundwater veins in the monitoring area based on the detection and analysis results of the detection points. That is, execute step S3 to extract the concentration characteristics of multiple types of minerals and pollutants at each detection point, and compare to obtain a number of detection points corresponding to each groundwater vein in the aquifer in the monitoring area and the flow direction of the groundwater vein. And execute step S4 to use the detection points at both ends of each groundwater vein as early warning detection points. Here, a groundwater vein can be a linear underground river or a mesh-like underground river. The two ends of the groundwater vein refer to the positions where the groundwater vein intersects with the boundary of the monitoring area.

[0058] After obtaining the early warning detection point, a sampling detection unit 1 may be set at the early warning detection point, or the early warning detection point may be continuously sampled and sent to the sampling detection unit 1 for testing. That is, step S5 continuously tests each early warning detection point to obtain the concentration of several types of pollutants at each sampling moment, and the testing here refers to the soil component testing of the soil layer at the early warning detection point.

[0059] In the process of pollution warning, firstly, step S6 can be executed to compare the concentration of several types of pollutants at each warning detection point at each collection time with the set warning value of the corresponding type of pollutant to determine whether to issue a warning. If yes, then step S7 can be executed to obtain and output the pollution warning area according to the distribution of the warning detection points that exceed the corresponding set warning value in the groundwater vein. If not, then step S8 can be executed to not issue a warning.

[0060] Of course, due to seasonal changes and other reasons, the flow state of groundwater in the aquifer also changes, which requires timely adjustment of the location of the early warning detection point. Fig.10 As shown, first, step S91 can be executed to continuously obtain whether the relationship between the concentration of each type of mineral at each early warning monitoring point and several adjacent early warning monitoring points has changed. If so, it means that the flow state of groundwater in the aquifer in the monitoring area has changed, so next step S92 can be executed to reselect the detection point in the monitoring area and update the early warning detection point. If not, it means that the flow state of groundwater in the aquifer in the monitoring area has not changed significantly, so next step S93 can be executed without performing any operation. Of course, it needs to be explained that this scheme is only roughly judging the state of the groundwater veins, and it only needs to meet the aquifer pollution warning, and it is not strictly tracking the geological and hydrological conditions of the monitoring area.

[0061] See also Figure 1 and 3 As shown, in order to guide the pollution control personnel to handle the pollution warning area, the display unit 3 can be configured for the pollution control personnel. During the operation of the display unit 3, step S031 can be first executed to obtain a spatial model including the monitoring area. Next, step S032 can be executed to receive the pollution warning area. Finally, step S033 can be executed to identify and display the pollution warning area in the spatial model, which can be displayed in layers or in a data annotation manner.

[0062] See also Figure 4As shown, since groundwater will exchange soluble substances with underground soil during the flow along the groundwater veins, the location distribution of the groundwater veins can be determined by analyzing the concentration characteristics of minerals and pollutants. At the same time, since pollutants will be adsorbed by the soil, concentration differences will be generated during the pollution diffusion process, so the flow direction of the groundwater veins can be determined. Therefore, step S31 can be first executed to arrange the concentration values ​​of multiple types of minerals at each detection point in the order of the same mineral types to obtain the mineral concentration characteristics of each detection point. The data can be organized in a vector mode or in the form of an array, series, matrix, etc. Next, step S32 can be executed to obtain several detection points with the same hydrogeological characteristics corresponding to several groundwater veins according to the numerical differences between the mineral concentration characteristics of each detection point. Finally, step S33 can be executed for each groundwater vein where pollutants are detected, and the direction of the concentration of pollutants detected at multiple detection points corresponding to the groundwater vein from high to low is used as the flow direction of the groundwater vein.

[0063] See also Figure 5 As shown, since the hydrogeological characteristics belonging to the same groundwater vein are consistent, that is, the baseline mineral concentration characteristics are consistent, but in actual applications, the baseline mineral concentration characteristics with consistency are not exactly the same. In order to divide them into consistency, step S321 can be first executed to select several of the mineral concentration characteristics of all the detection points as the baseline mineral concentration characteristics. Next, step S322 can be executed to calculate the cumulative value of the difference between each baseline mineral concentration characteristic and each other mineral concentration characteristic in each type of mineral concentration value and as the difference between each baseline mineral concentration characteristic and each other mineral concentration characteristic. Next, step S323 can be executed to classify each other mineral concentration characteristic and the baseline mineral concentration characteristic with the smallest difference into the same feature group. Next, step S324 can be executed to calculate the mean of the concentration values ​​of all mineral concentration characteristics in each type of mineral in each feature group. Next, step S325 can be executed to calculate the mineral concentration characteristic with the smallest cumulative value of the difference between the mean of the concentration value of each type of mineral in each feature group as the updated baseline mineral concentration characteristic. Next, step S326 may be executed to continuously iterate and update the feature group and the reference mineral concentration feature until a number of stable feature groups are obtained. Finally, step S327 may be executed to use the number of detection points belonging to the same feature group as the number of detection points corresponding to the same groundwater vein.

[0064] In order to supplement the implementation process of the above steps S321 to S327, the source code of some functional modules is provided, and the explanation is compared in the comment section. In order to avoid the leakage of data involving commercial secrets, some data that does not affect the implementation of the solution are desensitized, the same below.

[0065] #include <iostream>

[0066] #include <vector>

[0067] #include <map>

[0068] #include <cmath>

[0069] #include <limits>

[0070] #include <algorithm>

[0071] / / Define the data structure of mineral concentration

[0072] struct Concentration {

[0073] double value;

[0074] std::string type;

[0075] };

[0076] / / Define the data structure of the detection point

[0077] struct DetectionPoint {

[0078] int id;

[0079] double x, y; / / Coordinates of the detection point

[0080] std::map<std::string, Concentration> concentrations; / / The concentrations of various minerals and pollutants in the aquifer

[0081] };

[0082] / / Define the data structure of the feature group

[0083] struct FeatureGroup {

[0084] std::vector <int>detectionPointIds; / / Detection point ID collection in the group

[0085] std::map<std::string, double> meanConcentrations; / / Mean concentration of each type of mineral

[0086] };

[0087] / / Calculate the difference between two concentration features

[0088] double calculateDifference(const std::map<std::string, Concentration> & a, const std::map<std::string, Concentration> & b) {

[0089] double sum = 0.0;

[0090] for (const auto& pair : a) {

[0091] auto it = b.find(pair.first);

[0092] if (it != b.end()) {

[0093] sum += std::abs(pair.second.value - it->second.value);

[0094] }

[0095] }

[0096] return sum;

[0097] }

[0098] / / Calculate the mean concentration within the feature group

[0099] std::map<std::string, double> calculateMeanConcentrations(const std::vector <detectionpoint>& points, const std::vector <int>& pointIds) {

[0100] std::map<std::string, double> meanConcentrations;

[0101] std::map<std::string, int> count;

[0102] for (const auto& pointId : pointIds) {

[0103] for (const auto& pair : points[pointId].concentrations) {

[0104] meanConcentrations[pair.first] += pair.second.value;

[0105] count[pair.first]++;

[0106] }

[0107] }

[0108] for (auto& pair : meanConcentrations) {

[0109] pair.second / = count[pair.first];

[0110] }

[0111] return meanConcentrations;

[0112] }

[0113] / / Iteratively update feature group and baseline mineral concentration features

[0114] void updateFeatureGroups(std::vector <detectionpoint>& points, std::vector <featuregroup>& featureGroups) {

[0115] bool updated;

[0116] do {

[0117] updated = false;

[0118] / / Clear feature group

[0119] for (auto& group : featureGroups) {

[0120] group.detectionPointIds.clear();

[0121] }

[0122] / / Classify each test point to the nearest baseline mineral concentration feature group

[0123] for (const auto& point : points) {

[0124] double minDifference = std::numeric_limits <double>::max();

[0125] int bestGroupIndex = -1;

[0126] for (size_t i = 0; i < featureGroups.size(); ++i) {

[0127] double difference = calculateDifference(point.concentrations, featureGroups[i].meanConcentrations);

[0128] if (difference < minDifference) {

[0129] minDifference = difference;

[0130] bestGroupIndex = static_cast <int>(i);

[0131] }

[0132] }

[0133] featureGroups[bestGroupIndex].detectionPointIds.push_back(point.id);

[0134] }

[0135] / / Update the mean concentration and baseline mineral concentration features for each feature group

[0136] for (auto& group : featureGroups) {

[0137] auto newMeanConcentrations = calculateMeanConcentrations(points, group.detectionPointIds);

[0138] / / Find the detection point with the smallest difference from the mean

[0139] double minDifference = std::numeric_limits <double>::max();

[0140] int bestPointId = -1;

[0141] for (const auto& pointId : group.detectionPointIds) {

[0142] double difference = 0.0;

[0143] for (const auto& pair : newMeanConcentrations) {

[0144] difference += std::abs(points[pointId].concentrations.at(pair.first).value - pair.second);

[0145] }

[0146] if (difference < minDifference) {

[0147] minDifference = difference;

[0148] bestPointId = pointId;

[0149] }

[0150] }

[0151] / / Update the mean concentration of the feature group and the reference detection point

[0152] auto oldMeanConcentrations = group.meanConcentrations;

[0153] group.meanConcentrations = newMeanConcentrations;

[0154] if (calculateDifference(oldMeanConcentrations,newMeanConcentrations) > 1e-6) {

[0155] updated = true;

[0156] }

[0157] }

[0158] } while (updated);

[0159] }

[0160] int main() {

[0161] int numPoints = 10; / / The number of selected detection points

[0162] std::vector <detectionpoint>points = selectDetectionPoints(numPoints);

[0163] / / Initially select several benchmark mineral concentration features

[0164] std::vector <featuregroup>featureGroups;

[0165] for (int i = 0; i < 3; ++i) { / / Example initially selects 3 benchmarks

[0166] FeatureGroup group;

[0167] group.detectionPointIds.push_back(points[i].id);

[0168] group.meanConcentrations = calculateMeanConcentrations(points,group.detectionPointIds);

[0169] featureGroups.push_back(group);

[0170] }

[0171] / / Iteratively update feature group and baseline mineral concentration features

[0172] updateFeatureGroups(points, featureGroups);

[0173] / / Output results

[0174] for (const auto& group : featureGroups) {

[0175] std::cout << "Feature Group: ";

[0176] for (const auto& pointId : group.detectionPointIds) {

[0177] std::cout << pointId << " ";

[0178] }

[0179] std::cout << std::endl;

[0180] }

[0181] return 0;

[0182] }

[0183] See also Figure 6 As shown, in order to make the mineral concentration characteristics within the feature group highly consistent, new feature groups can be continuously generated by iterative comparison calculation and judged whether they are stable, so as to obtain a stable feature group. Specifically, step S3261 can be first executed to adjust the feature group and the benchmark mineral concentration characteristics according to the difference between the mineral concentration characteristics in each feature group, so that the mineral concentration characteristics in the feature group tend to be consistent. Next, step S3262 can be executed to calculate the updated feature group and the benchmark mineral concentration characteristics. Next, step S3263 can be executed to determine whether the updated benchmark mineral concentration characteristics have changed. If so, it means that the currently obtained feature group is unstable. Next, steps S3261 to S3263 can be executed to continue to adjust the feature group and the benchmark mineral concentration characteristics, and calculate the updated feature group and the benchmark mineral concentration characteristics, that is, continuous iteration. If not, step S3264 can be executed next to obtain several stable feature groups.

[0184] See also Figure 7 As shown, since the number of baseline mineral concentration features and feature groups in the initial state of the iteration is random, but after the iteration converges and stabilizes, the number of baseline mineral concentration features and feature groups is the same and equal to the number of groundwater veins, it is necessary to adjust the number of baseline mineral concentration features during the iteration process, and adjust the number of feature groups synchronously. Specifically, step S32611 can be executed first to calculate the mean of the difference between all mineral concentration features as the average difference. Next, for each feature group, step S32612 can be executed to multiply the number of all mineral concentration features contained in the feature group by the average difference to obtain the target difference capacity of the feature group. Next, step S32613 can be executed to calculate the maximum value of the difference between the mineral concentration features in each feature group as the actual difference capacity of each feature group. Next, step S32614 can be executed to determine whether the actual difference capacity of the feature group is greater than the corresponding target difference capacity. If so, it means that the number of baseline mineral concentration features in the feature group is too small, so next step S32615 can be executed to change any other mineral concentration feature other than the baseline mineral concentration feature in the feature group to the baseline mineral concentration feature. If not, it means that the number of the baseline mineral concentration features in the feature group is appropriate, and then it is further determined whether the feature group should exist, that is, step S32616 is executed to determine whether the number of all mineral concentration features in the feature group is less than three. If so, it means that the mineral concentration features in the feature group are too few, and the feature group should not exist, and then step S32617 can be executed to dissolve the feature group, and the baseline mineral concentration features in the feature group are changed to other mineral concentration features other than the baseline mineral concentration features.

[0185] In order to provide additional explanation for the implementation process of the above-mentioned steps S32611 to S32617, the source code of some functional modules is provided, and a comparative explanation is given in the comment section.

[0186] #include <iostream>

[0187] #include <vector>

[0188] #include <map>

[0189] #include <cmath>

[0190] #include <limits>

[0191] #include <algorithm>

[0192] / / Define the data structure of mineral concentration

[0193] struct Concentration {

[0194] double value;

[0195] std::string type;

[0196] };

[0197] / / Define the data structure of the detection point

[0198] struct DetectionPoint {

[0199] int id;

[0200] double x, y; / / Coordinates of the detection point

[0201] std::map<std::string, Concentration> concentrations; / / The concentrations of various minerals and pollutants in the aquifer

[0202] };

[0203] / / Define the data structure of the feature group

[0204] struct FeatureGroup {

[0205] std::vector <int>detectionPointIds; / / Detection point ID collection in the group

[0206] std::map<std::string, double> meanConcentrations; / / Mean concentration of each type of mineral

[0207] };

[0208] / / Calculate the difference between two concentration features

[0209] double calculateDifference(const std::map<std::string, Concentration> & a, const std::map<std::string, Concentration> & b) {

[0210] double sum = 0.0;

[0211] for (const auto& pair : a) {

[0212] auto it = b.find(pair.first);

[0213] if (it != b.end()) {

[0214] sum += std::abs(pair.second.value - it->second.value);

[0215] }

[0216] }

[0217] return sum;

[0218] }

[0219] / / Calculate the mean concentration within the feature group

[0220] std::map<std::string, double> calculateMeanConcentrations(const std::vector <detectionpoint>& points, const std::vector <int>& pointIds) {

[0221] std::map<std::string, double> meanConcentrations;

[0222] std::map<std::string, int> count;

[0223] for (const auto& pointId : pointIds) {

[0224] for (const auto& pair : points[pointId].concentrations) {

[0225] meanConcentrations[pair.first] += pair.second.value;

[0226] count[pair.first]++;

[0227] }

[0228] }

[0229] for (auto& pair : meanConcentrations) {

[0230] pair.second / = count[pair.first];

[0231] }

[0232] return meanConcentrations;

[0233] }

[0234] / / Calculate the mean difference between all mineral concentration features

[0235] double calculateAverageDifference(const std::vector <detectionpoint>&points) {

[0236] double totalDifference = 0.0;

[0237] int count = 0;

[0238] for (size_t i = 0; i < points.size(); ++i) {

[0239] for (size_t j = i + 1; j < points.size(); ++j) {

[0240] totalDifference += calculateDifference(points[i].concentrations, points[j].concentrations);

[0241] count++;

[0242] }

[0243] }

[0244] return totalDifference / count;

[0245] }

[0246] / / Iteratively update feature group and baseline mineral concentration features

[0247] void updateFeatureGroups(std::vector <detectionpoint>& points, std::vector <featuregroup>& featureGroups) {

[0248] bool updated;

[0249] do {

[0250] updated = false;

[0251] / / Clear feature group

[0252] for (auto& group : featureGroups) {

[0253] group.detectionPointIds.clear();

[0254] }

[0255] / / Classify each detection point to the nearest baseline mineral concentration feature group

[0256] for (const auto& point : points) {

[0257] double minDifference = std::numeric_limits <double>::max();

[0258] int bestGroupIndex = -1;

[0259] for (size_t i = 0; i < featureGroups.size(); ++i) {

[0260] double difference = calculateDifference(point.concentrations, featureGroups[i].meanConcentrations);

[0261] if (difference < minDifference) {

[0262] minDifference = difference;

[0263] bestGroupIndex = static_cast <int>(i);

[0264] }

[0265] }

[0266] featureGroups[bestGroupIndex].detectionPointIds.push_back(point.id);

[0267] }

[0268] / / Update the mean concentration and baseline mineral concentration features for each feature group

[0269] for (auto& group : featureGroups) {

[0270] auto newMeanConcentrations = calculateMeanConcentrations(points, group.detectionPointIds);

[0271] / / Find the detection point with the smallest difference from the mean

[0272] double minDifference = std::numeric_limits <double>::max();

[0273] int bestPointId = -1;

[0274] for (const auto& pointId : group.detectionPointIds) {

[0275] double difference = 0.0;

[0276] for (const auto& pair : newMeanConcentrations) {

[0277] difference += std::abs(points[pointId].concentrations.at(pair.first).value - pair.second);

[0278] }

[0279] if (difference < minDifference) {

[0280] minDifference = difference;

[0281] bestPointId = pointId;

[0282] }

[0283] }

[0284] / / Update the mean concentration and benchmark detection points of the feature group

[0285] auto oldMeanConcentrations = group.meanConcentrations;

[0286] group.meanConcentrations = newMeanConcentrations;

[0287] / / Calculate the actual difference capacity and target difference capacity

[0288] double avgDifference = calculateAverageDifference(points);

[0289] double targetCapacity = group.detectionPointIds.size() *avgDifference;

[0290] double actualCapacity = minDifference;

[0291] if (actualCapacity > targetCapacity) {

[0292] / / If the actual difference capacity is greater than the target difference capacity, change the baseline mineral concentration feature

[0293] group.meanConcentrations = calculateMeanConcentrations(points, {bestPointId});

[0294] updated = true;

[0295] } else if (group.detectionPointIds.size() < 3) {

[0296] / / If the number of all mineral concentration features in a feature group is less than three, dissolve the feature group

[0297] group.detectionPointIds.clear();

[0298] updated = true;

[0299] }

[0300] / / Determine if there is a change

[0301] if (calculateDifference(oldMeanConcentrations,newMeanConcentrations) > 1e-6) {

[0302] updated = true;

[0303] }

[0304] }

[0305] } while (updated);

[0306] }

[0307] int main() {

[0308] int numPoints = 10; / / The number of selected detection points

[0309] std::vector <detectionpoint>points = selectDetectionPoints(numPoints);

[0310] / / Initially select several benchmark mineral concentration features

[0311] std::vector <featuregroup>featureGroups;

[0312] for (int i = 0; i < 3; ++i) { / / Example initially selects 3 benchmarks

[0313] FeatureGroup group;

[0314] group.detectionPointIds.push_back(points[i].id);

[0315] group.meanConcentrations = calculateMeanConcentrations(points,group.detectionPointIds);

[0316] featureGroups.push_back(group);

[0317] }

[0318] / / Iteratively update feature group and baseline mineral concentration features

[0319] updateFeatureGroups(points, featureGroups);

[0320] / / Output results

[0321] for (const auto& group : featureGroups) {

[0322] std::cout << "Feature Group: ";

[0323] for (const auto& pointId : group.detectionPointIds) {

[0324] std::cout << pointId << " ";

[0325] }

[0326] std::cout << std::endl;

[0327] }

[0328] return 0;

[0329] }

[0330] See also Figure 8 As shown, for each early warning detection point, if the concentration value detected by the sampling detection unit 1 is greater than the corresponding set warning value, an early warning can be directly issued, that is, step S61 is executed to determine whether the concentration of several types of pollutants at the early warning detection point obtained in real time is greater than the set warning value of the corresponding type of pollutant. If so, step S62 can be executed next to issue an early warning.

[0331] However, sometimes, although the concentration value detected by the sampling detection unit 1 has not exceeded the standard, its predicted value will exceed the standard, and an early warning can also be issued. That is, step S63 is executed for each type of pollutant, and numerical fitting is performed according to the concentration of the pollutant at each collection moment to obtain the maximum estimated value of each type of pollutant. The maximum estimated value here can be the maximum value derived by fitting, or it can be the estimated value after a set time, such as the estimated value after one year. Next, step S64 can be executed to determine whether the maximum estimated value of each type of pollutant is greater than the set warning value of the corresponding type of pollutant. If so, it means that the standard will be exceeded in the future, so step S65 can be executed next to issue an early warning. Otherwise, it means that there is no danger of pollution exceeding the standard, so step S66 can be executed next without issuing an early warning.

[0332] See also Fig. 9 As shown, since the flow direction of groundwater in the groundwater vein is directional, the diffusion of pollutants is also directional. If there is an early warning detection point that exceeds the set warning value, it is also necessary to determine the pollution warning area in combination with its position in the groundwater vein. Specifically, step S71 can be first executed to determine whether the early warning detection point that exceeds the corresponding set warning value is located upstream or downstream of the groundwater vein according to the several detection points corresponding to each groundwater vein in the aquifer in the monitoring area and the flow direction of the groundwater vein. If it is located upstream, then step S72 can be executed next to follow the groundwater vein and use the entire downstream area as the pollution warning area. If it is located downstream, then step S73 can be executed next to follow the groundwater vein and use the entire upstream area as the pollution warning area.

[0333] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the device, system, method and computer program product according to multiple embodiments of the present application. In this regard, each square frame in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the functions marked in the square frame can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square frames can actually be executed substantially in parallel, and they can also be executed in reverse order sometimes, depending on the functions involved.

[0334] It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented by hardware that performs the corresponding function or action, such as a circuit or ASIC (Application Specific Integrated Circuit), or can be implemented by a combination of hardware and software, such as firmware.

[0335] Although the present invention is described herein in conjunction with various embodiments, in the process of implementing the claimed invention, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

[0336] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes are obvious to those of ordinary skill in the art without departing from the scope of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.< / featuregroup> < / detectionpoint> < / double> < / int> < / double> < / featuregroup> < / detectionpoint> < / detectionpoint> < / int> < / detectionpoint> < / int> < / algorithm> < / limits> < / cmath> < / map> < / vector> < / iostream> < / featuregroup> < / detectionpoint> < / double> < / int> < / double> < / featuregroup> < / detectionpoint> < / int> < / detectionpoint> < / int> < / algorithm> < / limits> < / cmath> < / map> < / vector> < / iostream>

Claims

1. A hydrogeological soil heavy metal pollution analysis and early warning method, characterized in that: include, Select multiple detection points within the monitoring area; Detecting and obtaining the concentrations of multiple types of minerals and pollutants in the aquifer at each of the detection points; Extracting the concentration characteristics of multiple types of minerals and pollutants at each of the detection points, and comparing to obtain a number of detection points corresponding to each groundwater vein in the aquifer in the monitoring area and the flow direction of the groundwater vein; Use the detection points at both ends of each underground water vein as early warning detection points; Continuously testing the soil composition of each of the early warning detection points to obtain the concentrations of several types of pollutants at each collection moment; Compare the concentrations of several types of pollutants at each of the early warning detection points at each collection moment with the set warning values ​​of the corresponding types of pollutants to determine whether to issue an early warning; If so, the pollution warning area is obtained and output according to the distribution of the warning detection points that exceed the corresponding set warning value in the groundwater vein; If not, no warning will be issued; in, The step of extracting the concentration characteristics of multiple types of minerals and pollutants at each detection point, and comparing to obtain a number of detection points corresponding to each groundwater vein in the aquifer in the monitoring area and the flow direction of the groundwater vein, includes arranging the concentration values ​​of multiple types of minerals at each detection point in the order of the same mineral types to obtain the mineral concentration characteristics of each detection point; obtaining a number of detection points with the same hydrogeological characteristics corresponding to a number of groundwater veins according to the numerical differences between the mineral concentration characteristics of each detection point; for each groundwater vein in which pollutants are detected, taking the direction from high to low according to the concentration of pollutants detected at the multiple detection points corresponding to the groundwater vein as the flow direction of the groundwater vein; The step of obtaining several detection points with the same hydrogeological characteristics corresponding to several groundwater veins according to the numerical differences between the mineral concentration characteristics of each detection point includes: selecting several of the mineral concentration characteristics of all the detection points as baseline mineral concentration characteristics; calculating the cumulative value of the difference between each baseline mineral concentration characteristic and each other mineral concentration characteristic in each type of mineral concentration and taking the difference between each baseline mineral concentration characteristic and each other mineral concentration characteristic; classifying each other mineral concentration characteristic and the baseline mineral concentration characteristic with the smallest difference into the same feature group; calculating the mean of the concentration values ​​of all mineral concentration characteristics in each type of mineral in each feature group; in each feature group, calculating the mineral concentration characteristic with the smallest cumulative value of the difference from the mean of the concentration values ​​of each type of mineral as the updated baseline mineral concentration characteristic; continuously iterating and updating the feature groups and the baseline mineral concentration characteristics until a stable number of feature groups are obtained; and taking several detection points belonging to the same feature group as several detection points corresponding to the same groundwater vein; The step of continuously iteratively updating the feature group and the benchmark mineral concentration feature until a plurality of stable feature groups are obtained includes: adjusting the feature group and the benchmark mineral concentration feature according to the difference between the mineral concentration features in each feature group, so that the mineral concentration features in the feature group tend to be consistent; calculating the updated feature group and the benchmark mineral concentration feature; judging whether the updated benchmark mineral concentration feature has changed; if so, continuing to adjust the feature group and the benchmark mineral concentration feature, and calculating the updated feature group and the benchmark mineral concentration feature; if not, obtaining a plurality of stable feature groups; The step of adjusting the feature group and the benchmark mineral concentration feature according to the difference between the mineral concentration features in each feature group includes: calculating the mean of the differences between all the mineral concentration features as the average difference; for each feature group, multiplying the number of all the mineral concentration features contained in the feature group by the average difference to obtain the target difference capacity of the feature group; calculating the maximum value of the difference between the mineral concentration features in each feature group as the actual difference capacity of each feature group; judging whether the actual difference capacity of the feature group is greater than the corresponding target difference capacity; if so, changing any other mineral concentration feature other than the benchmark mineral concentration feature in the feature group to the benchmark mineral concentration feature; if not, judging whether the number of all the mineral concentration features in the feature group is less than three, and if so, disbanding the feature group and changing the benchmark mineral concentration feature in the feature group to other mineral concentration features other than the benchmark mineral concentration feature.

2. The method according to claim 1, characterized in that The step of comparing the concentrations of several types of pollutants at each early warning detection point at each collection moment with the set warning values ​​of the corresponding types of pollutants to determine whether to issue an early warning includes: For each of the early warning detection points, Determine whether the concentrations of several types of pollutants at the early warning detection point obtained in real time are greater than the set warning values ​​of the corresponding types of pollutants, If so, an early warning is issued; If not, for each type of pollutant, numerical fitting is performed based on the concentration of the pollutant at each sampling moment to obtain the maximum estimated value of each type of pollutant. Determine whether the maximum estimated value of each type of pollutant is greater than the set warning value of the corresponding type of pollutant, If so, a warning is issued. If not, no warning will be issued.

3. The method according to claim 1, characterized in that The step of obtaining the pollution warning area according to the distribution of the warning detection points exceeding the corresponding set warning value in the groundwater vein, include, According to a number of detection points corresponding to each underground water vein in the aquifer in the monitoring area and the flow direction of the underground water vein, it is determined whether the early warning detection point that exceeds the corresponding set warning value is located upstream or downstream of the underground water vein; If it is located upstream, the entire downstream area along the groundwater vein will be used as a pollution warning area; If it is located downstream, the entire upstream area will be designated as a pollution warning area along the groundwater veins.

4. The method according to claim 1, characterized in that: Also includes, Continuously obtain whether the relationship between the concentration of each type of mineral at each early warning monitoring point and several adjacent early warning monitoring points has changed; If yes, reselect the detection point in the monitoring area and update the early warning detection point; If not, no operation is performed.

5. A hydrogeological soil heavy metal pollution analysis and early warning method, characterized in that: include, Obtain a spatial model containing the monitoring area; Receiving a pollution warning area in a hydrogeological soil heavy metal pollution analysis and warning method according to any one of claims 1 to 4; The pollution warning area is identified and displayed in the spatial model.

6. A hydrogeological soil heavy metal pollution analysis and early warning system, characterized in that: include, Sampling and testing unit, used to detect and upload the concentration of multiple types of minerals and pollutants in the aquifer at each testing point; An analysis and early warning unit is used to select multiple detection points within the monitoring area; Detect and obtain the concentrations of multiple types of minerals and pollutants in the aquifer at each detection point; extract the concentration characteristics of multiple types of minerals and pollutants at each detection point, and compare to obtain a number of detection points corresponding to each groundwater vein in the aquifer in the monitoring area and the flow direction of the groundwater vein; use the detection points at both ends of each groundwater vein as early warning detection points; continuously perform soil component detection on each early warning detection point to obtain the concentrations of several types of pollutants at each collection moment; compare the concentrations of several types of pollutants at each early warning detection point at each collection moment with the set warning values ​​of the corresponding types of pollutants to determine whether to issue an early warning; if so, derive and output the pollution early warning area based on the distribution of the early warning detection points that exceed the corresponding set warning values ​​in the groundwater veins; if not, do not issue an early warning; as well as, A display unit, used to obtain a spatial model including a monitoring area; and receive the pollution warning area; Marking and displaying the pollution warning area in the spatial model; in, The step of extracting the concentration characteristics of multiple types of minerals and pollutants at each detection point, and comparing to obtain a number of detection points corresponding to each groundwater vein in the aquifer in the monitoring area and the flow direction of the groundwater vein, includes arranging the concentration values ​​of multiple types of minerals at each detection point in the order of the same mineral types to obtain the mineral concentration characteristics of each detection point; obtaining a number of detection points with the same hydrogeological characteristics corresponding to a number of groundwater veins according to the numerical differences between the mineral concentration characteristics of each detection point; for each groundwater vein in which pollutants are detected, taking the direction from high to low according to the concentration of pollutants detected at the multiple detection points corresponding to the groundwater vein as the flow direction of the groundwater vein; The step of obtaining several detection points with the same hydrogeological characteristics corresponding to several groundwater veins according to the numerical differences between the mineral concentration characteristics of each detection point includes: selecting several of the mineral concentration characteristics of all the detection points as baseline mineral concentration characteristics; calculating the cumulative value of the difference between each baseline mineral concentration characteristic and each other mineral concentration characteristic in each type of mineral concentration and taking the difference between each baseline mineral concentration characteristic and each other mineral concentration characteristic; classifying each other mineral concentration characteristic and the baseline mineral concentration characteristic with the smallest difference into the same feature group; calculating the mean of the concentration values ​​of all mineral concentration characteristics in each type of mineral in each feature group; in each feature group, calculating the mineral concentration characteristic with the smallest cumulative value of the difference from the mean of the concentration values ​​of each type of mineral as the updated baseline mineral concentration characteristic; continuously iterating and updating the feature groups and the baseline mineral concentration characteristics until a stable number of feature groups are obtained; and taking several detection points belonging to the same feature group as several detection points corresponding to the same groundwater vein; The step of continuously iteratively updating the feature group and the benchmark mineral concentration feature until a plurality of stable feature groups are obtained includes: adjusting the feature group and the benchmark mineral concentration feature according to the difference between the mineral concentration features in each feature group, so that the mineral concentration features in the feature group tend to be consistent; calculating the updated feature group and the benchmark mineral concentration feature; judging whether the updated benchmark mineral concentration feature has changed; if so, continuing to adjust the feature group and the benchmark mineral concentration feature, and calculating the updated feature group and the benchmark mineral concentration feature; if not, obtaining a plurality of stable feature groups; The step of adjusting the feature group and the benchmark mineral concentration feature according to the difference between the mineral concentration features in each feature group includes: calculating the mean of the differences between all the mineral concentration features as the average difference; for each feature group, multiplying the number of all the mineral concentration features contained in the feature group by the average difference to obtain the target difference capacity of the feature group; calculating the maximum value of the difference between the mineral concentration features in each feature group as the actual difference capacity of each feature group; judging whether the actual difference capacity of the feature group is greater than the corresponding target difference capacity; if so, changing any other mineral concentration feature other than the benchmark mineral concentration feature in the feature group to the benchmark mineral concentration feature; if not, judging whether the number of all the mineral concentration features in the feature group is less than three, and if so, disbanding the feature group and changing the benchmark mineral concentration feature in the feature group to other mineral concentration features other than the benchmark mineral concentration feature.