Artificial intelligence auxiliary recognition method for hydrocephalus CT image based on visual state space
Through the multi-stage visual state space module and the depth-separable convolution layer-2D-selective-scan branch, combined with the fully connected layer, the problem of difficulty in extracting global features for hydrocephalus CT image recognition in the existing technology is solved, and efficient Hydrocephalus CT image recognition.
Patent Information
- Application Number
- CN202410722444.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-10
AI Technical Summary
Existing hydrocephalus CT image recognition methods based on deep learning are difficult to extract the global features of the image and have high computational complexity. Especially when processing high-resolution images or large amounts of data, the reasoning speed and performance are affected.
A multi-stage visual state space (VSS) module is used to extract image features through linear layer branches and depth-separable convolution layer-2D-selective-scan (DWconv-SS2D) branches, maintaining linear computational complexity, and combined with fully connected layers to achieve brain function. Recognition of hydrops CT images.
It effectively extracts the global features of the image, reduces the computational complexity, and improves the recognition efficiency and accuracy of hydrocephalus CT images.
Smart Images

Figure CN118628849A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical image recognition, and more particularly to an artificial intelligence-assisted recognition method for hydrocephalus CT images based on visual state space. Background Art
[0002] Hydrocephalus is typically caused by obstructed cerebrospinal fluid circulation and malabsorption, leading to abnormal dilation of the ventricular system, which compresses surrounding brain tissue, impacting brain structure and function and causing neuronal dysfunction. For hydrocephalus patients, timely, accurate diagnosis and effective treatment are key to reducing mortality. Extracting useful information from large volumes of hydrocephalus CT images and achieving automatic identification of hydrocephalus are crucial prerequisites for precise hydrocephalus treatment. Therefore, designing an effective hydrocephalus image recognition algorithm is essential.
[0003] Currently, deep learning-based approaches for hydrocephalus CT image recognition mostly utilize CNNs and their variants. However, CNN-based image recognition methods can only extract local features of CT images, thereby ignoring the long-term, global features of the image. While the Vision Transformer can learn global information about images, its computational complexity is extremely high, particularly when processing high-resolution images or large amounts of data, which can affect inference speed and performance. Therefore, finding a way to capture globally dependent features while reducing computational complexity is a pressing issue. Summary of the Invention
[0004] In response to the shortcomings of the existing technology, the present invention aims to provide an artificial intelligence-assisted recognition method for hydrocephalus CT images based on visual state space. This method uses a multi-stage VSS module to extract global features of the image, so that it maintains linear computational complexity in the process of learning long-range features of the image. To achieve the above object, the present invention provides the following technical solution: an artificial intelligence-assisted recognition method for hydrocephalus CT images based on visual state space, characterized by comprising the following steps:
[0005] Step 1: preprocessing the acquired hydrocephalus CT image file data and performing data enhancement on the hydrocephalus CT image file;
[0006] Step 2: performing a slicing operation on the acquired hydrocephalus CT image, and then mapping the image slices into the feature space;
[0007] Step 3: Extract features of hydrocephalus CT images based on a multi-stage VSS model, where the VSS model learns image features through two branches: a linear layer branch and a linear layer-DWconv-SS2D branch.
[0008] Step 4: The extracted image features are learned through the fully connected layer to realize the recognition of hydrocephalus CT images. As a further improvement of the present invention, the specific method of performing a slicing operation on the collected hydrocephalus CT images in step 2 and then mapping the image slices to the feature space is as follows:
[0009] First, input the hydrocephalus CT image feature map, which is expressed by the following formula: Where H, W, and C represent the height, width, and number of channels of the image respectively;
[0010] The image is then divided into non-overlapping slices of size 4×4 by an image slicing operation, and the image features are mapped to the feature space using a linear layer. As a further improvement of the present invention, the VSS model in step 3 includes two branches. The first branch learns the features of the hydrocephalus CT image through a linear layer, and the second branch gradually extracts the features of the hydrocephalus CT image through a linear layer, DWconv and SS2D to complete the feature extraction of the hydrocephalus CT image. After obtaining the features of the two branches, the features of the image are further learned by the following method:
[0011]
[0012] VF=linear(VF lr )+HF'
[0013] in, Represents the dot product operation, and linear(*) is the linear projection layer.
[0014] As a further improvement of the present invention, the first branch is calculated as follows:
[0015] VF l =Silu(linear1(LN(HF')))
[0016] Among them, LN is the layer Normalization operation, and Silu(x)=x*sigmoid(x) is the activation function.
[0017] As a further improvement of the present invention, the second branch is calculated as follows:
[0018] VF' r =Silu(linear2(LN(HF')))
[0019] VF r =LN(SS2D(DWConv(VF' r ))
[0020] Among them, DWConv is a depth-wise separable convolutional layer, and SS2D stands for 2D-selective-scan operation.
[0021] As a further improvement of the present invention, the specific steps of the SS2D processing of hydrocephalus images are as follows: first, the hydrocephalus image features are expanded along four different directions and converted into 1D vectors, and then the obtained four 1D vectors are input into the S6 module for optimization, and finally the obtained four 1D vectors are fused into one image feature output.
[0022] As a further improvement of the present invention, the optimization method of the S6 module is as follows:
[0023] For input feature x, Δ,B,C=linear(x),linear(x),linear(x)
[0024]
[0025]
[0026] Among them, A and D are trainable parameters.
[0027] As a further improvement of the present invention, after the image features are obtained by the VSS module in step 3, the adjacent 2×2 slices are merged through the patch merging layer to reduce the height and width of the input features and increase the number of channels. The height, width and number of channels corresponding to the three stages are respectively
[0028] As a further improvement of the present invention, the specific steps for realizing the recognition of hydrocephalus CT image in step 4 are as follows:
[0029] After obtaining the extracted image features VF, the fully connected layer is used to further learn the features of the image. The specific calculation method is as follows:
[0030] prob=sigmoid(linear(VF,1))
[0031] Finally, the model parameters are optimized by the binary cross entropy loss function, which is calculated as follows:
[0032]
[0033] Among them, y i and prob i are the true label value and predicted value of image i.
[0034] The beneficial effect of the present invention is that by setting steps one to four, the recognition of hydrocephalus CT images can be effectively realized, and step three of the above steps extracts the global features of the image through a multi-stage VSS module, which maintains linear computational complexity in the process of learning long-range features of the image, thereby realizing the recognition of hydrocephalus images. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 This is a flow chart of the present invention for realizing hydrocephalus CT image recognition;
[0036] Figure 2 Schematic diagram of the framework for realizing hydrocephalus CT image recognition in the present invention;
[0037] Figure 3 It is a schematic diagram of the framework of the VSS module used in the present invention. DETAILED DESCRIPTION
[0038] The present invention will be further described below with reference to the embodiments shown in the accompanying drawings.
[0039] Reference Figures 1 to 3 As shown in FIG, an artificial intelligence-assisted recognition method for hydrocephalus CT images based on visual state space in this embodiment comprises the following steps:
[0040] Step 1: Preprocess the collected data and perform data enhancement on the hydrocephalus CT images;
[0041] The preprocessing method is to perform data enhancement on the collected hydrocephalus CT images through random flipping, rotation, cropping and other operations, which are used for model training to improve the generalization ability of the model.
[0042] Step 2: Perform a slicing operation on the CT image and then map the image slices into the feature space;
[0043] The image slicing method is to input the hydrocephalus CT image feature map Where H, W, and C represent the height, width, and number of channels of the image, respectively. The image is then divided into non-overlapping slices of size 4×4 by the image slicing operation, and the image features are mapped to the feature space using a linear layer.
[0044] Step 3: Extract features of hydrocephalus CT images based on the multi-stage VSS model, where the VSS model learns image features through two branches: the linear layer branch and the linear layer-DWconv-SS2D branch;
[0045] The VSS module used in this embodiment has two branches: For example, the first branch of the VSS module is calculated as follows:
[0046] VF l =Silu(linear1(LN(HF')))
[0047] Where LN is the layer normalization operation, Silu(x) = x*sigmoid(x) is the activation function. The second branch of VSS is calculated as follows:
[0048] VF' r =Silu(linear2(LN(HF')))
[0049] VF r =LN(SS2D(DWConv(VF' r ))
[0050] DWConv is a depth-wise separable convolutional layer, and SS2D represents a 2D-selective-scan operation. SS2D ensures that the VSS model can extract global features of hydrocephalus CT images at the cost of linear complexity.
[0051] SS2D first expands the hydrocephalus image features along four different directions (from top left to bottom right, from bottom right to top left, from top right to bottom left, and from bottom left to top right) and converts them into 1D vectors. This allows any position to integrate information from all other positions in different directions, thereby learning the global features of the image. The four resulting 1D vectors are then input into the S6 module for optimization, and finally the four resulting 1D vectors are fused into a single image feature output. The optimization scheme of the S6 module is as follows:
[0052] For input feature x, Δ,B,C=linear(x),linear(x),linear(x)
[0053]
[0054]
[0055] Where A and D are trainable parameters. From the above scheme, it can be seen that SS2D always maintains linear complexity during the training process.
[0056] After obtaining the features of the left and right branches, the features of the image are further learned in the following way:
[0057]
[0058] VF=linear(VF lr )+HF'
[0059] in Represents the dot product operation, and linear(*) is the linear projection layer.
[0060] After the image features are obtained by the VSS module, the adjacent 2×2 slices are merged through the patch merging layer to reduce the height and width of the input features and increase the number of channels. The height, width and number of channels corresponding to the three stages are
[0061] Step 4: Learn the extracted image features through the fully connected layer to realize the recognition of hydrocephalus CT images.
[0062] After obtaining the extracted image features VF, the fully connected layer is used to further learn the features of the image. The specific calculation method is as follows:
[0063] prob=sigmoid(linear(VF,1))
[0064] Finally, the model parameters are optimized by the binary cross entropy loss function, which is calculated as follows:
[0065]
[0066] where y i and prob i are the true label value and predicted value of image i.
[0067] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiment. All technical solutions based on the concept of the present invention are within the scope of protection of the present invention. It should be noted that for those skilled in the art, various improvements and modifications that do not depart from the principles of the present invention should also be considered within the scope of protection of the present invention.
Claims
1. An artificial intelligence-assisted recognition method for hydrocephalus CT images based on visual state space, characterized by: The steps include: Step 1, preprocessing the acquired hydrocephalus CT image file data, and performing data enhancement on the hydrocephalus CT image file; Step 2, performing a slicing operation on the acquired hydrocephalus CT image, and then mapping the image slices to the feature space; Step 3, extract the features of hydrocephalus CT images based on the multi-stage VSS model, where the VSS model learns image features through two branches: a linear layer branch and a linear layer-DWconv-SS2D branch; Step 4: Learn the extracted image features through the fully connected layer to realize the recognition of hydrocephalus CT images.
2. The method for artificial intelligence-assisted recognition of hydrocephalus CT images based on visual state space according to claim 1 is characterized in that: In the step 2, the specific method of performing a slicing operation on the acquired hydrocephalus CT image and then mapping the image slices to the feature space is as follows: First, input the hydrocephalus CT image feature map, which is expressed by the following formula: Where H, W, and C represent the height, width, and number of channels of the image respectively; The image is then divided into non-overlapping slices of size 4×4 by an image slicing operation, and the image features are mapped to the feature space using a linear layer.
3. The method for artificial intelligence-assisted recognition of hydrocephalus CT images based on visual state space according to claim 2 is characterized in that: The VSS model in step 3 includes two branches. The first branch learns the features of the hydrocephalus CT image through a linear layer, and the second branch gradually extracts the features of the hydrocephalus CT image through a linear layer, DWconv and SS2D to complete the feature extraction of the hydrocephalus CT image. After obtaining the features of the first branch and the second branch, the features of the image are further learned in the following way: VF=linear(VF lr )+HF' in, Represents a dot product operation, and linear(*) is a linear projection layer.
4. The method for artificial intelligence-assisted recognition of hydrocephalus CT images based on visual state space according to claim 3 is characterized in that: The first branch is calculated as follows: VF l =Strength(linear1(LN(HF'))) Among them, LN is the layer Normalization operation, and Silu(x)=x*sigmoid(x) is the activation function.
5. The method for artificial intelligence-assisted recognition of hydrocephalus CT images based on visual state space according to claim 4 is characterized in that: The second branch is calculated as follows: VF' r =Silu(linear2(LN(HF'))) VF r =LN(SS2D(DWConv(VF' r )) Among them, DWConv is a depth-wise separable convolutional layer, and SS2D represents a 2D-selective-scan operation.
6. The method for artificial intelligence-assisted recognition of hydrocephalus CT images based on visual state space according to claim 5, characterized in that: The specific steps of SS2D processing hydrocephalus images are as follows: first, the hydrocephalus image features are expanded along four different directions and converted into 1D vectors, then the obtained four 1D vectors are input into the S6 module for optimization, and finally the obtained four 1D vectors are fused into one image feature output.
7. The method for artificial intelligence-assisted recognition of hydrocephalus CT images based on visual state space according to claim 6, characterized in that: The S6 module is optimized as follows: For input feature x, Δ,B,C=linear(x),linear(x),linear(x) Among them, A and D are trainable parameters.
8. The method for artificial intelligence-assisted recognition of hydrocephalus CT images based on visual state space according to claim 7, characterized in that: After the image features are obtained by the VSS module in step 3, the adjacent 2×2 slices are merged through the patch merging layer to reduce the height and width of the input features and increase the number of channels. The height, width and number of channels corresponding to the three stages are 9. The method for artificial intelligence-assisted recognition of hydrocephalus CT images based on visual state space according to claim 8, characterized in that: The specific steps for realizing the recognition of hydrocephalus CT images in step 4 are as follows: after obtaining the extracted image feature VF, the image features are further learned through the fully connected layer, and the specific calculation method is as follows: prob = sigmoid(linear(VF,1)) Finally, the model parameters are optimized through the binary cross entropy loss function, which is calculated as follows: Among them, y i and prob i are the true label value and predicted value of image i.
