Brain age prediction method and device based on deep two-branch network and electronic equipment
By combining a deep dual-branch network with convolutional neural networks and visual Transformers, the problem of fusing global and local features in brain age prediction using CNNs and Transformers is solved, achieving higher accuracy in brain age prediction.
Patent Information
- Application Number
- CN202410327844.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-21
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-03-21
AI Technical Summary
Existing convolutional neural networks (CNNs) struggle to capture global features from MRI images, resulting in low accuracy in brain age prediction. Transformer networks, on the other hand, perform poorly when extracting local features. Therefore, combining CNNs and Transformers to achieve deeper fusion of global and local features has become an urgent problem to be solved.
A brain age prediction method based on a deep dual-branch network is adopted. The preprocessed white and gray matter MRI images are input into the convolutional neural network and the visual Transformer submodule through the shallow feature extraction module and the deep feature extraction module. Local and global features are extracted respectively, and then fused through the feature fusion module. Subsequently, multiple feature extractions are performed through multiple deep feature extraction units, and finally the predicted age of brain structure is output.
The accuracy and precision of brain age prediction have been improved by multiple feature extractions and fusions through a deep dual-branch network, which enhances the relevance and accuracy of the prediction results.
Smart Images

Figure CN118134890B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the fields of deep learning technology and biomedical technology, specifically to a brain age prediction method, device, and electronic device based on a deep dual-branch network. Background Technology
[0002] In recent years, predicting brain age using magnetic resonance imaging (MRI) data has become a hot topic in neuroscience research. The accuracy of brain age prediction results depends on the robustness of the brain age estimation framework used.
[0003] Convolutional Neural Networks (CNNs) can predict brain age based on MRI images, but they struggle to capture global features, impacting prediction accuracy. Transformer networks excel at extracting global features, but their performance in extracting local features is less than ideal.
[0004] While combining the features of CNN and Transformer can extract local and global features from MRI images, how to combine CNN and Transformer to achieve deeper fusion of global and local features and thus predict brain age with higher accuracy is an urgent problem to be solved. Summary of the Invention
[0005] In view of the above problems, this disclosure provides a method, device and electronic device for predicting brain age based on deep bibranch networks.
[0006] According to the first aspect of this disclosure, a brain age prediction method based on a deep dual-branch network is provided, wherein the deep dual-branch network includes a shallow feature extraction module, a feature fusion module, and a deep feature extraction module, wherein the shallow feature extraction module includes a convolutional neural network submodule and a visual Transformer submodule; and the deep feature extraction module includes multiple cascaded deep feature extraction units.
[0007] The method includes: stacking a preprocessed first image and a second image into an input image according to the channel dimension, wherein the first image is used to represent the white matter information of the brain structure and the second image is used to represent the gray matter information of the brain structure; inputting the input image into a convolutional neural network submodule to output local features; inputting the input image into a visual Transformer submodule to output global features; inputting the local features and global features into a feature fusion module to output fused features; and performing multiple feature extractions on the fused features through multiple deep feature extraction units to output the predicted age of the brain structure.
[0008] According to embodiments of this disclosure, inputting local features and global features into a feature fusion module and outputting fused features includes: aligning the feature dimensions of global features and local features to obtain aligned global features; fusing the aligned global features and local features to obtain a first shallow feature; and fusing the first shallow feature, the aligned global feature, and the local features to obtain a fused feature.
[0009] According to embodiments of this disclosure, fusing the first shallow features, aligned global features, and local features to obtain fused features includes: splicing the first shallow features, aligned global features, and local features to obtain a second shallow feature; and reducing the dimensionality of the first shallow features to obtain fused features.
[0010] According to embodiments of this disclosure, the network structures of multiple deep feature extraction units are the same, and the deep feature extraction unit includes a convolutional neural network branch, a visual Transformer branch, and a feature fusion subunit; the network structure of the convolutional neural network branch is different from the network structure of the convolutional neural network submodule, and the network structure of the visual Transformer branch is different from the network structure of the visual Transformer submodule.
[0011] According to embodiments of this disclosure, the convolutional neural network submodule includes cascaded downsampling layers and two identical first convolutional layers; the convolutional neural network branch of the deep feature extraction unit includes three cascaded identical second convolutional layers; wherein the network structures of the first and second convolutional layers are identical; the visual Transformer submodule includes a slicing layer, a position layer, and a swin Transformer layer, wherein the slicing layer is used to slice the input image into multiple image patches and convert them into one-dimensional token features, the position layer is used to record the positions of the multiple image patches in the one-dimensional token features, the swin Transformer layer is used to extract features from the features after fusing the slicing unit and the position unit; the visual Transformer branch of the deep feature extraction unit includes cascaded image patch fusion layers and two Transformer layers.
[0012] According to embodiments of this disclosure, the method of extracting features from fused features multiple times through multiple deep feature extraction units to output the predicted age of brain structure includes: for each deep feature extraction unit, extracting features from the input of the deep feature extraction unit using a convolutional neural network branch and a visual Transformer branch respectively to obtain a first feature and a second feature; fusing the first feature and the second feature using a feature fusion subunit to obtain a fused third feature; and inputting the third feature into the next deep feature extraction unit so that the next deep feature extraction unit can perform deep feature extraction on the third feature; wherein, during the feature extraction process, the convolutional neural network branch and the visual Transformer branch use an image patch fusion layer to make the output features of the visual Transformer branch have the same dimension as the output features of the convolutional neural network branch.
[0013] According to embodiments of this disclosure, the process of extracting features from the input of the deep feature extraction unit using a visual Transformer branch to obtain a second feature includes: using an image patch fusion layer to downsample the input of the deep feature extraction unit based on the image patch position to obtain a first deep feature; inputting the first deep feature into a first Transformer layer to output a second deep feature; and inputting the second deep feature into a second Transformer layer to output a second feature.
[0014] According to an embodiment of this disclosure, the feature fusion subunit is used to fuse a first feature and a second feature to obtain a fused third feature, which includes: fusing the first feature and the second feature; fusing the fused feature, the first feature, and the second feature again to obtain a fourth feature; and reducing the dimensionality of the fourth feature to obtain the third feature.
[0015] The second aspect of this disclosure provides a brain age prediction device based on a deep dual-branch network, wherein the deep dual-branch network includes a shallow feature extraction module, a feature fusion module, and a deep feature extraction module. The shallow feature extraction module includes a convolutional neural network submodule and a visual Transformer submodule; the deep feature extraction module includes multiple cascaded deep feature extraction units. The device includes: a first prediction module, used to stack a preprocessed first image and a second image into an input image according to the channel dimension, wherein the first image is used to represent white matter information of brain structures, and the second image is used to represent gray matter information of brain structures; a second prediction module, used to input the input image into the convolutional neural network submodule and output local features; a third prediction module, used to input the input image into the visual Transformer submodule and output global features; a fourth prediction module, used to input the local and global features into the feature fusion module and output fused features; and a fifth prediction module, used to perform multiple feature extractions on the fused features through multiple deep feature extraction units and output the predicted age of the brain structure.
[0016] A third aspect of this disclosure provides an electronic device comprising: one or more processors; and a memory for storing one or more computer programs, which, when executed by the one or more processors, implement the steps of the brain age prediction method based on the deep dual-branch network described above.
[0017] A fourth aspect of this disclosure also provides a computer-readable storage medium having a computer program or instructions stored thereon, which, when executed by a processor, implement the steps of the brain age prediction method based on the deep dual-branch network described above.
[0018] The fifth aspect of this disclosure also provides a computer program product, including a computer program or instructions that, when executed by a processor, implement the steps of the brain age prediction method based on the deep dual-branch network described above. Attached Figure Description
[0019] The foregoing contents, as well as other objects, features, and advantages of this disclosure, will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:
[0020] Figure 1 The illustration shows an application scenario of the brain age prediction method based on deep dual-branch networks according to embodiments of the present disclosure;
[0021] Figure 2 A flowchart illustrating a brain age prediction method based on a deep dual-branch network according to an embodiment of the present disclosure is shown schematically.
[0022] Figure 3A schematic diagram illustrating the structure of a deep dual-branch network according to an embodiment of the present disclosure is shown.
[0023] Figure 4 The schematic diagram illustrates the structure of a feature fusion module according to an embodiment of the present disclosure;
[0024] Figure 5 The schematic diagram illustrates the structure of a deep dual-branch network according to a specific embodiment of the present disclosure;
[0025] Figure 6 A schematic diagram of the structure of a convolutional layer according to an embodiment of the present disclosure is shown.
[0026] Figure 7 This illustration schematically shows a correlation diagram between predicted values and actual values in a test set according to an embodiment of the present disclosure;
[0027] Figure 8 A schematic diagram illustrates the structure of a brain age prediction device based on a deep dual-branch network according to an embodiment of the present disclosure; and
[0028] Figure 9 A block diagram of an electronic device suitable for a brain age prediction method based on a deep dual-branch network, according to an embodiment of the present disclosure, is shown schematically. Detailed Implementation
[0029] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.
[0030] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0031] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.
[0032] When using expressions such as "at least one of A, B, and C", they should generally be interpreted in accordance with the meaning that is commonly understood by a person skilled in the art (e.g., "a system having at least one of A, B, and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B, and C, etc.).
[0033] In the field of brain age prediction, considering that CNN is better at extracting local features and Transformer is better at extracting global features, CNN and Transformer can be combined. The combined network can extract both local and global features of MRI images and output a predicted brain age that fuses local and global features.
[0034] However, when combining CNN and Transformer, fusing the outputs of CNN and Transformer only at the output layer does not yield ideal results in brain age prediction. Therefore, the solution for combining CNN and Transformer focuses on how to fuse global and local features more deeply to improve the accuracy of brain age prediction, which is an urgent problem to be solved.
[0035] Therefore, embodiments of this disclosure provide a deep dual-branch network and a brain age prediction method based on the deep dual-branch network. The deep dual-branch network includes a shallow feature extraction module, a feature fusion module, and a deep feature extraction module. The shallow feature extraction module includes a convolutional neural network submodule and a visual Transformer submodule; the deep feature extraction module includes multiple cascaded deep feature extraction units. The method includes: stacking a preprocessed first image and a second image into an input image according to the channel dimension, wherein the first image is used to represent white matter information of the brain structure, and the second image is used to represent gray matter information of the brain structure; inputting the input image into the convolutional neural network submodule to output local features; inputting the input image into the visual Transformer submodule to output global features; inputting the local and global features into the feature fusion module to output fused features; and performing multiple feature extractions on the fused features through multiple deep feature extraction units to output the predicted age of the brain structure.
[0036] Figure 1 This illustration schematically depicts an application scenario of the brain age prediction method based on deep dual-branch networks according to embodiments of the present disclosure.
[0037] like Figure 1As shown, application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 serves as a medium for providing a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.
[0038] Users can interact with server 105 via network 104 using at least one of the first terminal device 101, second terminal device 102, and third terminal device 103 to receive or send messages, etc. The first terminal device 101, second terminal device 102, and third terminal device 103 can be various electronic devices with displays and supporting web browsing, including but not limited to smartphones, tablets, laptops, and desktop computers, etc.
[0039] It should be noted that the brain age prediction method based on deep dual-branch networks provided in this disclosure can generally be executed by server 105. Accordingly, the brain age prediction device based on deep dual-branch networks provided in this disclosure can generally be set in server 105.
[0040] For example, a user can input a first image and a second image through a first terminal device 101, a second terminal device 102, and a third terminal device 103. The server 105 inputs the first image and the second image into a deep dual-branch network and outputs the final predicted age.
[0041] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0042] The following will be based on Figure 1 The described scene, through Figures 2-7 The brain age prediction method based on deep dual-branch networks, according to the disclosed embodiments, is described in detail.
[0043] Figure 2 A flowchart illustrating a brain age prediction method based on a deep dual-branch network according to an embodiment of the present disclosure is shown.
[0044] like Figure 2 As shown, the method 200 includes operations S210 to S250.
[0045] In operation S210, the preprocessed first image and second image are stacked into an input image according to the channel dimension. The first image is used to represent the white matter information of the brain structure, and the second image is used to represent the gray matter information of the brain structure.
[0046] In operation S220, the input image is fed into the convolutional neural network submodule, and local features are output.
[0047] In operation S230, the input image is input into the visual Transformer submodule, and global features are output.
[0048] In operation S240, local and global features are input into the feature fusion module, and the fused features are output.
[0049] When operating the S250, multiple deep feature extraction units are used to extract features from the fused features multiple times, and the predicted age of the brain structure is output.
[0050] According to embodiments of this disclosure, the deep dual-branch network includes a shallow feature extraction module, a feature fusion module, and a deep feature extraction module. The shallow feature extraction module includes a convolutional neural network submodule and a visual Transformer submodule. The deep feature extraction module includes multiple cascaded deep feature extraction units, all of which have the same network structure.
[0051] The Convolutional Neural Network (CNN) submodule is a submodule based on a three-dimensional CNN structure; it can also be called a 3D CNN submodule. Similarly, the Visual Transformer (VVT) submodule is a submodule based on a three-dimensional Visual Transformer (3D Vision Transformer) structure; it can also be called a 3D ViT submodule. Compared to 2D or 2.5D models, using the 3D CNN and 3D ViT submodules to construct the two branches of the shallow feature extraction module can effectively preserve the spatial information of the image and extract richer features.
[0052] The first and second images are obtained after preprocessing magnetic resonance imaging (MRI) images of the brain. Specific preprocessing operations include: acquiring MRI images characterizing brain structures; identifying brain white matter and gray matter images from the MRI images; and smoothing the standardized white matter and gray matter images using a smoothing kernel to generate the first and second images.
[0053] For example, after acquiring MRI images characterizing brain structure, the gray matter (GM) and white matter (WM) in the MRI images are segmented. Then, the DARTEL nonlinear registration method is used to register the individual spatial white matter and gray matter images to the MNI 152 standard space, resulting in the first and second images. Resampling is then performed using a 4mm half-width-height smoothing kernel to resample the white matter and gray matter images to a size of 1.5mm³, yielding the first and second images. During tissue segmentation, data quality control can be performed, removing images with segmentation abnormalities caused by imaging quality issues. For example, images with shadows, missing data, or excessive noise are removed.
[0054] The preprocessed first and second images are stacked into an input image according to the channel dimension. This includes cropping and / or padding the preprocessed first and second images into images of size H*W*D (where H is height, W is width, and D is depth). Then, the cropped and / or padded grayscale image and whitescale image are stacked in the channel dimension into a shape of C*H*W*D (where C is the number of channels) to obtain the input image.
[0055] The input image serves as the input to the deep dual-branch network. The input image is first fed into the shallow feature extraction module of the deep dual-branch network. Specifically, the input image is processed by the 3D CNN submodule and the 3D ViT submodule to obtain local and global features, respectively.
[0056] During the feature extraction process of the input image by the 3D CNN submodule and the 3D ViT submodule, the 3D CNN submodule and the 3D ViT submodule can output the final local features and global features without feature interaction or data interaction between them.
[0057] After the 3D CNN submodule and the 3D ViT submodule output local and global features respectively, the feature fusion module performs the first fusion of the local and global features to obtain the fused features. After the fused features are input into multiple deep feature extraction units, each deep feature extraction unit can perform in-depth feature extraction on the feature map of the fused global and local features, learn the characteristics of the fused features more effectively, and thus output a more accurate predicted brain age, that is, the predicted age of brain structure.
[0058] The embodiments of this disclosure utilize a deep dual-branch network from surface to depth to extract features from shallowly fused features multiple times, thereby improving the integration of 3D CNN and 3D ViT and the fusion degree of dual-branch output features, thus enhancing the accuracy of brain age prediction.
[0059] Figure 3 A schematic diagram of the structure of a deep dual-branch network according to an embodiment of the present disclosure is shown.
[0060] like Figure 3 As shown, after stacking the first image 301 and the second image 302 along the channel dimension, the input image 303 can be obtained. The input image 303 can be input into the shallow feature extraction module 304. Specifically, the input image 303 can be simultaneously input into the 3D CNN submodule 3041 and the 3D ViT submodule 3042 in the shallow feature extraction module 304, where the 3D CNN submodule 3041 and the 3D ViT submodule 3042 output local features and global features respectively. The local features and global features can be fused into a fused feature at the feature fusion module 305.
[0061] The fused features output by the feature fusion module 305 can enter the deep feature extraction module 306 for multiple feature extraction operations, outputting a predicted age 307. Specifically, the deep feature extraction module 306 includes N deep feature extraction units, such as 306_1…306_N. The N deep feature extraction units are cascaded, meaning that the output of the previous deep feature extraction unit serves as the input of the current deep feature extraction unit, and the output of the current deep feature extraction unit serves as the input of the next deep feature extraction unit.
[0062] According to embodiments of this disclosure, local features and global features are input into a feature fusion module, and fused features are output, including: aligning the feature dimensions of global features and local features to obtain aligned global features; fusing the aligned global features and local features to obtain a first shallow feature; and fusing the first shallow feature, the aligned global feature, and the local features to obtain a fused feature.
[0063] In the embodiments of this disclosure, the network structure of the 3D CNN submodule and the 3D ViT submodule is configured such that the dimensions of the output local features and global features are inconsistent. For example, the size of the local features output by the 3D CNN submodule is C*W*H*D, and the shape of the global features output by the 3D ViT submodule is K*E, where K is the number of patches and E is the embedding dimension. Therefore, before fusing the local and global features, information integration of the local and global features is required.
[0064] Specifically, aligning the feature dimensions of global and local features to obtain aligned global features involves using the feature dimensions of the local features output by the 3DCNN submodule as a reference, and transforming the feature dimensions of the global features to match those of the local features to obtain aligned global features. For example, a global feature of shape K*E can be transformed into an aligned global feature of shape C*W*H*D through a reshape operation.
[0065] Since the aligned global features and local features have the same feature dimensions, the aligned global features and local features can be added together to obtain the first shallow feature layer.
[0066] If the first shallow features are directly used as the output of the feature fusion model, the weights between the output features of the 3D CNN submodule and the 3D ViT submodule cannot be adjusted, thus affecting the learning effect and the accuracy of subsequent brain age prediction. Therefore, the embodiments of this disclosure fuse the first shallow features, aligned global features, and local features to obtain fused features. In this case, the fusion weights of the 3D CNN submodule and the 3D ViT submodule in the fused features can be learned by the deep dual-branch network, which helps to improve prediction accuracy.
[0067] According to embodiments of this disclosure, fusing a first shallow feature, aligned global features, and local features to obtain a fused feature includes: splicing the first shallow feature, aligned global features, and local features to obtain a second shallow feature; and reducing the dimensionality of the first shallow feature to obtain the fused feature.
[0068] In the embodiments of this disclosure, the first shallow features can be concatenated along the channel dimension, and the global and local features can be aligned to obtain the second shallow features. Then, a convolution operation is performed to reduce the dimensionality of the first shallow features to obtain the fused features.
[0069] For example, taking the aligned global features as feature map T and the local features output by the 3D CNN submodule as feature map C, fusing the aligned global features and local features can be represented as follows: add feature map T to feature map C output by the 3D CNN submodule to obtain feature map D. After concatenating feature maps T, C, and D in the channel dimension, reduce the number of channels after concatenation using a 1*1*1 3D convolution to obtain the fused features.
[0070] Figure 4 A schematic diagram illustrating the structure of a feature fusion module according to an embodiment of the present disclosure is shown. Specifically, Figure 4 The specific structure of the feature fusion block is shown.
[0071] In the feature fusion module (Fusion Block), CNN_Feature is the local feature output by the 3D CNN submodule, and Trans_Feature is the global feature output by the ViT submodule. After aligning Trans_Feature with CNN_Feature, the aligned Trans_Feature is added to CNN_Feature to obtain the first shallow feature layer. By concatenating the first shallow feature layer with the aligned Trans_Feature and CNN_Feature, the fused feature, also known as Our Feature, is obtained.
[0072] According to embodiments of this disclosure, the network structures of multiple deep feature extraction units are the same, and the deep feature extraction unit includes a convolutional neural network branch, a visual Transformer branch, and a feature fusion subunit; the network structure of the convolutional neural network branch is different from the network structure of the convolutional neural network submodule, and the network structure of the visual Transformer branch is different from the network structure of the visual Transformer submodule.
[0073] According to embodiments of this disclosure, the deep dual-branch network not only has two branches in the shallow feature extraction module, namely a 3D CNN submodule and a 3D ViT submodule, but also has a convolutional neural network branch and a visual Transformer branch in the deep feature extraction module. The convolutional neural network branch of the deep feature extraction unit is also called the 3D CNN branch, and the visual Transformer branch is also called the 3D ViT branch.
[0074] According to embodiments of this disclosure, although both the shallow feature extraction module and the deep feature extraction module have branching structures, the network structures of the 3D CNN submodule of the shallow feature extraction module and the 3D CNN branch of the deep feature extraction module are not the same. Similarly, the network structures of the 3D ViT submodule and the 3D CNN branch are also not the same.
[0075] According to embodiments of this disclosure, a convolutional neural network submodule includes cascaded downsampling layers and two identical first convolutional layers; the convolutional neural network branch of the deep feature extraction unit includes three cascaded identical second convolutional layers; wherein the network structures of the first and second convolutional layers are identical.
[0076] For example, a 3D CNN submodule consists of cascaded downsampling layers (Down) and two identical Conv blocks, while a 3D CNN branch consists of three identical Conv blocks. In the 3D CNN submodule, the input image serves as the input to the downsampling layer (Down), the output of the downsampling layer (Down) becomes the input to the first Conv block, the output of the first Conv block becomes the input to the second Conv block, and the output of the second Conv block represents the local features. In the 3D CNN branch, the fused features serve as the input to the first Conv block, the output of the first Conv block becomes the input to the second Conv block, and so on.
[0077] The Visual Transformer submodule includes a slicing layer, a position layer, and a swin Transformer layer. The slicing layer is used to slice the input image into multiple image patches and convert them into one-dimensional token features. The position layer is used to record the positions of multiple image patches in the one-dimensional token features. The swin Transformer layer is used to extract features from the features after fusing the slicing and position units. The Visual Transformer branch of the deep feature extraction unit includes a cascaded image patch fusion layer and two Transformer layers.
[0078] For example, the 3D ViT submodule includes a patch embedding layer, a position embedding layer, and a swin Transformer layer. The 3D ViT branch includes a patch merging layer and two Transformer layers. The swin Transformer layer and the regular Transformer layer have different structures.
[0079] Figure 5 The diagram schematically illustrates the structure of a deep dual-branch network according to a specific embodiment of the present disclosure. Figure 5 As shown, the brain age prediction method 500 based on deep bibranch networks can stack the first image and the second image, such as GW and MW, into an input image, and input the input image into a deep bibranch network to obtain the output (out), which is the predicted age of the brain structure.
[0080] To better understand the differences in network structure and data flow between shallow and deep feature extraction modules, the following will use a deep feature extraction unit in the deep feature extraction module as an example to explain in detail the feature extraction operation performed by the deep feature extraction unit.
[0081] Typically, a deep feature extraction module can include N deep feature extraction units, where N is the depth of the deep dual-branch network. By performing N feature extractions through N deep feature extraction units, the depth of the deep and dual-branch network can be increased, thereby obtaining deeper features and improving prediction accuracy. For example, N can be determined according to actual needs, ranging from tens to hundreds of layers.
[0082] According to embodiments of this disclosure, the predicted age of brain structure is output by performing multiple feature extractions on fused features through multiple deep feature extraction units. This includes: for each deep feature extraction unit, extracting features from the input of the deep feature extraction unit using a convolutional neural network branch and a visual Transformer branch respectively, to obtain a first feature and a second feature; fusing the first feature and the second feature using a feature fusion subunit to obtain a fused third feature; and inputting the third feature into the next deep feature extraction unit so that the next deep feature extraction unit can perform deep feature extraction on the third feature; wherein, during the feature extraction process, the convolutional neural network branch and the visual Transformer branch use an image patch fusion layer to make the output features of the visual Transformer branch have the same dimension as the output features of the convolutional neural network branch.
[0083] In the embodiments of this disclosure, the input to the first deep feature extraction unit is the fused features output by the feature fusion module. Thereafter, the input to each deep feature extraction unit is the output of the previous deep feature extraction unit. For the last deep feature extraction unit, a fully connected layer can be used to process it to obtain the predicted age of the brain structure.
[0084] In embodiments of this disclosure, each deep feature extraction unit includes a 3D CNN branch, a 3D ViT branch, and a feature fusion subunit for fusing the outputs of the 3D CNN branch and the 3D ViT branch. The network structure of the feature fusion subunit is similar to that of the feature fusion module, but it cannot align the outputs of the 3D CNN branch and the 3D ViT branch during the fusion process.
[0085] Since the 3D ViT branch includes a patch merging layer to reduce the dimensionality of the input to the 3D ViT branch, the shapes of the features of the 3D ViT branch and the features of the 3D CNN branch will change synchronously. This makes the output features of the 3D CNN branch and the 3D ViT branch aligned features. As a result, no feature alignment operation is required in the feature fusion subunit, which simplifies the model structure and model parameters.
[0086] In the 3D CNN submodule of the shallow feature extraction module, a downsampling layer is used at the head of the 3D CNN submodule to downsample the input image to reduce computation. Then, two Conv Block convolutional layers are used to extract local features from the MRI image, obtaining the output of the 3D CNN submodule. Each Conv Block convolutional layer uses a residual and bottleneck design.
[0087] Figure 6 A schematic diagram of the structure of a convolutional layer according to an embodiment of the present disclosure is shown.
[0088] like Figure 6 As shown, each Conv Block convolutional layer also has two branches, receiving the input image simultaneously. In the bottleneck branch, a 1*1*1 3D convolution (Conv3d k=1s=1) is first used to reduce the number of channels, then a 3*3*3 3D convolution (Conv3d k=3s=1) is used to extract features, and finally a 1*1*1 3D convolution (Conv3d k=1s=1) is used to restore the number of channels. After each convolutional block, a normalization layer (Batch Norm) and an activation function layer (GELU) are added to normalize the features.
[0089] In the residual branch, a 1x1x1 3D convolution (Conv3d k=1s=1) controls the number of channels and resolution, allowing it to be fused with the output of the bottleneck branch. Following the 1x1x1 3D convolution (Conv3d k=1s=1) is a normalization layer (Batch Norm) to normalize the features. The output of each Conv Block convolutional layer is obtained by adding the outputs of the bottleneck and residual branches.
[0090] In the 3D ViT submodule of the shallow feature extraction module, the input image is embedded using Patch embedding and Positionembedding. Positional embedding learns the position information of each patch after the input image is converted into one-dimensional token features using a learnable vector. The features output from Patch embedding and Positionembedding are summed and then fed into a Swin Transformer layer to extract global features from the MRI image. Specifically, the global features output by the 3D ViT submodule are obtained through feature extraction operations of two cascaded Swin Transformer layers.
[0091] The following section will use the 3D ViT branch and 3D CNN branch in a deep feature extraction unit as examples to describe the data flow of the deep feature extraction unit in detail.
[0092] According to embodiments of this disclosure, the method of extracting features from the input of the deep feature extraction unit using a visual Transformer branch to obtain a second feature includes: using an image patch fusion layer to downsample the input of the deep feature extraction unit based on the image patch position to obtain a first deep feature; inputting the first deep feature into a first Transformer layer to output a second deep feature; and inputting the second deep feature into a second Transformer layer to output a second feature.
[0093] In the 3D ViT branch of each deep feature extraction unit, the input of the 3D ViT branch is first downsampled using an image patchmerging layer to increase the receptive field of the self-attention mechanism and reduce the resolution of the input features, thereby reducing computation. Then, two Transformer layers are used for feature extraction, resulting in the 3D ViT branch outputting a second feature.
[0094] In each deep feature extraction unit's 3D CNN branch, three ConvBlock convolutional layers are set. The input of the 3D CNN branch is processed by the feature extraction operations of the three ConvBlock convolutional layers, and the first feature is output. The structure of each ConvBlock convolutional layer is similar to... Figure 6 The structure is the same, so I will not repeat it here.
[0095] Both the 3D ViT branch and the 3D CNN are three-layer structures, with feature extraction and feature dimension transformation performed in each layer. Because the embodiments of this disclosure include Patch Merging to adjust the 3D ViT features, the feature shapes of the 3D CNN branch and the 3D ViT branch change synchronously, resulting in aligned feature maps output by both branches.
[0096] According to embodiments of this disclosure, the feature fusion subunit in the deep feature extraction unit can perform the following operations to fuse a first feature and a second feature: fuse the first feature and the second feature; fuse the fused feature, the first feature and the second feature again to obtain a fourth feature; and reduce the dimensionality of the fourth feature to obtain a third feature.
[0097] Since the first and second features output by the 3D ViT branch and the 3D CNN have the same feature dimensions (feature shape), the first and second features can be directly added together in the feature fusion subunit without feature alignment. Then, the fused feature, the first feature, and the second feature are concatenated to obtain the fourth feature. A 1*1*1 3D convolutional layer is then used to convolve the fourth feature to reduce the number of channels, resulting in the fused third feature.
[0098] According to embodiments of this disclosure, a deep dual-branch network can be trained using a training set and tested using a test set.
[0099] Both the training and test sets consist of high-resolution T1-weighted MRI images of the brain structure of healthy individuals downloaded from publicly available databases, along with their actual ages. Healthy individuals were defined as those whose physical condition met the set health criteria. For example, the training set had a sample size of N = 4310, with an age distribution of 18.0–95.0 years. The test set had a sample size of N = 252, with an age distribution of 18.0–83.0 years, and included MRI images and gender labels.
[0100] Based on the training set, a deep dual-branch network was trained using backpropagation and gradient descent algorithms to obtain a deep dual-branch network for brain age prediction. Specifically, stacked MRI images of gray and white matter from the training set, along with gender labels, were used as input to obtain the output of the deep dual-branch network. The loss function was calculated based on the output of the deep dual-branch network and the true age (Chronological age) of healthy individuals in the training set. With the goal of minimizing the total loss, the model was trained using backpropagation and gradient descent algorithms to obtain the trained deep dual-branch network.
[0101] During the testing phase, the test set data is input into the trained deep dual-branch network to obtain the predicted age of the brain structure.
[0102] This disclosed deep dual-branch network is compared with other single-branch brain age prediction models, such as 3D-ResNet and 3D-ViT, using the mean absolute error (MAE) and correlation coefficient (r) as evaluation metrics. The formula for the mean absolute error is:
[0103]
[0104] Where N represents the total number of samples, Represents the predicted value, y i Indicates the sample label.
[0105] The formula for calculating the correlation coefficient is:
[0106]
[0107] Where X and Y represent the true age and predicted age, respectively, Cov(X,Y) represents the covariance of X and Y, and Var[X] and Var[Y] represent the variances of X and Y, respectively.
[0108] The comparison results are shown in Table 1. It can be seen that the deep dual-branch network disclosed in this paper has a significant performance improvement compared with other models for brain age prediction.
[0109] Table 1. Comparison of the disclosed deep dual-branch network with 3D-ResNet and 3D-ViT models.
[0110]
[0111] Figure 7 The diagram illustrates the correlation between predicted values and actual values in a test set according to an embodiment of the present disclosure.
[0112] like Figure 7 As shown, when the deep bibranch network of this disclosure is tested using the test set, it can be found that the correlation between the predicted value and the true value is r = 0.969, that is, the deep bibranch network of this disclosure has good performance in brain age prediction.
[0113] Previous brain age prediction models mostly used ordinary CNNs to extract features from magnetic resonance images. Since CNNs perform poorly in extracting global features, this disclosure combines 3D CNN and 3D ViT for brain age prediction. Furthermore, by adjusting the shape of the 3D ViT feature map through a patch merging layer, the resolution of the feature map is reduced, avoiding the interpolation and pooling operations that occur when the feature map enters the classic Conformer model, thereby reducing the computational cost of the model.
[0114] Furthermore, by adjusting the 3D ViT feature maps through the patch merging layer, the shape of the feature maps of the 3D CNN branches can change synchronously, resulting in aligned feature maps output by both branches. This allows the fusion block module to directly add and concatenate the feature maps output by both branches. In summary, this disclosure addresses the shortcomings of CNNs in capturing global features and their low prediction efficiency through multiple parallel bi-branch feature extractions and fusions, thereby improving the accuracy of brain age prediction.
[0115] Figure 8 A schematic block diagram of a brain age prediction device based on a deep dual-branch network according to an embodiment of the present disclosure is shown.
[0116] like Figure 8 As shown, the brain age prediction device 800 based on a deep dual-branch network in this embodiment includes a first prediction module 810, a second prediction module 820, a third prediction module 830, a fourth prediction module 840, and a fifth prediction module 850.
[0117] The deep dual-branch network includes a shallow feature extraction module, a feature fusion module, and a deep feature extraction module. The shallow feature extraction module includes a convolutional neural network submodule and a visual Transformer submodule; the deep feature extraction module includes multiple cascaded deep feature extraction units.
[0118] The first prediction module 810 is used to stack the preprocessed first image and the second image into an input image according to the channel dimension, wherein the first image is used to represent the white matter information of the brain structure and the second image is used to represent the gray matter information of the brain structure.
[0119] The second prediction module 820 is used to input the input image into the convolutional neural network submodule and output local features.
[0120] The third prediction module 830 is used to input the input image into the visual Transformer submodule and output global features.
[0121] The fourth prediction module 840 is used to input local and global features into the feature fusion module and output fused features.
[0122] The fifth prediction module 850 is used to extract features from the fused features multiple times through multiple deep feature extraction units, and output the predicted age of the brain structure.
[0123] According to embodiments of this disclosure, any plurality of modules among the first prediction module 810, the second prediction module 820, the third prediction module 830, the fourth prediction module 840, and the fifth prediction module 850 may be combined into one module, or any one of these modules may be split into multiple modules. Alternatively, at least some of the functionality of one or more of these modules may be combined with at least some of the functionality of other modules and implemented in one module.
[0124] According to embodiments of this disclosure, at least one of the first prediction module 810, the second prediction module 820, the third prediction module 830, the fourth prediction module 840, and the fifth prediction module 850 can be at least partially implemented as a hardware circuit, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system-on-a-chip, a system-on-a-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or implemented in hardware or firmware by any other reasonable means of integrating or packaging the circuit, or implemented in any one of software, hardware, and firmware, or in a suitable combination of any of these. Alternatively, at least one of the first prediction module 810, the second prediction module 820, the third prediction module 830, the fourth prediction module 840, and the fifth prediction module 850 can be at least partially implemented as a computer program module, which can perform corresponding functions when the computer program module is run.
[0125] It should be noted that the brain age prediction device based on deep bibranch network in the embodiments of this disclosure corresponds to the brain age prediction method based on deep bibranch network in the embodiments of this disclosure. For a detailed description of the brain age prediction device based on deep bibranch network, please refer to the brain age prediction part based on deep bibranch network, which will not be repeated here.
[0126] Figure 9 A block diagram of an electronic device suitable for a brain age prediction method based on a deep dual-branch network, according to an embodiment of the present disclosure, is shown schematically.
[0127] like Figure 9 As shown, an electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage portion 908 into a random access memory (RAM) 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0128] RAM 903 stores various programs and data required for the operation of electronic device 900. Processor 901, ROM 902, and RAM 903 are interconnected via bus 904. Processor 901 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 902 and / or RAM 903. It should be noted that the programs may also be stored in one or more memories other than ROM 902 and RAM 903. Processor 901 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in said one or more memories.
[0129] According to embodiments of this disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to a bus 904. The electronic device 900 may also include one or more of the following components connected to the input / output I / O interface 905: an input section 906 including a keyboard, mouse, etc.; an output section 907 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 910 as needed so that computer programs read from it can be installed into the storage section 908 as needed.
[0130] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.
[0131] According to embodiments of this disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as including, but not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to embodiments of this disclosure, the computer-readable storage medium may include ROM 902 and / or RAM 903 and / or one or more memories other than ROM 902 and RAM 903 described above.
[0132] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowchart. When the computer program product is run on a computer system, the program code is used to cause the computer system to implement the methods provided in the embodiments of this disclosure.
[0133] When the computer program is executed by the processor 901, it performs the functions defined in the system / apparatus of this disclosure embodiments. According to embodiments of this disclosure, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0134] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and downloaded and installed via the communication section 909, and / or installed from a removable medium 911. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.
[0135] In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, it performs the functions defined in the system of this disclosure embodiment. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0136] According to embodiments of this disclosure, program code for executing the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, languages such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0137] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0138] Those skilled in the art will understand that the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways, even if such combinations or combinations are not explicitly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.
[0139] The specific embodiments described above further illustrate the purpose, technical solutions, and beneficial effects of this disclosure. It should be understood that the above descriptions are merely specific embodiments of this disclosure and are not intended to limit this disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the protection scope of this disclosure.
Claims
1. A brain age prediction method based on deep dual-branch networks, wherein, The deep dual-branch network includes a shallow feature extraction module, a feature fusion module, and a deep feature extraction module. The shallow feature extraction module includes a convolutional neural network submodule and a visual Transformer submodule. The deep feature extraction module includes multiple cascaded deep feature extraction units. The method includes: According to the channel dimension, the preprocessed first image and the second image are stacked to form the input image, wherein the first image is used to represent the white matter information of the brain structure and the second image is used to represent the gray matter information of the brain structure. The input image is input into the convolutional neural network submodule, which outputs local features. The input image is input into the visual Transformer submodule, which outputs global features. The local features and the global features are input into the feature fusion module, and the fused features are output. The fused features are extracted multiple times by the multiple deep feature extraction units to output the predicted age of the brain structure. The multiple deep feature extraction units have the same network structure, each including a convolutional neural network branch, a visual Transformer branch, and a feature fusion subunit. The convolutional neural network branch of the deep feature extraction unit includes three cascaded identical second convolutional layers. The network structure of the first convolutional layer and the second convolutional layer is the same. The network structure of the convolutional neural network branch differs from that of the convolutional neural network submodule, and the network structure of the visual Transformer branch also differs from that of the visual Transformer submodule. Specifically, the convolutional neural network submodule includes cascaded downsampling layers and two identical first convolutional layers; the visual Transformer submodule includes a slicing layer, a position layer, and a swin Transformer layer. The slicing layer is used to segment the input image into multiple image patches and convert them into one-dimensional token features. The position layer is used to record the positions of the multiple image patches within the one-dimensional token features. The swin Transformer layer is used to extract features from the features fused from the slicing layer and the position layer. The visual Transformer branch of the deep feature extraction unit includes cascaded image patch fusion layers and two Transformer layers. The process of extracting features from the fused features multiple times through the multiple deep feature extraction units to output the predicted age of the brain structure includes: For each deep feature extraction unit, The convolutional neural network branch and the visual Transformer branch are used to extract features from the input of the deep feature extraction unit to obtain the first feature and the second feature. The feature fusion subunit is used to fuse the first feature and the second feature to obtain the fused third feature; and The third feature is input into the next deep feature extraction unit so that the next deep feature extraction unit can perform deep feature extraction on the third feature; In the process of feature extraction, the convolutional neural network branch and the visual Transformer branch use the image patch fusion layer to make the output features of the visual Transformer branch have the same dimension as the output features of the convolutional neural network branch.
2. The method according to claim 1, wherein, The step of inputting the local features and the global features into the feature fusion module and outputting the fused features includes: Align the feature dimensions of the global features with those of the local features to obtain aligned global features; The aligned global features are fused with the local features to obtain the first shallow feature layer; The first shallow feature, the aligned global feature, and the local feature are fused to obtain the fused feature.
3. The method according to claim 2, wherein, The step of fusing the first shallow feature, the aligned global feature, and the local feature to obtain the fused feature includes: The first shallow feature, the aligned global feature, and the local feature are concatenated to obtain the second shallow feature; and The first shallow feature is dimensionality reduced to obtain the fused feature.
4. The method according to claim 1, wherein, The visual Transformer branch is used to extract features from the input of the deep feature extraction unit to obtain the second feature, which includes: Using an image patch fusion layer, the input of the deep feature extraction unit is downsampled based on the image patch position to obtain the first deep feature; The first deep feature is input into the first Transformer layer, and the second deep feature is output; and The second deep feature is input into the second Transformer layer, and the second feature is output.
5. The method according to claim 1, wherein, The step of fusing the first feature and the second feature using the feature fusion subunit to obtain the fused third feature includes: The first feature and the second feature are combined; The fused features, the first feature, and the second feature are fused again to obtain the fourth feature; and The fourth feature is then dimensionality-reduced to obtain the third feature.
6. A brain age prediction device based on a deep dual-branch network, wherein, The deep dual-branch network includes a shallow feature extraction module, a feature fusion module, and a deep feature extraction module. The shallow feature extraction module includes a convolutional neural network submodule and a visual Transformer submodule. The deep feature extraction module includes multiple cascaded deep feature extraction units. The device includes: The first prediction module is used to stack the preprocessed first image and the second image into an input image according to the channel dimension, wherein the first image is used to represent the white matter information of the brain structure and the second image is used to represent the gray matter information of the brain structure. The second prediction module is used to input the input image into the convolutional neural network submodule and output local features; The third prediction module is used to input the input image into the visual Transformer submodule and output global features; The fourth prediction module is used to input the local features and the global features into the feature fusion module and output the fused features; The fifth prediction module is used to perform multiple feature extractions on the fused features through the multiple deep feature extraction units, and output the predicted age of the brain structure; the multiple deep feature extraction units have the same network structure, each including a convolutional neural network branch, a visual Transformer branch, and a feature fusion subunit; the convolutional neural network branch of the deep feature extraction unit includes three cascaded identical second convolutional layers; wherein, the network structure of the first convolutional layer and the second convolutional layer is the same; The network structure of the convolutional neural network branch differs from that of the convolutional neural network submodule, and the network structure of the visual Transformer branch also differs from that of the visual Transformer submodule. Specifically, the convolutional neural network submodule includes cascaded downsampling layers and two identical first convolutional layers; the visual Transformer submodule includes a slicing layer, a position layer, and a swin Transformer layer. The slicing layer is used to segment the input image into multiple image patches and convert them into one-dimensional token features. The position layer is used to record the positions of the multiple image patches within the one-dimensional token features. The swin Transformer layer is used to extract features from the features fused from the slicing layer and the position layer. The visual Transformer branch of the deep feature extraction unit includes cascaded image patch fusion layers and two Transformer layers. The fifth prediction module is further used for: For each deep feature extraction unit, The convolutional neural network branch and the visual Transformer branch are used to extract features from the input of the deep feature extraction unit to obtain the first feature and the second feature. The feature fusion subunit is used to fuse the first feature and the second feature to obtain the fused third feature; and The third feature is input into the next deep feature extraction unit so that the next deep feature extraction unit can perform deep feature extraction on the third feature; In the process of feature extraction, the convolutional neural network branch and the visual Transformer branch use the image patch fusion layer to make the output features of the visual Transformer branch have the same dimension as the output features of the convolutional neural network branch.
7. An electronic device, comprising: One or more processors; Memory, used to store one or more computer programs. The characteristic feature is that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 5.
