Intracranial blood vessel segmentation method, device, storage medium and electronic device
By determining the seed points and direction vectors in the three-dimensional image of the intracranial blood vessels, the intracranial blood vessel skeleton map is generated, and combined with the attention mechanism and the field vector coordinate system, the accurate segmentation of the intracranial blood vessel area is achieved, solving the segmentation problems in the existing technology. Imprecision issues and improved diagnostic accuracy.
Patent Information
- Application Number
- CN202111646780.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-12-29
AI Technical Summary
Existing intracranial blood vessel segmentation technology is difficult to accurately segment the intracranial blood vessel area, especially due to the difficulty in extracting the blood vessel centerline, which results in inaccurate segmentation results.
By determining the seed points and direction vectors in the three-dimensional image of intracranial blood vessels, region growth is performed and the intracranial blood vessel skeleton map is generated. Combined with the attention mechanism and field vector coordinate system, the intracranial blood vessel region is accurately segmented.
It achieves more accurate intracranial blood vessel segmentation images, solves the problem of inaccurate segmentation caused by difficulty in extracting the centerline of intracranial blood vessels, and improves the accuracy of diagnosis.
Smart Images

Figure CN114359207B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a method, device, storage medium and electronic device for segmenting intracranial blood vessels. Background Art
[0002] In recent years, with the continuous advancement of modern medical imaging equipment and the development of deep learning, more and more scholars have begun to use deep learning technology for disease diagnosis. At present, the application of deep learning in the medical field to assist diagnosis and treatment has become a trend, and it has great significance in medical image segmentation.
[0003] Among them, the image segmentation of head and neck blood vessels is of great significance for doctors to make diagnoses, especially the image segmentation of intracranial blood vessels. Compared with other blood vessel segmentations, intracranial blood vessels are unique in that they are not only very fine, but also form reflux, which brings new challenges to blood vessel segmentation. Summary of the invention
[0004] In order to solve the above technical problems, the present application is proposed. The embodiments of the present application provide a method, device, storage medium and electronic device for segmenting intracranial blood vessels.
[0005] In a first aspect, an embodiment of the present application provides a method for intracranial blood vessel segmentation, comprising: based on a first three-dimensional image of intracranial blood vessels corresponding to a three-dimensional image of a head and neck to be segmented, determining M seed points corresponding to the intracranial blood vessels contained in the first three-dimensional image of intracranial blood vessels, where M is a positive integer; determining a direction vector of each of the M seed points; based on the direction vectors of each of the M seed points, performing intracranial blood vessel region growth to obtain a second three-dimensional image of intracranial blood vessels, wherein the second three-dimensional image of intracranial blood vessels includes segmentation information; segmenting the second three-dimensional image of intracranial blood vessels to obtain an intracranial blood vessel segmentation result of the three-dimensional image of the head and neck to be segmented.
[0006] In combination with the first aspect, in some implementations of the first aspect, performing intracranial blood vessel region growth based on the direction vectors of the M seed points to obtain a second intracranial blood vessel three-dimensional image includes:
[0007] Based on the direction vectors of each of the M seed points, M polar coordinates are determined, wherein the M polar coordinates correspond to the direction vectors of each of the M seed points one by one; based on the M polar coordinates, an attention mechanism for the M polar coordinates is determined; based on the attention mechanism, an intracranial vascular skeleton map is generated; based on the intracranial vascular skeleton map, intracranial vascular region growth is performed to obtain a second intracranial vascular three-dimensional image.
[0008] In combination with the first aspect, in certain implementations of the first aspect, based on the intracranial vascular skeleton map, intracranial vascular region growing is performed to obtain a second intracranial vascular three-dimensional image, including: based on the intracranial vascular skeleton map, calculating the field vector of each of N feature points on the intracranial vascular skeleton, where N is a positive integer; based on the field vectors of each of the N feature points, constructing N field vector coordinate systems, and the N field vector coordinate systems correspond one-to-one to the field vectors of each of the N feature points; based on the N field vector coordinate systems and a preset pixel similarity threshold, performing region growing at each of the N feature points to obtain a second intracranial vascular three-dimensional image.
[0009] In combination with the first aspect, in certain implementations of the first aspect, the direction vector of the seed point is determined based on the position information of the seed point, the pixel value of the seed point, and the pixel gradient value in the neighborhood of the seed point.
[0010] In combination with the first aspect, in certain implementations of the first aspect, the second intracranial vascular three-dimensional image is segmented to obtain an intracranial vascular segmentation result of the head and neck three-dimensional image to be segmented, including: performing a block operation on the second intracranial vascular three-dimensional image to obtain multiple intracranial vascular image blocks; using the first image segmentation model, based on the multiple intracranial vascular image blocks, determining the fine segmentation image blocks corresponding to each of the multiple intracranial vascular image blocks; and performing image reconstruction based on the fine segmentation image blocks corresponding to each of the multiple intracranial vascular image blocks to obtain an intracranial vascular segmentation result.
[0011] In combination with the first aspect, in certain implementations of the first aspect, the second intracranial blood vessel three-dimensional image is obtained by performing a slicing operation based on a centerline of the intracranial blood vessel.
[0012] In combination with the first aspect, in certain implementations of the first aspect, before determining the M seed points corresponding to the intracranial blood vessels contained in the first intracranial blood vessel three-dimensional image based on the first intracranial blood vessel three-dimensional image corresponding to the head and neck three-dimensional image to be segmented, it also includes: downsampling the head and neck three-dimensional image to be segmented to obtain a downsampled intracranial blood vessel three-dimensional image; using a second image segmentation model, based on the downsampled intracranial blood vessel three-dimensional image, determining a downsampled coarsely segmented three-dimensional image corresponding to the downsampled intracranial blood vessel three-dimensional image; and upsampling the downsampled coarsely segmented three-dimensional image to obtain the first intracranial blood vessel three-dimensional image.
[0013] In a second aspect, an embodiment of the present application provides an intracranial blood vessel segmentation device, comprising: a first determination module, for determining, based on a first intracranial blood vessel three-dimensional image corresponding to a head and neck three-dimensional image to be segmented, M seed points corresponding to the intracranial blood vessels contained in the first intracranial blood vessel three-dimensional image, where M is a positive integer;
[0014] The second determination module is used to determine the direction vector of each of the M seed points; the third determination module is used to grow the intracranial blood vessel region based on the direction vector of each of the M seed points to obtain a second intracranial blood vessel three-dimensional image, and the second intracranial blood vessel three-dimensional image includes segmentation information; the fourth determination module is used to segment the second intracranial blood vessel three-dimensional image to obtain the intracranial blood vessel segmentation result of the head and neck three-dimensional image to be segmented.
[0015] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program for executing the intracranial blood vessel segmentation method mentioned in any of the above embodiments.
[0016] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; and the processor is used to execute the intracranial blood vessel segmentation method mentioned in any of the above embodiments.
[0017] The intracranial blood vessel segmentation method provided in the embodiment of the present application determines M seed points of the first intracranial blood vessel three-dimensional image and the direction vectors of each of the M seed points, grows the intracranial blood vessel region, obtains a second intracranial blood vessel three-dimensional image including segmentation information, and segments the second intracranial blood vessel three-dimensional image to obtain an intracranial blood vessel segmentation image. The method can obtain a more accurate intracranial blood vessel segmentation image, solving the problem that it is difficult to accurately segment the intracranial blood vessel region due to the difficulty in extracting the intracranial blood vessel centerline. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0019] Figure 1 Shown is a schematic diagram of a scenario applicable to an embodiment of the present application.
[0020] Figure 2 Shown is a flowchart of an intracranial blood vessel segmentation method provided by an exemplary embodiment of the present application.
[0021] Figure 3 The figure shows a flow chart of performing intracranial blood vessel region growth based on the direction vectors of each of M seed points to obtain a second intracranial blood vessel three-dimensional image, provided by an exemplary embodiment of the present application.
[0022] Figure 4Shown is a schematic structural diagram of an intracranial vascular skeleton provided by an exemplary embodiment of the present application.
[0023] Figure 5 The figure shows a flow chart of an exemplary embodiment of the present application for performing intracranial vascular region growth based on an intracranial vascular skeleton image to obtain a second intracranial vascular three-dimensional image.
[0024] Figure 6 Shown is a structural schematic diagram of region growing based on an intracranial blood vessel skeleton map provided by an exemplary embodiment of the present application.
[0025] Figure 7 It is a schematic diagram of a flow chart of segmenting the second intracranial vascular three-dimensional image to obtain the intracranial vascular segmentation result of the head and neck three-dimensional image to be segmented, provided by an exemplary embodiment of the present application.
[0026] Figure 8 Shown is a flow chart of an intracranial blood vessel segmentation method provided in another embodiment of the present application.
[0027] Fig. 9 Shown is a schematic structural diagram of an intracranial blood vessel segmentation device provided in one embodiment of the present application.
[0028] Fig.10 Shown is a schematic structural diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0030] CT (Computed Tomography) is a computer tomography scan that uses precisely collimated X-ray beams, gamma rays, ultrasound, etc., together with extremely sensitive detectors to perform cross-sectional scans one after another around a certain part of the human body. It has the characteristics of fast scanning time and clear images, and can be used to detect a variety of diseases.
[0031] CT angiography, also known as CT vascular imaging, is a non-invasive angiography that uses computer three-dimensional reconstruction methods. It uses the rapid scanning technology of spiral CT to complete cross-sectional scanning within a certain range in a short period of time, that is, when the contrast agent is still concentrated in the blood vessels. The collected image data is sent to the image workstation or the image reconstruction function area of the CT machine for image reconstruction. The reconstruction technology generally uses the maximum intensity projection reconstruction (Maximum Intensity Projection, MIP) method or virtual reality (Virtual Reality, VR) method. By adjusting the image display threshold, only continuous and clear blood vessel shadows can be obtained without surrounding tissue structure shadows. If the appropriate reconstruction method and display threshold are selected, a three-dimensional image that simultaneously displays blood vessels and tissue structures can be obtained, and computer software can be used to observe it at any angle and cut it in any direction.
[0032] Deep learning (DL) is one of the technologies and research fields of machine learning. It realizes artificial intelligence in computing systems by building artificial neural networks (ANNs) with hierarchical structures. Since hierarchical ANNs can extract and filter input information layer by layer, deep learning has the ability to represent learning and can achieve end-to-end supervised and unsupervised learning. The hierarchical ANNs used in deep learning have various forms, and the complexity of their hierarchies is generally referred to as "depth". According to the type of construction, the forms of deep learning include multilayer perceptrons, convolutional neural networks, recurrent neural networks, deep belief networks, and other hybrid constructions. Deep learning uses data to update the parameters in its construction to achieve the training goal. This process is generally referred to as "learning". The common method of learning is gradient descent and its variants. Some statistical learning theories are used to optimize the learning process. In terms of application, deep learning is used to learn high-dimensional data with complex structures and large samples. According to the research fields, it includes computer vision, natural language processing, bioinformatics, automatic control, etc., and has achieved success in real-world problems such as portrait recognition, machine translation, and autonomous driving.
[0033] Image segmentation includes semantic segmentation and instance segmentation. The former is an extension of background separation, requiring the separation of image parts with different semantics, while the latter is an extension of the detection task, requiring the description of the outline of the target. Segmentation is a pixel-level description of the image, which gives each pixel category meaning and is suitable for scenes with high understanding requirements, such as the segmentation of roads and non-roads in unmanned driving.
[0034] The segmentation of head and neck blood vessels is very important for doctors to make diagnoses. Compared with other blood vessel segmentation, the head and neck have their own unique features, especially the intracranial blood vessels. Because the intracranial blood vessels are thin and numerous, and they will form reflux, the blood vessels are entangled and difficult to identify. By extracting the centerline of the blood vessel, it is more convenient to segment the thicker neck blood vessels, but for the segmentation of thinner and larger intracranial blood vessels, the accuracy of the segmentation results does not meet the ideal requirements.
[0035] Figure 1 The figure shows a schematic diagram of a scenario applicable to an embodiment of the present application. The scenario includes a CT scanner 110, a server 120 and a computer device 130. The computer device 130 can obtain a CT image from the CT scanner 110, and the computer device 130 and the server 120 are connected via a communication network. Optionally, the communication network is a wired network or a wireless network.
[0036] The CT scanner 110 is used to perform X-ray scanning on the head and neck to obtain images of the head and neck.
[0037] The computer device 130 may be a general-purpose computer or a computer device composed of a dedicated integrated circuit, etc., which is not limited in the embodiments of the present application. For example, the computer device 130 may be a mobile terminal device such as a tablet computer, or a personal computer. Those skilled in the art will appreciate that the number of the above-mentioned computer devices 130 may be one or more, and their types may be the same or different. For example, the above-mentioned computer device 130 may be one, or the above-mentioned computer device 130 may be dozens or hundreds, or more. The embodiments of the present application do not limit the number and type of the computer devices 130.
[0038] In one embodiment, the computer device 130 may be deployed with a first image segmentation model and a second image segmentation model for segmenting the three-dimensional head and neck image to be segmented. The computer device 130 may use the first image segmentation model and the second image segmentation model deployed thereon to segment the three-dimensional head and neck image to be segmented obtained from the CT scanner 110 to perform intracranial vascular segmentation, thereby obtaining an intracranial vascular segmentation result corresponding to the three-dimensional intracranial vascular image to be segmented.
[0039] The server 120 is a server, or is composed of several servers, or is a virtualization platform, or is a cloud computing service center.
[0040] In some embodiments, the computer device 130 sends the three-dimensional image of the intracranial blood vessels to be segmented obtained from the CT scanner 110 to the server 120. The server 120 uses the first image segmentation model and the second image segmentation model deployed on the computer device 130 to perform intracranial blood vessel segmentation, thereby obtaining an intracranial blood vessel segmentation image.
[0041] Figure 2 FIG. 2 is a flow chart of a method for segmenting intracranial blood vessels provided by an exemplary embodiment of the present application. Figure 2 As shown, the intracranial blood vessel segmentation method provided in the embodiment of the present application includes the following steps.
[0042] Step 40 : Based on the first intracranial blood vessel three-dimensional image corresponding to the head and neck three-dimensional image to be segmented, determine M seed points corresponding to the intracranial blood vessels contained in the first intracranial blood vessel three-dimensional image, where M is an integer.
[0043] Specifically, the three-dimensional head and neck image to be segmented can be a medical image such as computed tomography (CT), magnetic resonance imaging (MRI), computed radiography (CR) or digital radiography (DR), and this application does not make any specific limitation on this.
[0044] In an embodiment of the present application, the three-dimensional image of the head and neck to be segmented is a sequence of computed tomography arteriography (CTA) images of the head and neck to be segmented. In an embodiment of the present application, a seed generation model is used to determine M seed points corresponding to the intracranial blood vessels contained in the first three-dimensional image of intracranial blood vessels based on the first three-dimensional image of intracranial blood vessels.
[0045] Specifically, the seed generation model is an SCnet network. The seed point is the starting point for the subsequent generation of the intracranial vascular skeleton map, and the number of seed points is at least one. In order to improve the accuracy and generation efficiency of the generated intracranial vascular skeleton map, the SCnet network can be used to output seed points corresponding to the intracranial blood vessels of the first intracranial blood vessel three-dimensional image.
[0046] Step 50, determining the direction vector of each of the M seed points.
[0047] Specifically, for M seed points, a direction field network structure VGNetwork is constructed, and the direction vectors at the seed points are calculated respectively using the direction field network structure VGNetwork.
[0048] In this embodiment, the direction vector of the seed point is determined based on the position information of the seed point, the pixel value of the seed point, and the pixel gradient value in the neighborhood of the seed point.
[0049] Step 60: Perform intracranial blood vessel region growth based on the direction vectors of each of the M seed points to obtain a second intracranial blood vessel three-dimensional image.
[0050] Specifically, the second intracranial blood vessel three-dimensional image includes segmentation information.
[0051] Furthermore, the segmentation information refers to the marked blood vessel region after region growing is completed.
[0052] In this embodiment, the intracranial blood vessel region is grown along the direction vectors of the M seed points, and in the obtained second intracranial blood vessel three-dimensional image, the blood vessel region and the non-blood vessel region are marked in different ways.
[0053] Step 70 , segmenting the second intracranial blood vessel three-dimensional image to obtain an intracranial blood vessel segmentation result of the head and neck three-dimensional image to be segmented.
[0054] By calculating the direction vectors of M seed points in the first intracranial vascular three-dimensional image and performing region growing, a second intracranial vascular three-dimensional image including segmentation information is obtained. Further segmentation of the second intracranial vascular three-dimensional image can obtain a more accurate intracranial vascular segmentation image, which solves the problem of difficulty in accurately segmenting the intracranial vascular area due to the difficulty in extracting the intracranial vascular centerline.
[0055] Figure 3 The figure shows a flow chart of an exemplary embodiment of the present invention, which provides a method for growing the intracranial blood vessel region based on the direction vectors of M seed points to obtain a second intracranial blood vessel three-dimensional image. Figure 2 Based on the embodiment shown, Figure 3 The embodiment shown is described below in detail. Figure 3 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.
[0056] like Figure 3 As shown, based on the direction vectors of each of the M seed points, the intracranial blood vessel region is grown to obtain a second intracranial blood vessel three-dimensional image step, including the following steps.
[0057] Step 61, determining M polar coordinates based on the direction vectors of the M seed points.
[0058] Specifically, there is a one-to-one correspondence between the M polar coordinates and the direction vectors of the M seed points.
[0059] Step 62, based on the M polar coordinates, determine the attention mechanism for the M polar coordinates.
[0060] Specifically, the attention mechanism can help the image segmentation model assign different weights to each part of the input, extract more critical and important information, and enable the image segmentation model to make more accurate judgments without bringing a greater burden on the storage and calculation of the image segmentation model.
[0061] Step 63: Generate an intracranial vascular skeleton map based on the attention mechanism.
[0062] Specifically, under the attention mechanism determined above, other growth points are determined according to the direction vectors of the M seed points, and the M seed points are connected with the growth points to generate an intracranial vascular skeleton map.
[0063] Step 64, based on the intracranial blood vessel skeleton image, perform intracranial blood vessel region growth to obtain a second intracranial blood vessel three-dimensional image.
[0064] Figure 4 FIG. 1 is a schematic diagram of the structure of an intracranial vascular skeleton provided by an exemplary embodiment of the present application. Figure 4 As shown, the direction vector at the solid point 1 is calculated based on the points adjacent to it. Figure 4 The solid point 1 in this figure is the growth point in step 63, and the hollow points 2, 3, 4 and 5 are the seed points in step 63. The growth point is determined by the seed point, and the next growth point is determined based on the determined growth point and the seed point, and the growth point and the seed point are connected to obtain the intracranial vascular skeleton map.
[0065] Through the scheme in this embodiment, an intracranial vascular skeleton map is generated by comprehensively considering the direction vector of the seed point and the attention mechanism determined according to the specific circumstances of the intracranial vascular segmentation. The intracranial vascular skeleton map is the basis for regional growing so as to perform more accurate segmentation of the second intracranial vascular three-dimensional image.
[0066] Figure 5 The figure shows a schematic diagram of a process of performing intracranial vascular region growth based on an intracranial vascular skeleton image to obtain a second intracranial vascular three-dimensional image, provided by an exemplary embodiment of the present application. Figure 3 Based on the embodiment shown, Figure 5 The embodiment shown is described below in detail. Figure 5 The embodiment shown and Figure 3 The differences and similarities of the illustrated embodiments are not described in detail.
[0067] like Figure 5 As shown, based on the intracranial blood vessel skeleton map, the intracranial blood vessel region is grown to obtain the second intracranial blood vessel three-dimensional image step, including the following steps.
[0068] Step 641, based on the intracranial blood vessel skeleton image, calculate the field vectors of N feature points on the intracranial blood vessel skeleton, where N is a positive integer.
[0069] Specifically, along the extension direction of the intracranial blood vessel skeleton image, N feature points are selected on the intracranial blood vessel skeleton image.
[0070] Furthermore, the number of feature points can be selected according to the extension length of the intracranial vascular skeleton map. For example, if a section of the intracranial vascular skeleton map is 10 cm long, a feature point can be selected at 5 mm intervals, that is, 20 feature points can be selected for a 10 cm long skeleton map, so as to more quickly grow the vascular region along the intracranial vascular skeleton map.
[0071] It can be understood that the selection of the number of feature points in the embodiments of the present application is only an example, and those skilled in the art can select the number of feature points according to specific circumstances. The present application does not further limit the number of feature points.
[0072] Step 642: construct N field vector coordinate systems based on the field vectors of the N feature points.
[0073] Specifically, the N field vector coordinate systems correspond one-to-one to the field vectors of the N feature points.
[0074] The field vector at the feature point is calculated based on the position data at the feature point, the pixel value at the feature point, the pixel value in the neighborhood of the feature point, and the preset pixel gradient threshold, and then the field vector coordinate system at the feature point is constructed based on the field vector.
[0075] Step 643 , based on the N field vector coordinate systems and the preset pixel similarity threshold, region growing is performed at the N feature points respectively to obtain a second intracranial vascular three-dimensional image.
[0076] Exemplarily, the preset pixel similarity threshold is 10. If the difference between the pixel value at a pixel point adjacent to a feature point and the pixel value at the feature point is less than or equal to 10, the pixel point and the feature point are assigned to the same region, and region growing is performed according to this method.
[0077] Figure 6 FIG. 1 is a schematic diagram of a structure for performing region growing based on an intracranial vascular skeleton map provided by an exemplary embodiment of the present application. Figure 6 As shown, illustratively, two feature points are selected, and a field vector coordinate system is established based on the field vectors of the feature points. In this field vector coordinate system, the region is grown outward based on a preset pixel similarity threshold, and finally a blood vessel image after region growing is obtained.
[0078] Through the technical solution in the embodiment of the present application, the second intracranial vascular three-dimensional image can be obtained by performing region growing through a preset similarity threshold and the selected N feature points. The method in this embodiment is simple and has a fast calculation speed, which can reduce the operating pressure of the computer.
[0079] Figure 7The figure shows a flow chart of segmenting the second intracranial vascular three-dimensional image to obtain the intracranial vascular segmentation result of the head and neck three-dimensional image to be segmented, provided by an exemplary embodiment of the present application. Figure 1 Based on the embodiment shown, Figure 7 The embodiment shown is described below in detail. Figure 7 The embodiment shown and Figure 1 The differences and similarities of the illustrated embodiments are not described in detail.
[0080] like Figure 7 As shown, the step of segmenting the second intracranial vascular three-dimensional image to obtain the intracranial vascular segmentation result of the head and neck three-dimensional image to be segmented includes the following steps.
[0081] Step 71 : performing a block operation on the second intracranial blood vessel three-dimensional image to obtain a plurality of intracranial blood vessel image blocks.
[0082] Specifically, a rough blood vessel centerline of the second intracranial blood vessel three-dimensional image is obtained, and a block operation is performed on the second intracranial blood vessel image along a direction perpendicular to the blood vessel centerline to obtain multiple intracranial blood vessel image blocks, and the position information of each intracranial blood vessel image block is recorded.
[0083] Step 72: using the first image segmentation model, based on the multiple intracranial blood vessel image blocks, determine the fine segmentation image blocks corresponding to each of the multiple intracranial blood vessel image blocks.
[0084] Specifically, the first image segmentation model refers to a SkSegNetwork network, a plurality of intracranial vascular image blocks are input into the SkSegNetwork network, and the SkSegNetwork network outputs finely segmented image blocks corresponding to the plurality of intracranial vascular image blocks.
[0085] Furthermore, in the SkSegNetwork network, considering that the density of blood vessels along the centerline of the blood vessels presents a Gaussian distribution, the loss function of the SkSegNetwork network is improved. The farther from the centerline of the blood vessel, the greater the loss function.
[0086] Step 73 , performing image reconstruction based on the finely segmented image blocks corresponding to each of the plurality of intracranial vascular image blocks to obtain an intracranial vascular segmentation result.
[0087] Based on the position information of each intracranial blood vessel image block recorded in step 71 , the finely segmented image blocks corresponding to each of the plurality of intracranial blood vessel image blocks are reconstructed to obtain an intracranial blood vessel segmentation result.
[0088] In this embodiment, the second intracranial vascular image is sliced, and multiple intracranial vascular image blocks are segmented, and then the segmentation results are reconstructed to obtain the intracranial vascular segmentation result. Through the method in this embodiment, a more accurate segmentation of the second intracranial vascular image is achieved, which facilitates doctors to make more accurate diagnoses based on the segmentation results.
[0089] Figure 8 FIG. 2 is a flow chart of a method for segmenting intracranial blood vessels provided by another embodiment of the present application. Figure 1 Based on the embodiment shown, Figure 8 The embodiment shown is described below in detail. Figure 8 The embodiment shown and Figure 1 The differences and similarities of the illustrated embodiments are not described in detail.
[0090] like Figure 8 As shown, before determining M seed points corresponding to the intracranial blood vessels contained in the first intracranial blood vessel three-dimensional image based on the first intracranial blood vessel three-dimensional image corresponding to the head and neck three-dimensional image to be segmented, the following steps are also included.
[0091] Step 10: down-sample the segmented head and neck 3D image to obtain a down-sampled intracranial vascular 3D image.
[0092] Window width refers to the range of CT values displayed by CT images. Tissue structures within the CT value range are divided into 16 gray levels from white to black according to their density for observation and comparison. For example, if the window width is selected as 200Hu, the CT value that can be distinguished by the human eye is 200 / 16=12.5Hu, that is, two tissues with a difference of more than 12.5Hu can be recognized by the human eye. Therefore, the width of the window width directly affects the clarity and contrast of the image. If a narrow window width is used, the displayed CT value range is small, the CT value represented by each gray level is small, and the contrast is strong, which is suitable for observing tissue structures with similar density, such as brain tissue. On the contrary, if a wide window width is used, the displayed CT value range is large, and the CT value represented by each gray level is large, the image contrast is poor, but the density is uniform, which is suitable for observing structures with high density, such as bones and soft tissues. In principle, the window width should be able to reflect the range of changes in the CT value of the tissue or lesion.
[0093] The window level refers to the mean or center value within the window width. For example, for a CT image, the window width is 200Hu, and the window level is 0Hu. The window level is centered, including +100Hu upward and -100Hu downward. That is, the human eye can only recognize CT values within the range of ±100Hu. In principle, the window level should be equal to or close to the CT value to be observed. Therefore, before image segmentation, the appropriate window level and width should be selected according to the distribution range of intracranial blood vessels in the three-dimensional head and neck image to be segmented.
[0094] Specifically, after selecting a suitable window position and width for the three-dimensional head and neck image to be segmented, a downsampling operation is performed on the three-dimensional head and neck image to be segmented to obtain a downsampled three-dimensional intracranial vascular image whose size is smaller than the original size. The size of the downsampled three-dimensional intracranial vascular image can be 1 / 2, 1 / 3, 1 / 4 of the three-dimensional head and neck image to be segmented, or other suitable values. The downsampling can adopt the Resample Image Filter method of simpleITK, and specifically, the nearest neighbor algorithm with fast processing speed can be selected. Of course, other suitable methods can also be used for downsampling.
[0095] Step 20: using the second image segmentation model, based on the downsampled intracranial vascular three-dimensional image, determine a downsampled coarsely segmented three-dimensional image corresponding to the downsampled intracranial vascular three-dimensional image.
[0096] Specifically, the second image segmentation model refers to the ResUnetMC segmentation network, the downsampled intracranial vascular three-dimensional image is input into the ResUnetMC segmentation network, and the ResUnetMC segmentation network outputs a downsampled coarsely segmented three-dimensional image corresponding to the downsampled intracranial vascular three-dimensional image.
[0097] Among them, the segmentation accuracy of the second image segmentation model is lower than that of the first image segmentation model.
[0098] Step 30: Upsample the downsampled coarsely segmented three-dimensional image to obtain a first intracranial blood vessel three-dimensional image.
[0099] Specifically, the upsampling operation is relative to the downsampling operation, and the ResampleImage Filter method of simpleITK can be used. Specifically, the nearest neighbor algorithm with the fastest processing speed can be selected. Of course, other suitable algorithms can also be used. The size of the first intracranial vascular three-dimensional image obtained after the upsampling process is consistent with the size of the head and neck three-dimensional image to be segmented.
[0100] In this embodiment, downsampling can improve the computational efficiency of image segmentation and shorten the calculation time. Although the accuracy of the first intracranial blood vessel three-dimensional image obtained by the second image segmentation model is not high, it can be further corrected through the subsequent second image segmentation model to obtain a more accurate segmentation result.
[0101] Combination of the above Figures 2 to 8 , describes in detail the embodiment of the intracranial blood vessel segmentation method of the present application, and the following is combined with Fig. 9 , the embodiment of the intracranial blood vessel segmentation device of the present application is described in detail. It should be understood that the description of the embodiment of the intracranial blood vessel segmentation method corresponds to the description of the embodiment of the intracranial blood vessel segmentation device, so the part not described in detail can refer to the previous method embodiment.
[0102] Fig. 9 FIG. 1 is a schematic diagram of the structure of an intracranial blood vessel segmentation device provided by an exemplary embodiment of the present application. Fig. 9 As shown, the intracranial blood vessel segmentation device provided in the embodiment of the present application includes:
[0103] The first determination module 100 is used to determine M seed points corresponding to the intracranial blood vessels contained in the first intracranial blood vessel three-dimensional image based on the first intracranial blood vessel three-dimensional image corresponding to the head and neck three-dimensional image to be segmented, where M is a positive integer;
[0104] A second determination module 200 is used to determine the direction vector of each of the M seed points;
[0105] The third determination module 300 is used to perform intracranial blood vessel region growth based on the direction vectors of each of the M seed points to obtain a second intracranial blood vessel three-dimensional image, wherein the second intracranial blood vessel three-dimensional image includes segmentation information;
[0106] The fourth determination module 400 is used to segment the second intracranial blood vessel three-dimensional image to obtain an intracranial blood vessel segmentation result of the head and neck three-dimensional image to be segmented.
[0107] In one embodiment of the present application, the third determination module 300 is also used to determine M polar coordinates based on the direction vectors of each of the M seed points, wherein the M polar coordinates correspond to the direction vectors of each of the M seed points one-to-one; based on the M polar coordinates, determine the attention mechanism for the M polar coordinates; based on the attention mechanism, generate an intracranial vascular skeleton map; based on the intracranial vascular skeleton map, perform intracranial vascular region growth to obtain a second intracranial vascular three-dimensional image.
[0108] In one embodiment of the present application, the third determination module 300 is also used to calculate the field vector of each of N feature points on the intracranial vascular skeleton based on the intracranial vascular skeleton map, where N is a positive integer; construct N field vector coordinate systems based on the field vectors of each of the N feature points, and the N field vector coordinate systems correspond one-to-one to the field vectors of each of the N feature points; based on the N field vector coordinate systems and a preset pixel similarity threshold, perform regional growth at the N feature points to obtain a second intracranial vascular three-dimensional image.
[0109] In one embodiment of the present application, the direction vector of the seed point is determined based on the position information of the seed point, the pixel value of the seed point, and the pixel gradient value in the neighborhood of the seed point.
[0110] In one embodiment of the present application, the fourth module 400 is also used to perform a block operation on the second intracranial vascular three-dimensional image to obtain multiple intracranial vascular image blocks; using the first image segmentation model, based on the multiple intracranial vascular image blocks, determine the fine segmentation image blocks corresponding to each of the multiple intracranial vascular image blocks; perform image reconstruction based on the fine segmentation image blocks corresponding to each of the multiple intracranial vascular image blocks to obtain an intracranial vascular segmentation result.
[0111] In one embodiment of the present application, the second intracranial blood vessel three-dimensional image is obtained by performing a cutting operation based on the center line of the intracranial blood vessels.
[0112] In one embodiment of the present application, the first determination module 100 is also used to downsample the segmented head and neck three-dimensional image to obtain a downsampled intracranial vascular three-dimensional image; using the second image segmentation model, based on the downsampled intracranial vascular three-dimensional image, determine the downsampled coarsely segmented three-dimensional image corresponding to the downsampled intracranial vascular three-dimensional image; upsample the downsampled coarsely segmented three-dimensional image to obtain a first intracranial vascular three-dimensional image.
[0113] It should be understood that Fig. 9 The operations and functions of the first determination module 100, the second determination module 200, the third determination module 300 and the fourth determination module 400 in the intracranial blood vessel segmentation device provided can refer to the above Figures 2 to 8 The intracranial blood vessel segmentation method provided is not described here in detail to avoid repetition.
[0114] Below, reference Fig.10 To describe an electronic device according to an embodiment of the present application. Fig.10 Shown is a schematic structural diagram of an electronic device provided by an exemplary embodiment of the present application.
[0115] like Fig.10 As shown, the electronic device 1010 includes one or more processors 1001 and a memory 1002 .
[0116] The processor 1001 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 1010 to perform desired functions.
[0117] The memory 1002 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 1001 may run the program instructions to implement the intracranial blood vessel segmentation method of each embodiment of the present application described above and / or other desired functions. Various contents such as a first intracranial blood vessel three-dimensional image, direction vectors of each of the M seed points, and a second intracranial blood vessel three-dimensional image may also be stored in the computer-readable storage medium.
[0118] In one example, the electronic device 1010 may further include: an input device 1003 and an output device 1004 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0119] The input device 1003 may include, for example, a keyboard, a mouse, etc.
[0120] The output device 1004 can output various information to the outside, including the first intracranial blood vessel three-dimensional image, the direction vectors of the M seed points, the second intracranial blood vessel three-dimensional image, etc. The output device 1004 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, etc.
[0121] Of course, to simplify, Fig.10 Only some of the components related to the present application in the electronic device 1010 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 1010 may also include any other appropriate components.
[0122] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the intracranial blood vessel segmentation method according to various embodiments of the present application described above in this specification.
[0123] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0124] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the intracranial blood vessel segmentation method according to various embodiments of the present application described above in this specification.
[0125] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0126] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.
[0127] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.
[0128] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.
[0129] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0130] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A method for segmenting intracranial blood vessels, characterized in that: include: Based on a first three-dimensional image of intracranial blood vessels corresponding to the three-dimensional image of the head and neck to be segmented, determining M seed points corresponding to the intracranial blood vessels contained in the first three-dimensional image of intracranial blood vessels, where M is a positive integer; Determine the direction vector of each of the M seed points; Based on the direction vectors of each of the M seed points, performing intracranial blood vessel region growing to obtain a second intracranial blood vessel three-dimensional image, wherein the second intracranial blood vessel three-dimensional image includes segmentation information, and the segmentation information represents the marked blood vessel region after region growing; Segmenting the second intracranial blood vessel three-dimensional image to obtain an intracranial blood vessel segmentation result of the head and neck three-dimensional image to be segmented; Before determining the M seed points corresponding to the intracranial blood vessels contained in the first intracranial blood vessel three-dimensional image based on the first intracranial blood vessel three-dimensional image corresponding to the head and neck three-dimensional image to be segmented, the method further includes: Downsampling the three-dimensional head and neck image to be segmented to obtain a downsampled three-dimensional intracranial blood vessel image; Determine, using a second image segmentation model, a downsampled coarsely segmented three-dimensional image corresponding to the downsampled three-dimensional image of intracranial blood vessels based on the downsampled three-dimensional image of intracranial blood vessels; The down-sampled coarsely segmented three-dimensional image is up-sampled to obtain the first intracranial blood vessel three-dimensional image.
2. The intracranial blood vessel segmentation method according to claim 1, characterized in that: The step of performing intracranial blood vessel region growth based on the direction vectors of each of the M seed points to obtain a second intracranial blood vessel three-dimensional image includes: Based on the direction vectors of the M seed points, M polar coordinates are determined, wherein the M polar coordinates correspond to the direction vectors of the M seed points one by one; Based on the M polar coordinates, determining an attention mechanism for the M polar coordinates; Based on the attention mechanism, generating an intracranial vascular skeleton map; Based on the intracranial blood vessel skeleton image, the intracranial blood vessel region is grown to obtain the second intracranial blood vessel three-dimensional image.
3. The intracranial blood vessel segmentation method according to claim 2, characterized in that: The step of performing the intracranial blood vessel region growth based on the intracranial blood vessel skeleton image to obtain the second intracranial blood vessel three-dimensional image includes: Based on the intracranial blood vessel skeleton image, calculating the field vectors of N feature points on the intracranial blood vessel skeleton, where N is a positive integer; Based on the field vectors of the N feature points, construct N field vector coordinate systems, wherein the N field vector coordinate systems correspond one-to-one to the field vectors of the N feature points; Based on the N field vector coordinate systems and a preset pixel similarity threshold, region growing is performed at the N feature points to obtain the second intracranial blood vessel three-dimensional image.
4. The intracranial blood vessel segmentation method according to any one of claims 1 to 3, characterized in that: The direction vector of the seed point is determined based on the position information of the seed point, the pixel value of the seed point and the pixel gradient value in the neighborhood of the seed point.
5. The intracranial blood vessel segmentation method according to any one of claims 1 to 3, characterized in that: The step of segmenting the second intracranial vascular three-dimensional image to obtain the intracranial vascular segmentation result of the head and neck three-dimensional image to be segmented includes: performing a block operation on the second intracranial blood vessel three-dimensional image to obtain a plurality of intracranial blood vessel image blocks; Using the first image segmentation model, based on the multiple intracranial blood vessel image blocks, determine the fine segmentation image blocks corresponding to each of the multiple intracranial blood vessel image blocks; Image reconstruction is performed based on the finely segmented image blocks corresponding to each of the multiple intracranial blood vessel image blocks to obtain the intracranial blood vessel segmentation result.
6. The intracranial blood vessel segmentation method according to claim 5, characterized in that: The second intracranial blood vessel three-dimensional image is obtained by performing a cutting operation based on the intracranial blood vessel centerline.
7. An intracranial blood vessel segmentation device, characterized in that: include: A first determination module is used to determine, based on a first three-dimensional image of intracranial blood vessels corresponding to the three-dimensional image of head and neck to be segmented, M seed points corresponding to the intracranial blood vessels contained in the first three-dimensional image of intracranial blood vessels, where M is a positive integer; A second determination module is used to determine the direction vector of each of the M seed points; a third determination module, configured to perform intracranial blood vessel region growth based on the direction vectors of each of the M seed points to obtain a second intracranial blood vessel three-dimensional image, wherein the second intracranial blood vessel three-dimensional image includes segmentation information, and the segmentation information represents a marked blood vessel region after region growing; a fourth determination module, configured to segment the second intracranial vascular three-dimensional image to obtain an intracranial vascular segmentation result of the head and neck three-dimensional image to be segmented; The first determination module is also used to downsample the head and neck three-dimensional image to be segmented to obtain a downsampled intracranial vascular three-dimensional image; use a second image segmentation model to determine a downsampled coarsely segmented three-dimensional image corresponding to the downsampled intracranial vascular three-dimensional image based on the downsampled intracranial vascular three-dimensional image; and upsample the downsampled coarsely segmented three-dimensional image to obtain the first intracranial vascular three-dimensional image.
8. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the intracranial blood vessel segmentation method according to any one of claims 1 to 6.
9. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to execute the intracranial blood vessel segmentation method according to any one of claims 1 to 6.
