A method and system for predicting the risk of rupture of an intracranial aneurysm based on a deep neural network
By using a deep neural network to cut a cube from a CTA image to extract three-dimensional features and combining it with a Transformer encoder, the low prediction accuracy and reliance on experts in existing technologies are solved, achieving more efficient prediction results.
Patent Information
- Application Number
- CN202211143242.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-20
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-09-20
AI Technical Summary
Existing technologies for predicting the risk of intracranial aneurysm rupture suffer from low accuracy, reliance on professional physicians for lengthy measurement times, and an inability to fully reflect the relationship between the aneurysm and surrounding tissues.
A deep neural network-based approach is used to cut cubes of different neighborhood ranges from CTA images, extract 3D feature maps through convolutional neural networks, and establish the global dependency relationship between aneurysms and surrounding tissues by combining a Transformer encoder, and then fuse auxiliary features for prediction.
It improves the accuracy of predicting the risk of intracranial aneurysm rupture, reduces reliance on expert knowledge, increases time efficiency, and has greater potential for clinical application.
Smart Images

Figure CN117789974B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing technology, and more specifically, to a method and system for predicting the risk of intracranial aneurysm rupture based on deep neural networks. Background Technology
[0002] Intracranial aneurysms are pathological dilations of intracranial arterial walls caused by long-term impact from unstable blood flow. The overall prevalence in the general population is 3.2%, with a rupture risk of 0.25%-0.5%. Once ruptured, it can lead to aneurysmal subarachnoid hemorrhage, causing severe damage to the central nervous system and even other systems, with a mortality rate as high as 50%, seriously endangering human health. If an intracranial aneurysm is detected before rupture, appropriate treatment measures need to be formulated. Currently, medical decisions regarding unruptured aneurysms remain a controversial topic. Craniotomy or interventional treatment is effective, but there are risks of disability and death due to surgery-related complications. Most patients with intracranial aneurysms receive conservative treatment, and only those with a high risk of rupture undergo surgical treatment. Therefore, predicting the rupture risk of intracranial aneurysms is a crucial task for accurately guiding treatment.
[0003] Current mainstream research on intracranial aneurysm rupture risk prediction is based on machine learning methods using manual feature extraction. Experienced neuroradiologists reconstruct CTA images and measure morphological features of the intracranial aneurysm, such as width, height, arc length (AR), sigma length (SR), and basal nonlinearity (BNF). The rupture risk is then predicted based on thresholds derived from extensive data analysis or using traditional machine learning models such as support vector machines. However, these methods have several drawbacks. First, obtaining morphological features of intracranial aneurysms requires a lengthy measurement period by specialists. Second, due to the diverse morphologies of intracranial aneurysms, there are no standardized definitions or measurements for some parameters. Finally, these manually designed morphological features may not accurately reflect the rupture risk of intracranial aneurysms; certain latent, abstract features may significantly influence the rupture risk and cannot be manually extracted. Therefore, current research on intracranial aneurysm rupture risk prediction remains unsatisfactory; only a few rupture-related risk factors are identified and applied in clinical practice, resulting in poor prediction accuracy.
[0004] With the development of deep learning, it has demonstrated excellent performance in image classification. Currently, there is a work applying deep learning to predict the rupture risk of intracranial aneurysms. However, because it uses a 2D convolutional neural network based on 2D projection images of intracranial aneurysms, and this network is not specifically designed for intracranial aneurysm rupture risk prediction, it cannot effectively extract the morphological features of intracranial aneurysms, and its prediction performance does not show a significant improvement compared to traditional machine learning models. Furthermore, due to the complex relationship between aneurysm rupture risk and surrounding tissues, convolutional neural networks cannot effectively model this dependency.
[0005] Therefore, there is a need to study a technique for predicting the risk of intracranial aneurysm rupture, so as to effectively extract the morphological features of intracranial aneurysms and improve the accuracy of prediction. Summary of the Invention
[0006] In view of the deficiencies in the prior art, the purpose of this invention is to provide a method and system for predicting the risk of intracranial aneurysm rupture based on deep neural networks.
[0007] According to one aspect of the present invention, a method for predicting the risk of intracranial aneurysm rupture based on a deep neural network is provided, comprising:
[0008] Two cubes with different neighborhood ranges are cut from the original CTA image with the aneurysm as the center, and the two cubes are preprocessed to obtain two cubes containing only the aneurysm and the parent artery.
[0009] The cubes before and after preprocessing are input into a convolutional neural network to extract 3D feature maps.
[0010] The three-dimensional feature map is divided into blocks and linearly mapped to obtain the embedding sequence;
[0011] The embedded sequence is input into the encoder to obtain the morphological features of the aneurysm;
[0012] The morphological features are fused with additional auxiliary features to predict the risk of rupture.
[0013] Preferably, the step of cutting two cubes with different neighborhood ranges centered on the aneurysm from the original CTA image specifically involves cutting two cubes with different side lengths centered on the aneurysm from the original CTA image, and downsampling the cube with the larger side length into a cube with the smaller side length.
[0014] The preprocessing of the two cubes specifically involves using breadth-first search to preprocess the two cubes respectively, resulting in two cubes containing only the aneurysm and the parent artery.
[0015] Preferably, the step of inputting the pre-processed and post-processed cubes into a convolutional neural network to extract 3D feature maps includes:
[0016] Two independent processing streams receive cubes of different sizes;
[0017] The cubes of different sizes are processed by convolutional modules with the same corresponding processing flow structure and then stitched together to obtain a three-dimensional feature map.
[0018] Preferably, the convolution module includes: a 3D convolutional layer, a ReLU layer, a Dropout layer, a 3D convolutional layer, a ReLU layer, and a max pooling layer.
[0019] Preferably, the step of dividing the three-dimensional feature map into blocks and linearly mapping to obtain the embedding sequence includes:
[0020] The three-dimensional feature map is divided into three-dimensional feature blocks. The three-dimensional feature blocks at the same position in each channel are flattened, stitched together and linearly mapped to obtain several block embeddings.
[0021] An additional learnable category embedding is added to the aforementioned block embeddings;
[0022] Position information is added to the block embeddings and the category embedding to obtain the final embedding sequence.
[0023] Preferably, the morphological features of the aneurysm are obtained by inputting the embedded sequence into the encoder, including:
[0024] The embedded sequence is used as input to the Transformer encoder;
[0025] The output of the Transformer encoder for category embedding is used as the extracted aneurysm morphological features.
[0026] Preferably, fusing the morphological features with additional auxiliary features to predict rupture risk includes:
[0027] The morphological features are passed sequentially through a Dropout layer, a fully connected layer, and a LeakyReLU layer to obtain the final morphological features.
[0028] The additional auxiliary features are passed sequentially through a Dropout layer, a fully connected layer, and a LeakyReLU layer to obtain the final auxiliary features.
[0029] The final morphological features and the final auxiliary features are combined to obtain the overall features;
[0030] The overall features are sequentially passed through a Dropout layer, a fully connected layer, a LeakyReLU layer, a Dropout layer, a fully connected layer, and a Softmax layer to obtain the risk of aneurysm rupture.
[0031] Preferably, data augmentation is performed using rotation, that is, the four cubes of each sample are randomly rotated by the same angle in the three directions of x-axis, y-axis and z-axis;
[0032] The enhanced data will be applied, including:
[0033] During the training phase, each rotated sample is used as an independent sample for prediction.
[0034] During the testing phase, multiple rotated copies of each sample are predicted separately, and the average of the prediction results is taken as the final prediction result.
[0035] Preferably, the difference between the predicted breakage risk and the label is reduced by minimizing the cross-entropy between the predicted breakage risk and the sample label.
[0036] According to a second aspect of the present invention, a deep neural network-based intracranial aneurysm rupture risk prediction system is provided, comprising:
[0037] The preprocessing module cuts two cubes of different neighborhood ranges centered on the aneurysm from the original CTA image and performs preprocessing.
[0038] The 3D feature extraction module inputs the pre-processed cubes into a convolutional neural network to extract 3D feature maps.
[0039] The mapping and embedding module divides the 3D feature map into blocks and linearly maps them to obtain an embedding sequence.
[0040] A morphological feature extraction module, which inputs the embedded sequence into the encoder to obtain the morphological features of the aneurysm;
[0041] The prediction module fuses the morphological features with additional auxiliary features and predicts the risk of rupture.
[0042] Compared with the prior art, the present invention has the following beneficial effects:
[0043] The intracranial aneurysm rupture risk prediction method and system based on deep neural networks in this invention comprehensively considers aneurysms of different sizes by extracting information from different neighborhood ranges of the aneurysm. Through preprocessing, the deep neural network focuses more on the region of interest, namely the aneurysm and the parent artery, and further establishes the global dependency relationship between the aneurysm and the surrounding tissues. In addition, auxiliary features are fused to further improve the predictive performance of the model.
[0044] The intracranial aneurysm rupture risk prediction method and system based on deep neural networks in this invention have significantly improved prediction accuracy compared with existing methods, and have eliminated the dependence on experts and medical knowledge, improved time efficiency, and have greater potential for clinical application. Attached Figure Description
[0045] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0046] Figure 1 This is a flowchart of a method for predicting the risk of intracranial aneurysm rupture based on deep neural networks in one embodiment of the present invention.
[0047] Figure 2 This is a summary architecture diagram of a deep neural network-based intracranial aneurysm rupture risk prediction method in one embodiment of the present invention.
[0048] Figures 3(a), 3(b), and 3(c) are respectively Figure 2 Enlarged details of each part. Detailed Implementation
[0049] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention. These all fall within the scope of protection of the present invention.
[0050] Reference Figure 1 As shown, to address the limitations of existing methods, embodiments of the present invention provide a method for predicting the risk of intracranial aneurysm rupture based on a deep neural network, comprising:
[0051] S0, cut two cubes with different neighborhood ranges from the original CTA image with the aneurysm as the center, and preprocess the two cubes to obtain two cubes containing only the aneurysm and the parent artery.
[0052] S1, input the pre-processed and post-processed cubes from S0 into a convolutional neural network to extract 3D feature maps; the pre-processed and post-processed cubes correspond to two cubes with different neighborhood ranges, and contain only the aneurysm and the aneurysm-bearing artery.
[0053] S2, the 3D feature map in S1 is divided into blocks and linearly mapped to obtain the embedding sequence;
[0054] S3, input the embedded sequence from S2 into the encoder to obtain the morphological features of the aneurysm;
[0055] S4 fuses the morphological features from S3 with additional auxiliary features using a fully connected layer and predicts the risk of breakage.
[0056] This invention extracts information from different neighborhoods of the aneurysm to comprehensively consider aneurysms of different sizes. Through preprocessing, the deep neural network focuses more on the region of interest, namely the aneurysm and the parent artery. It further establishes the global dependency relationship between the aneurysm and the surrounding tissues, and integrates auxiliary features to further improve the predictive performance of the model.
[0057] In a preferred embodiment of the present invention, step S0 is implemented. First, based on the aneurysm manually annotated by the doctor or automatically detected by the aneurysm detection model, two cubes with side lengths of 48 pixels and 96 pixels, respectively, are cut from the original CTA image, centered on the aneurysm. The 96-pixel cube is then downsampled to a 48-pixel cube. The 48-pixel and 96-pixel dimensions are set according to the size of the aneurysm in the dataset, ensuring that the cube contains complete aneurysm information and some surrounding tissue information. Of course, in other embodiments, other sizes can be adjusted according to actual circumstances.
[0058] Compared to information about surrounding tissue, the aneurysm itself and the parent artery have a greater impact on the risk of aneurysm rupture. Therefore, the two cut cubes are preprocessed to obtain two cubes containing only the aneurysm and the parent artery. The specific preprocessing process is as follows: a point is randomly selected from inside the aneurysm as the starting point, an appropriate threshold is set, and a breadth-first search is used to expand outwards, thus obtaining cubes containing only the aneurysm and the parent artery. Finally, four cubes with a side length of 48 pixels are obtained, including both the preprocessed and preprocessed cubes.
[0059] In a preferred embodiment of the invention, S1 is implemented, see [link to previous section]. Figure 2 As shown in Figure 3(a), the four cubes obtained from S0 are input into a convolutional neural network to extract 3D feature maps. Two independent processing streams are used to receive cubes of different scales. Each stream receives two cubes of that scale, one before preprocessing and one after preprocessing. This allows the network to focus more on the aneurysm itself and the parent artery, while also taking into account information from surrounding tissues. The two streams are processed by convolutional modules with identical structures, and the outputs are concatenated to obtain 3D feature maps containing information from different scales.
[0060] The convolutional module consists of a 3D convolutional layer, a ReLU layer, a Dropout layer, another 3D convolutional layer, a ReLU layer, and a max pooling layer. In this embodiment, the first 3D convolutional layer has a kernel size of 5×5×5, a stride of 2, and 32 output channels; the second 3D convolutional layer has a kernel size of 3×3×3, a stride of 1, and 32 output channels; the max pooling layer has a kernel size of 2×2×2 and a stride of 2.
[0061] In a preferred embodiment of the invention, S2 is implemented, see [link to previous section]. Figure 2 As shown in Figure 3(b), the three-dimensional feature map obtained in S1 is divided into three-dimensional feature blocks of size 2×2×2. The three-dimensional feature blocks at the same position in each channel are flattened, spliced and linearly mapped to obtain the initial block embedding sequence. That is, the three-dimensional feature blocks are flattened into one-dimensional vectors, and the one-dimensional vectors at the same position in each channel are spliced to obtain the features describing the position information. The obtained features are linearly mapped to the dimension that conforms to the input of the Transformer encoder to obtain the initial block embedding sequence.
[0062] An additional learnable class embedding is added to the initial block embedding sequence. This class embedding has the same dimension as the block embedding, resulting in an initial embedding sequence with the added class embedding. A positional embedding of the same dimension is then added to each embedding in the initial embedding sequence to obtain the final embedding sequence. For example, the initial block embedding refers to a vector of dimension 256, i.e., (1, 256); the initial block embedding sequence refers to several (e.g., 27) initial block embeddings, i.e., (27, 256). The addition of the learnable class embedding is to aggregate the information from each initial block embedding into the class embedding through the attention mechanism of the Transformer encoder, thereby describing the overall morphological characteristics of the aneurysm and predicting its rupture risk.
[0063] Adding position embedding incorporates position information to enable the Transformer encoder to utilize the relative spatial position information between different blocks.
[0064] In a preferred embodiment of the invention, S3 is performed. The Transformer encoder, employing an attention-based structure, has demonstrated its superiority in sequence modeling and machine translation tasks, and has gradually become the mainstream deep model for many natural language processing tasks. In this embodiment, the embedded sequence is input into the Transformer encoder to model the global dependency between the block where the aneurysm is located and the blocks where the surrounding tissue is located, extracting the influencing factors of the aneurysm itself and its surrounding tissue on its rupture risk, and using the output of the Transformer encoder for learnable category embeddings as the extracted morphological features. Compared to other encoders, the Transformer encoder is more suitable for the task of predicting the risk of aneurysm rupture.
[0065] See Figure 2 As shown in Figure 3(b), the Transformer encoder consists of multiple (e.g., L=4) identical layers, each with two sub-layers: a multi-head self-attention mechanism and a feedforward neural network (MLP). Each sub-layer uses residual connections and layer normalization (norm). The multi-head self-attention mechanism is implemented through matrix operations using multiple sets of query matrices, key matrices, and value matrices; the feedforward neural network is implemented using fully connected layers. Preferably, the Transformer encoder has a depth of 4, with 4 heads in its multi-head self-attention layer (head dimension 256) and a hidden layer dimension of 1024 in its feedforward network.
[0066] In a preferred embodiment of the present invention, S4 is implemented. The morphological features output by the Transformer encoder are sequentially passed through a Dropout layer, a fully connected layer, and a LeakyReLU layer to obtain the final morphological features.
[0067] Studies have shown that readily available features that do not require measurement by professional physicians, such as patient age, aneurysm location, aneurysm shape, whether it is multiple, and whether it is a daughter aneurysm, also significantly impact the risk of aneurysm rupture. These auxiliary features are sequentially passed through a Dropout layer, a fully connected layer, and a LeakyReLU layer to obtain the final auxiliary features. It is worth noting that this module has good scalability; as research in this field progresses, other auxiliary features that significantly influence rupture risk can be added to further improve the model's performance.
[0068] The final morphological features and final auxiliary features are concatenated to obtain the overall features related to the risk of aneurysm rupture. Finally, the overall features are passed through Dropout layer, fully connected layer, LeakyReLU layer, Dropout layer, fully connected layer, and Softmax layer to obtain the risk of aneurysm rupture.
[0069] In a preferred embodiment of the present invention, data augmentation is performed to improve the model's generalization ability and robustness. See [link to previous document]. Figure 2 As shown in Figure 3(c), specifically, the sample is randomly rotated by a certain angle in the X, Y, and Z axes to complete a 360-degree rotation, which is repeated 32 times. During the training phase, the 32 rotation data points of the sample are treated as independent samples for prediction; while during the testing phase, the 32 rotation data points of the sample are treated as copies of the sample, predicted separately, and the average is taken as the final prediction result for the sample.
[0070] A preferred embodiment of the present invention updates the parameters within the deep neural network by narrowing the difference between the prediction result and the label.
[0071] The update is performed using the following formula:
[0072]
[0073] Where y is the predicted probability after processing with the Softmax function, t is the label indicating whether the aneurysm has ruptured, and N is the number of samples. This formula calculates the cross-entropy loss between the predicted probability and the label.
[0074] In a preferred embodiment of the present invention, the NumPy scientific computing library is used to preprocess the data, and the PyTorch deep learning framework is used to build a deep neural network.
[0075] The above embodiments of the present invention solve the problem of poor performance of current methods for predicting the rupture risk of intracranial aneurysms. They take into account both local modeling (S0-S1) and global dependence on the prediction of intracranial aneurysm rupture risk. By combining CNN and Transformer, the invention eliminates the dependence on experts and medical knowledge, improves time efficiency, and is significantly better than existing methods in terms of prediction accuracy and generalization performance, thus having greater potential for clinical application.
[0076] Based on the same inventive concept, in other embodiments of the present invention, a deep neural network-based intracranial aneurysm rupture risk prediction system is also provided, including a preprocessing module, a three-dimensional feature extraction module, a mapping and embedding module, a morphological feature extraction module, and a prediction module. The preprocessing module cuts two cubes with different neighborhood ranges centered on the aneurysm from the original CTA image and performs preprocessing. The three-dimensional feature extraction module inputs the pre- and post-preprocessed cubes into a convolutional neural network to extract three-dimensional feature maps. The mapping and embedding module divides the three-dimensional feature maps into blocks and performs linear mapping to obtain an embedding sequence. The morphological feature extraction module inputs the embedding sequence into an encoder to obtain the morphological features of the aneurysm. The prediction module fuses the morphological features with additional auxiliary features and predicts the rupture risk.
[0077] The specific implementation techniques of each module / unit in the above examples of the present invention can be referred to the steps of the intracranial aneurysm rupture risk prediction method based on deep neural networks in the above embodiments, and will not be repeated here.
[0078] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various modifications or variations within the scope of the claims, which do not affect the essence of the present invention. The above preferred features can be used in any combination without conflict.
Claims
1. A method for predicting the risk of intracranial aneurysm rupture based on deep neural networks, characterized in that, include: Two cubes with different neighborhood ranges are cut from the original CTA image with the aneurysm as the center, and the two cubes are preprocessed to obtain two cubes containing only the aneurysm and the parent artery. The cubes before and after preprocessing are input into a convolutional neural network to extract 3D feature maps. The three-dimensional feature map is divided into blocks and linearly mapped to obtain the embedding sequence; The embedded sequence is input into the encoder to obtain the morphological features of the aneurysm; The morphological features are fused with additional auxiliary features to predict the risk of fracture. Specifically, the step of cutting two cubes with different neighborhood ranges centered on the aneurysm from the original CTA image involves cutting two cubes with different side lengths centered on the aneurysm from the original CTA image, and downsampling the cube with the larger side length into a cube with the smaller side length. The preprocessing of the two cubes specifically involves: performing breadth-first search on each of the two cubes to obtain two cubes containing only the aneurysm and the carrier artery. The 3D feature map is divided into blocks and linearly mapped to obtain the embedding sequence, including: The three-dimensional feature map is divided into three-dimensional feature blocks. The three-dimensional feature blocks at the same position in each channel are flattened, stitched together and linearly mapped to obtain several block embeddings. An additional learnable category embedding is added to the aforementioned block embeddings; Position information is added to the block embeddings and the category embedding to obtain the final embedding sequence; The morphological features are fused with additional auxiliary features to predict fracture risk, including: The morphological features are passed sequentially through a Dropout layer, a fully connected layer, and a LeakyReLU layer to obtain the final morphological features. The additional auxiliary features are passed sequentially through a Dropout layer, a fully connected layer, and a LeakyReLU layer to obtain the final auxiliary features. The final morphological features and the final auxiliary features are combined to obtain the overall features; The overall features are sequentially passed through the Dropout layer, fully connected layer, LeakyReLU layer, Dropout layer, fully connected layer, and Softmax layer to obtain the risk of aneurysm rupture; Data augmentation is performed using rotation, that is, the four cubes of each sample are randomly rotated by the same angle in the three directions of x-axis, y-axis and z-axis; The enhanced data will be applied, including: During the training phase, each rotated sample is used as an independent sample for prediction. During the testing phase, multiple rotated copies of each sample are predicted separately, and the average of the prediction results is taken as the final prediction result.
2. The method for predicting the risk of intracranial aneurysm rupture based on deep neural networks according to claim 1, characterized in that, The step of inputting the pre-processed and post-processed cubes into a convolutional neural network to extract 3D feature maps includes: Two independent processing streams receive cubes of different sizes; The cubes of different sizes are processed by convolutional modules with the same corresponding processing flow structure and then stitched together to obtain a three-dimensional feature map.
3. The method for predicting the risk of intracranial aneurysm rupture based on deep neural networks according to claim 2, characterized in that, The convolutional module includes: a 3D convolutional layer, a ReLU layer, a Dropout layer, a 3D convolutional layer, a ReLU layer, and a max pooling layer.
4. The method for predicting the risk of intracranial aneurysm rupture based on deep neural networks according to claim 1, characterized in that, The embedded sequence is input into the encoder to obtain the morphological features of the aneurysm, including: The embedded sequence is used as input to the Transformer encoder; The output of the Transformer encoder for category embedding is used as the extracted aneurysm morphological features.
5. The method for predicting the risk of intracranial aneurysm rupture based on deep neural networks according to claim 1, characterized in that, The difference between the predicted breakage risk and the label is reduced by minimizing the cross-entropy between the predicted breakage risk and the sample label.
6. A deep neural network-based intracranial aneurysm rupture risk prediction system, used to implement the method of claim 1, characterized in that, include: The preprocessing module cuts two cubes of different neighborhood ranges from the original CTA image with the aneurysm as the center, and preprocesses the two cubes to obtain two cubes containing only the aneurysm and the parent artery. The 3D feature extraction module inputs the pre-processed cubes into a convolutional neural network to extract 3D feature maps. The mapping and embedding module divides the 3D feature map into blocks and linearly maps them to obtain an embedding sequence. A morphological feature extraction module, which inputs the embedded sequence into the encoder to obtain the morphological features of the aneurysm; The prediction module fuses the morphological features with additional auxiliary features and predicts the risk of rupture.
