A puncture device guiding method and device

Using mixed reality technology to perform three-dimensional reconstruction and path planning of two-dimensional images in the puncture system solves the problem of difficulty in accurately obtaining the positional relationship between the puncture needle and the lesion during surgery, enables precise puncture operations, and reduces surgical risks.

CN117338419BActive Publication Date: 2024-10-11苏州盛星医疗器械有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311283661.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2024-10-11
Estimated Expiration
2043-09-28

AI Technical Summary

Technical Problem

During the operation, it is difficult for doctors to accurately obtain the positional relationship between the puncture needle and the lesion, resulting in multiple punctures and potential complications. There is a lack of standardized puncture biopsy methods and precise puncture path planning.

Method used

Through mixed reality technology, the image acquisition part, virtual imaging part and server in the puncture system are used to pre-process and 3D reconstruct the 2D image, generate a virtual 3D image, and determine the puncture path and strategy based on the position of the virtual puncture part to guide The puncture operator performs precise puncture.

Benefits of technology

It assists the puncture operator to achieve precise puncture operations, reduces the operator's operating pressure, and reduces the number of punctures and the risk of complications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117338419B_ABST
    Figure CN117338419B_ABST
Patent Text Reader

Abstract

The present application relates to the field of medical image processing technology, which is a surgical navigation technology, and specifically to a puncture equipment guidance method and device. In the technical solution provided in the embodiment of the present application, by collecting real-time images of the target to be punctured, and by performing three-dimensional reconstruction and coordinate system conversion on the real-time image, the reconstructed three-dimensional model and the position of the target to be punctured in the real scene are imaged as a three-dimensional model, and the puncture path and puncture strategy are generated based on the imaged three-dimensional model, and the puncture operator is guided to perform the puncture operation according to the puncture path and puncture strategy. The technical solution provided in the embodiment of the present application can assist the puncture operator in performing precise puncture operations and reduce the operating pressure of the puncture operator.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of medical image processing, which is a surgical navigation technology, and specifically to a puncture equipment guidance method and device. Background Art

[0002] In the field of modern medical technology, in order to clearly understand the position of surgical instruments relative to the patient's anatomical structure during surgery, multiple real-time CT techniques are generally used to obtain the surgical situation. This has high requirements for equipment and operation and is difficult. In order to obtain the location, depth, angle information, etc. of the puncture during surgery, it is necessary to interrupt multiple scans for observation. The doctor must also switch the field of view back and forth between the real surgical site and the image, which is bound to bring additional burden to the doctor, affect the progress of the operation, and increase the pain of the patient. Summary of the invention

[0003] In order to solve the problems existing in the prior art, the embodiments of the present application provide a puncture equipment guidance method and device, which virtually constructs the target object to be operated on through mixed reality technology and projects it relative to the physical target in the real scene, and formulates a corresponding puncture strategy to guide the operator to perform precise puncture operations.

[0004] In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0005] In a first aspect, a puncture device guiding method is provided, which is applied to a puncture system, wherein the puncture system includes a puncture unit, an image acquisition unit, a virtual imaging unit and a server; the image acquisition unit is used to acquire a two-dimensional image of a target object, wherein the two-dimensional image includes any one of an ultrasound image, an MRI image and a CT image; the virtual imaging unit is used to perform first-perspective imaging of the received image and acquire a real-time image in a target area, wherein the target area includes a location of the puncture unit; the method is applied to the server, and the method includes: receiving the two-dimensional image, performing image preprocessing and segmentation on the two-dimensional image, and converting the two-dimensional image into a three-dimensional volume data field; The method comprises the steps of: realizing three-dimensional reconstruction, obtaining a virtual three-dimensional image of the target object, wherein the two-dimensional image includes a plurality of puncture marking points; converting the virtual three-dimensional image coordinate system to the virtual imaging part coordinate system, and imaging the virtual three-dimensional image in the virtual imaging part at a first perspective; acquiring a real-time image of the puncture part, and converting the real-time image through a three-dimensional volume data field to realize three-dimensional reconstruction, obtaining a virtual puncture part associated with the puncture part, and converting the virtual puncture part to the puncture part; determining a puncture path based on the positions of the plurality of puncture marking points and the position of the virtual puncture part, and imaging the puncture path in the virtual imaging part at a first perspective.

[0006] Preferably, the image preprocessing and segmenting of the two-dimensional image includes: segmenting using a Canny edge detection algorithm, and marking and extracting effective parts.

[0007] Preferably, the three-dimensional reconstruction is achieved by converting the two-dimensional image into a three-dimensional volume data field to obtain a virtual three-dimensional image of the target object, including: acquiring at least two of the two-dimensional images to form a two-dimensional sequence image, extracting a three-dimensional volume data field in a discrete state from the two-dimensional sequence image, and acquiring a plurality of voxels and initial values ​​of vertices corresponding to the plurality of voxels based on the three-dimensional volume data field; establishing an optical illumination model to simulate light illumination into a preset three-dimensional space, starting with each pixel in the preset three-dimensional space and collecting three-dimensional information at continuously changing time intervals; acquiring the colors of a plurality of voxels close to the nearest sampling points of incident light of the optical illumination model and their corresponding opacity, and estimating the state of each sampling point; and determining the brightness and opacity of each image element and their opacity through the arrangement of the three-dimensional space from left to right and from right to left; and obtaining a virtual three-dimensional image by calculating the value of each pixel.

[0008] Preferably, the method of acquiring multiple voxels and initial values ​​of vertices corresponding to the multiple voxels based on the three-dimensional volume data field includes: layering the three-dimensional volume data field, extracting data information in two adjacent layers of images and constructing a voxel model, wherein the voxel model is a cube structure with eight fixed points; and based on the voxel model, solving the function value of each data point therein respectively.

[0009] Preferably, the conversion from the virtual three-dimensional image coordinate system to the virtual imaging unit coordinate system and imaging the virtual three-dimensional image in the virtual imaging unit at a first perspective includes: obtaining a real-time two-dimensional image of the target object, and obtaining two-dimensional image coordinates of the real-time two-dimensional image in a real coordinate system, using the image coordinates as target coordinates, obtaining depth information of the real-time two-dimensional image, and projecting the virtual three-dimensional image in space based on the target coordinates and the depth information.

[0010] Preferably, obtaining the two-dimensional image coordinates of the real-time two-dimensional image in the real coordinate system includes: identifying the real-time two-dimensional image based on YOLOv3 to obtain a first target image of the target object and the two-dimensional image coordinates of the first target image, wherein the first target image is a two-dimensional image.

[0011] Preferably, converting the virtual puncture part to the puncture part includes: identifying the real-time two-dimensional image based on YOLOv3 to obtain a second target image about the puncture part, and the two-dimensional image coordinates of the second target image, the second target image is a two-dimensional image; and obtaining the two-dimensional image coordinates of the second target image in the real coordinate system, using the image coordinates as the target coordinates, obtaining the depth information of the second target image, and projecting the virtual puncture part in space to the puncture part based on the target coordinates and the depth information.

[0012] Preferably, the puncture path is determined based on the positions of the multiple puncture marking points and the position of the virtual puncture part, including: determining multiple puncture paths based on the current coordinates of the virtual puncture part and the coordinates of the puncture marking points and representing them with different colors, determining the optimal puncture path among the multiple puncture paths and highlighting it, generating a puncture strategy based on the optimal puncture path, and guiding the virtual puncture part to move based on the puncture strategy.

[0013] Preferably, the generating of a puncture strategy based on the optimal puncture path, and guiding the movement of the virtual puncture part based on the puncture strategy, include: obtaining the real-time puncture coordinates of the virtual puncture part, and determining the relative distance between the virtual puncture part and the puncture mark point based on the real-time puncture coordinates, determining the moving distance based on the relative distance, and guiding with different colors according to different moving distances; and obtaining the target puncture angle based on the label information of the puncture mark point, and obtaining the real-time posture data of the virtual puncture part, and determining the posture adjustment information based on the target puncture angle and the real-time posture data.

[0014] In a second aspect, a puncture device guiding device is provided, the device comprising: an image generation module, for receiving a two-dimensional image, performing image preprocessing and segmentation on the two-dimensional image, and performing three-dimensional reconstruction on the two-dimensional image by converting a three-dimensional volume data field to obtain a virtual three-dimensional image of the target object, wherein the two-dimensional image includes a plurality of puncture marking points; an imaging module, for converting from the virtual three-dimensional image coordinate system to the virtual imaging part coordinate system, and imaging the virtual three-dimensional image in the virtual imaging part at a first perspective; a virtual puncture part construction module, for acquiring a real-time image of the puncture part, and performing three-dimensional reconstruction on the real-time image by converting the three-dimensional volume data field to obtain a virtual puncture part associated with the puncture part, and converting the virtual puncture part to the puncture part; a puncture path determination module, for determining a puncture path based on the positions of the plurality of puncture marking points and the position of the virtual puncture part, and imaging the puncture path in the virtual imaging part at a first perspective.

[0015] According to a third aspect, a terminal device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-described methods when executing the computer program.

[0016] According to a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of the above items is implemented.

[0017] The technical solution provided in the embodiment of the present application is applied to the puncture system, by collecting the real-time image of the target to be punctured, and by performing three-dimensional reconstruction and coordinate system conversion on the real-time image, the reconstructed three-dimensional model is imaged with the position of the target to be punctured in the real scene, and the puncture path and puncture strategy are generated based on the imaged three-dimensional model, and the puncture operator is guided to perform the puncture operation according to the puncture path and puncture strategy. The technical solution provided in the embodiment of the present application can assist the puncture operator to perform accurate puncture operations and reduce the operating pressure of the puncture operator. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] The methods, systems and / or programs in the accompanying drawings will be further described according to exemplary embodiments. These exemplary embodiments will be described in detail with reference to the drawings. These exemplary embodiments are non-limiting exemplary embodiments, wherein example numbers represent similar mechanisms in the various views of the accompanying drawings.

[0020] Figure 1 It is a schematic diagram of the structure of the puncture system provided in an embodiment of the present application.

[0021] Figure 2 It is a flow chart of the puncture device guiding method provided in an embodiment of the present application.

[0022] Figure 3 It is a structural diagram of the puncture equipment guiding device provided in an embodiment of the present application.

[0023] Figure 4 It is a schematic diagram of the structure of the puncture device guiding device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to better understand the above technical scheme, the technical scheme of the present application is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present application and the specific features in the embodiments are detailed descriptions of the technical scheme of the present application, rather than limitations on the technical scheme of the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments can be combined with each other.

[0025] In the following detailed description, numerous specific details are set forth by way of example in order to provide a comprehensive understanding of the relevant guidance. However, it will be apparent to those skilled in the art that the present application may be practiced without these details. In other cases, well-known methods, procedures, systems, compositions and / or circuits have been described at a relatively high level, without detail, in order to avoid unnecessarily obscuring aspects of the present application.

[0026] Flowcharts are used in the present application to illustrate the execution process performed by the system according to the embodiment of the present application. It should be clearly understood that the execution process of the flowchart may not be performed in order. On the contrary, these execution processes may be performed in reverse order or simultaneously. In addition, at least one other execution process may be added to the flowchart. One or more execution processes may be deleted from the flowchart.

[0027] Before further describing the embodiments of the present invention in detail, the nouns and terms involved in the embodiments of the present invention are described. The nouns and terms involved in the embodiments of the present invention are subject to the following interpretations.

[0028] (1) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.

[0029] (2) Based on is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.

[0030] In actual medical scenarios, doctors' operations of puncture biopsy operations rely heavily on years of experience, which directly affects the total time of the operation, the success rate of obtaining lesion tissue, and the damage to the patient's body. At the same time, errors at the millimeter or centimeter level may occur during the operation due to different operators or different equipment models. For interns who lack surgical operation experience, there is a high probability that the patient will be repeatedly punctured due to failure to reach the target point of the lesion and improper selection of the puncture path, and medical students almost never get the opportunity to operate personally during their internship. Failure to obtain lesion tissue after multiple punctures will lead to surgical failure, and repeated punctures will lead to a high probability of complications, including but not limited to: hematoma, site infection, hematuria and other symptoms.

[0031] Therefore, although puncture biopsy has become the most commonly used method for disease diagnosis and identification, it still faces many difficulties in the actual operation process:

[0032] (1) Lack of a standardized biopsy method: Performing a biopsy requires extensive experience, and medical interns need to spend a lot of time learning it, which is a challenge for them and restricts the dissemination and development of the procedure.

[0033] (2) Lack of accurate surgical puncture path planning: During the operation, the doctor can only observe through images and plan the puncture needle path based on his previous experience. He cannot judge whether the needle insertion path is reasonable or whether it poses risks to the patient.

[0034] (3) There is no way to accurately locate the puncture needle and the lesion: During the puncture process, the doctor cannot accurately obtain the positional relationship between the lesion and the puncture needle, and can only use multiple sampling to obtain the lesion tissue, which causes harm to the patient and may lead to surgical failure in severe cases.

[0035] Therefore, in view of the technical problems in the prior art, it is necessary to provide an auxiliary method that can guide the puncture operator to perform accurate puncture, wherein the auxiliary method is applied to the puncture system. Figure 1 The puncture system includes a puncture part, an image acquisition part, a virtual imaging part and a server, wherein the image acquisition part is used to acquire a two-dimensional image of a target image, wherein the two-dimensional image includes any one of an ultrasound image, an MRI image and a CT image, and in the embodiment of the present application, the two-dimensional image is a CT image; the virtual imaging part is used to perform first-perspective imaging of the received image and acquire a real-time image in a target area, wherein the target area includes the location of the puncture part, wherein the virtual imaging part includes an imaging screen and a camera, wherein the imaging screen is used to perform first-perspective imaging of the received image, and the camera is used to acquire a real-time image in the target area.

[0036] Specifically, the virtual imaging unit is a wearable device, which may be in the form of a helmet, a camera, etc. In the embodiment of the present application, a helmet is preferred, in which a screen is provided for imaging, and a camera is provided for collecting real-time images.

[0037] The server is used for the other party's puncture device to guide the method for execution.

[0038] See also Figure 2 , with respect to the puncture device guiding method, the specific steps include:

[0039] Step S210: receiving the two-dimensional image, performing image preprocessing and segmentation on the two-dimensional image, and performing three-dimensional reconstruction on the two-dimensional image by converting the three-dimensional volume data field to obtain a virtual three-dimensional image of the target object, wherein the two-dimensional image includes a plurality of puncture marking points.

[0040] The two-dimensional image in the embodiment of the present application is a two-dimensional image acquired by an image acquisition unit for a target object, and the acquisition method thereof is performed by CT imaging in the prior art.

[0041] This process mainly reconstructs the target object in three dimensions and converts the two-dimensional image data into a three-dimensional image. Before converting the two-dimensional image, the two-dimensional image needs to be preprocessed and segmented to achieve noise reduction and background image segmentation. For this process, the Canny edge detection algorithm is used for segmentation, and the effective part is marked and extracted. The specific processing process is as follows:

[0042] First, the image is subjected to noise reduction processing to make the edge contours of each tissue and organ smoother, thereby enhancing the effect of edge extraction;

[0043] The gradient size and direction of the edge point are calculated according to the formula. Assuming that the coordinate value of the pixel point is (x, y), the gradient of the point in the x direction is expressed as Gx(x, y), and in the y direction can be expressed as Gy(x, y). The calculation formula of the amplitude M(x, y) and the edge direction θ of the point is as follows:

[0044]

[0045] Use non-maximum value to suppress the gradient of the previous step to obtain edge pixels on the image;

[0046] Set the threshold and filter the pixels according to the high and low thresholds to determine whether they are edge pixels. If so, save them; if not, discard them.

[0047] Weak edges around the target area of ​​the image are processed. First, it is necessary to determine whether there is a strong edge around the edge. If so, the weak edge can be connected with the surrounding strong edges, and the pixel point can be saved and determined as an edge pixel; if not, it can be removed.

[0048] The two-dimensional image is processed by the Canny operator to obtain a clear image, and the three-dimensional data field is converted to achieve three-dimensional reconstruction for the clear image to obtain a virtual three-dimensional image of the target object. The process of three-dimensional reconstruction forms a two-dimensional sequence image by acquiring at least two of the two-dimensional images, and extracts a three-dimensional data field in a discrete state from the two-dimensional sequence image, and obtains multiple voxels and initial values ​​of the vertices corresponding to the multiple voxels based on the three-dimensional data field; establishes an optical irradiation model to simulate light irradiation to a preset three-dimensional space, and collects three-dimensional information at a constantly changing time interval starting from each pixel in the preset three-dimensional space; obtains the colors of multiple voxels close to the nearest multiple sampling points of the incident light of the optical irradiation model and their corresponding opacity, and estimates the state of each sampling point; and determines the brightness and opacity of each image element and their opacity through the arrangement of the three-dimensional space from left to right and from right to left; obtains a virtual three-dimensional image by calculating the value of each pixel.

[0049] Specifically, in order to obtain multiple voxels and the initial values ​​of the vertices corresponding to the multiple voxels, the three-dimensional volume data field is layered, the data information in two adjacent layers of images is extracted and a voxel model is constructed. The voxel model is a cube structure with eight fixed points. Based on the voxel model, the function value of each data point is solved respectively.

[0050] Specifically, for this process, by layering the three-dimensional discrete regular data field, useful information can be obtained from the two-dimensional medical image data, thus providing a reliable basis for subsequent processing; by comparing the data information of two adjacent layers, it can be found that a group of voxels with different shapes are established on the basis of a group of 8 sampling points. The shape of these voxel models is a cube, and the 8 vertices of the model are 8 sampling points. A complete voxel model is formed through the above sampling points; by comparing the function value of each angle with the corresponding predetermined eigenvalue c, a complete voxel model map is established; by analyzing the voxel model map, the same number of elements parallel to the isosurface can be found; the three-dimensional linear interpolation method is used to determine the points that intersect the isosurface; the central difference method is used to calculate the normal matrix of each voxel, and the linear interpolation technology is used to determine the normal of the three-dimensional surface of each voxel; by calculating the position and azimuth of each facet, the three-dimensional reconstruction of the model is completed.

[0051] Specifically, the state table of the voxels in the embodiment of the present application shows the positional relationship between the eight vertices in the voxel and the isosurface, and the relationship can be used to determine which voxels intersect with the isosurface. In the voxel model, it is assumed that the data fields between adjacent voxels show continuous changes. In this case, a threshold is set. When the function values ​​of the two vertices of an edge of the voxel are respectively greater than the threshold of the isosurface and less than the threshold of the isosurface, the edge must intersect with the isosurface. It can be further known that the voxel intersects with the isosurface; otherwise, they do not intersect.

[0052] By scanning all the pixels in the image, it can be found that the grayscale values ​​of all the pixels in the data set are within a certain range. By adjusting the grayscale value, it is possible to determine which pixel will intersect with it. Specifically, if the grayscale value of a pixel is higher or lower than the grayscale value of another pixel, then it will inevitably intersect with the other pixel. By comparing the grayscale values ​​of two pixels, the specific position coordinates of the point in space can be obtained.

[0053] The above processing realizes the reconstruction of the three-dimensional model. However, the reconstructed three-dimensional model is only image data of a single color. In order to make the expression of the three-dimensional model more comprehensive, the three-dimensional model needs to be processed to obtain a virtual three-dimensional image with complete image information.

[0054] Specifically, in order to convert the three-dimensional model into a virtual three-dimensional image, an optical illumination model is used to simulate the illumination of light into a preset three-dimensional space, wherein the preset three-dimensional space corresponds to the real three-dimensional space. The three-dimensional model in the three-dimensional space is simulatedly illuminated by this optical illumination model, and three-dimensional information is collected at constantly changing time intervals. The virtual three-dimensional image is constructed by calculating the value of each pixel through the degree of darkness and transmittance of each image element.

[0055] Specifically, the optical illumination model includes a light absorption model and a light emission model, wherein the light absorption model is expressed by the following formula:

[0056] Among them, I(s) represents the light intensity, s represents the length, and I 0 Indicates the initial light intensity.

[0057] The light emission model is expressed by the following formula:

[0058] Where g(t) represents the light source attenuation term.

[0059] The overall expression of the optical illumination model is obtained through the above two models:

[0060]

[0061] In the embodiment of the present application, an optical model is established to convert the input signal into observable pixels. This process includes the following steps:

[0062] First, assign different color values ​​H and opacity values ​​o to each voxel. If o = 0, it means that the voxel is completely transparent, and if o = 1, it means that it is completely opaque. Set the value before and after the light passes through the voxel respectively. The color value before the light passes through is H in , the opacity value is a in , the color value after passing through is H out , the opacity value is 0 out , the sampling point is q 1 ,q 2 ,…,q n .

[0063] The light is synthesized from back to front as follows: H out =H(q i )o(q i )+H in (1-o in ), where H(q 0 )=H background ,o(q 0 )=1, where q i represents the i-th pixel, q 0 is the initial pixel.

[0064] The synthesis of light from front to back is:

[0065] H out =H in +(1-o in )H(q i )′,o out =o in +o(q i )(1-o in ).

[0066] In the image synthesis from front to back, the opacity value will slowly increase. When the opacity value is close to 1, the surface image slowly becomes completely opaque, and no more accumulation should be done at this time. Compared with the image synthesis method from back to front, the image synthesis method from front to back effectively reduces redundant calculations and is faster, so it is used more.

[0067] Through the above processing, a three-dimensional virtual image can be obtained based on the two-dimensional image.

[0068] Step S220: converting the virtual three-dimensional image coordinate system into the virtual imaging unit coordinate system, and imaging the virtual three-dimensional image in the virtual imaging unit at a first viewing angle.

[0069] Through step S210, a virtual three-dimensional image of the two-dimensional image can be obtained, but the virtual three-dimensional image is only a three-dimensional expression of the two-dimensional image, and is not associated with the target object in the real space. Therefore, in order to achieve the association between the target object and the virtual three-dimensional image and the real space, the virtual three-dimensional image is imaged in the virtual imaging unit at the first perspective, that is, the user can see the corresponding expression of the virtual three-dimensional image of the target object in the real space through the virtual imaging unit.

[0070] Specifically, this process is carried out by means of coordinate transformation, and the specific process is: obtaining a real-time two-dimensional image of the target object, and obtaining the two-dimensional image coordinates of the real-time two-dimensional image in the real coordinate system, using the image coordinates as the target coordinates, obtaining the depth information of the real-time two-dimensional image, and projecting the virtual three-dimensional image in space based on the target coordinates and the depth information.

[0071] In order to obtain the two-dimensional image coordinates of the real-time two-dimensional image in the real coordinate system, the real-time two-dimensional image is recognized based on YOLOv3 to obtain a first target image of the target object and the two-dimensional image coordinates of the first target image, where the first target image is a two-dimensional image.

[0072] Specifically, YOLOv3 can classify objects in an image, that is, it can obtain a first target image by determining an image related to a target object in a two-dimensional image and segmenting it, and can also determine the two-dimensional coordinate information in the first target image. Because YOLOv3 is an existing known machine vision algorithm, it will not be described in detail in the embodiments of this application.

[0073] Step S230: Acquire a real-time image of the puncture site, and transform the real-time image through a three-dimensional volume data field to achieve three-dimensional reconstruction, obtain a virtual puncture site associated with the puncture site, and transform the virtual puncture site to the puncture site.

[0074] In the embodiment of the present application, this step is used to map the physical puncture site in the real scene to the virtual three-dimensional image in step S220.

[0075] Among them, the method adopted for this process is based on the three-dimensional model reconstruction and virtual three-dimensional image processing scheme in step S210, and the processed image in step S210 is converted from a two-dimensional image related to the target object to an image obtained by image acquisition of the puncture part. It will not be repeated in the embodiment of the present application. The image acquisition of the puncture part is based on the camera set in the virtual imaging part.

[0076] Step S240: Determine a puncture path based on the positions of the plurality of puncture marking points and the position of the virtual puncture part, and image the puncture path at the virtual imaging part at a first viewing angle.

[0077] In an embodiment of the present application, the puncture path is obtained through the following process: multiple puncture paths are determined based on the current coordinates of the virtual puncture part and the coordinates of the puncture mark point and represented by different colors, the optimal puncture path is determined among the multiple puncture paths and highlighted, a puncture strategy is generated based on the optimal puncture path, and the virtual puncture part is guided to move based on the puncture strategy.

[0078] Specifically, the optimal puncture path includes two processing logics. The first processing logic is to avoid organ damage that may be caused during the path, because the path of the puncture biopsy operation may pass through the ribs and enter the abdominal cavity, and there are many tissues and organs in the abdominal cavity. If some important tissues or organs are hit by the puncture needle, it will cause irreversible damage to the human body. Hitting only the lesion site is the primary constraint that must be followed.

[0079] First, multiple paths need to be formulated, and multiple optimal paths are determined based on the multiple paths. Then, the path that meets the constraints is selected from the optimal paths. When multiple paths are finally selected, the optimal path among the multiple paths is determined as the final path.

[0080] The determination of the path and the selection of one path from multiple paths as the final path are determined based on the Chebyshev distance, which is specifically expressed based on the following formula:

[0081] D(p,q)=max(|p i -q i |), where p and q are the puncture point and the puncture mark point, respectively, and their coordinates are p i and q i .

[0082] For the acquired path, the path selection is performed based on the constraints, wherein the constraints are divided into bone avoidance constraints, puncture needle reachable operating range constraints and puncture angle constraints based on the organs and tissues passed by the puncture biopsy.

[0083] Among them, the constraints for bone avoidance are:

[0084] The set of all points on the puncture surface is P. Any point O(x, y, z) in the set P is related to the target point T(x 0 ,y 0 ,z 0 ) can determine the direction vector of the puncture path as J(i,j,k):

[0085]

[0086] Search the nodes on the path one by one from point O along the direction of direction vector J. If the next point is not a bone, the search process continues; if the next point is a bone, stop searching and continue to the next node. If the search process continues to the target node, it proves that there is no bone blocking the path and the path meets the bone obstacle avoidance constraint.

[0087] The constraints of the accessible operating range of the puncture needle are:

[0088] Assume that the set of all points on the puncture surface is P, and the distance between any point O(x, y, z) in the set P and the target point where the center of the puncture mark point is located is d:

[0089]

[0090] The constraints of the puncture angle are:

[0091] In order to calculate the optimal needle insertion path and surface puncture angle, it is necessary to first calculate the surface normal vector passing through the actual intersection of the puncture path and the puncture surface, and then calculate the corresponding needle insertion angle based on the direction vector of the path and the two surface normal vectors.

[0092] The plane equation for the puncture surface is:

[0093] a·(xx 1 )+b·(yy 1 )+c·(zz 1 )=0, where N(a, b, c) is the puncture needle entry point p(x 1 ,y 1 ,z 1 ) at the point, there is a 2 +b 2 +c 2 =1.

[0094] The corresponding direction vector is N(a, b, c). Combined with the direction vector J(i, j, k) of the puncture path shown in the above formula, the angle between the path through the puncture point and the normal vector of the skin plane is:

[0095] Therefore, the angle between the path at the puncture point and the puncture plane should be α=90°-α'.

[0096] The final puncture path is determined by the above distance calculation and constraint conditions, and different colors are used to indicate different moving distances during the puncture process in the embodiment of the present application. For example, when the distance is within one millimeter, it is green, one to two millimeters is yellow, and vice versa, it is red. This setting method can guide the user to move the puncture part so that the end is close to the needle entry point of the preset path. The target puncture angle is obtained based on the label information of the puncture mark point, and the real-time posture data of the virtual puncture part is obtained, and the posture adjustment information is determined based on the target puncture angle and the real-time posture data.

[0097] See also Figure 3 , a puncture device guiding device 300 is provided, wherein the device comprises:

[0098] The image generation module 310 is used to receive a two-dimensional image, perform image preprocessing and segmentation on the two-dimensional image, and perform three-dimensional reconstruction on the two-dimensional image by converting a three-dimensional volume data field to obtain a virtual three-dimensional image of the target object, wherein the two-dimensional image includes a plurality of puncture marking points;

[0099] An imaging module 320 converts the virtual three-dimensional image coordinate system into the virtual imaging portion coordinate system, and images the virtual three-dimensional image in the virtual imaging portion at a first viewing angle;

[0100] A virtual puncture part construction module 330 acquires a real-time image of the puncture part, and converts the real-time image through a three-dimensional volume data field to realize three-dimensional reconstruction, obtains a virtual puncture part associated with the puncture part, and converts the virtual puncture part to the puncture part;

[0101] The puncture path determination module 340 determines the puncture path based on the positions of the plurality of puncture marking points and the position of the virtual puncture part, and images the puncture path at the virtual imaging part at a first viewing angle.

[0102] See also Figure 4, the above method can also be integrated into the provided puncture device guidance device 400, and in view of the fact that the device may have relatively large differences due to different configurations or performances, it can include one or more processors 401 and memory 402, and the memory 402 can store one or more storage applications or data. Among them, the memory 402 can be a temporary storage or a permanent storage. The application stored in the memory 402 can include one or more modules (not shown in the figure), and each module can include a series of computer executable instructions in the puncture device guidance device. Furthermore, the processor 401 can be configured to communicate with the memory 402, and the puncture device guidance device executes a series of computer executable instructions in the memory 402. The puncture device guidance device can also include one or more power supplies 403, one or more wired or wireless network interfaces 304, one or more input / output interfaces 305, one or more keyboards 306, etc.

[0103] In a specific embodiment, the puncture device guiding device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions in the puncture device guiding device, and the one or more programs configured to be executed by one or more processors include computer executable instructions for performing the following:

[0104] receiving the two-dimensional image, performing image preprocessing and segmentation on the two-dimensional image, and performing three-dimensional reconstruction on the two-dimensional image by converting the three-dimensional volume data field to obtain a virtual three-dimensional image of the target object, wherein the two-dimensional image includes a plurality of puncture marking points;

[0105] Based on the conversion from the virtual three-dimensional image coordinate system to the virtual imaging unit coordinate system, the virtual three-dimensional image is imaged in the virtual imaging unit at a first viewing angle;

[0106] Acquire a real-time image of the puncture site, and transform the real-time image through a three-dimensional volume data field to realize three-dimensional reconstruction, obtain a virtual puncture site associated with the puncture site, and transform the virtual puncture site to the puncture site;

[0107] A puncture path is determined based on the positions of the plurality of puncture marking points and the position of the virtual puncture part, and the puncture path is imaged at the virtual imaging part at a first viewing angle.

[0108] The following is a detailed introduction to the various components of the processor:

[0109] In this embodiment, the processor is an application specific integrated circuit (ASIC), or is configured to implement one or more integrated circuits of the embodiments of the present application, such as one or more microprocessors (digital signal processors, DSP), or one or more field programmable gate arrays (field programmable gate arrays, FPGA).

[0110] Optionally, the processor may execute various functions by running or executing a software program stored in the memory and calling data stored in the memory, such as executing the above-mentioned Figure 1 The method shown.

[0111] In a specific implementation, as an embodiment, the processor may include one or more microprocessors.

[0112] Among them, the memory is used to store the software program that executes the solution of the present application, and the execution is controlled by the processor. The specific implementation method can refer to the above method embodiment and will not be repeated here.

[0113] Optionally, the memory may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may be integrated with the processor, or may exist independently and be coupled to the processing unit through the interface circuit of the processor, and the embodiments of the present application do not specifically limit this.

[0114] It should be noted that the structure of the processor shown in this embodiment does not constitute a limitation on the device, and the actual device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0115] In addition, the technical effects of the processor can refer to the technical effects of the method described in the above method embodiment, which will not be repeated here.

[0116] It should be understood that the processor in the embodiments of the present application may be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0117] It should also be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0118] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0119] In this application, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0120] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0121] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0122] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0123] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0124] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0125] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0126] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks or optical disks.

[0127] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A puncture device guiding method, characterized in that: Applied to a puncture system, the puncture system comprises a puncture unit, an image acquisition unit, a virtual imaging unit and a server; the image acquisition unit is used to acquire a two-dimensional image of a target object, the two-dimensional image comprises any one of an ultrasound image, an MRI image and a CT image; the virtual imaging unit is used to perform first-perspective imaging of the received image and acquire a real-time image in a target area, the target area includes the location of the puncture unit; The method is applied to the server, and the method comprises: receiving the two-dimensional image, performing image preprocessing and segmentation on the two-dimensional image, and performing three-dimensional reconstruction on the two-dimensional image by converting the three-dimensional volume data field to obtain a virtual three-dimensional image of the target object, wherein the two-dimensional image includes a plurality of puncture marking points; The image preprocessing and segmentation of the two-dimensional image includes: segmentation using the Canny edge detection algorithm, marking and extracting the effective part; Assuming that the coordinate value of the pixel point is (x, y), the gradient of the pixel point in the x direction is expressed as Gx(x, y), and in the y direction is expressed as Gy(x, y). The calculation formula of the pixel point amplitude M(x, y) and the edge direction θ(x, y) is as follows: The gradient of the previous step is suppressed by non-maximum value to obtain edge pixels on the two-dimensional image; the pixels are screened according to high and low thresholds to determine whether they are edge pixels. If so, they are saved; if not, they are discarded; the weak edges around the target area of ​​the two-dimensional image are processed; first, it is determined whether there are strong edges around the weak edges. If so, the weak edges are connected with the surrounding strong edges, and the pixels are saved and determined as edge pixels; if not, the pixels are removed; The method of converting the two-dimensional image into a three-dimensional volume data field to achieve three-dimensional reconstruction to obtain a virtual three-dimensional image of the target object includes: acquiring at least two of the two-dimensional images to form a two-dimensional sequence image, extracting a three-dimensional volume data field in a discrete state from the two-dimensional sequence image, and acquiring multiple voxels and initial values ​​of vertices corresponding to the multiple voxels based on the three-dimensional volume data field; establishing an optical irradiation model to simulate light irradiation to a preset three-dimensional space, starting with each pixel in the preset three-dimensional space, and collecting three-dimensional information at constantly changing time intervals; acquiring the colors of multiple voxels close to multiple sampling points of incident light of the optical irradiation model and their corresponding opacity, and estimating the state of each sampling point; and determining the brightness and opacity of each image element and their opacity through the arrangement of the three-dimensional space from left to right and from right to left; and obtaining a virtual three-dimensional image by calculating the value of each pixel point; The method of acquiring a plurality of voxels and initial values ​​of vertices corresponding to the plurality of voxels based on the three-dimensional volume data field comprises: stratifying the three-dimensional volume data field, extracting data information in two adjacent layers of images and constructing a voxel model, wherein the voxel model is a cube structure with eight fixed points; and solving the function value of each data point therein based on the voxel model; Based on the conversion from the virtual three-dimensional image coordinate system to the virtual imaging portion coordinate system, the virtual three-dimensional image is imaged in the virtual imaging portion at a first viewing angle; Acquire a real-time image of the puncture site, and transform the real-time image through a three-dimensional volume data field to realize three-dimensional reconstruction, obtain a virtual puncture site associated with the puncture site, and transform the virtual puncture site to the puncture site; Determine the puncture path based on the positions of the multiple puncture marking points and the position of the virtual puncture part, and image the puncture path in the virtual imaging part at a first perspective; the determination of the puncture path based on the positions of the multiple puncture marking points and the position of the virtual puncture part includes: determining multiple puncture paths based on the current coordinates of the virtual puncture part and the coordinates of the puncture marking points and representing them by different colors, determining the optimal puncture path among the multiple puncture paths and highlighting it, generating a puncture strategy based on the optimal puncture path, and guiding the virtual puncture part to move based on the puncture strategy, guiding the moving puncture part to make the end close to the needle entry point of the preset path; Determining the optimal puncture path among the plurality of puncture paths comprises: The obtained puncture path is selected based on the constraints, where the constraints are divided into bone avoidance constraints, puncture needle reachable operating range constraints and puncture angle constraints based on the organ tissues passed by the puncture biopsy; Among them, the constraints for bone avoidance are: The set of all points on the puncture surface is P. Any point O(x, y, z) in the set P and the target point T(x0, y0, z0) where the puncture mark center is located can determine the direction vector J(i, j, k) of the puncture path: Search the nodes on the puncture path one by one from point O along the direction of direction vector J. If the next point is not a bone, the search process continues; if the next point is a bone, stop searching and continue to the next node; if the search process continues to the target node, it proves that there is no bone blocking the puncture path, and the puncture path meets the bone obstacle avoidance constraint condition; The constraints of the accessible operating range of the puncture needle are: Assume that the set of all points on the puncture surface is P, and the distance between any point O(x, y, z) in the set P and the target point where the center of the puncture mark point is located is d: The constraints on the puncture angle are: In order to calculate the optimal puncture path and surface puncture angle, the surface normal vector passing through the intersection of the puncture path and the puncture surface substance is first calculated, and then the corresponding needle insertion angle is calculated based on the direction vector of the puncture path and the two surface normal vectors; The plane equation for the puncture surface is: a·(x-x1)+b·(y-y1)+c·(z-z1)=0, where N(a,b,c) is the normal vector of the puncture needle at the entry point p(x1,y1,z1) on the puncture surface, and a 2 +b 2 +c 2 =1; The direction vector of the puncture path is J(i,j,k), then the angle between the path through the puncture point and the normal vector of the skin plane is: Therefore, the angle between the path at the puncture point and the puncture plane should be α = 90°-α'; Among multiple puncture paths that satisfy the constraints, determining an optimal puncture path includes: The determination is based on the Chebyshev distance, which is specifically based on the following formula: D(p,q)=max(p i -q i ), where p and q are the puncture point and the puncture mark point, respectively, and their coordinates are p i and q i ; The method of generating a puncture strategy based on the optimal puncture path and guiding the virtual puncture part to move based on the puncture strategy includes: obtaining the real-time puncture coordinates of the virtual puncture part, determining the relative distance between the virtual puncture part and the puncture mark point based on the real-time puncture coordinates, determining the moving distance based on the relative distance, and guiding by using different colors according to different moving distances; and obtaining a target puncture angle based on the label information of the puncture mark point, obtaining the real-time posture data of the virtual puncture part, and determining the posture adjustment information based on the target puncture angle and the real-time posture data.

2. The puncture device guiding method according to claim 1, characterized in that: The conversion from the virtual three-dimensional image coordinate system to the virtual imaging unit coordinate system and imaging the virtual three-dimensional image in the virtual imaging unit at a first viewing angle includes: obtaining a real-time two-dimensional image of the target object, and obtaining two-dimensional image coordinates of the real-time two-dimensional image in a real coordinate system, using the image coordinates as target coordinates, obtaining depth information of the real-time two-dimensional image, and projecting the virtual three-dimensional image in space based on the target coordinates and the depth information.

3. The puncture device guiding method according to claim 2, characterized in that: The obtaining of the two-dimensional image coordinates of the real-time two-dimensional image in the real coordinate system includes: recognizing the real-time two-dimensional image based on YOLOv3 to obtain a first target image of the target object and the two-dimensional image coordinates of the first target image, wherein the first target image is a two-dimensional image.

4. The puncture device guiding method according to claim 3, characterized in that: The converting of the virtual puncture part to the puncture part includes: based on YOLOv3, the real-time two-dimensional image is recognized to obtain a second target image about the puncture part, and the two-dimensional image coordinates of the second target image, the second target image is a two-dimensional image; and the two-dimensional image coordinates of the second target image in the real coordinate system are obtained, the image coordinates are used as the target coordinates, the depth information of the second target image is obtained, and based on the target coordinates and the depth information, the virtual puncture part is converted and projected in space to the puncture part.

5. A puncture device guiding device, used to implement the method according to any one of claims 1 to 4, characterized in that: The device comprises: An image generation module is used to receive a two-dimensional image, perform image preprocessing and segmentation on the two-dimensional image, and perform three-dimensional reconstruction on the two-dimensional image by converting a three-dimensional volume data field to obtain a virtual three-dimensional image of the target object, wherein the two-dimensional image includes a plurality of puncture marking points; An imaging module, based on the conversion of the virtual three-dimensional image coordinate system into the virtual imaging portion coordinate system, and imaging the virtual three-dimensional image in the virtual imaging portion at a first viewing angle; A virtual puncture part construction module is used to obtain a real-time image of the puncture part, and to convert the real-time image through a three-dimensional volume data field to realize three-dimensional reconstruction, to obtain a virtual puncture part associated with the puncture part, and to convert the virtual puncture part to the puncture part; A puncture path determination module determines the puncture path based on the positions of the multiple puncture marking points and the position of the virtual puncture part, and images the puncture path in the virtual imaging part at a first perspective; the puncture path determination based on the positions of the multiple puncture marking points and the position of the virtual puncture part includes: determining multiple puncture paths based on the current coordinates of the virtual puncture part and the coordinates of the puncture marking points and representing them with different colors, determining the optimal puncture path among the multiple puncture paths and highlighting it, generating a puncture strategy based on the optimal puncture path, and guiding the virtual puncture part to move based on the puncture strategy, guiding the moving puncture part to make the end close to the needle entry point of the preset path.