Method for reconstructing and correcting groundwater pollution plume based on conditional diffusion and equation recovery
By using a conditional diffusion and equation recovery method, the spatiotemporal fields of water head and pollutant concentration in the inter-well region are reconstructed using head and concentration observations from sparse well points. This solves the reconstruction problem under sparse well point conditions, restores the dominant transport equation, corrects the pollutant plume, and improves the characterization ability of pollutant migration processes.
Patent Information
- Application Number
- CN202611626260.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-20
- Publication Date
- 2026-11-24
AI Technical Summary
In groundwater pollution investigations, existing technologies struggle to reconstruct the spatiotemporal field of continuous water head and pollutant concentration in inter-well regions under sparse monitoring well conditions. Furthermore, the reconstruction results lack equation-level information that can be used for subsequent corrections, making it impossible to effectively explain the pollutant migration process.
By using a conditional diffusion and equation recovery approach, the spatiotemporal fields of water head and pollutant concentration in the inter-well region are reconstructed using head and concentration observations from sparse well points. Combined with sparse regression to recover transport equations and diagnostic information, this method guides the correction of pollution plumes and improves the characterization of pollutant migration processes.
It enables the reconstruction of continuous head and pollutant concentration fields in the inter-well region under sparse well point conditions, restores the dominant transport equation and source-related information, improves the characterization ability of pollutant migration processes, and can effectively correct the structure of pollutant plumes.
Smart Images

Figure CN123159140A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the interdisciplinary fields of groundwater pollution monitoring, solute transport simulation and machine learning, specifically a groundwater pollution plume reconstruction and correction method based on conditional diffusion and equation recovery. Background Technology
[0002] Groundwater pollution investigations typically rely on a limited number of monitoring wells to obtain hydraulic head and pollutant concentration data. Determining the extent of a pollution plume, analyzing pollution sources, and developing remediation plans require understanding the continuous hydraulic head distribution, concentration distribution, and their temporal variations within the inter-well area. The hydraulic head gradient determines groundwater flow velocity and direction, and pollutant concentrations are also influenced by release processes, advection, dispersion, retention, and attenuation. Therefore, the time series data from a single monitoring well cannot directly describe the complete pollution plume.
[0003] Current groundwater pollution investigations employ methods such as groundwater numerical simulation, observational data interpolation, and machine learning reconstruction. Numerical simulation calculates the spatiotemporal field using groundwater flow and solute transport equations, requiring given medium parameters, initial conditions, boundary conditions, and source-sink information. Interpolation methods estimate inter-well values based on wellpoint observations and spatial correlations, facilitating the formation of continuous distribution maps. Machine learning methods learn the mapping between observations and the complete field through training data; conditional diffusion models, in particular, generate the complete spatiotemporal field under observational constraints through progressive denoising. However, these existing technologies have the following drawbacks and limitations: First, the field reconstruction under sparse observations lacks sufficient constraints. Different permeation structures, source release histories, and boundary conditions may produce similar wellpoint records, but correspond to different inter-well plume morphologies. Relying solely on wellpoint fitting or spatial interpolation is insufficient to fully preserve the local structures of the plume leading edge, tail, and source region.
[0004] Second, head fields and concentration fields have different reconstruction requirements. Head fields are typically smoother and controlled by regional gradients and boundaries; concentration fields are more localized and have a clear historical dependence. If concentration reconstruction does not fully utilize head and gradient information, it is difficult to correlate wellpoint concentrations with actual migration directions.
[0005] Third, the reconstruction results lack equation-level information that can be used for subsequent corrections. A continuous, smooth concentration distribution and low point value error do not directly indicate that it preserves advection, diffusion, attenuation, and pollution source signals. Evaluating image morphology or reconstruction errors in isolation also makes it difficult to determine which errors are related to specific transport processes.
[0006] Fourth, hidden pollution sources can affect equation recovery and plume interpretation. When the hydraulic injection process is known but the pollutant release process is unknown, concentration changes not explained by the main transport term may be attributed to other candidate terms, affecting coefficient estimation. It is necessary to extract source-related structures from the equation residuals of the reconstructed field and use them for plume correction. Summary of the Invention
[0007] The purpose of this invention is to provide a groundwater pollution plume reconstruction and correction method based on conditional diffusion and equation recovery. Using monitoring well head, concentration time series, and well location as the main inputs, the method sequentially proceeds through three steps: sparse well conditional diffusion reconstruction, transport equation recovery and consistency diagnosis, and pollution plume correction guided by diagnostic information. The outputs a complete head field, initial concentration field, supported transport equations, source-related structures, and a corrected pollution plume. This addresses the problem raised in the background art: how to reconstruct the continuous spatiotemporal field of head and pollutant concentration in the inter-well region using head and concentration observations from sparse wells, under conditions of limited number of groundwater monitoring wells, uneven spatial distribution, and unknown pollutant release processes; how to recover the dominant transport equations and source-related information from the reconstruction results; and how to use the recovered equations to guide pollution plume correction, thereby improving the ability of the reconstruction results to characterize the pollutant migration process.
[0008] To solve the above-mentioned technical problems, the present invention provides the following technical solution: The method for reconstructing and correcting groundwater pollution plumes based on conditional diffusion and equation recovery includes the following steps: Establish a regular spatial grid and a unified observation time axis in the target area, map the location of the monitoring wells to the grid cells, and assign the water head and concentration observation values of the monitoring wells to the grid cells to construct a water head sparse observation field and a concentration sparse observation field. Determine the condition information for the head model; The sparse observation and conditional information of the head of the sample to be reconstructed are input into the trained head model. The reconstructed head is obtained by using a second-order Heun sampler, and its gradient is calculated by spatial difference. Input the conditional information of the concentration model into the concentration model to generate multiple candidate concentration spatiotemporal fields; for each candidate field, a comprehensive score is given based on well point error, concentration prior error, consistency of the concentration diffusion model itself, numerical out-of-bounds penalty, temporal smoothness and spatial smoothness, and the average of the top N candidate fields with the comprehensive scores from smallest to largest is taken to obtain the initial concentration reconstruction field. Reconstructing the field and reconstructing the head based on initial concentration. Construct candidate libraries for water head and concentration, respectively; Sparse regression was performed on the candidate pools of head and concentration to recover the corresponding head equations and concentration equations, respectively, and the diagnostic information of the recovered head equations and concentration equations was confirmed. The diagnostic information from the recovery head equation and concentration equation is converted into bounded concentration increments to obtain the final pollution plume.
[0009] in, ; ; in, This represents element-wise multiplication. This indicates the wellpoint head observation disturbance. For well point concentration observation disturbance, Indicates water head. This represents the concentration of pollutants. and To write sparse observations into a regular grid, each array uses the same time axis and spatial grid.
[0010] Preferably, the head model condition information includes: sparse head observations. Water head observation mask The nearest well distance, spatial coordinates, well network layout identifiers, and the known hydraulic source sink field formed by pumping or injection. ;in, For a binary mask, the grid cells with water head observations are set to 1, and the other grid cells are set to 0; The conditional information of the concentration model includes sparse concentration observations. Concentration observation mask Reconstructing the water head Reconstructing the head gradient Sparse water head observation Water head observation mask The nearest well distance, normalized spatial coordinates of each regular grid cell in the target area, well network layout identifiers, and concentration priors obtained by interpolating concentration well point observations. The confidence level is obtained by normalizing the well point distance weights. and known water source confluence .
[0011] Specifically, normalized nearest well distances and well network layout identifiers are generated based on well locations; spatial coordinates are obtained by normalizing the positions of each grid cell in the target area. Concentration priors are obtained by interpolating concentration well point observations. And generate the corresponding confidence level. This enables the model to distinguish regions with varying degrees of observational support. Furthermore, both the concentration model training and application use reconstructed head as a condition, ensuring that the head information received in both stages originates from a consistent source.
[0012] The concentration prior is calculated using inverse distance squared weighted interpolation. Let the first... The distance from the wellhead to the grid to be estimated (in grid index) is: ,Pick Calculation in the model's standardized concentration space After inverse transformation, we get The confidence level is This indicates the degree of spatial constraint that the well network imposes on each grid. Among them, Traversing the monitoring wells, For interpolation weights, For the first The standardized concentration of the well at the current moment. These are priors at the same scale; the superscript tilde indicates the standardized quantities used in the model. , Index the target grid horizontally and vertically. Traverse the entire spatial grid; To express summation, This indicates taking the maximum value, and the lower limit of the squared distance is 1 to avoid division by zero at the well point. is the dimensionless confidence level within [0,1].
[0013] Preferably, the head model adopts the EDM denoising parameterization framework and uses a single-variable three-dimensional spatiotemporal U-Net as the denoising backbone network; The denoised head field, the conditional information of the head model, and the noise level are input into the head model to obtain a denoised estimate of the complete head spatiotemporal field. The head model is trained using EDM denoising diffusion. Through input scaling, output scaling, and skip connection scaling, it coordinates the network input and output under different noise levels. Its conditional denoising relationship can be summarized as follows: ; in, Indicates the noise level and condition information Target field denoising estimation These are the trainable parameters of the model. The target field after adding noise. For noise level, For conditional information, For the aforementioned three-dimensional spatiotemporal U-Net network, This represents the EDM input scaling factor. This indicates the EDM output scaling factor. This represents the scaling factor for skip connections.
[0014] The single-variable 3D spatiotemporal U-Net includes an encoder and a decoder. Both the encoder and decoder use 3D convolutional residual blocks. The 3D convolutional residual blocks are configured with group normalization layers, SiLU activation function layers, 3D convolutional layers, random deactivation layers, and noise embedding modules.
[0015] This invention uses the complete head space-time field as the training target, adds Gaussian noise at different noise levels, and trains the model to recover the noise-free head field according to the above conditions.
[0016] The head model and concentration model use the same network structure as described above, respectively inputting the noise field and condition information of the corresponding variables, and outputting the complete spatiotemporal field denoising estimate of the corresponding variables.
[0017] Preferably, after obtaining the reconstructed buffer head, a concentration-conditional diffusion model guided by the head information is trained. Through... and Provide groundwater flow structure to the concentration model, through and Provides spatial constraints formed by well point observations.
[0018] The training loss for the concentration model includes EDM denoising error, well observation consistency, and concentration prior constraints. The prior constraints are weighted by confidence level; additionally, later and final time points are given higher weights to ensure the training focuses on later plume morphology, tail structure, and source-related features. This loss is used to update the model parameters and its composition can be expressed as: ; in, This is the time-weighted denoising error. To predict the error between concentration and well point observations, To predict the confidence-weighted error between concentration and interpolation prior, and These are the weights of the two types of constraints mentioned above. Real pollution sources. It is not used as a conditional input for the concentration model.
[0019] The concentration model adopts the EDM denoising parameterization framework and uses a single-variable three-dimensional spatiotemporal U-Net as the denoising backbone network. The noisy concentration field, the condition information of the concentration model and the noise level are input into the concentration model to obtain the initial concentration reconstruction field, and the water head and water head gradient are reconstructed.
[0020] In the latter half of the concentration sampling process, wellpoint observation projection is performed to revert the concentration at the monitoring well location to the input observation value; in the final output, the wellpoint concentration is replaced again with the observation value. The aforementioned head reconstruction process output... Concentration reconstruction process output This serves as the common basis for equation recovery and subsequent correction.
[0021] Preferably, the candidate head pool includes a head diffusion term, a known hydraulic source-sink term, and a cross-field residual and concentration gradient diagnostic term; wherein, when expressed in terms of normalized head h, the head diffusion term is expressed as... The known hydraulic source and sink terms are represented as follows: The cross-field residual is expressed as The concentration gradient diagnostic term is represented as . In scenarios with hydraulic sources and sinks, this is considered a known forcing quantity in the head equation. Here... Represents the initial concentration reconstruction field . To reconstruct the variables of the head after normalization according to the head characteristic scale; For divergence operators, For the Laplace operator, Let be the Euclidean modulus of the head gradient vector. Candidate options and time derivatives are scaled using a consistent normalization method.
[0022] The concentration candidate library includes averaging quantity items. Diffuse items The first-order decay term C, based on the reconstructed initial concentration field, and candidate hidden pollution sources. At the same time, add and Redundant diagnostic items.
[0023] The first-order decay term, which uses the reconstructed initial concentration field as a basis function, is the concentration basis function. Its coefficient represents the decay intensity and contains a corresponding negative sign. Together, they constitute the decay contribution. and The two redundant diagnostic items represent, respectively, a diffusion-type diagnostic item weighted by both concentration and head gradient amplitude, and a diffusion-type diagnostic item weighted only by head gradient amplitude; these are used to check the stability of reconstruction errors mixed into the main transport items and candidate item screening.
[0024] The flux form is consistent with that used in the numerical solution, and the relationship between flow velocity and head gradient follows formula (1) and the normalized scaling convention. The Laplace term of head is used as the candidate for head diffusion in the baseline scenario.
[0025] (1); in, For Darcy speed, The pore water flow velocity, The hydraulic conductivity coefficient, Porosity. In physical quantity form, , and All are measured in length / time. It is dimensionless porosity.
[0026] The sign of each candidate is determined by the library definition and the regression coefficients; for example, using a positive sign... and When used as a candidate, its physical advection and attenuation coefficients should include the corresponding negative signs.
[0027] For scenarios with hidden pollution sources, we first use advection, diffusion, and attenuation terms to explain the concentration-time changes, and then calculate the residuals not explained by these terms. We retain the positive part of the residuals and smooth them to obtain the potential source structure with spatiotemporal distribution. ; ; in, , and The values represent, in turn, the signed contributions of advection, dispersion, and first-order decay to the concentration-time variation, obtained by multiplying the preliminary estimated coefficients by the corresponding candidate coefficients. Indicates smoothing processing. After adding the candidate concentrations to the pool, support term screening and coefficient fitting are performed to obtain their effective contribution to concentration evolution. This simulates a pre-set real pollution source. Used only for correlation and diagnostic comparisons in numerical experiments. The residuals of the concentration-time derivative not explained by the aforementioned transport contributions; To be consistent with the current field and coefficient scale, This is the time derivative. Positive residuals are retained grid-by-grid, and non-positive values are set to zero.
[0028] in, This represents the potential pollution source characteristics formed by smoothing the unexplained positive residuals of the main transport terms, reflecting the spatiotemporal distribution of the structure and its correlation with the simulated real pollution sources. distinguish.
[0029] Preferably, the sparse regression execution steps include: The candidates in the candidate library are numerically normalized, and invalid weak contribution terms are eliminated by threshold screening combined with iterative refitting to determine the non-zero support set of the fitted equation. By using data resampling and dynamic threshold adjustment, the stability of core items is verified for each item in the non-zero support set. Only redundant diagnostic items whose contribution meets the preset threshold condition are retained, thus completing the secondary screening of candidate items. The valid candidates retained after the second screening are refitted to obtain the SINDy coefficients of the retained candidates. The retained candidates are then combined with their corresponding coefficients to form the corresponding recovery equations.
[0030] Sparse regression was performed on the candidate pools of water head and concentration to recover the corresponding water head equation and concentration equation, respectively.
[0031] SINDy represents the temporal evolution of the reconstructed field as a sparse linear combination of candidate options: ; ; in, and These are the candidate options for water head and concentration, respectively. This represents the coefficient corresponding to the water head candidate. This represents the coefficient corresponding to the concentration candidates. Candidates are first normalized, then the non-zero support set is determined through threshold screening and refitting. The stability of core terms is checked by combining resampling and threshold changes, retaining redundant diagnostic terms only when their contribution is sufficiently significant. and These are the candidate numbers for water head and concentration, respectively. Summing is performed on the corresponding candidate pool; the terms with non-zero coefficients constitute a non-zero support set. The regression coefficients here... With denoising network parameters Determine them separately.
[0032] After the equations are restored, the system starts from a reconstructed field at a saved time step and advances to subsequent time steps using the restored equations. The head equation is implicitly advanced, while the concentration equation is explicitly advanced. Boundary conditions are reapplied in each internal substep, and non-negativity constraints are applied to the concentration.
[0033] Preferably, the recovery transport equation is subjected to equation structure, coefficient scaling, propagation residual, and physical quantity diagnosis to obtain the following information: retention frequency of transport terms and source-related terms, coefficient of retained terms, contribution of retained terms, propagation residual, total concentration, centroid of pollution plume, and non-negativity diagnostic information.
[0034] Among them, the equation structure is checked to see if the main transport terms and source-related terms are retained, and whether redundant terms dominate; Coefficient scale, used to evaluate the coefficients of retained terms and their contributions; Advance the residual and compare the advancement results with subsequent monitoring well observations; Physical quantities, including total concentration, centroid of pollutant plume, and non-negativity.
[0035] The total concentration is calculated using spatial grid integration, and the centroid of the pollution plume is weighted by concentration and grid area. The consistency of time evolution can be evaluated by comparing the propagation error with the target sequence variation range, using the ratio of root mean square error to the standard deviation of the reference sequence (RSR); this ratio is calculated as the square root of the ratio of the sum of squared errors to the sum of squared deviations from the mean of the reference sequence. Wellpoint propagation evaluation uses available monitoring sequences, and the correlation between the overall error and the true source is used for numerical verification.
[0036] One specific diagnostic implementation method is as follows: Form an equation support set using terms with non-zero coefficients, and statistically analyze the retention frequency of each term during data resampling; calculate the contribution of each term. The residual of the equation is obtained by subtracting the sum of all contributions from the time derivative; the difference between the advancement result and the available well point observations is calculated and evaluated according to RSR, and the total concentration is... The x-coordinate of the centroid is The same applies to the vertical axis; nonnegativity is checked by the proportion of negative concentration grid cells to the total number of grid cells. This represents the grid area. For the first The signed contribution of each reserved candidate and These are their coefficients and candidate options, respectively; Traverse the spatial grid at the current moment, For this grid concentration, The coordinates are the center coordinates of the grid. The total concentration here is the area integral of the two-dimensional concentration field, and the reference sequence for the well point RSR uses available monitoring values.
[0037] Preferably, the fixed initial concentration model and SINDy coefficients are used as the physical prior basis, and the parameters of the preset lightweight convolutional residual network are trained and optimized only. The network model training is completed by fitting and compensating the residual errors of the initial diffusion model and SINDy dynamics modeling through the lightweight convolutional residual network.
[0038] The input features of a lightweight convolutional residual network consist of three sets of information: the first set is... , , , and The second group is , The first group consists of equation residuals and contributions and advancements of advection, diffusion, attenuation, and source-related terms; the second group consists of normalized time, approximate total concentration, late-stage time markers, migration scenario markers, well network layout markers, and heterogeneous test markers.
[0039] The output concentration increment of a lightweight convolutional residual network; applying a bounded transform B to the output of the lightweight convolutional residual network yields an amplitude-limited increment. ; Increment Add to Then, perform nonnegative projection and wellpoint observation repositioning to obtain the final contamination plume. and The meaning is the same as before, increment and Use the same concentration scale.
[0040] During training, the complete concentration field is used as the supervised target, and only the residual network is optimized to learn the error between the initial reconstructed field and the complete field. During application, the network parameters are fixed, and the initial reconstruction and its diagnostic features are used as inputs to obtain the correction increment through forward computation.
[0041] For hidden pollution sources, residual networks are used And its contributions. Known It can be used as conditional information. The heterogeneous test retains the equation structure, coefficients, and established correction features obtained from the source and sink scenarios, without redefining the candidate library or re-estimating the equation coefficients. That is, even after the medium conditions change, the calculation is still performed according to the original candidate options, the recovered coefficients, and the same set of feature definitions, without re-identifying the equations.
[0042] SINDy dynamic modeling involves using the Sparse Identification of Nonlinear Dynamics method to construct a candidate function library containing physical process terms from the reconstructed head and concentration fields. Sparse regression is then used to screen key control terms and determine their coefficients, thereby reconstructing the equations for groundwater flow and pollutant transport. This method primarily utilizes the contributions of advection, dispersion, attenuation, and potential pollution source terms in the reconstructed equations, as well as the equation residuals and time-progression diagnostic information, to provide physical constraints and correction basis for the subsequent residual network.
[0043] Preferably, the training objectives of the residual network include concentration field error, well point consistency, equation residuals, correction magnitude, and spatial smoothness, and their composition can be written as follows: ; in, To make the corrected result approximate the complete field of the training target. Constrained well point observation, The consistency between the constraint correction results and the restoration equation. Limit the increment. Constraining the spatial smoothness of the correction field The non-negative weights for concentration field error loss are... The non-negative weights of the wellpoint consistency loss are: The non-negative weights of the residual loss of the equation are... To correct for the non-negative weights of the amplitude loss, The non-negative weights for spatial smoothness loss, This represents the total training loss of the residual network.
[0044] The invention includes an embodiment of an electronic device, one or more processors, and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors perform the groundwater pollution plume reconstruction and correction method based on conditional diffusion and equation recovery as described above.
[0045] Compared with existing technologies, the beneficial effects achieved by this invention are as follows: This invention first reconstructs the hydraulic head, and then inputs the reconstructed hydraulic head and gradient into the concentration model, providing conditions for the direction of pollutant transport and its spatiotemporal evolution. Concentration training uses cached reconstruction results generated by a pre-trained hydraulic head model, ensuring that this conditional relationship is maintained throughout training and application. Simultaneously, addressing the problem of insufficient observation in the inter-well region, spatial information is provided through interpolation priors and confidence levels, candidate scores are used to filter the reconstructed concentration field results, and wellpoint constraints are applied in the latter half of the sampling process and the final output, ensuring that the complete field remains connected to the input monitoring data.
[0046] Furthermore, the equation recovery is embedded between reconstruction and correction. This addresses the lack of transport interpretation in the reconstruction results by recovering dominant terms and coefficients from the complete reconstruction field. The kinetic consistency is then evaluated using time progression, total concentration, centroid, and nonnegativity, generating diagnostic information for subsequent processing. Hidden pollution source characteristics are constructed from the unexplained positive residuals of the main transport terms. This addresses the issue of unknown pollutant input by extracting the spatiotemporal structure related to local source activity for candidate option fitting and plume correction, allowing hidden source information to participate in the entire processing flow. Finally, a bounded incremental correction guided by equation consistency is employed. For the residual error in the initial concentration reconstruction, the equation term contribution, source-related diagnostics, and propagation residuals are input into a lightweight network. Through bounded output, amplitude constraints, smoothing constraints, and wellpoint resetting, the inter-well plume structure is adjusted.
[0047] This invention utilizes head and concentration observations from sparse well points to reconstruct the spatiotemporal field of continuous head and pollutant concentration in the inter-well region. The dominant transport equation and source-related information are recovered from the reconstruction results, and the recovered equation is used to guide the correction of the pollutant plume, thereby improving the ability of the reconstruction results to characterize the pollutant migration process. Attached Figure Description
[0048] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings: Figure 1 This is a flowchart of the steps of the groundwater pollution plume reconstruction and correction method based on conditional diffusion and equation recovery of the present invention. Figure 2 This is a diagram showing the consistency diagnosis results of transport equation recovery and time progression; Figure 3 This is a comparison chart of the pollution plume correction results and reconstruction errors. Detailed Implementation
[0049] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0050] In this embodiment, the target area is selected as 100m×100m, the total simulation time is 100 days, a 32×32 spatial grid is used, and 16 time points are saved. Each scenario generates 2500 numerical samples, with the head and concentration array size of a single sample being 2×16×32×32. (Source / Sink Scenario Saved Separately) and The spatiotemporal array is a 32×32 medium space field for heterogeneous scenarios. The four-dimensional array corresponds to two variables, water head and concentration, 16 storage times, and two 32-point spatial dimensions. Given a known water source and sink field, The pollutant input source field is preset for numerical simulation.
[0051] Among them, the intrinsic permeability benchmark value of the medium for fluid density for Dynamic viscosity for Gravitational acceleration for The porosity n is 0.35. The reference hydraulic conductivity is based on... Conversion; when using equations with days as the unit of time, perform the corresponding time unit conversion. Intrinsic permeability kperm and hydraulic conductivity. Record them separately.
[0052] Specific water storage coefficient according to Calculation, where , The solute retardation coefficient R is 2.0, and the scalar dispersion coefficient D is... First-order attenuation coefficient for The head and concentration characteristic scales are 12.0 m and 200.0 mg / L, respectively. Spatial and temporal normalization is applied to [0,1], and all physical coefficients are converted along with the scale. The compressibility coefficient of the aquifer skeleton. The coefficient of fluid compressibility is given in units of 1 / 2. ; The unit is This represents the change in water storage per unit aquifer volume caused by a change in unit head. It is a dimensionless hindrance coefficient.
[0053] Initial head is ,in Both vertical and longitudinal physical coordinates are in meters (m), and water head is in meters (m). The left water head boundary is... The water level varies periodically between 10 and 12 meters; the fixed head on the right is 10.0 meters. This represents the accumulated physical time since the start of the simulation, expressed in days (d). The vertical physical coordinates are shown; 0.01 represents the initial hydraulic gradient, and 11.0m, 1.0m, and 100d at the left boundary represent the average head, amplitude, and period, respectively. (The rest of the text is omitted.) These are the normalized coordinates obtained by dividing the physical coordinates by 100m. for Normalized time after dividing by 100d.
[0054] The initial concentration is a non-negative two-dimensional Gaussian plume. The normalized center coordinates are randomly selected within the range of [0.35, 0.65]. The physical widths in both directions are selected within the range of 6 to 14 m, and the amplitudes are selected within the range of 140 to 260 mg / L. The left boundary of the concentration is zero, and the other boundaries are under zero flux conditions. The widths in both directions refer to the Gaussian standard deviation, and the amplitude is the maximum concentration at the center of the initial plume.
[0055] The head is implicitly discretized and each internal substep is solved using sparse LU; the concentration is explicitly determined. The propulsion method employs finite difference spatial derivatives and upwind flux for advection. Boundary conditions and concentration nonnegativity constraints are applied after each substep to obtain a complete training and evaluation reference field.
[0056] Two fixed 25-well layouts were employed: a conventional well pattern with relatively uniform spatial cover, and an extreme well pattern concentrating wells in a more limited area. With the same number of wells, the layout differences were used to evaluate the impact of spatial cover on reconstruction and equation recovery. The equivalent well spacing of the 25 wells in the area is √(10000 / 25) = 20.0m; based on the relevant length of about 18.7m from the mean concentration field, the sparsity index is about 1.07.
[0057] Example 1: Reference migration under time-varying head boundary.
[0058] set up and The medium, periodic left boundary, initial head gradient, and random initial Gaussian plume in the target region are preserved. This invention is used to evaluate under both conventional and extreme well networks, with specific steps including: S1, Diffusion Reconstruction of Sparse Well Conditions: S101. Input the sparse observation and condition information of the head of the sample to be reconstructed into the trained head model, use a second-order Heun sampler to obtain the reconstructed head, and then calculate its gradient through spatial difference.
[0059] The head model adopts the EDM denoising parameterization framework and uses a single-variable three-dimensional spatiotemporal U-Net as the denoising backbone network.
[0060] The EDM denoising network has 96 basic channels, with two residual blocks per scale by default, and an output size of 16×32×32. The lower limit of the EDM noise level is 0.002, and the upper limit is 80.0, representing the noise level in the model's normalized space. The data scale parameter is 0.5, used to determine the target data scaling scale during EDM denoising. The head model uses the AdamW optimizer with a default learning rate. Weight decay Gradient norm clipping threshold 1.0.
[0061] Sampling The Karras noise sequence and second-order Heun sampler are used. The head model defaults to 128 steps for conventional well patterns and 160 steps for extreme well patterns. The scheduling shape parameter for the Karras noise sequence is used to adjust the noise level spacing between each sampling step, in relation to the fluid density. distinguish.
[0062] Input 25 well head under both well patterns and rebuild. Specifically, the head observations and masks from 25 wells at 16 storage times were written into a 32×32 grid, and input into the trained head model along with the well grid geometry. A 16×32×32 tensor was initialized with Gaussian noise, and Heun prediction and correction were performed step-by-step according to the aforementioned Karras noise sequence until zero noise was reached. Inverse normalization was then used to obtain the reconstructed head. The horizontal and vertical gradients of the internal grid were calculated using central difference, while the boundaries were calculated using one-sided difference. The gradient characteristics of the concentration condition model were calculated based on the unit grid index spacing, and the physical transport term was converted to the corresponding actual or dimensionless coordinate spacing.
[0063] S102. Input the conditional information of the concentration model into the concentration model to generate multiple candidate concentration spatiotemporal fields. For each candidate field, perform a comprehensive evaluation based on well point error, concentration prior error, consistency of the concentration conditional diffusion model itself, numerical out-of-bounds penalty, temporal smoothness, and spatial smoothness. Select the top N candidate fields by score and take the average to obtain the initial concentration reconstruction field. The concentration model also adopts the EDM denoising parameterization framework, using a univariate three-dimensional spatiotemporal U-Net as the denoising backbone network.
[0064] The concentration model is also trained using an EDM denoising network. The basic number of channels in the EDM denoising network for the concentration model is 96, with two residual blocks set by default for each scale, and the output size is 16×32×32. The upper and lower limits of EDM noise and the data scale parameters are set using the same parameters as the aforementioned head model.
[0065] Sampling The Karras noise sequence and second-order Heun sampler are used. The concentration model has a default of 256 steps, generating 6 candidate fields for each sample. After scoring, the better candidates are averaged and well point observation projection is performed.
[0066] One specific screening implementation method is as follows: Inputting well point concentration and mask, reconstructed hydraulic head and its gradient, well network geometry information, concentration priors, and confidence levels as conditions. Six candidate concentration fields are then selected according to... The scoring system comprises six indicators: wellpoint error, confidence-weighted prior error, change before and after denoising with low noise, concentration value exceeding limits penalty, difference between adjacent time points, and difference between adjacent spatial grids. Each indicator is calculated using the squared mean, with weights of 1, 0.2, 0.5, 0.02, 0.02, and 0.005 respectively. The three candidate fields with the lowest scores are averaged grid-by-grid, and the wellpoint concentration is then restored to the observed value to obtain the initial concentration reconstruction field. Candidate field number, For the first The overall score of each candidate; These are the serial numbers of the six categories of indicators. For the corresponding indicator value, Its non-negative scoring weights, and the skeleton compression coefficient distinguish.
[0067] S2. Transport Equation Recovery and Consistency Diagnosis: Reconstructing the field and reconstructing the head based on initial concentration. Candidate libraries for water head and concentration were constructed separately.
[0068] Based on both, a candidate library was constructed and sparse regression was performed. The head equation retained the head diffusion term, and the concentration equation retained the advection, diffusion, and attenuation terms.
[0069] Specifically, the time derivative vector and candidate term matrices are formed by reconstructing the spatiotemporal differences of the head and initial concentration fields. Normalization is performed according to the norm of the candidate terms. Least square coefficients are first calculated, and coefficients with absolute values below a threshold are set to zero. Only the retained terms are refitted until the non-zero support set is stable. Data resampling is then used to check for duplicate retention of principal terms. Finally, the candidate term scale is restored, and the retained terms, corresponding coefficients, and the combined restoration equation are output.
[0070] Equation recovery and consistency diagnosis results are as follows Figure 2 As shown. Among them. Figure 2In (a), a solid black block indicates a selected item, a diagonal block indicates a known input, a crossbar block indicates a non-selected item, and a short horizontal line indicates that the setting does not involve the corresponding item. Figure 2 (b) shows the percentage deviation between the restoration coefficient and the simulation setting coefficient; the simulation setting coefficient is a coefficient value pre-specified when generating simulation data. 0% indicates that the restoration result is consistent with the setting value, and the light gray band represents the range from -11% to 11%. The four settings are marked with solid circles, hollow squares, solid triangles, and hollow diamonds, respectively, and are distinguished by bar textures. Figure 2 (c) represents the time-propagation RSR of the head and concentration at the well point and across the entire field. Figure 2 In the figure, (d) represents the average absolute error of concentration mass and the displacement error of the centroid of the pollutant plume. Figure 2 (d) The average absolute error of the total concentration is normalized by the average absolute value of the reference total; the centroid displacement error is the Euclidean modulus of the difference between the predicted and reference one-step centroid displacement vectors, which is normalized by the length of the region diagonal and then averaged. Both are expressed as percentages.
[0071] S3, Diagnostic Information-Guided Plume Correction: The input features of a lightweight convolutional residual network consist of three sets of information: the first set is... , , , and The second group is , The first group consists of equation residuals and contributions and advancements of advection, diffusion, attenuation, and source-related terms; the second group consists of normalized time, approximate total concentration, late-stage time markers, migration scenario markers, well network layout markers, and heterogeneous test markers.
[0072] Diagnostic features were calculated using the aforementioned methods, including support set, term contribution, and equation residuals. Twenty-one feature channels were compiled from the three sets of input information and fed into a lightweight convolutional residual network at specific time points. The lightweight convolutional residual network first mapped to 16 channels using 3×3 convolutions, then activated by SiLU before entering three residual blocks. Each block consisted of a 3×3 convolution, SiLU activation, and another 3×3 convolution, with the output added back to the block input at a factor of 0.5. Finally, a single-channel concentration increment was output using SiLU activation and a 1×1 convolution.
[0073] Let the network be Input features are The bounded increment is ; calculate in sequence and .in This is the field after non-negative projection. This is the final correction field after the wellpoint observations are reset, and the values at each time point are... Together they represent the final pollutant plume. For residual networks Trainable parameters, The input feature tensor is the stacked input of the aforementioned three sets of information; and Calculate element by element, where 1 in the formula represents an array of all 1s.
[0074] Among them, in the representative benchmark scenario, the average relative value of conventional well patterns is... The error was reduced by 46.7%, and the RMSE was reduced by 45.8%; the corresponding reductions for extreme well patterns were 27.7% and 23.0%, respectively. This example illustrates that, under time-varying flow conditions, equation consistency information can further improve inter-well concentration reconstruction.
[0075] Example 2: The combined effect of known water source and hidden pollution source.
[0076] Based on Example 1, three local hydraulic source-sink events and three pollution source events were added to each sample. Each event was represented by a two-dimensional Gaussian patch with a random activity time window. The normalized center coordinates were selected within [0.1, 0.9], the hydraulic source-sink amplitude within [−0.3, 0.3], and the spatial scale within [0.04, 0.10]; the pollution source amplitude within [0.3, 1.0] and the spatial scale within [0.03, 0.08]. The amplitudes adopted a normalization convention implemented numerically. The event amplitude was the source-sink intensity at the center of the Gaussian patch, given according to the normalized numerical scale of the source term; positive and negative hydraulic source-sink amplitudes represented the source and sink, respectively. The spatial scale was the standard deviation of the Gaussian patch, normalized to the region side length, and multiplied by 100m to be converted into physical length.
[0077] Known Input the head model and use it for concentration condition reconstruction, hide After initial reconstruction, the unexplained positive residuals of concentration changes were calculated using advection, diffusion, and attenuation terms, and then smoothed to obtain... This is then added to the concentration candidate library. The equation recovery further preserves source-related terms, yielding a diagnosis of the temporal variation and spatial distribution of source activity.
[0078] In subsequent revisions, potential source characteristics and their contributions were used, while actual pollution sources were retained as references for experimental diagnosis. In representative source-sink scenarios, the average relative... The error was reduced by 18.3%, and the RMSE was reduced by 25.1%; the corresponding reductions for extreme well patterns were 3.3% and 4.2%, respectively. This example demonstrates that the source-related residual structure can participate in transport interpretation and provide information for concentration correction.
[0079] Example 3: Migration application in heterogeneous media.
[0080] The time-varying boundary, hydraulic source / sink, and hidden pollution source from Example 2 are retained, but the media spatial structure is altered. A relative permeability structure is implemented. Where Z is a smoothed low-rank random field with zero mean and a standard deviation of one, using four low-rank modes; the hydraulic conductivity is... This spatial change alters the flow path and the shape of the pollution plume. It is a dimensionless relative permeability structure. is the aforementioned baseline hydraulic conductivity coefficient; 0.25 is the logarithmic standard deviation of the relative permeability field; and 4 is the number of low-rank spatial modes constituting the random field. It is a natural exponential function.
[0081] The same sequential reconstruction process is performed under both conventional and extreme well networks. The candidate library, restoration equation structure, and coefficients of the source-sink scenario are used to conduct time-progressed diagnostics based on the reconstruction results in heterogeneous fields; residual correction continues to use established feature definitions and correction strategies.
[0082] In representative heterogeneous scenarios, the average relative L2 error of conventional well patterns decreased by 12.7%, and the RMSE decreased by 19.3%; the corresponding reductions for extreme well patterns were 2.7% and 2.4%, respectively. This embodiment demonstrates the application process of using existing equation diagnostic information to correct contamination plumes after changing the medium structure and migration path.
[0083] Numerical reference concentration field Evaluation of the initial and revised reconstruction. Relative. Error according to The root mean square error (RMSE) is calculated as the square root of the mean squared error of the concentration across the entire space at the current display time; relative to... Errors were calculated separately for each display time, and then the arithmetic mean was taken for each display time. The error reduction percentage was calculated by dividing the difference between the average errors before and after correction by the average error before correction, and then multiplying by 100%. Table 1 shows the relative reduction calculated based on the above average errors for the three display times of 0, 50, and 100 days. Where... For the initial or corrected concentration field to be evaluated, For numerical reference field; relative The subscript 2 in the error indicates that the Euclidean norm is taken for the full space grid at the current time, and RMSE is expressed in mg / L.
[0084] Table 1. Reduction in Concentration Reconstruction Error under Six Representative Settings
[0085] The above data corresponds to Figure 3The six representative settings shown compare the initial diffusion reconstruction and the reconstruction after residual correction for the same sample. Equation support set, coefficient bias, time-advanced RSR, concentration quality, and centroid diagnostics evaluate the equation recovery and physical consistency, respectively, while the concentration error reduction evaluates the final correction effect.
[0086] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.
[0087] Finally, it should be noted that the above descriptions are merely preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for reconstructing and correcting groundwater pollution plumes based on conditional diffusion and equation recovery, characterized in that, The steps include: Establish a regular spatial grid and a unified observation time axis in the target area, map the location of the monitoring wells to the grid cells, and assign the water head and concentration observation values of the monitoring wells to the grid cells to construct a water head sparse observation field and a concentration sparse observation field. Determine the condition information for the head model; The sparse observation and conditional information of the head of the sample to be reconstructed are input into the trained head model. The reconstructed head is obtained by using a second-order Heun sampler, and the head gradient is calculated by spatial difference. Input the conditional information of the concentration model into the concentration model to generate multiple candidate concentration spatiotemporal fields; for each candidate field, a comprehensive score is given based on well point error, concentration prior error, consistency of the concentration diffusion model itself, numerical out-of-bounds penalty, temporal smoothness and spatial smoothness, and the average of the top N candidate fields with the comprehensive scores from smallest to largest is taken to obtain the initial concentration reconstruction field. Reconstructing the field and reconstructing the head based on initial concentration. Construct candidate libraries for water head and concentration, respectively; Sparse regression was performed on the candidate pools of head and concentration to recover the corresponding head equations and concentration equations, respectively, and the diagnostic information of the recovered head equations and concentration equations was confirmed. The diagnostic information from the recovery head equation and concentration equation is converted into bounded concentration increments to obtain the final pollution plume.
2. The groundwater pollution plume reconstruction and correction method based on conditional diffusion and equation recovery according to claim 1, characterized in that: The conditional information of the head model includes: sparse head observations. Water head observation mask The nearest well distance, spatial coordinates, well network layout identifiers, and the known hydraulic source sink field formed by pumping or injection. ;in, For a binary mask, the grid cells with water head observations are set to 1, and the other grid cells are set to 0; The conditional information of the concentration model includes sparse concentration observations. Concentration observation mask Reconstructing the water head Reconstructing the head gradient Sparse water head observation Water head observation mask The nearest well distance, spatial coordinates, well network layout identifiers, and concentration priors obtained by interpolation based on concentration well point observations. Confidence level obtained by weighted normalization of well point distance and known water source confluence ;in, This is a binary mask for concentration observations. The grid cells with concentration observations are set to 1, and the rest are set to 0.
3. The groundwater pollution plume reconstruction and correction method based on conditional diffusion and equation recovery according to claim 1, characterized in that: The head model adopts the EDM denoising parameterization framework and uses a single-variable three-dimensional spatiotemporal U-Net as the denoising backbone network. The denoised head field, the conditional information of the head model, and the noise level are input into the head model to obtain a denoised estimate of the complete head spatiotemporal field. The denoising relationship of the head model is as follows: ; in, Indicates the noise level and condition information Target field denoising estimation These are the trainable parameters of the model. The target field after adding noise. For noise level, For conditional information, It is a three-dimensional spatiotemporal U-Net network. This represents the EDM input scaling factor. This indicates the EDM output scaling factor. This represents the scaling factor for skip connections.
4. The groundwater pollution plume reconstruction and correction method based on conditional diffusion and equation recovery according to claim 1, characterized in that: The concentration model adopts the EDM denoising parameterization framework and uses a single-variable three-dimensional spatiotemporal U-Net as the denoising backbone network. The initial concentration reconstruction field is obtained by inputting the noise-added concentration field, the condition information of the concentration model, and the noise level into the concentration model, and the hydraulic head and hydraulic head gradient are reconstructed. The training loss of the concentration model is used to optimize the model parameters, and its composition can be expressed as follows: ; in, This represents the total training loss of the concentration model. This is the time-weighted denoising error. To predict the error between concentration and well point observations, To predict the confidence-weighted error between concentration and interpolation prior, and These are the non-negative weights of the well point observation consistency term and the concentration prior constraint term, respectively.
5. The groundwater pollution plume reconstruction and correction method based on conditional diffusion and equation recovery according to claim 1, characterized in that: The candidate reservoir for water head includes water head diffusion terms, known hydraulic source and sink terms, and cross-field residual and concentration gradient diagnostic terms; The concentration candidate library includes a flow rate term, a diffusion term, a first-order decay term based on the reconstructed initial concentration field, a hidden pollution source candidate term, and a redundancy diagnostic term.
6. The groundwater pollution plume reconstruction and correction method based on conditional diffusion and equation recovery according to claim 1, characterized in that: The sparse regression execution steps include: The candidates in the candidate library are numerically normalized, and invalid weak contribution terms are eliminated by threshold screening combined with iterative refitting to determine the non-zero support set of the fitted equation. By using data resampling and dynamic threshold adjustment, the stability of core items is verified for each item in the non-zero support set. Only redundant diagnostic items whose contribution meets the preset threshold condition are retained, thus completing the secondary screening of candidate items. The valid candidates retained after the second screening are refitted to obtain the SINDy coefficients of the retained candidates. The retained candidates are then combined with their corresponding coefficients to form the corresponding recovery equations.
7. The groundwater pollution plume reconstruction and correction method based on conditional diffusion and equation recovery according to claim 1, characterized in that: Diagnostic information is obtained by performing a diagnostic test on the recovery head equation and concentration equation. The diagnostic information includes: the retention frequency of transport and source-related terms, the coefficients of the retained terms, the contribution of the retained terms, the propulsion residual, the total concentration, the centroid of the pollution plume, and the non-negativity.
8. The groundwater pollution plume reconstruction and correction method based on conditional diffusion and equation recovery according to claim 1, characterized in that: Using the fixed initial concentration model and SINDy coefficients as the physical prior, the parameters of the preset lightweight convolutional residual network are trained and optimized. The diagnostic information from the initial concentration field and the recovery equation is used as input features and fed into a trained lightweight convolutional residual network. A bounded transformation B is applied to the output of the residual network to obtain an amplitude-limited increment. ; Increment Add to Then, nonnegative projection and wellpoint observation repositioning are performed to obtain the final plume; among which, Reconstructing the field based on the initial concentration. It represents the per-grid concentration correction for the same size, and can be positive or negative; This is an element-wise bounded transformation that restricts the original output of the network to a finite range.
9. The groundwater pollution plume reconstruction and correction method based on conditional diffusion and equation recovery according to claim 8, characterized in that: The training objectives of the lightweight convolutional residual network include concentration field error, well point consistency, equation residuals, correction magnitude, and spatial smoothness, which can be written as follows: ; in, To make the corrected result approximate the complete field of the training target. Constrained well point observation, The consistency between the constraint correction results and the restoration equation. Limit the increment. Constraining the spatial smoothness of the correction field The non-negative weights for concentration field error loss are... The non-negative weights of the wellpoint consistency loss are: The non-negative weights of the residual loss of the equation are... To correct for the non-negative weights of the amplitude loss, The non-negative weights for spatial smoothness loss, This represents the total training loss of the residual network.
10. An electronic device, characterized in that, include: One or more processors; A storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to perform the method according to any one of claims 1-9.
