A weld defect detection method and system based on TOFD diffraction imaging

By using TOFD diffraction imaging technology and employing Hilbert transform and ultrasonic probe spacing model for peak screening and correction, the problems of noise misjudgment and false defect identification in TOFD scan data are solved, and high-precision detection of weld defects is achieved.

CN123176084APending Publication Date: 2026-11-27NANJING CENT TEST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611526719.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing defect identification methods for TOFD scan datasets, random scattering noise is misjudged as defect diffraction waves, resulting in a high false alarm rate and difficulty in distinguishing pseudo-defect echoes with abnormal amplitude.

Method used

A weld defect detection method based on TOFD diffraction imaging is adopted. The ultrasonic echo signal is processed by Hilbert transform, and the geometric deviation constraint and continuity matching of candidate peaks are performed by combining the ultrasonic probe spacing and propagation geometry model. Peaks that do not meet the constraints are eliminated, and the amplitude attenuation characteristics of diffraction waves are used for correction.

Benefits of technology

It effectively reduced the false detection rate, improved the quantitative calculation accuracy of weld defect endpoint depth and height, enhanced the effective diffraction peak screening capability in complex noise environments, and ensured the reliability and accuracy of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123176084A_ABST
    Figure CN123176084A_ABST
Patent Text Reader

Abstract

The application discloses a kind of weld defect detection method and system based on TOFD diffraction imaging, it is related to electric digital data processing field, the method comprises the following steps: obtaining the multiple-channel ultrasonic echo signal sequence collected by probe along weld continuous scanning acquisition, the envelope signal sequence is obtained by carrying out hilbert transform processing to each ultrasonic echo signal sequence;Extract the candidate wave peak time point corresponding to each scanning position, determine the arrival time set and the geometric deviation degree constraint;Determine the continuous candidate trajectory and effective diffraction wave peak capable of establishing continuous relationship with adjacent scanning position;Local time window is intercepted with the candidate wave peak time point corresponding to effective diffraction wave peak as center, and the target arrival time of effective diffraction wave peak is calculated;The endpoint depth and the height of weld defect are calculated by substituting target arrival time into defect depth calculation equation.The application can reduce false detection rate by implementation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic digital data processing, and in particular to a method and system for detecting weld defects based on TOFD diffraction imaging. Background Technology

[0002] Ultrasonic time-of-flight diffraction (TOFD) technology utilizes the property that the amplitude of the diffracted wave at the defect endpoint is independent of the propagation angle, and is widely used in the non-destructive testing of welds in pressure equipment and large structural components. During testing, the transmitting and receiving probes continuously scan along the weld direction, recording a sequence of ultrasonic echo signals at each scan position with time as the horizontal axis and amplitude as the vertical axis. All position sequences constitute the TOFD scan dataset, which is used to solve for the depth and height of the defect endpoint.

[0003] In related technologies, defect identification of TOFD scan datasets typically employs a channel-by-channel one-dimensional signal analysis approach: the one-dimensional ultrasonic time signal acquired at a single scan location is filtered and denoised, the through wave is truncated through a time window, and then a fixed amplitude threshold is set to extract the peaks exceeding the threshold. The time coordinates corresponding to these peaks are used as candidate diffraction wave arrival times, and substituted into the depth equation established based on the TOFD elliptical acoustic path geometry to calculate the defect depth corresponding to the single scan location. This channel-by-channel independent processing is then repeated for each scan location in the dataset.

[0004] However, because the above method extracts the peaks at each scanning position in isolation without utilizing the correlation information between scanning positions, random scattering noise may be misjudged as defect diffraction waves when it appears as a peak exceeding the threshold in a single channel, resulting in a high false alarm rate. Summary of the Invention

[0005] This application provides a method and system for detecting weld defects based on TOFD diffraction imaging, which can reduce the false detection rate.

[0006] Firstly, this application provides a weld defect detection method based on TOFD diffraction imaging, applied to a defect detection system. The method includes: acquiring a multi-channel ultrasonic echo signal sequence collected by a probe continuously scanning along the weld; performing Hilbert transform on each ultrasonic echo signal sequence to obtain an envelope signal sequence; searching for local maximum values ​​in the envelope signal sequence at each scanning position where the envelope amplitude exceeds a preset amplitude threshold, and extracting candidate peak time points corresponding to each scanning position; determining the arrival time set of effective diffracted waves between adjacent scanning positions and the geometric deviation constraint of the entire candidate trajectory based on the ultrasonic probe spacing and ultrasonic wave propagation geometry model; and, based on the arrival time set, identifying candidate peaks between each scanning position. Time points are continuously matched to identify continuous candidate trajectories that can establish a continuous relationship with adjacent scanning positions. Based on geometric deviation constraints, continuous candidate trajectories are screened, and those that do not meet the geometric deviation constraints are eliminated to obtain effective diffraction peaks. A local time window is extracted with the candidate peak time point corresponding to the effective diffraction peak as the center. The time coordinates are weighted and averaged using the envelope amplitude value of each sampling point within the local time window to obtain the target arrival time of the effective diffraction peak. The target arrival time is substituted into the defect depth calculation equation, and the upper and lower endpoint diffraction waves are distinguished by the geometric consistency of the trajectories corresponding to each effective diffraction peak. The endpoint depth and height of the weld defect are calculated.

[0007] In the above embodiments, the defect detection system, by combining Hilbert envelope processing with geometric deviation constraints of candidate peak time points and arrival time set matching, can eliminate peaks that do not meet the constraints when extracting local time windows and calculating weighted averages, so that the calculation of endpoint depth and height has continuity and accuracy, and reduces isolated noise interference introduced by single-channel isolated extraction.

[0008] In conjunction with some embodiments of the first aspect, in some embodiments, after the step of filtering continuous candidate trajectories based on geometric deviation constraints and eliminating continuous candidate trajectories that do not meet the geometric deviation constraints to obtain effective diffraction peaks, the method further includes: determining, according to the ultrasonic propagation geometric model, the theoretical amplitude attenuation interval in which the diffraction wave amplitude monotonically decreases as the horizontal offset of the scanning position relative to the defect vertex increases; calculating the peak amplitude ratio of effective diffraction peaks between adjacent scanning positions; comparing the peak amplitude ratio with the theoretical amplitude attenuation interval; and eliminating effective diffraction peaks whose peak amplitude ratio does not fall within the theoretical amplitude attenuation interval to correct the effective diffraction peaks.

[0009] In the above embodiments, the defect detection system determines the theoretical amplitude attenuation range of the diffraction wave amplitude that decreases monotonically, and compares the peak amplitude ratio of the effective diffraction wave peaks between adjacent scanning positions. This allows it to eliminate invalid peaks that do not fall within the range, thereby improving the reliability of effective diffraction wave peak screening by utilizing the physical characteristics of diffraction wave attenuation.

[0010] In conjunction with some embodiments of the first aspect, in some embodiments, after determining the theoretical amplitude attenuation interval where the diffraction wave amplitude monotonically decreases as the horizontal offset of the scanning position relative to the defect vertex increases according to the ultrasonic propagation geometry model, the method further includes: statistically analyzing the actual distribution range of the peak amplitude ratio between adjacent scanning positions in each retained candidate trajectory; taking the intersection of the actual distribution range and the theoretical amplitude attenuation interval to obtain the corrected amplitude attenuation interval; replacing the theoretical amplitude attenuation interval with the corrected amplitude attenuation interval, and re-performing the comparison of the peak amplitude ratio to correct the effective diffraction wave peak.

[0011] In the above embodiments, the defect detection system generates a corrected amplitude attenuation interval by statistically analyzing the actual distribution range of the peak amplitude ratio between adjacent positions in the retained trajectory candidates and taking the intersection with the theoretical amplitude attenuation interval. This makes the attenuation interval fit the actual detection conditions and enhances the effective diffraction peak correction capability under complex noise environments.

[0012] In some embodiments of the first aspect, the step of determining the set of arrival times of effective diffracted waves between adjacent scanning positions and the geometric deviation constraint of the entire candidate trajectory based on the ultrasonic probe spacing and ultrasonic propagation geometry model specifically includes: acquiring the arrival times of multiple bottom-reflected waves during the scanning process, calculating the statistical dispersion of the arrival times of the multiple bottom-reflected waves to obtain the uncertainty range of the sound velocity parameter; substituting the upper and lower limits of the uncertainty range into the ultrasonic propagation geometry model to calculate the corresponding arrival time variation limits to construct the set of arrival times; and determining the geometric deviation constraint corresponding to the entire candidate trajectory based on the ultrasonic probe spacing and ultrasonic propagation geometry model.

[0013] In the above embodiments, the defect detection system obtains the uncertainty range of the sound velocity parameter based on the statistical dispersion of the arrival time of the bottom reflected wave during the scanning process, and substitutes the upper and lower limits of the uncertainty range into the geometric model to construct the arrival time set, thereby reducing the interference of sound velocity fluctuations on the time positioning of diffraction waves and ensuring that the geometric deviation constraint conforms to the actual sound velocity conditions.

[0014] In conjunction with some embodiments of the first aspect, in some embodiments, after acquiring the arrival times of multiple bottom-reflected waves during the scanning process, calculating the statistical dispersion of the arrival times of the multiple bottom-reflected waves, and obtaining the uncertainty range of the sound velocity parameter, the method further includes: intercepting the arrival times of bottom-reflected waves within a local range along the scanning direction using a preset sliding position window, and calculating the local statistical dispersion of the arrival times of bottom-reflected waves within the local range; replacing the global statistical dispersion with the local statistical dispersion to redetermine the uncertainty range at the current scanning position; and redetermining the arrival time set and geometric deviation constraints based on the redetermined uncertainty range.

[0015] In the above embodiments, the defect detection system uses a sliding position window to calculate the local statistical dispersion of the arrival time of the bottom reflected wave in a local area, and uses this to replace the global statistical dispersion to redetermine the uncertainty range, thereby improving the local adaptability of the arrival time set and geometric deviation constraints in the non-uniform region of the material.

[0016] In conjunction with some embodiments of the first aspect, in some embodiments, after the step of filtering continuous candidate trajectories based on geometric deviation constraints, eliminating continuous candidate trajectories that do not meet the geometric deviation constraints, and obtaining effective diffraction peaks, the method further includes: when there are more than two candidate trajectories at the same adjacent scanning position, calculating the arrival time difference and peak amplitude ratio of each candidate trajectory between adjacent scanning positions to obtain the joint deviation of each candidate trajectory; with the goal of minimizing the joint deviation, assigning each candidate trajectory to the corresponding continuous trajectory branch to complete the cross-unwrapping of multiple trajectories; retaining trajectory branches with a trajectory length not less than a preset minimum number of consecutive frames to correct the effective diffraction peaks.

[0017] In the above embodiments, when there are more than two candidate trajectories, the defect detection system obtains the joint deviation by calculating the ratio of the arrival time difference of each candidate trajectory to the peak amplitude. With the goal of minimizing the joint deviation, the system completes the multi-trajectory cross-untangling and retains trajectory branches of a specified length, thus eliminating trajectory misjudgment caused by intersection interference.

[0018] In conjunction with some embodiments of the first aspect, in some embodiments, after assigning each candidate trajectory to the corresponding continuous trajectory branch with the goal of minimizing the joint deviation and completing the cross-untangling of multiple trajectories, the method further includes: determining the arrival time series of each trajectory branch within a preset number of frames before and after the cross region; calculating the fitting residual between each arrival time series and the theoretical parabolic trajectory derived from the ultrasonic propagation geometric model; re-releasing the peaks in the cross region of the trajectory branches with fitting residuals greater than a preset residual threshold as candidate peaks, and performing continuity matching with the extension trend of the remaining trajectory branches as constraints to correct the effective diffraction peaks.

[0019] In the above embodiments, the defect detection system calculates the fitting residual between the arrival time series before and after the intersection region and the theoretical parabolic trajectory, releases the peak of the intersection region where the fitting residual is greater than the residual threshold, and rematches it according to the remaining extension trend, thereby eliminating the erroneous assignment in the intersection untangling stage and improving the trajectory recognition accuracy.

[0020] In a second aspect, embodiments of this application provide a defect detection system, which includes: one or more processors and a memory; the memory is coupled to the one or more processors, and the memory is used to store computer program code, which includes computer instructions, and the one or more processors call the computer instructions to cause the defect detection system to perform the method described in the first aspect and any possible implementation thereof.

[0021] Thirdly, embodiments of this application provide a computer-readable storage medium including instructions that, when executed on a defect detection system, cause the defect detection system to perform the method described in the first aspect and any possible implementation thereof.

[0022] Fourthly, embodiments of this application provide a computer program product containing instructions that, when the computer program product is run on a defect detection system, cause the defect detection system to perform the method described in the first aspect and any possible implementation thereof.

[0023] Understandably, the defect detection system provided in the second aspect, the computer storage medium provided in the third aspect, and the computer program product provided in the fourth aspect are all used to execute the methods provided in the embodiments of this application. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods, and will not be repeated here.

[0024] One or more technical solutions provided in the embodiments of this application have at least the following technical effects or advantages:

[0025] 1. By adopting the technique of determining the geometric deviation constraint based on the ultrasonic propagation geometric model and probe spacing, and performing continuous matching and screening of candidate peaks based on the constraint and arrival time set, the interference of random scattering noise during single-channel isolated extraction is eliminated. This effectively solves the problem of random noise misjudgment that is easy to generate when extracting peaks one channel at a time in the existing technology, and thus realizes the high-precision quantitative calculation of the depth and height of weld defect endpoints.

[0026] 2. By employing a technique that compares the peak amplitude ratio of effective diffraction peaks between adjacent scanning positions with the theoretical amplitude attenuation range, abnormal peaks can be eliminated based on the physical characteristic that ultrasonic diffraction waves attenuate as the offset increases. This effectively solves the problem of difficulty in distinguishing pseudo-defect echoes with abnormal amplitude in existing technologies, thereby achieving highly reliable correction of the effective diffraction peak trajectory.

[0027] 3. By employing the technique of acquiring the arrival time of multiple bottom-reflected waves to obtain the uncertainty range of sound velocity parameters and substituting it into the geometric model to construct the arrival time variation limit, it can adaptively compensate for the sound path error caused by local sound velocity changes during the detection process. This effectively solves the problem of trajectory geometric constraint failure caused by fixed sound velocity in existing technologies, and thus achieves efficient positioning and matching of effective diffraction waves between adjacent scanning positions under variable sound velocity conditions. Attached Figure Description

[0028] Figure 1 This is a schematic diagram of the topology of a defect detection system in an embodiment of this application;

[0029] Figure 2 This is a flowchart illustrating a weld defect detection method based on TOFD diffraction imaging in an embodiment of this application.

[0030] Figure 3 This is another schematic flowchart of the weld defect detection method based on TOFD diffraction imaging in the embodiments of this application;

[0031] Figure 4 This is a schematic diagram of the physical device structure of a defect detection system in the embodiments of this application. Detailed Implementation

[0032] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be a limitation of this application.

[0033] In the implementation scenario of this application, given the complexity of weld inspection in pressure equipment, the defect detection system needs to perform in-depth analysis of the acquired ultrasonic signals.

[0034] The ultrasonic probe spacing is not arbitrarily set, but is determined based on the thickness of the weld being inspected and the probe refraction angle. In the embodiment of this application, the transmitting probe and the receiving probe are symmetrically arranged on both sides of the weld centerline, and the line connecting the centers of the two probes is perpendicular to the weld centerline. The probe spacing PCS = 2 × H × tanθ, where H is the thickness of the weld being inspected and θ is the probe refraction angle.

[0035] In the embodiments of this application, the symbol v uniformly represents the longitudinal wave velocity in the workpiece, that is, the propagation speed of the ultrasonic longitudinal wave in the weld metal material being tested. The v used in subsequent calculations involving the sampling window termination time, the arrival time of the direct wave theory, the defect depth calculation equation, and the back calculation of the bottom surface reflected wave velocity all refer to the same physical quantity. Its nominal value is determined according to the workpiece material. For carbon steel welds, it is usually taken as about 5900 m / s, and for austenitic stainless steel welds, it is usually taken as about 5700 m / s.

[0036] Since the defect depth calculation equation is based on the geometric premise that the transmitting and receiving probes are symmetrical about the weld center, the value of PCS must match this symmetry and the weld thickness: on the one hand, PCS increases with the weld thickness to ensure that the sound beam covers the entire thickness of the weld cross-section; on the other hand, the symmetrical arrangement ensures the total sound path from the transmitting probe through the defect endpoint to the receiving probe, which can be expressed as L=2 according to the symmetrical geometric relationship on both sides. Where d is the vertical distance from the endpoint to the workpiece surface. Taking a specific working condition as an example, assuming the weld thickness is 30mm and the probe refraction angle is 60°, the probe spacing PCS = 2 × 30 × tan60° ≈ 104mm. The probes are symmetrically arranged on both sides of the weld at this spacing, ensuring the symmetrical geometric relationship upon which the depth equation depends holds. This also allows the sound beam to cover the entire cross-sectional depth range of the weld of this thickness, providing consistent sound path conditions for receiving diffracted waves from defects of different depths. If the probe spacing does not match the weld thickness and refraction angle, the symmetry premise in the depth equation is broken, and the calculated endpoint depth will produce a systematic deviation.

[0037] To ensure that subsequent envelope extraction and peak identification are based on complete and untrunculated received data, the signal acquisition organizes ultrasonic excitation and reception processing as follows: The ultrasonic transmitting circuit generates a high-voltage narrow pulse excitation signal, which is amplified and applied to the piezoelectric crystal of the transmitting probe. Under pulse excitation, the piezoelectric crystal generates broadband ultrasonic vibration and excites ultrasonic waves.

[0038] The piezoelectric crystal is made of piezoelectric ceramic material, and its thickness D is determined according to the system operating frequency f, satisfying the half-wavelength resonance relationship D = ,in The longitudinal wave velocity in piezoelectric wafer material. Using an operating frequency f=5MHz, the longitudinal wave velocity of piezoelectric ceramic... Taking a speed of 4000 m / s as an example, the wafer thickness is:

[0039] D=4000 / (2×5×10^6)=0.0004m=0.4mm. This thickness allows the wafer to operate in its fundamental frequency resonant mode, converting electrical energy into ultrasonic mechanical vibration energy with maximum efficiency.

[0040] The backing layer inside the transmitting probe is made of a composite sound-absorbing material with acoustic impedance matching that of the wafer. It is used to absorb sound waves propagating toward the back of the wafer, compressing the reverberation time to within one working cycle and preventing back-reflected waves from being superimposed on subsequent transmitting pulses and reducing axial resolution.

[0041] The excitation signal uses a high-voltage narrow pulse waveform, with the pulse width set to 0.5 to 1 times the period corresponding to the working frequency. That is, for a working frequency of 5MHz, the pulse width is 100ns to 200ns. The pulse voltage amplitude is amplified by a power amplifier to a range of 200V to 400V to excite ultrasonic waves with sufficient energy and bandwidth in a wider frequency range, thereby ensuring both the receiving sensitivity and time resolution of the diffraction wave signal.

[0042] The ultrasonic wave, generated by the piezoelectric crystal, propagates longitudinally within the wedge. Upon reaching the interface between the wedge's bottom surface and the workpiece surface, it refracts and enters the workpiece. The wedge is made of a solid material with an acoustic impedance between that of air and the workpiece. An ultrasonic coupling agent is uniformly coated between its bottom surface and the workpiece surface to eliminate air gaps and ensure effective transmission of ultrasonic energy from the wedge to the workpiece. The wedge's inclined angle α is determined based on the probe's refraction angle θ and the material's sound velocity ratio according to Snell's law. = ,in The longitudinal wave velocity in the wedge. Let be the longitudinal wave velocity in the workpiece. Taking a specific working condition as an example, if the required refraction angle θ = 60°, the longitudinal wave velocity of the wedge material is... =2730m / s, longitudinal wave velocity of the workpiece steel =5900m / s, then the angle of the wedge's inclined plane can be calculated by Snell's law:

[0043] α=arcsin( × =arcsin(2730×sin60° / 5900)≈23.5°. This angle ensures that the ultrasonic wave, after being refracted by the wedge, enters the workpiece at a set refraction angle of 60°. The formula for the distance between the probe and the sensor is:

[0044] The refraction angle parameter upon which PCS=2×H×tanθ depends is matched, thus enabling the sound beam to cover the full thickness range of the weld section along a preset path.

[0045] The received signal is pre-amplified and bandpass filtered before being digitized by an analog-to-digital converter. The sampling frequency is set to more than ten times the operating frequency to ensure accurate waveform reconstruction.

[0046] The sampling time window starts at the excitation pulse emission time and ends at T = 2 × 10⁻⁶. +Δt setting, where H is the thickness of the weld being inspected, v is the sound velocity of the workpiece, and Δt is the time margin; since this termination time is determined by adding the margin to the total propagation time of the ultrasonic wave from the workpiece surface to the bottom surface and then reflected back to the surface, it can completely cover the arrival times of the direct wave, the defect diffraction wave, and the bottom surface reflected wave.

[0047] Taking a specific working condition as an example, assuming the weld thickness H = 30 mm and the sound velocity v = 5900 m / s, the propagation time for twice the thickness is approximately 10.17 μs. Therefore, the sampling window termination time is taken as 10.17 μs plus a time margin of approximately 1 μs, which equals approximately 11.2 μs. This ensures that the bottom-reflected wave falls completely within the sampling window, providing a complete and reliable data foundation for subsequent sound velocity calibration and statistical dispersion calculation based on the arrival time of the bottom-reflected wave. If the sampling window termination time is earlier than the arrival time of the bottom-reflected wave, the bottom wave data will be missing, and subsequent sound velocity correction and uncertainty assessment cannot be carried out.

[0048] The probe performs continuous scanning along the weld seam to collect a sequence of multiple ultrasonic echo signals. Due to the high-frequency oscillation characteristics, it is difficult to directly extract extreme values. The defect detection system uses Hilbert transform to map these signals into an envelope signal sequence that only reflects energy fluctuations, providing a smooth benchmark for subsequent processing.

[0049] The Hilbert transform is further explained here. The Hilbert transform is a linear operation used to construct analytic signals from real-valued signals and then extract their instantaneous amplitude and phase. Applying the Hilbert transform to a real-valued signal s(t) yields ŝ(t), which is equivalent to laging the phase of each frequency component in s(t) by 90° (for positive frequencies), thus constructing the analytic signal s(t) + j·ŝ(t). The instantaneous amplitude, or envelope, of this analytic signal is formed by... The method is given. Compared to directly detecting extrema from the original oscillation waveform, the envelope sequence eliminates the interference of the drastic flipping of the carrier phase within the pulse period on the extrema determination, so that the same diffraction event presents only a single peak profile within the main lobe range, thus laying a smooth and single-peak input foundation for the stable extraction and continuity matching of subsequent candidate peaks.

[0050] The candidate peak time points extracted from the envelope signal are often mixed with random scattering noise. Therefore, it is necessary to combine the ultrasonic probe spacing set in the actual detection equipment with the ultrasonic propagation geometric model that describes the propagation path of the sound wave in the medium to derive the set of arrival times corresponding to the sound speed and position.

[0051] Based on this, the defect detection system applies geometric deviation constraints by limiting the spatial offset range of adjacent diffraction peaks, connects the peaks that meet the constraints into continuous candidate trajectories, eliminates isolated noise points, and obtains effective diffraction peaks.

[0052] For example, in actual working conditions, the inhomogeneity of the weld material can cause changes in sound velocity. The arrival time set can be adaptively adjusted by relying on the local statistical dispersion extracted from the bottom reflected wave. Similarly, by utilizing the physical property that the energy of diffracted waves decays with offset, a theoretical amplitude attenuation interval constraint amplitude ratio is constructed. For waveform overlap in areas with dense defects, the defect detection system completes cross-untangling through a joint deviation index, separating the mixed trajectories and ensuring the accuracy of the final quantitative calculation of defects.

[0053] Please see Figure 1 This is a schematic diagram of a topology architecture of the defect detection system in an embodiment of this application; Figure 1 The diagram shows the ultrasonic excitation module, signal acquisition module, signal processing module, and imaging analysis module included in the defect detection system.

[0054] The ultrasonic excitation module generates ultrasonic signals and transmits them to the weld area. Internally, it includes a pulse generator, a power amplifier, and a transmitting probe. The signal acquisition module captures the ultrasonic waves returning from the weld area and converts them into digital signals. Internally, it includes a receiving probe, a preamplifier, a bandpass filter, and an analog-to-digital converter. The signal processing module receives the digital signal sequence output from the signal acquisition module and performs processing operations such as Hilbert transform, candidate peak extraction, continuity matching screening, and defect depth calculation. Internally, it includes a digital signal processor, a data storage unit, and a wavelet transform coprocessor. The imaging analysis module performs defect scanning imaging and quantitative analysis based on the signal processing results. Internally, it includes an image processing unit, a display unit, and a data output interface.

[0055] Based on the above system architecture, in actual weld inspection, the extraction of a single isolated peak can easily misjudge random scattering noise as defect diffraction waves, leading to an increase in the system's false detection rate. This embodiment proposes a weld defect detection method based on TOFD diffraction imaging to ensure accurate calculation of the depth and height of the defect endpoint.

[0056] The method provided in this embodiment is described in detail below. Please refer to [link / reference]. Figure 2 This is a flowchart illustrating a weld defect detection method based on TOFD diffraction imaging in an embodiment of this application.

[0057] S201. Acquire the multi-channel ultrasonic echo signal sequence collected by the probe continuously scanning along the weld seam, and perform Hilbert transform processing on each ultrasonic echo signal sequence to obtain the envelope signal sequence.

[0058] Among them, the ultrasonic echo signal sequence represents the radio frequency voltage data that the receiving probe records over time at each scanning position; the envelope signal sequence is used to represent the low-frequency sequence data that retains only the energy fluctuation profile after removing the carrier high-frequency oscillation.

[0059] Specifically, as the probe slides continuously across the surface of a pipeline or container weld, the defect detection system receives ultrasonic waves returned due to differences in the acoustic impedance of the materials. To remove the interference of drastic phase reversals in the ultrasonic echo signal sequence on extremum extraction, the defect detection system, based on orthogonal transform theory, constructs an analytic signal from the original signal and calculates the magnitude of the analytic signal, generating a smooth envelope signal sequence. This process converts the bipolar radio frequency signal into a unipolar energy envelope, making subsequent peak extraction more stable.

[0060] S202. In the envelope signal sequence at each scanning position, search for the local maximum value where the envelope amplitude is greater than the preset amplitude threshold, and extract the candidate peak time point corresponding to each scanning position.

[0061] Specifically, after envelope extraction, the defect detection system performs feature point detection on the envelope signal sequence acquired at the current scanning location. The system compares the envelope amplitude point by point in chronological order. When an envelope amplitude greater than a preset amplitude threshold is detected and is at its highest among the preceding and following sampling points, it is identified as a suspected diffraction wave response point, and the exact occurrence time is recorded, forming a candidate peak time point. This process aims to eliminate most of the low-amplitude background noise, compressing the massive one-dimensional signal into a few characteristic time points representing concentrated energy.

[0062] The preset amplitude threshold is determined based on a statistical estimate of the noise floor level of the envelope signal sequence at the current scanning position, rather than a fixed absolute amplitude value. The defect detection system first removes the corresponding segments of the direct wave time window and the bottom reflection wave time window from the envelope signal sequence at the current scanning position, then calculates the median of all envelope amplitude values ​​from the remaining segments. And the median absolute deviation (MAD), from which the standard deviation of the noise floor is estimated. =MAD / 0.6745; then set the preset amplitude threshold to a multiple of the noise floor, i.e. = +n× The threshold is denoted by n, which is a preset magnification factor, typically n = 3 to 6, to ensure that pure noise peaks are excluded with a probability of over 95% while not missing weaker real diffraction wave responses. This threshold dynamically changes with different scanning positions, adaptively reflecting the differences in noise levels at each position, thus avoiding missed or false detections caused by a fixed threshold when the noise level is uneven.

[0063] To further overcome the problem that a single diffraction event can form multiple adjacent local maxima in the envelope sequence, thereby creating redundant paths in subsequent continuous matching, in some embodiments, the defect detection system will slide a sliding window of a preset width on the envelope signal sequence to search and extract the local maximum values ​​of the envelope amplitude that are greater than the preset amplitude threshold as the initial screening peaks; calculate the time interval between adjacent initial screening peaks, and merge adjacent initial screening peaks whose time interval is less than the minimum resolvable time of the system to obtain the candidate peak time points corresponding to each scanning position.

[0064] Among them, the initial screening peak represents the local maximum point that meets the amplitude condition obtained through sliding window search.

[0065] Specifically, since ultrasound pulses have a finite time width, a single diffraction event may form a peak-shaped waveform in the envelope sequence that covers multiple sampling points on the main lobe. When the sampling rate is high, multiple local maxima with similar amplitudes may appear within the main lobe range. If these adjacent local maxima are taken as independent candidate peaks, it will lead to redundant paths in subsequent continuity matching.

[0066] The defect detection system slides a window of preset width across the envelope signal sequence, searching for the maximum value of the envelope amplitude within each window position and determining whether it exceeds a preset amplitude threshold. Local maximum values ​​that meet the condition are extracted as initial screening peaks, and their corresponding time coordinates are recorded. After all initial screening peaks at the same scanning position are extracted, the defect detection system arranges the initial screening peaks in chronological order, calculates the time interval between adjacent initial screening peaks pairwise, and marks adjacent initial screening peaks with time intervals less than the system's minimum resolvable time as the same merging group. Within each merging group, the time coordinate of the initial screening peak with the largest envelope amplitude is taken as the merged candidate peak time point, so that each signal retains only the candidate peak time point corresponding to an independent potential diffraction event.

[0067] S203. Based on the ultrasonic probe spacing and ultrasonic wave propagation geometric model, determine the set of arrival times of effective diffracted waves between adjacent scanning positions and the geometric deviation constraint of the entire candidate trajectory.

[0068] Among them, the ultrasonic propagation geometric model refers to the mathematical relationship between the propagation path and time of sound waves in the weld, which is constructed based on the principle of shortest sound path and symmetrical sound path geometric relationship.

[0069] Specifically, to address the problem of determining the authenticity of wave peaks in isolated extractions, the defect detection system combines probe mechanical arrangement parameters with acoustic field physical characteristics to construct a priori boundaries for trajectory selection. The system calculates the theoretical sound path at different depths based on the ultrasonic probe spacing and substitutes this with the sound velocity to obtain the theoretical arrival time, thus defining a set of arrival times. Simultaneously, as the probe moves continuously, the relative spatial position of the defect endpoint and the probe exhibits a hyperbolic change, and the sound path difference between adjacent positions is strictly limited by the probe's movement step size. Based on this, the defect detection system sets a geometric deviation constraint. This constraint can distinguish wave peak changes that conform to the physical propagation laws of sound waves, rejecting random noise without any discernible pattern.

[0070] Since the defect depth is not yet determined during the matching phase, the construction of the arrival time set requires traversing the possible depth range to obtain the limit value of the time variation. The defect detection system performs discrete sampling on the depth range from the minimum detectable depth dmin near the surface to the full thickness H of the workpiece. For each sampling depth d, the upper limit value of the sound velocity v̄+U and the lower limit value of the sound velocity v̄-U are substituted into the arrival time formula:

[0071] T(x,d,v)=2× / v, calculate the arrival time difference between the current scan position and the next scan position (interval ΔX), and take the minimum value of this time difference among all combinations of depth and sound speed as Δ. The maximum value is Δ , by [Δ ,Δ This constitutes the allowable range of arrival time variation between adjacent locations, i.e., the arrival time set.

[0072] To further suppress the interference of aliased broadband random noise and strong amplitude through-waves on peak extraction in the original ultrasonic echo signal, in some embodiments, before performing Hilbert transform processing on the ultrasonic echo signal sequence, the defect detection system performs wavelet decomposition on each ultrasonic echo signal sequence, shrinks the high-frequency detail coefficients based on adaptive soft thresholding, and performs wavelet reconstruction to obtain a denoised signal sequence; a through-wave time window is set according to the ultrasonic probe spacing and the sound velocity of the workpiece, and through-wave signals falling within the through-wave time window are removed from the denoised signal sequence to obtain the target signal sequence, and the Hilbert transform processing is performed on the target signal sequence to obtain the envelope signal sequence.

[0073] Among them, the adaptive soft threshold represents the shrinkage critical value dynamically determined based on the statistical distribution characteristics of the detail coefficients of each layer; the through wave time window represents the time interval that expands to both sides centered on the theoretical arrival time of the through wave on the probe surface.

[0074] Specifically, if envelope extraction is performed directly on the original signal, high-frequency noise components will form false peaks in the envelope sequence, and the high-amplitude envelope of the through wave will also mask the nearby weak diffraction wave signal. The defect detection system performs multi-level wavelet decomposition on each ultrasonic echo signal sequence, selects wavelet basis functions suitable for the ultrasonic frequency band, calculates an adaptive soft threshold based on the median absolute deviation of the detail coefficients of each level, sets coefficients with absolute values ​​less than the threshold to zero, and shrinks coefficients with absolute values ​​greater than the threshold towards zero.

[0075] The calculation method for adaptive soft thresholding is further explained here. After performing multi-level discrete wavelet transform on the signal sequence, the approximation coefficients of each level are obtained. and detail coefficient The highest-level approximation coefficients correspond to the low-frequency components of the signal, while the detail coefficients of each layer correspond to the high-frequency components at different scales. For the j-th layer detail coefficients... First, the noise standard deviation of this layer is estimated using the median absolute deviation method. ,Right now =Median(| |) / 0.6745, where Median represents the operation of taking the median of the sequence, and 0.6745 is the conversion factor between the median absolute deviation and the standard deviation under the standard normal distribution. Then, the adaptive threshold for this layer is calculated according to the general threshold formula. = × ,in Let c be the length of the coefficients in the j-th layer. Apply a soft thresholding function to the detail coefficients of this layer, i.e., perform the operation sgn(c)×max(|c|-) on each coefficient c. ,0): Absolute value less than The coefficient is set directly to zero, and the absolute value is greater than 0. The coefficients retain their sign and direction, and their absolute values ​​are subtracted. .

[0076] Because the noise levels are different in each layer, the threshold calculated for each layer is different. The approach differs, achieving differentiated noise reduction across different frequency bands. Specifically, the high-frequency detail layer has a large noise content, resulting in a higher threshold relative to the signal amplitude and greater noise reduction. The low-frequency detail layer may contain useful high-frequency edge information from the diffracted wave, leading to a relatively lower threshold and less noise reduction. This approach preserves the waveform characteristics of the diffracted wave while suppressing noise. The choice of wavelet basis function should match the waveform characteristics of the ultrasonic diffracted wave; that is, a symmetrically compactly supported wavelet with a shape similar to the main lobe of the ultrasonic pulse in the time domain should be selected to achieve the best time-frequency localization effect.

[0077] Subsequently, the defect detection system can perform wavelet reconstruction using the shrunken detail coefficients and the retained approximation coefficients to obtain a denoised signal sequence. Then, based on the ultrasonic probe spacing and the workpiece's nominal sound velocity, the theoretical arrival time of the through-wave is calculated. A preset protection margin is then extended outwards from this center to form a through-wave time window. The amplitude values ​​of sampling points falling within this time window in the denoised signal sequence are set to zero, resulting in a target signal sequence dominated by defect diffraction waves. A Hilbert transform is then performed on the target signal sequence, ensuring that subsequent peak extraction is based on input data with a high signal-to-noise ratio and no through-wave obstruction. Through-wave removal uses amplitude zeroing instead of signal subtraction to avoid introducing residual interference due to reference waveform template failure caused by changes in coupling state during scanning. Before wavelet decomposition, DC offset correction can be performed on the average amplitude of the initial blank segment of each signal sequence to eliminate the influence of the analog-to-digital converter's inherent bias on subsequent processing.

[0078] S204. Based on the arrival time set, perform continuous matching of candidate peak time points between each scanning location to determine continuous candidate trajectories that can establish continuous relationships with adjacent scanning locations.

[0079] Specifically, after establishing reasonable constraints, the defect detection system tracks isolated feature points within the entire scan dataset. Starting from the candidate peak time point of the previous scan location, the system searches for peaks that meet the conditions within the arrival time set of the next scan location. If the matched time difference is within a reasonable range, the two are connected. This process continues along the entire scan dimension, linking discrete candidate peak time points into continuous candidate trajectories. In this spatiotemporal two-dimensional matrix, structured lines are extracted using the smooth evolution characteristics of adjacent frames, providing trajectory data support for locating defect endpoints.

[0080] The continuity matching in step S204 specifically includes: the defect detection system arranging all scanned positions i=1,2,...,N according to the scanning direction, and letting the set of candidate peak time points at the i-th scanned position be { , ,..., },in This represents the number of candidate peaks at that location. For each candidate peak time point at the first scan location i=1... (k=1,2,..., Initialize a candidate trajectory of length 1 for each position. Then, starting from the second scanning position, advance position by position, and for each candidate peak time point at the current scanning position i... (j=1,2,..., ), at all candidate peak time points of the previous scan position i-1 (m=1,2,..., The search query finds matching objects that satisfy the arrival time set constraint, specifically based on the time difference Δt = . - Determine whether the time difference falls within the allowable range of arrival time variation between adjacent positions determined in step S203 [Δ]. ,Δ If it falls within [the specified range], then it is considered that a continuous relationship can be established between the two. Attached to The candidate trajectory at the end then forms an extension. When When multiple candidate peaks at the previous position satisfy the above constraints, the defect detection system substitutes the current depth of the trajectory corresponding to each candidate precursor peak m into the ultrasonic propagation geometric model to calculate the theoretical arrival time change Δ between their respective adjacent positions. (m), and choose to make |Δt-Δ The preceding peak with the smallest (m) is selected as the optimal match to ensure that the trajectory extends in the direction closest to the theoretical parabolic trend. If a candidate peak at the current position cannot find any matching object that satisfies the allowed interval at the previous position, an independent candidate trajectory is created starting from that peak. This process is continued position by position until the last scan position N. All candidate trajectories with a length greater than 1 are considered continuous candidate trajectories. Isolated points with a length of only 1 do not constitute a trajectory and are discarded directly.

[0081] S205. Based on the geometric deviation constraint, the continuous candidate trajectory is screened, and the continuous candidate trajectory that does not meet the geometric deviation constraint is eliminated to obtain the effective diffraction peak.

[0082] Specifically, after initially generating numerous consecutive candidate trajectories, the defect detection system needs to conduct a rigorous macroscopic morphological review. The system retrieves the previously constructed geometric deviation constraints to examine the global shape of each consecutive candidate trajectory. The diffraction echoes of real defects exhibit a smooth parabolic or hyperbolic shape on the scanning plane, while trajectories coincidentally formed by material structure noise show high-frequency oscillations or abnormal slopes. The defect detection system calculates the curvature and deviation of each point on the trajectory, eliminating random connections whose overall shape does not meet the geometric deviation constraints, and retaining only effective diffraction peaks that conform to physical scattering characteristics.

[0083] S206. Taking the candidate peak time point corresponding to the effective diffraction peak as the center, extract a local time window, and use the envelope amplitude value of each sampling point within the local time window as the weight to perform a weighted average calculation on the time coordinate to obtain the target arrival time of the effective diffraction peak.

[0084] Specifically, due to the discreteness of digital sampling, the candidate peak time points extracted in step S202 are limited to a fixed sampling grid, failing to accurately reflect the true physical arrival time. To obtain a more accurate basis for depth calculation, the defect detection system extends several sampling points to both sides of the effective diffraction peak to extract a local time window. The defect detection system extracts all envelope amplitude values ​​within the local time window and calculates the centroid of each corresponding time coordinate using the envelope amplitude value as a weight. This process utilizes the symmetry of the waveform energy envelope to calculate the sub-pixel level high-precision target arrival time, reducing the quantization error caused by the limited sampling rate.

[0085] The half-width of the local time window is taken as half the width of the main lobe of the ultrasound pulse, which is equal to 1 to 1.5 times the period corresponding to the working frequency (for example, for a 5MHz working frequency, the pulse main lobe width is about 200ns to 300ns, the half-width of the local time window is taken as 150ns, and the total width is about 300ns). This value ensures that the window can completely contain the energy distribution range of the diffraction wave main lobe without including interference from adjacent waveforms. Let there be P sampling points in the local time window, and the time coordinate of each sampling point is { , ,..., }, the corresponding envelope amplitude value is { , ,..., The target arrival time is then calculated using the weighted average formula as follows: = That is, the weighted center of gravity is calculated by using the envelope amplitude value of each sampling point as the weight of its time coordinate. Since the energy distribution of the main lobe of the envelope is approximately symmetrical and the amplitude at the peak is much greater than that on both sides, the weighted center of gravity is naturally attracted to the vicinity of the true peak position. Its accuracy can break through the limitation of the sampling interval and reach the sub-sampling level.

[0086] S207. Substitute the target arrival time into the defect depth calculation equation, and combine the geometric consistency of the trajectories corresponding to each effective diffraction wave peak to distinguish between the upper and lower endpoint diffraction waves, and calculate the endpoint depth and height of the weld defect.

[0087] Specifically, after obtaining the highly accurate target arrival time, the defect detection system performs spatial quantification. The system substitutes the target arrival time into a nonlinear defect depth calculation equation based on sound path, probe spacing, and sound velocity. A defect with height typically generates diffraction waves at its upper and lower endpoints. By comparing the time sequence and geometric consistency of multiple trajectories appearing at the same scanning location, the system identifies the earlier, out-of-phase trajectory as the upper endpoint and the later trajectory as the lower endpoint. The system calculates the depth at each endpoint, and the difference between the two depths yields the height of the weld defect.

[0088] In TOFD detection, the diffracted waves from the upper and lower ends of the defect have a fixed phase polarity relationship relative to the incident longitudinal wave pulse: the polarity of the first half-wave of the upper end diffracted wave is opposite to that of the first half-wave of the direct wave (i.e., a 180° phase reversal), while the polarity of the first half-wave of the lower end diffracted wave is the same as that of the direct wave. After determining the target arrival time of the effective diffracted wave peak, the defect detection system traces back to the original radio frequency signal corresponding to that time point (i.e., the ultrasonic echo signal before the Hilbert transform), extracts the radio frequency waveform within half a working cycle before and after the target arrival time, detects the polarity direction of the half-wave before the first zero-crossing point in this waveform segment, and compares it with the known polarity of the first half-wave of the direct wave: if the polarities are opposite, the diffracted wave is determined to originate from the upper end of the defect; if the polarities are the same, the diffracted wave is determined to originate from the lower end of the defect. This phase polarity criterion is used in conjunction with the arrival time criterion and the trajectory vertex alignment criterion; all three must be satisfied simultaneously to ultimately determine that the two trajectories belong to the upper and lower ends of the same defect, respectively.

[0089] Specifically, in the TOFD symmetrical probe arrangement configuration, the transmitting probe and the receiving probe are located on both sides of the weld centerline, each at a distance from the centerline. The horizontal distance is such that the defect endpoint is located at a depth d directly below the weld centerline. The ultrasonic wave originates from the transmitting probe and propagates within the workpiece at a longitudinal wave velocity v to the defect endpoint, then diffracts to the receiving probe. The total sound path is equal to the sum of the distance from the transmitting probe to the defect endpoint and the distance from the defect endpoint to the receiving probe. Due to symmetry, these two distances are equal, therefore the total sound path L = 2. The corresponding arrival time is T = L / v = 2 / v. The arrival time expression is inversely solved by multiplying both sides by v and then dividing by 2 to obtain the result. =v× Squaring both sides, we get: + = This leads to the explicit equation for calculating the depth of the defect endpoint, d= Where T is the target arrival time, v is the measured longitudinal wave velocity (corrected for bottom reflection), and PCS is the ultrasonic probe spacing. When the same defect has two diffraction wave trajectories at its upper and lower endpoints, the target arrival time at the upper endpoint is respectively... and arrival time of the lower endpoint target Substituting into the above formula, we can calculate the depth of the upper endpoint. = and lower endpoint depth = The defect itself has a height h = - .

[0090] Taking a certain working condition as an example, let v = 5882 m / s, PCS = 100 mm, and the arrival time of the upper target be... =17.16μs, substituting into the equation, we get:

[0091] = ≈0.00687m≈6.87mm, which shows that the equation is highly sensitive to both the speed of sound and the time of arrival, confirming the necessity of the speed of sound correction.

[0092] To translate the determination of the above-mentioned temporal sequence and geometric consistency into specific executable criteria, this embodiment specifies the following consistency conditions for the diffraction wave trajectories of the upper and lower endpoints belonging to the same defect.

[0093] First, the arrival time difference between the two trajectories at all valid scanning positions should remain stable. That is, for each scanning position, the arrival time difference between the upper and lower endpoint trajectories should be calculated separately, and the fluctuation range of the resulting difference sequence should not exceed the preset tolerance. The preset tolerance The uncertainty range of the sound velocity parameter is converted to the time domain and then multiplied by a preset safety factor. If the difference sequence shows a jump exceeding the tolerance, it indicates that the two trajectories are not generated by the two endpoints of the same defect and should be judged to belong to different defects.

[0094] Secondly, the locations where the minimum arrival times of the two trajectories occur (i.e., the scanning locations corresponding to the vertices of the trajectories) should be aligned with each other, and their lateral coordinate deviation should not exceed one scanning step interval. This is because the upper and lower endpoints of the same defect are located on the same vertical line, and the locations where the diffracted waves of the two trajectories achieve the minimum arrival times in the scanning direction must coincide directly above the defect.

[0095] Third, under the premise of satisfying the above two conditions, the arrival times of the two trajectories at the same scanning position are compared. The one with the shorter arrival time corresponds to the upper endpoint of the defect, and the one with the longer arrival time corresponds to the lower endpoint of the defect.

[0096] Taking a specific working condition as an example, suppose the depth of the upper end of a defect is 8mm, the depth of the lower end is 16mm, the probe spacing is 100mm, and the sound velocity is 5900m / s. Then, at the scanning position directly above the defect (where the current probe center and the defect are on the same vertical line), the arrival time of the diffracted wave at the upper end is approximately 17.16μs, and at the lower end it is approximately 17.80μs, with a difference of approximately 0.64μs. When the probe deviates 20mm from directly above the defect along the scanning direction, according to the ultrasonic propagation geometry model, the sound path from the transmitting probe to the defect end and from the defect end to the receiving probe are calculated separately. The arrival time of the diffracted wave at the upper end is approximately 17.82μs, and at the lower end it is approximately 18.44μs, with a difference of approximately 0.62μs. It can be seen that the arrival time difference between the two trajectories remains approximately constant during the scanning process, and the arrival time of the upper end trajectory is always less than that of the lower end trajectory, which meets the consistency criterion. Based on this, the attribution of the upper and lower ends can be determined.

[0097] Finally, the defect detection system outputs and stores the upper and lower endpoint depths of the defect, its height, and the corresponding measurement uncertainty. This allows subsequent defect level determination and quality assessment to be conducted under the premise of known error limits. Based on this, it can be determined whether the measurement results meet the required confidence level, thus providing a complete quantitative basis including error quantification for weld quality grading and acceptance.

[0098] In addition, it should be noted that due to the quantization error in digital sampling, although the centroid method has sub-sampling accuracy, it is still affected by the jitter at the sampling time. At the same time, the probe spacing itself has engineering measurement errors. The above errors will be transmitted to the final depth and height results through the defect depth calculation equation.

[0099] Based on the error propagation principle, let the measurement error of arrival time be δt, and the measurement error of probe spacing be δPCS. The arrival time error δt is determined by both the sampling time interval and the sub-sampling accuracy achieved by the centroid method, and can be specifically taken as a certain proportion of the sampling time interval (e.g., 0.2 times the sampling interval). The probe spacing error δPCS is determined by the engineering measurement accuracy of the probe spacing and is related to the accuracy class of the measuring instrument used. Therefore, the measurement uncertainty of defect depth is expressed by the formula σd = Calculation, where and These are the partial derivatives of the defect depth with respect to arrival time and probe spacing, respectively, obtained by taking the partial derivatives of the defect depth calculation equation with respect to arrival time and probe spacing; the measurement uncertainty of the defect height is expressed as σh = The calculated defect height in this project is obtained by subtracting the depths of the upper and lower endpoints. Therefore, its uncertainty, according to the error propagation law, is the superposition of the depth errors of the lower and upper endpoints in the same direction. Since the two errors are independent and have the same distribution, when each component is σd, the combined standard deviation is... = σd, that is, the combined uncertainty is equal to the single-endpoint depth uncertainty. The dimensions of σh are times and Both are consistent, and both are in the unit of length (mm).

[0100] Taking a specific working condition as an example, assuming a sampling time interval of 0.02 μs, the centroid method can achieve a subsampling accuracy of 0.2 times the sampling interval. Taking the arrival time error δt≈0.004 μs and the probe spacing PCS≈100 mm, its engineering measurement error δPCS≈0.5 mm; at a depth of approximately 15 mm, the derivative of the depth equation can be obtained... Approximately 10.3 mm / μs, Approximately 1.67, substituting into the error propagation formula yields the measurement uncertainty of depth:

[0101] σd≈ The value is approximately 0.84 mm, which corresponds to a height measurement uncertainty of approximately 1.18 mm.

[0102] In performing the above Figure 2 In the method of the illustrated embodiment, the sound velocity fluctuates due to the microscopic non-uniformity of the weld material, and complex defects are prone to generating false echoes. Relying solely on fixed spatiotemporal parameters often makes it difficult to achieve accurate trajectory selection. Therefore, this embodiment introduces sound velocity uncertainty analysis and diffraction wave amplitude attenuation characteristic analysis to improve the system's detection robustness in complex environments.

[0103] The method provided in this embodiment will now be described in more detail. Please refer to [link / reference]. Figure 3 This is another flowchart illustrating the weld defect detection method based on TOFD diffraction imaging in this application embodiment.

[0104] S301. Acquire the multi-channel ultrasonic echo signal sequence collected by the probe continuously scanning along the weld seam, and perform Hilbert transform processing on each ultrasonic echo signal sequence to obtain the envelope signal sequence.

[0105] Refer to step S201, which will not be repeated here.

[0106] S302. In the envelope signal sequence at each scanning position, search for the local maximum value where the envelope amplitude is greater than the preset amplitude threshold, and extract the candidate peak time point corresponding to each scanning position.

[0107] Refer to step S202, which will not be repeated here.

[0108] S303. During the scanning process, the arrival times of multiple bottom surface reflected waves are collected, the statistical dispersion of the arrival times of the multiple bottom surface reflected waves is calculated, and the uncertainty range of the sound velocity parameter is obtained.

[0109] Specifically, in actual weld inspection, the actual ultrasonic velocity is not a constant value due to material inhomogeneity or heat-affected zone stress. To accurately set constraints, the defect detection system continuously monitors the arrival times of the direct wave and the bottom-reflected wave during the scanning process. The fluctuation of the bottom-reflected wave time reflects the change in sound velocity on that cross section. The defect detection system extracts the variance or standard deviation of multiple bottom-reflected times as a statistical dispersion, and uses this dispersion to quantify the confidence interval of the sound velocity parameter, obtaining an uncertainty range including upper and lower limits. This provides a reliable data benchmark for the accurate construction of subsequent arrival time sets.

[0110] It should be noted that the arrival time series of the bottom surface reflected waves extracted by the defect detection system at N valid scanning locations is { , ,..., First, calculate the mean of the sequence. and standard deviation σ , where σ This refers to the statistical dispersion of the arrival time of the bottom-reflected wave; since the propagation path of the bottom-reflected wave is fixed at twice the workpiece thickness 2H, the actual sound velocity v and the arrival time of the bottom-reflected wave are related. The condition v=2H / between them is satisfied. Therefore, the mean speed of sound v̄ = 2H / The standard deviation of the speed of sound is obtained through the error propagation law σv=v̄×(σ / This yields the relative uncertainty of the sound velocity, which is equal to the relative standard deviation of the arrival time of the bottom-reflected wave. Then, by multiplying the preset coverage factor k (usually k=2, corresponding to approximately 95% confidence level) by σv, we obtain the expanded uncertainty of the sound velocity U=k×σv. The final uncertainty range of the sound velocity parameter is [v̄-U, v̄+U], where v̄-U is the lower limit of the sound velocity and v̄+U is the upper limit. For example, assuming the workpiece thickness H=30mm, the average arrival time of 20 bottom-reflected waves is measured. =10.18μs, standard deviation σ =0.03μs, then v̄=60mm / 10.18μs≈5894m / s, σv=5894×(0.03 / 10.18)≈17.4m / s, take k=2 to get U≈34.8m / s, the uncertainty range of sound speed is [5859m / s,5929m / s].

[0111] In some embodiments, the defect detection system uses a preset sliding position window to capture the arrival time of bottom surface reflected waves within a local range along the scanning direction, calculates the local statistical dispersion of the arrival time of bottom surface reflected waves within the local range, replaces the global statistical dispersion with the local statistical dispersion, and redetermines the uncertainty range at the current scanning position; based on the redetermined uncertainty range, it redetermines the arrival time set and geometric deviation constraints.

[0112] Specifically, temperature gradients during weld cooling can easily induce variations in acoustic properties in localized areas. To more precisely adapt to local inhomogeneities, the defect detection system no longer relies on a single global uncertainty. Instead, it utilizes a fixed-width sliding position window that moves along the scanning axis, extracting only the arrival time of the bottom-reflected wave within the window each time, and calculating the local statistical dispersion reflecting the sound velocity variation in that specific small area. This dynamically replaces the previous global statistical dispersion, enabling real-time updates to the uncertainty range that truly matches the local material characteristics at the current scanning position. This allows the arrival time set and geometric deviation constraints to adaptively expand and contract with the probe position.

[0113] It should be noted that the width of the sliding position window is determined by two factors: the typical spatial scale of the weld heat-affected zone and the minimum sample size required for statistical calculation. On the one hand, the window width should not exceed the typical extension length of the weld heat-affected zone in the scanning direction; otherwise, the window may simultaneously encompass different segments with significantly different acoustic properties, making the local statistical dispersion unable to accurately reflect the local sound velocity state at the current position. On the other hand, the number of effective bottom-surface reflected wave data points included in the window should not be less than the minimum sample size required for statistical estimation, typically no less than 20 effective data points to ensure the reliability of the standard deviation estimation. In practical engineering, the typical width of the weld heat-affected zone is approximately 15mm to 30mm. Assuming a scanning step interval of 1mm, a sliding position window width of 20 to 30 scanning positions is more suitable, satisfying both the locality requirement and ensuring statistical reliability.

[0114] S304. Substitute the upper and lower limits of the uncertainty range into the ultrasonic propagation geometric model to calculate the corresponding arrival time variation limits, so as to construct the arrival time set.

[0115] Specifically, after establishing the uncertainty of the sound velocity, the defect detection system needs to transform it into an intuitive time window constraint. The system substitutes the acquired lower limit of the sound velocity into the ultrasonic propagation geometry model to calculate the maximum theoretical time consumption corresponding to the current probe spacing and depth level, which serves as the right boundary of the time variation limit. The upper limit of the sound velocity is then substituted into the model to calculate the minimum theoretical time consumption, which serves as the left boundary. The dynamic time window formed by the left and right boundaries constitutes the arrival time set, which adaptively includes legitimate time drifts caused by material inhomogeneity.

[0116] S305. Combining the ultrasonic probe spacing and the ultrasonic wave propagation geometric model, determine the geometric deviation constraints corresponding to the entire candidate trajectory.

[0117] Specifically, unlike single-point time-based filtering, this step focuses on the spatial macroscopic morphology of the trajectory. Based on the ultrasonic probe spacing and the theoretical ultrasonic wave propagation geometry model, the defect detection system derives the standard spatiotemporal parabolic equation for the reflected echo of an ideal point defect at each scanning location. For trajectory distortion caused by potential irregular micro-cracks, the defect detection system calculates the first and second spatial derivatives of the ideal equation to determine the maximum allowable deviation of slope and curvature during the actual trajectory's extension. This set of deviations collectively constitutes the geometric deviation constraint corresponding to the entire candidate trajectory, serving as a stringent criterion for subsequently eliminating false defect lines.

[0118] To ensure that the geometric deviation constraint has an executable quantification form, this embodiment specifically implements it at two levels: local constraints at adjacent positions and global constraints for the entire trajectory.

[0119] Firstly, at the local level, the derivative of the arrival time of the diffraction trajectory of the ideal defect endpoint in the scanning direction with respect to the scanning position is derived from the ultrasonic propagation geometric model. The theoretical change in the arrival time of the wave peak between two adjacent scanning positions is equal to the product of the scanning step interval ΔX and this derivative. Considering the uncertainty range of the sound velocity parameter, the theoretical change is extended to both sides by the corresponding sound velocity error margin, which constitutes the allowable interval of the change in arrival time between adjacent positions. If the candidate wave peaks of adjacent scanning positions fail to fall into this allowable interval, a continuous relationship cannot be established.

[0120] Secondly, at the global level, the arrival time series of the candidate trajectories with established continuous relationships at all effective scanning positions are fitted with the theoretical parabolic equation derived from the above geometric model using least squares. The resulting fitting residuals are normalized and compared with a preset relative residual threshold, which is the upper limit of the relative sound path error calculated from the uncertainty range of the sound velocity parameter. Only when the normalized fitting residual of the entire trajectory does not exceed this threshold is the overall shape of the trajectory considered to conform to the physical propagation law of ultrasonic diffraction waves.

[0121] The scanning step interval ΔX represents the horizontal displacement of the probe between two adjacent data acquisitions along the weld seam direction. It is determined by the stepping mechanism of the scanning mechanism and can be a constant or vary with the scanning process. The theoretical change in the arrival time of the wave peak between adjacent scanning positions is equal to the product of ΔX and the first derivative of the arrival time at that position with respect to the scanning position. This product constitutes the center value of the allowable range of arrival time variation for local continuous matching. However, due to the uncertainty of the sound velocity parameter, this theoretical change needs to be extended to both sides by the time error margin obtained from the sound velocity uncertainty. The extended interval is the allowable range of arrival time variation between adjacent positions. Only when the arrival time difference of the candidate wave peaks at adjacent scanning positions falls within this allowable range can a continuous relationship be established.

[0122] The calculation of the normalized fitting residuals includes: Let the arrival time series of a continuous candidate trajectory at M valid scan locations be { , ,..., The corresponding scan location coordinates are { , ,..., The theoretical parabolic equation for the defect detection system is derived from the ultrasonic wave propagation geometric model:

[0123] T(x) = 2 × / v represents the fitted model (where d is the defect endpoint depth), (The coordinates of the position directly above the defect are used as the parameters to be fitted.) The least squares method is used to solve for the residual sum of squares RSS = The parameter d that yields the minimum value and After fitting, calculate the root mean square residual (RMSE) = Then, divide the RMSE by the mean T̄ of the trajectory arrival time series to obtain the normalized fitting residual η = RMSE / T̄; this normalized value reflects the relative degree to which the trajectory deviates from the theoretical parabola, and its relationship with the preset relative residual threshold is... Comparison, The value of η is equal to the relative uncertainty of the sound velocity parameter (i.e., the standard deviation of the sound velocity divided by the mean of the sound velocity) multiplied by a preset safety amplification factor (usually 2 to 3), only when η ≤ The trajectory is then selected as a valid diffraction peak through global geometric deviation screening.

[0124] Taking a specific working condition as an example, assuming ΔX = 1 mm, the derivative of the arrival time at a certain scanning position with respect to the scanning position is approximately 0.0011 μs / mm, then the theoretical change is approximately 0.0011 μs. If the time error margin corresponding to a relative uncertainty of 1% in the velocity of sound is approximately 0.0009 μs, then the allowable range is approximately 0.0002 μs to 0.0020 μs. Only when the arrival time difference between adjacent peaks falls within this range is a connection allowed; otherwise, it is judged as a discontinuous isolated noise point.

[0125] S306. Based on the arrival time set, perform continuous matching of candidate peak time points between each scanning location to determine continuous candidate trajectories that can establish continuous relationships with adjacent scanning locations.

[0126] Refer to step S204, which will not be repeated here.

[0127] S307. Based on the geometric deviation constraint, the continuous candidate trajectory is screened, and the continuous candidate trajectory that does not meet the geometric deviation constraint is eliminated to obtain the effective diffraction peak.

[0128] Refer to step S205, which will not be repeated here.

[0129] In some embodiments, when there are more than two candidate trajectories at the same adjacent scanning position, the defect detection system calculates the arrival time difference and peak amplitude ratio of each candidate trajectory between adjacent scanning positions to obtain the joint deviation of each candidate trajectory; with the goal of minimizing the joint deviation, each candidate trajectory is assigned to the corresponding continuous trajectory branch to complete the cross-unwrapping of multiple trajectories; and trajectory branches with a trajectory length not less than the preset minimum number of consecutive frames are retained to correct the effective diffraction peak.

[0130] Specifically, to address trajectory intersection interference caused by defect clusters, the defect detection system introduces a globally optimal allocation strategy. When more than two extending candidate trajectories are identified around a given scanning location, the system calculates their respective arrival time differences to measure spatial evolution coherence and the peak-to-amplitude ratio to measure energy evolution coherence. These two factors are combined to generate a joint deviation; a smaller deviation indicates a greater likelihood that the trajectory will continue along its original trend. Based on the principle of minimizing the overall deviation, the defect detection system assigns peaks, untangling entangled trajectories. Subsequently, it prunes discontinuous branches that fail to sustain sufficient length to ensure that truly effective long-term diffraction peaks are retained.

[0131] The preset minimum number of consecutive frames is determined based on the minimum acceptable spatial range of the defect diffraction wave in the scanning direction, which is determined by the effective half-angle of the probe. With minimum detectable defect depth Common constraints, approximately equal to 2× ×tan The value of this parameter is a certain proportion (usually 1 / 3 to 1 / 2) obtained by dividing it by the scan step interval ΔX and rounding it down. A typical value is 5 to 10 scan positions. The calculation of the joint deviation includes: assuming the arrival time of the peak of an existing trajectory branch at the previous scan position i-1 is... The peak amplitude of the envelope is There are multiple candidate peaks at the current scan location i, where the arrival time of the j-th candidate peak is... The peak amplitude of the envelope is The joint deviation of the candidate peak from the trajectory branch is defined as the weighted sum of squares of the time deviation component and the amplitude deviation component: D(j) = × + × ,in This is the theoretical change in arrival time between adjacent positions predicted by the ultrasonic propagation geometry model based on the current depth of the trajectory branch and the scan step interval. The standard deviation of the time of arrival change obtained from the uncertainty of sound speed is used as the normalization factor. The expected amplitude ratio is given by the center value of the theoretical amplitude decay interval. The normalization factor is half the width of the theoretical amplitude decay interval. and The weights are the time dimension and the magnitude dimension, respectively, and their sum is 1 (typically taking the value of 1). =0.7、 =0.3, reflecting the dominant role of arrival time in TOFD quantification. When more than two trajectory branches compete for multiple candidate peaks at the same scan location, the defect detection system constructs an allocation matrix. The rows of the matrix correspond to each existing trajectory branch, the columns correspond to each candidate peak at the current location, and the element values ​​are the corresponding joint deviation D values. Then, by solving for the one-to-one allocation scheme that minimizes the sum of the selected elements in the matrix (i.e., the Hungarian algorithm or the greedy minimum cost allocation), each candidate peak is uniquely assigned to the trajectory branch with the smallest joint deviation, thereby completing the cross-untangling at that scan location.

[0132] In some embodiments, the defect detection system determines the arrival time series of each trajectory branch within a preset number of frames before and after the intersection region; calculates the fitting residual between each arrival time series and the theoretical parabolic trajectory derived from the ultrasonic propagation geometric model; releases the peaks in the intersection region of trajectory branches with fitting residuals greater than a preset residual threshold as candidate peaks, and performs continuity matching with the extension trend of the remaining trajectory branches as constraints to correct the effective diffraction peaks.

[0133] Specifically, after initial unwrapping, the defect detection system introduces a macroscopic model verification mechanism to ensure accurate unwrapping. The system extracts arrival time series within a fixed length range before and after the intersection point and performs least-squares fitting on these time series against the theoretical parabolic equation derived from the ultrasonic propagation geometric model. If the calculated fitting residual exceeds a preset residual threshold, it indicates that the branch is incorrectly combined. The defect detection system unbinds the peaks within the abnormal intersection area, downgrading them to isolated candidate peaks. Then, using the remaining trajectory branches with minimal residuals and stable extension trends as constraints, it re-performs continuity matching to fill in and correct the released peaks, achieving high-precision separation.

[0134] S308. Based on the ultrasonic propagation geometric model, determine the theoretical amplitude attenuation range in which the amplitude of the diffraction wave decreases monotonically as the horizontal offset of the scanning position relative to the defect vertex increases.

[0135] Specifically, the diffracted waves from real defects not only follow a hyperbolic law in terms of arrival time, but also exhibit spatial correlation in energy intensity. As the ultrasonic probe moves further away from directly above the defect, the sound path increases and the sound beam deviates from the principal axis, causing the diffracted wave energy to inevitably decrease monotonically. Based on the directivity function in the ultrasonic propagation geometry model and the spherical wave diffusion attenuation formula, the defect detection system calculates the expected amplitude drop ratio between adjacent scanning positions at different horizontal offsets. This ratio range is the theoretical amplitude attenuation range, used to constrain the rationality of the trajectory from an energy perspective, because random noise or spurious echoes typically do not possess this regular energy attenuation characteristic.

[0136] The derivation of the theoretical amplitude attenuation range is based on the following physical model: Assuming the defect endpoint is located at depth d, and the horizontal offset of the current probe center from directly above the defect is Δx, the total acoustic path of the ultrasonic wave propagating from the transmitting probe to the defect endpoint and then diffracting to the receiving probe is:

[0137] L(Δx) = + This sound path formula applies when the horizontal offset Δx is less than half the probe spacing. The range of this range corresponds to the main scanning area where the diffracted wave can be effectively received. The received amplitude of the diffracted wave is determined by two physical factors: the geometric diffusion of the spherical wave causes the amplitude to attenuate inversely proportional to the sound path, and the diffraction directivity function D(θ) at the defect endpoint decreases as the diffraction angle θ deviates from the defect normal direction. Considering these two factors, the relative amplitude of the diffracted wave received at a horizontal offset of Δx can be approximately expressed as A(Δx)∝ , where θ(Δx) is the diffraction angle at the corresponding offset. Therefore, the theoretical amplitude ratio between two adjacent scanning positions (offsets of Δx and Δx+Δx, respectively) is . (Δx)= = Since L increases with Δx and D(θ) decreases with the deviation of θ, this ratio The value is close to but slightly less than 1 near the defect, and gradually decreases as Δx increases. Considering that the actual defect depth d is unknown, the defect detection system substitutes the minimum and maximum depths corresponding to the arrival time sets into the above formula to calculate... The upper and lower bounds of the theoretical amplitude attenuation range are used to constrain the legal range of the measured peak amplitude ratio.

[0138] In some embodiments, the defect detection system will statistically analyze the actual distribution range of the peak amplitude ratio between adjacent scanning positions in each of the retained trajectory candidates; take the intersection of the actual distribution range and the theoretical amplitude attenuation interval to obtain the corrected amplitude attenuation interval; replace the theoretical amplitude attenuation interval with the corrected amplitude attenuation interval, and re-perform the comparison of peak amplitude ratio to correct the effective diffraction peak.

[0139] Specifically, since theoretical attenuation models are often based on ideal homogeneous media, the scattering of grains and micropores within actual welds can lead to abnormal acoustic attenuation. After initial continuity screening, the defect detection system summarizes the amplitude ratios of adjacent peaks of all currently retained trajectories and performs statistical analysis to depict their distribution profile in the actual medium. The system then performs an intersection operation between the upper and lower limits of this actual distribution range and the previously determined theoretical amplitude attenuation interval. This operation eliminates unrealistically broad portions of the theoretical interval and filters out extreme abnormal noise points in the actual distribution. Finally, the defect detection system applies this corrected amplitude attenuation interval to re-examine the peaks, improving the efficiency of effective diffraction peak purification in complex noise environments.

[0140] In some embodiments, the defect detection system can collect all samples of peak amplitude ratios between adjacent positions of the preserved trajectories, arrange all samples in ascending order of value, and take the value at the 25th and 75th positions of the arrangement sequence as the lower quartile and upper quartile, respectively, and the difference between the two is recorded as the interquartile range. Samples that are less than the lower quartile minus 1.5 times the interquartile range and samples that are greater than the upper quartile plus 1.5 times the interquartile range are identified as extreme outliers and removed. The minimum and maximum values ​​of the remaining samples after removal are used as the lower and upper bounds of the actual distribution range, respectively. The intersection of the actual distribution range and the theoretical amplitude attenuation range is then taken to obtain the corrected amplitude attenuation range.

[0141] S309. Calculate the peak amplitude ratio of effective diffraction peaks between adjacent scanning positions, compare the peak amplitude ratio with the theoretical amplitude attenuation range, and remove effective diffraction peaks whose peak amplitude ratio does not fall within the theoretical amplitude attenuation range to correct the effective diffraction peaks.

[0142] Specifically, after determining the effective diffraction peaks morphologically, the defect detection system introduces an energy dimension for verification. The system extracts the peak envelope amplitudes corresponding to adjacent scan positions for the same trajectory, calculates the quotient of the amplitude at the current position and the amplitude at the previous position, and obtains the actual peak amplitude ratio. The system then determines whether this ratio falls within the theoretical amplitude attenuation range established in step S308. If the ratio shows an abnormal increase or a sharp drop exceeding this range, it indicates that the peak is likely caused by random pulse interference or structural noise superposition. The system will then remove this point, completing further correction and purification of the effective diffraction peak set.

[0143] S310. Taking the candidate peak time point corresponding to the effective diffraction peak as the center, extract a local time window, and use the envelope amplitude value of each sampling point within the local time window as the weight to perform a weighted average calculation on the time coordinate to obtain the target arrival time of the effective diffraction peak.

[0144] Refer to step S206, which will not be repeated here.

[0145] S311. Substitute the target arrival time into the defect depth calculation equation, and combine the geometric consistency of the trajectories corresponding to each effective diffraction wave peak to distinguish between the upper and lower endpoint diffraction waves, and calculate the endpoint depth and height of the weld defect.

[0146] Refer to step S207, which will not be repeated here.

[0147] Due to the coarse structure and uneven grains of the weld metal, there is often a discrepancy between the theoretical and actual sound velocity. Since the sound velocity in the defect depth calculation equation is in quadratic form, even small deviations in sound velocity are significantly amplified after being squared. Directly substituting this into the theoretical sound velocity will lead to systematic errors in the defect depth and its height. Therefore, before calculating the defect depth, the defect detection system first reads the arrival time of the reflected wave from the bottom surface at a scanning location with a known thickness. .

[0148] The identification criteria for bottom-reflected waves in ultrasonic echo signal sequences are as follows:

[0149] Bottom-reflected waves are strong echoes that return to the receiving probe after total reflection of ultrasonic waves at the bottom surface of the workpiece. Their propagation path corresponds to a fixed acoustic path from the transmitting probe through twice the workpiece thickness to the receiving probe. Therefore, their arrival time remains essentially constant across different scanning positions, without parabolic changes with the translation of the scanning position. This characteristic is significantly different from the parabolic change in arrival time of defect diffracted waves with scanning position. In practical implementation, the defect detection system searches for the peak corresponding to the maximum envelope amplitude in the latter half of the sampling time window (i.e., the region near the sampling termination time) for each envelope signal sequence, and uses its time coordinate as the candidate arrival time of the bottom-reflected wave. Subsequently, the theoretical arrival time of the bottom-reflected wave, 2×H / v, is calculated using the nominal workpiece thickness and nominal sound velocity. The candidate arrival time is compared with this theoretical value. If the deviation between the two does not exceed the preset tolerance... If the candidate is confirmed as a bottom reflection wave, otherwise the bottom wave data at the scan location is marked as abnormal and excluded from subsequent sound velocity statistics.

[0150] The propagation path of the reflected wave from the bottom surface is as follows: it propagates from the transmitting probe through the thickness of the workpiece to the bottom surface, is reflected there, and returns to the receiving probe. Its total sound path corresponds to twice the workpiece thickness. Therefore, according to formula... =2× The actual sound velocity in the weld area is calculated by reverse calculation, where h is the actual thickness of the workpiece at the scanning location. Then, this measured sound velocity is used... Substitute the theoretical sound speed v into the defect depth calculation equation to recalculate the depth and height of each defect endpoint.

[0151] Taking a specific working condition as an example, assuming the actual thickness of the workpiece is h=30mm, the arrival time of the reflected wave from the bottom surface is measured at a certain scanning position. =10.2μs, then the actual speed of sound can be calculated using the above formula:

[0152] =2×30mm / 10.2μs≈5882m / s; If the theoretical sound speed of 5900m / s is still substituted into the depth equation, at a depth of about 10mm, the difference in depth calculation corresponding to the two sound speeds can reach about 0.8mm, and this difference increases further with the increase of defect depth.

[0153] Therefore, replacing the theoretical sound velocity with the actual sound velocity calculated from the measured arrival time of the reflected wave from the bottom surface is a necessary step to eliminate systematic errors introduced by the non-uniformity of the weld structure and to ensure the quantitative accuracy of the endpoint depth and its own height. After this correction, the target arrival time is substituted into the defect depth calculation equation with the actual sound velocity as a parameter to calculate the upper endpoint depth, lower endpoint depth, and its own height.

[0154] In addition, in order to present the numerical detection results in the form of visual images and standardized ratings, so as to facilitate the defect interpretation and verification by the inspection personnel and meet the requirements of the engineering acceptance standards, in some embodiments, the defect detection system will arrange the envelope signal sequence of each scanning position according to the scanning position coordinates to construct a two-dimensional signal amplitude matrix, perform interpolation smoothing and pseudo-color mapping on the two-dimensional signal amplitude matrix to generate a TOFD two-dimensional scanning image that displays the diffraction parabolic features of the defect; compare the self-height with multiple preset grading thresholds level by level to determine the quality level of the weld defect, and output the data carrying the scanning position coordinates, endpoint depth, self-height and quality level in a structured manner.

[0155] Specifically, after calculating the depth and height of the defect endpoints at each scanning location, the defect detection system arranges the envelope signal sequences row by row according to the scanning location coordinates to form a two-dimensional signal amplitude matrix. Linear interpolation or cubic spline interpolation is performed on this matrix in both the scanning location and sampling time directions to expand the matrix resolution to the target display size. A two-dimensional Gaussian smoothing filter is then applied to the interpolated matrix to eliminate staircase effects. Subsequently, the amplitude values ​​in the smoothed matrix are normalized to a unified range. A preset color mapping table is used to convert the normalized amplitude values ​​of each element into corresponding color components, generating a TOFD two-dimensional scanning image with the scanning location as the horizontal axis, the signal propagation time as the vertical axis, and pseudo-color encoded amplitude as the display content. Afterward, the defect detection system reads a preset grading threshold sequence, compares the height of each defect level to determine its quality level, and combines the scanning location coordinates, upper endpoint depth, lower endpoint depth, height, and quality level of the defect into a structured record. All defect records are then compiled and packaged according to a preset format and output to a memory or external interface.

[0156] It should be noted that in this TOFD 2D scan image, the defect diffraction wave appears as a symmetrical parabolic arc-shaped color band. The vertex of the parabola corresponds to the scan position directly above the defect, and its ordinate represents the shortest arrival time of the diffraction wave at the defect endpoint. This shortest arrival time can be converted into the defect's burial depth using the defect depth calculation equation. The upper and lower parabolas correspond to the diffraction wave trajectories at the upper and lower endpoints of the same defect. The difference in the ordinates of these two parabolas at the same scan position is the arrival time difference. This time difference is converted into the depths of the upper and lower endpoints using the defect depth calculation equation, and the difference yields the defect's height. Therefore, when interpreting TOFD 2D scan images, inspectors must convert the time coordinate of the image's ordinate axis to a depth coordinate using the defect depth calculation equation to directly read the defect's burial depth and height information. The defect detection system displays both the time axis scale and the corresponding depth conversion scale on the display unit in a labeled manner, facilitating intuitive interpretation by inspectors.

[0157] Each structured defect record can contain the following fields: scan location coordinates. This indicates the location of the defect along the weld extension direction, expressed as a floating-point number in millimeters; the depth of the upper endpoint. , representing the vertical distance from the upper endpoint of the defect to the workpiece surface, expressed as a floating-point number in millimeters; the lower endpoint depth , representing the vertical distance from the lower end of the defect to the workpiece surface, expressed as a floating-point number in millimeters; its height h is equal to minus The value is a floating-point number in millimeters; the quality grade is an integer number determined based on the grading threshold.

[0158] All defect records are arranged in ascending order of scan location coordinates and organized in a fielded key-value pair format. Each field name corresponds one-to-one with the five elements mentioned above. Records are separated by standard delimiters. After being packaged as a whole, the records are sent to an external quality management system through the data output interface. The data receiving structure is matched with the system's preset data receiving structure, thereby realizing the end-to-end data flow from detection data collection, processing, rating to quality management.

[0159] In some embodiments, the generation and grading output of two-dimensional scan images can be achieved in multiple ways: Optionally, the defect detection system directly maps each element in the two-dimensional signal amplitude matrix to an 8-bit grayscale pixel according to the grayscale value, generates a grayscale TOFD image at the original resolution, and then achieves visual magnification through image display scaling; Optionally, the defect detection system performs bicubic interpolation on the two-dimensional signal amplitude matrix to improve the resolution, performs logarithmic compression transformation on the interpolated matrix to compress the dynamic range, and then performs pseudo-color mapping to generate a high-contrast TOFD two-dimensional scan image.

[0160] In this embodiment, due to the introduction of multi-dimensional spatiotemporal evolution constraints and continuous intelligent tracking mechanism, it is possible to purify the diffraction echo features with real physical characteristics under severe random noise and structural interference. This effectively solves the problems of frequent misjudgments caused by the identification of local isolated wave peaks in the prior art and the serious decrease in calculation accuracy under variable sound speed conditions. Thus, it realizes highly robust and high-precision non-destructive quantitative detection and endpoint imaging analysis of pressure-bearing weld defects.

[0161] The defect detection system in this application embodiment is described below from a hardware processing perspective. Please refer to [link / reference]. Figure 4 This is a schematic diagram of the physical device structure of a defect detection system in an embodiment of this application.

[0162] It should be noted that, Figure 4 The structure of the defect detection system shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0163] like Figure 4As shown, the defect detection system includes a CPU 401, which can perform various appropriate actions and processes according to a program stored in ROM 402 or a program loaded into RAM 403 from storage section 408, such as executing the methods described in the above embodiments. RAM 403 also stores various programs and data required for system operation. The CPU 401, ROM 402, and RAM 403 are interconnected via bus 404. I / O interface 405 is also connected to bus 404.

[0164] The following components are connected to I / O interface 405: input section 406 including audio input devices, push-button switches, etc.; output section 407 including a liquid crystal display (LCD) and audio output devices, indicator lights, etc.; storage section 408 including a hard disk, etc.; and communication section 409 including a network interface card such as a LAN (Local Area Network) card, modem, etc. Communication section 409 performs communication processing via a network such as the Internet. Drive 410 is also connected to I / O interface 405 as needed. Removable media 411, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 410 as needed so that computer programs read from them can be installed into storage section 408 as needed.

[0165] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 409, and / or installed from removable medium 411. When the computer program is executed by CPU 401, it performs the various functions defined in this application.

[0166] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those shown in the drawings.

Claims

1. A method for detecting weld defects based on TOFD diffraction imaging, characterized in that, The method, applied to a defect detection system, includes: A sequence of multiple ultrasonic echo signals collected by continuous scanning along the weld seam with a probe is obtained. Each ultrasonic echo signal sequence is processed by Hilbert transform to obtain an envelope signal sequence. In the envelope signal sequence at each scanning location, search for the local maximum value where the envelope amplitude is greater than a preset amplitude threshold, and extract the candidate peak time point corresponding to each scanning location; Based on the ultrasonic probe spacing and ultrasonic propagation geometric model, the arrival time set of effective diffracted waves between adjacent scanning positions and the geometric deviation constraint of the entire candidate trajectory are determined. Based on the set of arrival times, the candidate peak time points between each scanning location are continuously matched to determine continuous candidate trajectories that can establish a continuous relationship with adjacent scanning locations. Based on the geometric deviation constraint, the continuous candidate trajectories are screened, and continuous candidate trajectories that do not meet the geometric deviation constraint are eliminated to obtain effective diffraction peaks; A local time window is extracted centered on the candidate peak time point corresponding to the effective diffraction peak. The time coordinates are then weighted and averaged using the envelope amplitude value of each sampling point within the local time window to obtain the target arrival time of the effective diffraction peak. Substituting the target arrival time into the defect depth calculation equation, and combining the geometric consistency of the trajectories corresponding to each effective diffraction wave peak to distinguish between the upper and lower endpoint diffraction waves, the endpoint depth and height of the weld defect are calculated.

2. The method according to claim 1, characterized in that, After the step of filtering the continuous candidate trajectories based on the geometric deviation constraint, eliminating continuous candidate trajectories that do not meet the geometric deviation constraint, and obtaining effective diffraction peaks, the method further includes: Based on the ultrasonic propagation geometric model, the theoretical amplitude attenuation range of the diffraction wave amplitude is determined as the horizontal offset of the scanning position relative to the defect vertex increases. Calculate the peak amplitude ratio of effective diffraction peaks between adjacent scanning positions, compare the peak amplitude ratio with the theoretical amplitude attenuation range, and remove effective diffraction peaks whose peak amplitude ratio does not fall within the theoretical amplitude attenuation range to correct the effective diffraction peaks.

3. The method according to claim 2, characterized in that, After determining, based on the ultrasonic propagation geometry model, the theoretical amplitude attenuation range in which the diffraction wave amplitude monotonically decreases with increasing horizontal offset of the scanning position relative to the defect vertex, the method further includes: The actual distribution range of the peak amplitude ratio between adjacent scanning positions in each retained trajectory candidate is statistically analyzed; The intersection of the actual distribution range and the theoretical amplitude attenuation range is used to obtain the corrected amplitude attenuation range. The theoretical amplitude attenuation range is replaced with the corrected amplitude attenuation range, and the comparison of the peak amplitude ratio is performed again to correct the effective diffraction peak.

4. The method according to claim 1, characterized in that, The steps of determining the set of arrival times of effective diffracted waves between adjacent scanning positions and the geometric deviation constraints of the entire candidate trajectory based on the ultrasonic probe spacing and ultrasonic wave propagation geometry model specifically include: During the scanning process, the arrival times of multiple bottom surface reflected waves are collected, and the statistical dispersion of the arrival times of the multiple bottom surface reflected waves is calculated to obtain the uncertainty range of the sound velocity parameter. Substitute the upper and lower limits of the uncertainty range into the ultrasonic propagation geometric model to calculate the corresponding arrival time variation limits, so as to construct the arrival time set; By combining the ultrasonic probe spacing and the ultrasonic wave propagation geometry model, the geometric deviation constraint corresponding to the entire candidate trajectory is determined.

5. The method according to claim 4, characterized in that, After acquiring the arrival times of multiple bottom-reflected waves during the scanning process, calculating the statistical dispersion of the arrival times of the multiple bottom-reflected waves, and obtaining the uncertainty range of the sound velocity parameter, the method further includes: The arrival time of the bottom reflected wave within a local area is intercepted along the scanning direction using a preset sliding position window, and the local statistical dispersion of the arrival time of the bottom reflected wave within the local area is calculated. The uncertainty range at the current scanning position is redefined by replacing the global statistical dispersion with the local statistical dispersion. Based on the redefined uncertainty range, the arrival time set and the geometric deviation constraint are redefined.

6. The method according to claim 1, characterized in that, After the step of filtering the continuous candidate trajectories based on the geometric deviation constraint, eliminating continuous candidate trajectories that do not meet the geometric deviation constraint, and obtaining effective diffraction peaks, the method further includes: When there are more than two candidate trajectories at the same adjacent scanning position, calculate the arrival time difference and peak amplitude ratio of each candidate trajectory between adjacent scanning positions to obtain the joint deviation of each candidate trajectory. With the goal of minimizing the joint deviation, each candidate trajectory is assigned to the corresponding continuous trajectory branch to complete the cross-untangling of multiple trajectories; Retain trajectory branches with a trajectory length not less than a preset minimum number of consecutive frames to correct the effective diffraction peaks.

7. The method according to claim 6, characterized in that, After the step of assigning each candidate trajectory to the corresponding continuous trajectory branch with the goal of minimizing the joint deviation, and completing the cross-untangling of multiple trajectories, the method further includes: Determine the arrival time sequence of each trajectory branch within a preset number of frames before and after the intersection area; Calculate the fitting residuals between each of the arrival time series and the theoretical parabolic trajectory derived from the ultrasonic wave propagation geometric model; The peaks in the intersection regions of trajectory branches whose fitting residuals are greater than a preset residual threshold are released as candidate peaks, and continuity matching is performed with the extension trend of the remaining trajectory branches as a constraint to correct the effective diffraction peaks.

8. A defect detection system, characterized in that, The defect detection system includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the defect detection system to perform the method as described in any one of claims 1-7.

9. A computer-readable storage medium comprising instructions, characterized in that, When the instructions are executed on the defect detection system, the defect detection system performs the method as described in any one of claims 1-7.

10. A computer program product, characterized in that, When the computer program product is run on the defect detection system, the defect detection system performs the method as described in any one of claims 1-7.