A pipeline inner wall defect detection method and device based on signal graph processing analysis

By constructing a three-closed-loop spatiotemporal alignment framework and an axial-circumferential dual-constraint segmentation model, the problems of positioning error and multimodal signal alignment in pipeline inspection were solved, achieving high-precision defect detection and quantification and reducing the risk of misjudgment.

CN123160459APending Publication Date: 2026-11-24JINAN CITY CHANGQING DISTRICT POWER SUPPLY CO OF STATE GRID SHANDONG ELECTRIC POWER CO
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611259245.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-19
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing pipeline inspection technologies suffer from problems such as axial drift caused by odometer slippage, circumferential skew caused by IMU integral drift, inconsistent multimodal signal unfolding meshes, inability to perform signal-level fusion, poor position matching accuracy, and high risk of misjudgment because the segmentation model does not utilize the physical constraints of the pipeline's axial extension and circumferential closed continuity.

Method used

A three-loop spatiotemporal alignment framework for axial, circumferential, and signal quality is constructed. Signal quality is fed back through the Kalman filter alignment process. The weld position is used as the state anchor point for re-estimation. Defect segmentation and quantization are performed by combining the axial-circumferential dual-constraint segmentation model and the physical constraint injection loss function. Signal features are extracted by one-dimensional convolutional neural network and ring convolution, and signal graph processing and analysis are performed.

Benefits of technology

It reduces positioning errors caused by odometer slippage and IMU integration drift, achieves sub-pixel level alignment of multimodal signals and accurate defect segmentation, improves defect prediction accuracy and generalization ability for rare defects in small samples, and reduces false alarm rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160459A_ABST
    Figure CN123160459A_ABST
Patent Text Reader

Abstract

This invention relates to a method and apparatus for detecting defects in the inner wall of pipelines based on signal image processing and analysis, belonging to the field of pipeline defect detection technology. Addressing the problems of open-loop spatiotemporal alignment, inconsistencies in multimodal meshes, and lack of physical mechanisms for defect quantification in existing unfolded signal images, this invention acquires multimodal detection data, mileage, IMU attitude angles, and pipe wall structural feature data; it fuses mileage and IMU data using Kalman filtering, triggers reinitialization based on signal quality assessment, and constructs a three-closed-loop spatiotemporal alignment framework; when leakage magnetic flux and ultrasonic waves are combined, the axial offset is determined based on the cross-correlation peak values ​​of the two channels, and resampling is performed to obtain a multimodal aligned unfolded signal image; the processed composite or single unfolded signal image is input into an axial-circumferential dual-constraint segmentation model to obtain a defect candidate probability map, determining the defect candidate region; axial-depth coupled defect evidence quantification is driven by a physical mechanism; and the defect result or normal result is output based on the comparison between the predicted defect depth and a preset depth threshold.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of pipeline internal inspection technology, and in particular to a method and apparatus for detecting defects in the inner wall of pipelines based on signal image processing and analysis. Background Technology

[0002] Pipeline internal inspection is a crucial method for integrity management of oil and gas pipelines, urban gas networks, and industrial fluid pipelines. It primarily relies on intelligent detectors equipped with sensor arrays that travel inside the pipeline, simultaneously collecting signals of pipe wall defects and their location. After inspection, the location, type, and severity of defects are analyzed offline. Mainstream internal inspection technologies include magnetic flux leakage (MFL), ultrasonic testing (UT), and eddy current testing (ET). Commercial pipeline internal inspection and analysis software typically plots sensor signals as a one-dimensional signal curve along the pipeline axis or a two-dimensional color map unfolded circumferentially, allowing human interpreters to compare and measure defects against wall thickness maps.

[0003] With the development of artificial intelligence, existing technologies, such as segmentation neural networks that process signal data into graphs for defect identification based on image analysis, are increasingly being applied to pipeline inspection data analysis. However, existing solutions have the following shortcomings in practical applications: odometer slippage leads to axial drift, and IMU integration drift leads to circumferential deviation; the cumulative positioning error affects the subsequent process of unfolding the signal data into a graph. The unfolded grids of multimodal signals are inconsistent; the same defect location corresponds to different spatial neighborhoods in the unfolded signal graphs of different modalities, making signal-level fusion impossible. Defect quantization after segmentation uses purely data-driven methods such as random forests, as seen in patent document CN109783906B, which do not utilize the physical coupling relationship between the axial extension and depth development of corrosion defects, resulting in poor generalization ability for rare defects with small samples. Furthermore, the segmentation model treats the unfolded signal graph as an ordinary two-dimensional image, failing to incorporate the physical constraints of the pipeline's limited axial extension and circumferential closed continuity, leading to poor position matching accuracy and a high risk of misjudgment. Summary of the Invention

[0004] To solve the above-mentioned technical problems, or at least partially solve them, and to address the aforementioned shortcomings, this invention provides a method and apparatus for detecting defects in the inner wall of pipes based on signal image processing and analysis.

[0005] In a first aspect, the present invention provides a method for detecting defects in the inner wall of a pipe based on signal image processing and analysis, comprising: Acquire multimodal internal detection data and pipe wall structural features of the pipeline, as well as synchronized mileage coding data and inertial measurement unit (IMU) attitude angle data: the multimodal internal detection data includes at least one of magnetic flux leakage signal data and ultrasonic signal data; the pipe wall structural feature data includes weld marking data, elbow position data, and pipe wall curvature data; A three-closed-loop spatiotemporal alignment framework encompassing axial, circumferential, and signal quality is constructed to map multimodal intramodal detection data to precise axial and circumferential coordinate sequences, forming a refined spatiotemporally aligned unfolded signal map. If the input is composite data, perform multimodal unfolded signal map cross-correlation calculation and cubic spline resampling alignment on the multimodal unfolded signal map; An axial-circumferential dual-constraint segmentation model with pipeline physical constraint injection is constructed and trained to perform defect segmentation inference on single or composite multimodal internal detection data. The axial-circumferential dual-constraint segmentation model includes an axial path network that extracts signal feature maps along the axial direction and injects axial extension constraints, a circumferential path network that extracts signal feature maps along the circumferential direction and injects circumferential closing constraints, a feature fusion module that fuses the feature maps of the axial path network and the circumferential path network to obtain a fused feature map, and a candidate probability map output module that outputs a defect candidate probability map based on the fused feature map. Based on the defect candidate probability map, the defect candidate region is determined, and the axial-depth coupling defect evidence is quantified through physical mechanism. Specifically, based on the physical expansion mechanism of corrosion defects, an axial-depth coupling empirical formula is established to calculate the defect prediction depth. Based on the comparison between the defect prediction depth and the preset depth threshold, the defect result or normal result is output.

[0006] Furthermore, a three-closed-loop spatiotemporal alignment framework for axial, circumferential, and signal quality is constructed to map multimodal intramodal detection data to precise axial and circumferential coordinate sequences, forming a spatiotemporally aligned, refined unfolded signal map, including: The three-closed-loop spatiotemporal alignment framework of axial, circumferential and signal quality performs initial fusion of the in-pipe detector state characterized by odometer coding data and IMU attitude angle data using Kalman filtering to obtain initial axial coordinate sequence and initial circumferential coordinate sequence; wherein the state vector of Kalman filtering includes axial position, circumferential attitude angle, axial velocity and angular velocity. The three-closed-loop spatiotemporal alignment framework of axial, circumferential and signal quality maps the multimodal detection data to the unfolded signal map space with axial position as the horizontal axis and circumferential angle as the vertical axis to obtain the initial unfolded signal map based on the initial axial coordinate sequence and the initial circumferential coordinate sequence. Calculate the signal quality response value for each axial position of the initial unfolded signal map, perform signal quality assessment based on the signal quality response value, detect the existence of signal distortion regions, and determine whether the signal distortion region is an alignment feedback trigger area; The alignment feedback triggering zone triggers Kalman filter re-initialization within the independent state interval, establishes state anchor points at the positions corresponding to the weld markings, re-estimates the axial and circumferential coordinate sequences between the anchor points to obtain refined axial and circumferential coordinate sequences, and performs signal expansion; Repeat the above process iteratively until the quality convergence condition is met.

[0007] Furthermore, the signal quality response value is calculated for each axial position of the initial unfolded signal map: ; in, Axial position Signal quality response value at the location, For The local signal standard deviation within a window centered on and pre- and post-a certain number of sampling points. The global signal standard deviation is the total unfolded signal plot. This refers to the local signal-to-noise ratio within the window. and The weighting coefficients and .

[0008] Furthermore, if the input is composite data, the multimodal unfolded signal map cross-correlation calculation and cubic spline resampling alignment include: mapping the magnetic flux leakage signal data and the ultrasonic signal data into a magnetic flux leakage unfolded signal channel and an ultrasonic unfolded signal channel, respectively; calculating the normalized cross-correlation function between the magnetic flux leakage unfolded signal channel and the ultrasonic unfolded signal channel; determining the axial offset between different modes based on the peak position of the normalized cross-correlation function; and resampling the ultrasonic unfolded signal channel based on the axial offset to obtain a multimodal aligned unfolded signal map.

[0009] Furthermore, the axial path network employs a one-dimensional convolutional neural network to extract local features of the signal sequence by sliding along the axial direction. The axial path network consists of several stacked one-dimensional convolutional layers with the number of output channels doubling sequentially. Each convolutional layer is followed by a batch normalization layer and a ReLU activation function, and the final layer outputs an axial feature map. The extension length of the defect candidate connected region in the axial direction does not exceed the preset axial extension upper limit, and the signal response gradient of adjacent axial sampling points satisfies the preset axial continuity condition.

[0010] Furthermore, the circumferential path network structure is consistent with the axial path network, employing circular convolution. The convolution kernel of the circular convolution slides cyclically along the circumferential direction to extract signal features, and the circular boundary processing follows... Execution, among which, This represents the signal value at the nth circumferential position after the ring extension. This is the original circumferential signal sequence. The total number of circumferential channels is denoted by mod, which is used for modulo operation to ensure continuous sliding at the beginning and end of the circumferential splicing. The circumferential closure constraint is injected into the loss function of the circumferential path network, including: the crossing angle of the defect candidate connected region in the circumferential direction does not exceed the preset circumferential crossing upper limit, and the circumferential signal response satisfies the continuity condition at the beginning and end splicing.

[0011] Furthermore, the feature fusion module performs element-wise multiplication interaction fusion of the feature maps of the axial path network and the circumferential path network at the bottleneck layer of the model: ,in, To fuse feature maps, This is the axial feature map output by the axial path network. This is the circumferential feature map output by the circumferential path network, where ⊙ represents element-wise multiplication; The fused feature map is mapped by the candidate probability map output module, which includes upsampling and 1×1 convolution, to output a defect candidate probability map. The probability value represents the confidence that each pixel location belongs to the defect candidate region.

[0012] Furthermore, the quantification of evidence for axial-depth coupling defects is driven by physical mechanisms, specifically including: Based on the defect candidate probability map, defect candidate regions are determined, and the axial center position, axial extension half length, circumferential span angle, and signal response intensity of each defect candidate region are calculated. Based on the physical propagation mechanism of corrosion defects, the corrosion depth follows an exponential decay distribution along the axial direction. A confidence weighting factor based on signal quality is introduced to establish an axial-depth coupling formula for corrosion defects, and the predicted depth of corrosion defects is calculated. Based on the physical mechanism of crack defects, an axial-depth coupling formula for crack defects is established to calculate the predicted depth of crack defects. Based on the comparison between the predicted defect depth and the preset depth threshold, the defect result or normal result is output.

[0013] Furthermore, by utilizing retained historical data, longitudinal consistency verification is performed on the detection results across multiple detection rounds based on correlation coefficients. The development of defects is then analyzed based on the longitudinal consistency verification results combined with historical detection results, including: The axial position sequence and signal response sequence corresponding to the defect candidate region after each detection are recorded to form a longitudinal history sequence. The longitudinal history sequence includes a unique defect identifier, an axial position sequence, a circumferential position sequence, a signal response sequence, a predicted depth sequence, and a detection timestamp sequence. The unique defect identifier is obtained by quantizing the axial center position and the circumferential center angle of the defect candidate region according to a matching threshold and then hashing them. In subsequent detection, when a candidate region is detected whose axial position differs from that of a certain defect candidate region in the longitudinal historical sequence by no more than a preset longitudinal matching threshold, longitudinal consistency verification is performed according to the correlation coefficient. Based on the longitudinal consistency level determined by the correlation coefficient, a defect growth report, a new defect marker, or an anomaly region verification marker is output. The longitudinal consistency level is the correlation coefficient between the current candidate region signal response sequence and the historical signal response sequence of a pair of candidate regions with matching positions. When the correlation coefficient is greater than or equal to a preset consistency threshold, it is confirmed as the growth of the same defect, and a defect growth report is output. When the correlation coefficient is less than or equal to a preset anomaly threshold, a new defect marker is output. When the correlation coefficient is greater than the preset anomaly threshold but less than the preset consistency threshold, an anomaly region verification marker is output.

[0014] Secondly, the present invention provides a pipe inner wall defect detection device based on signal image processing and analysis, comprising: at least one processing unit, the processing unit being connected to a storage unit via a bus unit, the storage unit being used for a computer-executable program, and the processing unit implementing the pipe inner wall defect detection method based on signal image processing and analysis by running the computer-executable program stored in the storage unit.

[0015] The technical solutions provided in the embodiments of the present invention have the following advantages compared with the prior art: This application constructs a three-loop spatiotemporal alignment framework encompassing axial, circumferential, and signal quality aspects. The signal quality assessment results are fed back to the Kalman filter alignment process. State anchor points are established using the weld seam location as known geographical coordinates, and independent re-estimation is performed in different zones. This reduces axial and circumferential positioning errors, fundamentally suppressing the systematic misalignment of the unfolded signal map caused by odometer slippage and IMU integral drift. The alignment results, signal quality, and re-initialization form a closed-loop iteration, with the weld seam anchor points periodically returning accumulated drift to zero, avoiding the problem of unidirectional accumulation of alignment errors.

[0016] This application performs subpixel-level cross-correlation alignment of the magnetic flux leakage signal channel and the ultrasonic wave expansion signal channel using a normalized cross-correlation function, enabling signal-level fusion of the two modes under the same axial grid. The cross-correlation peak directly provides the axial offset of the two channels and is used for resampling, eliminating spatial misalignment caused by inconsistent axial sampling grids of different mode data, avoiding spatial ambiguity in the feature-level stitching alignment process, improving prediction accuracy, and reducing false alarm rate.

[0017] This application explicitly injects the physical constraints of the pipeline into the loss function through an axial-circumferential dual-constraint segmentation model, and combines an axial-depth coupling empirical formula to perform physical mechanism-driven defect quantification. The physical priors of restricted axial extension and circumferential closed continuity suppress false detection of connected regions with non-physical morphology, while the physical relationship of depth decaying exponentially with axial extension and crack depth increasing with the square root of axial extension length makes the quantification results interpretable and independent of large-scale labeled samples. This improves the accuracy of defect depth prediction and has a significantly better generalization ability for rare defects with small samples.

[0018] This application compares the current and historical complete signal response sequences at the same axial position through consistency verification, rather than relying solely on single-point position matching, which significantly reduces the interference of mileage error between detection cycles on growth assessment. Attached Figure Description

[0019] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 A flowchart of a pipeline inner wall defect detection method based on signal graph processing and analysis provided in an embodiment of the present invention; Figure 2 This is a flowchart of the three-closed-loop spatiotemporal alignment of axial, circumferential, and signal quality provided in the embodiments of the present invention; Figure 3 This is a flowchart of the multimodal refined unfolded signal map cross-correlation calculation and cubic spline resampling alignment provided by an embodiment of the present invention; Figure 4 This is a flowchart provided by an embodiment of the present invention, which determines the defect candidate region based on the defect candidate probability map, drives the axial-depth coupling defect evidence quantification through physical mechanisms, and outputs the defect result or normal result based on the comparison between the predicted defect depth and the preset depth threshold. Figure 5 This is a schematic diagram of a pipeline inner wall defect detection device based on signal graph processing and analysis provided in an embodiment of the present invention. Detailed Implementation

[0022] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0023] It should be noted that, in this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0024] Example 1 like Figure 1 As shown, this invention provides a method for detecting defects in the inner wall of a pipe based on signal image processing and analysis, comprising the following steps: S100: Acquire multimodal data of pipeline internal detection and pipe wall structural features, as well as synchronized mileage encoding data and IMU attitude angle data. The multimodal internal detection data includes at least one of magnetic flux leakage signal data and ultrasonic signal data; the pipe wall structural feature data includes weld marking data, elbow position data, and pipe wall curvature data.

[0025] An in-pipe detector carrying a magnetic flux leakage (MFL) probe array and an ultrasonic probe array travels inside the pipe, simultaneously acquiring multimodal in-pipe detection data, odometer-coded data, IMU attitude angle data, and pipe wall structural feature data. The in-pipe detector is equipped with a multi-channel MFL probe array, with probes evenly distributed along the pipe circumference. Each channel has a sampling rate of 16kHz, and the signal is digitized using a 16-bit ADC after 60dB pre-amplification and anti-aliasing filtering at a cutoff frequency of 2kHz. During the detector's movement, the original sampling sequence is processed by moving average and thinning before outputting the MFL signal data. The in-pipe detector is also equipped with a multi-channel ultrasonic probe array, with probe wafer excitation frequency of 10MHz and pulse repetition frequency of 4kHz. The echo is time-gated to extract the wall thickness reflection signal, outputting the ultrasonic signal data.

[0026] The odometer configured in the pipe detector generates odometer-coded data and records it synchronously with the magnetic flux leakage signal data and ultrasonic signal data on the same time reference in the form of a pulse counting sequence. The IMU configured in the pipe detector outputs triaxial attitude angle data, of which the roll angle around the pipe axis is used for circumferential positioning.

[0027] The process of obtaining the structural features of the pipe wall is as follows: When the detector inside the pipeline passes through the weld, it reads the electromagnetic weld mark to achieve axial positioning of the weld mark; at the same time, it records the axial coordinates of the weld provided by the pipeline construction drawings. The two together constitute the weld mark data.

[0028] The pipe wall curvature data is calculated from the IMU angular velocity and the odometer velocity. Let the IMU output angular velocity about the pipe axis be ω, and the odometer output velocity be v, then the pipe wall curvature is... The radius of curvature is ,in, R is the curvature of the pipe wall and the radius of curvature.

[0029] Based on the nominal diameter D of the pipe, when the radius of curvature satisfies R≤3D, the pipe section is marked as an elbow position and the start and end mileage of the elbow is recorded to form elbow position data. The elbow position data, together with the weld marking data and the pipe wall curvature data, are used as pipe wall structural feature data to participate in the arrangement of state anchor points in subsequent steps.

[0030] S200 constructs a three-closed-loop spatiotemporal alignment framework of axial, circumferential, and signal quality to map multimodal detection data to precise axial and circumferential coordinate sequences, forming a refined unfolded signal map with spatiotemporal alignment.

[0031] Kalman filtering is performed on odometer-coded data and IMU attitude angle data to fuse initial axial and circumferential coordinate sequences. Multimodal detection data is spatially mapped according to the initial axial and circumferential coordinate sequences to obtain an initial unfolded signal map. Signal quality assessment is performed on the initial unfolded signal map to detect the existence of signal distortion regions and determine whether these regions are alignment feedback trigger zones. Specifically, when the axial span of a signal distortion region exceeds a preset number of sampling points and an axial length threshold, the signal distortion region is marked as an alignment feedback trigger zone, indicating spatial misalignment. The alignment feedback trigger zone triggers Kalman filter reinitialization, establishing state anchor points at the positions corresponding to the weld markings. The axial and circumferential coordinate sequences between the anchor points are re-estimated to obtain refined axial and circumferential coordinate sequences for signal unfolding. This process is repeated until the signal quality assessment results meet the preset quality convergence conditions. A refined unfolded signal map is then output.

[0032] In the specific implementation process, such as Figure 2As shown, the process includes: S201, the three-closed-loop spatiotemporal alignment framework of axial, circumferential and signal quality performs initial fusion of the in-pipe detector state characterized by odometer coding data and IMU attitude angle data using Kalman filtering to obtain the initial axial coordinate sequence and the initial circumferential coordinate sequence.

[0033] Obtain the state vector of the detector inside the pipeline at the t-th filtering time: ,in, Let be the axial position at the t-th filtering time. Let be the circumferential attitude angle at the t-th filtering time. Let be the axial velocity at the t-th filtering time. Let be the angular velocity at the t-th filtering time.

[0034] Constructing state transition equations based on state vectors: ; in, Let F be the state prediction matrix, and B be the control input matrix. For odometer incremental control input, The process noise has a covariance matrix that is diagonal. The diagonal elements of this matrix correspond to the process noise variances of the four state components: axial position, circumferential attitude angle, axial velocity, and angular velocity. This is expressed as... The filtering time step Δt is used to substitute the kinematic coupling terms of position-velocity and attitude angle-angular velocity in F.

[0035] The measurement equation is constructed based on the state vector, measurement matrix, and measurement noise. ,in, H is the measurement vector, and H is the measurement matrix, which controls only the directly observed axial position and circumferential attitude angle. To measure noise, its covariance matrix is: The corresponding standard deviation of the odometer measurement noise is 0.05m and the standard deviation of the IMU angle measurement noise is 0.02rad.

[0036] The following formulas are used to perform Kalman filtering to update the initial axial coordinate sequence and the initial circumferential coordinate sequence: , , , in, For Kalman gain, The one-step prediction error covariance matrix, Let I be the updated error covariance matrix, and let I be the identity matrix. This is the updated status.

[0037] In practice, Kalman filtering can be replaced by extended Kalman filtering or unscented Kalman filtering. Extended Kalman filtering performs a first-order Taylor expansion of the state transition equation and the measurement equation at the estimation point, and is suitable for scenarios where changes in pipe wall curvature cause nonlinearities in the state transition; unscented Kalman filtering propagates the state distribution through deterministic sampling points, and is suitable for densely packed pipe sections with higher degrees of nonlinearity.

[0038] S202, the three-closed-loop spatiotemporal alignment framework of axial, circumferential and signal quality, maps the multimodal detection data to the unfolded signal map space with axial position as the horizontal axis and circumferential angle as the vertical axis according to the initial axial coordinate sequence and the initial circumferential coordinate sequence to obtain the initial unfolded signal map. Each pixel in the unfolded signal map corresponds to the intersection of an axial sampling position and a circumferential angle.

[0039] S203: Calculate the signal quality response value for each axial position of the initial unfolded signal map, perform signal quality assessment according to the signal quality response value, detect whether there is a signal distortion region, and determine whether the signal distortion region is an alignment feedback trigger area.

[0040] Specifically, the signal quality response value is calculated for each axial position of the initial unfolded signal map: ; in, Axial position Signal quality response value at the location, For The local signal standard deviation within a window centered on and pre- and post-a certain number of sampling points. The global signal standard deviation is the total unfolded signal plot. This refers to the local signal-to-noise ratio within the window. and The weighting coefficients and In this embodiment, .

[0041] Perform signal quality assessment based on signal quality response values, and detect the presence of signal distortion areas, including: setting a quality acceptance threshold. and quality distortion threshold An axial position where the signal quality response value is higher than the quality qualification threshold is considered to have qualified signal quality; an axial interval where the signal quality response value is lower than the quality distortion threshold and the number of continuous sampling points is not less than a set number is considered to be a signal distortion region.

[0042] Determine whether the axial span of the signal distortion region exceeds the set axial length threshold. If so, mark the signal distortion region as the alignment feedback trigger area.

[0043] If the distance traveled or the angle of rotation of the detector inside the pipe is incorrect, the unfolded signal map mapped by spatiotemporal alignment will be distorted. This distortion manifests as aberration at the signal processing level. For example, axial errors can cause signal "stretching" or "compression." When the detector moves inside the pipe, if the odometer slips and the calculation is off, the recorded distance will be inaccurate. If it actually travels 1 meter, but the odometer only records 0.9 meters, the unfolded signal map will forcibly compress the pipe data that should belong to the 1-meter length into a 0.9-meter image range. The physical features in the signal image will be squeezed and narrowed in the axial direction; conversely, if the odometer records too much, the features will be stretched. This geometric stretching or compression will change the signal waveform, causing abnormal changes in the signal's local statistical characteristics. Similarly, circumferential errors can cause signal "misalignment" or "distortion," blurring the edges of features, making the signal cluttered, and causing abnormalities in the signal's local statistical regularities. Therefore, by detecting distortions in signal quality, it is possible to infer that the position estimation of that area has deviated, thus triggering spatial calibration.

[0044] S204, the alignment feedback triggering area triggers Kalman filter re-initialization within the independent state interval, establishes state anchor points at the positions corresponding to the weld markings, re-estimates the axial coordinate sequence and circumferential coordinate sequence between the anchor points to obtain a refined axial coordinate sequence and circumferential coordinate sequence, and performs signal expansion.

[0045] Using the axial coordinates of the weld marking data as known geographic coordinates, state anchor points are established. The state estimation error covariance matrix at each anchor point is set. For example, the state estimation error covariance matrix at the anchor point is... The variance of the axial position of the anchor point is 2.5 × 10⁻⁶. -5 The corresponding standard deviation is approximately 5mm, matching the axial positioning accuracy of the weld mark (±5mm). Using the weld location as the boundary, the pipeline is divided into multiple independent state estimation intervals. Kalman filtering propagation and updates are re-executed on the axial and circumferential coordinate sequences between anchor points, achieving independent estimation of the axial and circumferential coordinate sequences for each interval and suppressing error propagation across intervals.

[0046] S205 is repeated until the change in signal quality evaluation results between two consecutive iterations is less than the quality convergence threshold. Finally, after quality convergence, the refined unfolded signal map, refined axial coordinate sequence, and refined circumferential coordinate sequence are output. To avoid iterating indefinitely without meeting the quality convergence threshold, a safety upper limit on the number of iterations is set. When the upper limit is reached, the signal data is forcibly mapped according to the refined axial coordinate sequence and refined circumferential coordinate sequence to output the current unfolded signal map.

[0047] S300, if the input is composite data, perform multimodal unfolded signal map cross-correlation alignment on the multimodal unfolded map spectrum.

[0048] The model in this application supports the analysis of single magnetic flux leakage (MFL) signal data, single ultrasonic signal data, and composite data of MFL and ultrasonic signals. When the multimodal detection data includes both MFL and ultrasonic signal data, there may be inconsistencies in the axial sampling intervals. For example, the axial sampling interval for MFL might be 5 mm / point, while the axial sampling interval for ultrasonic signals might be 1 mm / point, indicating a mismatch. This invention maps the MFL and ultrasonic signal data to MFL and ultrasonic unfolded signal channels, respectively. It calculates the normalized cross-correlation function between the MFL and ultrasonic unfolded signal channels, determines the axial offset between different modes based on the peak position of the normalized cross-correlation function, and resamples the ultrasonic unfolded signal channel based on the axial offset to obtain a multimodal aligned unfolded signal map. Otherwise, the refined unfolded signal map is directly used as the input for the next step. Figure 3 As shown, the specific process includes: S301, Signal mapping stage: The leakage magnetic signal data is mapped line by line into leakage magnetic expansion signal channels according to the circumferential channels, and the ultrasonic signal data is mapped line by line into ultrasonic expansion signal channels according to the circumferential channels. S302, using the leakage magnetic field expansion signal channel as the reference signal x[n] and the ultrasonic wave expansion signal channel as the target signal y[n], calculate the normalized cross-correlation function at each axial position of the multimodal refined expansion signal map: ; in, This represents the normalized cross-correlation value corresponding to the offset k. Let n be the value of the reference signal at the nth sampling point. Let be the value of the target signal at the (n+k)th sampling point, where n is the sampling point number and k is the offset in terms of sampling points. The cross-correlation calculation window length is 1000 reference signal sampling points, corresponding to an axial length of 5m; the window sliding step size is 100 reference signal sampling points, corresponding to an axial length of 0.5m; and the offset search range is ±500 reference signal sampling points, corresponding to an axial length of ±2.5m, to cover the typical range of cumulative offset in the bend section.

[0049] S303, the cross-correlation peak position is determined by calculating the normalized cross-correlation function at each axial position of the multimodal refined expanded signal map: Among them, the normalized cross-correlation value Three-point parabolic interpolation is used in the neighborhood of the peak to improve the resolution of the peak position to the sub-pixel level and enhance the resolution of the corresponding axis.

[0050] S304, the axial offset is obtained based on the cross-correlation peak position located by the normalized cross-correlation function and the axial sampling interval: ; in, This represents the sampling point offset corresponding to the cross-correlation peak value. For the axial sampling interval, this embodiment uses a 5mm axial sampling interval for the leakage magnetic flux expansion signal channel as the reference grid. .

[0051] S305, based on axial offset Perform cubic spline interpolation resampling on the ultrasonic wave unfolding signal channel: ; in, This represents the value of the ultrasonic wave unfolding signal channel at the i-th axial sampling position and the j-th circumferential channel after resampling. Let be the cubic spline interpolation function used to construct the original ultrasonic wave signal channel. Let be the axial coordinate of the i-th axial sampling position. Let be the circumferential angle of the j-th circumferential channel.

[0052] After resampling, the magnetic flux leakage unfolding signal channel and the ultrasonic unfolding signal channel are aligned under the same axial grid, and a multimodal aligned unfolding signal map is output.

[0053] In one example, the normalized cross-correlation calculation is replaced with a cross-correlation algorithm based on Fast Fourier Transform (FFT). This involves performing FFT on the reference signal and the target signal, multiplying them in the frequency domain, and then performing an inverse transform to obtain the cross-correlation sequence. This method is suitable for long-distance detection scenarios.

[0054] S400, construct and train the axial-circumferential dual-constraint segmentation model for pipeline physical constraint injection to perform defect segmentation inference on single or compound multimodal internal detection data: input the multimodal aligned unfolded signal map or the refined unfolded signal map of a single signal into the axial-circumferential dual-constraint segmentation model for defect segmentation analysis; The axial-circumferential dual-constraint segmentation model includes: an axial path network that extracts signal features along the axial direction and injects axial extension constraints; a circumferential path network that extracts signal features along the circumferential direction and injects circumferential closing constraints; a fusion module that cross-fuses the features of the axial path network and the circumferential path network to obtain a fused feature map; and a candidate probability map output module that outputs a defect candidate probability map based on the fused feature map.

[0055] The axial path network employs a one-dimensional convolutional neural network, sliding along the axial direction to extract local features of the signal sequence. The convolution process does not cross circumferential channels. The axial path network consists of several stacked one-dimensional convolutional layers with the number of output channels doubling sequentially. After each convolutional layer, a batch normalization layer and a ReLU activation function are sequentially applied, and the final layer outputs an axial feature map. The axial extension constraint is injected into the loss function of the axial path network, including: the extension length of the defect candidate connected region in the axial direction does not exceed a preset axial extension upper limit, and the signal response gradient of adjacent axial sampling points satisfies a preset axial continuity condition; the axial extension upper limit is determined based on the pipe diameter D.

[0056] For example, the kernel size of a one-dimensional convolutional neural network is 3×1. The axial path network contains four one-dimensional convolutional layers with channel numbers of 32, 64, 128, and 256 respectively. Each convolutional layer is followed by a batch normalization layer and a ReLU activation function, and the final layer outputs an axial feature map.

[0057] The loss function for the axial path network with injected axial extension constraints is: ;in, This represents the total loss of the axial path network. For pixel-by-pixel segmentation, cross-entropy loss, As the loss weight, this embodiment takes . To introduce the axial extension constraint, the axial extension regularization term is as follows: calculate, Let be the axial length of the candidate connected region of the defect. The axial extension limit is set to ensure that the length of the candidate connected region of the defect in the axial direction does not exceed the preset axial extension limit.

[0058] The preset axial continuity condition satisfied by the signal response gradients of adjacent axial sampling points is: the signal response gradients of adjacent axial sampling points within the defect candidate connected region. No more than the upper limit of gradient ,in Let i be the signal response value of the i-th axial sampling point. The peak value of the signal response within the candidate connected region of the defect is represented. The axial sampling interval; when a gradient exceeds the upper limit of the gradient in the region. When sampling points are selected, the region does not meet the axial continuity condition, and the corresponding prediction is suppressed.

[0059] The upper limit of axial extension is determined based on the pipe diameter D. The upper limit of axial extension for corrosion defects is 2D, and the upper limit of axial extension for crack defects is D / 4.

[0060] The circumferential path network structure is the same as the axial path network structure. The circumferential path network uses circular convolution, where the convolution kernel slides cyclically along the circumferential direction (0-2π) to extract signal features. The circular boundary processing follows... Execution, among which, This represents the signal value at the nth circumferential position after the ring extension. This is the original circumferential signal sequence. The total number of circumferential channels is represented by `mod`, which is used for modulo operations to ensure continuous sliding at the beginning and end of the circumferential splicing. A circumferential closure constraint is injected into the loss function of the circumferential path network, including: the crossing angle of the defect candidate connected region in the circumferential direction does not exceed a preset circumferential crossing upper limit, and the circumferential signal response satisfies the continuity condition at the beginning and end splicing; the circumferential crossing upper limit is π radians.

[0061] Specifically, the loss function for a circumferential path network with injected circumferential closure constraints is: ;in, The total loss of the circumferential path network. For pixel-by-pixel defect segmentation cross-entropy loss in circumferential path networks, For circumferential closed regularization, For the periphery path network loss weights, this embodiment takes... Circumferential closed regularization terms are... The calculation indicates that the span angle of the candidate connected region of the defect in the circumferential direction does not exceed the preset circumferential span limit, where, Let be the angle spanned by the candidate connected region of the defect in the circumferential direction. To determine the upper limit of the circumferential span, we take π radians.

[0062] The continuity condition of the circumferential signal response at the beginning and end of the splice is as follows: the circumferential signal responses at the first column (θ=0) and the last column (θ=2π) of the expanded signal diagram satisfy the following condition. ,in This is the signal response value of the first column (at a circumferential angle of 0°). This represents the signal response value at the last column (360° circumferential angle). To expand the standard deviation of background noise in the signal diagram; when the difference between the first and last stitches exceeds When the candidate connected region is determined to be connected to the circumferential suture line, the region merging verification on both sides of the suture line is triggered.

[0063] The feature fusion module performs element-wise multiplication and interactive fusion of the feature maps of the axial path network and the circumferential path network at the bottleneck layer of the model: ,in, To fuse feature maps, This is the axial feature map output by the axial path network. This is the circumferential feature map output by the circumferential path network, where ⊙ represents element-wise multiplication.

[0064] The fused feature map is mapped by the candidate probability map output module, which includes upsampling and 1×1 convolution, to output a defect candidate probability map. The probability value represents the confidence that each pixel location belongs to the defect candidate region.

[0065] S500, through physical mechanisms, drives the quantification of evidence for axial-depth coupled defects, such as... Figure 4 As shown, the specific process includes: S501, Based on the defect candidate probability map, determine the defect candidate region, and calculate the axial center position, axial extension half length, circumferential span angle and signal response intensity of each defect candidate region; wherein, based on the defect candidate probability map, perform morphological closing operation to merge fragments in connected regions whose probability values ​​exceed a set probability threshold to obtain the defect candidate region.

[0066] S502. Based on the physical propagation mechanism of corrosion defects, an axial-depth coupling formula is established to calculate the predicted depth of corrosion defects. Specifically, based on the physical propagation mechanism of corrosion extending from the inner wall to the outer wall of the pipe while simultaneously extending axially, the corrosion depth approximately follows an exponential decay distribution along the axial direction. The axial-depth coupling formula is as follows: , in, Axial position Defect prediction depth at the location, For the nominal wall thickness of the pipe, this embodiment uses an X65 steel pipe with a diameter of Φ711×14.2 as an example. =14.2mm, The axial center position of the defect candidate region. It is half the length of the axial extension. The signal quality vector based on the defect candidate region The confidence weighting factor. The physical mechanism reflected in the axial-depth coupling formula of corrosion defects is: the farther away from the corrosion center, the corrosion depth decreases exponentially, and the axial extension half-length. The larger the value, the smoother the decay. The confidence weighting factor is calculated as follows: ; Calculate, where, The signal-to-noise ratio of the defect candidate region. This represents the number of valid sampling points with acceptable signal quality within the defect candidate region. This represents the total number of sampling points in the defect candidate region. The weighting coefficients of the confidence weighting factor and In this embodiment, The signal quality acceptance threshold is used to determine whether the signal quality is acceptable. When the signal-to-noise ratio of the defect candidate region is low or the proportion of effective sampling points is small, the confidence weighting factor is automatically reduced, thereby reducing the prediction depth weight of the low-quality region.

[0067] S503, based on the physical mechanism of crack defects, establishes an axial-depth coupling formula for calculating the predicted depth of crack defects; specifically, as the crack extends axially, its depth increases, and the depth and axial extension length approximately satisfy a square root relationship: , in, The crack is located in the axial direction. Predicted depth at that location Let be the crack propagation coefficient. The crack is located in the axial direction. The length of the extension at that point.

[0068] S504, based on the comparison between the predicted defect depth and the preset depth threshold, output the defect result or the normal result.

[0069] The system compares the predicted depth of a defect with a depth threshold and then outputs either a defect result or a normal result: If the predicted corrosion depth is below the first corrosion depth threshold, a normal result is output, classified as noise or a minor defect that does not affect pipeline health; if the predicted corrosion depth is not lower than the first corrosion depth threshold but lower than the second corrosion depth threshold, a minor defect is output; if the predicted corrosion depth is not lower than the second corrosion depth threshold but lower than the third corrosion depth threshold, a moderate defect is output; if the predicted corrosion depth is not lower than the third corrosion depth threshold, a severe defect is output and marked as requiring repair. Similarly, crack defects are classified according to the maximum axial crack depth.

[0070] In one implementation, longitudinal consistency verification is performed on the detection results from multiple detection rounds using retained historical data according to the correlation coefficient. The defect development is then analyzed based on the longitudinal consistency verification results combined with historical detection results, including: Record the axial position sequence and signal response sequence corresponding to the defect candidate region after each detection to form a longitudinal history sequence; Specifically, after each inspection, the information of each defect candidate region is written into the vertical historical database as a vertical historical sequence. The vertical historical sequence includes a unique defect identifier, axial position sequence, circumferential position sequence, signal response sequence, predicted depth sequence, and inspection timestamp sequence. The unique defect identifier `defect_id` is... Generate, where, The axial center position of the defect candidate region. The circumferential center angle of the defect candidate region, where D is the nominal diameter of the pipe. This is the vertical matching threshold. The circumferential matching angle threshold is used, and the hash function is SHA-256. The first 16 hexadecimal characters of the hash value are taken as the unique identifier of the defect. Since the axial center position and the circumferential center angle of the defect candidate region are quantized according to the matching threshold and then hashed, the coordinate perturbations caused by the positioning drift of the same defect in different detection rounds fall into the same quantization grid, thus generating the same unique defect identifier and realizing the unique identification of the same defect in multiple detections.

[0071] In subsequent detection, when a candidate region is detected whose axial position differs from that of a candidate defect region in the longitudinal historical sequence by no more than a preset longitudinal matching threshold, longitudinal consistency verification is performed according to the correlation coefficient. Specifically, in subsequent detection, for each candidate region obtained in the current detection, a search is conducted in the longitudinal historical database to find the axial position that satisfies the threshold. The historical record, among which, This represents the axial position of the current candidate region. The current candidate region is determined to be a position match with the historical defect record if the axial position difference does not exceed the longitudinal matching threshold. Records with a circumferential position difference of more than 30° are not included in the matching.

[0072] Based on the correlation coefficient, a defect growth report, new defect markers, or anomaly region verification markers are output according to the degree of longitudinal consistency. Specifically, for candidate region pairs with matching locations, the correlation coefficient between the current candidate region signal response sequence and the historical signal response sequence is calculated as the degree of longitudinal consistency. , Where ρ is the correlation coefficient between the current candidate region signal response sequence and the historical signal response sequence. This is the signal response sequence of the current candidate region. This is the historical signal response sequence at the corresponding position in the longitudinal historical sequence. Let represent the inner product, and ||| represent the vector norm. The correlation coefficient calculation window takes 50 sampling points centered on the axial matching position, and the signal response sequence of the current candidate region is used. Historical signal response sequence at the corresponding position in the longitudinal historical sequence All values ​​are taken after being aligned with the axial position within the window.

[0073] The judgment result is output in three categories based on the correlation coefficient between the current candidate region signal response sequence and the historical signal response sequence: When ρ is greater than or equal to a preset consistency threshold, it is confirmed as the growth of the same defect. The defect growth rate is calculated and a defect growth report is output. For example, when At that time, the growth of the same defect was confirmed; among which, the defect growth rate was: , in, For defect growth rate, The predicted depth of the currently detected defects. For the depth of defect prediction based on historical detections, The time interval between two tests; When ρ is less than or equal to the preset abnormal threshold, a new defect marker is output. For example, when... When this occurs, it is determined to be a new defect and a new defect marker is output; When ρ is greater than the preset anomaly threshold and less than the preset consistency threshold, an anomaly area review mark is output and a manual review process is triggered.

[0074] Example 2 See Figure 5 As shown, this embodiment of the invention provides a pipe inner wall defect detection device based on signal graph processing and analysis, comprising: at least one processing unit, the processing unit being connected to a storage unit via a bus unit, the storage unit serving as a computer-readable storage medium, which can be used to store software programs, computer-executable programs, and modules, such as the software program, computer-executable program, and modules corresponding to the pipe inner wall defect detection method based on signal graph processing and analysis in this embodiment of the invention. The processing unit implements the aforementioned pipe inner wall defect detection method based on signal graph processing and analysis by running the software program, computer-executable program, and modules stored in the storage unit.

[0075] Of course, the computer program stored in the storage unit of the pipeline inner wall defect detection system based on signal graph processing and analysis provided in the embodiments of the present invention is not limited to the operation of the method described above, and can also execute related operations in the pipeline inner wall defect detection method based on signal graph processing and analysis provided in any embodiment of the present invention.

[0076] Example 3 This invention provides a computer-readable storage medium storing a computer program. When the computer program is executed, it implements the pipeline inner wall defect detection method based on signal graph processing and analysis.

[0077] The computer-readable storage medium provided in this embodiment of the invention stores a computer program that is not limited to the method operation described above, but can also execute related operations in the pipeline inner wall defect detection method based on signal graph processing and analysis provided in any embodiment of the invention.

[0078] In the embodiments provided by this invention, it should be understood that the disclosed structures and methods can be implemented in other ways. For example, the structural embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, structures, or units, and may be electrical, mechanical, or other forms.

[0079] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0080] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0081] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for detecting defects in the inner wall of a pipe based on signal pattern processing analysis, characterized in that, include: Acquire multimodal internal detection data of the pipeline, pipe wall structural features, and synchronized mileage coding data and inertial measurement unit (IMU) attitude angle data: the multimodal internal detection data includes at least one of magnetic flux leakage signal data and ultrasonic signal data; the pipe wall structural feature data includes weld marking data, elbow position data, and pipe wall curvature data; A three-closed-loop spatiotemporal alignment framework encompassing axial, circumferential, and signal quality is constructed to map multimodal intramodal detection data to precise axial and circumferential coordinate sequences, forming a refined spatiotemporally aligned unfolded signal map. If the input is composite data, perform multimodal unfolded signal map cross-correlation calculation and cubic spline resampling alignment on the multimodal unfolded signal map; An axial-circumferential dual-constraint segmentation model with pipeline physical constraint injection is constructed and trained to perform defect segmentation inference on single or composite multimodal internal detection data. The axial-circumferential dual-constraint segmentation model includes an axial path network that extracts signal feature maps along the axial direction and injects axial extension constraints, a circumferential path network that extracts signal feature maps along the circumferential direction and injects circumferential closing constraints, a feature fusion module that fuses the feature maps of the axial path network and the circumferential path network to obtain a fused feature map, and a candidate probability map output module that outputs a defect candidate probability map based on the fused feature map. Based on the defect candidate probability map, the defect candidate region is determined, and the axial-depth coupling defect evidence quantification is driven by physical mechanism. Based on the comparison between the defect prediction depth and the preset depth threshold, the defect result or normal result is output. Among them, based on the physical expansion mechanism of corrosion defects, an axial-depth coupling empirical formula is established to calculate the defect prediction depth.

2. The pipeline inner wall defect detection method based on signal image processing and analysis according to claim 1, characterized in that, A three-loop spatiotemporal alignment framework encompassing axial, circumferential, and signal quality is constructed to map multimodal intramodal detection data to precise axial and circumferential coordinate sequences, forming a refined spatiotemporally aligned unfolded signal map, including: The three-closed-loop spatiotemporal alignment framework of axial, circumferential and signal quality performs initial fusion of the in-pipe detector state characterized by odometer coding data and IMU attitude angle data using Kalman filtering to obtain initial axial coordinate sequence and initial circumferential coordinate sequence; wherein the state vector of Kalman filtering includes axial position, circumferential attitude angle, axial velocity and angular velocity. The three-closed-loop spatiotemporal alignment framework of axial, circumferential and signal quality maps the multimodal detection data to the unfolded signal map space with axial position as the horizontal axis and circumferential angle as the vertical axis to obtain the initial unfolded signal map based on the initial axial coordinate sequence and the initial circumferential coordinate sequence. Calculate the signal quality response value for each axial position of the initial unfolded signal map, perform signal quality assessment based on the signal quality response value, detect the existence of signal distortion regions, and determine whether the signal distortion region is an alignment feedback trigger area; The alignment feedback triggering zone triggers Kalman filter re-initialization within the independent state interval, establishes state anchor points at the positions corresponding to the weld markings, re-estimates the axial and circumferential coordinate sequences between the anchor points to obtain refined axial and circumferential coordinate sequences, and performs signal expansion; Repeat the above process iteratively until the quality convergence condition is met.

3. The pipeline inner wall defect detection method based on signal image processing and analysis according to claim 2, characterized in that, Calculate the signal quality response value for each axial position of the initial unfolded signal diagram: ; in, Axial position Signal quality response value at the location, For The local signal standard deviation within a window centered on and pre- and post-a certain number of sampling points. The global signal standard deviation is the total unfolded signal plot. This refers to the local signal-to-noise ratio within the window. and The weighting coefficients and .

4. The method for detecting defects in the inner wall of a pipeline based on signal image processing and analysis according to claim 1, characterized in that, If the input is composite data, the multimodal refined unfolded signal map is subjected to multimodal unfolded map cross-correlation calculation and cubic spline resampling alignment, which includes: mapping the magnetic flux leakage signal data and the ultrasonic signal data to magnetic flux leakage unfolded signal channels and ultrasonic unfolded signal channels, respectively; calculating the normalized cross-correlation function between the magnetic flux leakage unfolded signal channels and the ultrasonic unfolded signal channels; determining the axial offset between different modes based on the peak position of the normalized cross-correlation function; and resampling the ultrasonic unfolded signal channels based on the axial offset to obtain a multimodal aligned unfolded signal map.

5. The method for detecting defects in the inner wall of a pipeline based on signal image processing and analysis according to claim 1, characterized in that, The axial path network uses a one-dimensional convolutional neural network to extract local features of the signal sequence by sliding along the axial direction. The axial path network contains several stacked one-dimensional convolutional layers with the number of output channels doubling in sequence. After each convolutional layer, a batch normalization layer and a ReLU activation function are connected in sequence, and the final layer outputs an axial feature map. The extension length of the defect candidate connected region in the axial direction does not exceed the preset axial extension upper limit, and the signal response gradient of adjacent axial sampling points satisfies the preset axial continuity condition.

6. The method for detecting defects in the inner wall of a pipeline based on signal image processing and analysis according to claim 1, characterized in that, The circumferential path network structure is consistent with the axial path network, employing circular convolution. The convolution kernel of the circular convolution slides cyclically along the circumferential direction to extract signal features, and the circular boundary processing follows... Execution, among which, This represents the signal value at the nth circumferential position after the ring extension. This is the original circumferential signal sequence. The total number of circumferential channels is denoted by mod, which is used for modulo operation to ensure continuous sliding at the beginning and end of the circumferential splicing. The circumferential closure constraint is injected into the loss function of the circumferential path network, including: the crossing angle of the defect candidate connected region in the circumferential direction does not exceed the preset circumferential crossing upper limit, and the circumferential signal response satisfies the continuity condition at the beginning and end splicing.

7. The method for detecting defects in the inner wall of a pipeline based on signal image processing and analysis according to claim 1, characterized in that, The feature fusion module performs element-wise multiplication and interactive fusion of the feature maps of the axial path network and the circumferential path network at the bottleneck layer of the model: ,in, To fuse feature maps, This is the axial feature map output by the axial path network. This is the circumferential feature map output by the circumferential path network, where ⊙ represents element-wise multiplication; The fused feature map is mapped by the candidate probability map output module, which includes upsampling and 1×1 convolution, to output a defect candidate probability map. The probability value represents the confidence that each pixel location belongs to the defect candidate region.

8. The method for detecting defects in the inner wall of a pipeline based on signal image processing and analysis according to claim 1, characterized in that, The quantification of evidence for axial-depth coupled defects is driven by physical mechanisms, and the specific process includes: Based on the defect candidate probability map, defect candidate regions are determined, and the axial center position, axial extension half length, circumferential span angle, and signal response intensity of each defect candidate region are calculated. Based on the physical propagation mechanism of corrosion defects, the corrosion depth follows an exponential decay distribution along the axial direction. A confidence weighting factor based on signal quality is introduced to establish an axial-depth coupling formula for corrosion defects, and the predicted depth of corrosion defects is calculated. Based on the physical mechanism of crack defects, an axial-depth coupling formula for crack defects is established to calculate the predicted depth of crack defects. Based on the comparison between the predicted defect depth and the preset depth threshold, the defect result or normal result is output.

9. The method for detecting defects in the inner wall of a pipeline based on signal image processing and analysis according to claim 1, characterized in that, Using retained historical data, longitudinal consistency verification is performed on the detection results across multiple detection rounds based on correlation coefficients. Defect development is analyzed based on the longitudinal consistency verification results combined with historical detection results, including: The axial position sequence and signal response sequence corresponding to the defect candidate region after each detection are recorded to form a longitudinal history sequence. The longitudinal history sequence includes a unique defect identifier, an axial position sequence, a circumferential position sequence, a signal response sequence, a predicted depth sequence, and a detection timestamp sequence. The unique defect identifier is obtained by quantizing the axial center position and the circumferential center angle of the defect candidate region according to a matching threshold and then hashing them. In subsequent detection, when a candidate region is detected whose axial position differs from that of a certain defect candidate region in the longitudinal historical sequence by no more than a preset longitudinal matching threshold, longitudinal consistency verification is performed according to the correlation coefficient. Based on the longitudinal consistency level determined by the correlation coefficient, a defect growth report, a new defect marker, or an anomaly region verification marker is output. The longitudinal consistency level is the correlation coefficient between the current candidate region signal response sequence and the historical signal response sequence of a pair of candidate regions with matching positions. When the correlation coefficient is greater than or equal to a preset consistency threshold, it is confirmed as the growth of the same defect, and a defect growth report is output. When the correlation coefficient is less than or equal to a preset anomaly threshold, a new defect marker is output. When the correlation coefficient is greater than the preset anomaly threshold but less than the preset consistency threshold, an anomaly region verification marker is output.

10. A pipe inner wall defect detection device based on signal image processing and analysis, characterized in that, include: At least one processing unit is provided, the processing unit being connected to a storage unit via a bus unit, the storage unit being used for a computer-executable program, and the processing unit implementing the pipeline inner wall defect detection method based on signal graph processing and analysis as described in any one of claims 1-9 by running the computer-executable program stored in the storage unit.

Citation Information

Patent Citations

  • A smart analysis system and method for detecting magnetic flux leakage data inside pipelines

    CN109783906B