A training data generation method, device and equipment
By acquiring a defect parameter library and full matrix data, reconstructing fully focused images using multiple propagation path models, establishing spatial mapping relationships, and generating label information, the problem of unified organization of training data in pipeline circumferential weld inspection is solved. This achieves large-scale, automated, and standardized generation of training data, improving the efficiency and accuracy of defect detection.
Patent Information
- Application Number
- CN202611583028.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-13
- Publication Date
- 2026-11-27
AI Technical Summary
In the field of pipeline circumferential weld inspection, existing training data construction methods lack a unified organization of multi-path fully focused data, resulting in isolated images from each other and an inability to form a structured training sample set. Furthermore, automatic defect identification methods suffer from insufficient training sample quantity, difficulty in obtaining defect data, and high manual annotation costs.
By acquiring a defect parameter library, obtaining full matrix data based on detection process parameters, performing full-focus reconstruction using multiple propagation path models, establishing spatial mapping relationships between full-focus images, and generating label information, the full matrix data, full-focus images, label information, and detection process parameters are associated and encapsulated to form target training data.
It enables large-scale, automated, and standardized generation of training data, solves the problem of missing data production mechanisms for multi-path full-focus modalities, improves defect detection and characterization capabilities, and reduces manual annotation costs.
Smart Images

Figure CN123181968A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a training data generation method, apparatus and device. Background Technology
[0002] Full-focus imaging technology possesses high defect detection and characterization capabilities, making automatic defect identification methods based on full-focus images a research hotspot. However, in the field of pipeline circumferential weld inspection, automatic defect identification methods generally suffer from insufficient training samples, difficulty in acquiring defect data, and high costs associated with manual annotation.
[0003] Existing training data construction methods typically generate and label samples using a single full-focus image. However, existing methods lack a unified organization for full-focus data across multiple propagation paths, resulting in isolated images from each other and an inability to form a structured training sample set. Summary of the Invention
[0004] This invention provides a training data generation method, apparatus, and device to achieve the effects of large-scale, automated, and standardized training data generation.
[0005] According to one aspect of the present invention, a method for generating training data is provided, characterized in that it includes: Obtain a defect parameter library, wherein the defect parameter library contains defect parameters of at least one defect sample; For each defect sample, based on the detection process parameters, the full matrix data corresponding to the defect sample is acquired in a full matrix acquisition method. The detection process parameters are the process conditions configured for the defect sample during the detection process, and the full matrix data includes time-domain echo signals under multiple transmit-receive array element combinations. For each full matrix data, full-focus reconstruction is performed based on multiple propagation path models to obtain full-focus images of multiple propagation path modes. A spatial mapping relationship between full-focus images of different propagation path modes is established based on a unified defect coordinate system. The full-focus image is an image of the full matrix data that is focused and superimposed point by point. Based on the defect parameters, label information is generated, and the label information is mapped to the full-focus image of the multiple propagation path modes; The target training data is obtained by associating and encapsulating the full matrix data, the fully focused images of the multiple propagation path modes, the label information, the detection process parameters, and the spatial mapping relationship.
[0006] According to another aspect of the present invention, a training data generation apparatus is provided, the training data generation apparatus comprising: A parameter library acquisition module is used to acquire a defect parameter library, wherein the defect parameter library contains defect parameters of at least one defect sample; The full matrix data acquisition module is used to acquire the full matrix data corresponding to each defect sample based on the detection process parameters and in accordance with the full matrix acquisition method. The detection process parameters are the process conditions configured for the defect sample during the detection process, and the full matrix data includes time-domain echo signals under multiple transmit-receive array element combinations. The relationship establishment module is used to perform full-focus reconstruction based on multiple propagation path models for each full matrix data, to obtain full-focus images of multiple propagation path modes, and to establish spatial mapping relationships between full-focus images of different propagation path modes based on a unified defect coordinate system. The full-focus image is an image of the full matrix data being focused and superimposed point by point. A full-focus image mapping module is used to generate label information based on the defect parameters and map the label information to the full-focus images of the multiple propagation path modes; The target training data acquisition module is used to associate and encapsulate the full matrix data, the fully focused images of the multiple propagation path modes, the label information, the detection process parameters, and the spatial mapping relationship to obtain the target training data.
[0007] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform a training data generation method according to any embodiment of the present invention.
[0008] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement a training data generation method according to any embodiment of the present invention.
[0009] According to another aspect of the present invention, a computer program product is provided, which, when executed by a processor, implements a training data generation method as described in any of the embodiments of the present invention.
[0010] The technical solution provided by this invention involves acquiring a defect parameter library; for each defect sample, acquiring the corresponding full matrix data based on detection process parameters using a full matrix acquisition method; for each full matrix data, performing full-focus reconstruction based on multiple propagation path models to obtain full-focus images of multiple propagation path modes, and establishing a spatial mapping relationship between the full-focus images of different propagation path modes based on a unified defect coordinate system; generating label information based on defect parameters and mapping the label information to the full-focus images of multiple propagation path modes; and associating and encapsulating the full matrix data, the full-focus images of multiple propagation path modes, the label information, the detection process parameters, and the spatial mapping relationship to obtain target training data. This technical solution solves the problem of the lack of a data production mechanism for generating multiple propagation path full-focus modes and establishing a unified label system for the same full matrix data, achieving the effects of large-scale, automated, and standardized generation of training data.
[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0012] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 A flowchart of a training data generation method provided in an embodiment of the present invention; Figure 2 A schematic diagram of a parametric model of a pipe circumferential weld provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the overall framework of a training data generation method provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of a training data generation device provided in an embodiment of the present invention; Figure 5 A schematic diagram of an electronic device that can be used to implement embodiments of the present invention is shown. Detailed Implementation
[0014] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0015] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0016] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.
[0017] Figure 1 This is a flowchart illustrating a training data generation method provided in an embodiment of the present invention. This embodiment is applicable to situations involving the generation of training data. The method can be executed by the training data generation device in this embodiment, which can be implemented in software and / or hardware, such as... Figure 1 As shown, the method specifically includes the following steps: S110. Obtain the defect parameter library, wherein the defect parameter library contains defect parameters of at least one defect sample.
[0018] In this embodiment, the defect parameter library can be a dataset storing defect parameters, a parameterized description set of defect samples, providing known defect truth values for subsequent full matrix data generation and label information generation. Optionally, the defect parameter library can be obtained in any way. Acquisition methods include, but are not limited to, building, importing, reading, receiving, or calling, etc., and this embodiment does not limit its specific source.
[0019] It should be noted that the defect parameter library contains defect parameters for at least one defect sample. The defect sample can be a descriptive object in the defect parameter library, corresponding to a specific defect or reflector. Optionally, the defect sample can be a descriptive object in the defect parameter library, corresponding to a specific defect or reflector.
[0020] Defect parameters can be parameters that describe the characteristics of a defect sample. Optionally, defect parameters may include type, size, orientation, burial depth, spatial location, etc.
[0021] Specifically, by acquiring a defect parameter library containing defect parameters corresponding to at least one defect sample, a unified data foundation and truth value basis are provided for the entire training data generation method.
[0022] It should be noted that the method of obtaining the defect parameter library is merely illustrative and does not constitute a limitation on the scope of protection of this invention. The defect parameter library can be obtained through various methods such as construction, import, reading, receiving, or calling, as long as a dataset containing defect parameters of at least one defect sample can be provided. Optionally, the defect parameter library is constructed based on the following method: A parameterized model of the circumferential weld seam is obtained based on the structural parameters of the pipeline to be inspected. This model describes the geometric features of the circumferential weld seam. A set of reflectors is constructed, and the reflectors in the set are parametrically described to generate reflector models. The set of reflectors includes at least one of artificial reflectors, welding process reflectors, and real defects. The reflector models describe the geometric features of the corresponding reflectors. The reflector models are embedded into the parameterized model of the circumferential weld seam to form a defect parameter library. Each reflector model corresponds one-to-one with a defect sample, and the parametric descriptions of the reflectors serve as defect parameters.
[0023] In this embodiment, the pipe to be inspected can be a pipe object that needs to be ultrasonically inspected. The structural parameters of the pipe to be inspected can be parameters describing the geometry of the pipe to be inspected.
[0024] A parametric model of a pipe circumferential weld can be a geometric model of the pipe circumferential weld described by parameters. This model is used to describe the geometric features of the circumferential weld of the pipe to be inspected. The geometric features of the circumferential weld can be the geometric shape features of the pipe circumferential weld. These features can describe the geometric information expressed by the parametric model and provide a spatial reference for embedding the reflection model. Optionally, the geometric information may include the pipe diameter, wall thickness, bevel type, weld dimensions, weld reinforcement, and heat-affected zone range of the pipe to be inspected. The parametric model of the pipe circumferential weld can be constructed using three-dimensional digital modeling.
[0025] The reflector set can be a collection of various reflectors. Optionally, this set includes artificial reflectors, weldment process reflectors, and real defects. A reflector can be any structure or object capable of generating an echo in ultrasonic testing. It should be noted that the reflector is the basic descriptive object of the defect parameter library. Each reflector corresponds to one defect sample.
[0026] The artificial reflector can be a reflector artificially machined into the test block or workpiece. This reflector is used to calibrate and verify the testing system. Examples of artificial reflectors include a central through-slot, a Time of Flight Diffraction (TOFD) outer surface groove, a TOFD inner surface groove, a flat-bottomed hole, and a transverse through-hole.
[0027] Welding process reflectors can be reflective structures formed by the weld bevel and weld geometry itself. Examples include filler zone reflectors, hot-weld zone reflectors, blunt edges, capping grooves, root grooves, etc. It should be noted that welding process reflectors are not necessarily defects; they are part of the weld geometry. These reflectors generate echoes during inspection, which may interfere with the interpretation of actual defects; therefore, they are added to the defect parameter library.
[0028] Real defects can be actual discontinuities in the weld or material that need to be detected. For example, real defects can be transverse cracks, longitudinal cracks, or volumetric defects.
[0029] The process of parameter description can involve describing the reflector using parameters. For example, parameter descriptions can include type, size, orientation, burial depth, and spatial location. The reflector model can be a geometric model of the reflector generated based on the parameter description. This model describes the shape, size, orientation, and location of the corresponding reflector.
[0030] Specifically, firstly, based on the structural parameters of the pipeline to be inspected, such as pipe diameter, wall thickness, bevel type, blunt edge size, weld reinforcement, and heat-affected zone range, a parametric model of the pipeline circumferential weld is established using methods such as 3D digital modeling. This model includes the base material region, weld region, heat-affected zone, and inspection region. Figure 2 As shown.
[0031] Secondly, a reflector set is constructed, including at least one of artificial reflectors, welded process reflectors, and real defects. The reflectors in the reflector set are parameterized, that is, the various reflectors or defects in the reflector set are parameterized by type, size, orientation, burial depth, and spatial location, and a correspondence is established with a unified defect coordinate system. Based on the parameter description, the corresponding template or algorithm is called to generate the reflector model.
[0032] Finally, the reflector model is embedded into the parametric model of the pipe circumferential weld to form a defect parameter library. During embedding, the reflector model is placed at the corresponding coordinates in the parametric model of the pipe circumferential weld according to the spatial position and orientation of the reflector, and coordinate alignment and orientation matching are performed. There is a one-to-one correspondence between the reflector model and the defect sample; that is, one reflector model corresponds to one defect sample, and one defect sample corresponds to one reflector model. The parameter description of the reflector serves as the defect parameter; that is, parameters such as the reflector's type, size, orientation, burial depth, and spatial position directly constitute the defect parameter records in the defect parameter library. Through the above implementation method, standardized descriptions of defect parameters and automated generation of defect parameters are achieved.
[0033] S120. For each defect sample, based on the detection process parameters, acquire the full matrix data corresponding to the defect sample using the full matrix acquisition method. The detection process parameters are the process conditions configured for the defect sample during the detection process, and the full matrix data includes time-domain echo signals under multiple transmit-receive array element combinations.
[0034] In this embodiment, the detection process parameters can be the process conditions configured for the defective sample during the detection process. For example, the parameters include at least one of the following: probe center frequency, number of array elements, array element spacing, wedge angle, coupling state, material sound velocity, attenuation coefficient, gain parameter, and scan offset.
[0035] The full-matrix acquisition method can be considered a type of ultrasonic phased array data acquisition. This method sequentially controls each element in the array as a transmitting element, and the remaining elements as receiving elements, recording the echo signals under all transmit-receive combinations. The full-matrix data can be the raw data set acquired using this method. This set includes time-domain echo signals under multiple transmit-receive element combinations.
[0036] Specifically, for each defect sample, the detection process parameters configured for that sample are first acquired. After the detection process parameters are configured, data is acquired from the defect sample using a full matrix acquisition method. This involves sequentially controlling each element in the array as a transmitting element and the remaining elements as receiving elements, recording the ultrasonic echo signals under all transmit-receive combinations to collectively construct the full matrix data corresponding to the defect sample. Multiple sets of different detection process parameters can correspond to the same defect sample, and each set of parameters can generate a corresponding full matrix data set. This improves the training samples' coverage of complex operating conditions and provides a data source for subsequent unified organization, label mapping, and training sample encapsulation.
[0037] S130. For each full matrix data, perform full-focus reconstruction based on multiple propagation path models to obtain full-focus images of multiple propagation path modes, and establish spatial mapping relationships between full-focus images of different propagation path modes based on a unified defect coordinate system. The full-focus image is an image of full matrix data that is focused and superimposed point by point.
[0038] In this embodiment, the propagation path model can be a model describing the geometric propagation path of the sound wave from the transmitting element to the focal point and back to the receiving element. This model can be established based on the detection process and the structural parameters of the object to be detected. The full-focus reconstruction process can be a process of calculating the propagation time of the sound wave from the transmitting element to the focal point and back to the receiving element for each pixel in the imaging area, extracting the amplitude at the corresponding moment from the full matrix data, and performing time-delay superposition on all transmitting-receiving combinations.
[0039] Through the full-focus reconstruction process, full-focus images of multiple propagation path modes are obtained. Each propagation path mode can be an imaging mode corresponding to a propagation path model. Optionally, this mode may include a shear wave-shear wave direct path mode, a single-reflection shear wave-direct shear wave mode, a single-reflection shear wave-single-reflection shear wave mode, a single-reflection shear wave-double-reflection shear wave mode, etc. The full-focus image can be the image obtained after full-focus reconstruction of the entire matrix data.
[0040] A unified defect coordinate system can serve as a coordinate framework for uniformly describing defect locations. This framework can be established using circumferential coordinates, axial coordinates, and wall thickness direction coordinates. The spatial mapping relationship represents the correspondence of pixel coordinates at the same physical location between fully focused images of different propagation path modes.
[0041] Specifically, to describe the geometric propagation path of sound waves from the transmitting element to the focal point and back to the receiving element, multiple propagation path models are first established based on the detection process parameters and the structural parameters of the object to be detected. Each propagation path model corresponds to a wave type combination, number of reflections, and propagation segmentation method, such as the shear wave-shear wave direct path model, the single-reflection shear wave-direct shear wave model, the single-reflection shear wave-single-reflection shear wave model, and the single-reflection shear wave-double-reflection shear wave model, etc.
[0042] After establishing multiple propagation path models, the system performs full-focus reconstruction on the same full-matrix data based on each propagation path model. Specifically, for each pixel in the imaging region, the propagation time of the sound wave from the transmitting element to that pixel and back to the receiving element is calculated according to the propagation path model. The amplitude of the time-domain echo signal at the corresponding moment is extracted from the full-matrix data, and the amplitudes of all transmitting-receiving element combinations are delayed and superimposed to obtain the pixel value of that pixel. The resulting full-focus image is an image obtained by focusing and superimposing the full-matrix data point by point. Because multiple propagation path models are used to perform full-focus reconstruction, the same full-matrix data can generate full-focus images with multiple propagation path modes, allowing each image to describe the same defect from different physical perspectives.
[0043] After obtaining full-focus images of multiple propagation path modes, the system establishes a spatial mapping relationship between the full-focus images of different propagation path modes based on a unified defect coordinate system. By establishing a spatial mapping relationship between images of different modes through a unified defect coordinate system, the same defect corresponds to the same physical coordinate in full-focus images of different propagation path modes, thereby realizing multi-view imaging of the same full matrix data and improving defect detection and characterization capabilities.
[0044] Furthermore, the process of establishing spatial mapping relationships is described in detail. Optionally, spatial mapping relationships between fully focused images of different propagation path modes are established based on a unified defect coordinate system, including: For each propagation path mode's fully focused image, determine the reconstruction grid and image resolution of the fully focused image of the propagation path mode; based on the reconstruction grid and image resolution, establish the coordinate transformation relationship between the pixel coordinates of the fully focused image of the propagation path mode and the unified defect coordinate system; based on the coordinate transformation relationship, map the fully focused images of each propagation path mode to the unified defect coordinate system, and establish the spatial mapping relationship between the fully focused images of different propagation path modes through the unified defect coordinate system.
[0045] In this embodiment, the reconstruction mesh can be the mesh formed by discretizing the imaging region during full-focus reconstruction. This mesh defines the extent, discretization precision, and pixel arrangement of the imaging region. The image resolution can be the physical size represented by each pixel in the full-focus image. This data is used to establish coordinate transformation relationships.
[0046] Pixel coordinates can be the position coordinates of a pixel in a fully focused image. A unified defect coordinate system can be a coordinate framework used to uniformly describe defect locations. This framework is established by circumferential coordinates, axial coordinates, and wall thickness direction coordinates. Coordinate transformation relationships can be the mathematical mapping between pixel coordinates and the unified defect coordinate system. This relationship can include translation, rotation, and scaling parameters, determined by the reconstructed mesh and image resolution.
[0047] Specifically, firstly, the imaging region is discretized to obtain a reconstruction mesh during the full-focus reconstruction process, and the image resolution is obtained based on the full-focus image. By acquiring the full-focus image for each propagation path mode, the correspondence between the pixel coordinates and physical coordinates of the full-focus image is determined.
[0048] After determining the reconstruction mesh and image resolution, the system establishes a coordinate transformation relationship between the pixel coordinates of the fully focused image of this propagation path mode and the unified defect coordinate system. The unified defect coordinate system is a physical coordinate framework jointly established by circumferential coordinates, axial coordinates, and wall thickness direction coordinates. The unified defect coordinate system is expressed as follows: ; in, This indicates the coordinates of the defect's location along the circumference of the circumferential weld. This indicates the coordinates of the defect's position along the weld centerline. This represents the position coordinates of the defect along the wall thickness direction. The position of the pixel origin in the unified defect coordinate system is determined by the reconstructed mesh, and the proportional relationship between pixel spacing and physical distance is determined by the image resolution. Through this coordinate transformation relationship, the coordinates of any pixel in the fully focused image can be converted into physical coordinates in the unified defect coordinate system.
[0049] After establishing the coordinate transformation relationship, the system maps the fully focused images of each propagation path mode to a unified defect coordinate system based on this relationship. After mapping, each pixel in each fully focused image corresponds to a physical coordinate point in the unified defect coordinate system. Based on this, the system establishes a spatial mapping relationship between fully focused images of different propagation path modes through the unified defect coordinate system. Thus, the same defect corresponds to the same physical coordinate in fully focused images of different propagation path modes, achieving alignment of multi-path images in a unified physical space. This enables the stacking of fully focused images of multiple propagation path modes in a unified physical space, providing an accurate coordinate basis for automatic label mapping.
[0050] Furthermore, the specific details of the detection process parameters are elaborated. Optionally, the detection process parameters include one or more of the following: probe center frequency, number of array elements, array element spacing, wedge angle, coupling state, material sound velocity, attenuation coefficient, gain parameter, and scanning offset. The detection process parameters are randomly set according to a preset range.
[0051] Among these parameters, the probe center frequency is the center frequency of the ultrasonic waves emitted by the probe during operation. This parameter determines the wavelength and penetration capability of the ultrasonic waves; higher frequencies result in higher resolution but also greater attenuation. The number of array elements is the number of independent array elements in the phased array probe; this number determines the scale of the full matrix data. The array element spacing determines the scale of the full matrix data. The wedge angle is the angle between the wedge's inclined surface and the workpiece surface. The coupling state is the quality state of acoustic coupling between the probe and the workpiece. This state affects the energy transmission efficiency of the sound wave from the probe into the workpiece. The material sound velocity is the propagation speed of the ultrasonic wave in the workpiece material; the attenuation coefficient is the rate at which the energy of the ultrasonic wave attenuates when propagating in the material. The gain parameter is the amplification factor of the echo signal by the receiving circuit; this parameter affects the amplitude display of the echo signal but does not change the actual sound field. The scanning offset is the offset between the actual scanning position and the theoretical position of the probe; the preset range is a pre-set range of parameter values.
[0052] Specifically, the detection process parameters include one or more of the following: probe center frequency, number of array elements, element spacing, wedge angle, coupling state, material sound velocity, attenuation coefficient, gain parameter, and scan offset. These parameters affect the ultrasonic testing process from different dimensions: the probe center frequency determines the wavelength and penetration capability of the ultrasonic wave, and together they determine the amplitude, phase, propagation time, and signal-to-noise ratio of the echo signal in the full matrix data.
[0053] When configuring the detection process parameters, the system randomly sets each parameter within a preset range to ensure that the random configuration is within a reasonable engineering range and to avoid generating invalid data that does not conform to actual detection conditions. For samples with the same defect, by randomly setting the detection process parameters within a preset range, data with different response characteristics can be generated under different detection process conditions. This simulates the effects of equipment differences, coupling changes, detection posture, and material parameter fluctuations in actual engineering, thereby improving the coverage of training samples for complex working conditions.
[0054] S140. Generate label information based on defect parameters and map the label information to a fully focused image of multiple propagation path modes.
[0055] The label information can be annotation information describing the true value of the defect sample. Optionally, this information may include at least one of the following: defect category, defect location, defect size, defect outline, etc.
[0056] Specifically, the defect parameter library stores defect parameters for each defect sample, including at least one of the following: defect category, defect location, defect size, defect direction, and burial depth. Label information is automatically generated based on these defect parameters, thus avoiding the problems of high workload, high cost, and poor consistency associated with manual labeling.
[0057] After generating the label information, the system maps the label information to the fully focused images of multiple propagation path modalities, realizing the synchronous mapping of labels between multimodal images.
[0058] Furthermore, the mapping process for the full-focus image is further refined. Optionally, the label information is mapped to full-focus images of multiple propagation path modalities, including: Based on spatial mapping relationships, the image positions corresponding to the defect parameters in the fully focused images of multiple propagation path modes are determined; label information is generated at the image positions.
[0059] The image location can be the position of the label information within the image.
[0060] Specifically, after generating the tag information, the system determines the image position of the defect parameters in each modal image based on the aforementioned spatial mapping relationship. That is, by using a unified defect coordinate system, the physical coordinates of the defect are converted into pixel coordinates of each modal image, and then the corresponding tag information is generated at that image position. Thus, the tag information of the same defect is accurately mapped to the corresponding position in each modal image, realizing synchronous mapping of tags between multimodal images.
[0061] It should be noted that, optionally, the multiple propagation path modes include at least one or more of the following: shear wave-shear wave direct path mode, single-reflection shear wave-direct shear wave mode, single-reflection shear wave-single-reflection shear wave mode, and single-reflection shear wave-double-reflection shear wave mode.
[0062] The shear wave-shear wave direct path mode can be a mode in which both the transmitted and received shear waves propagate along a direct path. The single-reflection shear wave-direct shear wave mode can be a mode in which the transmitted shear wave propagates along a single reflection path and the received shear wave propagates along a direct path. The single-reflection shear wave-single-reflection shear wave mode can be a mode in which both the transmitted and received shear waves propagate along a single reflection path. The single-reflection shear wave-double-reflection shear wave mode can be a mode in which the transmitted shear wave propagates along a single reflection path and the received shear wave propagates along two reflection paths.
[0063] Specifically, the shear wave-shear wave direct path mode propagates without reflection, has the shortest propagation time, and offers high resolution and detection capability for near-surface defects. The single-reflection shear wave-direct shear wave mode and the single-reflection shear wave-single-reflection shear wave mode, after a single reflection, can cover the middle and root regions of the weld. The single-reflection shear wave-double-reflection shear wave mode further expands the detection range, enabling effective responses to defects of specific depths and orientations. Through combinations of multiple reflection times, full coverage of different depth regions of the pipe circumferential weld is achieved.
[0064] Optionally, the label information may include one or more of the following: defect category, defect location, defect size, and defect outline.
[0065] The defect category can be the type of defect to which it belongs. This parameter characterizes the physical properties or cause of the defect. Optionally, the defect category can be directly generated from the type parameter in the defect parameter library.
[0066] The defect location can be defined as the spatial position of the defect within the workpiece. This parameter characterizes the physical location of the defect within the circumferential weld of the pipe. Optionally, this location can be described using circumferential, axial, and wall thickness coordinates within the same defect coordinate system. The defect location can be generated from the spatial location parameter within the defect parameters.
[0067] The defect size can be the geometric dimensions of the defect. This parameter is used to quantify the size of the defect. The defect profile can be the geometric shape of the defect. This parameter is used to describe the morphology of the defect boundary.
[0068] Specifically, by generating label information including one or more of the following: defect category, defect location, defect size, and defect outline, multi-dimensional and multi-task monitoring signals are provided for the intelligent identification of defects in pipe circumferential welds.
[0069] S150. The full matrix data, fully focused images of multiple propagation path modes, label information, detection process parameters, and spatial mapping relationships are associated and encapsulated to obtain the target training data.
[0070] The target training data can be the final generated data that can be used to train a machine learning model. This data includes full matrix data, multipath full-focus images, label information, detection process parameters, and spatial mapping relationships.
[0071] Specifically, the full matrix data, multipath full-focus images, label information, detection process parameters, and spatial mapping relationships corresponding to the same defect sample are linked together to form a complete training sample record. Simultaneously, correspondences are established between the full matrix data and detection process parameters, between the multipath full-focus images and spatial mapping relationships, and between label information and multipath full-focus images, ensuring traceability among data objects. The encapsulated target training data is stored in a structured data format, facilitating subsequent retrieval, reading, and training, thus achieving structured organization of detection data and solving the problem of lack of unified organization for multi-path full-focus data.
[0072] Furthermore, the specific process of using the target training data is described. Optionally, the method also includes: The target training data is input into the machine learning model to train the machine learning model and obtain the detection model. The detection model is used to perform inspection of pipe circumferential welds.
[0073] In this embodiment, the machine learning model can be an algorithmic model capable of learning patterns from data and using them for prediction or classification. Optionally, this model includes, but is not limited to, models such as convolutional neural networks. The model takes target training data as input and label information as supervision signals, and adjusts its parameters through training to enable it to perform defect detection tasks.
[0074] The detection model can be a machine learning model that has been trained to perform detection tasks. This model is used to perform pipe circumferential weld inspection, that is, to identify, classify, or quantitatively characterize defects in the input inspection data.
[0075] Pipeline circumferential weld inspection can be performed using ultrasonic testing.
[0076] Specifically, during training, the system inputs the target training data into the machine learning model. The machine learning model takes at least one full-focus image from multiple propagation path modalities as input, uses label information as a supervision signal, calculates the error between the model output and the label information using a loss function, and updates the model parameters using the backpropagation algorithm. Since the same defect sample in the target training data corresponds to multiple sets of randomly configured detection process parameters and multiple full-focus images from different propagation path modalities, the model can learn the changing patterns of defect features under different detection conditions and different propagation path modalities during training, thereby improving the model's generalization ability and robustness.
[0077] During training, label information provides supervision signals to the model, enabling it to learn the correspondence between at least one of the following: defect category, defect location, defect size, defect contour, etc., and image features. Spatial mapping provides the coordinate basis for multimodal fusion, allowing the model to align image features from different propagation path modalities within the same physical space, achieving multimodal joint learning. After training, a detection model is obtained. This trained detection model is used to perform pipeline circumferential weld inspection, specifically performing at least one of the following on the input inspection data: defect detection, defect classification, defect localization, or quantitative defect characterization.
[0078] The technical solution provided by this invention involves acquiring a defect parameter library; for each defect sample, acquiring the corresponding full matrix data based on detection process parameters using a full matrix acquisition method; for each full matrix data, performing full-focus reconstruction based on multiple propagation path models to obtain full-focus images of multiple propagation path modes, and establishing a spatial mapping relationship between the full-focus images of different propagation path modes based on a unified defect coordinate system; generating label information based on defect parameters and mapping the label information to the full-focus images of multiple propagation path modes; and associating and encapsulating the full matrix data, the full-focus images of multiple propagation path modes, the label information, the detection process parameters, and the spatial mapping relationship to obtain target training data. This technical solution solves the problem of the lack of a data production mechanism for generating multiple propagation path full-focus modes and establishing a unified label system for the same full matrix data, achieving the effects of large-scale, automated, and standardized generation of training data.
[0079] Figure 3 The above is a schematic diagram of the overall scheme framework of a training data generation method provided in the embodiments of the present invention. Based on the above embodiments, an optional example is provided, which can be used for training data generation scenarios.
[0080] like Figure 3 As shown, firstly, a parametric model of the circumferential weld seam of the pipeline under inspection is performed based on the structural parameters of the pipeline to be inspected, resulting in a parametric model of the circumferential weld seam. This model describes the geometric features of the circumferential weld seam of the pipeline under inspection, including at least one of the following: pipe diameter, wall thickness, bevel type, blunt edge size, weld reinforcement height, and heat-affected zone range. Secondly, a unified defect coordinate system is established, which is jointly constructed from circumferential coordinates, axial coordinates, and wall thickness direction coordinates. Further, a reflector is constructed, including at least one of artificial reflectors, welding process reflectors, and real defects. Each type of reflector or defect is described using parameters such as type, size, direction, burial depth, and spatial location, and a correspondence is established with the unified defect coordinate system. Next, the inspection process is randomized. The system randomly sets the inspection process parameters, such as probe center frequency, number of array elements, array element spacing, wedge angle, coupling state, material sound velocity, attenuation coefficient, gain parameter, and scanning offset, according to a preset range, so that the same defect sample can generate data with different response characteristics under different inspection process conditions. Then, for each defect sample, based on the detection process parameters randomly configured for it, each array element in the array is controlled as a transmitting array element and the remaining array elements are controlled as receiving array elements in sequence according to the full matrix acquisition method, and the ultrasonic echo data under the full transmission-reception combination is recorded to form the full matrix data corresponding to the defect sample.
[0081] After obtaining the full matrix data, multi-propagation path full-focus reconstruction is performed on each full matrix data set. Multi-propagation path full-focus reconstruction includes multiple propagation path modes, such as one or more of the following: shear wave-shear wave direct path mode, single-reflection shear wave-direct shear wave mode, single-reflection shear wave-single-reflection shear wave mode, and single-reflection shear wave-double-reflection shear wave mode. Based on these multiple propagation path models, full-focus reconstruction is performed on the same full matrix data set to obtain full-focus images of multiple propagation path modes.
[0082] After obtaining full-focus images of multiple propagation path modes, synchronous registration is performed. That is, for each full-focus image of a propagation path mode, the reconstruction grid and image resolution of the full-focus image are determined. Based on the reconstruction grid and image resolution, the coordinate transformation relationship between the pixel coordinates of the full-focus image and the unified defect coordinate system is established. Furthermore, based on the coordinate transformation relationship, the full-focus images of each propagation path mode are mapped to the unified defect coordinate system, and the spatial mapping relationship between full-focus images of different propagation path modes is established through the unified defect coordinate system, so that the same defect corresponds to the same physical coordinates in the full-focus images of different propagation path modes.
[0083] After establishing the spatial mapping relationship, automatic annotation is performed. Automatic annotation includes at least one of classification label generation, object detection label generation, and segmentation label generation. Specifically, label information is generated based on defect parameters in a defect parameter library. The label information includes one or more of the following: defect category, defect location, defect size, and defect contour. Then, based on the spatial mapping relationship, the image positions corresponding to the defect parameters in the fully focused images of multiple propagation path modalities are determined, and label information is generated at these image positions. This achieves synchronous mapping of label information between multimodal images, eliminating the need for manual image-by-image annotation.
[0084] After automatic annotation, training samples are encapsulated. The full matrix data, fully focused images of multiple propagation path modalities, label information, detection process parameters, and spatial mapping relationships are correlated and encapsulated to obtain the target training data. The target training data is encapsulated in a structured data format. Finally, the training dataset is output, showing the encapsulated target training data.
[0085] Figure 4 This is a schematic diagram of a training data generation device provided in an embodiment of the present invention. This embodiment is applicable to training data generation. The device can be implemented using software and / or hardware, and can be integrated into any device that provides training data generation functionality, such as… Figure 4 As shown, the training data generation device specifically includes: a parameter library acquisition module 210, a full matrix data acquisition module 220, a relationship establishment module 230, a full-focus image mapping module 240, and a target training data acquisition module 250.
[0086] The system includes a parameter library acquisition module 210 for acquiring a defect parameter library containing defect parameters for at least one defect sample; a full matrix data acquisition module 220 for acquiring full matrix data for each defect sample based on detection process parameters using a full matrix acquisition method, wherein the detection process parameters are the process conditions configured for the defect sample during detection, and the full matrix data includes time-domain echo signals under multiple transmit-receive array element combinations; and a relationship establishment module 230 for performing full-focus reconstruction based on multiple propagation path models for each full matrix data to obtain multiple propagation paths. The system generates fully focused images of different propagation path modes and establishes spatial mapping relationships between them based on a unified defect coordinate system. The fully focused images are images created by focusing and overlaying the full matrix data point-by-point. A fully focused image mapping module 240 generates label information based on the defect parameters and maps the label information to the fully focused images of the multiple propagation path modes. A target training data acquisition module 250 associates and encapsulates the full matrix data, the fully focused images of the multiple propagation path modes, the label information, the detection process parameters, and the spatial mapping relationships to obtain target training data.
[0087] The technical solution provided by this invention involves acquiring a defect parameter library; for each defect sample, acquiring full matrix data corresponding to the defect sample based on detection process parameters using a full matrix acquisition method; for each full matrix data, performing full-focus reconstruction based on multiple propagation path models to obtain full-focus images of multiple propagation path modes, and establishing spatial mapping relationships between full-focus images of different propagation path modes based on a unified defect coordinate system; generating label information based on defect parameters and mapping the label information to full-focus images of multiple propagation path modes; and associating and encapsulating the full matrix data, full-focus images of multiple propagation path modes, label information, detection process parameters, and spatial mapping relationships to obtain target training data. This technical solution solves the problems of large workload for manual annotation and lack of unified organization for multi-propagation path full-focus data, achieving the effects of large-scale, automated, and standardized generation of training data.
[0088] Based on the above technical solutions, the defect parameter library is constructed in the following manner: The model generation module is used to model the pipeline under test based on the structural parameters of the pipeline to be tested, and to obtain a parameterized model of the pipeline circumferential weld, wherein the parameterized model of the pipeline circumferential weld is used to describe the geometric features of the circumferential weld of the pipeline to be tested. The reflector model generation module is used to construct a set of reflectors, describe the parameters of the reflectors in the set of reflectors, and generate a reflector model. The set of reflectors includes at least one of artificial reflectors, welded process reflectors, and real defects. The reflector model is used to describe the geometric features of the corresponding reflector. The defect parameter library forming module is used to embed the reflector model into the parameterized model of the pipe circumferential weld to form the defect parameter library, wherein the reflector model corresponds one-to-one with the defect sample, and the parameter description of the reflector is used as the defect parameter.
[0089] Based on the above technical solutions, the relationship establishment module includes: A reconstruction network determination unit is used to determine the reconstruction grid and image resolution of the full-focus image of each propagation path mode for each propagation path mode. The coordinate transformation relationship establishment unit is used to establish the coordinate transformation relationship between the pixel coordinates of the fully focused image of the propagation path mode and the unified defect coordinate system based on the reconstructed grid and the image resolution. The spatial mapping relationship establishment unit is used to map the fully focused images of each propagation path mode to the unified defect coordinate system based on the coordinate transformation relationship, and to establish the spatial mapping relationship between the fully focused images of different propagation path modes through the unified defect coordinate system.
[0090] Based on the above technical solutions, the fully focused image mapping module includes: An image position determination unit is used to determine the image position of the defect parameter in the fully focused images of the multiple propagation path modes based on the spatial mapping relationship. A tag information generation unit is used to generate the tag information at the image location.
[0091] Based on the above technical solutions, the detection process parameters include one or more of the following: probe center frequency, number of array elements, array element spacing, wedge angle, coupling state, material sound velocity, attenuation coefficient, gain parameter, and scanning offset. The detection process parameters are randomly set according to a preset range.
[0092] Based on the above technical solutions, the multiple propagation path modes include at least one or more of the following: shear wave-shear wave direct path mode, single-reflection shear wave-direct shear wave mode, single-reflection shear wave-single-reflection shear wave mode, and single-reflection shear wave-double-reflection shear wave mode.
[0093] Based on the above technical solutions, the label information includes one or more of the following: defect category, defect location, defect size, and defect outline.
[0094] Based on the above technical solutions, the device further includes: The detection model determination module is used to input the target training data into the machine learning model, train the machine learning model, and obtain the detection model. The detection model is used to perform pipeline circumferential weld inspection.
[0095] The above-described products can perform the methods provided in any embodiment of the present invention, and have the corresponding functional modules and beneficial effects for performing the methods.
[0096] Figure 5 A schematic diagram of an electronic device that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0097] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0098] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0099] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as a training data generation method.
[0100] In some embodiments, a training data generation method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or mounted on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the training data generation method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform a training data generation method by any other suitable means (e.g., by means of firmware).
[0101] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0102] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0103] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0104] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0105] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0106] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0107] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0108] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements a training data generation method according to any embodiment of the invention.
[0109] In implementing the computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0110] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for generating training data, characterized in that, include: Obtain a defect parameter library, wherein the defect parameter library contains defect parameters of at least one defect sample; For each defect sample, based on the detection process parameters, the full matrix data corresponding to the defect sample is acquired in a full matrix acquisition method. The detection process parameters are the process conditions configured for the defect sample during the detection process, and the full matrix data includes time-domain echo signals under multiple transmit-receive array element combinations. For each full matrix data, full-focus reconstruction is performed based on multiple propagation path models to obtain full-focus images of multiple propagation path modes. A spatial mapping relationship between full-focus images of different propagation path modes is established based on a unified defect coordinate system. The full-focus image is an image of the full matrix data that is focused and superimposed point by point. Based on the defect parameters, label information is generated, and the label information is mapped to the full-focus image of the multiple propagation path modes; The target training data is obtained by associating and encapsulating the full matrix data, the fully focused images of the multiple propagation path modes, the label information, the detection process parameters, and the spatial mapping relationship.
2. The method according to claim 1, characterized in that, The defect parameter library was constructed based on the following method: A model is created based on the structural parameters of the pipeline to be inspected, resulting in a parameterized model of the pipeline circumferential weld. This parameterized model is used to describe the geometric features of the circumferential weld of the pipeline to be inspected. A set of reflectors is constructed, and the reflectors in the set are described by parameters to generate a reflector model. The set of reflectors includes at least one of artificial reflectors, welded process reflectors, and real defects. The reflector model is used to describe the geometric features of the corresponding reflectors. The reflector model is embedded into the parameterized model of the pipe circumferential weld to form the defect parameter library, wherein the reflector model corresponds one-to-one with the defect sample, and the parameter description of the reflector is used as the defect parameter.
3. The method according to claim 1, characterized in that, The establishment of spatial mapping relationships between fully focused images of different propagation path modes based on a unified defect coordinate system includes: For each propagation path mode, the reconstructed grid and image resolution of the full-focus image of the propagation path mode are determined; Based on the reconstructed mesh and the image resolution, establish the coordinate transformation relationship between the pixel coordinates of the fully focused image of the propagation path mode and the unified defect coordinate system; Based on the coordinate transformation relationship, the fully focused images of each propagation path mode are mapped to the unified defect coordinate system, and a spatial mapping relationship between the fully focused images of different propagation path modes is established through the unified defect coordinate system.
4. The method according to claim 1, characterized in that, The step of mapping the label information to the fully focused image of the multiple propagation path modalities includes: Based on the spatial mapping relationship, the image position of the defect parameter in the fully focused image of the multiple propagation path modes is determined; The label information is generated at the image location.
5. The method according to claim 1, characterized in that, The detection process parameters include one or more of the following: probe center frequency, number of array elements, array element spacing, wedge angle, coupling state, material sound velocity, attenuation coefficient, gain parameter, and scanning offset. The detection process parameters are randomly set according to a preset range.
6. The method according to claim 1, characterized in that, The plurality of propagation path modes include at least one or more of the following: shear wave-shear wave direct path mode, single-reflection shear wave-direct shear wave mode, single-reflection shear wave-single-reflection shear wave mode, and single-reflection shear wave-double-reflection shear wave mode.
7. The method according to claim 1, characterized in that, The label information includes one or more of the following: defect category, defect location, defect size, and defect outline.
8. The method according to claim 1, characterized in that, The method further includes: The target training data is input into the machine learning model, and the machine learning model is trained to obtain the detection model; The detection model is used to perform pipeline circumferential weld inspection.
9. A training data generation device, characterized in that, include: A parameter library acquisition module is used to acquire a defect parameter library, wherein the defect parameter library contains defect parameters of at least one defect sample; The full matrix data acquisition module is used to acquire the full matrix data corresponding to each defect sample based on the detection process parameters and in accordance with the full matrix acquisition method. The detection process parameters are the process conditions configured for the defect sample during the detection process, and the full matrix data includes time-domain echo signals under multiple transmit-receive array element combinations. The relationship establishment module is used to perform full-focus reconstruction based on multiple propagation path models for each full matrix data, to obtain full-focus images of multiple propagation path modes, and to establish spatial mapping relationships between full-focus images of different propagation path modes based on a unified defect coordinate system. The full-focus image is an image of the full matrix data being focused and superimposed point by point. A full-focus image mapping module is used to generate label information based on the defect parameters and map the label information to the full-focus images of the multiple propagation path modes; The target training data acquisition module is used to associate and encapsulate the full matrix data, the fully focused images of the multiple propagation path modes, the label information, the detection process parameters, and the spatial mapping relationship to obtain the target training data.
10. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform a training data generation method according to any one of claims 1-8.
