Puncture needle identification and tracking under ultrasound based on needle detection and Kalman filter

Through the combination of deep learning model and Kalman filter, the problem of insufficient needle tip tracking accuracy in ultrasound images is solved, high-precision tracking during the puncture process is achieved, ensuring that the needle tip accurately reaches the lesion area, improving puncture accuracy and safety. Great sex.

CN118743573APending Publication Date: 2024-10-08NANJING TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410748370.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

The relatively poor imaging quality of ultrasound images makes it difficult to accurately track the needle tip during the puncture process, especially when the needle passes through tissue. The appearance changes, noise, artifacts, and speckles are similar to the needle tip, and the needle tip may temporarily disappear, affecting the accuracy of puncture. sex.

Method used

A robust and accurate deep learning model is designed, including a needle detection module to extract the needle tip coordinates and a Kalman filter module to predict the needle tip position. It combines data augmentation and lightweight network structure, using geometric information and Kalman The filter smoothes visual tracking results and improves tracking accuracy and robustness.

Benefits of technology

It achieves high-precision needle tip tracking during real-time ultrasound puncture, which can effectively bypass blood vessels, nerves and bones, improve puncture accuracy and success rate, and enhance the accuracy and robustness of needle axis prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118743573A_ABST
    Figure CN118743573A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of image processing, in particular to an ultrasonic puncture needle identification and tracking method based on needle detection and a Kalman filter, and the identification method comprises the steps of data set collection, data augmentation, model training and Kalman filter prediction. According to the method, tests are carried out on thousands of different ultrasonic images, the average tracking accuracy is improved compared with the precision of a traditional convolutional neural network, the tracking speed is also improved compared with the traditional convolutional neural network, the problem that a traditional convolutional neural network model is insufficient in robustness and generalization is solved, and extra training parameters are not needed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology and medical devices, and in particular to ultrasonic puncture needle recognition and tracking based on needle detection and Kalman filter. Background Art

[0002] Compared with traditional surgery, minimally invasive surgery in modern clinical medicine has many obvious advantages such as less pain during surgery, faster recovery after surgery, and less trauma. It has made great progress in the past 40 years and has gradually become an important trend in the development of surgery. It is widely used in interventional, microwave, laparoscope and cryotherapy. The most representative one is percutaneous puncture. Percutaneous puncture is generally common in surgical diagnosis and treatment such as short-distance radiotherapy, biopsy, local anesthesia, blood sampling, neurosurgery and abscess drainage. The most commonly used medical device in percutaneous puncture surgery is the puncture needle. During the percutaneous puncture, the puncture needle needs to bypass obstacles such as blood vessels, nerves and bones, and finally reach the lesion area. Since human tissues and organs are close to each other, if the accuracy of the puncture needle cannot meet the requirements due to external factors, serious complications may occur. The external factors include the lack of experience of the physician, the influence of the patient's unconscious movement and physiological reaction, the limitations of the imaging equipment performance, and the deformation of the tissue or organ during the puncture process. Therefore, controlling the accuracy of the puncture is particularly important for percutaneous puncture.

[0003] With the development of surgical operations, medical imaging devices such as CT, ultrasound, fluoroscopy, and MRI have been introduced into percutaneous puncture surgery, which have improved the accuracy and success rate of puncture surgery to a certain extent, reduced surgical costs, and accelerated the patient's recovery process. Compared with imaging technologies such as CT and MRI, ultrasound imaging has the advantages of being non-invasive, cheap, convenient, and real-time imaging. This makes it an important imaging diagnostic and therapeutic tool and has achieved rapid development in multiple interventional treatment fields. However, the relatively poor imaging quality of ultrasound images poses several technical challenges to needle tip tracking based on ultrasound images: (1) When the needle passes through the tissue, the appearance of the needle tip in the US image changes significantly. (2) The appearance of noise, artifacts, and speckles in the ultrasound image of biological tissue is very similar to the needle tip. (3) The needle tip may temporarily disappear completely from the ultrasound image. Technicians in this field have been trying to solve these problems to improve the accuracy of puncture. Summary of the invention

[0004] To solve the above problems, a robust deep learning model with high tracking accuracy is designed and implemented. This method includes two modules, one for detecting the needle axis in the ultrasound image to extract the needle tip coordinates, and the other for predicting the needle tip position using a Kalman filter when there is occlusion or misalignment between the ultrasound imaging plane and the needle axis. This method can produce an accurate tracking result, which allows medical staff to bypass obstacles such as blood vessels, nerves, and bones during real-time ultrasound puncture and finally reach the lesion area.

[0005] Step 1: Data preparation and preprocessing

[0006] Each frame of the puncture videos collected from the hospital was extracted. A total of 25 frames were extracted from each sequence, including the two stages of needle insertion and removal. The datasets were grouped and uniformly scaled to 512*512 size to facilitate network training.

[0007] Step 2: Data Annotation

[0008] Corresponding to the collected data, manual annotation is performed as shown in the figure to mark the two end points of the needle axis.

[0009] Step 3: Model training

[0010] First, we use copy-paste to augment the data to increase the number of needles in each ultrasound image. Then, we feed the augmented image into the needle detection model to obtain the angle, length, segmentation feature map of the needle axis, the center point, and the distance to the two endpoints. The needle tip coordinates are calculated. Since we designed a very efficient architecture with a single module to predict the needle axis, our method is very lightweight and fast by minimizing the network and removing the multi-module process from previous methods. The geometric information of the needle axis is attached during training, including the length, angle, and line segmentation of the needle axis. Therefore, our model is able to capture additional geometric information during training for more accurate prediction of the needle axis.

[0011] Step 4: Kalman smoothing and prediction

[0012] When there is occlusion or misalignment between the ultrasound imaging plane and the needle axis, the Kalman filter is used to smooth the visual tracking results or predict the needle tip position. Kalman filtering is divided into two steps, prediction and correction. Prediction is to estimate the current state based on the state of the previous moment, while correction is to combine the estimated state and the observed state at the current moment to estimate the optimal state. Therefore, it can be used to smooth the visual tracking results or predict the needle tip position.

[0013] Compared with other methods, the present invention has the following advantages: First, the needle axis prediction model of the present invention is lightweight, so it can ensure the real-time prediction, and uses the geometric information of the needle axis to improve the accuracy of the prediction. Second, we use the Kalman filter to provide a reasonable position estimate in the case of online detection failure, thereby improving the robustness of tracking. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments:

[0015] Figure 1 Flowchart of needle tip tracking in ultrasound images

[0016] Figure 2 Schematic diagram of the needle axis prediction network

[0017] Figure 3 Imaging diagram

[0018] Figure 4 Convolutional Attention Block AMS DETAILED DESCRIPTION

[0019] The following will be combined with the attached embodiment of the present invention Figure 1 , which are clearly and comprehensively described in the technical solutions of the embodiments of the present invention. Obviously, the embodiments described here are only a part of the many embodiments of the present invention, not all of them. Without involving creative work, all other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention also fall within the scope of protection of the present invention.

[0020] Example:

[0021] Please refer to Figure 1 As shown, the present invention provides a method for identifying and tracking an ultrasonic puncture needle based on needle detection and Kalman filter, comprising the following steps:

[0022] (1) Dataset collection: First, we used ultrasound equipment to obtain puncture videos from various hospitals. The videos were decomposed into frame-by-frame image sequences and manually annotated to mark the coordinates of the two endpoints of the needle axis in the ultrasound image. The dataset was constructed into a training set, a validation set, and a test set in a ratio of 7:2:1.

[0023] (2) Data augmentation: Since there is only one needle axis in the ultrasound image, the copy-paste method is used to augment each image to increase the number of needle axes in the image. Random occlusion processing improves the robustness of the model, and Gaussian noise is added to simulate different ultrasound noise environments. Each needle axis is divided according to a certain ratio, and each sub-part is used as a separate sample to increase the amount of data.

[0024] Through the above data enhancement operation, the number of samples can be further expanded. First, the trained model can be made more accurate, and second, the model after data enhancement can be more robust.

[0025] (3) Model training: refer to Figure 2 As shown in the figure, the collected images are sent to the network model for training, and finally 15 feature maps are obtained, of which 7 are data enhanced feature maps. The predicted needle tip coordinates are calculated through the center point and distance feature maps.

[0026] Furthermore, during the training process, the input images are first resized and fed into our lightweight network for feature extraction. A new lightweight medical image feature extraction network is used, combining dilated convolution and multi-scale convolution. At the same time, an efficient convolutional attention block AMS is designed, such as Figure 4 As shown, it not only improves the efficiency of feature extraction, but also achieves the purpose of lightweight.

[0027] Furthermore, multiple losses are designed to constrain the network. Weighted binary cross entropy loss and smooth L1 loss are used as center loss and displacement loss, which are used to train center and displacement maps, respectively. Matching loss considers the relationship between line segments by guiding the generated line segments to be similar to the matched GT. We first take each predicted endpoint and measure the Euclidean distance d(·) to the GT endpoint. Next, these distances are used to match the predicted line segments to the GT endpoint. Match with the real line segment l, provided that their distance is below the threshold γ: Finally, the L1 loss is used for matching loss, which aims to minimize the geometric distance of the matched line segments relative to the start, end, and center points, as shown below:

[0028]

[0029] Finally, we get the final loss of training: L total =L center +L disp +L sol +L match +L length +L degree +L seg

[0030] Use the sum of losses to perform reverse gradient propagation and update the parameters of the feature extraction network until the loss reaches the minimum value and the model converges. The final model is saved for the next step.

[0031] (4): Kalman filter smoothing and prediction

[0032] When there is occlusion or misalignment between the ultrasound imaging plane and the needle axis, the Kalman filter is used to smooth the visual tracking results or predict the needle tip position. Kalman filtering is divided into two steps, prediction and correction. Prediction is to estimate the current state based on the state of the previous moment, while correction is to combine the estimated state and the observed state at the current moment to estimate the optimal state. Therefore, it can be used to smooth the visual tracking results or predict the needle tip position.

[0033] The Kalman filter time update equation is as follows:

[0034]

[0035]

[0036] The Kalman filter state update equation is as follows:

[0037]

[0038]

[0039]

[0040] The present invention can accurately identify the position of the needle tip in ultrasound. It has been tested on thousands of different ultrasound images. The average recognition accuracy is improved compared to the traditional convolutional neural network accuracy, which makes up for the lack of robustness and generalization of the traditional convolutional neural network model, and does not require additional training parameters.

[0041] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements will not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for identifying and tracking puncture needles under ultrasound based on needle detection and Kalman filter, which is used to track the needle tip in ultrasound, so that medical staff can bypass obstacles such as blood vessels, nerves and bones during real-time ultrasonic puncture and finally reach the lesion area. In order to achieve the ideal tracking effect, multiple losses are designed to constrain needle axis detection, and a Kalman filter is used to smooth the visual tracking results or predict the needle tip position, thereby improving the robustness of tracking. The method includes the following steps: Step 1: Dataset creation: The ultrasound puncture videos collected from the hospital were cleaned and decomposed into frame-by-frame image sequences. A total of 25 frames were extracted from each sequence, including the two stages of needle insertion and removal. The data sets were grouped and uniformly scaled to 512*512 size to facilitate network training. Step 2: Data labeling: Manually label the collected data and mark the two endpoints of the needle axis. Step 3: Predict the needle axis and extract the needle tip coordinates. The collected images are sent to the network model for training, and finally 15 feature maps are obtained, of which 7 are data-enhanced feature maps. The predicted needle tip coordinates are calculated through the center point and distance feature maps. Step 4: Kalman smoothing and prediction. The Kalman filter is used to smooth the visual tracking results or predict the needle tip position when there is occlusion or misalignment between the ultrasound imaging plane and the needle axis.

2. According to the method for ultrasonic puncture needle recognition and tracking based on needle detection and Kalman filter in claim 1, the data set preparation method described in step 1 comprises the following steps: Step 1: First, use the ultrasonic puncture device to obtain the puncture video and keep it for step 2; Step 2: Decompose each video into a 25-frame image sequence and scale them uniformly to 512*512.

3. According to the method for ultrasonic puncture needle recognition and tracking based on needle detection and Kalman filter in claim 1, the data labeling method described in step 2 comprises the following steps: Step 1: Mark the two ends of the needle axis in ultrasound to obtain the endpoint coordinates and proceed to step 2; Step 2: Use the image dataset to construct training set, validation set, and test set in a ratio of 7:2:

1.

4. According to the method for ultrasonic puncture needle recognition and tracking based on needle detection and Kalman filter in claim 1, the step of predicting the needle axis described in step 3 comprises the following steps: Step 1: Send the collected images to the network model for training, and finally get 15 feature maps, 7 of which are data-enhanced feature maps. The predicted needle tip coordinates are calculated through the center point and distance feature maps. During the training process, the input image is first resized and sent to our lightweight network for feature extraction. A new lightweight medical image feature extraction network is used, combining dilated convolution and multi-scale convolution. At the same time, an efficient convolutional attention block AMS is designed, as shown in Figure 4, which not only improves the efficiency of feature extraction but also achieves the purpose of lightweight. Step 2: Multiple losses are designed to constrain the network. Weighted binary cross entropy loss and smooth L1 loss are used as center loss and displacement loss, which are used to train center and displacement maps respectively. Matching loss considers the relationship between line segments by guiding the generated line segments to be similar to the matched GT. We first take each predicted endpoint and measure the Euclidean distance d(·) to the GT endpoint. Next, these distances are used to match the predicted line segments to the GT endpoint. Match with the real line segment l, provided that their distance is below the threshold γ: Finally, the L1 loss is used for matching loss, which aims to minimize the geometric distance of the matched line segments relative to the start, end, and center points, as shown below: Finally, we get the final loss of training: L total =L center +L disp +L sol +L match +L length +L degree +L seg Use the sum of losses to perform reverse gradient propagation and update the parameters of the feature extraction network until the loss reaches the minimum value and the model converges. The final model is saved for the next step.

5. According to the method for ultrasonic puncture needle recognition and tracking based on needle detection and Kalman filter in claim 1, the Kalman smoothing and prediction described in step 4 comprises the following steps: Kalman filtering is divided into two steps, prediction and correction. Prediction is to estimate the current state based on the state of the previous moment, while correction is to estimate the optimal state by combining the estimated state and the observed state at the current moment. Therefore, it can be used to smooth visual tracking results or predict the position of the needle tip. The Kalman filter time update equation is as follows: The Kalman filter state update equation is as follows: