Aneurysm segmentation method, electronic device and storage medium

By generating three-dimensional vascular data and training an aneurysm segmentation model, the problem of modality and human factors in aneurysm image segmentation is solved, and the consistency and accuracy of segmentation are improved.

CN116758096BActive Publication Date: 2024-09-24UNION STRONG (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310809463.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-03
Publication Date
2024-09-24
Estimated Expiration
2043-07-03

AI Technical Summary

Technical Problem

In the existing technology, the segmentation of aneurysm images is inconsistent due to the influence of different modalities of image data and human factors, which affects the accuracy of segmentation.

Method used

By obtaining the blood vessel information in the original image data, three-dimensional blood vessel data is generated, and the aneurysm segmentation model is trained based on the three-dimensional blood vessel sample set and aneurysm annotation information to reduce the impact of modality and human factors on the segmentation results.

Benefits of technology

It improves the consistency and accuracy of aneurysm data segmentation and reduces the impact of different modal image data on the segmentation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116758096B
    Figure CN116758096B
Patent Text Reader

Abstract

The present application discloses an aneurysm segmentation method, an electronic device and a storage medium. The method includes: obtaining original image data, the original image data includes vascular information; generating three-dimensional vascular data based on the vascular information; inputting the three-dimensional vascular data into an aneurysm segmentation model to obtain an aneurysm segmentation result output by the aneurysm segmentation model; wherein the aneurysm segmentation model is obtained based on the three-dimensional vascular sample set and aneurysm annotation information training; the three-dimensional vascular sample set is a set of three-dimensional vascular sample data obtained after vascular extraction processing is performed on each original sample data in the original sample data set. The technical solution of the present application can improve the consistency of aneurysm data segmentation, reduce the interference of the modality of the original data and artificial segmentation on the segmentation result, and improve the accuracy of aneurysm data segmentation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application generally relates to the field of image data processing technology. More specifically, the present application relates to an aneurysm segmentation method, an electronic device and a storage medium. Background Art

[0002] There are many imaging scanning methods in the current clinical examination of cerebrovascular diseases, including CT angiography, magnetic resonance imaging MRA and digital subtraction angiography DSA. The imaging data of different modalities are different, so it is very difficult to complete the cross-modal aneurysm data segmentation task. However, aneurysm images can be used in clinical practice to measure the morphological parameters of aneurysms, and then quantitatively describe the characteristics of aneurysms or be used for auxiliary diagnosis of aneurysms, so the accuracy of aneurysm data segmentation is very important in clinical applications.

[0003] In clinical practice, aneurysm images can be manually segmented by doctors, but manual segmentation is usually affected by the doctor's subjective consciousness, resulting in different segmentation results from different doctors. In the prior art, the original medical image can be directly input into the network model to complete the segmentation of the aneurysm image pixel by pixel. Although this method can reduce the interference caused by human subjective factors in the process of aneurysm image segmentation, image data of different modalities will have a greater impact on the segmentation results of the aneurysm image.

[0004] In view of this, there is an urgent need to provide an aneurysm segmentation method in order to improve the consistency of aneurysm data segmentation, reduce the interference of the modality of the original data and artificial segmentation on the segmentation results, and improve the accuracy of aneurysm data segmentation. Summary of the invention

[0005] In order to at least solve one or more of the technical problems mentioned above, the present application proposes an aneurysm segmentation method, an electronic device and a storage medium. The aneurysm segmentation method can improve the consistency of aneurysm data segmentation, reduce the interference of the modality of the original data and artificial segmentation on the segmentation results, and improve the accuracy of aneurysm data segmentation.

[0006] In a first aspect, the present application provides an aneurysm segmentation method, comprising: acquiring original image data, the original image data including vascular information; generating three-dimensional vascular data based on the vascular information; inputting the three-dimensional vascular data into an aneurysm segmentation model to obtain an aneurysm segmentation result output by the aneurysm segmentation model; wherein the aneurysm segmentation model is obtained by training based on a three-dimensional vascular sample set and aneurysm annotation information; and the three-dimensional vascular sample set is a collection of three-dimensional vascular sample data obtained after vascular extraction processing is performed on each original sample data in the original sample data set.

[0007] In some embodiments, obtaining an aneurysm segmentation model based on a three-dimensional vascular sample set and training of aneurysm annotation information includes: acquiring an original sample data set; performing vascular extraction processing on each original sample data in the original sample data set based on a preset extraction algorithm to obtain a three-dimensional vascular sample set; mapping the aneurysm annotation information corresponding to each original sample data in the original sample data set to each three-dimensional vascular sample data corresponding to each original sample data in the three-dimensional vascular sample set to obtain a target vascular sample set; and inputting the target vascular sample set into an initial segmentation model for training to obtain an aneurysm segmentation model.

[0008] In some embodiments, the initial segmentation model includes an encoding structure and a decoding structure, and inputting the target blood vessel sample set into the initial segmentation model for training includes: inputting the target blood vessel sample data in the target blood vessel sample set into the encoding structure for M times of feature extraction processing to obtain intermediate feature data; inputting the intermediate feature data into the decoding structure for M times of upsampling processing to obtain target feature data; determining the node prediction result of each node in the target blood vessel sample data based on the target feature data and a preset output function; determining the loss value based on the node prediction result, the aneurysm annotation information of the target blood vessel sample data and a preset loss function; and determining whether to output the aneurysm segmentation model according to the loss value.

[0009] In some embodiments, when inputting the target blood vessel sample data in the target blood vessel sample set into the encoding structure for M times of feature extraction processing, the feature extraction processing includes: determining the grouping center point of the feature data currently undergoing feature extraction processing through the FPS algorithm; grouping the nodes in the current feature data according to the grouping center point to obtain multiple node groups; performing feature fusion on the node features in each node group through the convolution algorithm, and determining the grouping features of each node group through maximum pooling to obtain updated feature data.

[0010] In some embodiments, when inputting the intermediate feature data into the decoding structure for M upsampling processes, the upsampling processes include: determining j node distances based on j first center points and second center points; the j first center points are the j center points closest to the second center point among the grouped center points of the feature data subjected to the upsampling process for the kth time; the second center point is the grouped center point in the feature data subjected to the feature extraction process for the M+1-kth time; determining j interpolation weights according to the j node distances; and updating the feature vector of the second center point according to the j interpolation weights and the feature vectors of the j first center points.

[0011] In some embodiments, determining the loss value based on the node prediction results, the aneurysm annotation information of the target blood vessel sample data and a preset loss function includes: determining the true value of each node in the target blood vessel sample data according to the aneurysm annotation information of the target blood vessel sample data; determining the loss value according to the node prediction results of each node, the true value of each node and a preset loss function.

[0012] In some embodiments, determining the loss value according to the node prediction result of each node, the true value of each node and the preset loss function includes: inputting the node prediction result of each node and the true value of each node into the preset loss function to obtain the loss value; the preset loss function is:

[0013]

[0014] Among them, is the true value of the i-th node, is the node prediction result of the i-th node, and N is the number of nodes.

[0015] In some embodiments, determining whether to output the aneurysm segmentation model based on the loss value includes: if the number of training iterations reaches a preset number, and / or if the loss value obtained for x consecutive times in each loss value does not decrease, then stop updating the model parameters of the initial segmentation model and output the aneurysm segmentation model.

[0016] In some embodiments, performing vascular extraction processing on each original sample data in the original sample data set based on a preset extraction algorithm includes: extracting vascular data on each original sample data through a threshold extraction algorithm or a deep learning algorithm to obtain vascular extraction information; performing three-dimensional vascular restoration on the vascular extraction information corresponding to each original sample data through a MarchingCubes algorithm to obtain three-dimensional vascular sample data corresponding to each original sample data.

[0017] A second aspect of the present application provides an electronic device, including:

[0018] A processor; and a memory having executable codes stored thereon, which, when executed by the processor, cause the processor to execute the method as described above.

[0019] A third aspect of the present application provides a non-transitory machine-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.

[0020] The technical solution provided by this application may have the following beneficial effects:

[0021] The aneurysm segmentation method, electronic device and storage medium provided by the present application obtain original image data, which contains vascular information, and then generate three-dimensional vascular data based on the vascular information, and then input the three-dimensional vascular data into the aneurysm segmentation model to obtain the aneurysm segmentation result output by the aneurysm segmentation model. By converting the original vascular information into three-dimensional spatial data, and then performing data segmentation based on the three-dimensional spatial data, it is possible to segment aneurysm images in original image data of different modalities using only one deep learning model for three-dimensional spatial data, thereby greatly reducing the influence of original image data of different modalities on the segmentation result.

[0022] Furthermore, the aneurysm segmentation model is trained based on a three-dimensional vascular sample set and aneurysm annotation information, wherein the three-dimensional vascular sample set is a collection of three-dimensional vascular sample data obtained after vascular extraction processing is performed on each original sample data set, thereby enabling the deep learning model of the present application to have the ability to segment aneurysm images according to the aneurysm annotation information, thereby forming an aneurysm segmentation model.

[0023] In general, the present application scheme can improve the consistency of aneurysm data segmentation, reduce the interference of the modality of the original data and artificial segmentation on the segmentation results, and improve the accuracy of aneurysm data segmentation. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0025] Figure 1 An exemplary flow chart showing the aneurysm segmentation method according to some embodiments of the present application is shown;

[0026] Figure 2 An exemplary flow chart showing a method for segmenting an aneurysm according to some other embodiments of the present application;

[0027] Figure 3 An exemplary flow chart showing the aneurysm segmentation method according to some other embodiments of the present application;

[0028] Figure 4 It is a schematic diagram of the structure of an electronic device shown in an 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 part of the embodiments of the present application, rather than all of the embodiments. For the simplicity and clarity of the description, the figure marks may be repeated in the drawings to indicate corresponding or similar elements when deemed appropriate. In addition, the present application sets forth many specific details in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein may be practiced without these specific details. In other cases, well-known methods, processes, and components are not described in detail to avoid blurring the embodiments described herein. Moreover, the description should not be regarded as limiting the scope of the embodiments described herein. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

[0030] It should be understood that the possible terms "first" or "second" etc. in the claims, specifications and drawings disclosed in this application are used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the specification and claims of this application indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.

[0031] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in this application specification and claims, unless the context clearly indicates otherwise, the singular forms of "a", "an" and "the" are intended to include plural forms. It should also be further understood that the term "and / or" used in this application specification and claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0032] As used in this specification and claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0033] Aneurysm images can be used clinically to measure the morphological parameters of aneurysms, and then quantitatively describe the characteristics of aneurysms or be used for auxiliary diagnosis of aneurysms, etc. Therefore, the accuracy of aneurysm data segmentation is very important in clinical applications. In clinical practice, aneurysm images can be manually segmented by doctors, but manual segmentation is usually affected by the doctor's subjective consciousness, resulting in different segmentation results from different doctors. In the prior art, the original medical image can be directly input into the network model, and then the aneurysm image is segmented pixel by pixel. Although this method can reduce the interference caused by human subjective factors in the segmentation process of aneurysm images, image data of different modalities will have a greater impact on the segmentation results of aneurysm images.

[0034] In view of this, there is an urgent need to provide an aneurysm segmentation method in order to improve the consistency of aneurysm data segmentation, reduce the interference of the modality of the original data and artificial segmentation on the segmentation results, and improve the accuracy of aneurysm data segmentation.

[0035] The specific implementation of the present application is described in detail below with reference to the accompanying drawings. Figure 1 An exemplary flowchart showing the aneurysm segmentation method of some embodiments of the present application is shown in FIG. Figure 1 , the aneurysm segmentation method shown in the embodiment of the present application may include:

[0036] In step S101, the original image data is obtained. In the embodiment of the present application, the aforementioned original image data refers to the original image from which the aneurysm image needs to be segmented. It is understandable that the original image data contains vascular information, and the vascular information must also contain the ROI (region of interest) of the aneurysm image. Exemplarily, the original image data can be image data of different modalities acquired by scanning methods such as CT angiography, magnetic resonance imaging MRA, and digital subtraction angiography DSA. In actual applications, the modality of the original image data needs to be determined according to the actual application situation, and the present application does not impose any restrictions in this regard.

[0037] In step S102, three-dimensional vascular data is generated based on the vascular information. In the embodiment of the present application, it is necessary to extract the vascular information from the original image data and perform 3D reconstruction based on the vascular information to restore the three-dimensional vascular data. The purpose of this is to avoid the situation where the original image data is directly input into the aneurysm segmentation model, causing the segmentation result to be affected by the image data of different modalities, so that only one deep learning model for three-dimensional spatial data can be used to segment the aneurysm image in the original image data of different modalities, reducing the interference caused by the modality of the original data.

[0038] In step S103, the three-dimensional blood vessel data is input into the aneurysm segmentation model to obtain the aneurysm segmentation result output by the aneurysm segmentation model. In an embodiment of the present application, the aforementioned aneurysm segmentation model is trained based on a three-dimensional blood vessel sample set and aneurysm annotation information. Before outputting the aneurysm segmentation result, the data output by the model can be compared with a preset threshold. If the output data is greater than the preset threshold, the position corresponding to the output data can be regarded as the position of the aneurysm, thereby finally obtaining the aneurysm segmentation result. On the contrary, the position corresponding to the output data can be regarded as the position of the blood vessel. Preferably, the preset threshold can be 0.5. In actual applications, the value of the preset threshold needs to be determined according to the actual application situation. The present application does not impose any restrictions in this regard.

[0039] The three-dimensional blood vessel sample set is a set of three-dimensional blood vessel sample data obtained after performing blood vessel extraction processing on each original sample data in the original sample data set. It can be understood that each original sample data in the aforementioned original sample data set refers to sample image data of different modalities obtained by scanning means such as CT angiography, magnetic resonance imaging MRA and digital subtraction angiography DSA.

[0040] Further, each original sample data in the original sample data set is subjected to a blood vessel extraction process to obtain each three-dimensional blood vessel sample data corresponding to each original sample data, thereby aggregating each three-dimensional blood vessel sample data into a three-dimensional blood vessel sample set. In the embodiment of the present application, the blood vessel extraction process may at least use threshold extraction or use a deep learning neural network for extraction. It is understandable that in actual applications, the method of blood vessel extraction processing needs to be determined according to actual application conditions, and the present application does not impose any limitation in this regard.

[0041] In addition, the aneurysm annotation information refers to the information recorded in the aneurysm annotation label (mask) respectively contained in each original sample data in the original sample data set, and the aneurysm annotation information may include but is not limited to information on whether the current position is an aneurysm and coordinate information of the current position, etc. It is understandable that in actual applications, the specific content of the aneurysm annotation information needs to be determined according to actual application conditions, and this application does not impose any restrictions in this regard.

[0042] It can also be understood that the aneurysm segmentation model obtained by training based on a large amount of three-dimensional vascular sample data and the aneurysm annotation information in each original sample data can have the ability to segment the aneurysm image in the three-dimensional vascular sample data according to the aneurysm annotation information, thereby enabling the aneurysm segmentation model to have the ability to perform aneurysm segmentation on the three-dimensional vascular data converted from original image data of different modalities after training.

[0043] By acquiring the original image data, which contains vascular information, and then generating three-dimensional vascular data based on the vascular information, and then inputting the three-dimensional vascular data into the aneurysm segmentation model, the aneurysm segmentation result output by the aneurysm segmentation model is obtained. By converting the original vascular information into three-dimensional spatial data, and then performing data segmentation based on the three-dimensional spatial data, it is possible to segment the aneurysm image in the original image data of different modalities using only one deep learning model for three-dimensional spatial data, which greatly reduces the influence of the original image data of different modalities on the segmentation result. Furthermore, the aneurysm segmentation model is trained based on the three-dimensional vascular sample set and aneurysm annotation information, wherein the three-dimensional vascular sample set is a set of three-dimensional vascular sample data obtained after vascular extraction processing is performed on each original sample data in the original sample data set, so that the deep learning model of the present application can have the ability to segment the aneurysm image according to the aneurysm annotation information to form an aneurysm segmentation model. In general, the present application scheme can improve the consistency of aneurysm data segmentation, reduce the interference of the modality of the original data and artificial segmentation on the segmentation result, and improve the accuracy of aneurysm data segmentation.

[0044] In some embodiments, the training steps of the aneurysm segmentation model can be further designed. Figure 2 Let’s explain the training steps of the aneurysm segmentation model in detail. Figure 2 FIG. 1 is an exemplary flowchart showing the aneurysm segmentation method of some other embodiments of the present application, see Figure 2 In the aneurysm segmentation method shown in the embodiment of the present application, the training method of the aneurysm segmentation model may include:

[0045] In step S201, the original sample data set is obtained. The aforementioned original sample data set can be obtained by calling the image database corresponding to the scanning means such as CT angiography, magnetic resonance imaging MRA and / or digital subtraction angiography DSA. It can be understood that in actual applications, the original sample data set is obtained in various ways, and the original sample data set needs to be determined according to the actual application situation. The present application does not impose any restrictions in this regard.

[0046] In step S202, a blood vessel extraction process is performed on each original sample data in the original sample data set based on a preset extraction algorithm to obtain a three-dimensional blood vessel sample set. In the embodiment of the present application, as an example, blood vessel data can be first extracted from each original sample data by a threshold extraction algorithm or by using a deep learning neural network to obtain blood vessel extraction information. Exemplarily, assuming that a threshold extraction algorithm is used to extract blood vessel data, a grayscale threshold can be pre-set. If it is greater than the grayscale threshold, it is determined that the pixel position corresponding to the grayscale belongs to a blood vessel.

[0047] Furthermore, the blood vessel extraction information corresponding to each original sample data can be restored to three-dimensional blood vessels by MarchingCubes algorithm to obtain three-dimensional blood vessel sample data corresponding to each original sample data. MarchingCubes is a surface rendering algorithm, which can be used for three-dimensional reconstruction of medical images.

[0048] It is understandable that the above description of the blood vessel extraction process is only exemplary. In practical applications, it is necessary to select a suitable method to implement the blood vessel extraction process according to the actual application situation. This application does not impose any limitations in this regard.

[0049] In step S203, the aneurysm annotation information corresponding to each original sample data in the original sample data set is mapped to each three-dimensional blood vessel sample data corresponding to each original sample data in the three-dimensional blood vessel sample set, to obtain a target blood vessel sample set. In the embodiment of the present application, the aneurysm annotation label (mask) can be mapped to each three-dimensional blood vessel sample data corresponding to each original sample data in the three-dimensional blood vessel sample set according to the coordinate information recorded in the aneurysm annotation information corresponding to each original sample data, so that the aneurysm annotation information corresponding to each original sample data in the original sample data set can be mapped to each three-dimensional blood vessel sample data corresponding to each original sample data in the three-dimensional blood vessel sample set, to obtain a target blood vessel sample set formed by a plurality of target blood vessel sample data.

[0050] In step S204, the target blood vessel sample set is input into the initial segmentation model for training to obtain an aneurysm segmentation model. In the embodiment of the present application, the initial segmentation model is trained by a large amount of target blood vessel sample data with aneurysm annotation information, so that the trained aneurysm segmentation model can have the ability to segment aneurysm images in three-dimensional blood vessel sample data according to the aneurysm annotation information, and thus the aneurysm segmentation model has the ability to perform aneurysm segmentation on three-dimensional blood vessel data converted from original image data of different modalities after training.

[0051] In some embodiments, the initial segmentation model may include an encoding structure and a decoding structure, and further design may be performed on the process of inputting the target vessel sample set into the initial segmentation model for training. Figure 3 The process of inputting the target vessel sample set into the initial segmentation model for training is described in detail. Figure 3 FIG. 1 is an exemplary flowchart showing the aneurysm segmentation method of some other embodiments of the present application, see Figure 3 , the aneurysm segmentation method shown in the embodiment of the present application may include:

[0052] In step S301, the target blood vessel sample data in the target blood vessel sample set is input into the coding structure for M times of feature extraction processing to obtain intermediate feature data. In the embodiment of the present application, the aforementioned feature extraction processing process can be regarded as a downsampling process of the target blood vessel sample data. The feature extraction processing process can be exemplarily described as follows:

[0053] First, the FPS algorithm can be used to determine the group center point of the feature data currently undergoing feature extraction processing. In an embodiment of the present application, the target blood vessel sample data obtained after 3D reconstruction based on the original sample data and mapping and adding the aneurysm annotation label (mask) is essentially feature data. In particular, the feature data that is first subjected to feature extraction processing is three-dimensional mesh data, and mesh refers to a polygonal mesh, which is a data structure used in computer graphics to model various irregular objects. In the facets of the polygonal mesh, the triangle facet is the smallest unit to be divided, so mesh can usually refer to the triangle facet. The nodes in the three-dimensional mesh data can be regarded as the vertices of the triangle facets.

[0054] The above-mentioned FPS algorithm refers to the farthest point sampling algorithm. The center point can be calculated by the FPS algorithm and the node coordinates in the feature data. In the embodiment of the present application, the number of center points is generally a hyperparameter, which can be set according to the actual application requirements, and is usually set to 256, 128 and 64 respectively. The present application does not impose any restrictions in this regard.

[0055] The feature data currently being processed for feature extraction is the feature data that is about to be processed for feature extraction. For example, it is assumed that when the feature extraction is performed for the first time, the target blood vessel sample data is used as the feature data currently being processed for feature extraction. And it is assumed that when the feature extraction is performed for the second time, the feature data output by the target blood vessel sample data after the first feature extraction is performed is used as the feature data currently being processed for feature extraction, and so on, thereby determining the feature data for each feature extraction.

[0056] Then, the nodes in the current feature data can be grouped according to the grouping center point to obtain multiple node groups. In an embodiment of the present application, the nodes in the current feature data can be grouped according to the grouping center point by using the KNN (K-NearestNeighbor) algorithm or the Query Ball Point algorithm. The aforementioned KNN algorithm refers to a proximity algorithm, also known as the K nearest neighbor classification algorithm. Exemplarily, the distance from the grouping center point to other nodes can be calculated, and then each distance can be sorted, and then several nodes with the shortest distance to the grouping center point are selected to form a node group with the grouping center point. In addition, if the Query Ball Point algorithm is used for grouping, a certain radius can be delineated with the grouping center point as the center of the circle, and then the nodes within the radius ball are found as neighboring points to form a node group.

[0057] It can be understood that there are various methods for grouping nodes in feature data. In practical applications, a suitable grouping method needs to be determined according to the actual application situation. This application does not impose any restrictions in this regard.

[0058] Then, the node features in each node group can be feature fused by the convolution algorithm, and the group features of each node group can be determined by maximum pooling to obtain updated feature data. In an embodiment of the present application, a preset convolution kernel can be used to slide in the current feature data. During the sliding process, the node coordinates, normal vectors and / or edge connection relationship information of each node in the feature data are multiplied by the values ​​in the preset convolution kernel and then summed to obtain updated features, so as to achieve feature fusion of the node features in each node group until all nodes are slid. Then, the group features of each node group can be determined by average pooling or maximum pooling. In an embodiment of the present application, it is preferred to use maximum pooling to determine the group features of each node group, that is, to select the maximum value in each node group as the group feature of the node group to form updated feature data. The updated feature data can be used as the input feature data for the next feature extraction process. Until after M feature extraction processes, the updated feature data can be output as intermediate feature data, where M is a positive integer.

[0059] In step S302, the intermediate feature data is input into the decoding structure for M upsampling processes to obtain the target feature data. In the embodiment of the present application, the upsampling process can be exemplarily described as follows:

[0060] First, j node distances can be determined based on j first center points and second center points. Exemplarily, the distance between the first center point and the second center point can be obtained by calculating the Euclidean distance based on the feature vector of the first center point and the feature vector of the second center point. Among them, the j first center points are the j center points closest to the second center point among the group center points of the feature data subjected to upsampling processing for the kth time. The second center point is the group center point in the feature data subjected to feature extraction processing for the M+1-kth time. As an example, assuming that M is 3, j is 3, and k is 1, then the three first center points are the three group center points of the feature data subjected to upsampling processing for the first time, which are the three group center points of the intermediate feature data at this time. Correspondingly, the second center point closest to the three first center points is the group center point in the feature data subjected to feature extraction processing for the third time, that is, the group center point in the updated feature data output after the feature extraction processing for the second time. In this way, the features of the group center points of the feature data subjected to upsampling processing for the kth time can be mapped back to the group center points in the feature data subjected to feature extraction processing for the M+1-kth time, thereby realizing double sampling during the upsampling process and improving the upsampling accuracy.

[0061] Then, j interpolation weights may be determined according to the j node distances. In the embodiment of the present application, the reciprocals of the j node distances may be used as the j linear interpolation weights.

[0062] Then, the feature vector of the second center point can be updated according to the j interpolation weights and the feature vectors of the j first center points. Exemplarily, the j interpolation weights can be multiplied by each dimension of the feature vector of the corresponding first center point, so as to update the feature vectors of the j first center points respectively. Then, the updated feature vectors of the j first center points are summed with the feature vector of the second center point, so as to update the feature vector of the second center point.

[0063] It can be understood that after updating each second center point in the feature data subjected to the feature extraction process for the M+1-kth time, updated up-sampled feature data can be obtained. The updated up-sampled feature data can be used as input feature data for the next up-sampling process. After the up-sampling process for M times, the updated up-sampled feature data can be output as the target feature data to complete the up-sampling process.

[0064] In step S303, the node prediction result of each node in the target blood vessel sample data is determined based on the target feature data and the preset output function. In the embodiment of the present application, the preset output function can be a Sigmoid function, which is used to limit the output value of the node prediction result of each node in the target blood vessel sample data to between [0, 1].

[0065] In step S304, the loss value is determined based on the node prediction result, the aneurysm annotation information of the target vascular sample data and the preset loss function. In the example of the present application, the true value of each node in the target vascular sample data can be first determined based on the aneurysm annotation information of the target vascular sample data. Exemplarily, the true value of the aneurysm node can be set to 1, and the true value of the vascular node can be set to 0. It can be understood that the setting methods of the true values ​​corresponding to the aneurysm node and the vascular node are various. In actual applications, the true values ​​corresponding to the aneurysm node and the vascular node need to be reasonably set according to the actual application situation. The present application does not impose any restrictions in this regard.

[0066] Next, the loss value may be determined according to the node prediction result of each node, the true value of each node, and the preset loss function. Specifically, the node prediction result of each node and the true value of each node may be input into the preset loss function to obtain the loss value. The preset loss function may be exemplarily a Diceloss function, which may be expressed as:

[0067]

[0068] Among them, is the true value of the i-th node, is the node prediction result of the i-th node, and N is the number of nodes.

[0069] In step S305, it is determined whether to output the aneurysm segmentation model according to the loss value. In the embodiment of the present application, if the number of training iterations reaches a preset number, and / or if the loss value obtained for x consecutive times in each loss value does not decrease, the model parameters of the initial segmentation model are stopped from being updated and the aneurysm segmentation model is output. x is a positive integer, preferably, x can be 5, and the value of x needs to be set according to the actual application situation, and the present application does not impose any restrictions in this regard.

[0070] Corresponding to the aforementioned application function implementation method embodiment, the present application also provides an electronic device for executing an aneurysm segmentation method and corresponding embodiments.

[0071] Figure 4 FIG. 4 is a block diagram showing the hardware configuration of an electronic device 400 that can implement the aneurysm segmentation method according to an embodiment of the present application. Figure 4 As shown, the electronic device 400 may include a processor 410 and a memory 420. Figure 4 In the electronic device 400, only the components related to this embodiment are shown. Therefore, it is obvious to those skilled in the art that the electronic device 400 may also include components related to this embodiment. Figure 4 The components shown in the figure are different from the common components. For example: fixed-point arithmetic units.

[0072] The electronic device 400 may correspond to a computing device having various processing functions, for example, a function for generating a neural network, training or learning a neural network, quantizing a floating-point neural network to a fixed-point neural network, or retraining a neural network. For example, the electronic device 400 may be implemented as various types of devices, such as a personal computer (PC), a server device, a mobile device, etc.

[0073] The processor 410 controls all functions of the electronic device 400. For example, the processor 410 controls all functions of the electronic device 400 by executing a program stored in the memory 420 on the electronic device 400. The processor 410 may be implemented by a central processing unit (CPU), a graphics processing unit (GPU), an application processor (AP), an artificial intelligence processor chip (IPU), etc. provided in the electronic device 400. However, the present application is not limited thereto.

[0074] In some embodiments, the processor 410 may include an input / output (I / O) unit 411 and a computing unit 412. The I / O unit 411 may be used to receive various data, such as raw image data. Exemplarily, the computing unit 412 may be used to generate three-dimensional vascular data based on vascular information in the raw image data received via the I / O unit 411, and then input the three-dimensional vascular data into the aneurysm segmentation model to obtain an aneurysm segmentation result output by the aneurysm segmentation model. This aneurysm segmentation result may be output by the I / O unit 411, for example. The output data may be provided to the memory 420 for reading and use by other devices (not shown), or may be directly provided to other devices for use.

[0075] The memory 420 is hardware for storing various data processed in the electronic device 400. For example, the memory 420 can store processed data and data to be processed in the electronic device 400. The memory 420 can store data sets involved in the aneurysm segmentation method process that has been processed or is to be processed by the processor 410, such as raw image data, etc. In addition, the memory 420 can store applications, drivers, etc. to be driven by the electronic device 400. For example: the memory 420 can store various programs related to the aneurysm segmentation method to be executed by the processor 410. The memory 420 can be a DRAM, but the present application is not limited thereto. The memory 420 can include at least one of a volatile memory or a non-volatile memory. The non-volatile memory can include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, a phase change RAM (PRAM), a magnetic RAM (MRAM), a resistive RAM (RRAM), a ferroelectric RAM (FRAM), etc. The volatile memory may include dynamic RAM (DRAM), static RAM (SRAM), synchronous DRAM (SDRAM), PRAM, MRAM, RRAM, ferroelectric RAM (FeRAM), etc. In an embodiment, the memory 420 may include at least one of a hard disk drive (HDD), a solid state drive (SSD), a high-density flash memory (CF), a secure digital (SD) card, a micro secure digital (Micro-SD) card, a mini secure digital (Mini-SD) card, an extreme digital (xD) card, caches, or a memory stick.

[0076] In summary, the specific functions implemented by the memory 420 and the processor 410 of the electronic device 400 provided in the implementation mode of this specification can be explained in comparison with the aforementioned implementation modes in this specification, and can achieve the technical effects of the aforementioned implementation modes, and will not be repeated here.

[0077] In this embodiment, the processor 410 can be implemented in any suitable manner. For example, the processor 410 can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (such as software or firmware) executable by the (micro)processor, a logic gate, a switch, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, etc.

[0078] It should also be understood that any module, unit, component, server, computer, terminal or device that executes instructions exemplified herein may include or otherwise access computer-readable media, such as storage media, computer storage media or data storage devices (removable and / or non-removable) such as disks, optical disks or tapes. Computer storage media may include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules or other data.

[0079] Although multiple embodiments of the present application have been shown and described herein, it is obvious to those skilled in the art that such embodiments are provided only by way of example. Those skilled in the art can think of many changes, modifications and alternatives without departing from the thought and spirit of the present application. It should be understood that in the process of practicing the present application, various alternatives to the embodiments of the present application described herein can be adopted. The attached claims are intended to limit the scope of protection of the present application, and therefore cover equivalents or alternatives within the scope of these claims.

Claims

1. An aneurysm segmentation method, characterized in that: include: Acquiring original image data, wherein the original image data includes blood vessel information; generating three-dimensional blood vessel data based on the blood vessel information; Inputting the three-dimensional blood vessel data into an aneurysm segmentation model to obtain an aneurysm segmentation result output by the aneurysm segmentation model; The aneurysm segmentation model is obtained by training based on the three-dimensional blood vessel sample set and aneurysm annotation information; the three-dimensional blood vessel sample set is a set of three-dimensional blood vessel sample data obtained by performing blood vessel extraction processing on each original sample data in the original sample data set; The training of obtaining the aneurysm segmentation model based on the three-dimensional blood vessel sample set and aneurysm annotation information includes: acquiring the original sample data set; Performing blood vessel extraction processing on each original sample data in the original sample data set based on a preset extraction algorithm to obtain the three-dimensional blood vessel sample set; Mapping the aneurysm annotation information corresponding to each original sample data in the original sample data set to each three-dimensional blood vessel sample data corresponding to each original sample data in the three-dimensional blood vessel sample set to obtain a target blood vessel sample set; Inputting the target blood vessel sample set into an initial segmentation model for training to obtain the aneurysm segmentation model; the initial segmentation model includes an encoding structure and a decoding structure, and inputting the target blood vessel sample set into the initial segmentation model for training includes: Inputting the target blood vessel sample data in the target blood vessel sample set into the coding structure to perform feature extraction processing M times to obtain intermediate feature data; Inputting the intermediate feature data into the decoding structure for M times of upsampling to obtain target feature data; Determine a node prediction result of each node in the target blood vessel sample data based on the target feature data and a preset output function; Determining a loss value based on the node prediction result, the aneurysm annotation information of the target blood vessel sample data, and a preset loss function; Determining whether to output the aneurysm segmentation model according to the loss value; In the step of inputting the target blood vessel sample data in the target blood vessel sample set into the coding structure and performing M times of feature extraction processing, the feature extraction processing includes: Determine the group center point of the feature data currently undergoing the feature extraction process by using the FPS algorithm; The nodes in the current feature data are grouped according to the grouping center point to obtain a plurality of node groups; the node features in each node group are fused by a convolution algorithm, and the grouping features of each node group are determined by maximum pooling to obtain updated feature data; Inputting the intermediate feature data into the decoding structure for M upsampling processes to obtain target feature data; In the step of inputting the intermediate feature data into the decoding structure and performing upsampling processing M times, the upsampling processing includes: Determine j node distances based on j first center points and second center points; the j first center points are j center points closest to the second center point among the group center points of the feature data subjected to the upsampling process for the kth time; the second center point is the group center point in the feature data subjected to the feature extraction process for the M+1-kth time; Determine j interpolation weights according to the j node distances; The feature vector of the second center point is updated according to the j interpolation weights and the feature vectors of the j first center points.

2. The aneurysm segmentation method according to claim 1, characterized in that: The determining of the loss value based on the node prediction result, the aneurysm annotation information of the target blood vessel sample data and a preset loss function comprises: Determine the true value of each node in the target blood vessel sample data according to the aneurysm annotation information of the target blood vessel sample data; The loss value is determined according to the node prediction result of each node, the true value of each node and the preset loss function.

3. The aneurysm segmentation method according to claim 2, characterized in that: Determining the loss value according to the node prediction result of each node, the true value of each node and the preset loss function includes: inputting the node prediction result of each node and the true value of each node into the preset loss function to obtain the loss value; The preset loss function is: Among them, y i is the true value of the i-th node, z i is the node prediction result of the i-th node, and N is the number of nodes.

4. The aneurysm segmentation method according to claim 1, characterized in that: The determining whether to output the aneurysm segmentation model according to the loss value comprises: If the number of training iterations reaches a preset number, and / or if the loss value obtained for x consecutive times in each loss value does not decrease, then the updating of the model parameters of the initial segmentation model is stopped and the aneurysm segmentation model is output.

5. The aneurysm segmentation method according to claim 1, characterized in that: The performing blood vessel extraction processing on each original sample data in the original sample data set based on a preset extraction algorithm comprises: Extract blood vessel data from each original sample data by using a threshold extraction algorithm or a deep learning algorithm to obtain blood vessel extraction information; The vascular extraction information corresponding to each original sample data is restored to three-dimensional blood vessels by using the MarchingCubes algorithm to obtain three-dimensional blood vessel sample data corresponding to each original sample data.

6. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 5.

7. A non-transitory machine-readable storage medium having executable code stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 5.