A dam crack depth detection method based on bayesian inference

By using Bayesian inference methods, combined with ground-penetrating radar data and dam humidity information, the depth of cracks in the dam is calibrated, solving the detection deviation problem under the influence of humidity and achieving higher accuracy and reliability in crack depth detection.

CN121390334BActive Publication Date: 2026-03-27SICHUAN SHUIFA SURVEY DESIGN & RES CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-12-23
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Existing electromagnetic wave technology is easily affected by the humidity of the dam body when detecting the depth of cracks in dams, resulting in significant deviations in detection accuracy.

Method used

A Bayesian inference-based approach was adopted. The initial dielectric constant and the average humidity of the dam body were collected by ground-penetrating radar. The prior dielectric constant was calculated, and iterative updates were performed in the Bayesian inference to generate the posterior distribution function, set the confidence interval, and calibrate the crack depth.

Benefits of technology

It significantly reduces the systematic bias in depth caused by humidity gradients, improves the reliability and interpretability of detection, and ensures robustness of detection in complex dielectric environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121390334B_ABST
    Figure CN121390334B_ABST
Patent Text Reader

Abstract

The application discloses a kind of dam crack depth detection methods based on bayesian inference, it is related to detection technical field, the method comprises: step S1: initial dielectric constant, dam average humidity and reflected main peak travel time are collected;Step S2: calculate prior dielectric constant, execute bayesian inference;Step S3: generate posterior distribution function, obtain calibration crack depth from posterior distribution function;Step S4: set confidence interval, when selected point estimate value is located in the range of confidence interval, complete calibration process, otherwise return step S2.Compared with prior art, prior dielectric constant is constructed by reflected main peak travel time and initial dielectric constant, dam average humidity is used as prior input, and crack depth is calibrated through bayesian framework, which has the advantages of significantly reducing the depth systematic deviation caused by humidity gradient, and ensuring that crack depth calibration process has high accuracy in saturated environment.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of detection, in particular to a dam crack depth detection method based on Bayesian inference. BACKGROUND

[0002] In water conservancy and hydropower engineering, the concrete dam body is inevitably affected by material shrinkage, temperature stress, uneven foundation settlement and external load, etc., and various hidden defects will inevitably occur inside, among which cracks are the most common and the most threatening defect type to the safety of the structure. In the prior art, the commonly used high-precision technology is the geological radar method, which uses a geological radar to emit high-frequency electromagnetic waves into the medium and analyzes the amplitude, phase and waveform of the reflected waves to identify interfaces with different dielectric constants, thereby effectively capturing cavities, loose areas and water-rich cracks.

[0003] In existing water conservancy dams, the dam body that blocks water is not a homogeneous medium. Due to the long-term penetration of reservoir water, a complex humidity field is distributed inside the dam body, which transitions from the upstream to the downstream and from the saturated zone to the unsaturated zone. The relative dielectric constant and conductivity of water are much higher than those of dry concrete. This means that the propagation speed of electromagnetic waves inside the dam body is not constant, but along the propagation path, as the water content of the concrete increases, the dielectric constant increases, resulting in a corresponding decrease in wave speed. The traditional crack depth conversion relies on the assumption of a uniform dielectric constant, and once the dielectric constant is not uniform due to changes in concrete humidity, the depth will be severely distorted. The prior art usually selects an average dielectric constant for the entire detection area to calculate the wave speed, which is an oversimplified and invalid assumption in a dam body with a high humidity gradient. A crack located in the front part of the dam body, before the radar wave reaches its location, has already traversed a region with a continuously changing dielectric constant. Using a single average wave speed, the time difference caused by the change in wave speed will be incorrectly attributed to the change in depth, resulting in a deviation between the calculated depth of the crack and the actual depth. SUMMARY

[0004] The present application provides a dam crack depth detection method based on Bayesian inference, which solves the problem of deviation in detection accuracy caused by the influence of dam body humidity when using existing electromagnetic wave technology to detect the depth of dam cracks.

[0005] The present application is implemented by the following technical solutions:

[0006] A dam crack depth detection method based on Bayesian inference, the method comprising:

[0007] Step S1: Collect the initial dielectric constant and average humidity of the target dam, collect the initial crack depth detected by the target detection crack through geological radar detection, and obtain the reflection main peak travel time of the target detection crack;

[0008] Step S2: calculating the prior dielectric constant using the reflection main peak travel time and the initial dielectric constant, performing Bayesian inference based on the prior dielectric constant, the average dam humidity and the initial crack depth, and performing inference update iteration in the Bayesian inference;

[0009] Step S3: generating a posterior distribution function in the posterior stage of the Bayesian inference, updating the posterior distribution function in each iteration cycle, and obtaining the calibrated crack depth from the finally updated posterior distribution function;

[0010] Step S4: setting a confidence interval, calculating the approximate distribution of the calibrated crack depth and selecting a plurality of point estimates, completing the calibration process when all selected point estimates are within the confidence interval, and returning to step S2 when there is a point estimate outside the confidence interval.

[0011] Further, the calculation process of the prior dielectric constant comprises:

[0012] Let the speed of light be c, the reflection main peak travel time be tb, the initial dielectric constant be ε0, the initial crack depth be D0, and the prior dielectric constant be εp,

[0013] The calculation formula of the prior dielectric constant εp is: ,

[0014] Wherein, α represents the observation weight, and w represents the amplitude weight, and 0<w≤1.

[0015] Further, the setting content of the amplitude weight comprises:

[0016] The main peak amplitude of the target detected crack reflection wave is set as Ap, the maximum amplitude of the reflection wave observed in the target dam is set as Am, and the amplitude adjustment coefficient γ is set,

[0017] The calculation formula of the amplitude weight w is: , wherein γ>0.

[0018] Further, the process of the Bayesian inference comprises:

[0019] Based on the prior dielectric constant, the average dam humidity and the initial crack depth, a likelihood function reflecting the propagation of electromagnetic waves in water-containing concrete is constructed, the prior dielectric constant is inputted into the likelihood function as a dielectric correction parameter, the average dam humidity is set as a humidity adjustment factor, and the humidity adjustment factor is inputted into the likelihood function as a physical correction parameter; Bayesian inference update is performed based on the corrected likelihood function and the prior distribution, and the likelihood function after the Bayesian inference update is marked as the posterior distribution function of the initial crack depth.

[0020] Further, the process of marking the updated likelihood function after completing the Bayesian inference as the posterior distribution function of the initial crack depth comprises:

[0021] An update convergence condition is set, in the Bayesian inference updating process, the posterior distribution obtained by the previous update is taken as the prior distribution of the next update; the likelihood function combined with the humidity adjustment factor is iteratively updated, the posterior distribution of the likelihood function is calculated using the variational Bayesian method in each update, and the posterior distribution function of the initial crack depth is gradually optimized; when the Bayesian inference updating reaches the update convergence condition, the updating is stopped and the posterior distribution function is output.

[0022] Further, the update convergence condition comprises: setting a posterior variance threshold for the Bayesian inference updating process, and calculating a variance value of the posterior distribution for each Bayesian inference update; when the variance value of the posterior distribution is lower than the posterior variance threshold, the Bayesian inference completes the updating process, at which time the updating is stopped and the posterior distribution function is output.

[0023] Further, the process of calculating the posterior distribution by the variational Bayesian method comprises:

[0024] The evidence lower bound and the gradient step size of the variational Bayesian are set; in each Bayesian inference update iteration, the posterior distribution obtained by the previous Bayesian inference update is parameterized as a lognormal distribution, the lognormal distribution is adjusted along the direction of increasing evidence lower bound using the gradient step size, and the lognormal distribution after completing the KL divergence adjustment is taken as the posterior distribution result of the current update iteration and is output.

[0025] Further, the gradient step size is set using the Adam optimizer, and the process is set as:

[0026] The Adam optimizer is set, in each Bayesian inference update iteration, in each round of Bayesian inference update, the first moment and the second moment of the gradient step size are updated based on the gradient information of the lognormal distribution, the adaptive step size is obtained using the Adam optimizer based on the first moment and the second moment, and after dynamic bias correction of the adaptive step size using the Adam optimizer, the adaptive step size is generated as the gradient step size of the current iteration.

[0027] Further, the process of obtaining the calibrated crack depth from the posterior distribution function after completing the updating is set as: constructing a time series according to the time sequence of the likelihood functions of the Bayesian inference iterations in different orders, assigning an iteration weight to the mean value of the posterior distribution at each time point, and calculating using time series fusion based on the iteration weight, and marking the final result of the fusion calculation as the calibrated crack depth.

[0028] Further, the process of time series fusion calculation is set as:

[0029] wherein a calibrated crack depth is denoted as Dc, an iteration weight is denoted as β, a serial number of an iteration is denoted as i; a crack depth estimate corresponding to a posterior distribution of each iteration is denoted as Dp,

[0030] a calculation formula of the calibrated crack depth of the i-th iteration is represented as: ,

[0031] wherein the iteration weight β is set in a range of 0≤β≤1, and i is set as a natural number greater than 1.

[0032] Further, the crack depth estimate Dp corresponding to the posterior distribution of each iteration is set as a median of the posterior distribution in the iteration.

[0033] Further, the setting process of the confidence interval comprises:

[0034] constructing the confidence interval of the crack depth based on a posterior distribution parameter of the posterior distribution; generating an approximate distribution of the crack depth according to the posterior distribution, and extracting a plurality of point estimates from the approximate distribution; when the plurality of point estimates all fall within the confidence interval, determining that the crack depth has reached a calibration condition, and outputting the calibrated crack depth.

[0035] Further, the posterior distribution parameter comprises a mean parameter and a variance parameter of a lognormal distribution, used to represent a variational posterior distribution of the crack depth.

[0036] Compared with the prior art, the present application has the following advantages and beneficial effects:

[0037] 1. The prior dielectric constant is constructed by the reflection main peak travel time and the initial dielectric constant, the average humidity of the dam body is taken as the prior input, the initial distribution of the dielectric constant is positively correlated with the humidity change, so that the solution of the crack depth is no longer dependent on the fixed wave velocity, thereby significantly reducing the systematic deviation of the depth caused by the humidity gradient;

[0038] 2. The posterior distribution function of the crack depth is introduced through the Bayesian framework, so that the depth prediction has the confidence information, when the humidity causes strong scattering or the dielectric changes sharply, the posterior distribution will automatically change, thereby avoiding the problem that the traditional radar depth estimate has low potential reliability due to only a single detection result;

[0039] 3. The posterior distribution and the confidence interval of the crack depth are provided, the uncertainty of the depth result is quantified, the reliability and the interpretability are improved, and the iteration updating and the self-consistent determination mechanism are adopted, so as to ensure the stability of the crack depth calibration process, avoid false jumps, and make the geological radar still maintain the robustness in the local water saturation and the complex dielectric environment. BRIEF DESCRIPTION OF DRAWINGS

[0040] The accompanying drawings, which are included to provide a further understanding of the embodiments of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the principles of the application. In the drawings:

[0041] Figure 1 The flow chart of the present application. DETAILED DESCRIPTION

[0042] In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the embodiments and the drawings, the illustrative embodiments of the present application and the description thereof are only used to explain the present application, and do not constitute limitation to the present application.

[0043] Embodiment 1, as shown in the present embodiment is a dam crack depth detection method based on Bayesian inference, the method comprises: Figure 1

[0044] Step S1: collecting the initial dielectric constant and the average humidity of the target dam, collecting the initial crack depth detected by the geological radar detection, and obtaining the reflection main peak travel time of the target detection crack;

[0045] Step S2: calculating the prior dielectric constant using the reflection main peak travel time and the initial dielectric constant, performing Bayesian inference based on the prior dielectric constant, the average humidity of the dam body and the initial crack depth, and performing inference update iteration in the Bayesian inference;

[0046] Step S3: generating a posterior distribution function in the posterior stage of the Bayesian inference, updating the posterior distribution function in each iteration cycle, and obtaining the calibrated crack depth from the finally updated posterior distribution function;

[0047] Step S4: setting a confidence interval, calculating the approximate distribution of the calibrated crack depth and selecting a plurality of point estimates, when all the selected point estimates are located within the confidence interval range, completing the calibration process; when there is a point estimate located outside the confidence interval range, returning to step S2.

[0048] ​The initial dielectric constant refers to a basic estimation or measurement value of the current electromagnetic environment of the dam before the Bayesian inference calibration. In specific implementation, the standard dielectric constant can be obtained from the dam operation record material as the initial dielectric constant; the field geological radar calibration can be used to obtain a basic dielectric constant value in the non-complex area of the dam or the part with uniform humidity; the constant moisture content test can be performed on the concrete sample of the same material of the dam to measure the initial dielectric constant by using the dielectric spectrum analysis method. The average humidity of the dam body is a parameter representing the overall water content state of the dam, which is used to adjust the humidity sensitivity of the dielectric constant in the model. In specific implementation, the average humidity of the dam body can be estimated by the data of the humidity meter or osmometer arranged in the dam body, and the overall average value can be obtained by using multiple deep buried humidity meters or osmometers to provide the water content at different depths; the average volume moisture content of the entire dam body at a certain period of time can be obtained by using the finite element derivation result of the dam body temperature and humidity field based on the long-term monitoring of the seepage field and temperature field of the target dam. The initial crack depth is a rough estimated depth value of the crack being detected without calibration or correction. The initial crack depth can be directly scanned and collected by using the geological radar, the high-frequency electromagnetic wave is emitted into the medium by using the geological radar, and the amplitude, phase and waveform of the reflected wave are analyzed to identify the crack interface with different dielectric constants; the depth of the crack is calculated according to the geometric shape and travel time of the reflection interface. The reflection main peak travel time refers to the propagation time of the characteristic point with the maximum amplitude in the reflected wave generated by the crack interface in the propagation process of the electromagnetic wave emitted by the geological radar, which is used to represent the time-domain physical quantity of the position of the reflection interface; the meaning can be represented as the characteristic time of the strongest signal of the crack reflection in the round trip propagation time of the whole process of “emission→propagation→crack reflection→return to receiver”. In specific implementation, the reflection main peak travel time can be directly measured and obtained by using the geological radar emission and echo reception.

[0049] In the Bayesian inference framework, the prior represents the preliminary knowledge or estimate held about an unknown parameter before new data is observed. The meaning of the prior permittivity is that before the deep calculation, the preliminary estimate value of the real permittivity is made based on the existing information, which reflects the reasonable estimate value of the equivalent permittivity that can be used in the target dam. The prior permittivity is calculated using the reflection main peak travel time and the initial permittivity. The prior permittivity is calculated based on the main peak travel time of the geological radar echo, combined with the initial permittivity parameter of the target dam, and the permittivity is corrected and calculated through the travel time-permittivity relationship model to obtain the prior permittivity used to start the inference process in the Bayesian inference. The prior permittivity can reflect the real propagation characteristics of electromagnetic waves under the influence of dam humidity, and provide reasonable initial value constraints for subsequent posterior inference. Using the prior permittivity, the average humidity of the dam and the preliminary crack depth, the observed radar travel time data is combined with the forward model, and the unknown target crack depth estimate is continuously corrected and updated through the Bayesian statistical method, so as to obtain a more accurate and reliable crack depth posterior distribution.

[0050] As a feasible enumerated embodiment, the calculation process of the prior permittivity can be set as follows: let the speed of light be represented as c, the reflection main peak travel time be represented as tb, the initial permittivity be represented as ε0, the initial crack depth be represented as D0, and the prior permittivity be represented as εp,

[0051] The calculation formula of the prior permittivity εp is: .

[0052] The meaning of the prior permittivity calculation formula is that the initial permittivity is added to the average permittivity change in the unit travel time change length of the target crack.

[0053] The part represents the theoretical travel time including the round-trip time, and the conversion is derived from: let the one-way theoretical travel time be represented as t, the electromagnetic wave speed be represented as v1, and the derivation formula can be set as: c represents the speed of light,

[0054] Then the round-trip theoretical travel time can be derived as: .

[0055] The part represents the scale factor for converting the time difference into the permittivity correction amount, and its form can be seen as: The derivation process of the scale factor is that the scale factor is the proportional coefficient of the small change mapping, and its physical meaning is the permittivity change amount corresponding to the unit travel time change; it also represents the sensitivity of the travel time to the permittivity. Therefore, the physical form of the scale factor in this embodiment can be set as the differential formula of dε / dt, which can be represented as: in the equation.

[0056] The derivation process is as follows: the equation of the known theoretical time can be expressed as: ,

[0057] Therefore, the following is obtained: , and the following can be obtained: ;

[0058] The chain rule is known: ,

[0059] Then the corresponding derivatives are obtained: , ,

[0060] Combination can be obtained: , that is, the scale factor.

[0061] It should be noted that the derivation process of the scale factor includes:

[0062] Let the initial magnetic permeability value of the target dam collection environment be represented as μ0, and the vacuum permittivity be represented as εz, and the vacuum magnetic permeability be represented as μz. According to the existing derivation conclusion of Maxwell's equations, it is known that

[0063] The speed of light in a vacuum environment can be expressed as: ,

[0064] In the target dam air collection environment, due to the existence of air propagation medium, let the general symbol of the dielectric constant of the target dam propagation medium be represented as ε, and the general symbol of the magnetic permeability of the target dam propagation medium be represented as μ,

[0065] Then the electromagnetic wave speed is expressed as: .

[0066] Let ε = ε0 ∙ εz, and let μ = μ0 ∙ μz,

[0067] Then the electromagnetic wave speed v1 is expressed as: ;

[0068] The target dam air collection environment is a non-magnetic medium, and μ0 can be approximately taken as 1, so , that is .

[0069] ​Wherein, the principle of allowing ε = ε0·εz and μ = μ0·μz is that the electric displacement in the medium is formed by superimposing the vacuum intrinsic polarization response and the medium additional polarization effect. The vacuum permittivity εz is a dimensional parameter representing the basic relationship between the electric field and the electric displacement, and is used as an absolute scale of polarization ability; the ratio of the additional polarization quantity generated by the medium molecular structure to the vacuum permittivity εz reflects the polarization enhancement degree of the medium relative to the vacuum, and the proportional relationship is a pure relative amplification factor, which does not involve any dimension, and therefore is constructed as a dimensionless relative permittivity (i.e. initial permittivity ε0). By separating the absolute scale and the relative enhancement part, the dielectric properties can be made universal and comparable.

[0070] Further, the process of performing Bayesian inference includes: constructing a prior distribution of crack depth and dielectric constant based on prior permittivity, dam average humidity and initial crack depth; establishing a forward relationship between observation data and to-be-measured crack depth and dielectric constant by using the travel time of the reflection main peak measured by the ground penetrating radar; calculating the posterior distribution of the to-be-measured crack depth and dielectric constant by the Bayesian formula according to the prior distribution and the observation data; and updating the posterior distribution by iteration to make it converge to a stable distribution consistent with the observation data, and obtaining the calibrated crack depth estimate value from the stable distribution (i.e. the finally generated posterior distribution function), which is the calibrated crack depth. The calibrated crack depth can be obtained by selecting the posterior mean, posterior median and maximum posterior value of the posterior distribution function; or by using the weighted mean of the posterior distribution of multiple lines and multiple iteration results.

[0071] The confidence interval can be constructed according to the posterior distribution function obtained by Bayesian inference iteration, such as a 95% confidence interval, which represents a probability of 95% that the real crack depth falls within the interval. Under the Bayesian framework, the confidence interval reflects the interval of a certain probability mass in the posterior distribution, for example, the 95% confidence interval means that there is a 95% probability that the crack depth falls within the interval; the probability distribution or approximate distribution of the crack depth generated by the posterior sample reflects the uncertainty. Selecting several point estimates, in specific implementation, the posterior mean, posterior median, maximum posterior value and other special quantiles (such as 25% and 75%) can be selected. If all the selected point estimates are within the confidence interval, it means that the posterior distribution is stable, the point estimate is consistent with the overall distribution, and the calibration process can be ended; otherwise, it means that the posterior distribution is not stable, and the prior needs to be updated or the Bayesian inference needs to be re-executed. If all the point estimates fall within the interval, it means that the point estimate is consistent with the overall posterior distribution and there is no abnormal deviation. If part of the point estimates fall outside the interval, it means that the posterior distribution is skewed, thick-tailed or the iteration result is unstable, and further correction is needed. The relationship between multiple point estimates and the confidence interval is used to judge whether the posterior distribution converges and is reliable, thereby indirectly judging the reliability of the crack depth calibration.

[0072] The Bayesian inference process includes:

[0073] Based on the prior dielectric constant, the average humidity of the dam body, and the initial crack depth, a likelihood function reflecting the propagation of electromagnetic waves in water-bearing concrete is constructed. The prior dielectric constant is input into the likelihood function as a dielectric correction parameter, and the average humidity of the dam body is set as a humidity adjustment factor. The humidity adjustment factor is input into the likelihood function as a physical correction parameter. Bayesian inference update is performed based on the corrected likelihood function and the prior distribution. The likelihood function after Bayesian inference update is labeled as the posterior distribution function of the initial crack depth.

[0074] A likelihood function describing the propagation characteristics of electromagnetic waves in water-bearing concrete is constructed, and the humidity adjustment factor is input into the likelihood function as a physical correction parameter. As a specific example, the average humidity of the dam body (i.e., the humidity adjustment factor) is denoted as M, and its form can be specifically set as L(D0|εp,M). The likelihood function reflects the degree of physical matching between the observed data (including the travel time and amplitude of the reflection peak) and the parameters. The humidity adjustment factor is used to correct the influence of wave velocity changes with the humidity gradient, improving the model's adaptability to actual dam conditions. The likelihood function is updated using Bayes' theorem. As a specific example, the Bayes' theorem is denoted as P, and the final output calibrated crack depth (i.e., the value after the initial crack depth update) is denoted as D. The initial crack observation data is denoted as data, which mainly includes the travel time tb of the reflection peak of the target crack measured by ground-penetrating radar and the amplitude of the reflected wave. In practical applications, waveform characteristics, phase information, spectrum, and other data can also be added, all of which can be directly obtained through ground-penetrating radar measurement. The Bayesian formula can be set as: P(D|data)∝L(data|D0,εp,humidity)⋅P0(D), where P0(D) represents the prior distribution set in the initial stage, indicating the prior probability distribution of crack depth before observation data is available. In specific implementations, this can be estimated and set using historical data or engineering experience theory. The symbol ∝ in mathematics and Bayesian formulas represents proportionality, indicating that the posterior distribution is proportional to the likelihood function multiplied by the value of the prior distribution. For example, in the example form of this embodiment, the product L⋅p(D) gives the shape or relative size of the posterior distribution. The posterior distribution also needs to be transformed into the true probability distribution through a normalization constant so that the total area is 1.

[0075] Furthermore, as a feasible implementation, the process of labeling the likelihood function after Bayesian inference update as the posterior distribution function of the initial crack depth includes:

[0076] The updating convergence condition is set, and in the Bayesian inference updating process, the posterior distribution obtained by the previous updating is used as the prior distribution of the next updating; the likelihood function combined with the humidity adjustment factor is iteratively updated, and in each updating, the posterior distribution of the likelihood function is calculated using the variational Bayesian method to gradually optimize the posterior distribution function of the initial crack depth; when the Bayesian inference updating reaches the updating convergence condition, the updating is stopped and the posterior distribution function is output.

[0077] In the Bayesian inference updating process, the posterior distribution function obtained by the previous updating is used as the prior distribution function of the next updating to realize the iterative progressive correction of the prior information. The likelihood function combined with the humidity adjustment factor is iteratively updated, and in each updating step, the posterior distribution of the likelihood function is calculated using the variational Bayesian method to gradually optimize the posterior distribution function corresponding to the initial crack depth. The variational Bayesian method is a mathematical method for approximately solving complex posterior distribution in Bayesian inference, and is especially suitable for high-dimensional, nonlinear or large observation noise problems. In specific implementation, a tractable variational distribution is usually used to approximate the true posterior, and by optimizing the variational parameters, the true posterior is as close as possible. When the Bayesian inference updating process satisfies the updating convergence condition, the iteration is terminated, and the posterior distribution function of the initial crack depth is finally output as the final result of the calibrated crack depth. Through the above iterative updating process, the Bayesian posterior distribution optimization combined with the humidity adjustment factor and the observation data is realized, thereby improving the calibration accuracy of the dam crack depth and quantifying the uncertainty of the crack depth. In specific implementation, the convergence condition can be completed by setting a posterior threshold, and when the mean value of the posterior distribution changes less than the threshold, the Bayesian inference process is completed. In particular, when the first iteration is performed, since there is no previous iteration, the prior probability distribution of the crack depth is pre-set by the system, which can be obtained by historical data or engineering experience and theoretical estimation.

[0078] In particular, as a feasible implementation, the updating convergence condition includes: setting a posterior variance threshold for the Bayesian inference updating process, and calculating the variance value of the posterior distribution of each Bayesian inference updating; when the variance value of the posterior distribution is lower than the posterior variance threshold, the Bayesian inference completes the updating process, at which time the updating is stopped and the posterior distribution function is output.

[0079] A posterior variance threshold is preset, and the threshold size can be selected according to engineering requirements and observation data accuracy. The smaller the threshold is, the more concentrated the posterior distribution is required, and the more refined the iteration is. The larger the threshold is, the faster the convergence is, but the higher the uncertainty is. Since the smaller the posterior variance is, the more stable the crack depth estimation is, the observation and the prior information are fully fused, and when the variance is larger, the posterior distribution still has a large fluctuation, which indicates that the depth estimation has uncertainty. Therefore, in the specific implementation, as a preferred, the posterior variance threshold can be set to a smaller value. When the variance value of the posterior distribution is lower than the posterior variance threshold, it indicates that the posterior distribution is concentrated enough, and the subsequent iteration will not significantly change the crack depth estimation. At this time, the iteration is stopped, and the final posterior distribution function is output, realizing accurate, stable and controllable crack depth calibration.

[0080] Further, as a feasible implementation, the process of calculating the posterior distribution by the variational Bayesian method comprises:

[0081] The lower bound of the evidence of the variational Bayesian and the gradient step size are set; in each Bayesian inference update iteration, the posterior distribution obtained by the previous Bayesian inference update is parameterized as a lognormal distribution, the lognormal distribution is adjusted along the direction in which the lower bound of the evidence increases by using the gradient step size, and the lognormal distribution after the KL divergence adjustment is output as the posterior distribution result of the current update iteration.

[0082] In the variational Bayesian method, the evidence lower bound is used to represent the approximation degree of the approximate posterior distribution to the true posterior distribution in the variational Bayesian inference, and its mathematical form is a lower bound value of the true posterior probability. In the calculation process, the variational distribution gradually converges to the true posterior distribution by maximizing the evidence lower bound. Therefore, the evidence lower bound can be used as an optimization target of the variational Bayesian updating process to guide the iterative updating of the posterior distribution. The gradient step length is used to control the adjustment range of the posterior distribution parameter in the variational Bayesian updating process. The posterior distribution parameter represents the parameter of the corresponding posterior probability distribution shape, which is used to represent the parameterization result of the crack depth probability distribution obtained by updating through Bayesian inference after combining the radar observation data, the prior dielectric constant and the humidity adjustment factor. The posterior distribution parameter can specifically include a mean parameter and a variance parameter used to describe the shape of the variational posterior distribution, which is used to reflect the central position of the crack depth estimation value and the uncertainty degree thereof. After calculating the gradient direction of the evidence lower bound each time, the variational distribution is updated in the direction in which the evidence lower bound increases by setting the gradient step length. The gradient step length is used to constrain the amplitude of a single update, so as to avoid instability caused by too fast updating or reduce the convergence efficiency caused by too slow updating. In the embodiment, the evidence lower bound and the gradient step length can be set by an empirical rule when being specifically applied. In each Bayesian inference update, the evidence lower bound value of the lognormal distribution is determined based on the lognormal distribution obtained in the previous iteration, the gradient of the lognormal distribution in the direction in which the evidence lower bound increases is calculated, and the parameters of the lognormal distribution are updated according to the set gradient step length, so that the KL divergence between the updated lognormal distribution and the true posterior distribution is reduced. The lognormal distribution adjusted by the KL divergence is determined as the posterior distribution of the current iteration step, which is used for output and as the prior distribution input of the next update iteration.

[0083] More specifically, the process of parameterizing the posterior distribution as a lognormal distribution is used as an example, and the content can include: the posterior distribution is represented as pk, and the lognormal distribution is represented as qk. The obtained posterior distribution definition formula pk(D|data) is approximately represented by a parameterized lognormal distribution definition formula qk(D)=LogNormal(D;μk,σk 2 ), where μk represents the mean of the posterior distribution obtained in the kth Bayesian update in the log domain, and σk represents the standard deviation of the posterior distribution after the kth update in the log domain. The μk is used to represent the centralized trend of the crack depth posterior estimation value in the log space, and the σk is used to measure the dispersion degree of the crack depth estimation in the log space.

[0084] As an example, the parameterization process includes: from the kth posterior sampling set {D (s)} S s=1Or posterior density estimation, first take the logarithm of the sample to get {logD (S)}; Calculate the mean and variance of the logarithmic sample, that is And ; Define the lognormal approximation distribution with the μk and σk. Where S represents the index of the iteration step of the variational Bayesian method, that is, the update order number.

[0085] Further, as a feasible implementation, the Adam optimizer is used to set the gradient step size, and the process is set as follows:

[0086] The Adam optimizer is set, and in each Bayesian inference update iteration, in each round of Bayesian inference update, the first moment and the second moment of the gradient step size are updated based on the gradient information of the lognormal distribution, the adaptive step size is obtained based on the first moment and the second moment using the Adam optimizer, and after dynamic bias correction of the adaptive step size using the Adam optimizer, the adaptive step size is generated as the gradient step size of the current iteration.

[0087] The purpose of introducing the Adam optimizer in the variational Bayesian update process is to adaptively adjust the gradient step size to improve the stability and convergence speed of the lognormal distribution parameter update. In each Bayesian inference update iteration, based on the gradient information of the lognormal distribution with respect to the lower bound of the evidence, the Adam optimizer accumulates the first moment (mean estimate) and the second moment (non-central variance estimate) of the current gradient, and updates them exponentially. The Adam optimizer calculates the adaptive step size of the current gradient direction based on the updated first moment and second moment according to its internal rules, so that larger gradients are suppressed and smaller gradients are amplified, thereby obtaining a more stable parameter update amplitude. The adaptive step size is calculated by the Adam optimizer according to the first moment and the second moment, and dynamic bias correction is performed on the adaptive step size; the adaptive step size obtained by the Adam optimizer is used as the gradient step size of the current iteration to update the parameters of the lognormal distribution.

[0088] In this embodiment, the process of obtaining the calibrated crack depth from the posterior distribution function finally completed the update is set as follows: the likelihood functions of Bayesian inference iterations of different orders are constructed into a time series in time order, the mean values of the posterior distributions at each time point are assigned with iteration weights, and the final result of the fusion calculation is marked as the calibrated crack depth based on the iteration weights using time series fusion calculation.

[0089] The likelihood functions generated in the Bayesian inference iteration process in different orders are arranged in time sequence according to the iteration time sequence to form a time sequence, the mean value of the posterior distribution obtained in each iteration is extracted, and each mean value is assigned a weight according to the iteration order or the convergence state, and the weight of the mean value is higher the later and more stable the iteration is. In the process of obtaining the calibrated crack depth from the posterior distribution function, the likelihood functions of the Bayesian inference iterations in different orders are arranged in time sequence to form a time sequence, the mean value of the posterior distribution at each time point is assigned an iteration weight, and a fusion calculation is performed on the time sequence mean value based on the iteration weight, and the final result obtained by the fusion calculation is marked as the calibrated crack depth. The time sequence fusion calculation method can be used in the specific implementation as an embodiment, Kalman filtering method can be used, the time sequence posterior mean value is used as the observation value, the estimated variance and the predicted variance are combined to perform recursive filtering update to obtain the fused optimal estimation value; or a single weight weighted average method can be used, the posterior distribution mean values at different time points are weighted and summed according to the preset iteration weight to obtain the calibrated crack depth.

[0090] Further, as a feasible implementation manner, the time sequence fusion calculation process is set as:

[0091] Let the calibrated crack depth be represented as Dc, the iteration weight be represented as β, and the serial number of the Bayesian inference update iteration be represented as i; let the crack depth estimate corresponding to the posterior distribution of each iteration be represented as Dp,

[0092] Then the calculation formula of the calibrated crack depth of the i-th iteration is: ,

[0093] Where the iteration weight β is set to be in the range of 0≤β≤1, and i is set to be a natural number greater than 1.

[0094] The mean of the posterior distribution generated in each Bayesian inference iteration is fused with the calibration result of the previous round according to an iteration weight. The iteration weight controls the contribution proportion of the calibration result of the previous round and the current posterior mean. When the iteration weight tends to or is equal to 0, the current iteration posterior mean dominates, and new information is quickly responded to. When the iteration weight tends to or is equal to 1, the historical cumulative result of the previous period dominates, and the iteration process is more smooth and stable. Adjusting β can balance the demand for historical stability and quick response to new observations. A larger β can reduce the influence of observation noise or prior fluctuations on the calibration depth in a single iteration, delay the update step, make the calibration result smoother, and reduce the risk of over-adjustment; a smaller β allows the calibration crack depth to be quickly adjusted to respond to the latest data, and is suitable for situations where the crack depth changes significantly with the environment or humidity. When β is equal to 1, the posterior estimate of the current iteration is completely ignored, and the calibration depth completely follows the result of the previous round; when β is equal to 0, the calibration crack depth is completely determined by the posterior estimate of the current iteration, and the historical iteration result is not involved in the fusion. In specific implementation, β can generally not be set to 1 or 0 while ensuring the effect of regular iteration. As a feasible implementation, the crack depth estimate Dp corresponding to the posterior distribution of each iteration is set as the median of the posterior distribution in the iteration. The crack depth estimate corresponding to the posterior distribution obtained in each iteration is set as the median of the posterior distribution, which is used as the input of the time series fusion calculation. Compared with the mean, the median can more accurately reflect the typical position of the crack depth; under the influence of high humidity gradient or observation noise, the posterior distribution may be skewed or multi-tailed, and the median estimate can suppress the deviation caused by occasional abnormalities.

[0095] Further, as a feasible implementation, the setting process of the confidence interval includes:

[0096] The confidence interval of the crack depth is constructed based on the posterior distribution parameter of the posterior distribution; an approximate distribution of the crack depth is generated according to the posterior distribution, and a plurality of point estimates are extracted from the approximate distribution; when the plurality of point estimates all fall within the confidence interval, it is determined that the crack depth has reached the calibration condition, and the calibrated crack depth is output.

[0097] According to the posterior distribution completed after iteration according to Bayesian inference, the confidence interval of the crack depth is determined by using distribution parameters such as special set values (mean values), and the confidence interval can be 95%, 90% or set according to engineering requirements; an approximate distribution of the crack depth is generated according to the posterior distribution, and a plurality of point estimates are extracted from the approximate distribution; when the plurality of point estimates all fall within the confidence interval range, it is determined that the crack depth has reached the calibration condition, and the calibrated crack depth is output. The confidence interval of the posterior distribution quantifies the reliable range of the crack depth, reflecting the reliability of the observation data and the model after correction in engineering. Extracting a plurality of point estimates from the approximate distribution and verifying whether they fall within the confidence interval is equivalent to verifying the internal consistency of the posterior distribution and the stability of the iterative calibration. As a feasible implementation manner, the posterior distribution parameters include a mean parameter and a variance parameter of a lognormal distribution, which are used to represent the variational posterior distribution of the crack depth. In variational Bayesian inference, the posterior distribution of the crack depth is approximately represented by a lognormal distribution, and the parameters of the parameterized lognormal distribution constitute the variational distribution parameters, which are used to approximate the real Bayesian posterior distribution, realize the feasible iterative update and confidence interval construction. The posterior distribution parameters include a mean parameter and a variance parameter of a lognormal distribution, which are used to represent the variational posterior distribution of the crack depth, wherein the mean parameter reflects the central tendency of the crack depth, and the variance parameter is used to quantify the uncertainty of the crack depth estimation and provide basic information for subsequent time series fusion, point estimation selection and confidence interval construction.

[0098] In different embodiments of the present technology, the construction of the prior dielectric constant can not be limited to a single calculation model. In this embodiment, the calculation process of the prior dielectric constant includes:

[0099] Let the speed of light be represented as c, the travel time of the main reflection peak be represented as tb, the initial dielectric constant be represented as ε0, the initial crack depth be represented as D0, and the prior dielectric constant be represented as εp.

[0100] The calculation formula of the prior dielectric constant εp is: ,

[0101] Wherein, α represents an observation weight, and w represents an amplitude weight, and 0 < w ≤ 1.

[0102] In this embodiment, the meaning of the prior dielectric constant calculation formula is that the main part containing the initial dielectric constant is added to the part calculated based on the travel time of the main reflection peak and the initial crack depth observation to obtain the prior dielectric constant. The (1-α)·ε0 part in the formula ensures that the prior dielectric constant is not completely dependent on the dielectric observation component part , keep physical rationality. When α is small, the prior permittivity mainly depends on the initial permittivity; when α is large, the dielectric observation component has a greater impact on the prior permittivity. The amplitude weight adjusts the influence of the reflection signal strength on the prior, and when the amplitude of the reflection signal is low, the amplitude weight can reduce its contribution. When the amplitude weight is equal to 1, the observation amplitude is completely reliable, and the contribution of the observation calculated permittivity reaches the maximum state. When the amplitude weight is close to 0, the observation amplitude is very weak, and the prior permittivity is mainly obtained through the initial permittivity combined with the observation weight value. The amplitude weight is not equal to 0 in order to always retain the adjustment and optimization of the initial permittivity by the dielectric observation component; the amplitude weight is not more than 1 in order to prevent excessive dependence on the dielectric observation component, because the target dam body is spacious, the dam humidity and crack uniformity are low, and the humidity gradient is complex, so that excessive influence of non-accurate measurement on the crack depth calibration process can be avoided. Since the amplitude weight is only allocated to the dielectric observation component, when the amplitude weight is between 0 and 1, the sum of the total weights is no longer strictly equal to 1, but less than 1, that is, it becomes a damping type weighted fusion; in the specific implementation process, the adjustment mode of the damping type weighted fusion can reduce the dependence of the dielectric observation component on the shallow crack and weak reflection signal, and gradually increase the contribution of the dielectric observation component to the deep crack and high amplitude signal. The observation weight represents the degree of influence of the information carried by the current reflection travel time on the correction of the prior permittivity. The amplitude weight represents the degree of influence of the main peak amplitude of the target detection crack reflection wave on the correction of the prior permittivity.

[0103] It should be noted that in the formula part represents the dielectric observation component, and this part of the expression refers to the effective permittivity obtained by reflection travel time and initial depth inversion, that is, the local medium refractive property calculated by the dielectric observation component.

[0104] The derivation process of the dielectric observation component is as follows: let the dielectric observation component be represented as εe, and let the electromagnetic wave velocity be represented as 2D0 / tb,

[0105] The dielectric observation component calculation formula is represented as: .

[0106] Further, as a feasible implementation manner, the setting content of the amplitude weight includes:

[0107] The main peak amplitude of the target detection crack reflection wave is set as Ap, the maximum amplitude of the reflection wave observed in the target dam is set as Am, and the amplitude adjustment coefficient γ is set,

[0108] The calculation formula of the amplitude weight w is represented as: , where γ>0.

[0109] The amplitude weight calculation formula means that when the main peak signal is strong, the reflection interface is obvious, and the observation data is highly reliable, at this time the amplitude weight can be increased, the proportion of the dielectric observation component is increased, and the observation calculation part fully participates in the calculation of the prior dielectric constant; when the main peak signal is weak, it may be affected by noise or path attenuation, and the observation data is less reliable, at this time the amplitude weight can be reduced, the proportion of the dielectric observation component is reduced, and the influence of weak signal on the prior dielectric constant is reduced. In the case that Ap / Am is less than 1, when the amplitude adjustment coefficient is equal to 1, the amplitude weight changes linearly with the amplitude ratio; when the amplitude adjustment coefficient is greater than 1, the sensitivity of the amplitude weight is greater, the change range is increased, the weight value will decrease at a faster speed, and the value after reduction is too low, so that the weight contribution is low; when the amplitude adjustment coefficient is between 0 and 1, the amplitude weight has high tolerance to low amplitude, the function curve is relatively flat in the low amplitude area, the weight decreases at a slower speed, and still retains a certain contribution after reduction.

[0110] In particular, in the case that Ap / Am is equal to 1, at this time the main peak of the target crack reflection wave is the maximum amplitude of the reflection wave observed by the target dam; no matter what value the amplitude adjustment coefficient takes, the amplitude weight value is always 1 at this time, and the total weight sum of the prior dielectric constant calculation formula is 1, so that the initial dielectric constant and the dielectric observation component can have the same influence on the prior dielectric constant.

[0111] It should be noted that the calculation process of the prior dielectric constant has been constructed in embodiment 1. In the description, the calculation formula of the prior dielectric constant in embodiment 1 is denoted as calculation formula 1, and the calculation formula of the prior dielectric constant in this embodiment is denoted as calculation formula 2. Although calculation formula 1 and calculation formula 2 adopt different mathematical expressions, they both belong to the prior dielectric constant construction method based on the reflection main peak travel time information to correct the initial dielectric constant. They have the following common points in principle and function:

[0112] Commonly based on the physical function relationship between electromagnetic wave propagation travel time and dielectric constant. Both calculation formulas are based on the physical law that the propagation speed of electromagnetic wave in medium changes with dielectric constant, and through the deterministic correspondence between reflection main peak travel time and dielectric constant, the deviation of measured travel time from initial travel time is used to represent the change trend of dielectric constant, so that the prior dielectric constant can reflect the electromagnetic characteristics in the current crack environment.

[0113] The two calculation formulas are constructed by using the initial dielectric constant and the correction amount based on the travel time deviation. The correction amount based on the travel time deviation is a dielectric constant correction term derived from the travel time deviation, and is used to describe the change in the dielectric constant corresponding to the change in the travel time of the main reflection peak. Both calculation formulas can make the prior dielectric constant close to the actual dielectric characteristics in value by calculating or weighting the correction term. Both calculation formulas use the travel time of the main reflection peak as a directly observable physical quantity, and automatically adjust the prior dielectric constant based on the travel time change without relying on additional structural assumptions, so that the generated prior parameters can provide initial values that meet the actual situation for subsequent variational Bayesian inference, can meet the verification process of Bayesian inference update, and can improve the model convergence speed and inference accuracy.

[0114] In the construction process of the specific calculation formula, the calculation formula 1 uses a first-order linearization process to back-propagate the prior dielectric constant, and uses a first-order linear expansion of the travel time deviation, which only contains a first-order deviation term. The calculation formula 2 uses a quadratic term to back-propagate the prior dielectric constant, and obtains the equivalent dielectric constant by squaring the reflection travel time, and the calculation result contains a second-order dimension of the travel time deviation. Both are different approximation methods of the same physical model. The correction amount of the calculation formula 1 is determined by the geometric size and the initial dielectric constant, and does not have additional weight adjustment capability. The calculation formula 2 contains adjustable weights α and w, so that the output result can be scaled and adjusted according to the target material characteristics, signal-to-noise ratio or experience parameters. Since the travel time of the main reflection peak is a limited small amount in actual use, its change range is restricted by the physical conditions of the concrete dielectric constant and the crack depth, and will not be too large. For example, in the specific implementation of the engineering scene of detecting cracks in the dam by using the ground penetrating radar, the travel time of the main reflection peak is generally not very large. The commonly used frequency band of the ground penetrating radar (GPR) in the concrete dam is 100MHz-500MHz, and the dielectric constant of the concrete is generally ε≈6-10. The typical travel time of the main reflection peak is in the order of tens to two hundred nanoseconds, which is not large. Therefore, when the travel time deviation of the main reflection peak is within the normal range, the difference between the calculation results of the two calculation formulas is in the linear approximation order, and the numerical size is at the same level. The deviation between the calculation results of the two calculation formulas can be limited within an adaptable range.

[0115] Here, more specific implementation examples of the calculation processes of the two calculation formulas are given. The following examples are preferred implementation applications for improving the numerical accuracy of the two calculation formulas, and are not limited to the scenes set by the calculation formulas.

[0116] The calculation formula 1 is a first-order linear expansion of the travel time deviation, does not contain a weight factor, and has low noise sensitivity, so it is more suitable for scenes with stable signals, shallow cracks and small travel time deviations. Specifically, it can include:

[0117] 1. High signal-to-noise ratio, main peak travel time stable detection environment, radar antenna and dam body coupling is good, clear echo, peak stable, linear term can directly reflect the travel time small offset, get stable dielectric estimation;

[0118] 2. The scene of shallow crack depth or small change range, the crack depth is in the high resolution interval of radar, the shallow interference is low, the reflection main peak travel time is close to the theoretical travel time, the deviation is small, and the linear correction model has high precision under the condition of small deviation;

[0119] 3. The scene of uniform dam material structure and weak dielectric gradient, the dam body has no obvious water area mutation, the material dielectric constant distribution is stable, the linear travel time and dielectric relationship can accurately reflect the dielectric disturbance, and the second sensitive term does not need to be introduced.

[0120] The calculation formula 2 adopts a second-order dimensional sensitive structure for travel time, and contains adjustable observation weight and amplitude weight, so it is suitable for the case that noise exists, the signal amplitude difference is large or the detection scene is complex. Specifically, it can include:

[0121] 1. The scene of significant reflection signal amplitude difference, for example, the echo intensity difference of cracks of different depths is large, and the main peak energy obviously attenuates with depth, adjusting the amplitude weight can weaken the influence of low-quality echo;

[0122] 2. The scene of dam material water content change too uneven and refractive index gradient obvious, such dam body has alternating distribution of wet area and dry area, the electromagnetic wave propagation speed gradient is large, and the second travel time term can better capture the change of dielectric constant in the highly nonlinear region;

[0123] 3. The scene of large travel time error or noise that cannot be ignored, there are obvious environmental interferences such as equipment drift, electromagnetic noise and rough interface diffraction, the second term structure has stronger sensitivity, is suitable for establishing priori of strong constraint under noise background, can amplify the change trend and compensate part of the travel time deviation.

[0124] The above specific embodiments further illustrate the purpose, technical solutions and beneficial effects of the present application. It should be understood that the above description is only a specific embodiment of the present application and is not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for detecting the depth of cracks in dams based on Bayesian inference, characterized in that, The method includes: Step S1: Collect the initial dielectric constant and average humidity of the target dam, collect the initial crack depth of the cracks detected by ground-penetrating radar, and obtain the travel time of the main peak of the reflection of the cracks detected by the target. Step S2: Calculate the prior dielectric constant using the reflection peak travel time and the initial dielectric constant. Perform Bayesian inference based on the prior dielectric constant, the average humidity of the dam body, and the initial crack depth. Perform inference update iteration in the Bayesian inference. Step S3: Generate the posterior distribution function in the posterior stage of Bayesian inference, update the posterior distribution function in each iteration loop, and obtain the calibration crack depth from the finally updated posterior distribution function. Step S4: Set the confidence interval, calculate the approximate distribution of the calibration crack depth and select several point estimates. When all selected point estimates are within the confidence interval, the calibration process is complete; if there are point estimates outside the confidence interval, return to step S2. The calculation process of the prior dielectric constant includes: Let the speed of light be represented by c, the travel time of the main reflection peak by tb, the initial dielectric constant by ε0, the initial crack depth by D0, and the prior dielectric constant by εp. The formula for calculating the a priori permittivity εp is: , Where α represents the observation weight, w represents the amplitude weight, and 0 <w≤1; The Bayesian inference process includes: Based on the prior dielectric constant, the average humidity of the dam body, and the initial crack depth, a likelihood function reflecting the propagation of electromagnetic waves in water-bearing concrete is constructed. The prior dielectric constant is input into the likelihood function as a dielectric correction parameter, and the average humidity of the dam body is set as a humidity adjustment factor. The humidity adjustment factor is input into the likelihood function as a physical correction parameter. Bayesian inference update is performed based on the corrected likelihood function and the prior distribution. The likelihood function after the Bayesian inference update is labeled as the posterior distribution function of the initial crack depth.

2. The method for detecting the depth of cracks in a dam based on Bayesian inference according to claim 1, characterized in that, The amplitude weight settings include: The peak amplitude of the reflected wave from the crack in the target dam is set to Ap, the maximum amplitude of the reflected wave observed at the target dam is set to Am, and an amplitude adjustment coefficient γ is set. The formula for calculating the amplitude weight w is: , where γ>

0.

3. The method for detecting the depth of cracks in a dam based on Bayesian inference according to claim 1, characterized in that, The process of labeling the likelihood function after Bayesian inference update as the posterior distribution function of the initial crack depth includes: Set the update convergence condition. During the Bayesian inference update process, the posterior distribution obtained from the previous update is used as the prior distribution for the next update. Iteratively update the likelihood function combined with the humidity adjustment factor. In each update, the variational Bayesian method is used to calculate the posterior distribution of the likelihood function, and the posterior distribution function of the initial crack depth is gradually optimized. When the Bayesian inference update reaches the update convergence condition, the update stops and the posterior distribution function is output.

4. The method for detecting the depth of cracks in a dam based on Bayesian inference according to claim 3, characterized in that, The update convergence conditions include: setting a posterior variance threshold for the Bayesian inference update process, calculating the variance value of the posterior distribution for each Bayesian inference update; when the variance value of the posterior distribution is lower than the posterior variance threshold, the Bayesian inference update process is completed, and the update is stopped and the posterior distribution function is output.

5. The method for detecting the depth of cracks in a dam based on Bayesian inference according to claim 3, characterized in that, The process of calculating the posterior distribution using the variational Bayesian method includes: Set the lower bound of evidence and gradient step size for variational Bayesian; in each Bayesian inference update iteration, parameterize the posterior distribution obtained from the previous Bayesian inference update into a log-normal distribution, use the gradient step size to adjust the KL divergence of the log-normal distribution along the direction of increasing lower bound of evidence, and output the log-normal distribution after KL divergence adjustment as the posterior distribution result of the current update iteration.

6. The method for detecting the depth of cracks in a dam based on Bayesian inference according to claim 5, characterized in that, Setting the gradient step size using the Adam optimizer is as follows: The Adam optimizer is set up so that in each Bayesian inference update iteration, the first and second moments of the gradient step size are updated based on the gradient information of the log-normal distribution. The Adam optimizer is used to obtain the adaptive step size based on the first and second moments. After the Adam optimizer performs dynamic bias correction on the adaptive step size, the adaptive step size is generated as the gradient step size of the current iteration.

7. The method for detecting the depth of cracks in a dam based on Bayesian inference according to claim 1, characterized in that, The process of obtaining the calibration crack depth from the finally updated posterior distribution function is set as follows: construct a time series of likelihood functions of Bayesian inference iterations of different orders in chronological order, assign iteration weights to the mean of the posterior distribution at each time point, perform time series fusion calculation based on the iteration weights, and label the final result of the fusion calculation as the calibration crack depth.

8. The method for detecting the depth of cracks in a dam based on Bayesian inference according to claim 7, characterized in that, The time series fusion calculation process is set as follows: Let the calibration crack depth be denoted as Dc, the iteration weight as β, and the ordinal number of the Bayesian inference update iteration as i; let the crack depth estimate corresponding to the posterior distribution of each iteration be denoted as Dp. The formula for calculating the calibration crack depth in the i-th iteration is expressed as: , The iteration weight β is set to a range of 0 ≤ β ≤ 1, and i is set to a natural number greater than 1.

9. The method for detecting the depth of cracks in a dam based on Bayesian inference according to claim 8, characterized in that, The crack depth estimate Dp corresponding to the posterior distribution in each iteration is set as the median of the posterior distribution in that iteration.

10. The method for detecting the depth of cracks in a dam based on Bayesian inference according to claim 5, characterized in that, The process of setting the confidence interval includes: A confidence interval for crack depth is constructed based on the posterior distribution parameters of the posterior distribution; an approximate distribution of crack depth is generated based on the posterior distribution, and multiple point estimates are extracted from the approximate distribution; when all the multiple point estimates fall within the confidence interval, it is determined that the crack depth has met the calibration conditions, and the calibrated crack depth is output.

11. The method for detecting the depth of cracks in a dam based on Bayesian inference according to claim 10, characterized in that, The posterior distribution parameters include the mean and variance parameters of a log-normal distribution, which are used to represent the variational posterior distribution of the crack depth.

Citation Information

Patent Citations

  • Ground fracture extraction deep learning method based on direction perception and Bayesian fusion

    CN120764702A

  • System and method for detecting pothole sign of road pavement using electromagnetic wave, and a recording medium having computer readable program for executing the method

    US20210116487A1