Method for positioning postures of instruments and tools based on depth regression
Through the deep regression positioning method, deep neural network and calibration method are used to solve the problems of radiation and long operation time caused by multiple X-ray imaging in traditional surgery, achieve efficient and accurate instrument posture positioning, and reduce surgical risks.
Patent Information
- Application Number
- CN202410743666.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-10
AI Technical Summary
In orthopedic surgery, traditional methods require multiple X-ray imaging to locate the posture of surgical instruments, resulting in radiation damage and long operation time. It is also difficult to detect and segment instrument features, affecting positioning accuracy.
A method based on depth regression is used to obtain device images at two random angles, extract the device feature contour, use a deep neural network to generate a simulated axis projection, construct a three-dimensional projection plane, calculate the spatial pose of the through-hole axis, and correct it through the calibration method posture to improve positioning accuracy.
Significantly improves the efficiency and accuracy of surgical instrument positioning, reduces the number of X-rays, reduces radiation exposure, and reduces the risk of surgical complications.
Smart Images

Figure CN118628565A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical device image positioning, and in particular to a method for positioning a tool posture of a medical device based on depth regression. Background Art
[0002] Orthopedic surgical instruments are widely used in fracture treatment. However, surgical instruments such as instrument features and pressurized locking bone plates need to be placed inside the patient's body for surgical operations. Since they will be contained in the bone cavity during the operation, the precise positioning of the surgical instruments is affected. Therefore, X-ray imaging devices such as C-arm X-ray machines are used to image surgical instruments during surgery, allowing the operator to understand the posture of the surgical instruments in the patient's body by observing two-dimensional instrument images. Using traditional instruments to aim requires a high level of operating skills and has a low success rate.
[0003] To improve the accuracy of positioning, doctors usually need to use C-arm machines (intraoperative X-ray imaging equipment) to repeatedly take two-dimensional X-rays to observe the position of the instrument features in the long bones. Doctors estimate the spatial position of the through holes on the instruments based on experience. Studies have shown that this method requires an average of 21 X-rays, which cause a lot of radiation damage to doctors and patients, and the operation time is also long, which is prone to the risk of surgical complications.
[0004] Since the surface of the instrument feature itself is relatively smooth and there are no significant landmarks, and bones, surgical instruments, and surgical implants in intraoperative X-rays will cover or block the instrument feature area, it is not easy to detect instrument feature targets and segment instrument feature holes in X-rays. Therefore, it is necessary to provide an improved method for locating the spatial posture of instrument tools. Summary of the invention
[0005] The technical problem to be solved by the present invention is to overcome the deficiencies in the prior art and provide a method for positioning the tool posture based on depth regression.
[0006] The technical solution adopted by the present invention to solve the technical problem is: a method for positioning the spatial posture of an instrument tool based on depth regression, characterized in that it includes the following steps: Acquire images of the instrument at two random angles during the operation, extract the characteristic contour of the instrument based on the image, use a deep neural network to obtain the simulated axis projection of at least one through hole on the instrument, and construct a three-dimensional projection plane based on the simulated axis projection; the three-dimensional projection planes formed by the instrument images at two angles according to the above steps intersect to obtain the spatial pose of the through-hole axis; according to the characteristic contour information of the instrument, use the relevant algorithm to correct the pose of the through-hole axis, that is, to obtain the spatial pose of the instrument.
[0007] Furthermore, the method for extracting the characteristic contour of the device is: First, the target detection network is used to preliminarily determine the instrument and feature imaging areas in the image, and then semantic segmentation is performed in the area to obtain the boundary contours of each area; the training data of the target detection network is the synthetic image, and the training label is the minimum bounding box of the instrument feature and through-hole imaging area.
[0008] Furthermore, the method for obtaining the simulated axis projection of at least one through hole on the instrument is: A simulated instrument image is generated based on the extracted characteristic contour of the instrument, and these simulated instrument images are stored as a predetermined image database, each simulated instrument image is associated with the orientation of the digital model of the surgical instrument relative to the imaging plane when it is simulated; the predetermined image database is used to train a neural network model, and the trained neural network model processes a through hole image and a relative position image of at least one characteristic through hole to determine the orientation of the instrument relative to the imaging plane when the instrument image is imaged.
[0009] Furthermore, the method for obtaining the simulated axis projection of at least one through hole on the instrument is: A simulated instrument image is generated based on the extracted characteristic contour of the instrument, and these simulated instrument images are stored as a predetermined image database, each simulated instrument image is associated with the orientation of the digital model of the surgical instrument relative to the imaging plane when it is simulated; the image data of the predetermined image database and / or historical images are divided into multiple sub-training data sets, and a neural network model is trained based on these sub-training data sets respectively, and the trained neural network model processes the through hole image and relative position image of at least one characteristic through hole to determine the orientation of the instrument relative to the imaging plane when the instrument image is imaged.
[0010] Furthermore, the historical images are historical images of the instrument taken during past surgeries, and the operator has determined the orientation data of the instrument relative to the imaging plane. These historical images and their corresponding orientation data constitute the image data of the historical images.
[0011] Furthermore, the method for obtaining the spatial position of the through hole axis is: The data information of the two three-dimensional projection planes is determined by the projection plane information pre-set in a certain position sample in the training set obtained by searching in the neural network model. When the projection plane information corresponding to the two image shooting positions is determined, the spatial posture of the through-hole axis is calculated according to the principle of double-plane intersection, that is, the corresponding characteristic axis of the instrument is obtained.
[0012] Furthermore, the method for correcting the posture of the through hole axis is: When acquiring the image of the instrument, a calibration plate is used to expose the instrument together with the calibration plate to obtain a perspective image of the calibration plate. Based on the physical image of the calibration plate and the exposure parameters of the imaging device, the calibration method is used to calculate the distortion parameters of the calibration plate during imaging, that is, the distortion parameters of the instrument. The posture of the instrument image is adjusted according to the distortion parameters, and then combined with the CMA-ES algorithm, the spatial posture of the through-hole axis is regained, which is the corrected posture of the through-hole axis.
[0013] The beneficial effects of the present invention are: The present invention uses two instrument images taken at different angles, utilizes the intersection of two planes to roughly locate the posture of the through hole on the instrument, and then corrects the posture by aligning the instrument image contour. In addition, a method for extracting the instrument image contour from coarse to fine is proposed to address the problem of inaccurate contour extraction in the instrument image. Compared with the traditional positioning method, the efficiency is significantly improved. Only two instrument images need to be taken during the operation, and the instrument image contour information is fully utilized to accurately locate the instrument's characteristic posture. The instrument feature image prior knowledge is combined with the target detection algorithm and the semantic segmentation network to accurately extract the instrument feature image contour, effectively reducing the impact of other implant occlusions on the instrument image contour extraction during the operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0015] Figure 1 It is a flow chart of the present invention.
[0016] Figure 2 It is a flow chart of extracting the characteristic contour of the instrument in the present invention.
[0017] Figure 3 It is a principle diagram of obtaining a simulated axis projection of at least one through hole on the instrument in the present invention.
[0018] Figure 4 It is a schematic diagram of the spatial position of the through hole axis obtained in the present invention.
[0019] Figure 5 It is a flow chart of correcting the posture of the through hole axis in the present invention. DETAILED DESCRIPTION
[0020] The present invention will now be further described in conjunction with the accompanying drawings and preferred embodiments. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.
[0021] like Figure 1As shown, a method for positioning the spatial posture of an instrument tool based on deep regression includes the following steps: during the operation, two images of an instrument (such as an intramedullary nail) at random angles are taken by a C-arm machine, the characteristic contour of the instrument is extracted based on the image, a simulated axis projection of at least one through hole on the instrument is obtained by using a deep neural network (not visible in the X-ray film), and a three-dimensional projection plane is constructed based on the simulated axis projection; the three-dimensional projection planes formed by the instrument images at two angles according to the above steps are intersected to obtain the spatial posture of the through hole axis; according to the characteristic contour information of the instrument, a related algorithm (such as the CMA-MS algorithm mentioned below) is used to correct the posture of the through hole axis, that is, the spatial posture of the instrument is obtained.
[0022] like Figure 2 As shown in the figure, the steps of extracting the characteristic contour of the instrument are as follows: first, the instrument and characteristic imaging area (including the outer contour of the instrument) in the image are preliminarily determined by the target detection network. Q 1 and the through hole outline on it Q 2 、Q 3 ), and then semantic segmentation is performed in its area to obtain each boundary contour; the training data of the target detection network is synthetic images, and the training labels are the minimum bounding boxes of the instrument features and the through-hole imaging area.
[0023] like Figure 3 As shown, the steps of obtaining the simulated axis projection of at least one through hole on the instrument are: generating a simulated instrument image based on the extracted characteristic contour of the instrument, storing these simulated instrument images as a predetermined image database, each simulated instrument image is associated with the orientation of the digital model of the surgical instrument relative to the imaging plane when it is simulated; using the predetermined image database to train a neural network model, and the trained neural network model processes the through hole image and relative position image of at least one characteristic through hole to determine the orientation of the instrument relative to the imaging plane when the instrument is imaged. The predetermined image database is used to train the neural network model so that it can have the ability to recognize and process these image data. The above-mentioned neural network model can be any suitable neural network model, such as a convolutional neural network model.
[0024] The neural network model can identify the position of the center of the characteristic through hole and the direction of the central axis passing through the center of the hole, and then determine the orientation of the plane where the through hole is located based on the position of the center of the hole and the direction of the central axis. Since the position of the characteristic through hole in the surgical instrument is determined, the orientation of the surgical instrument relative to the imaging plane (as a reference plane) can be determined based on the position and orientation of the plane where the through hole is located. Intuitively, Figure 3As shown, the light emitted by the emission source (the light source of the C-arm machine) passes through a through hole, forming a projection of the through hole on the imaging plane, and the central axis of the through hole also forms an axis projection on the imaging plane.
[0025] In addition, the neural network model can identify the location of the characteristic through hole and the direction of the central axis passing through the center of the hole, as well as the perpendicular line from the center of the hole to the outer contour of the device. The device can have multiple characteristic through holes, such as Figure 3 The circular through hole and the oblong through hole are shown as two characteristic through holes, so that the neural network model can identify the positions of the two characteristic through holes and the direction of the central axis passing through the centers of the two characteristic through holes. The position of a point in the target instrument image and the orientation of multiple associated vectors can be determined, or the position of two or more points and the orientation of one or more associated vectors can be determined, so that the orientation of the surgical instrument relative to the imaging plane can be determined based on the orientation of these points and the axis / line.
[0026] In order to avoid real-time training of the neural network model during the operation, the image data of the historical image can be used alone or the image data of the historical image can be added to the simulated instrument image to divide it into multiple sub-training data sets, and then the neural network model can be trained based on these sub-training data sets. In this way, when using the trained neural network model to process the actual image, the neural network model trained with the sub-training data set similar to the target instrument image can be directly selected without the need for additional intraoperative training steps. Among them, the historical image is the historical image of the instrument taken during the past operation, and the operator has determined the orientation data of the instrument relative to the imaging plane. These historical images and their corresponding orientation data constitute the image data of the historical image.
[0027] like Figure 4 As shown in the figure, the steps to obtain the spatial position of the through hole axis are: two three-dimensional projection planes (S 1 、S 2 ) is obtained by searching the neural network model for a certain position sample in the training set and pre-set projection plane ( I 1 、I 2 ) information is determined. When the projection plane information corresponding to the two image shooting positions is determined, the spatial position of the through-hole axis is calculated according to the principle of double-plane intersection, that is, the corresponding characteristic axis of the instrument is obtained. m .
[0028] like Figure 5As shown, the steps for correcting the posture of the through-hole axis are as follows: when acquiring the image of the instrument, a calibration plate is used to expose the instrument together with the calibration plate to obtain a perspective image of the calibration plate, and then based on the physical image of the calibration plate and the exposure parameters of the imaging device (such as focal length, pixel spacing of the imaging plane and other parameters), a calibration method (such as Zhang Zhengyou calibration method, etc.) is used to calculate the distortion parameters of the calibration plate during imaging, that is, the distortion parameters of the instrument, and the posture of the instrument image is adjusted according to the distortion parameters, and then combined with the CMA-ES algorithm, the spatial posture of the through-hole axis is regained, which is the corrected posture of the through-hole axis.
[0029] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with this technology to understand the content of the present invention and implement it. They cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for positioning tool space posture based on depth regression, characterized in that: The following steps are involved: Acquire images of the instrument at two random angles during the operation, extract the characteristic contour of the instrument based on the image, use a deep neural network to obtain the simulated axis projection of at least one through hole on the instrument, and construct a three-dimensional projection plane based on the simulated axis projection; the three-dimensional projection planes formed by the instrument images at two angles according to the above steps intersect to obtain the spatial pose of the through-hole axis; according to the characteristic contour information of the instrument, use the relevant algorithm to correct the pose of the through-hole axis, that is, to obtain the spatial pose of the instrument.
2. The method for positioning tool space posture based on depth regression according to claim 1, characterized in that: The method for extracting the characteristic contour of the instrument is: First, the target detection network is used to preliminarily determine the instrument and feature imaging areas in the image, and then semantic segmentation is performed in the area to obtain the boundary contours of each area; the training data of the target detection network is the synthetic image, and the training label is the minimum bounding box of the instrument feature and through-hole imaging area.
3. The method for positioning tool space posture based on depth regression according to claim 1, characterized in that: The method for obtaining the simulated axis projection of at least one through hole on the instrument is: A simulated instrument image is generated based on the extracted characteristic contour of the instrument, and these simulated instrument images are stored as a predetermined image database, each simulated instrument image is associated with the orientation of the digital model of the surgical instrument relative to the imaging plane when it is simulated; the predetermined image database is used to train a neural network model, and the trained neural network model processes a through hole image and a relative position image of at least one characteristic through hole to determine the orientation of the instrument relative to the imaging plane when the instrument image is imaged.
4. The method for positioning tool space posture based on depth regression according to claim 1, characterized in that: The method for obtaining the simulated axis projection of at least one through hole on the instrument is: A simulated instrument image is generated based on the extracted characteristic contour of the instrument, and these simulated instrument images are stored as a predetermined image database, each simulated instrument image is associated with the orientation of the digital model of the surgical instrument relative to the imaging plane when it is simulated; the image data of the predetermined image database and / or historical images are divided into multiple sub-training data sets, and a neural network model is trained based on these sub-training data sets respectively, and the trained neural network model processes the through hole image and relative position image of at least one characteristic through hole to determine the orientation of the instrument relative to the imaging plane when the instrument image is imaged.
5. The method for positioning tool space posture based on depth regression according to claim 4, characterized in that: The historical images are historical images of the instrument taken during past surgeries, and the operator has determined the orientation data of the instrument relative to the imaging plane. These historical images and their corresponding orientation data constitute the image data of the historical images.
6. The method for positioning tool space posture based on depth regression according to claim 1, characterized in that: The method to obtain the spatial position of the through hole axis is: The data information of the two three-dimensional projection planes is determined by the projection plane information pre-set in a certain position sample in the training set obtained by searching in the neural network model. When the projection plane information corresponding to the two image shooting positions is determined, the spatial posture of the through-hole axis is calculated according to the principle of double-plane intersection, that is, the corresponding characteristic axis of the instrument is obtained.
7. The method for positioning tool space posture based on depth regression according to claim 1, characterized in that: The method to correct the posture of the through hole axis is: When acquiring the image of the instrument, a calibration plate is used to expose the instrument together with the calibration plate to obtain a perspective image of the calibration plate. Based on the physical image of the calibration plate and the exposure parameters of the imaging device, the calibration method is used to calculate the distortion parameters of the calibration plate during imaging, that is, the distortion parameters of the instrument. The posture of the instrument image is adjusted according to the distortion parameters, and then combined with the CMA-ES algorithm, the spatial posture of the through-hole axis is regained, which is the corrected posture of the through-hole axis.
