Carotid artery-carotid artery plaque joint segmentation method, device, medium and product

Through the carotid artery-carotid artery plaque joint segmentation method, combined with preprocessing and multi-head self-attention mechanism, the problems of long time consumption and low accuracy of carotid artery plaque detection in the existing technology are solved, and fast, highly accurate automated segmentation is achieved. , suitable for different ultrasonic conditions.

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

Patent Information

Application Number
CN202410354788.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-27
Publication Date
2024-09-13
Estimated Expiration
2044-03-27

AI Technical Summary

Technical Problem

Existing carotid artery plaque detection methods are time-consuming and have low accuracy. The unclear ultrasound characteristics lead to many misjudgments in manual judgment. The deep learning method cannot effectively combine the physiological structural characteristics of carotid artery ultrasound, which increases the workload of doctors.

Method used

The carotid artery-carotid plaque joint segmentation method is used to obtain ultrasound scan images for preprocessing, edge detection and adaptive limited contrast histogram equalization. It combines the residual convolution module and the multi-head self-attention mechanism to train the joint segmentation model. Perform image fusion and segmentation to improve segmentation accuracy and efficiency.

Benefits of technology

It significantly improves the speed and accuracy of automated segmentation of carotid arteries and plaques, reduces the workload of doctors, adapts to different ultrasound machine settings and acquisition conditions, and improves the recognition ability and applicability of the segmentation algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118071726B
    Figure CN118071726B
Patent Text Reader

Abstract

The present invention discloses a carotid-carotid plaque joint segmentation method, device, medium and product, and relates to the technical field of carotid artery image segmentation. The method comprises: performing preprocessing, edge detection, adaptive restricted contrast histogram equalization operation and fusion processing on the carotid artery ultrasound scan image to obtain the channel fusion image to be measured; inputting the channel fusion image to be measured into the joint segmentation model to obtain the predicted mask image, and then determining the carotid-carotid plaque joint segmentation result. The present invention can improve the accuracy and efficiency of the carotid-carotid plaque joint segmentation by constructing the channel fusion image and the joint segmentation model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of carotid artery image segmentation, and in particular to a carotid artery-carotid artery plaque joint segmentation method, device, medium and product. Background Art

[0002] Carotid plaque is one of the characteristic manifestations of atherosclerosis. Ultrasound examination can locate carotid plaque non-invasively and measure indicators such as the area of ​​carotid artery obstruction and blood flow rate in the artery. It has become the most commonly used method for detecting carotid plaque. However, the measurement of carotid artery and carotid plaque size is cumbersome and time-consuming, which affects the efficiency of carotid plaque examination. In addition, the ultrasound characteristics of some carotid plaques are not obvious, and manual judgment often leads to misjudgment and omission.

[0003] The existing computer-aided analysis technology of carotid arteries and plaques can assist ultrasound physicians to locate carotid arteries and plaques and measure their sizes to a certain extent. However, the technology based on traditional image processing methods is difficult to mine deep image feature information and performs poorly in different ultrasound acquisition scenarios and under the conditions of multiple testers. In recent years, some deep learning-based solutions have been applied to the segmentation of carotid plaques. However, these methods do not combine the physiological structure characteristics and image features of carotid ultrasound, and often cannot achieve fine auxiliary analysis effects. The requirement for manual adjustment increases the workload of physicians. Summary of the invention

[0004] The purpose of the present invention is to provide a method, device, medium and product for joint segmentation of carotid artery and carotid artery plaque, which can improve the accuracy and efficiency of joint segmentation of carotid artery and carotid artery plaque.

[0005] To achieve the above object, the present invention provides the following solutions:

[0006] A carotid artery-carotid artery plaque joint segmentation method, comprising:

[0007] Obtaining an ultrasonic scanning image of the carotid artery to be tested;

[0008] Preprocessing the carotid artery ultrasound scan image to be tested to obtain a first channel mask image to be tested;

[0009] Using the Canny operator to perform edge detection on the carotid artery ultrasound scan image to be tested, to obtain a second channel mask image to be tested;

[0010] Performing an adaptive limited contrast histogram equalization operation on the carotid artery ultrasound scan image to be tested to obtain a mask image of the third channel to be tested;

[0011] The first channel mask image to be tested, the second channel mask image to be tested and the third channel mask image to be tested are fused to obtain a fused image of the channels to be tested;

[0012] The channel fusion image to be measured is input into the joint segmentation model to obtain a predicted mask image; the joint segmentation model is obtained by training the initial joint segmentation model using historical carotid artery ultrasound scan images; the initial joint segmentation model includes a residual convolution module group, a multi-transformer layer, a first convolution layer and a deconvolution module group connected in sequence; the residual convolution module group is also connected to the deconvolution module group;

[0013] The carotid artery-carotid artery plaque joint segmentation result is determined according to the predicted mask image.

[0014] Optionally, preprocessing the carotid artery ultrasound scan image to be tested to obtain a first channel mask image to be tested includes:

[0015] intercepting a grayscale ultrasound region in the ultrasound scan image of the carotid artery to be measured to obtain a grayscale ultrasound image;

[0016] Performing an inverse binarization operation on the grayscale ultrasound image using a primary grayscale threshold to obtain an inverse binarization grayscale ultrasound image;

[0017] Extract multiple connected domains in the inverse binarized grayscale ultrasound image, and determine the connected domain with the most pixels as the pre-positioned carotid artery region;

[0018] Performing convex hull contour detection on the pre-located carotid artery region, and determining that the region enclosed by the convex hull contour is the first intermediate region;

[0019] Determine a circumscribed rectangle of a pre-positioned carotid artery region; the width of the circumscribed rectangle is equal to the width of the grayscale ultrasound image;

[0020] intercepting the grayscale ultrasound image according to the circumscribed rectangle, and determining the area where the circumscribed rectangle in the grayscale ultrasound image is located as the middle area, determining the area above the middle area as the upper area, and determining the area below the middle area as the lower area;

[0021] The grayscale mean of all pixels in the upper area is set to the first grayscale mean;

[0022] The grayscale mean of all pixels in the central area is set to the second grayscale mean;

[0023] The grayscale mean of all pixels in the lower area is set to the third grayscale mean;

[0024] Performing weighted summation on the first grayscale mean, the second grayscale mean and the third grayscale mean to obtain a weighted secondary grayscale threshold;

[0025] Determine a set of all pixel points in the grayscale ultrasound image whose grayscale values ​​are greater than the weighted secondary grayscale threshold as a second intermediate area;

[0026] Determine an intersection of the first middle area and the second middle area as a primary patch mask;

[0027] The primary plaque mask is fused with the pre-positioned carotid artery region to obtain a first channel mask image to be tested.

[0028] Optionally, the primary plaque mask is fused with the pre-located carotid artery region to obtain a first channel mask image to be tested, including:

[0029] Determine the coordinates of any pixel point as the coordinates of the current pixel point;

[0030] According to the current pixel coordinates, use formula R 1st =R p +0.5R a The grayscale value of the corresponding pixel point in the primary mask of the plaque and the grayscale value of the corresponding pixel point in the pre-positioned carotid artery area are weightedly summed to obtain the undetermined grayscale value of the pixel point corresponding to the current pixel point coordinate in the mask image to be tested in the first channel; R 1st is the undetermined grayscale value of the pixel in the mask image to be tested in the first channel; R p is the gray value of the pixel in the primary mask of the patch; R a is the gray value of the pixel in the pre-located carotid artery area;

[0031] When the undetermined grayscale value of the pixel corresponding to the current pixel coordinate in the mask image to be tested in the first channel is greater than 255, the grayscale value of the corresponding pixel is assigned to 255;

[0032] Update the current pixel coordinates and return to step "According to the current pixel coordinates, use formula R 1st =R p +0.5R a A weighted sum is performed on the grayscale value of the corresponding pixel point in the primary mask of the plaque and the grayscale value of the corresponding pixel point in the pre-positioned carotid artery area to obtain the undetermined grayscale value of the pixel point corresponding to the current pixel point coordinate in the mask image to be tested in the first channel until all pixels are traversed to obtain the mask image to be tested in the first channel.

[0033] Optionally, the residual convolution module group includes a first residual convolution module, a second residual convolution module and a third residual convolution module which are sequentially connected and have the same structure;

[0034] The output end of the first residual convolution module, the output end of the second residual convolution module and the output end of the third residual convolution module are all connected to the deconvolution module group; the output end of the third residual convolution module is connected to the multi-transformer layer;

[0035] The first residual convolution module includes a second convolution layer, a batch normalization layer, a first zero-padding operation layer and a first splicing layer connected in sequence; the input end of the second convolution layer is also connected to the first splicing layer.

[0036] Optionally, the multi-transformer layer includes a plurality of transformer layers connected in sequence;

[0037] The transformer layer includes a first normalization layer, a multi-head attention module, a second splicing layer, a second normalization layer, a multi-layer perception mechanism and a third splicing layer connected in sequence;

[0038] The input end of the first normalization layer is also connected to the input end of the second splicing layer;

[0039] The output end of the second splicing layer is also connected to the input end of the third splicing layer.

[0040] Optionally, the deconvolution module group includes a first deconvolution module, a fourth splicing layer, a second deconvolution module, a fifth splicing layer, a third deconvolution module, a sixth splicing layer and a fourth deconvolution module which are sequentially connected and have the same structure;

[0041] An input end of the first deconvolution module is connected to an output end of the first convolution layer;

[0042] An input end of the fourth splicing layer is connected to an output end of the first residual convolution module;

[0043] An input end of the fifth splicing layer is connected to an output end of the second residual convolution module;

[0044] The input end of the sixth splicing layer is connected to the output end of the third residual convolution module;

[0045] The first deconvolution module includes a 2x upsampling layer, a third convolution layer, and a second zero-padding operation layer which are connected in sequence.

[0046] Optionally, before obtaining the ultrasonic scanning image of the carotid artery to be measured, the following is also included:

[0047] Construct an initial joint segmentation model;

[0048] Obtain multiple historical carotid ultrasound scan images;

[0049] Preprocessing the plurality of historical carotid artery ultrasound scan images to obtain a plurality of first channel historical mask images;

[0050] Using the Canny operator to perform edge detection on the plurality of historical carotid artery ultrasound scan images to obtain a plurality of second channel historical mask images;

[0051] Performing an adaptive limited contrast histogram equalization operation on the plurality of historical carotid artery ultrasound scan images to obtain a plurality of third channel historical mask images;

[0052] fusing the first channel historical mask image, the second channel historical mask image and the third channel historical mask image corresponding to the same historical carotid artery ultrasound scan image to obtain a plurality of historical channel fused images;

[0053] Inputting the plurality of historical channel fusion images into an initial joint segmentation model to obtain a plurality of historical prediction mask images;

[0054] determining a plurality of carotid artery-carotid artery plaque historical joint segmentation results according to the historical prediction mask image;

[0055] Determining a loss function value based on multiple carotid-carotid plaque historical joint segmentation results;

[0056] The parameters of the initial joint segmentation model are adjusted according to the loss function value, and the step of "obtaining multiple historical carotid artery ultrasound scan images" is returned until the number of iterations reaches the iteration number threshold and the loss function value is less than the loss function value threshold to obtain the joint segmentation model.

[0057] A computer device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method for joint segmentation of carotid artery and carotid plaque.

[0058] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method for joint segmentation of carotid artery and carotid plaque.

[0059] A computer program product comprises a computer program, which implements the method for joint segmentation of carotid artery and carotid plaque when executed by a processor.

[0060] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0061] The present invention provides a method, device, medium and product for joint segmentation of carotid artery and carotid plaque. Compared with the method of manually dividing the carotid artery area and the carotid plaque area by an ultrasound physician, the present invention has great advantages in execution speed and efficiency. It takes several minutes for an ultrasound physician to mark the complete carotid artery and carotid plaque area by marking. The automated method in the present invention can complete the segmentation of the carotid artery and carotid plaque within a few seconds. Even if the physician needs to make manual adjustments in some scenarios, the efficiency of outlining is still greatly improved. Based on the efficiency improvement brought by the present invention, the present invention can annotate large-scale data and can also be adapted to the fully automated carotid artery and plaque analysis process. Compared with the existing neural network model based on simple convolution, the present invention utilizes the deep self-attention mechanism, strengthens the correlation extraction between long-range spatial information, and can analyze image features more comprehensively. At the same time, the present invention designs a complex preprocessing and channel fusion system to fuse the regional information, boundary information, and image grayscale information before network learning, which improves the outlining algorithm's ability to recognize different categories of information. Overall, it has a higher segmentation accuracy than the existing method and is more adaptable to different ultrasound machine settings and acquisition conditions. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0063] Figure 1 A flow chart of the carotid artery-carotid artery plaque joint segmentation method provided in Example 1 of the present invention;

[0064] Figure 2 Schematic diagram of the joint segmentation method of carotid artery and carotid plaque provided in Example 1 of the present invention;

[0065] Figure 3 A schematic diagram of a carotid artery ultrasound scan image provided in Example 1 of the present invention;

[0066] Figure 4 A schematic diagram of a pre-positioned carotid artery region provided in Example 1 of the present invention;

[0067] Figure 5 A schematic diagram of the three-region division of the dynamic threshold provided in Example 1 of the present invention;

[0068] Figure 6 A schematic diagram of pre-locating carotid artery plaques provided in Example 1 of the present invention;

[0069] Figure 7 A schematic diagram of edge detection results provided in Example 1 of the present invention;

[0070] Figure 8 A schematic diagram of a carotid artery ultrasound image with limited contrast adaptive histogram equalization provided in Example 1 of the present invention;

[0071] Fig. 9 A schematic diagram of a channel-fused carotid artery ultrasound image provided in Example 1 of the present invention;

[0072] Fig.10 This is a schematic diagram of the network structure for the joint segmentation of the carotid artery and plaque provided in Example 1 of the present invention. DETAILED DESCRIPTION

[0073] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0074] The purpose of the present invention is to provide a method, device, medium and product for joint segmentation of carotid artery and carotid artery plaque, which can improve the accuracy and efficiency of joint segmentation of carotid artery and carotid artery plaque.

[0075] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0076] Example 1

[0077] like Figure 1 As shown, a carotid artery-carotid artery plaque joint segmentation method in this embodiment includes:

[0078] Step 101: Obtain an ultrasonic scan image of the carotid artery to be tested.

[0079] Step 102: pre-processing the carotid artery ultrasound scan image to be tested to obtain a first channel mask image to be tested.

[0080] Step 103: Use the Canny operator to perform edge detection on the carotid artery ultrasound scan image to be tested, and obtain a second channel mask image to be tested.

[0081] Step 104: performing an adaptive limited contrast histogram equalization operation on the carotid artery ultrasound scan image to be tested, to obtain a mask image of the third channel to be tested.

[0082] Step 105: fusing the mask image to be tested of the first channel, the mask image to be tested of the second channel and the mask image to be tested of the third channel to obtain a fused image of the channels to be tested.

[0083] Step 106: Input the fused image of the channel to be tested into the joint segmentation model to obtain a predicted mask image. The joint segmentation model is obtained by training the initial joint segmentation model using the historical carotid artery ultrasound scan image. The initial joint segmentation model includes a residual convolution module group, a multi-transformer layer, a first convolution layer and a deconvolution module group connected in sequence. The residual convolution module group is also connected to the deconvolution module group.

[0084] Step 107: Determine the carotid artery-carotid artery plaque joint segmentation result according to the predicted mask image.

[0085] Step 102 includes:

[0086] Step 102 - 1 : intercepting a grayscale ultrasound region in the ultrasound scan image of the carotid artery to be measured to obtain a grayscale ultrasound image.

[0087] Step 102 - 2 : performing an inverse binarization operation on the grayscale ultrasound image using the primary grayscale threshold to obtain an inverse binarized grayscale ultrasound image.

[0088] Step 102 - 3 : extract multiple connected domains in the inverse binarized grayscale ultrasound image, and determine the connected domain with the most pixels as the pre-located carotid artery region.

[0089] Step 102 - 4 : Perform convex hull contour detection on the pre-located carotid artery region, and determine that the region enclosed by the convex hull contour is the first middle region.

[0090] Step 102-5: Determine a circumscribed rectangle of the pre-positioned carotid artery region. The width of the circumscribed rectangle is equal to the width of the grayscale ultrasound image.

[0091] Step 102 - 6 : intercepting the grayscale ultrasound image according to the circumscribed rectangle, and determining the area where the circumscribed rectangle in the grayscale ultrasound image is located as the middle area, determining the area above the middle area as the upper area, and determining the area below the middle area as the lower area.

[0092] Step 102-7: The grayscale mean of all pixels in the upper area is set as the first grayscale mean.

[0093] Step 102-8: The grayscale mean of all pixels in the central area is set to the second grayscale mean.

[0094] Step 102-9: The grayscale mean of all pixels in the lower area is set as the third grayscale mean.

[0095] Step 102-10: Perform weighted summation on the first grayscale mean, the second grayscale mean, and the third grayscale mean to obtain a weighted secondary grayscale threshold.

[0096] Step 102 - 11 : Determine a set of all pixel points in the grayscale ultrasound image whose grayscale values ​​are greater than the weighted secondary grayscale threshold as the second intermediate area.

[0097] Step 102 - 12 : Determine the intersection of the first middle area and the second middle area as a primary patch mask.

[0098] Step 102-13: Fuse the primary plaque mask with the pre-located carotid artery region to obtain a first channel mask image to be tested.

[0099] Step 102-13 includes:

[0100] Step 102-13-1: Determine the coordinates of any pixel point as the current pixel point coordinates.

[0101] Step 102-13-2: According to the current pixel coordinates, use formula R 1st =R p +0.5R a The grayscale value of the corresponding pixel in the primary mask of the plaque and the grayscale value of the corresponding pixel in the pre-positioned carotid artery area are weighted summed to obtain the undetermined grayscale value of the pixel corresponding to the current pixel coordinate in the mask image to be tested in the first channel. 1st is the undetermined grayscale value of the pixel in the mask image to be tested in the first channel. p is the gray value of the pixel in the primary mask of the patch. a is the gray value of the pixel in the pre-located carotid artery area.

[0102] Step 102 - 13 - 3: When the undetermined grayscale value of the pixel corresponding to the current pixel coordinate in the mask image to be tested in the first channel is greater than 255, the grayscale value of the corresponding pixel is assigned to 255.

[0103] Step 102-13-4: Update the coordinates of the current pixel point, and return to step 102-13-2 until all pixel points are traversed to obtain the mask image to be tested in the first channel.

[0104] Specifically, the residual convolution module group includes a first residual convolution module, a second residual convolution module and a third residual convolution module which are connected in sequence and have the same structure.

[0105] The output end of the first residual convolution module, the output end of the second residual convolution module and the output end of the third residual convolution module are all connected to the deconvolution module group. The output end of the third residual convolution module is connected to the multi-transformer layer.

[0106] The first residual convolution module includes a second convolution layer, a batch normalization layer, a first zero padding operation layer and a first splicing layer which are connected in sequence. The input end of the second convolution layer is also connected to the first splicing layer.

[0107] A multi-transformer layer consists of multiple transformer layers connected sequentially.

[0108] The transformer layer consists of a first normalization layer, a multi-head attention module, a second concatenation layer, a second normalization layer, a multi-layer perception mechanism, and a third concatenation layer, which are connected in sequence.

[0109] The input of the first normalization layer is also connected to the input of the second concatenation layer.

[0110] The output end of the second splicing layer is also connected to the input end of the third splicing layer.

[0111] The deconvolution module group includes a first deconvolution module, a fourth splicing layer, a second deconvolution module, a fifth splicing layer, a third deconvolution module, a sixth splicing layer and a fourth deconvolution module which are connected in sequence and have the same structure.

[0112] An input end of the first deconvolution module is connected to an output end of the first convolution layer.

[0113] The input end of the fourth concatenation layer is connected to the output end of the first residual convolution module.

[0114] The input end of the fifth concatenation layer is connected to the output end of the second residual convolution module.

[0115] The input end of the sixth concatenation layer is connected to the output end of the third residual convolution module.

[0116] The first deconvolution module includes a 2x upsampling layer, a third convolution layer, and a second zero-padding operation layer connected in sequence.

[0117] Before step 101, the method further includes:

[0118] Step 108: Construct an initial joint segmentation model.

[0119] Step 109: Acquire multiple historical carotid artery ultrasound scan images.

[0120] Step 1010: Preprocess a plurality of historical carotid artery ultrasound scan images to obtain a plurality of first channel historical mask images.

[0121] Step 1011: Use the Canny operator to perform edge detection on multiple historical carotid artery ultrasound scan images to obtain multiple second channel historical mask images.

[0122] Step 1012: performing an adaptive limited contrast histogram equalization operation on the plurality of historical carotid artery ultrasound scan images to obtain a plurality of third channel historical mask images.

[0123] Step 1013: fusing the first channel historical mask image, the second channel historical mask image and the third channel historical mask image corresponding to the same historical carotid artery ultrasound scan image to obtain a plurality of historical channel fused images.

[0124] Step 1014: Input multiple historical channel fusion images into the initial joint segmentation model to obtain multiple historical prediction mask images.

[0125] Step 1015: Determine multiple carotid artery-carotid plaque historical joint segmentation results according to the historical prediction mask image.

[0126] Step 1016: Determine the loss function value according to the historical joint segmentation results of multiple carotid arteries and carotid plaques.

[0127] Step 1017: adjust the parameters of the initial joint segmentation model according to the loss function value, and return to step 109 until the number of iterations reaches the iteration number threshold and the loss function value is less than the loss function value threshold, to obtain the initial joint segmentation model.

[0128] Next, a method for joint segmentation of carotid artery and carotid plaque provided in this embodiment is specifically described. Figure 2 , this embodiment includes:

[0129] 1 Fusion image preprocessing.

[0130] 1.1 Pre-positioning of the carotid artery region.

[0131] For the carotid artery ultrasound scan image that includes the ultrasound machine application interface, first manually capture the grayscale ultrasound screen image portion. Figure 3 As shown in Figure 1, the carotid artery region is pre-positioned and the regional dynamic grayscale threshold is determined. Based on the characteristics of the carotid artery as a non-echoic region in the ultrasound image, the primary grayscale threshold is set to T1 = αI max , where T1 is the primary grayscale threshold, α is the threshold coefficient, which is 0.2 here, I max is the maximum gray value in the image. Use this threshold to perform an inverse binarization operation on the image, that is, for any pixel on the image, when the gray value of the pixel is greater than or equal to the threshold, the gray value of the pixel is set to 0, and when the gray value of the pixel is less than the threshold, the gray value of the pixel is set to 255. Take the connected domain of the binarized image, and take the connected domain with the largest number of pixels as the pre-positioned carotid artery region R a (like Figure 4 shown).

[0132] 1.2 Determination of regional dynamic threshold.

[0133] Based on the characteristics of physiological structure distribution in carotid ultrasound images, the outer contour of the pre-positioned carotid area is taken, and its circumscribed rectangle Rect(x, y, w, h) is located to satisfy:

[0134]

[0135] Among them, p x is the set of horizontal coordinates of all points on the contour, p y is the set of ordinates of all points on the contour, x is the horizontal coordinate of the upper left corner of the circumscribed rectangle, y is the vertical coordinate of the upper left corner of the circumscribed rectangle, w is the width of the circumscribed rectangle, h is the height of the circumscribed rectangle, min() is the minimum value operation in the set, and max() is the maximum value operation in the set. After obtaining the circumscribed rectangle, take the area above the circumscribed rectangle, the area below the circumscribed rectangle in the image, and record them as the upper, middle, and lower areas respectively, such as Figure 5 As shown. Calculate the grayscale mean of the upper, middle and lower regions, denoted as m u 、m m 、m l , calculate the weighted secondary gray threshold as T2 = β1m u +β2m m +β3m l Where T2 is the weighted secondary grayscale threshold, m u 、m m 、m l are the grayscale means of the upper, middle and lower regions mentioned above, β1, β2 and β3 are the grayscale threshold weighting coefficients, which are 0.2, 0.7 and 0.1 respectively.

[0136] 1.3 Generation of primary mask image of carotid artery plaque.

[0137] Take the outer contour of the pre-positioned carotid artery area and obtain its convex hull contour. The area enclosed by the convex hull contour is denoted as R. hull The original grayscale ultrasound image is converted to grayscale using the T2 grayscale threshold, and the area with a grayscale value greater than or equal to T2 is marked as R T2 . Take the overlapped part R of the two regions p , which satisfies R p =R hull ∩R T2 , and obtain the primary mask of the rough positioning of the carotid artery plaque, such as Figure 6 The primary plaque mask is fused with the above carotid artery pre-positioning mask to obtain the first channel mask R 1st , for any pixel point, it satisfies R 1st =R p +0.5Ra And when R 1st >255 Season R 1st =255.

[0138] 1.4 Edge detection image generation.

[0139] The carotid artery appears as an echo-free area surrounded by the carotid wall in the ultrasound image, and the carotid plaque is manifested as a heterogeneous area inside the carotid artery. In order to extract the edge information in the image, the Canny operator is used to perform edge detection on the original ultrasound image. The Canny lower threshold T canny1 Take 50, Canny upper threshold T canny2 Take 200, the result diagram is as follows Figure 7 , the edge detection result is used as the second channel mask and recorded as R 2nd .

[0140] 1.5 Adaptive limited contrast equalization image generation.

[0141] The original ultrasound image was subjected to an adaptive limited contrast histogram equalization operation to eliminate the interference of different ultrasound machine acquisition conditions and settings on the results. Figure 8 , denoted as R 3rd .

[0142] 1.6-channel fused image generation.

[0143] The R obtained above 1st , R 2nd , R 3rd They are respectively used as single-channel images and placed in different three channel positions in the same three-channel image in turn to obtain a channel fusion image that integrates the pre-positioned area information, edge information, and ultrasound image information. The result diagram is shown in the figure. Fig. 9 shown.

[0144] 2 Training image preprocessing and enhancement.

[0145] Before image processing, all original ultrasound images were annotated with carotid artery regions and carotid plaque regions by professional ultrasound physicians, and the data formed ultrasound image-annotated region data pairs. All images and corresponding annotated region masks were uniformly scaled to 512×512 pixels, and bilinear interpolation was used during the scaling process. To increase the robustness of the neural network, one or two of the following data augmentation operations were performed randomly before the images were input into the neural network training:

[0146] 1) Image translation: The image and the corresponding annotation mask are randomly translated by 0-64 pixels in any direction upward, downward, left, or right, and the blank areas after translation are filled with all zero values.

[0147] 2) Image flipping: randomly flip the image and the corresponding annotated mask horizontally or vertically along the horizontal center axis or the vertical center axis to ensure that the image and the corresponding annotated mask area are in the same position after flipping.

[0148] 3) Brightness enhancement: Randomly increase or decrease the grayscale pixel value of the entire image by 0-24 grayscale values, while ensuring that the enhanced pixel value is within the range of 0-255, and the annotation mask is not processed. That is, for an image, calculate the intensity value I of all pixels after the change a =I o +d(-T b ≤d≤T b ) and after the above operations are performed, Among them I a is the enhanced pixel value of any point in the image, I o is the pixel value of the corresponding point before image enhancement, T b is the brightness enhancement amplitude threshold, here it is taken as 24, and d is the brightness enhancement amplitude.

[0149] 3. Neural network construction and training.

[0150] The present invention constructs an encoder including a convolutional neural network and a self-attention mechanism module for extracting deep features of images, and uses a deconvolution module and a lateral connection to restore high-resolution position information. The image first passes through three residual convolution modules to complete three downsamplings. The residual convolution module includes a convolution operation, a normalization operation, a zero-filling operation, and a residual addition operation to preliminarily extract image features. Six transformer layers are connected after the residual convolution layer. The transformer layer consists of a layer normalization operation, a multi-head self-attention operation, a jump connection operation, and a multi-layer perceptron operation. After the deep feature extraction, four upsampling deconvolution modules restore the feature map to the original image size. A lateral addition connection is used between the residual convolution and the upsampling deconvolution to transfer detailed spatial information. The network structure diagram is shown in FIG. Fig.10 The neural network contains an input, namely the channel fusion image obtained above, with a size of 512×512×3, and an output image, which is the pixel points corresponding to the carotid artery and carotid plaque on the image, with a size of 512×512×1, where the pixel value of the pixel point corresponding to the carotid artery area is 1, and the pixel value of the pixel point corresponding to the carotid plaque is 2. The stochastic gradient descent optimizer is used in the training process, and the optimization objective function is L=L Dice +L BCE +L HD Where L is the total loss function, L Dice is the Dice loss, R gt The carotid artery and carotid plaque area actually marked by the physician, R p Predict carotid arteries and carotid plaque areas for the network. Where L BCE is the pixel-level binary cross entropy loss, n is the total number of pixels in the output image, n = 512 × 512 = 262144. i is a Boolean value that determines whether any point i on the output image actually has a non-zero value. It takes a value of 0 or 1. i ) is the probability that the network output predicts that the point is non-zero, and the value is 0-1, including 0 and 1. HD is the Hausdorff distance loss, for the actual labeled R gt and network prediction R p Region, take its outer contour respectively, record the points on the outer contour as point sets G, P respectively, and the Hausdorff distance is H(G,P)=max(h(G,P),h(P,G)), where ||()‖ represents the Euclidean distance between point sets, L HD =-H(G,P). The network training goal is to minimize the total loss function L.

[0151] 4Neural network reasoning and post-processing.

[0152] 4.1 Obtaining the maximum connected domain.

[0153] After the above fusion preprocessing and channel fusion operation, the image to be predicted is input into the trained neural network to obtain the prediction mask image. The prediction mask is restored from 512×512 size to the original size of the input image using the nearest neighbor interpolation algorithm. The carotid artery mask and carotid plaque mask are separated according to the output mask pixel values. The connected domain analysis operation is performed on the above two mask images respectively, and the largest connected domain is taken as the prediction area, and the pixel values ​​of other areas are set to 0.

[0154] 4.2 Edge optimization.

[0155] The Canny operator is used to detect the edge of the original ultrasound image, where the Canny lower threshold T canny1 Take 100, Canny upper threshold T canny2 Take 200. For the carotid plaque mask obtained above, expand or shrink 1-3 pixels in the vertical direction of the image. When the expanded or shrunk pixels coincide with the Canny edge detection result, retain the result. If there is no edge detection result within 1-3 pixels, retain the result before expansion.

[0156] 4.3 Regional Restrictions.

[0157] Locate the bottom and top boundaries of the carotid plaque mask, with coordinates as y a_d , and y a_u, limiting the carotid plaque to (y a_u -5,y a_d +5), when the ordinate of any point in the carotid plaque mask exceeds this range, the grayscale value of the pixel is set to 0. The carotid artery and carotid plaque mask finally obtained through the above steps is the segmentation result of the carotid artery and carotid plaque region in the ultrasonic image obtained by the present invention.

[0158] Example 2

[0159] A computer device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of a carotid artery-carotid plaque joint segmentation method in Example 1.

[0160] Example 3

[0161] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a carotid artery-carotid plaque joint segmentation method in Example 1.

[0162] Example 4

[0163] A computer program product includes a computer program, which, when executed by a processor, implements the steps of a carotid artery-carotid plaque joint segmentation method in Example 1.

[0164] Example 5

[0165] A computer device, which may be a database. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store pending transactions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a carotid-carotid plaque joint segmentation method in Example 1 is implemented.

[0166] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0167] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided by the present invention may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited thereto.

[0168] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0169] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A carotid artery-carotid plaque joint segmentation method, characterized in that: include: Obtaining an ultrasonic scanning image of the carotid artery to be tested; Preprocessing the carotid artery ultrasound scan image to be tested to obtain a first channel mask image to be tested; Using the Canny operator to perform edge detection on the carotid artery ultrasound scan image to be tested, to obtain a second channel mask image to be tested; Performing an adaptive limited contrast histogram equalization operation on the carotid artery ultrasound scan image to be tested to obtain a mask image of the third channel to be tested; The first channel mask image to be tested, the second channel mask image to be tested and the third channel mask image to be tested are fused to obtain a fused image of the channels to be tested; The channel fusion image to be measured is input into the joint segmentation model to obtain a predicted mask image; the joint segmentation model is obtained by training the initial joint segmentation model using historical carotid artery ultrasound scan images; the initial joint segmentation model includes a residual convolution module group, a multi-transformer layer, a first convolution layer and a deconvolution module group connected in sequence; the residual convolution module group is also connected to the deconvolution module group; Determining a carotid artery-carotid artery plaque joint segmentation result according to the predicted mask image; Preprocessing the carotid artery ultrasound scan image to be tested to obtain a first channel mask image to be tested includes: intercepting a grayscale ultrasound region in the ultrasound scan image of the carotid artery to be measured to obtain a grayscale ultrasound image; Performing an inverse binarization operation on the grayscale ultrasound image using a primary grayscale threshold to obtain an inverse binarization grayscale ultrasound image; Extract multiple connected domains in the inverse binarized grayscale ultrasound image, and determine the connected domain with the most pixels as the pre-positioned carotid artery region; Performing convex hull contour detection on the pre-located carotid artery region, and determining that the region enclosed by the convex hull contour is the first intermediate region; Determine a circumscribed rectangle of a pre-positioned carotid artery region; the width of the circumscribed rectangle is equal to the width of the grayscale ultrasound image; intercepting the grayscale ultrasound image according to the circumscribed rectangle, and determining the area where the circumscribed rectangle in the grayscale ultrasound image is located as the middle area, determining the area above the middle area as the upper area, and determining the area below the middle area as the lower area; The grayscale mean of all pixels in the upper area is set to the first grayscale mean; The grayscale mean of all pixels in the central area is set to the second grayscale mean; The grayscale mean of all pixels in the lower area is set to the third grayscale mean; Performing weighted summation on the first grayscale mean, the second grayscale mean and the third grayscale mean to obtain a weighted secondary grayscale threshold; Determine a set of all pixel points in the grayscale ultrasound image whose grayscale values ​​are greater than the weighted secondary grayscale threshold as a second intermediate area; Determine an intersection of the first middle area and the second middle area as a primary patch mask; The primary plaque mask is merged with the pre-positioned carotid artery region to obtain a first channel mask image to be tested; The primary plaque mask is fused with the pre-positioned carotid artery region to obtain a first channel mask image to be tested, including: Determine the coordinates of any pixel point as the coordinates of the current pixel point; According to the current pixel coordinates, use formula R 1st =R p +0.5R a The grayscale value of the corresponding pixel point in the primary mask of the plaque and the grayscale value of the corresponding pixel point in the pre-positioned carotid artery area are weightedly summed to obtain the undetermined grayscale value of the pixel point corresponding to the current pixel point coordinate in the mask image to be tested in the first channel; R 1st is the undetermined grayscale value of the pixel in the mask image to be tested in the first channel; R p is the gray value of the pixel in the primary mask of the patch; R a is the gray value of the pixel in the pre-located carotid artery area; When the undetermined grayscale value of the pixel corresponding to the current pixel coordinate in the mask image to be tested in the first channel is greater than 255, the grayscale value of the corresponding pixel is assigned to 255; Update the current pixel coordinates and return to step "According to the current pixel coordinates, use formula R 1st =R p +0.5R a A weighted sum is performed on the grayscale value of the corresponding pixel point in the primary mask of the plaque and the grayscale value of the corresponding pixel point in the pre-positioned carotid artery area to obtain the undetermined grayscale value of the pixel point corresponding to the current pixel point coordinate in the mask image to be tested in the first channel until all pixels are traversed to obtain the mask image to be tested in the first channel.

2. The method for joint segmentation of carotid artery and carotid plaque according to claim 1, characterized in that: The residual convolution module group includes a first residual convolution module, a second residual convolution module and a third residual convolution module which are connected in sequence and have the same structure; The output end of the first residual convolution module, the output end of the second residual convolution module and the output end of the third residual convolution module are all connected to the deconvolution module group; the output end of the third residual convolution module is connected to the multi-transformer layer; The first residual convolution module includes a second convolution layer, a batch normalization layer, a first zero-padding operation layer and a first splicing layer connected in sequence; the input end of the second convolution layer is also connected to the first splicing layer.

3. The method for joint segmentation of carotid artery and carotid plaque according to claim 2, characterized in that: The multi-transformer layer includes a plurality of transformer layers connected in sequence; The transformer layer includes a first normalization layer, a multi-head attention module, a second splicing layer, a second normalization layer, a multi-layer perception mechanism and a third splicing layer connected in sequence; The input end of the first normalization layer is also connected to the input end of the second splicing layer; The output end of the second splicing layer is also connected to the input end of the third splicing layer.

4. The method for joint segmentation of carotid artery and carotid plaque according to claim 3, characterized in that: The deconvolution module group includes a first deconvolution module, a fourth splicing layer, a second deconvolution module, a fifth splicing layer, a third deconvolution module, a sixth splicing layer and a fourth deconvolution module which are sequentially connected and have the same structure; An input end of the first deconvolution module is connected to an output end of the first convolution layer; An input end of the fourth splicing layer is connected to an output end of the first residual convolution module; An input end of the fifth splicing layer is connected to an output end of the second residual convolution module; The input end of the sixth splicing layer is connected to the output end of the third residual convolution module; The first deconvolution module includes a 2x upsampling layer, a third convolution layer, and a second zero-padding operation layer which are connected in sequence.

5. The method for joint segmentation of carotid artery and carotid plaque according to claim 1, characterized in that: Before obtaining the ultrasound scan image of the carotid artery to be tested, it also includes: Construct an initial joint segmentation model; Obtain multiple historical carotid ultrasound scan images; Preprocessing the plurality of historical carotid artery ultrasound scan images to obtain a plurality of first channel historical mask images; Using the Canny operator to perform edge detection on the plurality of historical carotid artery ultrasound scan images to obtain a plurality of second channel historical mask images; Performing an adaptive limited contrast histogram equalization operation on the plurality of historical carotid artery ultrasound scan images to obtain a plurality of third channel historical mask images; fusing the first channel historical mask image, the second channel historical mask image and the third channel historical mask image corresponding to the same historical carotid artery ultrasound scan image to obtain a plurality of historical channel fused images; Inputting the plurality of historical channel fusion images into an initial joint segmentation model to obtain a plurality of historical prediction mask images; determining a plurality of carotid artery-carotid artery plaque historical joint segmentation results according to the historical prediction mask image; Determining a loss function value based on multiple carotid-carotid plaque historical joint segmentation results; The parameters of the initial joint segmentation model are adjusted according to the loss function value, and the step of "obtaining multiple historical carotid artery ultrasound scan images" is returned until the number of iterations reaches the iteration number threshold and the loss function value is less than the loss function value threshold to obtain the joint segmentation model.

6. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a carotid artery-carotid plaque joint segmentation method as described in any one of claims 1-5.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, a carotid artery-carotid plaque joint segmentation method according to any one of claims 1 to 5 is implemented.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, a carotid artery-carotid plaque joint segmentation method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Portable three-dimensional carotid artery ultrasonic automatic diagnosis system and method

    CN115553816A

  • Carotid plaque segmentation method based on double-branch multi-scale cross fusion network

    CN117058170A

  • Carotid plaque segmentation method, device, equipment and medium

    CN117252890A

  • Ultrasonic carotid plaque detection method and system based on level set segmentation

    CN117274216A

  • Carotid artery ultrasonic examination report generation system based on multi-modal information

    US20230270404A1