A target recognition and tracking method for liver vascular ultrasound images based on improved U-net network and LSTM network
By improving the U-net and LSTM networks, and combining histogram equalization and RetinaNet, the problem of identifying and tracking liver blood vessels in dynamic ultrasound image sequences was solved, achieving high-precision prediction and segmentation of liver blood vessel locations, and improving the speed and accuracy of identification and tracking.
Patent Information
- Application Number
- CN202011155220.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-26
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-10-26
AI Technical Summary
Existing methods struggle to achieve accurate target identification and real-time tracking in dynamic ultrasound image sequences, especially in liver vascular ultrasound images, where changes in the location of lesions and obstacles due to respiratory motion increase the difficulty of localization.
An improved U-net network and LSTM network are used, combined with histogram equalization preprocessing, and RetinaNet is constructed using Focal loss and nonmaximum suppression for target detection and segmentation. The improved U-net network is used for segmentation, and CNN-LSTM network is used for image sequence classification and LSTM network is used for location prediction, so as to realize target recognition and tracking of liver vascular ultrasound images.
It improves the target recognition and segmentation accuracy of liver vascular ultrasound images, enables accurate tracking of liver vascular location, and enhances the speed and accuracy of recognition and tracking.
Smart Images

Figure CN113763309B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing and the field of medical auxiliary diagnosis, and in particular to a method for liver vascular ultrasound image target recognition and tracking based on an improved U-net network and an LSTM network. Background Art
[0002] Due to the real-time nature of medical ultrasound imaging, this technology is widely used in liver tumor ablation and minimally invasive treatment for lesion identification and tracking. However, respiratory movement can cause the location of lesions and obstacles to change, making it more difficult to accurately avoid obstacles and locate lesions.
[0003] Target recognition and tracking based on ultrasound images mainly include: 1) target recognition task in ultrasound images; 2) target tracking task in ultrasound images. Target recognition in ultrasound images is to accurately draw the outlines of valuable targets such as blood vessels and tumors in the image. Since the automatic target recognition method uses a computer to automatically extract the target outline and has a fast segmentation speed, it is gradually replacing the traditional semi-automatic and manual methods. However, ultrasound images have the characteristics of large speckle noise, unclear targets, and low brightness, which will affect the accuracy of target recognition. In addition, considering the influence of natural human breathing, the position of lesions and blood vessels will change during in vivo treatment, which will affect the positioning of ultrasound image targets, thereby affecting the speed and accuracy of target tracking. Therefore, it is extremely important to achieve accurate and real-time ultrasound image target recognition and tracking.
[0004] In recent years, with the development of deep learning theory, deep neural networks have been widely used in technical fields such as image segmentation and target detection due to their superior performance.
[0005] Fully convolutional neural networks (FCNs) are extremely effective in identifying medical image targets. Among them, U-net is a deep neural network with a symmetrical structure based on FCN. The network improves the accuracy of target recognition in medical images by combining low-level features with high-level features.
[0006] Recurrent Neural Networks (RNNs) have been successfully applied to speech recognition, image annotation and other fields, but they have difficulty in dealing with long-term dependency issues. Long Short-Term Memory Networks (LSTMs) are based on the RNN architecture. By increasing the use of gate units, they solve the problem of gradient vanishing during backpropagation during training, and can predict the output at the next moment based on the output over a long period of time. LSTM networks have been widely used due to their accuracy in spatiotemporal sequence prediction. Summary of the invention
[0007] The present invention provides a liver vascular ultrasound image target recognition and tracking method based on an improved U-net network and an LSTM network, in order to solve the problem that the existing method cannot simultaneously perform target recognition and real-time tracking on a dynamic ultrasound image sequence.
[0008] The present invention is achieved through the following technical solutions:
[0009] A method for identifying and tracking a target in an ultrasound image of a liver vessel based on an improved U-net network and an LSTM network. The method for identifying and tracking a target in an ultrasound image of a liver vessel comprises the following steps:
[0010] Step 1: Ultrasound image sequence preprocessing;
[0011] Step 2: Train the ROI extraction model to segment the region from the ultrasound image in step 1;
[0012] Step 3: Accurately segment the target in the area of step 2 based on the improved U-net network;
[0013] Step 4: Use the CNN-LSTM network to classify the ultrasound image sequence in step 1;
[0014] Step 5: Based on the segmentation results of step 3 and the classification results of step 4, the LSTM network is used to accurately predict the target position in the ultrasound image sequence.
[0015] Furthermore, the preprocessing method in step 1 is specifically to process the liver vascular ultrasound image data using a histogram equalization method to map the grayscale value of the original image to a range of [0, 255].
[0016] Furthermore, the specific steps of step 2 are:
[0017] Step 2.1: Use the preprocessed ultrasound images as the target detection network dataset, mark the location of the liver blood vessels in each image (rectangular box), and save it as an .xml format file for label training;
[0018] Step 2.2: Improve the original object detection network, select Focal loss as the loss function of the classification network, add non-maximum suppression (NMS) to screen the predicted border, and build a retinanet network;
[0019] Step 2.3: Train the retinanet network on the training set to obtain an accurate target detection model, and use the trained target detection model to test the test set to obtain an automatically extracted ultrasound image of the target area.
[0020] Furthermore, the specific steps of step 3 are:
[0021] Step 3.1: Use the ultrasound image of the target area obtained in step 2 as the segmentation network dataset, outline the edges of the liver blood vessels appearing in each image, and process them into binary images as labels for the segmentation network, and then adjust the image and the label image to the same size;
[0022] Step 3.2: Improve the original U-net network, add edge padding, introduce the BatchNormalization algorithm, train the improved U-net network on the training set, and obtain an accurate segmentation model;
[0023] Step 3.3: Use the trained segmentation model to test the test set and obtain the segmented ultrasound image data.
[0024] Furthermore, the specific steps of step 4 are:
[0025] Step 4.1: Use the preprocessed ultrasound images as the data set of the image classification network, use the sequence to which the images belong as the label, and train the classification model on the training set based on the constructed CNN network;
[0026] Step 4.2: For the preprocessed ultrasound image sequence, select M adjacent frames at random intervals to generate a new image sequence as the data set for the sequence classification network. Use the sequence name as the label and perform one-hot encoding on the label;
[0027] Step 4.3: Build an LSTM prediction network, apply the above-trained CNN classification model to extract the features of the image sequence, and use the extracted features as the input of the LSTM network to train and adjust the network to obtain a sequence classification model;
[0028] Step 4.4: Based on the obtained sequence classification model, test the model using the test set data to verify the accuracy of the model.
[0029] Furthermore, the specific steps of step 5 are:
[0030] Step 5.1: Based on the above segmentation results and classification results, the LSTM network is trained for different ultrasound image sequences respectively;
[0031] Step 5.2: The segmented ultrasound image sequence obtained in step 3 is used as the data set of the LSTM prediction network. Considering the correlation between ultrasound image sequences, when using the LSTM network to predict the position of the blood vessels in the next frame of ultrasound image, the images of the previous frames are selected as input and the next frame of image is selected as output to generate training sets and test sets.
[0032] Step 5.3: Based on the processed data set, the LSTM network is trained and adjusted to obtain a liver vascular target position prediction model, and finally the accurate tracking of the liver vascular target position in the ultrasound image is achieved.
[0033] The beneficial effects of the present invention are:
[0034] 1) The present invention uses a trained target detection model to automatically extract the region of interest in the ultrasound image, which is beneficial to the subsequent target recognition and tracking, and can improve its accuracy and speed to a certain extent;
[0035] 2) The present invention uses an improved U-net network to perform target segmentation on liver vascular ultrasound images, thereby improving segmentation accuracy;
[0036] 3) The present invention uses the CNN-LSTM network to achieve accurate classification of ultrasound image sequences, which is beneficial to improving the accuracy of target position prediction;
[0037] 4) The present invention uses an LSTM network to predict the position of liver blood vessels in ultrasound images, which is beneficial to improving the accuracy and speed of segmentation;
[0038] 5) The present invention relates to the field of image processing technology and medical auxiliary diagnosis, and has a positive role in promoting intelligent auxiliary diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 Flow chart of the method of the present invention.
[0040] Figure 2 A schematic diagram of the network structure of a target detection network for automatically extracting a target area according to the present invention.
[0041] Figure 3 This is a schematic diagram of the present invention using the RetinaNet network to automatically extract the target area of liver blood vessels.
[0042] Figure 4 Schematic diagram of the network structure of the improved U-net network for automatically segmenting liver blood vessels of the present invention.
[0043] Figure 5 It is a schematic diagram of the original picture of the liver blood vessel ultrasound image of the present invention.
[0044] Figure 6 The present invention adds non-maximum suppression to the detection result example of three targets in the same ultrasound image.
[0045] Figure 7 This is the segmentation result of the improved U-net network of the present invention for three targets in the same ultrasound image. DETAILED DESCRIPTION
[0046] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings 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.
[0047] Example 1
[0048] A method for identifying and tracking a target in an ultrasound image of a liver vessel based on an improved U-net network and an LSTM network. The method for identifying and tracking a target in an ultrasound image of a liver vessel comprises the following steps:
[0049] Step 1: Ultrasound image sequence preprocessing;
[0050] The liver vascular ultrasound images used in the experiment are clinical data collected by Ultrasonix MDP, Siemens Antares and other ultrasound machines, totaling 81,738 images. For different ultrasound image sequences in the data set, 1,000 images were selected as the data set required for the experiment, renamed in the format of "sequence name_image_image number.bmp" (such as: CIL-01_image_0.bmp), and adjusted to the same size of 224×224; for the ultrasound image data set, the histogram equalization method was used to process the liver vascular ultrasound image data, and the grayscale value of the original image was mapped to the range of [0, 255].
[0051] Step 2: Train the ROI extraction model to segment the region from the ultrasound image in step 1;
[0052] Step 2.1: The ultrasound images after image preprocessing were used as the target detection network dataset. 70% were randomly selected as the training set and 30% as the test set. The labelImg software was used to mark the area (rectangular box) where the liver blood vessels appeared in each image and save it as an .xml format file as the image label;
[0053] Step 2.2: Improve the original target detection network, select the focal loss function as the loss function of the classification network, add non-maximum suppression (NMS) to filter the predicted border, and build a retinanet network, such as Figure 2 As shown;
[0054] Step 2.3: Set the network parameters, such as: the basic network architecture is "resnet50", the batch size is 8, the maximum number of iterations is 10000, the model storage method is to store once every 10 training times, etc. Train the retinanet network on the training set to obtain an accurate target detection model, and use the trained target detection model to test the test set data to obtain the automatically extracted target area ultrasound image, such as Figure 5 As shown in the figure, during testing, each image takes about 0.66 seconds, and the average detection accuracy (mAP) of the model is about 99.78%.
[0055] Step 3: Accurately segment the target in the area of step 2 based on the improved U-net network;
[0056] Step 3.1: Use the ultrasound image of the target area obtained in step 2 as the segmentation network dataset, outline the edges of the liver blood vessels appearing in each image, and process them into binary images as the labels of the segmentation network, and then resize the images and label images to the same size of 224×224;
[0057] Data augmentation was performed by rotating the dataset images by 90, 180, and 270 degrees, and translating the images left and right by 5 pixels and up and down by 10 pixels. Similarly, the label images were processed accordingly. For the augmented dataset, 70% was randomly selected as the training set and 30% as the test set.
[0058] Step 3.2: Improve the original U-net network, add edge padding, and introduce the BatchNormalization algorithm to build an improved U-net network, such as Figure 3 As shown, the improved U-net network is trained and adjusted on the training set to obtain an accurate improved U-net liver vascular segmentation model;
[0059] Step 3.3: Use the trained segmentation model to test the test set data to obtain segmented ultrasound image data; compare the test set labels with the model segmentation results, and select the regional evaluation criteria and boundary evaluation criteria as evaluation indicators. Among them:
[0060] The regional evaluation criteria include the true positive rate (TPR) and the similarity rate (SIR), which are defined as follows:
[0061]
[0062] Among them A h is the manually marked target area, A a It is the target area segmented by the algorithm, so the larger the TPR and SIR, the better.
[0063] The boundary evaluation criteria include Hausdorff distance (HD) and mean distance (MD), which are defined as follows:
[0064]
[0065] where Q = {q1,q2,…,q n} is the manually calibrated target boundary, P = {p1, p2, …, p m} is the boundary calibrated by the algorithm, d(p j ,Q) is any point p on the boundary j The two-dimensional Euclidean distance to Q, that is Therefore, the smaller the HD and MD, the better.
[0066] At the same time, a typical FCN network was also used to perform liver vascular segmentation on the test set as a control. The specific comparison results are shown in Table 1.
[0067] Table 1 Evaluation indicators when testing with different algorithms
[0068] TPR SIR HD MD FCN (Comparison Algorithm) 0.47 0.42 60.49 11.43 U-net 0.85 0.67 69.70 3.94
[0069] It can be seen from the data in the table that the segmentation algorithm proposed in the present invention has better segmentation results than the control algorithm and can achieve accurate segmentation of liver blood vessels.
[0070] Step 4: Use the CNN-LSTM network to classify the ultrasound image sequence in step 1;
[0071] Step 4.1: Use the preprocessed ultrasound images as the data set of the image classification network, use the sequence to which the images belong as the label, and randomly select 70% of them as the training set and 30% as the test set. Based on the constructed CNN network, train the classification model for the training set and test the test set;
[0072] Step 4.2: For the preprocessed ultrasound image sequence, select M adjacent frames at random intervals to generate a new image sequence as the data set for the sequence classification network. For example, starting from the first frame, select 50 adjacent frames at 20 frames intervals to generate a new image sequence as the data set for the sequence classification network. Use the sequence name as the label, and perform one-hot encoding on the label. Also randomly select 70% of them as the training set and 30% as the test set.
[0073] Step 4.3: Build an LSTM prediction network, apply the above-trained CNN classification model to extract the features of the image sequence, and use the extracted features as the input of the LSTM network to train and adjust the network to obtain a sequence classification model;
[0074] Step 4.4: Based on the obtained sequence classification model, test the model using the test set data to verify the accuracy of the model.
[0075] Step 5: Based on the segmentation results of step 3 and the classification results of step 4, the LSTM network is used to accurately predict the target position in the ultrasound image sequence;
[0076] Step 5.1: Considering that the motion of the target in different image sequences is different, based on the above segmentation results and classification results, the LSTM network is trained for different ultrasound image sequences respectively;
[0077] Step 5.2: The segmented ultrasound image sequence obtained in step 3 is used as the data set of the LSTM prediction network. The LSTM prediction network is trained for each sequence. Considering the correlation between ultrasound image sequences, when the LSTM network is used to predict the position of the blood vessels in the next frame of ultrasound image, the images of the first few frames are selected as input, such as the first 10 frames, and the next frame is selected as output to generate a training set and a test set.
[0078] Step 5.3: Based on the processed data set, the network parameters are set as follows: the number of LSTM network layers is 1, the number of hidden units is 50, the data batch size is 50, the training cycle is 10000, etc., the LSTM network is trained and adjusted to obtain the liver vascular location prediction model;
[0079] Step 5.4: Based on the obtained training model, the test set data is used for testing, and the test set labels are compared with the model prediction results. The vascular target tracking accuracy of the test position prediction model can reach the millimeter level, which can realize the accurate prediction of the position of liver blood vessels in ultrasound images.
Claims
1. A method for target recognition and tracking in liver vascular ultrasound images based on improved U-net network and LSTM network. It is characterized in that The method for object recognition and tracking of liver vascular ultrasound images includes the following steps: Step 1: Ultrasound image sequence preprocessing; Step 2: Train the ROI extraction model to segment the region from the ultrasound image in step 1; Step 3: Accurately segment the target in the area of step 2 based on the improved U-net network; Step 4: Use the CNN-LSTM network to classify the ultrasound image sequence in step 1; Step 5: Based on the segmentation results of step 3 and the classification results of step 4, the LSTM network is used to accurately predict the target position in the ultrasound image sequence; The specific steps of step 3 are: Step 3.1: Use the ultrasound image of the target area obtained in step 2 as the segmentation network dataset, outline the edges of the liver blood vessels appearing in each image, and process them into binary images as labels for the segmentation network, and then adjust the image and the label image to the same size; Step 3.2: Improve the original U-net network, add edge padding, introduce the Batch Normalization algorithm, train the improved U-net network on the training set, and obtain an accurate segmentation model; Step 3.3: Use the trained segmentation model to test the test set and obtain the segmented ultrasound image data.
2. According to claim 1, the method for liver vascular ultrasound image target recognition and tracking based on the improved U-net network and LSTM network, It is characterized in that The preprocessing method in step 1 is specifically to process the liver vascular ultrasound image data using a histogram equalization method to map the grayscale value of the original image to a range of [0, 255].
3. The method for liver vascular ultrasound image target recognition and tracking based on the improved U-net network and LSTM network according to claim 1, It is characterized in that The specific steps of step 2 are: Step 2.1: Use the preprocessed ultrasound images as the target detection network dataset, mark the location of the liver blood vessels in each image, and save them as .xml format files for label training; Step 2.2: Improve the original object detection network, select the focus loss function as the loss function of the classification network, add non-maximum suppression to screen the predicted border, and build a retinanet network; Step 2.3: Train the retinanet network on the training set to obtain an accurate target detection model, and use the trained target detection model to test the test set to obtain an automatically extracted ultrasound image of the target area.
4. The method for liver vascular ultrasound image target recognition and tracking based on the improved U-net network and LSTM network according to claim 1, It is characterized in that The specific steps of step 4 are: Step 4.1: Use the preprocessed ultrasound images as the data set of the image classification network, use the sequence to which the images belong as the label, and train the classification model on the training set based on the constructed CNN network; Step 4.2: For the preprocessed ultrasound image sequence, select M adjacent frames at random intervals to generate a new image sequence as the data set of the sequence classification network, use the sequence name as the label, and perform one-hot encoding on the label; Step 4.3: Build an LSTM prediction network, apply the above-trained CNN classification model to extract the features of the image sequence, and use the extracted features as the input of the LSTM network to train and adjust the network to obtain a sequence classification model; Step 4.4: Based on the obtained sequence classification model, test the model using the test set data to verify the accuracy of the model.
5. The method for liver vascular ultrasound image target recognition and tracking based on the improved U-net network and LSTM network according to claim 1, It is characterized in that The specific steps of step 5 are: Step 5.1: Based on the above segmentation results and classification results, the LSTM network is trained for different ultrasound image sequences respectively; Step 5.2: The segmented ultrasound image sequence obtained in step 3 is used as the data set of the LSTM prediction network. When the LSTM network is used to predict the position of the blood vessels in the next frame of ultrasound image, the images of the previous frames are selected as input and the next frame of image is selected as output to generate a training set and a test set. Step 5.3: Based on the processed data set, the LSTM network is trained and adjusted to obtain a liver vascular target position prediction model, and finally the accurate tracking of the liver vascular target position in the ultrasound image is achieved.
Citation Information
Patent Citations
Multi-model organ segmentation method and system based on abdominal ultrasound images
CN109064443A
An image segmentation method based on super pixels and a long and short term memory network
CN109741341A
Liver tumor segmentation method based on improved U-net network
CN111652886A
