Method, equipment and program product for reconstructing image data based on thrombus image
By constructing a cross-layer connected graph structure and graph convolutional neural network, integrating three-dimensional information, the problem of difficulty in using three-dimensional information in deep venous thrombosis diagnosis in the existing technology is solved, and a more accurate thrombus staging diagnosis is achieved.
Patent Information
- Application Number
- CN202410916464.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-07-09
AI Technical Summary
The prior art is difficult to make full use of three-dimensional spatial information and structural connections in deep venous thrombosis (DVT) diagnosis, resulting in insufficient comprehensive and accurate diagnosis results, especially in the nuances of different stages of thrombosis development.
By constructing a graph structure with cross-layer connections, combining graph convolutional neural networks, pre-trained models extract feature vectors and construct graph data, capture the spatial relationship between thrombus and its surrounding tissues, integrate local and global three-dimensional information, and perform deep venous thrombus Phase diagnosis.
It improves the accuracy and reliability of thrombus staging, enhances the ability to identify characteristics of different stages of thrombus, and provides more accurate and comprehensive diagnostic results.
Smart Images

Figure CN118887459A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent medical treatment, and specifically to a method, device, program product and computer-readable storage medium based on thrombus image reconstruction data. Background Art
[0002] Deep vein thrombosis (DVT) is a potentially fatal vascular disease that forms in the deep veins, especially the venous system of the lower extremities. It may cause serious complications such as pulmonary embolism, posing a direct threat to the patient's life. The accurate identification and staging of DVT is crucial to the development of an appropriate treatment pathway, including the choice of anticoagulant therapy, the timing of thrombolytic therapy, and even mechanical thrombectomy when necessary. In clinical practice, the diagnosis of DVT is often combined with the patient's clinical manifestations (such as leg swelling and pain), blood tests (such as elevated D-dimer levels), and imaging evidence. Although blood tests can provide indirect evidence, they are not sufficient for a definitive diagnosis; and clinical symptoms are non-specific and easily confused with other diseases. Therefore, imaging examinations have become an indispensable part of the diagnosis of DVT.
[0003] Recent studies have explored the application of deep learning technology in DVT diagnosis, aiming to automate and accurately identify and stage thrombi. One is to propose a more efficient and reliable method for deep vein thrombosis (DVT) diagnosis by implementing machine learning (ML) models on edge devices. The system has high performance, portability, open source and low cost. Another is to use deep learning technology to accurately segment venous thrombi in magnetic resonance images, especially optimizing the model's ability to identify low-signal thrombus areas and reducing the interference of background noise and artifacts. However, the above algorithms for DVT diagnosis have not gone deep into staging classification, especially in dealing with the subtle differences in different stages of thrombus development. In the daily reading process and traditional diagnostic algorithms, it is difficult to directly combine the overall characteristics of various tissues in the image and the correlation between different levels for comprehensive judgment. Images contain a large amount of complex soft tissue information, and the relationship and interaction between different levels are very important for accurate diagnosis. However, traditional methods are often limited to a planar perspective and it is difficult to fully utilize the rich information and structural connections in three-dimensional space, resulting in incomplete and inaccurate diagnostic results. Summary of the invention
[0004] In view of the above problems, the present invention provides a method based on thrombus image reconstruction data. By reconstructing thrombus image data, the method can effectively capture these complex blood flow patterns and tissue structure information. In particular, for subacute thrombi that are not completely organized and chronic thrombi that are completely organized, it is possible to obtain distinctive feature information, thereby having good performance in subsequent staging tasks, including:
[0005] Obtaining thrombus images of the patient, including the thrombus and surrounding tissues;
[0006] Extracting features from the image to obtain a feature vector;
[0007] Based on the feature vectors of the thrombus and the surrounding tissues, the spatial relationship between the thrombus and the surrounding tissue vectors is obtained;
[0008] A graph structure is constructed based on the spatial relationship and the feature vector to obtain graph data.
[0009] Furthermore, the graph structure is obtained by connecting feature vectors of different levels across layers through the spatial relationship between feature vectors;
[0010] Optionally, the spatial relationship includes a spatial relationship between adjacent vectors of the same dimension, a spatial relationship between adjacent vectors of different dimensions, and a global three-dimensional spatial information relationship;
[0011] Optionally, the images include one or more of the following: MRI, CT.
[0012] Optionally, the graph structure construction process is specifically as follows:
[0013] S1: Convert the spatial coordinates of the feature vector to the original node;
[0014] S2: based on the original node, traverse all its adjacent nodes to obtain the spatial coordinates of the adjacent nodes and the spatial relationship between the nodes;
[0015] S3: Connect the original node with the adjacent nodes through edges and update the original node with the spatial coordinates of the adjacent nodes. Repeat the above steps until the graph structure is obtained.
[0016] Optionally, the traversal adopts one or more of the following: depth-first traversal, breadth-first traversal, iterative deepening depth-first search;
[0017] Optionally, the construction of the graph structure also includes dynamic construction through a dynamic adjustment mechanism;
[0018] Optionally, the dynamic construction dynamically changes the connection mode of nodes and edges according to the characteristics of the thrombus.
[0019] The feature extraction extracts features of thrombus and surrounding tissues in the image data by using a pre-trained model to obtain a feature vector;
[0020] Optionally, the pre-trained model includes any one or more of the following: ResNet18, ResNet34, ResNet50, Vision Transformer, DenseNet, VGGNet, Inception ResNet;
[0021] Optionally, the pre-trained model performs feature extraction based on a ResNet18 model, first acquiring deep vein thrombosis image data and inputting it into a pre-trained ResNet18 model for adjustment to obtain an adjusted pre-trained ResNet18 model, and then performing feature extraction based on the adjusted pre-trained ResNet18 model to obtain a feature vector.
[0022] The method further comprises data preprocessing, performing data preprocessing on the image data of the deep vein thrombosis patient to obtain processed data, and extracting features of the thrombus and surrounding tissues in the processed data to obtain a feature vector;
[0023] Optionally, the data preprocessing includes one or more of the following: image size standardization, image equalization, image background removal, image enhancement;
[0024] Optionally, the image size normalization expands the image size by filling zero values or interpolating;
[0025] Optionally, the image background removal removes the background and / or non-interested regions by a global threshold method.
[0026] The object of the present invention is to provide a deep vein thrombosis staging method based on a graph convolutional neural network, comprising:
[0027] The method obtains the image data based on the above-mentioned method of reconstructing the image data based on the thrombus image;
[0028] The graph data is input into the graph neural network for staging to obtain staging results.
[0029] Furthermore, the graph neural network includes an input layer, a graph convolution layer, a graph attention layer, a pooling layer, and an output layer, and the graph data sequentially passes through the input layer, the graph convolution layer, the graph attention layer, the pooling layer, and the output layer to obtain the phased result;
[0030] Optionally, the graph convolution layer convolves the weights of nodes and edges in the graph data to obtain feature information between different positions and different levels; the feature information is sorted by feature weights through the graph attention layer to obtain important node features and edge features; the node features and edge features are input to the pooling layer and the output layer to obtain the phased results;
[0031] Optionally, the pooling layer adopts one or more of the following: average pooling, maximum pooling, differentiable pooling;
[0032] Optionally, the differentiable pooling aggregates each node feature to obtain a graph feature, and the graph feature is phased through an output layer to obtain a phased result;
[0033] Optionally, the output layer includes one or more of the following: softmax, sigmoid, multi-layer perceptron;
[0034] Optionally, the multi-layer perceptron determines the period of deep vein thrombosis by identifying the features of the deep vein thrombosis graph structure;
[0035] Optionally, the graph neural network is obtained by fusing N graph neural networks with different architectures or parameters, where N is a natural number greater than 1;
[0036] Optionally, the fusion processing includes one or more of the following: voting, averaging, and weighted averaging.
[0037] The multi-layer perceptron is a trained multi-layer perceptron. By acquiring deep vein thrombosis images at different periods, the deep vein thrombosis images at different periods are converted into graph structure data at different periods. The multi-layer perceptron is trained by performing morphological feature and spatial level feature training on the graph structure data at different periods to obtain a trained multi-layer perceptron.
[0038] The object of the present invention is to provide a computer program product having a computer program or instructions thereon, wherein the computer program or instructions are executed by a processor to implement the above-mentioned method based on thrombus image reconstruction data, or the above-mentioned deep vein thrombosis staging method based on graph neural network.
[0039] The object of the present invention is to provide a computer device, comprising a memory, a processor and a computer program or instruction stored in the memory, comprising:
[0040] The processor executes a computer program or instruction to implement the above-mentioned method based on thrombus image reconstruction data, or the above-mentioned deep vein thrombosis staging method based on graph neural network.
[0041] An object of the present invention is to provide a computer-readable storage medium having a computer program or instructions stored thereon, wherein the computer program or instructions are executed by a processor to implement the above-mentioned method based on thrombus image reconstruction data, or the above-mentioned deep vein thrombosis staging method based on graph neural network.
[0042] Advantages of the present invention:
[0043] 1. A cross-layer connected graph structure method was introduced. By constructing a graph structure that comprehensively considers local spatial proximity and global three-dimensional spatial hierarchical information, the spatial distribution and three-dimensional overall situation of thrombi and surrounding tissues in magnetic resonance images can be more comprehensively integrated and understood. Specifically, the cross-layer connected graph structure method can capture the complex relationships and interactions between different levels while retaining detailed information, thereby improving the accuracy and reliability of the model for thrombus staging. This method not only improves the model's sensitivity to local features, but also enhances the ability to understand the overall spatial structure, making the staging diagnosis of deep vein thrombosis more accurate and comprehensive.
[0044] 2. In the graph convolutional neural network structure, the pooling layer performs differentiable pooling. The differentiable pooling method can aggregate the feature information of each part, thereby retaining the local key features that are easily ignored by the average pooling method, more accurately capturing the tiny but important soft tissue features in the image, and adapting to the complex contrast of different soft tissues, thereby improving the accuracy of feature extraction. It also allows the gradient to propagate effectively, which helps the network optimize parameters during training and improves the sensitivity and recognition ability of different soft tissue contrasts.
[0045] 3. In feature extraction, a pre-trained model is used and fine-tuned through deep vein thrombosis images, which means that it has good feature processing capabilities and can effectively identify thrombi and surrounding tissues in deep vein thrombosis images; in the output layer of the graph convolutional neural network, a trained multi-layer perceptron is used for staging, which improves the recognition of thrombus characteristics at different stages and improves the accuracy of staging.
[0046] 4. The present invention extracts features, constructs a graph structure, and then inputs the graph structure data into a graph convolutional neural network, so as to form an organic whole for deep vein thrombosis staging. The output of the previous step serves as the input of the next step, and the functions of each other support each other. Based on the patient's imaging data, specific deep vein thrombosis staging results can be obtained, which has practical clinical significance. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0048] Figure 1 A schematic flow chart of a method for reconstructing thrombus image data based on an embodiment of the present invention;
[0049] Figure 2 A schematic diagram of a system based on thrombus image reconstruction data provided by an embodiment of the present invention;
[0050] Figure 3 A schematic diagram of a device based on thrombus image reconstruction data provided by an embodiment of the present invention;
[0051] Figure 4 A schematic diagram of a process for constructing graph data provided by an embodiment of the present invention;
[0052] Figure 5 A schematic diagram of the graph neural network structure flow chart provided for an embodiment of the present invention. DETAILED DESCRIPTION
[0053] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0054] In some of the processes described in the specification and claims of the present invention and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The sequence numbers of the operations, such as S101, S102, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.
[0055] Figure 1 A schematic diagram of a method for reconstructing image data based on thrombus images provided by an embodiment of the present invention specifically includes:
[0056] S101: Obtain the patient's thrombus image, which contains the thrombus and surrounding tissues;
[0057] In one embodiment, the image includes one or more of the following: MRI, CT.
[0058] In one embodiment, the method further comprises data preprocessing, performing data preprocessing on the image data of the deep vein thrombosis patient to obtain processed data, and extracting features of the thrombus and surrounding tissues in the processed data to obtain a feature vector;
[0059] Optionally, the data preprocessing includes one or more of the following: image size standardization, image equalization, image background removal, image enhancement;
[0060] Optionally, the image size normalization expands the image size by filling zero values or interpolating;
[0061] Optionally, the image background removal removes the background and / or non-interested regions by a global threshold method.
[0062] In one embodiment, magnetic resonance imaging (MRI) provides unique advantages for the diagnosis of DVT due to its non-invasiveness, high resolution, and excellent soft tissue contrast. MRI can clearly display the venous structure and identify direct images of thrombi, which is crucial for understanding the location, size, and impact of thrombi on surrounding tissues. However, the development of DVT is a dynamic process, and the physical properties, morphology, and signal characteristics of thrombi on MRI images will change significantly from the acute stage to the chronic stage.
[0063] In a specific embodiment, the data is preprocessed, including the size standardization of the nuclear magnetic resonance image data, specifically:
[0064] The size information of all collected MRI images is counted, and the largest image matrix size is selected as the standard size after preprocessing. For example, if the maximum size is 960×320, then all images smaller than this size will be expanded to match the standard size by filling zero values around or using high-quality interpolation techniques (such as cubic spline interpolation).
[0065] It also includes equalization of MRI image content: in order to solve the differences in brightness and contrast between different images, a standardized data normalization technique is used to map the pixel values of all images to a common specified interval. This process involves calculating the mean and variance of each image, and then performing a linear transformation on the images based on these statistics to ensure that the pixel value distribution of each image has similar statistical properties.
[0066]
[0067] Equation 1 is an equalization method for image content P, where P nom is the standardized image content. i represents the gray value of the i-th pixel, and N is the total number of pixels in the image. This design can eliminate these non-biological variations in all input MRI images.
[0068] Background removal is also included to accommodate memory limitations: To address the GPU memory overflow problem when processing large MRI images, the entire MRI image is first segmented into multiple small blocks, called patches. The size of each patch is set to 100 pixels wide and 80 pixels high, which can accommodate common GPU memory capacity while maintaining enough local image information for analysis. Afterwards, a global thresholding method is used to remove background noise and non-interested areas in the MRI image before analyzing the segmented patches. This step helps to focus the analysis on the thrombus area and reduce the interference of irrelevant information.
[0069]
[0070] Equation 2 is a global threshold method to remove background noise and non-interested areas in MRI images. * The optimal threshold required for threshold segmentation is calculated by obtaining the average grayscale through the frequency p(i) corresponding to the grayscale level i in the grayscale histogram, so that the square of the difference between the grayscale means of the background area and the foreground area multiplied by the product of the weights of the two areas reaches the maximum, thereby achieving the optimal binary segmentation of the image. L is the maximum value of the pixel value in the image. Wb(T) is the weight of the class below the threshold T, that is, the weight of the background class. Ww(T) is the weight of the class above the threshold T, that is, the weight of the foreground class.
[0071] S102: extracting features from the image to obtain a feature vector;
[0072] In one embodiment, the feature extraction extracts features of the thrombus and surrounding tissues in the image data through a pre-trained model to obtain a feature vector;
[0073] Optionally, the pre-trained model includes any one or more of the following: ResNet18, ResNet34, ResNet50, Vision Transformer, DenseNet, VGGNet, Inception ResNet;
[0074] Optionally, the pre-trained model performs feature extraction based on a ResNet18 model, first acquiring deep vein thrombosis image data and inputting it into a pre-trained ResNet18 model for adjustment to obtain an adjusted pre-trained ResNet18 model, and then performing feature extraction based on the adjusted pre-trained ResNet18 model to obtain a feature vector.
[0075] In one embodiment, in addition to using ResNet18 as a feature extractor, other pre-trained models, such as Vision Transformer, etc., can be explored, or combined with a transfer learning strategy, models pre-trained on other medical imaging tasks can be used to improve the model's ability to understand DVT images.
[0076] In one embodiment, the data construction process of the present invention is as follows Figure 4 As shown, a magnetic resonance image is input and image preprocessing is performed to obtain processed data, and the image preprocessing includes image size standardization, image content equalization, and image background removal; the processed data is subjected to node feature extraction by a deep learning method (node feature extraction is performed by a fine-tuned pre-trained model) to obtain a feature vector, and the feature vector constructs a graph structure based on the spatial relationship between features to obtain graph data.
[0077] In a specific embodiment, node feature extraction is performed by a deep learning method, specifically:
[0078] Pre-preparation: Fine-tune the pre-trained ResNet18 model using deep vein thrombosis MRI images to obtain a fine-tuned ResNet18 model;
[0079] Training or application: Use the fine-tuned ResNet18 model to extract features for each patch.
[0080] ResNet18 is a deep learning model pre-trained on the ImageNet large-scale image database, which can effectively extract high-level features from images. The fine-tuned model can focus on the effective features of deep vein thrombosis. The feature vector of each patch is the node feature in the graph structure. These features contain rich information related to thrombosis, which is helpful for subsequent analysis and identification.
[0081]
[0082] Equation 3 is the fine-tuning process of the pre-trained model. In MRI data The model focused on the characteristics of deep vein thrombosis was obtained by adjusting Using the Model When the last classification layer is removed, the MRI image patch that constructs the graph structure is input into the model. And get its eigenvector.
[0083] S103: obtaining a spatial relationship between the thrombus and the surrounding tissue vectors based on the feature vectors of the thrombus and the surrounding tissues;
[0084] In one embodiment, the spatial relationship includes the spatial relationship between adjacent vectors of the same dimension, the spatial relationship between adjacent vectors of different dimensions, and the global three-dimensional spatial information relationship.
[0085] S104: constructing a graph structure based on the spatial relationship and the feature vector to obtain graph data.
[0086] In one embodiment, the graph structure is obtained by cross-layer connection of feature vectors at different levels through the spatial relationship between the feature vectors.
[0087] In one embodiment, the process of constructing the graph structure is specifically as follows:
[0088] S1: Convert the spatial coordinates of the feature vector to the original node;
[0089] S2: based on the original node, traverse all its adjacent nodes to obtain the spatial coordinates of the adjacent nodes and the spatial relationship between the nodes;
[0090] S3: Connect the original node with the adjacent nodes through edges and update the original node with the spatial coordinates of the adjacent nodes. Repeat the above steps until the graph structure is obtained.
[0091] Optionally, the traversal adopts one or more of the following: depth-first traversal, breadth-first traversal, iterative deepening depth-first search;
[0092] In one embodiment, the construction of the graph structure further includes dynamic construction through a dynamic adjustment mechanism;
[0093] Optionally, the dynamic construction dynamically changes the connection mode of nodes and edges according to the characteristics of the thrombus.
[0094] In a specific embodiment, a graph structure based on spatial relationships is constructed: after feature extraction, a graph structure is constructed according to the spatial relationship between patches. Specifically, the feature vector representation points N expressed by patches with an adjacent distance of 1 are connected by edges to form a spatially adjacent node relationship. Taking into account the three-dimensional characteristics of magnetic resonance images, in addition to adjacent patches on the same level, patches at the same position on adjacent levels are also connected by edges to form a cross-layer connection structure. The graph structure constructed in this way not only takes into account local spatial information, but also incorporates contextual information in three-dimensional space, which helps to more comprehensively understand and analyze the distribution and characteristics of deep vein thrombosis. The specific process is as follows:
[0095] Let G = V, E be the constructed graph, where V is the node set, E is the edge set, P x,y,z Represents an image patch at the three-dimensional coordinate (x, y, z). For all (x, y, z) within the valid range, perform the following steps:
[0096] 1.P x,y,z Convert to node v x,y,z , add V:
[0097] V←V∪{v x,y,z} (4)
[0098] Traverse the neighboring positions (x′, y′, z′), where x′∈{x-1,x,x+1}, y′∈{y-1,y,y+1}, z′∈{z-1,z,z+1}, and (x′, y′, z′) are all within the image bounds, and (x′=x,y′=y,z′=z±1) also consider cross-layer adjacency:
[0099] If v x′,y′,z′ If it does not already exist in V, add:
[0100] V←V∪{v x′,y′,z′} (5)
[0101] Add Edge To E, indicating spatial adjacency:
[0102]
[0103] Through the above steps, the present invention constructs a graph structure G that takes into account local spatial information and three-dimensional context information, which is helpful for in-depth analysis of the distribution and characteristics of deep vein thrombosis.
[0104] The embodiments of the present disclosure also provide a computer program product or system, including a computer program, which implements the steps of the above-mentioned method based on thrombus image reconstruction data when executed by a processor.
[0105] Figure 2 A schematic diagram of a system based on thrombus image reconstruction data provided by an embodiment of the present invention specifically includes:
[0106] Acquisition unit: acquires the patient's thrombus image, which contains the thrombus and surrounding tissues;
[0107] Feature extraction unit: extracting features from the image to obtain a feature vector;
[0108] Spatial relationship unit: based on the feature vectors of thrombus and surrounding tissues, the spatial relationship between thrombus and surrounding tissue vectors is obtained;
[0109] Construction unit: constructing a graph structure based on the spatial relationship and the feature vector to obtain graph data.
[0110] Figure 3 A schematic diagram of a device based on thrombus image reconstruction data provided by an embodiment of the present invention specifically includes:
[0111] A memory and a processor; the memory is used to store program instructions; the processor is used to call the program instructions, and when the program instructions are executed, any one of the above-mentioned methods based on thrombus image reconstruction data is executed.
[0112] The disclosed embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it is any one of the above-mentioned methods based on thrombus image reconstruction data.
[0113] The disclosed embodiment of the present invention also provides a deep vein thrombosis staging method based on a graph neural network, comprising:
[0114] The method obtains the image data based on the above-mentioned method of reconstructing the image data based on the thrombus image;
[0115] The graph data is input into the graph neural network for staging to obtain staging results.
[0116] In one embodiment, deep vein thrombosis can be divided into the following three stages according to the time of onset: acute stage, subacute stage, and chronic stage. Among the three stages of deep vein thrombosis (DVT), it is sometimes difficult to distinguish between the subacute stage and the chronic stage, mainly because the subacute stage to the chronic stage is a continuous pathological process, and the thrombus gradually becomes fibrotic and may calcify. During this process, the physical and biochemical properties of the thrombus change gradually, and there is no clear time point to strictly distinguish them. Therefore, it may be challenging to accurately define the end of the subacute stage and the beginning of the chronic stage at a certain time point through imaging. At the same time, at the end of the subacute stage and the chronic stage, the venous system may adapt to the blood flow obstruction caused by the thrombus through collateral circulation, or the thrombus may partially recanalize. These changes may appear as complex blood flow patterns on the image, making it more difficult to distinguish the two stages directly by the signal characteristics of the thrombus.
[0117] Therefore, the present invention uses a deep vein thrombosis staging method based on a graph neural network for staging, wherein the graph data of the image is constructed through three-dimensional relationships to fully capture the spatial structure information, not only considering the local spatial proximity, but also integrating the three-dimensional spatial context information, so that the model can more comprehensively understand the spatial distribution and morphological characteristics of the thrombus, and improve the recognition ability of the complex structure of the thrombus; secondly, the graph convolution layer design and the introduction of the graph attention mechanism, the graph convolution layer promotes the effective propagation of information in the graph structure, and the graph attention mechanism allows the model to dynamically focus on important nodes and edges, increasing the robustness and adaptability of the model in the face of complex image changes, and further improving the expression ability of the model. Finally, the differentiable pooling is used to aggregate the graph node information to enhance the model's recognition ability of deep vein thrombosis.
[0118] In one embodiment, the structure of the graph neural network is as follows: Figure 5 As shown in the figure, the spatial relationship graph data reconstructed from the magnetic resonance image is input into the network, feature learning is performed through the graph convolution layer, and network attention is allocated through the graph attention mechanism, so that the model pays more attention to important nodes and edges, and the learned node features are obtained. The graph node information is aggregated through the differentiable pooling layer, and then the staging results are obtained by staging classification through the output layer.
[0119] In one embodiment, the graph data is input into a graph neural network for staging to obtain staging results.
[0120] Furthermore, the graph neural network includes an input layer, a graph convolution layer, a graph attention layer, a pooling layer, and an output layer, and the graph data sequentially passes through the input layer, the graph convolution layer, the graph attention layer, the pooling layer, and the output layer to obtain the phased result;
[0121] Optionally, the graph convolution layer convolves the weights of nodes and edges in the graph data to obtain feature information between different positions and different levels; the feature information is sorted by feature weights through the graph attention layer to obtain important node features and edge features; the node features and edge features are input to the pooling layer and the output layer to obtain the phased results;
[0122] Optionally, the pooling layer adopts one or more of the following: average pooling, maximum pooling, differentiable pooling;
[0123] Optionally, the differentiable pooling aggregates each node feature to obtain a graph feature, and the graph feature is phased through an output layer to obtain a phased result;
[0124] Optionally, the output layer includes one or more of the following: softmax, sigmoid, multi-layer perceptron;
[0125] Optionally, the multi-layer perceptron determines the period of deep vein thrombosis by identifying the features of the deep vein thrombosis graph structure;
[0126] In one embodiment, the multi-layer perceptron is a trained multi-layer perceptron, which is obtained by acquiring deep vein thrombosis images at different periods and then converting the deep vein thrombosis images at different periods into graph structure data at different periods. The multi-layer perceptron is trained by performing morphological feature and spatial level feature training on the graph structure data at different periods to obtain a trained multi-layer perceptron.
[0127] In one embodiment, the graph neural network is obtained by fusing N graph neural networks with different architectures or parameters, where N is a natural number greater than 1;
[0128] Optionally, the fusion processing includes one or more of the following: voting, averaging, and weighted averaging.
[0129] In one embodiment, graph data is input into a graph neural network for training, wherein the graph data includes acute phase data, subacute phase data, and chronic phase data of deep vein thrombosis.
[0130] The graph neural network model is trained by training the deep vein thrombosis image data from different periods.
[0131] In a specific embodiment, the soft tissue in the magnetic resonance image has high contrast and rich information, so the soft tissue (including blood vessels, thrombi, blood, fat, muscles, etc.) in the magnetic resonance image is very complex. This complex and rich soft tissue contrast provides sufficient information for deep learning methods to stage thrombi. The traditional average pooling method averages most of the information in the whole image, which greatly reduces these contrast information, thereby ignoring local key features. The differentiable pooling method can aggregate the feature information of each part, thereby retaining local key features that are easily ignored by the average pooling method, more accurately capturing the tiny but important soft tissue features in the magnetic resonance image, and adapting to the complex contrast of different soft tissues, thereby improving the accuracy of feature extraction. And allowing gradients to propagate effectively, it helps the network optimize parameters during training and improves the sensitivity and recognition ability of different soft tissue contrasts.
[0132] In a specific embodiment, the graph convolution layer is designed as follows: In the graph neural network, the present invention adopts a graph convolution layer (GCN) based on the node features and edge weights to realize the diffusion and aggregation of information in the graph. The feature information propagation between different positions and hierarchical patches is realized through graph convolution. Since there are a large number of low-information images in the magnetic resonance imaging of deep vein thrombosis, the present invention introduces a graph attention mechanism to enhance the model's attention to important nodes and edges. The attention coefficient calculation formula in the graph attention layer is:
[0133]
[0134] Among them, a ij is the attention vector, which is multiplied by the vector concatenated with the feature vectors of the two nodes to calculate the attention score; LeakyReLU is the activation function, which increases nonlinearity. ij This represents the correlation or similarity measure between node i and node j, and is the weight of the edge between the two. In the formula, i, j, and k represent different nodes respectively. ik This represents the correlation or similarity measure between node i and node k, and is the weight of the edge between them. Ni is the set of neighbors of node i.
[0135]
[0136] Equation 9 combines Equation 8 to update the node feature of node i three times, using the attention weight a ij The influence of can make the node pay more attention to thrombus-related information during the process of feature information propagation.
[0137] Graph node information aggregation: After the information propagation of graph convolution, the present invention replaces the traditional average pooling with a differentiable pooling method to aggregate the feature information of each node to form a feature representation of the entire graph, and aggregates the node features into cluster features to represent the specific information of different tissues in the magnetic resonance imaging of deep vein thrombosis.
[0138] H ′(l) =softmax(H (l) W (l) )H (l) (10)
[0139] Equation 10 uses differentiable pooling to aggregate the node features of the last layer of graph convolution input into different clusters to obtain cluster features H ′(l) . Where W (l) It is a learnable weight matrix, and the softmax operation ensures that the sum of each row is 1, forming a valid probability distribution.
[0140] Output layer: Finally, the present invention adds a multi-layer perceptron to output the diagnosis results. After training, the multi-layer perceptron can integrate the morphological features in the graph structure and the spatial hierarchical features to identify the special image features of the specific disease development of deep vein thrombosis in the target magnetic resonance image, thereby determining the development stage of deep vein thrombosis.
[0141] In one embodiment, after reconstructing the image data into graph data, the graph data is input into the graph convolution network for feature learning to obtain a graph feature vector, and then the graph feature vector is allocated attention through graph attention, and more attention is allocated to nodes and edges with large weights to obtain graph attention features, and then the graph attention features are input into the differentiable pooling layer to aggregate the information of each node to obtain aggregate features, and finally, the aggregate features are input into the multi-layer perceptron for feature classification to obtain classification and staging results. The staging results include: acute stage, subacute stage, and chronic stage.
[0142] In one embodiment, the present invention reconstructs image data into graph data, and then inputs the graph data into a graph convolutional neural network to perform deep vein thrombosis staging classification to obtain a staging result. The graph convolutional neural network is a commonly used network structure.
[0143] In another embodiment, the present invention reconstructs the image data into graph data, and then inputs the graph data into a graph convolutional neural network that performs differentiable pooling to perform deep vein thrombosis staging classification to obtain a staging result.
[0144] In another embodiment, the present invention reconstructs the image data into graph data, and then inputs the graph data into a graph convolutional neural network that performs graph attention allocation to perform deep vein thrombosis staging classification to obtain a staging result.
[0145] In another embodiment, the present invention reconstructs the image data into graph data, and then inputs the graph data into a graph convolutional neural network that performs graph attention allocation and differentiable pooling to perform deep vein thrombosis staging classification to obtain a staging result.
[0146] In one embodiment, the present invention constructs graph data by extracting the three-dimensional spatial relationship of image data and performing cross-layer connection, and inputs the graph data into a graph convolutional neural network that performs differentiable pooling to perform deep vein thrombosis staging classification to obtain staging results.
[0147] In another embodiment, the present invention constructs graph data by extracting the three-dimensional spatial relationship of image data for cross-layer connection, and inputs the graph data into a graph convolutional neural network that performs graph attention allocation and differentiable pooling to perform deep vein thrombosis staging classification to obtain staging results.
[0148] The disclosed embodiment of the present invention further provides a computer device, including:
[0149] A memory and a processor; the memory is used to store program instructions; the processor is used to call program instructions, and when the program instructions are executed, any one of the above-mentioned deep vein thrombosis staging methods based on graph neural network is executed.
[0150] The disclosed embodiment of the present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it is any one of the above-mentioned deep vein thrombosis staging methods based on graph neural network.
[0151] The verification results of this verification example show that assigning inherent weights to indications can improve the performance of the method relative to the default settings. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. In several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways.
[0152] For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, each functional unit in each embodiment of the present invention may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0153] A person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be implemented by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. The above-mentioned medium storage can be a read-only memory, a disk or an optical disk, etc.
[0154] The above is a detailed introduction to a computer device provided by the present invention. For a person skilled in the art, according to the concept of the embodiments of the present invention, there may be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for reconstructing image data based on thrombus images, characterized in that: include: Obtaining thrombus images of the patient, including the thrombus and surrounding tissues; Extracting features from the image to obtain a feature vector; Based on the feature vectors of the thrombus and the surrounding tissues, the spatial relationship between the thrombus and the surrounding tissue vectors is obtained; A graph structure is constructed based on the spatial relationship and the feature vector to obtain graph data.
2. The method based on thrombus image reconstruction data according to claim 1, characterized in that: The graph structure is obtained by connecting feature vectors of different levels across layers through the spatial relationship between feature vectors; Optionally, the spatial relationship includes a spatial relationship between adjacent vectors of the same dimension, a spatial relationship between adjacent vectors of different dimensions, and a global three-dimensional spatial information relationship; Optionally, the imaging includes one or more of the following: MRI, CT; Optionally, the graph structure construction process is specifically as follows: S1: Convert the spatial coordinates of the feature vector to the original node; S2: based on the original node, traverse all its adjacent nodes to obtain the spatial coordinates of the adjacent nodes and the spatial relationship between the nodes; S3: Connect the original node with the adjacent nodes through edges and update the original node with the spatial coordinates of the adjacent nodes. Repeat the above steps until the graph structure is obtained. Optionally, the traversal adopts one or more of the following: depth-first traversal, breadth-first traversal, iterative deepening depth-first search; Optionally, the construction of the graph structure also includes dynamic construction through a dynamic adjustment mechanism; Optionally, the dynamic construction dynamically changes the connection mode of nodes and edges according to the characteristics of the thrombus.
3. The method based on thrombus image reconstruction data according to claim 1, characterized in that: The feature extraction extracts features of thrombus and surrounding tissues in the image data by using a pre-trained model to obtain a feature vector; Optionally, the pre-trained model includes any one or more of the following: ResNet18, ResNet34, ResNet50, Vision Transformer, DenseNet, VGGNet, Inception ResNet; Optionally, the pre-trained model performs feature extraction based on a ResNet18 model, first acquiring deep vein thrombosis image data and inputting it into a pre-trained ResNet18 model for adjustment to obtain an adjusted pre-trained ResNet18 model, and then performing feature extraction based on the adjusted pre-trained ResNet18 model to obtain a feature vector.
4. The method based on thrombus image reconstruction data according to claim 1, characterized in that: The method further comprises data preprocessing, performing data preprocessing on the image data of the deep vein thrombosis patient to obtain processed data, and extracting features of the thrombus and surrounding tissues in the processed data to obtain a feature vector; Optionally, the data preprocessing includes one or more of the following: image size standardization, image equalization, image background removal, image enhancement; Optionally, the image size normalization expands the image size by filling zero values or interpolating; Optionally, the image background removal removes the background and / or non-interested regions by a global threshold method.
5. A deep vein thrombosis staging method based on graph convolutional neural network, characterized in that: include: The method obtains image data based on the method for reconstructing image data based on thrombus images according to any one of claims 1 to 4; The graph data is input into the graph neural network for staging to obtain staging results.
6. The deep vein thrombosis staging method based on graph convolutional neural network according to claim 5, characterized in that: The graph neural network includes an input layer, a graph convolution layer, a graph attention layer, a pooling layer, and an output layer. The graph data sequentially passes through the input layer, the graph convolution layer, the graph attention layer, the pooling layer, and the output layer to obtain the phased results; Optionally, the graph convolution layer convolves the weights of nodes and edges in the graph data to obtain feature information between different positions and different levels; The feature information is sorted by feature weights through the graph attention layer to obtain important node features and edge features; the node features and edge features are input to the pooling layer and the output layer to obtain the phased results; Optionally, the pooling layer adopts one or more of the following: average pooling, maximum pooling, differentiable pooling; Optionally, the differentiable pooling aggregates each node feature to obtain a graph feature, and the graph feature is phased through an output layer to obtain a phased result; Optionally, the output layer includes one or more of the following: softmax, sigmoid, multi-layer perceptron; Optionally, the multi-layer perceptron determines the period of deep vein thrombosis by identifying the features of the deep vein thrombosis graph structure; Optionally, the graph neural network is obtained by fusing N graph neural networks with different architectures or parameters, where N is a natural number greater than 1; Optionally, the fusion processing includes one or more of the following: voting, averaging, and weighted averaging.
7. The deep vein thrombosis staging method based on graph convolutional neural network according to claim 6, characterized in that: The multi-layer perceptron is a trained multi-layer perceptron. By acquiring deep vein thrombosis images at different periods, the deep vein thrombosis images at different periods are converted into graph structure data at different periods. The multi-layer perceptron is trained by performing morphological feature and spatial level feature training on the graph structure data at different periods to obtain a trained multi-layer perceptron.
8. A computer program product having a computer program or instructions thereon, characterized in that: The computer program or instructions are executed by a processor to implement any one of the methods described in claims 1-4 based on thrombus image reconstruction data, or any one of the methods for deep vein thrombosis staging based on graph neural networks described in claims 5-7.
9. A computer device comprising a memory, a processor and a computer program or instruction stored in the memory, characterized in that: include: The processor executes a computer program or instruction to implement any one of the methods described in claims 1-4 based on thrombus image reconstruction data, or any one of the methods for deep vein thrombosis staging based on graph neural network described in claims 5-7.
10. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: The computer program or instructions are executed by a processor to implement any one of the methods described in claims 1-4 based on thrombus image reconstruction data, or any one of the methods for deep vein thrombosis staging based on graph neural networks described in claims 5-7.
Citation Information
Patent Citations
Lower limb deep venous thrombus magnetic resonance imaging method and device
CN105596003A
Image three-dimensional model construction method and device based on neural network
CN110458957A
Medical image lesion detection merging method and system, terminal and storage medium
CN111340756A
Super-large image classification method based on graph neural network
CN111738318A
Model training method and device, model calling method, computer equipment and storage medium
CN112734034A
