Ultrasonic a-scan detection data labeling method, device, equipment and medium

By combining manual initial labeling and intelligent extended labeling, a multidimensional similarity algorithm is used to automatically label ultrasound A-Scan detection data, solving the problems of insufficient efficiency and accuracy in existing technologies and achieving efficient and precise labeling results.

CN123178974APending Publication Date: 2026-11-27AVIC BEIJING AERONAUTICAL MFG TECH RES INST
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing ultrasonic A-Scan detection data annotation methods are insufficient in terms of efficiency, accuracy, and versatility, making it difficult to meet the needs of composite material defect identification.

Method used

A collaborative mechanism of manual initial labeling, intelligent extended labeling, and manual review and completion is adopted. A four-dimensional weighted combination similarity algorithm based on Pearson correlation coefficient, mean difference normalization coefficient, energy ratio coefficient, and standard deviation ratio coefficient is used to automatically label the frame data to be labeled by calculating multi-dimensional similarity through selected reference frame data.

Benefits of technology

It significantly improves annotation efficiency, ensures the consistency and precision of annotation results, reduces reliance on personal experience, and enables the standardized accumulation and reusability of expert knowledge.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178974A_ABST
    Figure CN123178974A_ABST
Patent Text Reader

Abstract

The application discloses an ultrasonic A-Scan detection data labeling method and device, equipment and medium, and relates to the technical field of data processing. The method comprises the following steps: obtaining global ultrasonic A-Scan detection data to be labeled; in response to a global label selection instruction for the global ultrasonic A-Scan detection data, performing global label labeling on the global ultrasonic A-Scan detection data; determining reference frame data from the global ultrasonic A-Scan detection data, wherein the reference frame data and frame data to be labeled are different; in response to an automatic labeling instruction, calculating the multi-dimensional similarity between the reference frame data and the frame data to be labeled to obtain a frame similarity value; and determining a frame-level labeling result of the frame data to be labeled according to the difference between the frame similarity value and a preset similarity threshold. The application can improve the labeling efficiency of ultrasonic A-Scan detection data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data annotation technology, and in particular to a method, apparatus, equipment and medium for annotating ultrasonic A-Scan detection data. Background Technology

[0002] Composite materials, due to their superior properties such as high specific strength, high specific modulus, and strong designability, are widely used in aerospace, defense equipment, and other fields. Ultrasonic testing is currently the most important and mature non-destructive testing method for internal defects in composite materials, and it has been widely applied and developed in the field of industrial non-destructive testing.

[0003] Ultrasonic A-Scan testing remains one of the most widely used ultrasonic testing methods due to its simplicity, flexibility, low equipment cost, and strong adaptability to composite material surfaces. A typical ultrasonic A-Scan test involves scanning the surface of a composite material component point-by-point with an ultrasonic probe, emitting high-frequency ultrasonic pulses, and receiving reflected echoes from internal interfaces, defects, and the bottom surface. Each frame of ultrasonic A-Scan data corresponds to a spatial location on the scan path, recording the change in echo amplitude with depth (time) as the ultrasonic wave propagates within the material. A complete testing task typically generates a large-scale dataset containing hundreds or even thousands of A-Scan waveforms, each consisting of hundreds to thousands of sampling points, comprehensively characterizing the internal quality information of each spatial location within the inspected area. Defect identification based on this massive amount of ultrasonic A-Scan data is a crucial part of the ultrasonic testing process.

[0004] Although defect identification is trending towards a shift from manual to intelligent operation, current technology still has significant shortcomings in terms of efficiency, accuracy, and versatility in ultrasonic A-Scan detection data annotation tasks. Summary of the Invention

[0005] The main purpose of this application is to provide a method, device, equipment and medium for labeling ultrasonic A-Scan test data, which aims to improve the labeling efficiency of large amounts of ultrasonic A-Scan data and provide labeling data support for the determination of defects in composite materials.

[0006] To achieve the above objectives, this application provides a method for annotating ultrasound A-Scan detection data, the method comprising: Obtain the global ultrasound A-Scan detection data to be labeled; In response to the global label selection instruction for the global ultrasound A-Scan detection data, the global ultrasound A-Scan detection data is globally labeled; Reference frame data is determined from the global ultrasound A-Scan detection data, and the data other than the reference frame data are frame data to be labeled. In response to the automatic annotation instruction, the multidimensional similarity between the reference frame data and the frame data to be annotated is calculated to obtain a frame similarity value; The frame-level annotation result of the frame data to be annotated is determined based on the difference between the frame similarity value and the preset similarity threshold.

[0007] In one embodiment, acquiring the global ultrasound A-Scan detection data to be labeled includes: Collect global ultrasound A-Scan detection data within the target period; The global ultrasound A-Scan detection data is analyzed, and the waveforms are displayed frame by frame in the waveform visualization interface.

[0008] In one embodiment, the step of globally labeling the global ultrasound A-Scan detection data in response to a global label selection instruction for the global ultrasound A-Scan detection data includes: When the global label status bar in the waveform visualization interface is detected to have received the global label selection instruction, the display content of the global label status bar is switched to the target global label corresponding to the global label selection instruction. The target global label is written into the global label dataset of the global ultrasound A-Scan detection data.

[0009] In one embodiment, determining reference frame data from the global ultrasound A-Scan detection data includes: If no frame-level labels are generated in the global ultrasound A-Scan detection data and the current annotation mode is frame-by-frame annotation, the frame data in the global ultrasound A-Scan detection data that is labeled as defect-free is used as the reference frame data.

[0010] In one embodiment, the multidimensional similarity includes waveform similarity, amplitude level similarity, energy similarity, and fluctuation similarity. The calculation of the multidimensional similarity between the reference frame data and the frame data to be labeled, to obtain a frame similarity value, includes: For each frame of data to be labeled, the waveform similarity, amplitude level similarity, energy similarity, and fluctuation similarity between the reference frame data and the frame data to be labeled are calculated respectively to obtain waveform similarity value, amplitude level similarity value, energy similarity value, and fluctuation similarity value; The frame similarity value is obtained by weighted summation of the waveform similarity value, the amplitude level similarity value, the energy similarity value, and the fluctuation similarity value.

[0011] In one embodiment, determining the frame-level annotation result of the frame data to be annotated based on the difference between the frame similarity value and a preset similarity threshold includes: If the frame similarity is greater than or equal to the preset similarity threshold, the frame-level annotation result of the frame data to be annotated is defect-free; If the frame similarity is less than the preset similarity threshold, the status of the frame data to be labeled is marked as pending review.

[0012] In one embodiment, after marking the state of the frame data to be labeled as pending review when the frame similarity is less than the preset similarity threshold, the method further includes: In response to the verification annotation instruction for the frame data to be annotated, the frame-level label of the frame data to be annotated is annotated with the target frame-level label corresponding to the verification annotation instruction; The target frame-level label is written into the frame label dataset of the global ultrasound A-Scan detection data.

[0013] Furthermore, to achieve the above objectives, this application also provides an ultrasonic A-Scan detection data annotation device, the ultrasonic A-Scan detection data annotation device comprising: The ultrasound data acquisition module is used to acquire global ultrasound A-Scan detection data to be labeled; A global labeling module is used to perform global labeling on the global ultrasound A-Scan detection data in response to a global label selection instruction for the global ultrasound A-Scan detection data. The reference frame determination module is used to determine reference frame data from the global ultrasound A-Scan detection data, and the data other than the reference frame data are frame data to be labeled. The similarity calculation module is used to calculate the multidimensional similarity between the reference frame data and the frame data to be labeled in response to the automatic labeling instruction, and obtain the frame similarity value; The frame-level labeling module is used to determine the frame-level labeling result of the frame data to be labeled based on the difference between the frame similarity value and the preset similarity threshold.

[0014] In addition, to achieve the above objectives, this application also proposes an electronic device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the ultrasonic A-Scan detection data annotation method as described above.

[0015] In addition, to achieve the above objectives, this application also provides a medium, which is a computer-readable storage medium, on which a program for implementing the ultrasonic A-Scan detection data annotation method is stored. The program for implementing the ultrasonic A-Scan detection data annotation method is executed by a processor to implement the steps of the ultrasonic A-Scan detection data annotation method as described above.

[0016] In addition, to achieve the above objectives, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the ultrasound A-Scan detection data annotation method as described above.

[0017] This application provides a method for annotating ultrasound A-Scan detection data. The method involves acquiring global ultrasound A-Scan detection data to be annotated; responding to a global label selection command for the global ultrasound A-Scan detection data, performing global labeling on the global ultrasound A-Scan detection data; determining reference frame data from the global ultrasound A-Scan detection data, with all other data being the frames to be annotated; responding to an automatic annotation command, calculating the multidimensional similarity between the reference frame data and the frames to be annotated to obtain a frame similarity value; and determining the frame-level annotation result of the frames to be annotated based on the difference between the frame similarity value and a preset similarity threshold. By simply selecting reference frame data, the remaining frame data can be automatically annotated by calculating multidimensional similarity, resulting in global labeling and frame-level annotation results for the global ultrasound A-Scan detection data. This method combines human experience and machine calculation, significantly improving data annotation efficiency. Attached Figure Description

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

[0019] To more clearly illustrate the technical solutions in the embodiments of this application 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.

[0020] Figure 1 A schematic flowchart illustrating the ultrasonic A-Scan detection data annotation method provided in this application embodiment; Figure 2 This application provides a schematic diagram of an ultrasonic A-Scan detection data acquisition scenario. Figure 3 A schematic diagram of a waveform visualization interface provided in an embodiment of this application; Figure 4 This is a schematic diagram illustrating an automatic annotation process based on multidimensional similarity calculation, provided as an embodiment of this application. Figure 5 This is a schematic diagram of the module structure of the ultrasonic A-Scan detection data annotation device of this application; Figure 6 This is a schematic diagram of the hardware operating environment involved in the ultrasonic A-Scan detection data annotation method in the embodiments of this application.

[0021] Figure labels: 1-Ultrasonic transducer; 2-Laminated plate; 3-Delamination defect; 4-Scan path; 5-Spatial sampling point; 6-Ultrasonic A-Scan waveform; 7-Scan cycle; 8-Global label status bar; 9-Frame-level label; 10-Waveform visualization area; 11-Frame playback operation area; 12-Waveform; 13-Frame-by-frame annotation operation area; 14-Ultrasonic A-Scan detection data; 15-GlobalLabel dataset; 16-Reference frame; 17-Automatically labeled frame; 18-Frame to be reviewed; 19-File save control area; 20-FrameLabels dataset.

[0022] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0023] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application. To better understand the technical solutions of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0024] Defect assessment based on massive amounts of ultrasonic A-Scan data is a crucial part of the ultrasonic testing process. Current defect assessment methods primarily involve the following: While performing the scanning process, inspectors must use their professional knowledge and experience to examine the A-Scan waveforms line by line or area by area. By identifying the location, amplitude, and waveform characteristics of interface waves, defect waves, and bottom waves, they determine the presence of defects and conduct real-time qualitative assessments of defect types (such as delamination, debonding, and porosity), location, depth, and severity.

[0025] This method of defect assessment, which relies entirely on manual labor, is highly susceptible to the subjective experience, work status, and fatigue level of the operator, making it prone to missed detections and misjudgments. Furthermore, significant differences exist in the interpretations of different inspectors, and even among the same inspector at different times, lacking a unified objective standard. In recent years, the rapid development of artificial intelligence technologies, represented by deep learning, has provided a new solution for defect assessment in ultrasonic A-Scan inspections. Using AI to assist or replace manual defect assessment can effectively improve the objectivity, consistency, and efficiency of the inspection, reduce over-reliance on operator experience, and minimize missed detections and misjudgments caused by subjective human factors.

[0026] However, training deep learning neural networks to achieve high-precision automatic defect identification requires building large-scale, high-quality labeled datasets. Such datasets not only need to contain massive amounts of raw ultrasound A-Scan waveform data, but also must provide accurate and consistent defect type and location annotations for each frame or each region.

[0027] The main methods for annotating ultrasound A-Scan data in related technologies include: (1) Fully manual frame-by-frame annotation: The inspectors play back the ultrasonic A-Scan waveform frame by frame, and based on their professional knowledge and inspection standards, they manually interpret and record the defect type of each frame by observing the characteristics of the interface wave, defect wave, and bottom wave. This method fully incorporates the expert's experience and judgment, and the annotation quality is relatively high, but the annotation efficiency is extremely low. Faced with multiple frames of data generated by a single scan, complete annotation takes several hours or even longer, which is difficult to meet the timeliness requirements of industrial batch inspection and cannot be applied on a large scale.

[0028] (2) Coarse-grained labeling based on multiple frames of the scanned area: Taking all or segmented A-Scan waveforms collected in a single continuous scan as a unit, a single defect type label is uniformly assigned, without distinguishing the waveform differences at the frame level. This method is fast and simple to operate, and is suitable for rapid screening scenarios where only overall pass / fail judgment is required. However, this method assigns defect type labels to a set of spatially continuous waveforms, completely losing the frame-level distribution information of defects at different spatial locations, causing models trained based on such labeled data to be unable to perceive the localized features and spatial boundaries of defects.

[0029] (3) Automatic labeling based on fixed signal thresholds: Based on preset fixed amplitude thresholds or bottom wave attenuation thresholds, when the amplitude or bottom wave attenuation in a certain region of the ultrasonic A-Scan waveform exceeds the threshold, the system automatically marks that frame or region as a defect. This method has a high degree of automation, requires no manual intervention, and is suitable for scenarios with a single material system, simple structure, and standardized testing process. However, the fixed threshold strategy has poor versatility. The threshold setting is highly dependent on the specific material system, ply structure, and testing parameters. When the tested material or structure changes, the original threshold often becomes invalid and needs to be recalibrated. In addition, this method can only distinguish between "the presence or absence of defects" and cannot effectively identify the specific type of defect.

[0030] (4) Automatic labeling based on supervised learning: This method adopts a pre-labeled model architecture. First, it trains a classification or detection model using labeled data, and then applies the trained model to newly collected A-Scan data to automatically identify and label defect types. However, this method still requires a large amount of high-quality labeled data as a training set in advance to support the fitting and generalization of the deep learning model. In particular, for complex detection scenarios involving multiple material systems, diverse layup structures, and multiple types of detection conditions in composite materials, the distribution of sample data varies significantly, and the labeled data of different material systems and defect types are difficult to reuse directly, limiting the model's cross-scenario generalization ability. In addition, the model in the pure supervised training mode is sensitive to labeling noise. Inconsistencies such as missed detections, misjudgments, and blurred boundaries in manual labeling will directly affect the training quality and prediction accuracy of the model, further amplifying the dependence on high-quality initial labeled datasets.

[0031] The above-mentioned manual annotation methods for ultrasound A-Scan have certain shortcomings and limitations in practical applications: (1) Low annotation efficiency. Faced with a typical detection dataset containing thousands of waveforms, even if a senior inspector completes the full annotation, it usually takes several hours or even longer, which seriously restricts the overall efficiency of the detection process; (2) Insufficient accuracy and consistency of annotation results. Manual annotation relies heavily on the experience and subjective judgment of the operators. Different people may have significant differences in their interpretation of the same waveform, and the judgment of the same person at different times may also fluctuate due to factors such as fatigue, making it difficult to guarantee the annotation quality of the dataset; (3) Difficulty in knowledge reuse and insufficient granularity of annotation information. The expert knowledge accumulated in the manual annotation process exists only in the form of personal experience and cannot form a standardized knowledge base or intelligent decision support. In addition, at present, the annotation information cannot simultaneously cover several consecutive frames and a single frame, which limits subsequent defect assessment and integrity analysis.

[0032] In summary, current technical solutions for ultrasound A-Scan data annotation tasks have significant shortcomings in terms of efficiency, accuracy, or versatility. There is an urgent need for a human-computer collaborative annotation method that combines high efficiency and high quality and does not rely on prior annotation data.

[0033] To address the aforementioned issues, this application proposes a technical solution that organically combines the expert experience of testing personnel with the efficient processing capabilities of artificial intelligence. By constructing a collaborative mechanism of manual initial labeling, intelligent extended labeling, and manual review and completion, a four-dimensional weighted combination similarity automatic labeling algorithm is designed, which integrates Pearson correlation coefficient, mean difference normalization coefficient, energy ratio coefficient, and standard deviation ratio coefficient. This greatly simplifies the labeling process for ultrasonic A-Scan test data of composite materials, significantly improves labeling efficiency, ensures the consistency and accuracy of labeling results, reduces the excessive reliance on personal experience in the labeling process, and realizes the standardized accumulation and reusability of expert knowledge.

[0034] It should be noted that the execution subject of the method in each embodiment of the ultrasonic A-Scan detection data annotation method of this application can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, personal computer, mobile phone, etc., or an electronic device that can realize the above functions, etc. This embodiment does not specifically limit it.

[0035] Based on this, an embodiment of the ultrasonic A-Scan detection data annotation method is proposed in this application. Please refer to [the relevant documentation]. Figure 1 The ultrasonic A-Scan detection data annotation method includes steps S10 to S50: Step S10: Obtain the global ultrasound A-Scan detection data to be labeled.

[0036] The global ultrasound A-Scan detection data contains multiple frames of ultrasound A-Scan detection data. Figure 2 This application provides a schematic diagram of an ultrasonic A-Scan detection data acquisition scenario, as shown in the embodiment of the present application. Figure 2 As shown, the handheld ultrasonic transducer 1 scans the surface of the composite laminate 2 at a uniform speed, point by point. A delamination defect 3 is found inside the laminate 2. Sampling points 5 on the scanning path 4 are marked with "×", corresponding to one frame of sampled ultrasonic A-Scan waveform 6. That is, the ultrasonic transducer 1 emits an ultrasonic pulse at this location and receives the reflected echo, which, after analog-to-digital conversion, forms a one-dimensional time-domain signal composed of M discrete sampling points. .

[0037] In some feasible methods, global ultrasound A-Scan data to be labeled is obtained, including the following steps S110 to S120.

[0038] Step S110: Collect global ultrasound A-Scan detection data within the target period.

[0039] Step S120: Analyze the global ultrasound A-Scan detection data and display the waveform frame by frame in the waveform visualization interface.

[0040] In order to provide a high-quality dataset for subsequent defect determination, the target period of this application embodiment can be selected according to the location distribution of defects in the composite material, so that only one type of defect exists in the spatial location encountered in a complete scanning path. Figure 3 This is a schematic diagram of a waveform visualization interface provided in an embodiment of this application. N frames of A-Scan waveforms continuously acquired along the scanning path constitute a complete scanning cycle 7. One frame of waveform 12 is displayed in the waveform visualization area 10, with the horizontal axis representing time and the vertical axis representing amplitude. The operator can determine the defect type at the sampling point location by observing the amplitude changes of waveform 12. Each sampling point location corresponds to one frame of waveform.

[0041] Step S20: In response to the global label selection instruction for global ultrasound A-Scan detection data, global labeling is performed on the global ultrasound A-Scan detection data.

[0042] The global label selection command is a command to select the defect types contained in a complete scan path, which can be triggered by operations in the waveform visualization interface.

[0043] In some feasible methods, in response to a global label selection instruction for global ultrasound A-Scan detection data, global labeling of global ultrasound A-Scan detection data is performed, including the following steps S210 to S220.

[0044] Step S210: When the global label status bar in the waveform visualization interface receives a global label selection instruction, the display content of the global label status bar is switched to the target global label corresponding to the global label selection instruction.

[0045] Step S220: Write the target global label into the global label dataset of the global ultrasound A-Scan detection data.

[0046] Reference Figure 3The global label status bar 8 can be manipulated to select a global label that matches the actual defect type as the target global label, triggering a global label selection command, which is then displayed in the global label status bar 8. All N frames of waveforms within the scanning cycle 7 are assigned a global defect type label as a whole. For example, if a delamination defect 3 exists inside the laminate 2, the target global label is "Delamination (Dl)," and this is written to the GlobalLabel dataset of the ultrasonic A-Scan detection data file. Each frame of A-Scan waveform 6 corresponds independently to a frame-level label 9. Frames containing only interface waves and clear bottom waves without abnormal echoes are labeled "No Defect (OK)," while frames with obvious abnormal echo peaks between the interface wave and bottom wave, accompanied by bottom wave energy attenuation, are labeled "Delamination (Dl)." All N frame-level labels form a FrameLabels array and are written to the FrameLabels dataset of the same ultrasonic A-Scan detection data file.

[0047] It can be seen that there is a clear correspondence between the ultrasonic A-Scan detection signal and the label: one scan cycle 7 corresponds to one global label, one frame of A-Scan waveform 6 corresponds to one frame-level label 9, the global label provides a complete prior semantic of the defect type corresponding to the scan cycle 7, and the frame-level label 9 describes the change of the ultrasonic A-Scan waveform along the scan path.

[0048] Step S30: Determine reference frame data from the global ultrasound A-Scan detection data. The data other than the reference frame data are the frame data to be labeled.

[0049] Ultrasonic A-Scan data from a defect-free location must be selected as the reference frame. You can browse each frame of the global ultrasonic A-Scan data within the waveform visualization interface and select a frame with good signal quality, clear back echo, and no obvious defect echoes as the reference frame.

[0050] In some feasible approaches, reference frame data is determined from global ultrasound A-Scan detection data, including: when frame-level labels are not generated in the global ultrasound A-Scan detection data and the current annotation mode is frame-by-frame annotation, a frame of data in the global ultrasound A-Scan detection data that is labeled as defect-free is used as the reference frame data.

[0051] Reference Figure 3Operators can browse N frames of A-Scan data 6 in the waveform visualization area 10 and the frame playback operation area 11, and select a frame with good signal quality, clear background echo, and no obvious defect echo as a reference frame. In the frame-by-frame annotation operation area 13, this frame is marked as defect-free (OK) and used as the reference frame. The step of selecting the reference frame should be before the automatic annotation step. It can be regarded as the first frame marked in the global ultrasonic A-Scan detection data as the reference frame, and the frame-level label of the reference frame is defect-free. The process of transferring ultrasound A-Scan detection data includes: first, loading ultrasound A-Scan detection data 14, parsing and obtaining N frames of A-Scan waveform data, each frame containing M sampling points (typical values ​​N=64, M=2000), forming an N×M amplitude matrix; displaying ultrasound A-Scan waveforms 6 frame by frame in a line graph on the waveform visualization area 10, with the horizontal axis representing sampling time and the vertical axis representing echo amplitude; the operator observes the waveform characteristics of the N frames of A-Scan data by browsing frame by frame, marking the entire file with a global label, and writing it into the GlobalLabel dataset 15 of the ultrasound A-Scan file in real time; the operator selects a frame as a reference frame 16, which is marked with a blue pentagram.

[0052] Step S40: In response to the automatic annotation instruction, calculate the multidimensional similarity between the reference frame data and the frame data to be annotated, and obtain the frame similarity value.

[0053] Automatic annotation instructions are commands that instruct the system to annotate the remaining unannotated frames. Multidimensional similarity refers to an indicator that evaluates the degree of similarity between reference frame data and the frame data to be annotated from multiple dimensions. The higher the frame similarity value, the more likely the defect determination result of the frame data to be annotated is that it is defect-free.

[0054] In some feasible approaches, multidimensional similarity includes waveform similarity, amplitude level similarity, energy similarity, and fluctuation similarity. The multidimensional similarity between the reference frame data and the frame data to be labeled is calculated to obtain the frame similarity value, including the following steps S410 to S420.

[0055] Step S410: For each frame of data to be labeled, calculate the waveform similarity, amplitude level similarity, energy similarity, and fluctuation similarity between the reference frame data and the frame data to be labeled, and obtain the waveform similarity value, amplitude level similarity value, energy similarity value, and fluctuation similarity value.

[0056] Step S420: The waveform similarity value, amplitude level similarity value, energy similarity value, and fluctuation similarity value are weighted and summed to obtain the frame similarity value.

[0057] Figure 4 This application provides a flowchart illustrating an automatic annotation process using multidimensional similarity calculation, as shown in the embodiments of this application. Figure 4 The system can use the time-domain waveform of the reference frame as a template to calculate the four-dimensional weighted combination similarity index between the remaining N-1 frames and the reference frame frame by frame. In this embodiment, waveform similarity is calculated based on the Pearson correlation coefficient, amplitude level similarity is calculated based on the mean difference normalization coefficient, energy similarity is calculated based on the energy ratio coefficient, and fluctuation similarity is calculated based on the standard deviation ratio coefficient.

[0058] Optionally, based on the Pearson correlation coefficient r i Calculate waveform similarity and set the weight of this item in the frame similarity value calculation. w 1 = 0.5. For the first... i Frame waveform X i and reference frame X ref (All are one-dimensional arrays of length M), calculate their Pearson correlation coefficients. r i Formula 1 is shown below.

[0059] Formula 1: .

[0060] In the formula, μ i and μ ref The first i The average of the frame and the reference frame, σ i and σ ref These are their standard deviations. This coefficient measures the morphological consistency between two waveform frames, with a value range of [-1, 1]. The closer it is to 1, the more similar the fluctuation patterns of the two waveform frames are; the closer it is to -1, the more inverse the waveform relationship is; and the closer it is to 0, the less linear correlation there is.

[0061] Optionally, based on the mean difference normalization coefficient d i Calculate amplitude-level similarity and set its weight in the frame similarity value calculation. w 2 = 0.15. For the th i Frame waveform X i Calculate the mean difference normalization coefficient between the reference frame Xref (both are one-dimensional arrays of length M). d i Formula 2 is shown below.

[0062] Formula 2: .

[0063] In the formula, μ i and μref The first i The mean of the frame and the reference frame, with ε set to 10. -8 This prevents the denominator from being 0. This indicator measures how close the overall amplitude levels of two frames are, with a value range of [0, 1]. The closer it is to 1, the closer the amplitude levels are.

[0064] Optionally, based on the energy ratio coefficient e i Calculate energy similarity and set its weight in the frame similarity value calculation. w 3 = 0.2. For the th... i Frame waveform X i and reference frame X ref (All are one-dimensional arrays of length M), calculate their energy ratio coefficients. e i Formula 3 is shown below.

[0065] Formula 3: .

[0066] In the formula, ε takes the value of 10. -8 This metric measures how close the total energy of two frames of signals is, with a value range of [0, 1]. The closer it is to 1, the closer the energy levels are.

[0067] Optionally, based on the standard deviation ratio coefficient v i Calculate fluctuation similarity and set its weight in the frame similarity value calculation. w 4 = 0.15. For the th i Frame waveform X i and reference frame X ref (All are one-dimensional arrays of length M), calculate their standard deviation ratios. v i Formula 4 is shown below.

[0068] Formula 4: .

[0069] In the formula, σ i and σ ref The first i The standard deviation between the frame and the reference frame, ε is 10. -8 This metric measures the degree of similarity in the intensity of fluctuations between two frames of signals. The value ranges from 0 to 1, with values ​​closer to 1 indicating more similar signal fluctuation characteristics.

[0070] Based on the above Pearson correlation coefficients r iNormalized coefficient of mean difference d i Energy ratio e i Sum of standard deviation v i Calculate the first i Four-dimensional weighted combination similarity of frames S i And calculate the combined similarity S i Restricted to the interval [0, 1], the calculation formula is shown below.

[0071] Formula 5: .

[0072] In the formula, .

[0073] The four weight coefficients w1, w2, w3, and w4 of the four-dimensional weighted similarity index are configurable parameters, which operators can adjust according to the signal characteristics of the specific detection scenario. For example, for detection scenarios where the ultrasonic signal amplitude fluctuates greatly but the waveform shape is stable (such as the detection of variable thickness components), the weight of the Pearson correlation coefficient w1 can be appropriately increased to enhance the dominant role of shape matching; for detection scenarios where defects are mainly manifested as an overall increase or decrease in amplitude rather than waveform distortion (such as poor coupling or overall material attenuation changes), the weight of the mean difference normalization coefficient w2 can be appropriately increased to enhance the discriminative power of the amplitude level dimension; for detection scenarios where the attenuation of the backwave energy is used as the main defect criterion (such as the detection of debonding of adhesive structures), the weight of the energy ratio w3 can be appropriately increased to enhance the discriminative power of the energy dimension; for detection scenarios where the signal itself has high noise (such as the detection of thick cross-section composite materials), the weight of the standard deviation ratio w4 can be appropriately increased to weaken the impact of random fluctuations caused by noise on similarity calculation. The flexible adjustment of the weight parameters allows this method to adapt to the annotation needs of different detection objects and working conditions.

[0074] Step S50: Determine the frame-level annotation result of the frame data to be annotated based on the difference between the frame similarity value and the preset similarity threshold.

[0075] The preset similarity threshold is a low limit set to determine whether a frame to be labeled can be identified as having the same label as a reference frame.

[0076] In some feasible methods, the frame-level annotation result of the frame data to be annotated is determined based on the difference between the frame similarity value and the preset similarity threshold, including the following steps S510 to S520.

[0077] Step S510: If the frame similarity is greater than or equal to the preset similarity threshold, the frame-level annotation result of the frame data to be annotated is defect-free.

[0078] Step S520: If the frame similarity is less than the preset similarity threshold, mark the state of the frame data to be labeled as pending review.

[0079] During the automatic frame-by-frame labeling process based on the preset similarity threshold T (T=0.95 can be set by default), for the i frame, if S i ≥T, the frame is automatically labeled with the same label as the reference frame; if S i <T, the frame is marked as "pending manual review" and no label is assigned temporarily.

[0080] It can be understood that the preset similarity threshold T in the embodiment of the present application supports flexible adjustment according to accuracy requirements. The threshold T directly controls the balance between the coverage rate and the labeling accuracy of automatic labeling. In high-precision scenarios (such as aerospace critical component inspection), T can be increased to 0.90 or even 0.95 to reduce the proportion of automatic labeling and increase the coverage rate of manual review, ensuring the reliability of each frame of labeling; in high-throughput scenarios (such as mass product inspection), T can be reduced to 0.75 to increase the proportion of automatic labeling to more than 90%, greatly reducing the manual workload, and a small number of frames to be reviewed can be quickly reviewed by operators. The flexible adjustability of the threshold T enables the same set of labeling method to meet both the high-precision requirements in the R&D stage and the high-efficiency requirements in the production stage, without the need to deploy different labeling schemes for different application scenarios. In the material change scenario (such as carbon fiber → glass fiber), the default threshold T=0.95 is maintained, but the four weight parameters can be fine-tuned through comparative experimental data ( w 1, w 2, w 3, w 4) to adapt to the waveform characteristic differences caused by the acoustic characteristics of different materials.

[0081] In some implementable manners, after marking the state of the frame data to be labeled as pending review when the frame similarity is less than the preset similarity threshold, the following steps S530 to S540 are further included.

[0082] Step S530: In response to a review labeling instruction for the frame data to be labeled, label the frame-level label of the frame data to be labeled as the target frame-level label corresponding to the review labeling instruction.

[0083] Step S540: Write the target frame-level label into the frame label dataset of the global ultrasonic A-Scan detection data.

[0084] After automatic annotation is completed, operators can review the unlabeled frames by annotating them frame by frame. They can select the target frame-level labels for these frames, encapsulate the results in a review annotation command, and display them in the waveform visualization interface. The frame-level labels for manually reviewed frames may be defect-free or may be frame-level labels of the same defect type as the target global label.

[0085] This application implements integrated storage of annotation results and original detection data. Frame-by-frame annotation results can be directly written into the FrameLabels dataset of the original ultrasound A-Scan detection data file in the form of an int32 integer array, making the annotation information physically inseparable from the original waveform data. Compared to the traditional method of storing annotation results in separate files (such as CSV tables, Excel files, or external label files), the integrated storage mechanism fundamentally eliminates the risks of missing annotation files, version mismatches, and data inconsistencies. Systems or personnel holding this file can directly read the complete original data and annotation information without the need to additionally search for and match external annotation files, facilitating the standardized management and long-term archiving of training datasets.

[0086] This application also provides intuitive visualization feedback on the annotation status. On the system's front-end waveform visualization interface, the annotation status of each frame is displayed in real time on the frame track using color coding. Reference frames are marked with blue pentagrams, automatically annotated frames with green dots, frames awaiting review with orange hollow circles, and defective frames that have been manually confirmed are marked with red dots. Operators can clearly grasp the annotation progress and status distribution of all N frames at a glance, such as the number of completed frames, the number of frames awaiting review, and the position of the reference frame, without having to switch between frames one by one. After each annotation operation is completed, the interface markers and the count of frames awaiting review are refreshed synchronously, forming a smooth human-computer collaborative interaction closed loop of "operation → feedback → confirmation", which significantly reduces operator fatigue during the annotation process.

[0087] In this embodiment, global ultrasound A-Scan detection data to be labeled is acquired; in response to a global label selection command for the global ultrasound A-Scan detection data, global labeling is performed on the global ultrasound A-Scan detection data; reference frame data is determined from the global ultrasound A-Scan detection data, and the remaining frame data are the frame data to be labeled; in response to an automatic labeling command, the multidimensional similarity between the reference frame data and the frame data to be labeled is calculated to obtain a frame similarity value; based on the difference between the frame similarity value and a preset similarity threshold, the frame-level labeling result of the frame data to be labeled is determined. By simply selecting reference frame data, the remaining frame data can be automatically labeled by calculating multidimensional similarity, resulting in global labeling and frame-level labeling results for the global ultrasound A-Scan detection data. This combines human experience judgment with machine calculation, greatly improving data labeling efficiency.

[0088] This application also provides an embodiment for annotating ultrasonic A-Scan test data of carbon fiber / epoxy resin laminate. The ultrasonic A-Scan test data to be annotated comes from water-coupled reflective ultrasonic testing of carbon fiber reinforced epoxy resin matrix composite laminate, using a 5 MHz water immersion focusing probe, a sampling frequency of 80 MHz, and 2000 sampling points per frame. The data file is stored in HDF5 format and contains 64 frames of A-Scan waveforms, constituting a complete test cycle.

[0089] The operator uploads the ultrasound A-Scan data file to be labeled to the system's front-end interface. The system automatically parses the file, extracts an amplitude matrix of shape [64, 2000], and presents the first frame of the A-Scan waveform as a line graph. The operator can then browse all 64 frames of waveform one by one by dragging the slider or using the left and right arrow keys on the keyboard, observing the morphology and amplitude of the interface echo and the bottom echo in each frame, whether there are abnormal intermediate echoes (extra echo peaks appearing between the interface wave and the bottom echo), and whether there is significant attenuation of the bottom echo energy.

[0090] The operator first reviewed all 64 frames of waveforms, observing the interface echo morphology, bottom echo integrity, and energy level of all 64 A-Scan waveforms, as well as the presence of regionally distributed abnormal intermediate echoes, to form an overall judgment on the defect type of the detected area. Based on this comprehensive judgment, the laminate specimen contained pre-embedded delamination defects. Its ultrasonic signal characteristics were manifested by significant abnormal echo peaks located between the interface wave and the bottom echo in multiple A-Scan waveforms, with corresponding localized attenuation of the bottom echo energy. Therefore, the global label was selected as "Delamination (Dl)," and this label was written into the GlobalLabel dataset within the file.

[0091] During the frame-by-frame annotation phase, the operator found that the signal characteristics of the first frame (the starting position of the scan) were typical: the interface wave was clear, the bottom wave was complete and had sufficient energy, and there was no abnormal intermediate echo. Therefore, the frame was selected as the reference frame and marked as "no defects (OK)". The position of this frame was displayed as a blue pentagram in the system interface.

[0092] The operator clicks the "Automatic Annotation" button, triggering the system to perform automatic annotation calculation based on a four-dimensional weighted similarity index. Using the reference frame as a baseline, the system calculates the similarity between the remaining 63 frames and the reference frame, and automatically classifies them according to a preset similarity threshold (default 0.95). Frames with similarity higher than the threshold are automatically labeled "OK" (marked with a green dot), while frames with similarity lower than the threshold are marked "Pending Review" (marked with an orange hollow circle). In this embodiment, the automatic annotation result is 48 OK frames, 15 pending review frames, and 1 reference frame, with an automatic annotation ratio of 75.0% (48 / 64).

[0093] The operator dragged the slider to observe the 15 frames of signals to be reviewed frame by frame. Frames 6–9 showed obvious abnormal echo peaks and a significant decrease in bottom echo energy, exhibiting a regional distribution across four consecutive frames. The waveform characteristics were consistent with a layered defect, so these four consecutive frames were labeled "Layered (Dl)". The remaining 11 frames showed no obvious abnormalities, with intact bottom echoes, and were therefore confirmed as "OK". This process was repeated for all 64 frames, and the system ultimately wrote the complete FrameLabels array into the ultrasonic A-Scan detection data file.

[0094] In this embodiment, the operator spends approximately 5 seconds selecting one reference frame and approximately 25 seconds reviewing 15 frames to be reviewed, for a total time of approximately 30 seconds. Compared to manually annotating 64 frames frame by frame (approximately 5 minutes), the annotation efficiency is improved by nearly an order of magnitude. Regarding annotation quality, the 48 automatically annotated frames are all determined to be high-confidence signal-consistent frames based on a four-dimensional weighted similarity index, resulting in an extremely low risk of mislabeling. The 15 manually reviewed frames, after being judged frame by frame by professionals, accurately annotated the specific distribution segments of the layered defects, ensuring the accuracy of defect boundaries and types. This embodiment verifies that the proposed method can balance high efficiency and high quality in typical composite material ultrasonic A-Scan data annotation tasks, effectively supporting subsequent deep learning model training and automatic defect identification tasks.

[0095] The embodiments of this application have the following advantages: (1) This method can significantly improve annotation efficiency: Taking a typical acquisition file containing 64 A-Scan waveforms as an example, the total time for human-machine collaboration to complete the annotation of all 64 frames is about 30 seconds, which is about 9 times more efficient than manual frame-by-frame annotation, approaching an order of magnitude. For large-scale training datasets containing thousands of acquisition files, the method of this invention can save weeks or even months of manual annotation time, making the construction and rapid iteration of deep learning models practically feasible.

[0096] (2) The method adopted can ensure the quality of annotation. The four-dimensional weighted combination similarity index comprehensively evaluates the inter-frame similarity from four independent dimensions: the morphology of the ultrasound A-Scan waveform (Pearson correlation coefficient, weight 0.5), amplitude level (mean difference normalization coefficient, weight 0.15), energy intensity (energy ratio, weight 0.2), and fluctuation degree (standard deviation ratio, weight 0.15). Compared with single-dimensional measurement (such as judging only by correlation coefficient), the four-dimensional weighted combination measurement has stronger robustness to noise interference, local amplitude drift, and signal distortion, and can effectively distinguish boundary cases such as "similar waveform morphology but abnormal amplitude" or "close amplitude but morphological distortion".

[0097] (3) The manual review step of the method ensures the final confirmation of the uncertain areas of the algorithm. The system marks frames with a four-dimensional weighted combination similarity lower than a preset threshold as "to be reviewed". Only operators are required to manually interpret these low-confidence frames, while the high-confidence frames are directly labeled automatically by the algorithm. This mechanism achieves the optimal division of labor: "the algorithm handles the high-confidence certain parts, and the human handles the low-confidence ambiguous parts". That is, the algorithm uses its speed advantage to cover a large number of simple judgments, while the human uses its experience advantage to handle a small number of complex boundary cases. This significantly improves the overall labeling efficiency without sacrificing the labeling accuracy.

[0098] (4) The method adopted can reduce the dependence on prior labeled data. The labeling process only requires the operator to select a reference frame and assign a label, without the need for any pre-labeled training samples as a starting condition. Unlike the automatic labeling method based on supervised learning, which must accumulate a large-scale labeled dataset in advance to train the model, the method of this invention can be put into use immediately in the initial stage when the labeled data is zero. This solves the problem of accumulating labeled data in the early stage of deep learning defect detection model development and forms a positive feedback iterative closed loop of "manual labeling → model training → auxiliary pre-labeling → manual review".

[0099] (5) The method is independent of the tested material system and testing process parameters. The four-dimensional weighted combination similarity index is based entirely on the relative comparison of inter-frame waveforms. The Pearson correlation coefficient measures the similarity of the deviation patterns of two waveforms relative to their respective means. The normalized value of the mean difference and the energy ratio are normalized based on the statistical value of the reference frame itself. Therefore, the similarity calculation does not depend on any reinforcing fibers (such as carbon fiber / glass fiber / hybrid fiber), matrix type (such as epoxy / bismaleimide / polyimide), layup structure, or testing parameters (such as probe frequency, sampling frequency, scanning step size). When the tested material, structural form, or testing process changes, there is no need to recalibrate any parameters. The operator only needs to select a new reference frame in the new test data to continue the annotation, which has good generalization ability across material systems and testing scenarios.

[0100] This application also provides an ultrasonic A-Scan detection data annotation device. Please refer to... Figure 5 The ultrasonic A-Scan detection data annotation device includes: Ultrasonic data acquisition module 10 is used to acquire global ultrasonic A-Scan detection data to be labeled; The global labeling module 20 is used to perform global labeling on the global ultrasound A-Scan detection data in response to the global label selection instruction for the global ultrasound A-Scan detection data; Reference frame determination module 30 is used to determine reference frame data from global ultrasound A-Scan detection data, and the data other than the reference frame data are frame data to be labeled. The similarity calculation module 40 is used to calculate the multidimensional similarity between the reference frame data and the frame data to be labeled in response to the automatic annotation instruction, and obtain the frame similarity value. The frame-level labeling module 50 is used to determine the frame-level labeling result of the frame data to be labeled based on the difference between the frame similarity value and the preset similarity threshold.

[0101] Optionally, the ultrasound data acquisition module 10 is also used to: acquire global ultrasound A-Scan detection data within the target period; parse the global ultrasound A-Scan detection data and display the waveform frame by frame in the waveform visualization interface.

[0102] Optionally, the global label annotation module 20 is also used to: when the global label status bar in the waveform visualization interface receives a global label selection instruction, switch the display content of the global label status bar to the target global label corresponding to the global label selection instruction; and write the target global label into the global label dataset of the global ultrasound A-Scan detection data.

[0103] Optionally, the reference frame determination module 30 is also used to: when no frame-level labels are generated in the global ultrasound A-Scan detection data and the current annotation mode is frame-by-frame annotation, use a frame of data in the global ultrasound A-Scan detection data that is marked as defect-free as the reference frame data.

[0104] Optionally, the multidimensional similarity includes waveform similarity, amplitude level similarity, energy similarity, and fluctuation similarity. The similarity calculation module 40 is also used to: calculate the waveform similarity, amplitude level similarity, energy similarity, and fluctuation similarity between the reference frame data and the frame data to be labeled for each frame of data to be labeled, and obtain waveform similarity value, amplitude level similarity value, energy similarity value, and fluctuation similarity value; and perform a weighted summation of the waveform similarity value, amplitude level similarity value, energy similarity value, and fluctuation similarity value to obtain the frame similarity value.

[0105] Optionally, the frame-level labeling module 50 is also used to: when the frame similarity is greater than or equal to a preset similarity threshold, the frame-level labeling result of the frame data to be labeled is defect-free; when the frame similarity is less than a preset similarity threshold, the status of the frame data to be labeled is marked as pending review.

[0106] Optionally, the ultrasound A-Scan detection data annotation device further includes a label verification and annotation module, which is used to: in response to a verification and annotation instruction for the frame data to be annotated, annotate the frame-level label of the frame data to be annotated as a target frame-level label corresponding to the verification and annotation instruction; and write the target frame-level label into the frame label dataset of the global ultrasound A-Scan detection data.

[0107] The ultrasonic A-Scan detection data annotation device provided in this application adopts the ultrasonic A-Scan detection data annotation method in the above embodiments, which can solve the technical problem of how to improve the efficiency of ultrasonic A-Scan detection data annotation. Compared with the prior art, the beneficial effects of the ultrasonic A-Scan detection data annotation device provided in this application are the same as the beneficial effects of the ultrasonic A-Scan detection data annotation method provided in the above embodiments, and other technical features in the ultrasonic A-Scan detection data annotation device are the same as the features disclosed in the methods of the above embodiments, and will not be repeated here.

[0108] This application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the ultrasonic A-Scan detection data annotation method in the first embodiment described above.

[0109] The following is for reference. Figure 6 The diagram illustrates a structural schematic of an electronic device suitable for implementing embodiments of this application. The electronic devices in these embodiments may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0110] like Figure 6As shown, the electronic device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the electronic device. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. The communication device 1009 allows the electronic device to communicate wirelessly or wiredly with other devices to exchange data. Although the diagrams show electronic devices with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented alternatively.

[0111] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0112] The electronic device provided in this application, employing the ultrasonic A-Scan detection data annotation method in the above embodiments, can solve the technical problem of how to improve the efficiency of ultrasonic A-Scan detection data annotation. Compared with the prior art, the beneficial effects of the electronic device provided in this application are the same as those of the ultrasonic A-Scan detection data annotation method provided in the above embodiments, and other technical features of this electronic device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0113] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0114] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0115] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the ultrasound A-Scan detection data annotation method in the above embodiments.

[0116] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having 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 fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0117] The aforementioned computer-readable storage medium may be included in an electronic device or may exist independently without being assembled into an electronic device.

[0118] The aforementioned computer-readable storage medium carries one or more programs that, when executed by an electronic device, cause the electronic device to: acquire global ultrasound A-Scan detection data to be labeled; in response to a global label selection instruction for the global ultrasound A-Scan detection data, perform global labeling on the global ultrasound A-Scan detection data; determine reference frame data from the global ultrasound A-Scan detection data, and the data other than the reference frame data are frame data to be labeled; in response to an automatic labeling instruction, calculate the multidimensional similarity between the reference frame data and the frame data to be labeled, and obtain a frame similarity value; and determine the frame-level labeling result of the frame data to be labeled based on the difference between the frame similarity value and a preset similarity threshold.

[0119] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof. These programming languages ​​include object-oriented programming languages—such as Java, Smalltalk, C++, JavaScript, and Python—as well as conventional procedural programming languages—such as the "C" language or similar programming 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).

[0120] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0121] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0122] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described ultrasound A-Scan detection data annotation method, thereby solving the technical problem of how to improve the efficiency of ultrasound A-Scan detection data annotation. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the ultrasound A-Scan detection data annotation method provided in the above embodiments, and will not be repeated here.

[0123] This application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the ultrasound A-Scan detection data annotation method described above.

[0124] The computer program product provided in this application can improve the efficiency of ultrasound A-Scan detection data annotation. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the ultrasound A-Scan detection data annotation method provided in the above embodiments, and will not be repeated here.

[0125] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.

Claims

1. A method for annotating ultrasonic A-Scan detection data, characterized in that, The method for annotating ultrasonic A-Scan detection data includes: Obtain the global ultrasound A-Scan detection data to be labeled; In response to the global label selection instruction for the global ultrasound A-Scan detection data, the global ultrasound A-Scan detection data is globally labeled; Reference frame data is determined from the global ultrasound A-Scan detection data, and the data other than the reference frame data are frame data to be labeled. In response to the automatic annotation instruction, the multidimensional similarity between the reference frame data and the frame data to be annotated is calculated to obtain a frame similarity value; The frame-level annotation result of the frame data to be annotated is determined based on the difference between the frame similarity value and the preset similarity threshold.

2. The ultrasonic A-Scan detection data annotation method as described in claim 1, characterized in that, The acquisition of the global ultrasound A-Scan detection data to be labeled includes: Collect global ultrasound A-Scan detection data within the target period; The global ultrasound A-Scan detection data is analyzed, and the waveforms are displayed frame by frame in the waveform visualization interface.

3. The ultrasonic A-Scan detection data annotation method as described in claim 2, characterized in that, The step of globally labeling the global ultrasound A-Scan detection data in response to a global label selection command for the global ultrasound A-Scan detection data includes: When the global label status bar in the waveform visualization interface is detected to have received the global label selection instruction, the display content of the global label status bar is switched to the target global label corresponding to the global label selection instruction. The target global label is written into the global label dataset of the global ultrasound A-Scan detection data.

4. The ultrasonic A-Scan detection data annotation method as described in claim 1, characterized in that, Determining reference frame data from the global ultrasound A-Scan detection data includes: If no frame-level labels are generated in the global ultrasound A-Scan detection data and the current annotation mode is frame-by-frame annotation, the frame data in the global ultrasound A-Scan detection data that is labeled as defect-free is used as the reference frame data.

5. The ultrasonic A-Scan detection data annotation method as described in claim 1, characterized in that, The multidimensional similarity includes waveform similarity, amplitude level similarity, energy similarity, and fluctuation similarity. The calculation of the multidimensional similarity between the reference frame data and the frame data to be labeled, to obtain a frame similarity value, includes: For each frame of data to be labeled, the waveform similarity, amplitude level similarity, energy similarity, and fluctuation similarity between the reference frame data and the frame data to be labeled are calculated respectively to obtain waveform similarity value, amplitude level similarity value, energy similarity value, and fluctuation similarity value; The frame similarity value is obtained by weighted summation of the waveform similarity value, the amplitude level similarity value, the energy similarity value, and the fluctuation similarity value.

6. The method for annotating ultrasonic A-Scan detection data as described in any one of claims 1-5, characterized in that, The step of determining the frame-level annotation result of the frame data to be annotated based on the difference between the frame similarity value and the preset similarity threshold includes: If the frame similarity is greater than or equal to the preset similarity threshold, the frame-level annotation result of the frame data to be annotated is defect-free; If the frame similarity is less than the preset similarity threshold, the status of the frame data to be labeled is marked as pending review.

7. The ultrasonic A-Scan detection data annotation method as described in claim 6, characterized in that, After marking the state of the frame data to be labeled as pending review when the frame similarity is less than the preset similarity threshold, the method further includes: In response to the verification annotation instruction for the frame data to be annotated, the frame-level label of the frame data to be annotated is annotated with the target frame-level label corresponding to the verification annotation instruction; The target frame-level label is written into the frame label dataset of the global ultrasound A-Scan detection data.

8. A device for annotating ultrasonic A-Scan detection data, characterized in that, The ultrasonic A-Scan detection data annotation device includes: The ultrasound data acquisition module is used to acquire global ultrasound A-Scan detection data to be labeled; A global labeling module is used to perform global labeling on the global ultrasound A-Scan detection data in response to a global label selection instruction for the global ultrasound A-Scan detection data. The reference frame determination module is used to determine reference frame data from the global ultrasound A-Scan detection data, and the data other than the reference frame data are frame data to be labeled. The similarity calculation module is used to calculate the multidimensional similarity between the reference frame data and the frame data to be labeled in response to the automatic labeling instruction, and obtain the frame similarity value; The frame-level labeling module is used to determine the frame-level labeling result of the frame data to be labeled based on the difference between the frame similarity value and the preset similarity threshold.

9. An electronic device, characterized in that, The electronic device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the ultrasonic A-Scan detection data annotation method as described in any one of claims 1 to 7.

10. A medium, characterized in that, The medium is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the ultrasonic A-Scan detection data annotation method as described in any one of claims 1 to 7.