Method, system, device, equipment and medium for determining a resection area
Through three-dimensional image processing technology, the centerline of blood vessels is extracted and classified based on the topological relationship of blood flow, and the disconnected blood vessel segments and resection areas in the liver are automatically identified, which solves the error problem caused by the complexity of blood vessel distribution in liver surgery and improves the accuracy of the surgery. sex and safety.
Patent Information
- Application Number
- CN202410777090.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-17
AI Technical Summary
Existing technology makes it difficult to accurately obtain the distribution of blood vessels in the organ during liver surgery, resulting in increased errors during manual disconnection, thereby increasing surgical risks.
By acquiring three-dimensional images, the blood vessel centerline is extracted and classified based on the topological relationship of blood flow, the severed blood vessel segment and its blood supply range are automatically identified, and the resection area is determined.
It improves the accuracy and safety of lesion resection, reduces the risk of intra-organ lesion resection, and achieves a more reasonable and complete resection operation.
Smart Images

Figure CN118351115B
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical image processing technology, and in particular to a method, system, device, equipment and medium for determining a resection area. Background Art
[0002] The blood vessels of organs in the human body are diverse and complex, especially those of organs like the liver. The segmentation method commonly used in clinical practice is usually unable to accurately obtain the distribution of blood vessels within the organs. In the process of manually disconnecting the relevant blood vessels, not only the workload of medical staff is increased, but there is also a certain resection error, which may lead to misjudgment of the scope of subsequent surgery and increase the risk of surgery. Summary of the invention
[0003] The embodiments of the present application provide a method, system, device, equipment and medium for determining a resection area, aiming to improve the accuracy of determining a resection area of a lesion in an organ, thereby improving the precision and safety of resecting the lesion.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The present application provides a method for determining a resection area, the method comprising:
[0006] Acquire a three-dimensional image; wherein the three-dimensional image includes: the organ where the lesion is located;
[0007] Iteratively refine the voxel points in the three-dimensional image based on the blood flow topological relationship in the organ to obtain a blood vessel centerline image corresponding to the organ;
[0008] Based on the positional relationship between each voxel point in the vascular centerline image, marking the vascular segment level of the vascular segment in the vascular centerline image to obtain a vascular centerline graded image;
[0009] Determine the severed blood vessel segment associated with the lesion based on the blood vessel segment level marked in the blood vessel centerline classification image and the region where the lesion is located in the organ;
[0010] In the three-dimensional image, the area corresponding to the target voxel point set belonging to the blood supply range of the severed blood vessel segment is determined as the resection area corresponding to the lesion in the organ.
[0011] The present application provides a system for determining a resection area, the system comprising:
[0012] An acquisition module is configured to acquire a three-dimensional image; wherein the three-dimensional image includes: an organ where the lesion is located;
[0013] A refinement module is configured to iteratively refine the voxel points in the three-dimensional image based on the blood flow topological relationship in the organ to obtain a blood vessel centerline image corresponding to the organ;
[0014] a marking module configured to mark the vessel segments in the vessel centerline image with vessel segment levels based on the positional relationship between the voxel points in the vessel centerline image, so as to obtain a vessel centerline graded image;
[0015] A determination module, configured to determine the severed blood vessel segment associated with the lesion based on the blood vessel segment level marked in the blood vessel centerline classification image and the region where the lesion is located in the organ;
[0016] The determination module is further configured to determine, in the three-dimensional image, an area corresponding to a target voxel point set belonging to the blood supply range of the severed blood vessel segment as a resection area corresponding to the lesion in the organ.
[0017] An embodiment of the present application provides a device for determining a resection area, and the device includes: a system for determining a resection area provided in an embodiment of the present application.
[0018] An embodiment of the present application provides an electronic device, the electronic device comprising:
[0019] A memory for storing computer executable instructions;
[0020] The processor is used to implement the method for determining the resection area provided in the embodiment of the present application when executing the computer executable instructions stored in the memory.
[0021] An embodiment of the present application provides a computer-readable storage medium storing a computer program or computer-executable instructions for implementing the method for determining a resection area provided in the embodiment of the present application when executed by a processor.
[0022] An embodiment of the present application provides a computer program product, including a computer program or computer executable instructions. When the computer program or computer executable instructions are executed by a processor, the method for determining a resection area provided in the embodiment of the present application is implemented.
[0023] The embodiments of the present application have the following beneficial effects:
[0024] First, a three-dimensional image of the organ where the lesion is located is obtained, and based on the blood flow topological relationship in the organ, the vascular centerline is extracted and graded in the three-dimensional image in turn to obtain a graded vascular centerline image corresponding to the organ; secondly, based on the blood flow topological relationship in the organ, the voxel points in the three-dimensional image are iteratively refined to obtain a vascular centerline image corresponding to the organ; based on the positional relationship between each voxel point in the vascular centerline image, the vascular segment level is marked for the vascular segment in the vascular centerline image to obtain the graded vascular centerline image; then, in the three-dimensional image, the area corresponding to the target voxel point set belonging to the blood supply range of the disconnected vascular segment is determined as the resection area corresponding to the lesion in the organ. In this way, on the one hand, based on the blood flow topological relationship in the organ, the vascular centerline of the organ in the three-dimensional image is extracted and graded in turn to obtain a more accurate graded vascular centerline image corresponding to the organ, thereby providing a real and accurate parameter basis for the subsequent determination of the disconnected vascular segment and the determination of the resection area on the basis of being able to reflect the real layout of the blood vessels in the organ, thereby being able to achieve a more accurate personalized (i.e., practical) lesion resection plan. On the one hand, it can realize automatic identification of severed vascular segments and corresponding resection areas based on the true reflection of the vascular layout in the organ, the area where the lesion is located in the organ, and the node attributes corresponding to the vascular segment, so as to realize a more reasonable and complete resection of the lesion in the organ, thereby reducing the risk of resection of the lesion in the organ. In this way, based on the extraction and automatic hierarchical labeling of the vascular segments in the organ, it is possible to more accurately determine the severed vascular segments associated with the lesion, so as to resect the lesion based on the more accurate severed vascular segments, thereby improving the accuracy and safety of lesion resection.
[0025] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions provided in the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which:
[0027] Figure 1 A schematic diagram of a method for determining a resection area provided in some embodiments of the present application Figure 1 ;
[0028] Figure 2 A schematic diagram of a method for determining a resection area provided in some embodiments of the present application Figure 2 ;
[0029] Figure 3 A schematic diagram of a method for determining a resection area provided in some embodiments of the present application Figure 3 ;
[0030] Figure 4 A schematic diagram of a method for determining a resection area provided in some embodiments of the present application Figure 4 ;
[0031] Figure 5 A schematic diagram of a process for determining a resection area of a lesion in the liver provided in an embodiment of the present application;
[0032] Figure 6 A schematic diagram of the structure of a system for determining a resection area provided in an embodiment of the present application;
[0033] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0035] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0036] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0037] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be fully or partially implemented by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0038] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meanings as those commonly understood by those skilled in the art. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0039] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0040] 1) Liver Basin Theory: It is used to redefine the blood vessels and blood flow distribution in the liver. The inflow and outflow of blood in the liver is more like the process of a river flowing through the land and finally into the sea. The "land" around the river is irrigated by adjacent tributaries, that is, the liver tissue in a certain basin (a section of the river) is supplied by multiple hepatic artery branches and portal vein branches around it, forming a dynamic balance. Once a tributary is blocked, missing or cut off, the liver tissue in the cut-off basin will experience an "island effect", that is, it will show a state of relative ischemia or congestion within a certain time window. Other tributaries in this area will undergo adaptive changes to varying degrees to meet the irrigation needs of this area and eventually reach a new balance. At the same time, the basin distribution will also change accordingly, forming a new liver basin distribution, which is the dynamic basin theory of the liver.
[0041] 2) The portal vein, also known as the portal vein, is a large vein that is formed by the confluence of capillaries from the digestive tract (stomach, intestines, pancreas, spleen, etc.) and enters the liver from the portal vein. It is characterized by being connected to capillaries at both ends.
[0042] 3) Connected domain analysis: It is a common image processing operation, mainly used in binary images. In binary images, the purpose of connected domain analysis is to find all interconnected pixel regions with the same pixel value (usually foreground or background) and assign a unique label to each region.
[0043] 4) Euclidean distance, also known as Euclidean metric or Euclidean distance, is a commonly used distance definition, which refers to the real distance between two points in m-dimensional space, or the natural length of a vector (i.e. the distance from the point to the origin). The Euclidean distance in two-dimensional and three-dimensional space is the actual distance between two points.
[0044] In order to better understand the method for determining the resection area provided in the embodiment of the present application, the shortcomings of the method for determining the resection area in the related art are first described.
[0045] In related technologies, liver segmentation, as a key method for accurately identifying and locating liver tumors, provides an important basis for precise liver resection. With the continuous deepening of medical research, the methods and theories of liver segmentation have become increasingly rich, showing a diversified research trend. For example, the classic Couinaud liver segmentation method is based on ex vivo cadaver liver dissection, which provides important support for modern liver surgical techniques and is a widely used liver segmentation method in clinical practice. However, this method faces many challenges in the real clinical environment. The anatomical direction of the liver shown by live computed tomography (CT) or magnetic resonance imaging (MRI) is different from that of the ex vivo liver. In addition, the blood vessels in the liver are complex and changeable, and there are great individual differences in the spatial distribution of the portal vein and its 3rd to 4th-level blood vessels. Portal vein variation is very common. In fact, only about 20% to 30% of the human liver structure meets Couinaud's segmentation criteria. Especially for patients with liver masses or hepatobiliary stones, their livers may have enlarged or atrophied areas, or even changes in the position of the liver hilum, which may lead to the actual structure being very different from Couinaud's classic segmentation method. If the scope of surgery is determined based solely on Couinaud's segmentation method, it is likely to cause misjudgment, thereby increasing the risk of accidental injury to blood vessels and bleeding during surgery. Therefore, this method has certain limitations and shortcomings, and it is difficult to meet the precise needs of current medical clinics.
[0046] In other words, the vascular structure of the liver is extremely complex, and the vascular distribution of each individual's liver is different, which undoubtedly increases the difficulty of liver segmentation. Therefore, how to accurately segment the liver according to individual vascular characteristics has become a hot issue in current medical research. This not only requires medical personnel to have profound medical knowledge and rich clinical experience, but also requires the use of advanced medical imaging technology, such as CT, MRI, etc., to accurately depict the patient's liver vascular distribution. Based on this, the relevant technology also proposes a basin liver segmentation method, but it also has the problem of requiring manual disconnection of the relevant blood vessels, resulting in certain resection errors, that is, it also has limitations and shortcomings.
[0047] Based on this, the embodiment of the present application provides a method, system, device, equipment and medium for determining a resection area. On the one hand, according to the blood flow topological relationship in the organ, the vascular centerline of the organ in the three-dimensional image is extracted and graded in sequence to obtain a more accurate vascular centerline graded image corresponding to the organ, so as to provide a real and accurate parameter basis for the subsequent determination of the disconnected vascular segment and the determination of the resection area on the basis of being able to reflect the real layout of the blood vessels in the organ, thereby being able to achieve a more accurate personalized (i.e., practical) lesion resection plan. On the one hand, it is possible to automatically identify the disconnected vascular segment and the corresponding resection area based on the real reflection of the vascular layout in the organ, the area where the lesion is located in the organ and the node attributes corresponding to the vascular segment, so as to achieve a more reasonable and complete resection of the lesion in the organ, thereby reducing the risk of resection of the lesion in the organ. In this way, based on the extraction and automatic graded labeling of the vascular segment in the organ, the disconnected vascular segment associated with the lesion is more accurately determined, so that the lesion is resected based on the more accurate disconnected vascular segment, thereby improving the accuracy and safety of lesion resection.
[0048] For the convenience of explanation, the following embodiments are described by taking a method for determining a resection area provided in some embodiments of the present application as an example. Figure 1 FIG. 1 is a flow chart of a method for determining a resection area provided in some embodiments of the present application. Figure 1 , the following combination Figure 1 The steps shown are explained below:
[0049] Step S101: Acquire a three-dimensional image.
[0050] Wherein, the three-dimensional image includes: the organ where the lesion is located.
[0051] In some embodiments of the present application, the three-dimensional image may be an image displayed on a display screen of a relevant medical device in a preoperative planning scenario. Here, the three-dimensional image includes but is not limited to the organ where the lesion is located; for example, the three-dimensional image also displays: the size and location information of the lesion in the organ. When there are two or more lesions in an organ, the three-dimensional image may include: relevant information of lesion 1 in the organ, relevant information of lesion 2 in the organ, etc.
[0052] It should be noted that a lesion is a localized diseased tissue with pathogenic microorganisms. Here, the organ can be, but is not limited to, any one of the following: lungs, brain, liver, and the present application embodiment does not make any limitation on this. Here, the following embodiments of the present application are all described by taking the liver as an example to refer to the organ, and correspondingly, the lesion can be a tumor inside the liver.
[0053] In some embodiments of the present application, the three-dimensional image may be obtained by the following process, namely:
[0054] First, the computer tomography (CT) image sequence of the organ is preprocessed to obtain a three-dimensional intermediate image sequence.
[0055] In some embodiments of the present application, first, a CT image sequence of the organ (patient) where the lesion is located can be obtained. Here, the number of CT images included in the CT image sequence can be determined according to actual needs, and the present application does not impose any limitation on this.
[0056] Here, the CT image sequence of the organ (liver) is preprocessed, including but not limited to: image cropping, resampling, Hounsfield units ( The image cropping refers to cropping out the liver area in the CT image sequence of the liver, and expanding N (for example, 10) voxels outward when cropping the image, so as to correspond to the loss of voxels at the edge when the CT image sequence of the liver is segmented and reconstructed later; resampling refers to normalizing the CT image sequence of the liver in consideration of the different spacings involved in the CT image sequence of the liver acquired by different devices, so as to improve the accuracy of the subsequent segmentation and reconstruction; HU value range truncation: considering the significant differences in HU values of different tissues, in order to reduce the interference of external information on the segmentation of the hepatic vein and portal vein in the liver, the HU value range of the CT image sequence of the liver can be truncated according to parameters such as window width and window position; image normalization refers to the standardization of the CT image sequence of the liver (or the CT image sequence of the liver after resampling, image cropping, and HU value range truncation). The standardization method can be referred to as shown in formula (1):
[0057] Formula (1);
[0058] in, is the HU value of each voxel in the CT image sequence of the liver, is the HU mean of all voxel points in the CT image sequence of the liver, is the standard deviation of the HU values of all voxel points in the CT image sequence of the liver, It is the HU value obtained after the standardized transformation of each voxel point in the CT image sequence of the liver.
[0059] It should be noted that the CT image sequence of the liver can be subjected to the above-mentioned preprocessing operations (such as image cropping, resampling, HU value range truncation, image normalization, etc.) to obtain a three-dimensional intermediate image sequence. The execution order of the multiple preprocessing operations can be determined according to actual needs, and this application does not impose any limitation on this.
[0060] Secondly, the three-dimensional intermediate image sequence is input into a trained image segmentation model to perform image segmentation, so as to obtain a segmented and reconstructed image corresponding to the organ.
[0061] In some embodiments of the present application, the obtained three-dimensional intermediate image sequence is input into a trained image segmentation model for segmentation and reconstruction to obtain a segmented and reconstructed image corresponding to the liver. Here, the trained image segmentation model can be a trained convolutional neural network model U-Net, a trained deep learning algorithm 3DUNet, etc. The following embodiments of the present application are illustrated by taking the trained image segmentation model as an example of a trained deep learning algorithm 3DUNet. The deep learning algorithm 3DUNet is usually composed of: a network consisting of an encoder, a decoder, a dense skippathway, and deep supervision. Among them, the encoder is used to realize the extraction of image features; the decoder is used to realize the fusion of features and restore the segmentation results; the dense connection is used to realize the reuse of features through skip connections to strengthen the learning of features; the deep supervision structure is used to accelerate the convergence of the deep learning algorithm 3DUNet.
[0062] It should be noted that in practical applications, the trained deep learning algorithm 3DUNet is usually trained using four-dimensional image data as training samples, so the above three-dimensional intermediate image sequence also needs to be converted into four-dimensional image data first, and then input into the trained image segmentation model for image segmentation. That is, the dimension 1 (z, y, x) corresponding to the three-dimensional intermediate image sequence is increased to dimension 2 (1, z, y, x).
[0063] In some embodiments of the present application, the trained deep learning algorithm 3DUNet can use Dice loss and cross-entropy (CE) loss as loss functions to train the network. As shown in formula (2):
[0064] Formula (2);
[0065] in, is the total number of voxel points included in the training sample image data input to the deep learning algorithm 3DUNet to be trained, is the voxel point in the training sample image data The true category (labeled data,), , The voxel points are predicted using the deep learning algorithm 3DUNet to be trained. and voxel points The category of (predicted data).
[0066] Then, the segmented and reconstructed image is post-processed to obtain the three-dimensional image.
[0067] In some embodiments of the present application, post-processing includes but is not limited to: Gaussian weighted patch splicing, image scaling, and connected domain analysis of the segmented and reconstructed image; wherein, the Gaussian weighted code splicing patch is to multiply the patch corresponding to the segmented and reconstructed image (the segmented and reconstructed image can be divided into many small blocks of the same size using a sliding window, i.e., multiple patches are obtained) by the Gaussian weight code, and then different patches are spliced to finally obtain a complete target (liver / blood vessel) mask; image scaling is to use the nearest neighbor interpolation method to scale the target mask obtained by segmentation to the original size of the image; connected domain analysis is to analyze the connected domain of the target mask and only retain the part whose number of pixels in the connected domain is above a certain threshold.
[0068] It can be understood that, through the above steps, the CT image sequence of the organ is preprocessed in turn, the three-dimensional intermediate image sequence obtained by the preprocessing is segmented using the trained image segmentation model, and the obtained segmented and reconstructed image is post-processed, so as to obtain a three-dimensional image that can clearly show the positional relationship of the lesion in the organ, that is, to achieve three-dimensional reconstruction of the organ where the lesion is located, thereby providing image parameter support for the subsequent determination of the resection area of the lesion in the organ.
[0069] Step S102: based on the blood flow topological relationship in the organ, iteratively refine the voxel points in the three-dimensional image to obtain a blood vessel centerline image corresponding to the organ.
[0070] The blood flow topology is used to characterize the spatial layout, connection relationship and blood flow directionality of the blood vessels in the organ. It is understandable that different organs have different corresponding blood flow topologies. The present application pre-stores the blood flow topologies corresponding to different organs. In the process of acquiring the vascular centerline graded image, the blood flow topology corresponding to the organ can be directly acquired.
[0071] In some embodiments of the present application, based on the blood flow topology relationship within the organ (taking the liver as an example here, the blood flow topology relationship is: the original blood flow topology relationship of the portal vein, which can be a topology relationship provided based on the liver watershed theory), the blood vessel centerline within the organ can be extracted in a three-dimensional image to obtain a blood vessel centerline image corresponding to the organ.
[0072] In some embodiments of the present application, the extraction of the vascular centerline can be performed by skeletonizing the portal vein in the three-dimensional image as the centerline of the vascular without changing the original blood flow topology of the portal vein (taking the liver as an example). At the same time, the extraction of the vascular centerline can be based on a refinement iteration method, that is, the voxel points on the surface of the portal vein in the organ in the three-dimensional image are continuously deleted, and the portal vein is continuously refined until it cannot be refined anymore, so as to obtain the corresponding vascular centerline.
[0073] In some embodiments of the present application, multiple voxel points belonging to organs in a three-dimensional image may be deleted based on the blood flow topology to obtain a blood vessel centerline image.
[0074] In some embodiments of the present application, the blood vessel centerline can be extracted based on an iterative thinning method, that is, by continuously deleting pixels on the surface of the portal vein in the organ in the three-dimensional image, and continuously thinning the portal vein until it cannot be thinned any more, the blood vessel centerline image is obtained.
[0075] Step S103 : based on the positional relationship between the voxel points in the blood vessel centerline image, the blood vessel segments in the blood vessel centerline image are marked with blood vessel segment levels to obtain a blood vessel centerline graded image.
[0076] In some embodiments, the vascular centerline graded image carries the hierarchical information of each vascular segment in the organ, i.e., the vascular segment level. The vascular segment level of the severed vascular segment is used to characterize the distance of the severed vascular segment from the main vessel and / or the distance from the terminal branch vessel; illustratively, the higher the vascular segment level, the closer the severed vascular segment is to the main vessel and / or the farther it is from the terminal branch vessel; the lower the vascular segment level, the farther the severed vascular segment is from the main vessel and / or the closer it is to the terminal branch vessel.
[0077] In some embodiments, starting from the root node corresponding to the main blood vessel, the voxel points in the blood vessel centerline image are traversed in sequence, and based on the positional relationship between the voxel points in the blood vessel centerline image, the blood vessel segments in the blood vessel centerline image corresponding to the organ are graded and marked, that is, the hierarchical level corresponding to each blood vessel segment is marked to obtain a graded blood vessel centerline image corresponding to the organ.
[0078] In some embodiments, each level of node on the portal vein structure can be identified and marked according to the attributes of each level of portal vein branches to output the 3rd to 4th level branches of the portal vein. This allows the labels corresponding to different levels of vascular segments in the obtained vascular centerline graded image to be different values. For example, the 1st level branch of the portal vein is marked as 1, the 2nd level of the portal vein is marked as 11, and so on.
[0079] It can be understood that through the above steps, according to the blood flow topological relationship in the organ, the vascular centerline of the organ in the three-dimensional image is extracted and graded in turn, so as to obtain a more accurate vascular centerline graded image corresponding to the organ, thereby providing a real and accurate parameter basis for the subsequent determination of the severed vascular segment and the resection area on the basis of reflecting the real layout of the blood vessels in the organ, thereby realizing a more accurate personalized (i.e., practical) lesion resection plan.
[0080] Step S104: determining the severed blood vessel segment associated with the lesion based on the blood vessel segment level marked in the blood vessel centerline classification image and the region where the lesion is located in the organ.
[0081] In some embodiments of the present application, a vascular segment 1 intersecting with the region or position where the lesion is located in an organ can be determined as a severed vascular segment associated with the lesion. It is also possible to appropriately expand the region where the lesion is located in the organ (enlarge it by a certain proportion), and then the vascular segment 2 intersecting with the expanded region and the upper-level vascular segment 3 corresponding to the vascular segment 2 can be simultaneously determined as severed vascular segments associated with the lesion.
[0082] It should be noted that the vascular segment level mark of the determined severed vascular segment can be changed here, for example: the mark (value) corresponding to its original vascular segment level can be changed to "to be severed" or changed to "0" (here it is assumed that the mark values corresponding to the original vascular segment level are not 0).
[0083] It can be understood that, through the above steps, the severed vascular segment is determined based on the vascular segment level marked in the vascular centerline graded image. In this way, the severed vascular segment can be automatically identified based on the true reflection of the vascular layout in the organ and the node attributes corresponding to the vascular segment, providing a parameter basis for the subsequent determination of a more accurate resection area.
[0084] Step S105: In the three-dimensional image, determine the area corresponding to the target voxel point set belonging to the blood supply range of the severed blood vessel segment as the resection area corresponding to the lesion in the organ.
[0085] In some embodiments of the present application, first, the blood supply range of the severed blood vessel segment can be determined in the vascular centerline grading image; then, the area corresponding to the target voxel point set corresponding to the blood supply range is mapped to the three-dimensional image to obtain the resection area corresponding to the lesion in the organ.
[0086] In some embodiments, the target voxel point set belonging to the blood supply range of the severed blood vessel segment can be determined according to a nearest neighbor approximate segmentation algorithm; wherein the nearest neighbor approximate segmentation algorithm can use Euclidean distance judgment.
[0087] It should be noted that the area corresponding to the target voxel point set belonging to the blood supply range of the severed blood vessel segment is determined as the resection area. In this way, based on the resection area, the lesion in the organ can be resected more reasonably and completely, thereby reducing the risk of resection of the lesion in the organ.
[0088] In some embodiments, the size of the blood supply range of the severed blood vessel segment is related to the blood vessel segment level of the severed blood vessel segment. The blood vessel segment level of the severed blood vessel segment is used to characterize the distance of the severed blood vessel segment from the main blood vessel and / or the distance from the terminal branch blood vessel; illustratively, the higher the blood vessel segment level, the closer the severed blood vessel segment is to the main blood vessel and / or the farther it is from the terminal branch blood vessel; the lower the blood vessel segment level, the farther the severed blood vessel segment is from the main blood vessel and / or the closer it is to the terminal branch blood vessel. Accordingly, the size of the blood supply range (corresponding resection area) of the severed blood vessel segment is positively correlated with the level of the blood vessel segment; that is, the higher the blood vessel segment level, the larger the blood supply range (corresponding resection area) of the severed blood vessel segment, and the lower the blood vessel segment level, the smaller the blood supply range (corresponding resection area) of the severed blood vessel segment.
[0089] It can be understood that through the above steps, first, a three-dimensional image of the organ including the lesion is obtained, and based on the blood flow topological relationship in the organ, the vascular centerline is extracted and graded in the three-dimensional image in turn to obtain the vascular centerline graded image corresponding to the organ; secondly, based on the blood flow topological relationship in the organ, the voxel points in the three-dimensional image are iteratively refined to obtain the vascular centerline image corresponding to the organ; based on the positional relationship between each voxel point in the vascular centerline image, the vascular segment level is marked for the vascular segment in the vascular centerline image to obtain the vascular centerline graded image; then, in the three-dimensional image, the area corresponding to the target voxel point set belonging to the blood supply range of the severed vascular segment is determined as the resection area corresponding to the lesion in the organ. In this way, on the one hand, according to the blood flow topological relationship in the organ, the vascular centerline of the organ in the three-dimensional image is extracted and graded in turn to obtain a more accurate vascular centerline graded image corresponding to the organ, so as to provide a real and accurate parameter basis for the subsequent determination of the disconnected vascular segment and the determination of the resection area on the basis of reflecting the real layout of the blood vessels in the organ, so as to achieve a more accurate personalized (i.e., practical) lesion resection plan. On the one hand, it is possible to automatically identify the disconnected vascular segment and the corresponding resection area based on the real reflection of the vascular layout in the organ, the area where the lesion is located in the organ, and the node attributes corresponding to the vascular segment, so as to achieve a more reasonable and complete resection of the lesion in the organ, so as to reduce the risk of resection of the lesion in the organ. In this way, based on the extraction and automatic graded labeling of the vascular segment in the organ, the disconnected vascular segment associated with the lesion can be determined more accurately, so as to resect the lesion based on the more accurate disconnected vascular segment, so as to improve the accuracy and safety of lesion resection.
[0090] In some embodiments of the present application, the above-mentioned step S102 of the embodiment iteratively refines the voxel points in the three-dimensional image based on the blood flow topological relationship in the organ to obtain the vascular centerline image corresponding to the organ, which can be achieved by the following steps S201 to S203, such as Figure 2 FIG. 1 is a flow chart of a method for determining a resection area provided in some embodiments of the present application. Figure 2 , the following combination Figure 2 The steps shown are explained below:
[0091] Step S201: binarize the three-dimensional image to obtain a binary image.
[0092] In some embodiments of the present application, each voxel point in the three-dimensional image is binarized to obtain a voxel point represented by a first value or a second value. For example, the first value can be set to 0, and the second value can be set to 1. Accordingly, the obtained binary image can be a three-dimensional image in which the voxel point is represented by black or white.
[0093] Step S202: based on the blood flow topological relationship and the voxel value in a preset neighborhood of each voxel point in the binary image, iteratively refine the voxel points in the binary image until the iteration converges to obtain an intermediate voxel point set.
[0094] In some embodiments of the present application, the binary image may be iteratively refined until the vascular centerline converges. The process includes: traversing each voxel point in the binary image, and updating the attributes of the voxel point according to a specific refinement rule. For example: the refinement rule is based on the voxel value within a preset neighborhood of each voxel point. Here, the value of each voxel point in the binary image may be compared with the values of the voxel points around it. If the values of the surrounding voxel points are all 1, the voxel point is also set to 1, otherwise it is set to 0. Based on the above logic, each voxel point in the binary image is traversed to achieve iterative refinement of the voxel points in the binary image. The iterative refinement process will gradually reduce the thickness of the extracted vascular centerline while maintaining the connectivity of the extracted vascular centerline until the iteration converges, so as to screen out an intermediate voxel point set whose voxel point value is 1.
[0095] It should be noted that, based on the above method, each voxel point of the binary image is iteratively refined, and the order of the traversed voxel points can be determined according to actual needs, and this application does not impose any restrictions on this. Here, for the accuracy of the traversal, each voxel point in the binary image can be marked as unprocessed before the traversal, so that in the traversal stage, the voxel point after the traversal (iterative refinement) can be marked as processed for data management.
[0096] In some embodiments of the present application, while iteratively refining the voxel points in the binary image based on the above method, an erosion operation can also be performed on the binary image, that is, the edge of the structural area (blood vessel centerline) in the binary image is corroded to obtain the corresponding refined image, and then iterative refinement is continued based on the refined image until the iteration converges.
[0097] Step S203: extracting the intermediate voxel point set from the binary image to obtain the blood vessel centerline image.
[0098] In some embodiments of the present application, all intermediate voxel point sets in the binary image are extracted to form a blood vessel centerline image, that is, a skeleton image corresponding to the blood vessels in the organ.
[0099] It can be understood that, through the above steps, based on the blood flow topological relationship in the organ and the voxel value of the corresponding local neighborhood, the voxel points in the binarized three-dimensional image are refined and iterated to achieve the extraction of the vascular centerline. In this way, the extracted vascular centerline image can more realistically reflect the vascular layout in the organ, thereby providing parameter support for the subsequent determination of the disconnected vascular segments and resection areas associated with the relevant lesions, thereby improving the accuracy and safety of the subsequent lesion resection.
[0100] It can be understood that, through the above steps, the vascular segments in the vascular centerline image obtained based on the blood flow topological relationship are automatically graded and marked, which can not only obtain a more accurate vascular centerline graded image corresponding to the organ, but also can provide a real and accurate parameter basis for the subsequent determination of the severed vascular segments and the resection area based on the real layout of the blood vessels in the organ.
[0101] In some embodiments of the present application, before step S103 provided in the above embodiment, the following steps A1 and A2 may also be performed:
[0102] Step A1: based on the sum of the voxel values of the set voxel points, the voxel points in the blood vessel centerline image are marked to obtain a first voxel point set marked as leaf nodes and a second voxel point set marked as bifurcation points.
[0103] The set voxel point includes: a first voxel point and voxel points in a set neighborhood of the first voxel point; the first voxel point is any voxel point in the blood vessel centerline image.
[0104] In some embodiments of the present application, all voxel points in the vascular centerline image can be traversed, and each voxel point in the vascular centerline image can be marked based on the sum of the voxel values of the set voxel points corresponding to each voxel point. Here, the set voxel point may include: any voxel point and the sum of the voxel points in the set neighborhood (26 neighborhoods, 8 neighborhoods or 6 neighborhoods, which are not limited in the embodiments of the present application) corresponding to the voxel point.
[0105] Exemplarily, the voxel points whose sum of voxel values is set to 2 can be marked as leaf nodes (first voxel point set), the voxel points whose sum of voxel values is set to 3 can be marked as ordinary nodes, and the voxel points whose sum of voxel values is set to be greater than 3 can be marked as bifurcation points (second voxel point set).
[0106] Step A2: mark the first voxel point in the first voxel point set corresponding to the largest pipeline radius as a root node, and update the first voxel point set to obtain a third voxel point set.
[0107] In some embodiments of the present application, a first voxel point with the largest corresponding pipeline radius is found from the first voxel point set, and its mark is changed to a root node. At the same time, the root node in the first voxel point set is deleted to update the first voxel point set to the third voxel point set, that is, the voxel points marked as leaf nodes are all third voxel points.
[0108] It should be noted that the vascular centerline image (because the vascular centerline image is obtained by processing based on the binarized three-dimensional image, so the vascular centerline image is also a binary image) includes two types of voxel points: voxel points corresponding to the foreground blood vessels (mentioned above: voxel points corresponding to the leaf nodes, root nodes and bifurcation points) and voxel points corresponding to the background; among them, the voxel value of the voxel point corresponding to the foreground blood vessels is 1, and the voxel value of the voxel point corresponding to the background is 0. And the third voxel point marked as a leaf node is located on the skeleton line of the vascular centerline in the vascular centerline image. The third voxel point marked as a leaf node can be transformed by distance, that is, the distance between the third voxel point i and the voxel point corresponding to the background closest to it can be determined as the pipeline radius corresponding to the third voxel point i.
[0109] Correspondingly, step S103 provided in the above embodiment can be implemented by following the steps A3:
[0110] Step A3, in the vascular centerline image, traverse the vascular segment corresponding to each third voxel point in the third voxel point set and the root node, and if the second voxel point in the second voxel point set exists in the vascular segment, mark and adjust the hierarchy of the vascular segment until the traversal is completed to obtain the vascular centerline hierarchical image.
[0111] In some embodiments of the present application, in the vascular centerline image, each third voxel point in the third voxel point set is traversed, that is, the path between each third voxel point and the root node marked (that is, the vascular segment) is traversed, and the vascular segment is marked. In the marking process, if there is a second voxel point marked as a bifurcation point in the vascular segment, the level corresponding to the vascular segment can be adjusted (such as adding 1). Here, an adjustment is made when a second voxel point marked as a bifurcation point is encountered. And so on, until the vascular segment between the third voxel point and the root node in the third voxel point set is traversed and marked, so as to obtain a vascular centerline graded image.
[0112] It should be noted that if the blood vessel segments in the blood vessel centerline classification image are marked with numerical values, blood vessel segments of different levels in the blood vessel centerline classification image are marked with different numerical values.
[0113] It can be understood that, through the above steps, based on the attributes of each branch and node (root node, bifurcation point and leaf node) of the vascular segment in the vascular centerline classification image, the vascular segment in the vascular centerline classification image is automatically graded and labeled. In this way, it can provide a real and accurate parameter basis for the subsequent determination of the severed vascular segment and the resection area on the basis of reflecting the real layout of the blood vessels in the organ.
[0114] In some embodiments of the present application, before step S103 provided in the above embodiment, the following step B1 may also be performed:
[0115] Step B1: based on the sum of the voxel values of the set voxel points, mark the voxel points in the blood vessel centerline image to obtain a second voxel point set marked as bifurcation points.
[0116] The set voxel point includes: a first voxel point and voxel points in a set neighborhood of the first voxel point; the first voxel point is any voxel point in the blood vessel centerline image.
[0117] In some embodiments of the present application, all voxel points in the vascular centerline image can be traversed, and each voxel point in the vascular centerline image can be marked based on the sum of the voxel values of the set voxel points corresponding to each voxel point. Here, the set voxel point may include: any voxel point and the sum of the voxel points in the set neighborhood (26 neighborhoods, 8 neighborhoods or 6 neighborhoods, which are not limited in the embodiments of the present application) corresponding to the voxel point.
[0118] Exemplarily, voxel points whose sum of voxel values is set to be greater than 3 may be marked as bifurcation points (a second voxel point set).
[0119] Correspondingly, step S103 provided in the above embodiment can be implemented by following the following step B2:
[0120] Step B2, setting a queue including a root node, taking out a current voxel point from the queue in turn and performing the following hierarchical labeling process for the current voxel point until the queue is empty, thereby obtaining the vascular centerline hierarchical image: taking out the current voxel point from the queue and putting all unvisited voxel points adjacent to the current voxel point into the queue; when the current voxel point is the root node, setting the hierarchical label of the current voxel point to a first value; when the current voxel point and the previous dequeued voxel point do not belong to the second voxel point set, The same level mark as the previous dequeued voxel point is added to the current voxel point; when the current voxel point belongs to the second voxel point set, the level mark of the current voxel point is set to a second value, and the second value is a preset multiple of the level mark of the previous dequeued voxel point; when the current voxel point does not belong to the second voxel point set and the previous dequeued voxel point belongs to the second voxel point set, the level mark of the current voxel point is set to a third value, and the third value is the sum of the preset mark interval and the maximum level mark of the voxel points in the preset neighborhood of the previous dequeued voxel point.
[0121] In the above embodiment, a queue is first created and the root node is placed in the queue. After that, the following steps are repeated until the queue is empty: (1) A current voxel point v_current is taken out of the queue and marked as visited; (2) All voxel points adjacent to v_current and not visited are added to the queue; (3) The level marking process is performed: If v_current is a root node, its level mark is set to the first value, which is usually 1. If v_current is an ordinary point, and the previous dequeued voxel point v_previous is also an ordinary point or a root node, then the level mark of v_current is the same as v_previous. If v_current is a bifurcation point (belonging to the second voxel point set), its level mark is set to the second value, which is a preset multiple of the level mark of v_previous (for example, multiplied by 10). If v_current is a normal point and v_previous is a bifurcation point, it is necessary to calculate the maximum level label label_max of the voxel point within the preset neighborhood (such as 5x5x5 neighborhood) of v_previous, and then the level label of v_current is set to label_max + preset label interval (for example, if the label interval is 1, the level label is label_max + 1).
[0122] Through the above-mentioned hierarchical labeling process, each voxel point will be assigned a unique hierarchical label. This hierarchical label reflects the hierarchical structure of each voxel point in the blood vessel, and then a hierarchical image of the blood vessel centerline can be constructed. The hierarchical labels of the voxel points in the same blood vessel segment are the same, that is, the blood vessel segment level of the blood vessel segment, and then a hierarchical image of the blood vessel centerline is obtained.
[0123] In some embodiments of the present application, the implementation of determining the severed blood vessel segment in step S104 of the above embodiment can be implemented by the following steps S301 to S303, such as Figure 3 FIG. 1 is a flow chart of a method for determining a resection area provided in some embodiments of the present application. Figure 3 , the following combination Figure 3 The steps shown are explained below:
[0124] Step S301: Based on the set expansion parameters, the lesion is expanded in the region where the organ is located to obtain an expanded region.
[0125] In some embodiments of the present application, the area where the lesion is located in the organ can be directly enlarged proportionally based on the set expansion parameter to obtain the expansion area. Here, the set expansion parameter can be an empirical value, which is determined by the actual situation, and the present application does not impose any restrictions on this. Or, a set expansion parameter and its corresponding range can be given first, such as: [5mm, 5cm], so that the area where the lesion is located in the organ can be gradually increased based on the range corresponding to the set expansion parameter, until the expanded area and the preset blood vessel segment have an intersection, and the current expansion parameter is output and the corresponding expansion area is obtained.
[0126] Step S302: Determine, in the blood vessel centerline classification image, a blood vessel segment to be processed that intersects with the edge of the expansion region.
[0127] In some embodiments of the present application, the edge of the expansion area can be determined first, and then the blood vessel segment to be processed that intersects (and is operated on) the cutting edge can be determined; wherein the number of the blood vessel segments to be processed is at least one, and the marking levels of the blood vessel segments included therein can be the same or different. Exemplarily, the blood vessel segments to be processed include: blood vessel segment 1 and blood vessel segment 2 with a marking level of 1, blood vessel segment 3 with a marking level of 2, and so on.
[0128] Step S303: determining the severed blood vessel segment in the blood vessel centerline classification image based on the marking level of the blood vessel segment to be processed in the blood vessel centerline classification image.
[0129] In some embodiments of the present application, a more specific severed vascular segment is determined based on the marking level of the vascular segment to be processed in the vascular centerline classification image. Here, the number of vascular segments included in the severed vascular segment is at least one. Similarly, if the number of vascular segments included in the severed vascular segment is multiple, the marking levels of the multiple vascular segments included may be the same or different.
[0130] It can be understood that through the above steps, based on the blood vessel segment to be processed that intersects with the region where the lesion is located after expansion, a more specific severed blood vessel segment can be identified, which can provide a parameter basis for subsequently determining a more accurate resection region.
[0131] In some embodiments of the present application, step S303 provided in the above embodiment may be implemented by following steps S3031 and S3032 (not shown in the figure):
[0132] Step S3031: in the vascular centerline classification image, determine an intermediate vascular segment that is connected to the vascular segment to be processed and has a marked level corresponding to an intermediate level.
[0133] The intermediate level is the upper level of the marking level corresponding to the blood vessel segment to be processed.
[0134] Step S3032: determine the middle blood vessel segment as the severed blood vessel segment.
[0135] In some embodiments of the present application, in the vascular centerline grading image, the parent node position corresponding to the vascular segment to be processed is found, that is, the parent node position connected to it and having a marking level that is the upper level of the marking level corresponding to the vascular segment to be processed, thereby obtaining the intermediate vascular segment and determining it as the severed vascular segment.
[0136] It can be understood that, through the above steps, the vascular segment at the previous level of the vascular segment to be processed is identified as a severed vascular segment, which can provide a parameter basis for subsequent determination of a more accurate resection area, thereby improving the safety of subsequent resection of lesions in the organ.
[0137] In some embodiments of the present application, before determining the resection area in step S105 of the above embodiment, the following step S401 may also be performed, such as Figure 4 FIG. 1 is a schematic diagram of a process for determining a resection area provided in some embodiments of the present application. Figure 4 , the following combination Figure 4 The steps shown are explained below:
[0138] Step S401: determining the target voxel point set in the vascular centerline classification image based on the Euclidean distance between the voxel point and the severed voxel point on the severed blood vessel segment.
[0139] In some embodiments of the present application, the Euclidean distance between each voxel point in the vascular centerline graded image and the disconnected voxel point on the disconnected vessel can be traversed, and the voxel points whose Euclidean distances meet preset conditions can be selected to obtain a target voxel point set.
[0140] Here, the Euclidean distance between each voxel point in the vessel centerline classification image and the disconnected voxel point on the disconnected vessel is , can be determined by the following formula (3):
[0141] Formula (3);
[0142] in, It is a blood vessel segment The voxel points on the branch, is any vessel segment in the vessel centerline classification image, is any voxel point in the vessel centerline classification image.
[0143] In some embodiments of the present application, the target voxel point set obtained in step S401 provided in the above embodiment may be obtained by including the following steps S4011 to S4013 (not shown in the figure):
[0144] Step S4011, obtaining the Euclidean distance between each voxel point in the vascular centerline classification image and the vascular voxel point, and obtaining a distance set corresponding to each voxel point.
[0145] The vascular voxel point is a voxel point in any vascular segment in the vascular centerline classification image.
[0146] In some embodiments of the present application, the distance set corresponding to each voxel point may be determined by referring to the above-mentioned formula (3).
[0147] Step S4012: Filter the shortest Euclidean distance corresponding to each voxel point from the distance set corresponding to each voxel point to obtain the shortest Euclidean distance set.
[0148] In some embodiments of the present application, the shortest Euclidean distance set is to determine the shortest Euclidean distance corresponding to each voxel point. , which can refer to formula (4):
[0149] Formula (4);
[0150] Among them, voxel point The corresponding shortest Euclidean distance , is related to the vascular segment The distance between.
[0151] Step S4013: Filter the voxel points in the shortest Euclidean distance set that correspond to the Euclidean distance between the disconnected voxel points to obtain the target voxel point set.
[0152] In some embodiments of the present application, the voxel points corresponding to the Euclidean distance between the disconnected voxel points can be selected from the shortest Euclidean distance set to obtain the target voxel point set. The Euclidean distance between the disconnected voxel points is the shortest Euclidean distance between voxel point a and other voxel points. The voxel point a belongs to the disconnected vessel segment. Here, the target voxel point set includes: voxel points within the blood supply range of the severed blood vessel segment; The voxel point set within the blood supply range It can be determined by formula (5):
[0153] Formula (5).
[0154] It should be noted that the number of voxel points included in the target voxel point set may be determined according to actual needs, and this application does not impose any limitation on this.
[0155] It can be understood that through the above steps, the target voxel points close to the severed blood vessel can be screened based on the Euclidean distance, that is, the voxel point with the shortest Euclidean distance to the severed voxel point of the severed blood vessel can be determined as the target voxel point, so as to subsequently determine the precise resection area based on the set of target voxel points (target voxel point set).
[0156] Correspondingly, the implementation of determining the resection area in step S105 provided in the above embodiment can be implemented by the following step S402:
[0157] Step S402: Based on the mapping relationship between the three-dimensional image and the vascular centerline classification image, the target voxel point set is mapped into the three-dimensional image to obtain the resection area.
[0158] In some embodiments of the present application, the target voxel point set can be mapped from the vascular centerline graded image to the three-dimensional image, so as to obtain the area corresponding to the target voxel point set in the three-dimensional image, which is the resection area of the lesion in the organ. Here, the resection area can be an irregular body, and the present application does not make any limitation on this.
[0159] It can be understood that, through the above steps, the region corresponding to the target voxel point set belonging to the blood supply range of the severed blood vessel segment is mapped from the blood vessel centerline graded image to the three-dimensional image, and the resection region corresponding to the lesion in the organ is obtained. In this way, based on the resection region, the lesion in the organ can be more reasonably and completely resected, thereby reducing the risk of resecting the lesion in the organ.
[0160] Based on the above description, if Figure 5 As shown, it is a schematic diagram of a process for determining a resection area of a lesion in the liver provided by an embodiment of the present application; wherein 501 is a three-dimensional image corresponding to the liver where the lesion is located; wherein, it can be obtained by segmenting and reconstructing a CT image sequence of the liver; 502 is an image obtained by extracting the vascular centerline of the three-dimensional image; 503 is an image obtained by graded marking of the vascular centerline of 502, and 504 is a related vascular severance marking of the image 503 based on the area where the lesion is located, so as to obtain the resection margin of the lesion in the liver in 505 based on the related vascular severance marking of 504, that is, determine the corresponding resection range (area).
[0161] refer to Figure 5 As shown, the method for determining the resection area provided in the embodiment of the present application can realize fully automated liver segmentation based on the automatic liver segmentation strategy of the watershed, relying on its efficient and convenient characteristics and its high degree of fit with the actual distribution of blood vessels in the liver. In this way, this solution can perform individualized and precise segmentation according to the unique distribution of blood vessels in the liver corresponding to different patients. On the one hand, it helps to improve the accuracy of preoperative diagnosis corresponding to the resection of lesions in the liver, and can also ensure meticulous operation during surgery, thereby ensuring the safety and effectiveness of liver surgery. On the one hand, compared with the traditional manual or semi-automatic segmentation methods that consume a lot of manpower, it can greatly reduce the workload of medical staff and achieve more efficient liver segmentation operations.
[0162] The present application embodiment provides a system for determining a resection area. Figure 6 A schematic diagram of the structure of a system for determining a resection area provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the resection area determination system 600 includes:
[0163] The acquisition module 601 is configured to acquire a three-dimensional image; wherein the three-dimensional image includes: an organ where the lesion is located;
[0164] A refinement module 602 is configured to iteratively refine the voxel points in the three-dimensional image based on the blood flow topological relationship in the organ to obtain a blood vessel centerline image corresponding to the organ;
[0165] A marking module 603 is configured to mark the vessel segment levels of the vessel segments in the vessel centerline image based on the positional relationship between the voxel points in the vessel centerline image, so as to obtain a vessel centerline graded image;
[0166] A determination module 604 is configured to determine a severed blood vessel segment associated with the lesion based on the blood vessel segment level marked in the blood vessel centerline classification image and the region where the lesion is located in the organ;
[0167] The determination module 604 is further configured to determine, in the three-dimensional image, an area corresponding to a target voxel point set belonging to the blood supply range of the severed blood vessel segment as a resection area corresponding to the lesion in the organ.
[0168] In some embodiments of the present application, the acquisition module 601 is also configured to pre-process the computed tomography (CT) image sequence of the organ to obtain a three-dimensional intermediate image sequence; input the three-dimensional intermediate image sequence into a trained image segmentation model to perform image segmentation to obtain a segmented and reconstructed image corresponding to the organ; and post-process the segmented and reconstructed image to obtain the three-dimensional image.
[0169] In some embodiments of the present application, the refinement module 602 is further configured to binarize the three-dimensional image to obtain a binary image; based on the blood flow topological relationship and the voxel values within a preset neighborhood of each voxel point in the binary image, iteratively refine the voxel points in the binary image until the iteration converges to obtain an intermediate voxel point set; extract the intermediate voxel point set in the binary image to obtain the vascular centerline image.
[0170] In some embodiments of the present application, the marking module 603 is further configured to mark the voxel points in the vascular centerline image based on the sum of the voxel values of the set voxel points, and obtain a first voxel point set marked as leaf nodes and a second voxel point set marked as bifurcation points; wherein the set voxel points include: a first voxel point and a voxel point in a set neighborhood of the first voxel point; the first voxel point is any voxel point in the vascular centerline image; the first voxel point with the largest corresponding pipeline radius in the first voxel point set is marked as a root node, and the first voxel point set is updated to obtain a third voxel point set; within the vascular centerline image, the vascular segment corresponding to each third voxel point in the third voxel point set and the root node is traversed, and when the second voxel point in the second voxel point set exists in the vascular segment, the level of the vascular segment is marked and adjusted until the traversal is completed to obtain the vascular centerline hierarchical image.
[0171] In some embodiments of the present application, the marking module 603 is further configured to mark the voxel points in the vascular centerline image based on the sum of the voxel values of the set voxel points to obtain a second voxel point set marked as bifurcation points; wherein the set voxel points include: a first voxel point and voxel points in a set neighborhood of the first voxel point; the first voxel point is any voxel point in the vascular centerline image; a queue including a root node is set, and the current voxel point is taken out from the queue in turn and the following hierarchical marking process is performed for the current voxel point until the queue is empty to obtain the vascular centerline hierarchical image: the current voxel point is taken out from the queue and all unvisited voxel points adjacent to the current voxel point are put into the queue; when the current voxel point is the In the case of a root node, the level mark of the current voxel point is set to a first value; in the case that neither the current voxel point nor the previous dequeued voxel point belongs to the second voxel point set, the same level mark as the previous dequeued voxel point is added to the current voxel point; in the case that the current voxel point belongs to the second voxel point set, the level mark of the current voxel point is set to a second value, and the second value is a preset multiple of the level mark of the previous dequeued voxel point; in the case that the current voxel point does not belong to the second voxel point set and the previous dequeued voxel point belongs to the second voxel point set, the level mark of the current voxel point is set to a third value, and the third value is the sum of a preset mark interval and the maximum level mark of the voxel points in a preset neighborhood of the previous dequeued voxel point.
[0172] In some embodiments of the present application, the determination module 604 is further configured to expand the region where the lesion is located in the organ based on set expansion parameters to obtain an expanded region; determine, in the vascular centerline grading image, a vascular segment to be processed that intersects with an edge of the expanded region; and determine the severed vascular segment in the vascular centerline grading image based on a marking level of the vascular segment to be processed in the vascular centerline grading image.
[0173] In some embodiments of the present application, the determination module 604 is further configured to determine, in the vascular centerline grading image, an intermediate vascular segment that is connected to the vascular segment to be processed and whose marking level corresponds to an intermediate level; wherein the intermediate level is the level above the marking level corresponding to the vascular segment to be processed; and determine the intermediate vascular segment as the severed vascular segment.
[0174] In some embodiments of the present application, the determination module 604 is further configured to determine the target voxel point set in the vascular centerline graded image based on the Euclidean distance between the voxel point and the severed voxel point on the severed vascular segment; and map the target voxel point set to the three-dimensional image based on the mapping relationship between the three-dimensional image and the vascular centerline graded image to obtain the resection area.
[0175] In some embodiments of the present application, the determination module 604 is further configured to obtain the Euclidean distance between each voxel point and the vascular voxel point in the vascular centerline graded image, and obtain a distance set corresponding to each voxel point; wherein the vascular voxel point is a voxel point in any vascular segment in the vascular centerline graded image; from the distance set corresponding to each voxel point, the shortest Euclidean distance corresponding to each voxel point is screened to obtain the shortest Euclidean distance set; and the voxel point corresponding to the Euclidean distance between the disconnected voxel point is screened in the shortest Euclidean distance set to obtain the target voxel point set.
[0176] It should be noted that the description of the above system embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0177] It should be noted that in the embodiments of the present application, if the above-mentioned method for determining the resection area is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a terminal, server, etc.) to execute all or part 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 a U disk, a sports hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0178] Correspondingly, the embodiment of the present application further provides a device for determining a resection area, which includes: the above-mentioned resection area determination system.
[0179] Correspondingly, an embodiment of the present application further provides a computer program product, which includes computer executable instructions. After the computer executable instructions are executed, the method for determining the resection area provided in the embodiment of the present application can be implemented.
[0180] Accordingly, an embodiment of the present application provides an electronic device, Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the electronic device 700 includes: a processor 701, at least one communication bus 704, a communication interface 702, at least one external communication interface and a memory 703. The communication interface 702 is configured to realize the connection and communication between these components. The communication interface 702 may include a display screen, and the external communication interface may include a standard wired interface and a wireless interface. The processor 701 is configured to execute the program in the memory to implement the method for determining the resection area provided in the above embodiment.
[0181] Accordingly, an embodiment of the present application further provides a computer storage medium, on which computer executable instructions are stored. When the computer executable instructions are executed by a processor, the method for determining the resection area provided in the above embodiment is implemented.
Claims
1. A method for determining a resection area, characterized in that: The determination method comprises: Acquire a three-dimensional image; wherein the three-dimensional image includes: the organ where the lesion is located; Iteratively refine the voxel points in the three-dimensional image based on the blood flow topological relationship in the organ to obtain a blood vessel centerline image corresponding to the organ; Based on the positional relationship between each voxel point in the vascular centerline image, marking the vascular segment level of the vascular segment in the vascular centerline image to obtain a vascular centerline graded image; Determine the severed blood vessel segment associated with the lesion based on the blood vessel segment level marked in the blood vessel centerline classification image and the region where the lesion is located in the organ; In the three-dimensional image, determining the area corresponding to the target voxel point set belonging to the blood supply range of the severed blood vessel segment as the resection area corresponding to the lesion in the organ; The method of determining the disconnected blood vessel segment associated with the lesion based on the blood vessel segment level marked in the blood vessel centerline graded image and the region where the lesion is located in the organ comprises: based on a set expansion parameter, expanding the region where the lesion is located to obtain an expanded region; determining, in the blood vessel centerline graded image, a blood vessel segment to be processed that intersects with an edge of the expanded region; and determining the disconnected blood vessel segment in the blood vessel centerline graded image based on the marking level of the blood vessel segment to be processed in the blood vessel centerline graded image. The method of determining the severed blood vessel segment in the blood vessel centerline graded image based on the marking level of the blood vessel segment to be processed in the blood vessel centerline graded image comprises: determining, in the blood vessel centerline graded image, an intermediate blood vessel segment that is connected to the blood vessel segment to be processed and has a marking level corresponding to an intermediate level; wherein the intermediate level is a level above the marking level corresponding to the blood vessel segment to be processed; and determining the intermediate blood vessel segment as the severed blood vessel segment.
2. The determination method according to claim 1, characterized in that: The obtaining of a three-dimensional image comprises: Preprocessing a computerized tomography (CT) image sequence of the organ to obtain a three-dimensional intermediate image sequence; Inputting the three-dimensional intermediate image sequence into a trained image segmentation model to perform image segmentation, and obtaining a segmented and reconstructed image corresponding to the organ; The segmented and reconstructed image is post-processed to obtain the three-dimensional image.
3. The determination method according to claim 1, characterized in that: The iterative refinement of the voxel points in the three-dimensional image based on the blood flow topological relationship in the organ to obtain a blood vessel centerline image corresponding to the organ includes: Binarizing the three-dimensional image to obtain a binary image; Iteratively refine the voxel points in the binary image based on the blood flow topological relationship and the voxel values in a preset neighborhood of each voxel point in the binary image until the iteration converges to obtain an intermediate voxel point set; The intermediate voxel point set is extracted from the binary image to obtain the blood vessel centerline image.
4. The determination method according to claim 3, characterized in that: Before marking the vessel segments in the vessel centerline image with vessel segment levels to obtain the vessel centerline graded image, the method further includes: Based on the sum of the voxel values of the set voxel points, the voxel points in the vascular centerline image are marked to obtain a first voxel point set marked as leaf nodes and a second voxel point set marked as bifurcation points; wherein the set voxel points include: a first voxel point and voxel points in a set neighborhood of the first voxel point; the first voxel point is any voxel point in the vascular centerline image; Mark the first voxel point with the largest pipeline radius in the first voxel point set as a root node, and update the first voxel point set to obtain a third voxel point set; The step of marking the vascular segments in the vascular centerline image at the vascular segment level based on the positional relationship between the voxel points in the vascular centerline image to obtain the vascular centerline graded image includes: In the vascular centerline image, the vascular segment corresponding to each third voxel point in the third voxel point set and the root node is traversed, and when the second voxel point in the second voxel point set exists in the vascular segment, the level of the vascular segment is marked and adjusted until the traversal is completed to obtain the vascular centerline hierarchical image.
5. The determination method according to claim 3, characterized in that: Before classifying the blood vessel segments in the blood vessel centerline image to obtain the blood vessel centerline graded image, the method further includes: Based on the sum of the voxel values of the set voxel points, the voxel points in the vascular centerline image are marked to obtain a second voxel point set marked as bifurcation points; wherein the set voxel points include: a first voxel point and voxel points in a set neighborhood of the first voxel point; the first voxel point is any voxel point in the vascular centerline image; The step of marking the vascular segments in the vascular centerline image at the vascular segment level based on the positional relationship between the voxel points in the vascular centerline image to obtain the vascular centerline graded image includes: A queue including a root node is set, and a current voxel point is taken out from the queue in sequence and the following hierarchical labeling process is performed for the current voxel point until the queue is empty, so as to obtain the vascular centerline hierarchical image: the current voxel point is taken out from the queue and all unvisited voxel points adjacent to the current voxel point are put into the queue; when the current voxel point is the root node, the hierarchical label of the current voxel point is set to a first value; when the current voxel point and the previous dequeued voxel point do not belong to the second voxel point set, the hierarchical label of the current voxel point is set to a first value; when the current voxel point and the previous dequeued voxel point do not belong to the second voxel point set, the hierarchical label of the current voxel point is set to a first value; A voxel point is added with the same level mark as the voxel point that was previously dequeued; when the current voxel point belongs to the second voxel point set, the level mark of the current voxel point is set to a second value, and the second value is a preset multiple of the level mark of the voxel point that was previously dequeued; when the current voxel point does not belong to the second voxel point set and the voxel point that was previously dequeued belongs to the second voxel point set, the level mark of the current voxel point is set to a third value, and the third value is the sum of the preset mark interval and the maximum level mark of the voxel points in the preset neighborhood of the voxel point that was previously dequeued.
6. The determination method according to claim 1 or 2, characterized in that: In the three-dimensional image, the area corresponding to the target voxel point set belonging to the blood supply range of the severed blood vessel segment is determined as before the resection area corresponding to the lesion in the organ, and the method further includes: Determining the target voxel point set in the vascular centerline classification image based on the Euclidean distance between the voxel point and the disconnected voxel point on the disconnected vascular segment; Determining, in the three-dimensional image, an area corresponding to a target voxel point set belonging to the blood supply range of the severed blood vessel segment as a resection area corresponding to the lesion in the organ, comprises: Based on the mapping relationship between the three-dimensional image and the blood vessel centerline classification image, the target voxel point set is mapped into the three-dimensional image to obtain the resection area.
7. The determination method according to claim 6, characterized in that: The step of determining the target voxel point set in the vascular centerline classification image based on the Euclidean distance between the voxel point and the disconnected voxel point on the disconnected vascular segment comprises: Acquire the Euclidean distance between each voxel point and the vascular voxel point in the vascular centerline graded image, and obtain a distance set corresponding to each voxel point; wherein the vascular voxel point is a voxel point in any vascular segment in the vascular centerline graded image; From the distance set corresponding to each voxel point, the shortest Euclidean distance corresponding to each voxel point is selected to obtain the shortest Euclidean distance set; The voxel points corresponding to the Euclidean distances between the disconnected voxel points are screened in the shortest Euclidean distance set to obtain the target voxel point set.
8. A system for determining a resection area, characterized in that: The determination system comprises: An acquisition module is configured to acquire a three-dimensional image; wherein the three-dimensional image includes: an organ where the lesion is located; A refinement module is configured to iteratively refine the voxel points in the three-dimensional image based on the blood flow topological relationship in the organ to obtain a blood vessel centerline image corresponding to the organ; a marking module configured to mark the vessel segments in the vessel centerline image with vessel segment levels based on the positional relationship between the voxel points in the vessel centerline image, so as to obtain a vessel centerline graded image; A determination module, configured to determine the severed blood vessel segment associated with the lesion based on the blood vessel segment level marked in the blood vessel centerline classification image and the region where the lesion is located in the organ; The determination module is further configured to determine, in the three-dimensional image, an area corresponding to a target voxel point set belonging to a blood supply range of the severed blood vessel segment as a resection area corresponding to the lesion in the organ; The determination module is further configured to: expand the region where the lesion is located in the organ based on a set expansion parameter to obtain an expanded region; determine, in the vascular centerline classification image, a vascular segment to be processed that intersects with an edge of the expanded region; and determine, in the vascular centerline classification image, the severed vascular segment based on a marking level of the vascular segment to be processed in the vascular centerline classification image; The determination module is further configured to: determine, in the vascular centerline graded image, an intermediate vascular segment that is connected to the vascular segment to be processed and has a marking level corresponding to an intermediate level; wherein the intermediate level is a level above the marking level corresponding to the vascular segment to be processed; and determine the intermediate vascular segment as the severed vascular segment.
9. A device for determining a resection area, characterized in that: The determining device comprises: the resection area determining system according to claim 8.
10. An electronic device, characterized in that: The electronic device comprises: A memory for storing computer executable instructions; A processor is used to implement the method for determining the resection area according to any one of claims 1 to 7 when executing the computer executable instructions or computer programs stored in the memory.
11. A computer-readable storage medium storing computer-executable instructions or a computer program, characterized in that: When the computer executable instructions or computer program are executed by a processor, the method for determining a resection area according to any one of claims 1 to 7 is implemented.
