A method for ultrasonic image type recognition based on target detection

The convolutional neural network XDNetV2-D-UT identifies organ markers in ultrasound images, which solves the problem of difficulty in automatically identifying organ types in ultrasound image analysis, improves the convenience and accuracy of analysis, and is suitable for a variety of ultrasound machines. images, enabling real-time detection.

CN114782318BActive Publication Date: 2024-09-06TEND.AI MEDICAL TECHNOLOGY (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210293087.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-24
Publication Date
2024-09-06
Estimated Expiration
2042-03-24

AI Technical Summary

Technical Problem

In ultrasound image analysis, it is difficult for existing technology to automatically identify organ types, causing users to manually switch analysis modes, which increases operational complexity and time consumption.

Method used

The convolutional neural network XDNetV2-D-UT is used to combine the feature pyramid network and the classification network to identify organ markers in ultrasound images through the target detection network, determine the organ type, and reduce user manual operations.

Benefits of technology

It realizes the automatic identification of organ types in ultrasound images, improves the convenience and ease of use of the software, avoids the over-fitting problem of small sample training, and is suitable for images of ultrasound machines of different manufacturers and models, with high versatility and real-time Detection capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114782318B
    Figure CN114782318B
Patent Text Reader

Abstract

The present invention relates to a method for identifying the type of an ultrasonic image based on target detection, comprising: obtaining an ultrasonic image with an organ mark; identifying the organ mark of the ultrasonic image through a target detection network to determine the organ type, wherein the target detection network comprises a convolutional neural network XDNetV2-D-UT, a feature pyramid network, and two parallel classification networks and a regression network connected in sequence; the convolutional neural network XDNetV2-D-UT is used to extract features of the ultrasonic image, the feature pyramid network is used to enhance and fuse the extracted features, the classification network is used to identify the organ mark type of the ultrasonic image based on the enhanced and fused features, and the regression network is used to identify the organ mark area of ​​the ultrasonic image. The present invention can effectively detect the organ type of an ultrasonic image through a target detection network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medical image processing, and in particular to an ultrasonic image type recognition method based on target detection. Background Art

[0002] In clinical practice, ultrasound is used to examine a variety of organs, such as the thyroid, breast, liver, kidney, bladder, etc. Since the tissue structures of different parts are different, even with the same characteristics (echo, calcification, or morphology, etc.), the images of different organs are different. Therefore, in ultrasound image analysis software, it is best to use different analysis algorithms for different organs.

[0003] Most ultrasound images are marked with icons representing the parts or organs. Therefore, by identifying the icons, it is possible to determine which organ the image imported by the user belongs to, and use the corresponding analysis algorithm accordingly, reducing unnecessary manual operations for users and improving the convenience and ease of use of the software. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide an ultrasound image type recognition method for target detection, which can effectively detect the organ type of the ultrasound image through a target detection network.

[0005] The technical solution adopted by the present invention to solve the technical problem is: to provide an ultrasonic image type recognition method for target detection, comprising:

[0006] Obtain ultrasound images with organ markers;

[0007] The organ type is determined by identifying the organ markers of the ultrasound image through a target detection network, wherein the target detection network includes a convolutional neural network XDNetV2-D-UT, a feature pyramid network, and two parallel classification networks and a regression network connected in sequence; the convolutional neural network XDNetV2-D-UT is used to extract features of the ultrasound image, the feature pyramid network is used to enhance and fuse the extracted features, the classification network is used to identify the organ marker type of the ultrasound image based on the enhanced and fused features, and the regression network is used to identify the organ marker area of ​​the ultrasound image.

[0008] The convolutional neural network XDNetV2-D-UT includes a first feature unit, two second feature units, a third feature unit, a fourth feature unit, a fifth feature unit and a sixth feature unit connected in sequence, wherein the first feature unit includes a seventh feature unit and an eighth feature unit connected in sequence; the second feature unit includes a fourth feature unit, a ninth feature unit and an eighth feature unit connected in sequence; the third feature unit includes a fourth feature unit and a ninth feature unit connected in sequence.

[0009] The seventh feature unit includes a depth-separable convolutional layer, a batch normalization layer, an activation layer, a convolutional layer, an activation layer, a layer normalization layer, an attention module, an addition layer, a layer normalization layer, an attention module and an addition layer, which are connected in sequence, and the output of the second activation layer is connected to the first addition layer, and the output of the first addition layer is connected to the second addition layer.

[0010] The fourth feature unit includes a convolution layer, an activation layer, a layer normalization layer, an attention module, an addition layer, a layer normalization layer, an attention module and an addition layer connected in sequence, and the output of the activation layer is connected to the first addition layer, and the output of the first addition layer is connected to the second addition layer.

[0011] The ninth feature unit includes an activation layer, a batch normalization layer, a depth-wise separable convolution layer, an activation layer, a batch normalization layer, a depth-wise separable convolution layer, an addition layer, a layer normalization layer, an attention module and an addition layer, which are connected in sequence, and the output of the fourth feature unit is connected to the first addition layer, and the output of the first addition layer is connected to the second addition layer.

[0012] The fifth feature unit includes a convolutional layer, an activation layer, a layer normalization layer, an attention module and an addition layer connected in sequence, and the output of the activation layer is connected to the addition layer.

[0013] The attention module includes a relative position encoding layer and three depth-separable convolutional layers, wherein the second depth-separable layer is dot-multiplied with the third depth-separable layer to obtain a first dot-multiplication result, the third depth-separable layer is dot-multiplied with the relative position encoding layer to obtain a second dot-multiplication result, the first dot-multiplication result and the second dot-multiplication result are added and connected to the attention activation layer, and the output of the activation layer is dot-multiplied with the first depth-separable layer and then connected to the reshaping layer.

[0014] The eighth feature unit includes an activation layer, a batch normalization layer, a depth-wise separable convolution layer, an activation layer, a batch normalization layer, a depth-wise separable convolution layer, and an addition layer connected in sequence, and the output of the seventh feature unit is connected to the addition layer.

[0015] The sixth feature unit includes a convolutional layer, a batch normalization layer and an activation layer connected in sequence.

[0016] Beneficial Effects

[0017] Due to the adoption of the above-mentioned technical scheme, the present invention has the following advantages and positive effects compared with the prior art: the development of the convolutional neural network XDNetV2-D-UT network constructed by the present invention belongs to small sample training, and the lightweight network can effectively avoid the overfitting problem of small sample training and improve the generalization ability; since the type icon (i.e., the organ mark) is a small and medium-sized target relative to the entire ultrasound image, and is mainly composed of lines, the XDNetV2-D-UT network of the present invention uses more attention modules and convolution layers in the low- and medium-dimensional feature map stages to enhance the extraction of small and medium-sized targets and line detail features; the target detection network of the present invention detects the type icon of the organ, and at the same time eliminates the user's manual switching of the analysis mode, saving a lot of time; the present invention is applicable to ultrasound machine images of different manufacturers and models, and is applicable regardless of the situation of which probe the doctor uses, and is more versatile and can be applied to real-time detection and analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a target detection network processing flow chart of an embodiment of the present invention;

[0019] Figure 2 Schematic diagram of the convolutional neural network structure of an embodiment of the present invention;

[0020] Figure 3 is a schematic diagram of the structure of an attention module according to an embodiment of the present invention;

[0021] Figure 4 is a diagram of breast ultrasound image detection results according to an embodiment of the present invention;

[0022] Figure 5 1 is a diagram of thyroid ultrasound image detection results according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the appended claims of the application equally.

[0024] An embodiment of the present invention relates to a method for ultrasonic image type recognition based on target detection, comprising:

[0025] Obtain ultrasound images with organ markers;

[0026] The organ type is determined by identifying the organ markers of the ultrasound image through a target detection network, wherein the target detection network includes a convolutional neural network XDNetV2-D-UT, a feature pyramid network, and two parallel classification networks and a regression network connected in sequence; the convolutional neural network XDNetV2-D-UT is used to extract features of the ultrasound image, the feature pyramid network is used to enhance and fuse the extracted features, the classification network is used to identify the organ marker type of the ultrasound image based on the enhanced and fused features, and the regression network is used to identify the organ marker area of ​​the ultrasound image.

[0027] The following is a detailed introduction to this implementation method:

[0028] 1. Training data composition

[0029] Tens of thousands of ultrasound images were manually marked with icon areas and types of parts or organs, i.e., coordinates of vertices in rectangular areas, and corresponding categories. In this implementation, there are 10 categories, namely: thyroid, breast, cervical lymph nodes, axillary lymph nodes, bladder, heart, liver, kidney, uterus, and prostate.

[0030] 2. Data Preprocessing

[0031] All images are resized to (512, 512, 3) when input into the convolutional neural network, where 3 represents the number of channels, that is, the data is input as a color image; the data is then normalized.

[0032] 3. Data Augmentation

[0033] Enhance the data to improve the robustness of the algorithm.

[0034] The data augmentation used includes: random width shift, random height shift, random brightness shift, random channel shift, random width flip, and random height flip.

[0035] 4. Backbone network structure (Network Architecture)

[0036] The backbone network used in the target detection network in this embodiment is the convolutional neural network XDNetV2-D-UT, which is a semi-self-attention convolutional neural network (semi-self-attention CNN) for the task target, namely, ultrasound image type recognition. Figure 2 .

[0037] Furthermore, the local structure used by the convolutional neural network XDNetV2-D-UT includes:

[0038] A) Convolution layer;

[0039] B) Depth-wise separable convolution layer;

[0040] C) Batch normalization layer: normalizes individual neurons between a batch of training data;

[0041] D) Layer normalization layer: normalizes all neurons in a layer using a single training data.

[0042] E) Activation layer (swish and softmax);

[0043] Swish function formula:

[0044]

[0045] Softmax function formula:

[0046]

[0047] Among them, e is a natural constant; x i Represents the i-th element of the input.

[0048] F) Relative Position Embedding: The ordinary convolution layer extracts the image features of pixel intensity (i.e. color) and edge contours; the attention module uses relative position encoding to obtain the relative position relationship between pixels, thereby extracting features such as shape structure;

[0049] G) add;

[0050] H) dot product;

[0051] I) Reshape layer.

[0052] Furthermore, by splicing the above local structures, the first feature unit, two second feature units, a third feature unit, a fourth feature unit, a fifth feature unit and a sixth feature unit can be obtained, wherein the first feature unit includes the seventh feature unit and the eighth feature unit connected in sequence; the second feature unit includes the fourth feature unit, the ninth feature unit and the eighth feature unit connected in sequence; the third feature unit includes the fourth feature unit and the ninth feature unit connected in sequence. According to each local structure, the main function of the fourth, fifth, sixth and seventh feature units is downsampling, and the fourth, fifth and seventh feature units themselves have certain image feature extraction capabilities; the first, second and third feature units are actually composed of the fourth, seventh, eighth and ninth feature units, wherein the fourth and seventh feature units function as described above, that is, downsampling and have certain image feature extraction capabilities; the main function of the eighth and ninth feature units is image feature extraction; the eighth and ninth feature units in the second feature unit are connected in series in order to further strengthen the extraction of low- and medium-dimensional features.

[0053] The seventh feature unit includes a depth-separable convolutional layer, a batch normalization layer, an activation layer (swish), a convolutional layer, an activation layer (swish), a layer normalization layer, an attention module, an addition layer, a layer normalization layer, an attention module and an addition layer, which are connected in sequence, and the output of the second activation layer (swish) is connected to the first addition layer, and the output of the first addition layer is connected to the second addition layer.

[0054] The eighth feature unit includes an activation layer, a batch normalization layer, a depth-wise separable convolution layer, an activation layer (swish), a batch normalization layer, a depth-wise separable convolution layer and an addition layer connected in sequence, and the output of the seventh feature unit is connected to the addition layer.

[0055] The fourth feature unit includes a convolutional layer, an activation layer (swish), a layer normalization layer, an attention module, an addition layer, a layer normalization layer, an attention module and an addition layer connected in sequence, and the output of the activation layer (swish) is connected to the first addition layer, and the output of the first addition layer is connected to the second addition layer.

[0056] The ninth feature unit includes an activation layer (swish), a batch normalization layer, a depth-wise separable convolution layer, an activation layer (swish), a batch normalization layer, a depth-wise separable convolution layer, an addition layer, a layer normalization layer, an attention module and an addition layer, which are connected in sequence, and the output of the fourth feature unit is connected to the first addition layer, and the output of the first addition layer is connected to the second addition layer.

[0057] The fifth feature unit includes a convolutional layer, an activation layer (swish), a layer normalization layer, an attention module and an addition layer connected in sequence, and the output of the activation layer is connected to the addition layer.

[0058] The sixth feature unit includes a convolutional layer, a batch normalization layer and an activation layer (swish) connected in sequence.

[0059] See also Figure 3 The attention module includes a relative position encoding layer and three depth-separable convolutional layers, wherein the second depth-separable layer is dot-multiplied with the third depth-separable layer to obtain a first dot-multiplication result, the third depth-separable layer is dot-multiplied with the relative position encoding layer to obtain a second dot-multiplication result, the first dot-multiplication result and the second dot-multiplication result are added and connected to the attention activation layer (softmax), and the output of the activation layer is dot-multiplied with the first depth-separable layer and then connected to the reshaping layer.

[0060] This embodiment uses the self-attention mechanism in the transformer to construct an attention module suitable for ultrasound images. Figure 3 ; Combined with the full pre-activation skip connection in ResNet, feature enhancement is achieved and the network is given random depth; and depthwise separable convolution is applied to significantly reduce the number of parameters and computational complexity.

[0061] 5. Object detection model structure

[0062] The target detection model of the present invention is a one-stage type, see Figure 1 :The input is processed by the backbone network (XDNetV2-D-UT) and then input into the Feature Pyramid Network (FPN). The function of FPN is feature enhancement and fusion. Then, it undergoes classification analysis and regression analysis to obtain the classification output and the corresponding bounding box output.

[0063] 6. Loss Function

[0064] Corresponding to regression analysis and classification analysis, the loss functions are Smooth-L1 and Focal Loss respectively.

[0065] Smooth-L1 formula:

[0066]

[0067] Among them, L1 Smooth represents the prediction loss, r represents the actual value, Represents the predicted value.

[0068] Focal Loss formula:

[0069] FL(p t )=-(1-p t ) γ log(p t )

[0070] in:

[0071]

[0072] Among them, FL is the prediction loss, p t Represents the probability of the model predicting the class, y t represents the actual value (i.e., whether it is actually class t, 1 represents "yes" and 0 represents "no"), Represents the predicted value, γ is a constant, which is 2 here.

[0073] 7. Development and application process

[0074] The labeled data (including box selection coordinates and classification) is preprocessed and enhanced, and then input into and trained into the target detection model. When applied, the software will preprocess the image imported by the user, and then obtain the predicted classification and corresponding box results through model operation, and obtain the final result through non-maximum suppression (NMS).

[0075] If the results are visualized, Figure 4 As shown, Figure 4 The area framed by the white rectangular frame in the lower right corner of the middle right part is the area where the organ mark is identified by the target detection network in this embodiment. According to the type of the organ mark, it can be determined that the organ in the ultrasound image is the breast. It should be noted that Figure 4 The rectangular frame corresponding to the internal organs is not obtained in this embodiment, but is a built-in function when the ultrasound machine is used.

[0076] like Figure 5 As shown, Figure 5 The area framed by the white rectangular frame in the lower right corner is the area where the organ mark recognized by the target detection network in this embodiment is located. According to the type of the organ mark, it can be determined that the organ in the ultrasound image is the thyroid gland.

[0077] It is not difficult to find that the network (XDNetV2-D-UT) of the present invention mainly uses attention modules and jump connections for adaptive network depth, and uses a large number of deep separable convolutions to reduce the amount of calculation parameters, which is a very lightweight network structure. The lightweight network has two major advantages in the present invention: 1: Because the amount of calculation is small, the network runs fast; 2: The ultrasound image of the cervical lymph node belongs to medical data, which is not only difficult to collect, but also has ethical and privacy issues. Therefore, the development of the XDNetV2-D-UT network belongs to small sample training, and the lightweight network can effectively avoid the overfitting problem of small sample training and improve the generalization ability. Since the type icon is a small and medium-sized target relative to the entire ultrasound image, and is mainly composed of lines, the XDNetV2-D-UT network uses more attention modules and convolutional layers in the low and medium dimensional feature map stages to strengthen the extraction of small and medium-sized targets and line detail features. Therefore, compared with other network structures, it has the advantages of fast speed and high accuracy.

[0078] The foregoing description of specific exemplary embodiments of the present invention is for the purpose of illustration and demonstration. These descriptions are not intended to limit the present invention to the precise form disclosed, and it is clear that many changes and variations can be made based on the above teachings. The purpose of selecting and describing the exemplary embodiments is to explain the specific principles of the present invention and its practical application, so that those skilled in the art can realize and utilize various different exemplary embodiments of the present invention and various different selections and changes. The scope of the present invention is intended to be limited by the claims and their equivalents.

Claims

1. A method for ultrasonic image type recognition based on target detection, characterized in that: include: Obtain ultrasound images with organ markers; The organ type is determined by identifying the organ marker of the ultrasound image through a target detection network, wherein the target detection network includes a convolutional neural network XDNetV2-D-UT, a feature pyramid network, and two parallel classification networks and a regression network connected in sequence; the convolutional neural network XDNetV2-D-UT is used to extract features of the ultrasound image, the feature pyramid network is used to enhance and fuse the extracted features, the classification network is used to identify the organ marker type of the ultrasound image according to the enhanced and fused features, and the regression network is used to identify the organ marker area of ​​the ultrasound image; The convolutional neural network XDNetV2-D-UT includes a first feature unit, two second feature units, a third feature unit, a fourth feature unit, a fifth feature unit and a sixth feature unit connected in sequence, wherein the first feature unit includes a seventh feature unit and an eighth feature unit connected in sequence; the second feature unit includes a fourth feature unit, a ninth feature unit and an eighth feature unit connected in sequence; the third feature unit includes a fourth feature unit and a ninth feature unit connected in sequence; The seventh feature unit includes a depth-separable convolutional layer, a batch normalization layer, an activation layer, a convolutional layer, an activation layer, a layer normalization layer, an attention module, an addition layer, a layer normalization layer, an attention module and an addition layer connected in sequence, and the output of the second activation layer is connected to the first addition layer, and the output of the first addition layer is connected to the second addition layer; The eighth feature unit includes an activation layer, a batch normalization layer, a depthwise separable convolution layer, an activation layer, a batch normalization layer, a depthwise separable convolution layer, and an addition layer connected in sequence, and an output of the seventh feature unit in the first feature unit is connected to the addition layer of the eighth feature unit in the first feature unit; The fourth feature unit includes a convolution layer, an activation layer, a layer normalization layer, an attention module, an addition layer, a layer normalization layer, an attention module and an addition layer connected in sequence, and the output of the activation layer of the fourth feature unit is connected to the first addition layer in the fourth feature unit, and the output of the first addition layer of the fourth feature unit is connected to the second addition layer of the fourth feature unit; The ninth feature unit includes an activation layer, a batch normalization layer, a depthwise separable convolution layer, an activation layer, a batch normalization layer, a depthwise separable convolution layer, an addition layer, a layer normalization layer, an attention module, and an addition layer connected in sequence, and the output of the fourth feature unit in the second feature unit is connected to the first addition layer of the ninth feature unit in the second feature unit, and the output of the first addition layer of the ninth feature unit is connected to the second addition layer of the ninth feature unit; The fifth feature unit includes a convolutional layer, an activation layer, a layer normalization layer, an attention module and an addition layer connected in sequence, and the output of the activation layer of the fifth feature unit is connected to the addition layer of the fifth feature unit; The sixth feature unit includes a convolutional layer, a batch normalization layer and an activation layer connected in sequence.

2. The method for ultrasonic image type recognition based on target detection according to claim 1, characterized in that: The attention module includes a relative position encoding layer and three depth-separable convolutional layers, wherein the second depth-separable layer is dot-multiplied with the third depth-separable layer to obtain a first dot-multiplication result, the third depth-separable layer is dot-multiplied with the relative position encoding layer to obtain a second dot-multiplication result, the first dot-multiplication result and the second dot-multiplication result are added and connected to the attention activation layer, and the output of the activation layer is dot-multiplied with the first depth-separable layer and then connected to the reshaping layer.