Deep learning-based ultrasonic image segmentation method and system, device and medium

By extracting and optimizing multi-layer feature maps, and using dual attention modules to optimize feature maps, the problem of low ultrasonic image segmentation accuracy in the existing technology is solved, higher detection accuracy and speed are achieved, and it is suitable for accurate segmentation of liver lesions. .

WO2024182997A1PCT designated stage expired Publication Date: 2024-09-12SHENZHEN INST OF ADVANCED TECH CHINESE ACAD OF SCI

Patent Information

Application Number
PCT/CN2023/080063
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

Existing deep learning-based ultrasound image segmentation algorithms still have low segmentation accuracy when processing ultrasound images with strong artifacts, and fail to fully utilize the complementary information between feature maps of different layers for optimization.

Method used

By extracting multiple layers of feature maps with different spatial resolutions, using the complementary information between different layers of feature maps for optimization, an optimized multi-layer feature map is generated, and dual attention weights are learned through the dual attention module to optimize each layer feature map, and finally perform an upsampling convolution operation to obtain an ultrasound image segmentation map with the same scale as the RGB image.

Benefits of technology

The detection accuracy and speed of ultrasound image segmentation are significantly improved, the liver lesion area can be processed more accurately, and the efficiency of computer-aided clinical examination is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023080063_12092024_PF_FP_ABST
    Figure CN2023080063_12092024_PF_FP_ABST
Patent Text Reader

Abstract

A deep learning-based ultrasonic image segmentation method and system, a device and a medium. The method comprises the following steps: according to a current ultrasonic image to be tested, extracting multiple layers of feature maps having different spatial resolutions; using complementary information between the feature maps of the different layers to optimize missing feature information of each feature map layer to obtain optimized multiple layers of feature maps; and performing up-sampling convolution operation on the optimized multiple layers of feature maps to obtain an ultrasonic image segmented map having the same scale as an RGB image of said current image. The method fully uses complementary information between the different layers of feature maps to perform targeted optimization on each feature map layer so as to improve a segmentation result, thus achieving higher testing precision.
Need to check novelty before this filing date? Find Prior Art

Description

Ultrasound image segmentation method, system, device and medium based on deep learning Technical Field

[0001] The present invention relates to the fields of image segmentation and medical imaging technology, and in particular to a method, system, device and medium for ultrasound image segmentation based on deep learning. Background Art

[0002] Automatically and accurately segmenting lesions in ultrasound images using computers is crucial for computer-assisted clinical examination and treatment. This task can be formulated as a binary labeling problem for a single ultrasound image, i.e., using a computer-assisted system to automatically perform pixel-level labeling on lesions in ultrasound data.

[0003] Currently, in the clinical treatment stage, doctors rely on accurate tumor segmentation results to make clinical diagnoses for patients. However, due to the weak boundaries of liver lesions, large variations in liver lesion shapes, and uneven intensity distribution within liver lesions, it is extremely difficult to accurately segment liver lesion areas using ultrasound. Traditional ultrasound image segmentation methods often remove speckle noise before performing ultrasound image segmentation, or rely on manual features to solve this problem. However, due to the limited image discrimination ability, these methods are often unable to process ultrasound images with strong artifacts, making the ultrasound video segmentation task extremely technically challenging. Recently, image processing algorithms based on deep learning have shown performance that outperforms traditional algorithms. However, current deep learning-based image segmentation algorithms simply cascade the feature maps captured by the network, without performing targeted optimization and completion on each layer of feature maps, so their segmentation accuracy is still unsatisfactory.

[0004] Summary of the Invention

[0005] The present invention provides an ultrasound image segmentation method, system, device and medium based on deep learning, which intelligently processes the input ultrasound image and automatically obtains the mask of the lesion, so as to improve the speed and accuracy of automatic detection of lesions in computer-assisted ultrasound images.

[0006] To solve the above technical problems, the first aspect of the present invention provides an ultrasound image segmentation method based on deep learning, comprising the following steps:

[0007] According to the current ultrasound image to be detected, multiple layers of feature maps with different spatial resolutions are extracted;

[0008] Utilizing complementary information between feature maps of different layers to optimize missing feature information of feature maps of each layer, thereby obtaining optimized multi-layer feature maps;

[0009] An upsampling convolution operation is performed on the optimized multi-layer feature map to obtain an ultrasonic image segmentation map of the same scale as the RGB image of the current ultrasonic image to be detected.

[0010] In some exemplary embodiments, the step of optimizing missing feature information of the feature maps of each layer by utilizing complementary information between the feature maps of different layers to obtain an optimized multi-layer feature map specifically includes:

[0011] Selecting each layer of feature maps as the target feature map in turn, and performing aggregation processing on the feature maps of the remaining layers except the target feature map to generate an aggregated feature map;

[0012] The dual attention weights are learned from the aggregated feature map to optimize each layer of the target feature map, thereby obtaining an optimized multi-layer feature map.

[0013] In some exemplary embodiments, the step of sequentially selecting each layer of feature maps as a target feature map, performing aggregating processing on the feature maps of the remaining layers except the target feature map, and generating an aggregated feature map specifically includes:

[0014] Select the i-th layer feature map as the target feature layer Fi; where i = 1, 2, 3, 4;

[0015] The remaining three feature layers are used to generate feature maps Ta, Tb, and Tc; among them, Ta has the largest spatial resolution and Tc has the smallest spatial resolution;

[0016] After downsampling Ta so that it has the same spatial resolution as Tb, Ta is optimized using a 3×3 convolutional layer to obtain the optimized Ta. The optimized Ta is then multiplied element-by-element with Tb to generate the feature map Tab.

[0017] Tab is optimized using another 3×3 convolutional layer to obtain the optimized Tab; Tab and Ta are added element by element to generate the feature map Taba, which is defined as follows: Taba=Conv(Conv(Ta)+Tb×Conv(Ta)) (1)

[0018] Among them, Conv represents a 3×3 convolutional layer;

[0019] Then Ta and Tb are downsampled to the same spatial resolution as Tc, and then two 3×3 convolutional layers are applied on the two downsampling layers of Ta and Tb to obtain the convolution results;

[0020] Multiply the convolution result by Tc to obtain the feature map Tabc: Tabc = Tc × Conv(Tb) × Conv(Ta) (2)

[0021] Taba and Tabc are added together to generate the aggregate feature map Fg: Fg = Conv(Taba+Tabc) (3).

[0022] In some exemplary embodiments, the step of learning dual attention weights from the aggregated feature map to optimize each layer of the target feature map to obtain an optimized multi-layer feature map specifically includes:

[0023] The global attention weight map Za is learned by utilizing a 3×3 convolutional layer and a normalized exponential activation function on the aggregated feature map Fg, and then the global attention weight map Za is subtracted from 1 to produce the inverse self-attention map Zr: Za = Sigmoid(Conv(Fg)) (4) Zr = 1-Za (5)

[0024] Among them, Sigmoid represents the Sigmoid layer, Conv represents the 3×3 convolutional layer, and the dual attention weight map includes the global attention weight map Za and the reverse self-attention map Zr;

[0025] Apply two 3×3 convolutional layers on the anti-self-attention map Zr to obtain Kr and Vr; where Kr is H×W×C / 8 and Vr is H×W×C / 2;

[0026] Apply two 3×3 convolutional layers on the global attention weight map Za to obtain Ka and Va; where Ka is H×W×C / 8 and Va is H×W×C / 2;

[0027] A 3×3 convolutional layer is used on the target feature layer Fi to obtain a vector Kf of H×W×C / 8 and a vector Vf of H×W×C / 2;

[0028] The spatial scale of Kf is adjusted to C / 8×HW, and the spatial scale of Kr is adjusted to HW×C / 8. The two reshaped results are matrix multiplied and the Softmax activation function is applied to calculate the non-local similarity map Sr of the key map vector Kf and Kr on all pixels. Sr is calculated as follows: Sr=Softmax(Kr×Kf) (6)

[0029] Transform Ka into HW×C / 8, perform matrix multiplication on Ka and Kf, and obtain the non-local similarity mapping weight Sa: Sa=Softmax(Ka×Kf) (7)

[0030] Multiply Sr and Sa element by element to generate a new similarity weight map Sd, and multiply Sd by Vf to obtain the multiplication result;

[0031] Performing a cascade operation on the multiplication result, Vr and Va to obtain a cascade result;

[0032] The convolution process is performed on the cascade result to obtain the optimized mapping of the i-th DSR module. The mathematical calculation formula of the optimized feature map is as follows: Fi=Conv(Concate(Vr,Va,Vf×(Sr*Sa))) (8)

[0033] Among them, * represents element-by-element matrix multiplication operation, × represents matrix dot product, Concate is the cascade operation of feature map channel dimension, and Conv is a convolution layer with a convolution kernel size of 3×3;

[0034] Generate an optimized multi-layer feature map; wherein the optimized multi-layer feature map includes a first optimized feature layer D1, a second optimized feature layer D2, a third optimized feature layer D3 and a fourth optimized feature layer D4.

[0035] In some exemplary embodiments, the step of performing an upsampling convolution operation on the optimized multi-layer feature map to obtain an ultrasound image segmentation map of the same scale as the RGB image of the current ultrasound image to be detected specifically includes:

[0036] The fourth optimized feature layer D4 is upsampled to the same resolution as the third optimized feature layer D3, and is concatenated with the third optimized feature layer D3 along the channel dimension. Then, a new feature map D3' is obtained through a convolution operation.

[0037] Then D3' is upsampled to the same resolution as the second optimized feature layer D2, and concatenated with the second optimized feature layer D2 along the channel dimension, and then a new feature map D2' is obtained through convolution operation;

[0038] Then D2' is upsampled to the same resolution as the second optimized feature layer D1, and concatenated with the first optimized feature layer D1 along the channel dimension, and then a new feature map D1' is obtained through convolution operation;

[0039] Then, an upsampling operation is performed on D1' so that the RGB image scale of D1' is the same as that of the current ultrasonic image to be detected, and the image is output as an ultrasonic image segmentation map.

[0040] In some exemplary embodiments, the step of extracting multiple layers of feature maps with different spatial resolutions based on the current ultrasound image to be detected specifically includes:

[0041] Taking the current ultrasound image to be detected as input, generate the first layer feature map F1;

[0042] Take the first layer feature map F1 as input and generate the second layer feature map F2;

[0043] Take the second layer feature map F2 as input and generate the third layer feature map F3;

[0044] Taking the third layer feature map F3 as input, the fourth layer feature map F4 is generated.

[0045] In some exemplary embodiments, after extracting multiple layers of feature maps with different spatial resolutions based on the current ultrasound image to be detected, the method further includes: dimensionality compressing the feature maps of each layer to speed up subsequent feature extraction.

[0046] A second aspect of the present invention provides an ultrasound image segmentation system based on deep learning, the system comprising:

[0047] An encoding module is used to extract multiple layers of feature maps with different spatial resolutions based on the current ultrasound image to be detected;

[0048] An aggregation module is used to sequentially select each layer of feature maps as a target feature map, aggregate the feature maps of the remaining layers except the target feature map, and generate an aggregated feature map;

[0049] A dual attention module is used to learn dual attention weights from the aggregated feature map to optimize each layer of the target feature map to obtain an optimized multi-layer feature map;

[0050] A decoding module is used to perform an upsampling convolution operation on the optimized multi-layer feature map to obtain an ultrasonic image segmentation map of the same scale as the RGB image of the current ultrasonic image to be detected.

[0051] The third aspect of the present invention provides an electronic device comprising: 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, and the instructions are executed by the at least one processor so that the at least one processor can execute the deep learning-based ultrasound image segmentation method as described above.

[0052] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the above-mentioned deep learning-based ultrasound image segmentation method.

[0053] The technical solution provided by the present invention has at least the following advantages:

[0054] This paper proposes the first lesion segmentation method suitable for ultrasound images. Unlike traditional image segmentation methods, this paper fully utilizes the complementary information between feature maps of different layers and optimizes each layer of feature maps to improve segmentation results. It has higher detection accuracy. In addition, this paper also proposes a dual attention module. Compared with convolutional neural networks, this module can optimize the missing features of feature maps during feature learning, supplement the key information missing in each feature map, and suppress redundant tumor areas. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] One or more embodiments are exemplarily described by the pictures in the corresponding drawings. These exemplifications do not constitute limitations on the embodiments. Unless otherwise stated, the pictures in the drawings do not constitute proportional limitations.

[0056] FIG1 is a schematic diagram of a PVT network framework in the prior art;

[0057] FIG2 is a schematic diagram of a model framework of an ultrasound image segmentation method based on deep learning provided by the present invention;

[0058] FIG3 is a schematic diagram of the DSR module of the i-th layer of the Transformer in a deep learning-based ultrasound image segmentation method provided by the present invention;

[0059] FIG4 is a schematic diagram of a feature map aggregation module in an ultrasound image segmentation method based on deep learning provided by the present invention;

[0060] FIG5 is a schematic diagram of an ultrasound image segmentation system based on deep learning provided by the present invention;

[0061] FIG6 is a schematic structural diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0062] Currently, one image segmentation method disclosed in the prior art is the Pyramid Vision Transformer (PVT) model. The overall architecture of this model is shown in Figure 1. The PVT consists of an encoder and a decoder. The encoder consists of four layers of Transformers arranged in series. For a given RGB image, the image first passes through the first layer of Transformers to generate the first-layer feature map F1. Next, feature map F1 is directly input into the second layer of Transformers to obtain the second-layer feature map F2. This process is repeated to obtain the third and fourth layers of feature maps F3 and F4. For the decoder part, it directly takes the four-layer feature map (F1, F2, F3, F4) generated by the encoder as input and uses a step-by-step upsampling convolution method to obtain the final segmentation result. Specifically, the decoder upsamples F4 to the same resolution as F3 and concatenates it with F3 along the channel dimension. Then, a new feature map F3' is obtained through a convolution operation. F3' is then upsampled to the same resolution as F2 and concatenated with F2 along the channel dimension. Then, a new feature map F2' is obtained through a convolution operation. And so on to obtain F1'. F1' is then upsampled to the same scale as the input RGB image as the segmentation result of the model. The Transformer mentioned is a conventional structure consisting of a linear layer (Liner), a regularization layer (Norm), a multi-head attention mechanism (Multi-Head Attention) and a forward propagation layer (Feed Forward).

[0063] The inventors discovered that the PVT algorithm, designed for natural images, is a multi-layered network structure. Specifically, for a given input image, the algorithm's encoder generates feature maps (F1, F2, F3, F4) of varying spatial resolutions. However, the algorithm's decoder directly concatenates these feature maps to produce the segmentation result corresponding to the input image. This operation inevitably introduces noise generated by the encoder, affecting the final segmentation accuracy. Furthermore, each layer of feature maps cannot fully characterize the abnormal tumor region in the input image. Therefore, the direct concatenation employed by the decoder further affects the demarcation of the tumor region's boundaries.

[0064] To this end, the present invention combines the characteristics of the lesion area and proposes an ultrasound image segmentation model based on the dual attention mechanism, which specifically optimizes and completes the feature map of each layer in the multi-layer network, greatly improving the accuracy of lesion segmentation and providing more possibilities for the application of computer-aided systems based on deep learning in the field of clinical medical imaging.

[0065] The present invention provides a first aspect of a deep learning-based ultrasound image segmentation method, comprising the following steps:

[0066] S1. Extract multiple layers of feature maps with different spatial resolutions based on the current ultrasound image to be detected.

[0067] S2. Utilize the complementary information between the feature maps of different layers to optimize the missing feature information of the feature map of each layer, and obtain an optimized multi-layer feature map.

[0068] S3. Perform an upsampling convolution operation on the optimized multi-layer feature map to obtain an ultrasonic image segmentation map with the same scale as the RGB image of the current ultrasonic image to be detected.

[0069] More specifically, the S2 includes:

[0070] S21. Select each layer of feature maps in turn as a target feature map, and perform aggregation processing on the feature maps of the remaining layers except the target feature map to generate an aggregated feature map.

[0071] S22. Learning dual attention weights from the aggregated feature map to optimize each layer of the target feature map to obtain an optimized multi-layer feature map.

[0072] The second invention of the present invention provides an ultrasound image segmentation system based on deep learning, as shown in FIG5 , the system includes:

[0073] The encoding module 301 is used to extract multiple layers of feature maps with different spatial resolutions based on the current ultrasound image to be detected;

[0074] Aggregation module 302, configured to sequentially select each layer of feature maps as a target feature map, aggregate feature maps of the remaining layers except the target feature map, and generate an aggregated feature map;

[0075] A dual attention module 303 is configured to learn dual attention weights from the aggregated feature map to optimize each layer of the target feature map to obtain an optimized multi-layer feature map;

[0076] The decoding module 304 is configured to perform an upsampling convolution operation on the optimized multi-layer feature map to obtain an ultrasonic image segmentation map of the same scale as the RGB image of the current ultrasonic image to be detected.

[0077] Specifically, the ultrasound video segmentation model based on the dual attention mechanism proposed in the present invention is shown in FIG2 .

[0078] (1) Encoding module

[0079] The present invention uses the input tag to mark the current ultrasound image to be detected, the encoder is denoted as Transformer Encoder, the decoder is denoted as Decoder, and the result generated by the deep learning model is denoted as output. The present invention uses a multi-layer cascaded Transformer structure as the backbone network. The first layer of Transformer uses the current ultrasound image to be detected as input to generate the first layer feature map F1. The subsequent three layers of feature maps take the feature map of the previous layer as input and generate feature maps F2, F3, and F4 for each layer. Subsequently, the feature maps (F1, F2, F3, F4) generated by the encoder are input into the dual attention module (DSRModule).

[0080] It should be noted that the encoding module of the present invention may specifically be an encoder, and the encoder may adopt other popular feature extraction networks, such as Unet, FPN, GGNet, etc.

[0081] (2) Dual Attention Module

[0082] The present invention designs a dual self-attention optimization (DSR) module to optimize the feature map of each Transformer layer by utilizing the complementary information between different layers of the Transformer. Figure 2 shows a schematic diagram of the DSR module arranged at the i-th Transformer layer. The DSR module obtains the feature information missing from the feature map of the i-th Transformer layer from the feature maps of the remaining three layers of Transformer and optimizes the feature map. Specifically, the feature maps generated by the other three Transformer layers are first passed to the aggregation module (Figure 3) to integrate them and generate an aggregated feature map Fg. Then, dual attention weights are learned from Fg to optimize the current target feature map Fi. To this end, a global attention weight map Za is learned by utilizing a 3×3 convolutional layer on Fg and a normalized exponential (Softmax) activation function, and then Za is subtracted from 1 to generate an inverse self-attention map Zr: Za=Sigmoid(Conv(Fg)) (4) Zr=1-Za (5)

[0083] Here, Sigmoid represents the Sigmoid layer, Conv represents the 3×3 convolutional layer, and the dual attention weight map includes Za and Zr.

[0084] To fuse the two weight maps Za and Zr, we first apply two 3×3 convolutional layers on Zr to obtain a pair of key and value mapping vectors, which are Kr(H×W×C / 8) and Vr(H×W×C / 2), and apply another two 3×3 convolutional layers on Za to obtain another pair of key and value mapping vectors (i.e., Ka(H×W×C / 8) and Va(H×W×C / 2). At the same time, we apply another two 3×3 convolutional layers on Fi to obtain the vector Kf of H×W×C / 8 and the vector Vf of H×W×C / 2. Then, we resize the spatial scale of Kf to C / 8×HW and the spatial scale of Kr to HW×C / 8, perform matrix multiplication on the two reshaped results, and apply the Softmax activation function to calculate the non-local similarity map Sr of the two key mapping vectors Kf and Kr over all pixels. Therefore, Sr is calculated as follows: Sr = Softmax(Kr×Kf) (6)

[0085] At the same time, Ka is transformed into HW×C / 8 and matrix multiplied with Kf to calculate another non-local similarity mapping weight Sa: Sa=Softmax(Ka×Kf) (7)

[0086] Afterwards, the two similarity weight maps Sr and Sa are multiplied element-by-element to generate a new similarity weight map Sd, which is then multiplied by Vf. The multiplication result is then concatenated with Vr and Va. Finally, the concatenation result is convolved to obtain the optimized map of the i-th DSR module. The mathematical formula for the optimized feature map is as follows: Fi = Conv(Concate(Vr, Va, Vf×(Sr*Sa))) (8)

[0087] In this example, * represents element-by-element matrix multiplication. × represents matrix dot product. Concate is the concatenation operation along the feature map channel dimension, and Conv is a convolutional layer with a kernel size of 3×3.

[0088] Through the above operations, the initial feature maps (F1, F2, F3, F4) produced by the Transformer encoder layer are optimized to generate (D1, D2, D3, D4).

[0089] The combination of global attention and anti-self-attention in the dual attention module is performed in parallel in the present invention, or in serial, and the time and space attention modules can be superimposed N times, but this example uses 1 time.

[0090] (3) Aggregation Module

[0091] Figure 4 shows the structure of the feature map fusion module used to integrate the feature maps of the other three Transformer layers. Ta, Tb, and Tc represent the feature maps produced by the other three Transformer layers. Among them, Ta has the largest spatial resolution, and Tc has the smallest spatial resolution.

[0092] Specifically, Ta is first downsampled to have the same spatial resolution as Tb, then optimized using a 3×3 convolutional layer and then element-wise multiplied with Tb to generate the feature map Tab. At the same time, another 3×3 convolutional layer is used to optimize the newly generated feature map Tab, which is then element-wise added to Ta to generate the feature map Taba. The feature map Taba is defined as follows: Taba = Conv(Conv(Ta) + Tb×Conv(Ta)) (1)

[0093] Where Conv represents a 3×3 convolutional layer. In addition, Ta and Tb are downsampled to the same spatial resolution as Tc, and then two 3×3 convolutional layers are applied on the two downsampled layers of Ta and Tb. Afterwards, the two convolution results are multiplied by Tc to obtain the feature map Tabc: Tabc = Tc×Conv(Tb)×Conv(Ta) (2)

[0094] Finally, Taba is added to Tabc to generate the output feature map (Fg) of the feature map aggregation module: Fg = Conv(Taba+Tabc) (3)

[0095] (4) Decoding module

[0096] This paper draws on the decoder structure of PVT to gradually amplify the feature map through a series of upsampling convolution operations. Specifically, the decoder upsamples D4 to the same resolution as D3 and concatenates it with D3 along the channel dimension. Then, a new feature map D3' is obtained through convolution. D3' is then upsampled to the same resolution as D2 and concatenated with D2 along the channel dimension. A new feature map D2' is obtained through convolution. This process is repeated to obtain D1'. D1' is then upsampled to the same scale as the input RGB image as the segmentation result of the model.

[0097] Loss Function

[0098] The present invention minimizes the following loss function, which includes the predicted mask and pixel-level binary cross entropy (BCE) loss function and Dice loss function of the labeled Y.

[0099] Wherein α is a hyperparameter greater than 0, which measures the weight of the two losses and is set to 1 in the present invention. represents the final prediction result generated by the proposed deep learning model, Y is the ground truth result, m represents the binary mask corresponding to the final prediction result generated by the proposed deep learning model, Represents the binary mask corresponding to the ground truth result, log is the logarithmic function, and ∩ represents the set intersection operator.

[0100] The present invention has been tested and verified, and the experimental results show that compared with the existing technology, the present invention not only has higher detection accuracy, but also has faster detection speed, and can achieve real-time detection.

[0101] In the validation experiment of the present invention, 519 clinical liver tumor ultrasound images with a resolution of 240×240 were used to test the present invention. In addition to frame rate, five other persuasive metrics were used for quantitative comparison: Dice (Dice similarity coefficient), Accuracy (precision), Jaccard (Jaccard similarity coefficient), APD (average perpendicular distance), and HD (Hausdorff distance).

[0102] The experimental results are shown below:

[0103] As can be seen from the table, the segmentation method provided by the present invention is superior to the existing methods in terms of detection accuracy and detection speed.

[0104] Referring to Figure 6, another embodiment of the present application provides an electronic device, including: at least one processor 110; and a memory 111 communicatively connected to the at least one processor; wherein the memory 111 stores instructions that can be executed by the at least one processor 110, and the instructions are executed by the at least one processor 110 so that the at least one processor 110 can execute any of the above method embodiments.

[0105] The memory 111 and the processor 110 are connected using a bus. The bus may include any number of interconnected buses and bridges. The bus connects various circuits of one or more processors 110 and the memory 111. The bus may also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits. These are all well known in the art and are therefore not described further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be a single component or multiple components, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by the processor 110 is transmitted over a wireless medium via an antenna. Furthermore, the antenna receives data and transmits the data to the processor 110.

[0106] The processor 110 is responsible for managing the bus and general processing, and may also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. The memory 111 may be used to store data used by the processor 110 when performing operations.

[0107] Another embodiment of the present application relates to a computer-readable storage medium storing a computer program, which implements the above method embodiment when executed by a processor.

[0108] That is, those skilled in the art will understand that all or part of the steps in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a program, which is stored in a storage medium and includes a number of instructions for causing a device (which may be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps in the above-mentioned methods of each embodiment of the present application. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., various media that can store program code.

[0109] Those skilled in the art will appreciate that the above-described embodiments are specific examples for implementing the present application, and that in actual applications, various changes in form and detail may be made thereto without departing from the spirit and scope of the present application. Any person skilled in the art may make changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be subject to the scope defined in the claims.

Claims

1. A deep learning-based ultrasound image segmentation method, characterized in that: The following steps are involved: According to the current ultrasound image to be detected, multiple layers of feature maps with different spatial resolutions are extracted; The complementary information between the feature maps of different layers is used to optimize the missing feature information of the feature map of each layer, so as to obtain an optimized multi-layer feature map; An upsampling convolution operation is performed on the optimized multi-layer feature map to obtain an ultrasonic image segmentation map of the same scale as the RGB image of the current ultrasonic image to be detected.

2. The ultrasound image segmentation method based on deep learning according to claim 1, characterized in that: In the step of optimizing the missing feature information of the feature map of each layer by using the complementary information between the feature maps of different layers to obtain the optimized multi-layer feature map, specifically comprising: Selecting each layer of feature maps in turn as a target feature map, performing aggregation processing on the feature maps of the remaining layers except the target feature map to generate an aggregated feature map; The dual attention weights are learned from the aggregated feature map to optimize each layer of the target feature map, thereby obtaining an optimized multi-layer feature map.

3. The ultrasound image segmentation method based on deep learning according to claim 2, characterized in that: The step of sequentially selecting each layer of feature maps as a target feature map and performing aggregation processing on the feature maps of the remaining layers except the target feature map to generate an aggregated feature map specifically includes: Select the i-th layer feature map as the target feature layer Fi; where i = 1, 2, 3, 4; The remaining three feature layers are used to generate feature maps Ta, Tb and Tc; among them, Ta has the largest spatial resolution and Tc has the smallest spatial resolution; After downsampling Ta so that Ta has the same spatial resolution as Tb, Ta is optimized using a 3×3 convolutional layer to obtain the optimized Ta; then the optimized Ta is multiplied element by element with Tb to generate the feature map Tab; Tab is optimized using another 3×3 convolutional layer to obtain the optimized Tab; Tab and Ta are added element by element to generate the feature map Taba. The definition of the feature map Taba is as follows: Taba=Conv(Conv(Ta)+Tb×Conv(Ta)) (1) Among them, Conv represents a 3×3 convolutional layer; Then Ta and Tb are downsampled to the same spatial resolution as Tc, and then two 3×3 convolutional layers are applied on the two downsampling layers of Ta and Tb to obtain the convolution result; Multiply the convolution result by Tc to obtain the feature map Tabc: Tabc=Tc×Conv(Tb)×Conv(Ta) (2) Add Taba and Tabc to generate the aggregate feature map Fg: Fg=Conv(Taba+Tabc) (3).

4. The ultrasound image segmentation method based on deep learning according to claim 2, characterized in that: In the step of learning the dual attention weights from the aggregated feature map to optimize each layer of the target feature map to obtain an optimized multi-layer feature map, specifically comprising: The global attention weight map Za is learned by utilizing a 3×3 convolutional layer on the aggregated feature map Fg and a normalized exponential activation function, and then subtracted from 1 to produce the inverse self-attention map Zr: Za=Sigmoid(Conv(Fg)) (4) Zr=1-Za (5) Among them, Sigmoid represents the Sigmoid layer, Conv represents the 3×3 convolutional layer, and the dual attention weight map includes the global attention weight map Za and the reverse self-attention map Zr; Apply two 3×3 convolutional layers on the anti-self-attention map Zr to obtain Kr and Vr; where Kr is H×W×C / 8 and Vr is H×W×C / 2; Apply two 3×3 convolutional layers on the global attention weight map Za to obtain Ka and Va; where Ka is H×W×C / 8 and Va is H×W×C / 2; A 3×3 convolutional layer is used on the target feature layer Fi to obtain a vector Kf of H×W×C / 8 and a vector Vf of H×W×C / 2; The spatial scale of Kf is adjusted to C / 8×HW, and the spatial scale of Kr is adjusted to HW×C / 8. The two reshaped results are matrix multiplied, and the Softmax activation function is applied to calculate the non-local similarity map Sr of the key mapping vectors Kf and Kr on all pixels. Sr is calculated as follows: Sr=Softmax(Kr×Kf) (6) Transform Ka into HW×C / 8, perform matrix multiplication on Ka and Kf, and obtain the non-local similarity mapping weight Sa: Sa=Softmax(Ka×Kf) (7) Multiply Sr and Sa element by element to generate a new similarity weight map Sd, and multiply Sd by Vf to obtain the multiplication result; Performing a cascade operation on the multiplication result, Vr and Va to obtain a cascade result; The cascade result is convolved to obtain the optimized mapping of the i-th DSR module. The mathematical calculation formula of the optimized feature map is as follows: Fi=Conv(Concate(Vr,Va,Vf×(Sr*Sa))) (8) Among them, * represents the element-by-element matrix multiplication operation, × represents the matrix dot product, Concate is the cascade operation of the feature map channel dimension, and Conv is a convolution layer with a convolution kernel size of 3×3; Generate an optimized multi-layer feature map; wherein the optimized multi-layer feature map includes a first optimized feature layer D1, a second optimized feature layer D2, a third optimized feature layer D3 and a fourth optimized feature layer D4.

5. The ultrasound image segmentation method based on deep learning according to claim 4, characterized in that: The step of performing an upsampling convolution operation on the optimized multi-layer feature map to obtain an ultrasonic image segmentation map of the same scale as the RGB image of the current ultrasonic image to be detected specifically includes: The fourth optimized feature layer D4 is upsampled to the same resolution as the third optimized feature layer D3, and is concatenated with the third optimized feature layer D3 along the channel dimension, and then a new feature map D3' is obtained through a convolution operation; Then D3' is upsampled to the same resolution as the second optimized feature layer D2, and concatenated with the second optimized feature layer D2 along the channel dimension, and then a new feature map D2' is obtained through a convolution operation; Then D2' is upsampled to the same resolution as the second optimized feature layer D1, and concatenated with the first optimized feature layer D1 along the channel dimension, and then a new feature map D1' is obtained through a convolution operation; Then, an up-sampling operation is performed on D1' so that the RGB image scale of D1' is the same as that of the current ultrasonic image to be detected, and the image is output as an ultrasonic image segmentation map.

6. The ultrasound image segmentation method based on deep learning according to claim 1, characterized in that: The step of extracting multiple layers of feature maps with different spatial resolutions according to the current ultrasonic image to be detected specifically includes: Taking the current ultrasound image to be detected as input, generate the first layer feature map F1; Take the first layer feature map F1 as input and generate the second layer feature map F2; Taking the second layer feature map F2 as input, generate the third layer feature map F3; Taking the third-layer feature map F3 as input, the fourth-layer feature map F4 is generated.

7. The ultrasound image segmentation method based on deep learning according to claim 1, characterized in that: After the step of extracting multiple layers of feature maps with different spatial resolutions according to the current ultrasonic image to be detected, the method further includes: The feature map of each layer is dimensionally compressed.

8. An ultrasound image segmentation system based on deep learning, characterized in that: The system includes: An encoding module, used for extracting multiple layers of feature maps with different spatial resolutions according to the current ultrasonic image to be detected; An aggregation module is used to sequentially select each layer of feature maps as a target feature map, perform aggregation processing on the feature maps of the remaining layers except the target feature map, and generate an aggregated feature map; A dual attention module is used to learn dual attention weights from the aggregated feature map to optimize the target features of each layer Figure, get the optimized multi-layer feature map; The decoding module is used to perform an upsampling convolution operation on the optimized multi-layer feature map to obtain an ultrasonic image segmentation map of the same scale as the RGB image of the current ultrasonic image to be detected.

9. An electronic device, characterized in that: include: at least one processor; as well as, A memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the deep learning-based ultrasound image segmentation method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the deep learning-based ultrasound image segmentation method described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Target tracking segmentation model training method and target tracking segmentation method and device

    CN112949458A

  • Medical image segmentation method fusing multi-scale features and attention mechanism

    CN114119638A

  • Ultrasonic image segmentation method and device and computer readable storage medium

    CN114758137A

  • Method for image segmentation using cnn

    US20210248761A1

Cited By

  • Polyp image segmentation method of multilevel attention network based on boundary guidance

    CN118941587A

  • Multi-mode unmanned aerial vehicle image segmentation method

    CN119516187A

  • Multi-input hierarchical infrared image super-resolution reconstruction method based on collaborative CNN (Convolutional Neural Network) and Transform

    CN119579411A

  • Three-dimensional medical image segmentation method and device based on U-shaped large-kernel deep convolutional network

    CN119600037A

  • Brain tumor automatic segmentation method

    CN119850658A