A method, device and storage medium for predicting choroidal neovascularization growth
Through a method based on convolutional neural networks, combined with gated recursive units and correlation attention mechanisms, the choroidal neovascular lesion area is segmented and predicted, which solves the problem of low prediction performance in the existing technology and achieves higher accuracy and robustness.
Patent Information
- Application Number
- CN202211644781.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-20
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-12-20
AI Technical Summary
The prediction performance and accuracy of choroidal neovascular growth prediction methods in the existing technology are low. Especially when dealing with noisy hospital data and CNVs with heterogeneous shapes, it is difficult to generate accurate lesion attention maps, resulting in inaccurate predictions. .
A method based on convolutional neural networks is used to segment the choroidal neovascular lesion area by acquiring retinal OCT images before and after treatment, and uses a gated recursive unit combined with a spatial and channel attention mechanism to perform multiple convolutions and downlinks. Sampling, generating high-dimensional feature maps, and predicting CNV growth. Specific steps include anisotropic filtering, boundary segmentation, registration and segmentation of images, using an encoder-recurrent network-decoder framework, combined with a correlation attention guidance module and a gated recursive unit, for feature extraction and prediction.
It improves the accuracy and performance of choroidal neovascular growth prediction, can capture the spatial characteristics of spatio-temporal sequence images in multi-dimensional data, reduces the amount of calculation, enhances the accuracy and robustness of prediction, and is suitable for CNV regions of different sizes and shapes.
Smart Images

Figure CN116091519B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of deep learning technology, and in particular to a method, device and storage medium for predicting choroidal neovascularization growth. Background Art
[0002] Disease prediction is widely used in the field of oncology to help quantify tumor aggressiveness, estimate patient survival, and improve treatment plans. Existing methods can be divided into two types: the first is based on mathematical modeling, such as reaction-diffusion model, hyperelastic biomechanical model, reaction-diffusion model and biomechanical model coupling method. By establishing these mathematical models, the diffusion and proliferation of tumor cells in the surrounding tissues are captured to simulate tumor growth. The second is a machine learning-based method that uses convolutional neural networks to learn the two basic processes of tumor growth-cell invasion and mass effect, making full use of the patient's longitudinal data, and jointly learning the contextual information and dynamic changes of each slice of images at multiple time points. These methods have also been extended to the field of ophthalmology, such as qualitative or quantitative prediction of diseases such as age-related macular degeneration (AMD), diabetic macular edema (DME), retinal vein occlusion (RVO) and choroidal neovascularization (CNV).
[0003] Choroidal neovascularization, also known as subretinal neovascularization, is caused by the proliferation of capillaries from the choroid through the tear of Bruch's membrane, and is often seen in the macula. At present, intravitreal injection of anti-vascular endothelial growth factor (anti-VEGF) drugs has become an important way to treat CNV. Anti-VEGF drugs include pegaptanib, aflibercept, bevacizumab and ranibizumab, which inhibit the growth of CNV by binding to and blocking VEGF receptors, reducing vascular permeability and reducing the fluid area below the RPE. There are currently two options for injecting anti-VEGF drugs. One is the PRN (Pro-Re-Nata) option, which is to inject once a month. After three consecutive injections, the patient's condition determines whether to continue the injection. The second is the T&E (Treat and Extend) option, which is to inject once a month. After three consecutive injections, the injection interval is gradually extended according to the condition. Since the efficacy of anti-VEGF drugs varies from person to person, and the high frequency injection and high cost of the drug bring a huge burden to patients. In addition, since intraocular injection of drugs is invasive, it may cause some serious side effects, such as intraocular inflammation. By predicting the future development trend of the disease and the individual's response to treatment at the beginning of treatment, ophthalmologists can conduct quantitative analysis in advance and develop personalized treatment plans. Under the premise of ensuring efficacy, the number of medications can be reduced as much as possible, the risk and cost of treatment can be reduced, the economic burden on society can be reduced, and resource management can be promoted.
[0004] The invention patent "Choroidal neovascularization growth prediction method combining constitutive model and finite element, patent number CN106844994B" combines the reaction-diffusion model with the hyperelastic biomechanical model to predict the growth morphology and volume changes of CNV after patients' anti-vascular endothelial growth factor (VEGF) treatment.
[0005] Traditional mathematical models can only consider the growth of the lesion area of each subject independently and cannot learn the common growth pattern of CNV in the entire study population. In addition, the optimization algorithm is very time-consuming, and the predictive performance on large sample sets remains to be verified.
[0006] Literature Zhang Y, Ma X, Li M, et al, "LamNet: A Lesion Attention Maps-Guided Network for the Prediction of Choroidal Neovascularization Volume in SD-OCT Images," IEEE Journal of Biomedical and Health Informatics, 26(4): 1660-71 (2022) proposed a lesion attention map-guided network based on three-dimensional SD-OCT images, and automatically predicted the CNV volume at the next follow-up after treatment based on the generated attention map.
[0007] Compared with segmenting the lesion area, using a classification network to generate a lesion attention map has high data requirements, such as high-quality images and obvious CNV features. However, the data collected by most hospitals do not meet these two conditions. They usually have a lot of noise, and the CNV shapes are different and the boundaries are not obvious, which will cause the generated attention map to deviate from the actual CNV area, resulting in inaccurate predictions.
[0008] Therefore, how to improve the predictive performance of choroidal neovascularization growth prediction methods is a problem that needs to be solved. Summary of the invention
[0009] Therefore, the technical problem to be solved by the present invention is to overcome the problem of low prediction performance and accuracy of the choroidal neovascularization growth prediction method in the prior art.
[0010] In order to solve the above technical problems, the present invention provides a method for predicting choroidal neovascularization growth, comprising:
[0011] Obtaining a retinal OCT image before receiving treatment and using it as a baseline image, and obtaining multiple follow-up retinal OCT images after receiving treatment;
[0012] Segmenting the choroidal neovascularization (CNV) lesion areas of the reference image and the plurality of follow-up images to obtain n segmented images;
[0013] The n segmented images are respectively concatenated with the corresponding original images and then convolved and down-sampled multiple times to obtain n high-dimensional feature maps;
[0014] The i-1th spatial feature map output by the i-1th gated recurrent unit and the i-th high-dimensional feature map are input into the i-th gated recurrent unit to obtain the i-th spatial feature map, i∈0...n-1, where the specific operation in the i-th gated recurrent unit is:
[0015] The i-1th spatial feature map and the i-th high-dimensional feature map are respectively subjected to 3×3 convolution operations, added, and processed by the sigmoid function to obtain the output of the reset gate; the i-1th spatial feature map and the i-th high-dimensional feature map are subtracted, and then subjected to 1×1 convolution and cross-channel average pooling operations to obtain a spatial attention map; the i-1th spatial feature map and the i-th high-dimensional feature map are subtracted, and then average pooling and maximum pooling operations are performed respectively. The outputs of the two are processed by two consecutive fully connected layers and then superimposed to obtain a channel attention map; the spatial attention map and the channel attention map are element-by-element multiplied and subjected to sigmoid. The id function is normalized to obtain the output of the update gate; the i-1th spatial feature map after the 3×3 convolution operation is subjected to a Hadamard product with the output of the reset gate, and is added to the i-th high-dimensional feature map after the 3×3 convolution operation and then processed by the tanh function to obtain a candidate state; 1 is subtracted from the output of the update gate and then subjected to a Hadamard product with the i-1th spatial feature map, and the candidate state after the Hadamard product with the output of the update gate is added to obtain a hidden state, which is the i-th spatial feature map;
[0016] The n-1th spatial feature map is processed by multiple deconvolution operation units, and jump-connected with the feature map generated by multiple downsampling of the n-1th segmented image after splicing with the corresponding original image to obtain the target feature map;
[0017] The target feature map is processed by a 1×1 convolution operation and a softmax function to obtain a CNV growth prediction result.
[0018] Preferably, the formula for the specific operation in the gated recursive unit is expressed as:
[0019] Reset gate output R n =G reset (X n ,H n-1 )=σ(W xr *X n +W hr *H n-1 )
[0020] Update gate output
[0021] Candidate status
[0022] Hidden State
[0023] Among them, W xr , W hr , W xh and W hhare all 3×3 weight matrices, and “*” is the convolution operation. is the Hadamard product, σ and tanh represent the sigmoid function and tanh function respectively, F SA represents 1×1 convolution operation and cross-channel average pooling, F CA It means that global average pooling and global maximum pooling are introduced into the input, and then two fully connected layers are used to obtain the channel attention map and superimposed.
[0024] Preferably, acquiring a retinal OCT image comprises:
[0025] Perform anisotropic filtering on ophthalmic OCT images;
[0026] The boundaries of the retinal layers in the filtered image were segmented, where the boundaries of the retinal layers were the inner limiting membrane layer and the retinal pigment epithelium layer, and the retinal pigment epithelium layer was adjusted to the correct position using OCT Explorer software.
[0027] Preferably, before segmenting the choroidal neovascularization CNV lesion area of the reference image and the plurality of follow-up images, the method further includes:
[0028] Each follow-up image is registered with the reference image.
[0029] Preferably, the specific operation of the registration is:
[0030] After using the ResNet-18 network to extract features from the reference image and follow-up image after splicing on the channel, the full connection layer with 3 input and output channels is used to obtain three transformation parameters: rotation angle θ, horizontal displacement T x and vertical displacement T y ;
[0031] According to the three transformation parameters, the rigid transformation matrix T is obtained. r :
[0032]
[0033] Among them, (x0, y0) is the coordinate of the center point of the follow-up image;
[0034] resampling the follow-up image according to the rigid transformation matrix;
[0035] The mask of the follow-up image is also transformed as described above to obtain the registered follow-up image.
[0036] Preferably, the loss function of the registration process is defined as:
[0037]
[0038] in, is the key point of the reference image, the key point is the point on the retinal pigment epithelium, g is the total number of key points, and the key points of the follow-up image after registration are are the key points of the follow-up image before registration.
[0039] Preferably, the segmenting of the choroidal neovascularization CNV lesion area of the reference image and the plurality of follow-up images to obtain n segmented images comprises:
[0040] The reference image and the multiple follow-up images are respectively subjected to feature extraction by an encoder to obtain n encoded feature maps, wherein the encoder is a ResNet-34 network with the last average pooling layer and the fully connected layer removed;
[0041] The i-1th encoded feature map and the i-th encoded feature map are input into the correlation attention guidance module to obtain the i-th reconstructed feature map, and the 0th reconstructed feature map is the 0th encoded feature map. The specific operation of the correlation attention guidance module is:
[0042] The i-1th encoded feature map and the i-th encoded feature map Perform dimensionality reduction to obtain feature maps and feature map Among them, C, H and W represent the number of channels, height and width of the input features;
[0043] For the feature map F AD Reorganize and transpose to get the feature map For the feature map F BD Recombination to obtain feature map
[0044] Calculate the feature map F AR and feature map F BR Comparison matrix between
[0045] Among them, softmax() means using the softmax function to normalize the weights, f AR (i,j) represents the feature map F AR The gray value at position (i,j) in the Represents the feature map F AR The average gray value, f BR (j,i) represents the feature map F BR The gray value at position (j,i) in Represents the feature map F BR The average gray value of
[0046] The comparison matrix MNCC After transposition, the feature map F BR Multiply, reorganize and upsample to size, after multiplying with the scale parameter α and the feature map F B Perform element-wise sum operation to get spatial attention output
[0047] For the feature map F A After the global average pooling operation, the weights on the channels are obtained through the multi-layer perceptron and the sigmoid activation function, and the weights and feature maps F B Multiply them together to get the channel attention output
[0048] Perform element-by-element sum operation on the spatial attention output and the channel attention output to generate the i-th reconstructed feature map
[0049] The i-th reconstructed feature map is input into the decoder, upsampled multiple times, and jump-connected with multiple shallow features generated by the encoder in the process of generating the i-th encoded feature map to obtain the i-th segmented image.
[0050] Preferably, the loss function of the segmentation process is defined as:
[0051] Total loss
[0052] Joint loss L sigle =L Dice +L BCE
[0053] Dice loss
[0054] Binary cross entropy loss L BCE =-∑ h,w (1-Y)log(1-P)+Ylog(P)
[0055] Among them, P and Y represent the segmentation result and the corresponding gold standard respectively, and h and w are the pixel coordinates in P and Y.
[0056] The present invention also provides a choroidal neovascularization growth prediction device for implementing the choroidal neovascularization growth prediction method as described above.
[0057] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for predicting choroidal neovascularization growth are implemented.
[0058] The above technical solution of the present invention has the following advantages compared with the prior art:
[0059] The present invention proposes a CNV growth prediction method based on convolutional neural network. The collected image is segmented into the CNV lesion area of interest, and it is spliced with the original image as the input of growth prediction to ensure the accuracy of CNV growth prediction. The proposed attention-based gated recurrent unit integrates the spatial attention and channel attention of longitudinal data, focuses on the changes in the spatial position of spatiotemporal sequence images, and can perform convolution operations in multidimensional data to capture the spatial features of spatiotemporal sequence images while reducing the amount of calculation, and has better performance in growth prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein:
[0061] Figure 1 It is a flow chart of the implementation of the method for predicting choroidal neovascularization growth of the present invention;
[0062] Figure 2 It is a schematic diagram of the overall structure of the growth prediction network designed by the present invention;
[0063] Figure 3 It is a schematic diagram of the update gate structure in the attention-based gated recurrent unit AGRU designed by the present invention;
[0064] Figure 4 It is a schematic diagram of the overall structure of the rigid registration network designed by the present invention;
[0065] Figure 5 It is a schematic diagram of the overall structure of the collaborative segmentation network designed by the present invention;
[0066] Figure 6 It is a schematic diagram of the correlation attention guidance CAG module designed by the present invention;
[0067] Figure 7 It is a comparison diagram before and after the registration of the present invention;
[0068] Figure 8 This is a comparison of the segmentation results of the present invention and other excellent networks in a large CNV region;
[0069] Fig. 9 This is a comparison chart of the segmentation results of the present invention and other excellent networks in a small CNV region;
[0070] Fig.10 is a comparison chart of the growth prediction results of the present invention, TAPred and the baseline network in Example 1;
[0071] Fig.11 This is a comparison chart of the growth prediction results of Example 2 between the present invention, TAPred and the baseline network. DETAILED DESCRIPTION
[0072] The core of the present invention is to provide a method, device and computer storage medium for predicting choroidal neovascularization growth, which improves the prediction accuracy and prediction performance.
[0073] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0074] Please refer to Figure 1 , Figure 1 This is a flow chart of the implementation of the choroidal neovascularization growth prediction method provided by the present invention; the specific operation steps are as follows:
[0075] S101: obtaining a retinal OCT image before receiving treatment, using it as a reference image, and obtaining multiple follow-up retinal OCT images after receiving treatment;
[0076] The obtaining of retinal OCT images comprises:
[0077] Since OCT images have more speckle noise, it is necessary to first perform anisotropic filtering on ophthalmic OCT images;
[0078] Segmenting the boundaries of the retinal layers in the filtered image to extract the retinal region of interest, wherein the boundaries of the retinal layers are the inner limiting membrane (ILM) layer and the retinal pigment epithelium (RPE) layer;
[0079] Because some lesions were too large, their shadows covered the choroid, making it difficult to segment the RPE layer using an automatic algorithm. The position of the retinal pigment epithelium was adjusted using OCT Explorer software.
[0080] S102: Segmenting the choroidal neovascularization (CNV) lesion areas of the reference image and the plurality of follow-up images to obtain n segmented images;
[0081] In order to realize the growth prediction of CNV, the segmentation results are spliced with the original image and then input into the growth prediction network. The present invention proposes an encoder-recursive network-decoder framework to predict the future shape of CNV, such as Figure 2 As shown, the details are as follows:
[0082] S103: splicing the n segmented images with the corresponding original images, performing multiple convolutions and downsampling, to obtain n high-dimensional feature maps;
[0083] UNet is used as the backbone network of the encoder, and the four convolutional layers all use 3×3 convolution with a stride of 1, ReLU activation function, and zero padding. The pooling layer uses a 2×2 filter with a stride of 2 for maximum pooling, and the number of neurons during downsampling is 16, 32, 64, and 128, respectively.
[0084] S104: Input the i-1th spatial feature map and the i-th high-dimensional feature map output by the i-1th gated recurrent unit into the i-th gated recurrent unit to obtain the i-th spatial feature map, i∈0...n-1; wherein the specific operation in the i-th gated recurrent unit is:
[0085] The i-1th spatial feature map and the i-th high-dimensional feature map are respectively subjected to 3×3 convolution operations, added, and processed by the sigmoid function to obtain the output of the reset gate; the i-1th spatial feature map and the i-th high-dimensional feature map are subtracted, and then subjected to 1×1 convolution and cross-channel average pooling operations to obtain the overall response of each spatial position to obtain a spatial attention map; the i-1th spatial feature map and the i-th high-dimensional feature map are subtracted, and then average pooling and maximum pooling operations are performed respectively. The outputs of the two are processed by two consecutive fully connected layers and then superimposed to obtain a channel attention map; the spatial attention map and the channel attention map are element-wise multiplied and then passed through s The igmoid function is normalized to obtain the output of the update gate; the i-1th spatial feature map after the 3×3 convolution operation is subjected to a Hadamard product with the output of the reset gate, and is added to the i-th high-dimensional feature map after the 3×3 convolution operation and then processed by the tanh function to obtain a candidate state; 1 is subtracted from the output of the update gate and then subjected to a Hadamard product with the i-1th spatial feature map, and the candidate state after the Hadamard product with the output of the update gate is added to obtain a hidden state, which is the i-th spatial feature map;
[0086] The formula for the specific operation in the gated recurrent unit (AGRU) is expressed as:
[0087] Reset gate output R n =G reset (X n ,H n-1 )=σ(Wxr *X n +W hr *H n-1 )
[0088] Update gate output
[0089] Candidate status
[0090] Hidden State
[0091] Among them, W xr , W hr , W xh and W hh are all 3×3 weight matrices. To simplify the formula, the bias is omitted here. “*” is the convolution operation. is the Hadamard product, σ and tanh represent the sigmoid function and tanh function respectively, F SA represents 1×1 convolution operation and cross-channel average pooling, F CA It means that global average pooling and global maximum pooling are introduced into the input, and then two fully connected layers are used to obtain the channel attention map and superimpose them. Since the shape of CNV is always changing, the use of attention mechanism can help decide which previous information should be retained in H n , what new information should be obtained from The present invention uses H n-1 -X n As the input of the update gate, to learn the difference between the two, Figure 3 For the proposed update gate architecture.
[0092] S105: processing the n-1th spatial feature map through multiple deconvolution operation units, and performing jump connection with the feature map generated by multiple downsampling of the n-1th segmented image after splicing with the corresponding original image, to obtain a target feature map;
[0093] Skip connections make up for the information loss caused by the image downsampling process.
[0094] S106: The target feature map is subjected to a 1×1 convolution operation and a softmax function processing to obtain a CNV growth prediction result.
[0095] Finally, 1×1 convolution is used as the feature extractor of the output layer classifier, and each pixel of the image is divided into two categories, namely background and CNV area, after passing through the softmax function.
[0096] The loss function for growth prediction during training adopts the joint loss function used for segmentation.
[0097] The present invention proposes a CNV growth prediction method based on convolutional neural network. The collected image is segmented into the CNV lesion area of interest, and it is spliced with the original image as the input of growth prediction to ensure the accuracy of CNV growth prediction. The proposed attention-based gated recurrent unit integrates the spatial attention and channel attention of longitudinal data, focuses on the changes in the spatial position of spatiotemporal sequence images, and can perform convolution operations in multidimensional data to capture the spatial features of spatiotemporal sequence images while reducing the amount of calculation, and has better performance in growth prediction.
[0098] Based on the above embodiment, before step S102, each follow-up image is further registered with the reference image, as follows:
[0099] In order to ensure the accuracy of CNV growth prediction, it is necessary to solve the offset problem of longitudinal data and register the follow-up OCT image to the baseline image so that the CNV area remains in the same position. Considering that non-rigid registration may affect the shape and size of CNV, the present invention adopts rigid registration. In addition, the traditional registration method based on grayscale similarity is very sensitive to the common speckle noise in OCT images. Therefore, the present invention proposes a key point-based registration network, such as Figure 4 As shown:
[0100] During training, the reference image (fixed image) (I f ), follow-up images (floating images) (I m ) and its corresponding key points are input into the regression network. The key points are 4 points on the RPE layer, with horizontal coordinate values of 102, 204, 306 and 408 respectively. The regression network uses ResNet-18 as its feature extractor, and the number of channels of the four downsamplings is 64, 128, 256, and 512 respectively, and the number of output channels of the final fully connected layer is 3.
[0101] Three transformation parameters are obtained through the regression network: rotation angle θ, horizontal displacement T x and vertical displacement T y These three parameters constitute the rigid transformation matrix T r :
[0102]
[0103] Among them, (x0, y0) is the coordinate of the center point of the follow-up image;
[0104] The key points of the floating image are calculated according to the following formula By transforming, we can obtain the transformed key points
[0105]
[0106] The loss function is defined as and The root mean square error (RMSE) between
[0107] in, is the key point of the reference image, the key point is the point on the retinal pigment epithelium, g is the total number of key points, and the key points of the follow-up image after registration are are the key points of the follow-up image before registration.
[0108] Finally, the follow-up image is resampled according to the rigid transformation matrix to obtain the registered image. In the test phase, no key points need to be input, only the fixed image and the floating image need to be input, and the transformation parameters can be automatically regressed to generate the registered image. Then, the same transformation is performed on the mask of the floating image to obtain the registered CNV mask, which prepares the input for the next step of segmentation.
[0109] Based on the above embodiments, this embodiment further describes step S102 in detail:
[0110] In order to study the growth process of CNV, it is necessary to segment the registered OCT images and extract the CNV lesion areas of interest, which can be used as input for growth prediction. Figure 5 The collaborative segmentation network proposed in this paper is presented, which mainly consists of three parts: a twin encoder, a correlation attention guidance (CAG) module and a twin decoder, where the twin encoder and the twin decoder are weight-shared. The former is used to extract spatial features from the input image, while the latter is used to generate a segmentation map from the features. In addition, the CAG module is designed to obtain the common focus points in the two input images, such as Figure 6 shown.
[0111] The reference image and multiple registered follow-up images are respectively subjected to feature extraction by an encoder to obtain n encoded feature maps. The encoder is a ResNet-34 network without the last average pooling layer and the fully connected layer. ResNet-34 has five stages. The first stage includes 7×7 convolution with a step size of 2, batch normalization, and ReLU activation function. The next four stages contain 3, 4, 6, and 3 residual modules, respectively. Each stage is downsampled once and the number of channels is doubled. The number of output channels is 64, 64, 128, 256, and 512, respectively.
[0112] The i-1th encoded feature map and the i-th encoded feature map are input into the correlation attention guidance module to obtain the i-th reconstructed feature map, and the 0th reconstructed feature map is the 0th encoded feature map. The specific operation of the correlation attention guidance (CAG) module is:
[0113] In order to reduce the dimensionality of the weights and speed up the calculation, the input image is passed to a dimensionality reduction layer, which includes 1×1 convolution, batch normalization and ReLU activation function. and the i-th encoded feature map Perform dimensionality reduction to obtain feature maps and feature map Among them, C, H and W represent the number of channels, height and width of the input features;
[0114] For the feature map F AD Reorganize and transpose to get the feature map For the feature map F BD Recombination to obtain feature map
[0115] Calculate the feature map F AR and feature map F BR Comparison matrix between To compare the local descriptors at each spatial position (i, j) of the two feature maps. Considering that the Normalized Cross Correlation (NCC) is more robust than other simple correlation indicators, the present invention uses NCC to define the correlation between the two features. Then the softmax function is used to normalize the weights:
[0116]
[0117] Among them, softmax() means using the softmax function to normalize the weights, f AR (i,j) represents the feature map F AR The gray value at position (i,j) in the Represents the feature map F AR The average gray value, f BR (j,i) represents the feature map F BR The gray value at position (j,i) in Represents the feature map F BR The average gray value of
[0118] The comparison matrix M NCC After transposition, the feature map F BR Multiply, reorganize and upsample to Size, after multiplying with the upper scale parameter α and the feature map F B Perform element-wise sum operation to get spatial attention output
[0119] For the feature map F A After the global average pooling operation, the weights on the channels are obtained through the multi-layer perceptron and the sigmoid activation function, and the weights and feature maps F B Multiply them together to get the channel attention output It is worth noting that if F A There is no high response on channel i, then F B Channel i will not be activated because the initial activation amount is very small.
[0120] Perform element-by-element sum operation on the spatial attention output and the channel attention output to generate the i-th reconstructed feature map
[0121] The i-th reconstructed feature map is input into the decoder for multiple upsampling (using deconvolution as the upsampling method, that is, one upsampling includes a 1×1 convolution, a 3×3 deconvolution and a 1×1 convolution operation) to restore high-level semantic features, and is jump-connected with multiple shallow features generated by the encoder in the process of generating the i-th encoded feature map to supplement the detail information for the upsampling process, and obtain the i-th segmented image with the same resolution as the original image.
[0122] The present invention adopts the combined loss L single To calculate each segmentation result P i and the corresponding gold standard Y i The difference between the two is that the loss function is composed of the Dice loss L Dice and the binary cross entropy loss L BCE composition:
[0123] L single =L Dice +L BCE
[0124] The Dice loss function is used to calculate the overlap between each category target and the gold standard, and its calculation method is:
[0125]
[0126] The binary cross entropy loss function obtains the loss value by comparing the segmentation result with each pixel of the gold standard one by one. The calculation method is:
[0127]
[0128] Where P and Y represent the segmentation result and the corresponding gold standard, respectively, and h and w are the pixel coordinates in P and Y.
[0129] Therefore, L Dice and L BCE It can optimize the model at the image level and pixel level respectively. The overall loss function L total for:
[0130]
[0131] Based on the above embodiments, in order to verify the effectiveness of the method of the present invention, this embodiment compares the registration, segmentation and growth prediction with the classical method respectively:
[0132] The dataset comes from Shanghai First People's Hospital, with a total of 63 CNV patients, each of whom has OCT follow-up images at 4 time points (within 30±7 days (mean±SD)). All SD-OCT images were acquired by Heidelberg scanner, with a size of 512×496×19 voxels (12.38μm×3.87μm×261.9μm) and a volume of 6mm×2mm×5mm.
[0133] Registration experiment results:
[0134] The data was randomly divided according to the patients, and the images of 43 / 11 / 9 patients were used for training / validation / testing respectively. In the comparative experiment, the method of the present invention was compared with the traditional image registration algorithm SimpleElastix, and RMSE, NMI and test time were used as the evaluation indicators of registration, as shown in Table 1:
[0135] Table 1. Comparison of registration results between the present invention and traditional algorithms
[0136] method RMSE NMI Test time(s) Not registered 43.182±28.114 0.161±0.094 - SimpleElastix 12.026±22.757 0.632±0.134 14.705 Registration method of the present invention 6.754±5.292 0.666±0.043 0.083
[0137] Compared with the unregistered image, the registered image has greatly reduced offset, and the pixels at corresponding positions of the two images are closer. In addition, compared with the traditional SimpleElastix, the registration method of the present invention has great advantages in RMSE, NMI and test time, especially the calculation time is reduced by nearly 3 orders of magnitude.
[0138] Attached Figure 7The comparison of B-scans before and after registration of a randomly selected patient is shown. The B-scans in the first row are not registered, from which it can be seen that there is a large displacement deviation of the retina in different follow-ups, while the B-scans in the second row have been registered, which to a certain extent reduces the CNV area deviation caused by different shooting positions or patient eye rotation. Based on the above analysis, this registration method can avoid the CNV morphological changes caused by non-rigid registration, which is conducive to observing the changes in the lesion area at the same position, thereby reducing the obstacles to subsequent CNV growth prediction.
[0139] Segmentation experiment results:
[0140] All experiments on segmentation used a four-fold cross-validation strategy, with data from 16 patients in each of the first three folds and data from 15 patients in the last fold. To prevent overfitting and improve the robustness of the model, an online data augmentation strategy was used, including horizontal flipping, displacement, and rotation from -20 to 20 degrees. The Dice Similarity Coefficient (DSC), Jaccard index (Jac), Sensitivity (Sen), number of parameters, and test time were used as evaluation indicators for segmentation.
[0141] The collaborative segmentation network proposed in this invention is compared with a single-input segmentation method and a common collaborative segmentation model. U-shaped segmentation networks such as U-Net, CE-Net, CPFNet and Swin-Unet are trained as single-input segmentation methods. Table 2 lists the quantitative experimental results:
[0142] Appendix 2. Comparative experiment and ablation experiment of CNV segmentation
[0143]
[0144]
[0145] First, compared with the single-input segmentation method, the proposed method achieves better segmentation performance, with Dsc, Jac and Sen improved by 0.55%, 0.61% and 1.01% respectively, and has fewer parameters. In addition, compared with a semantic aware attention based co-segmentation model proposed in the literature Chen H, Huang Y, Nakayama H, "Semantic aware attention based deep object co-segmentation," arXiv preprint arXiv:1810.06859 (2018), the proposed method has been overall improved in most indicators.
[0146] Overall, SwinUnet performed the worst, probably because Transformer lacks the ability to extract complex pathological features. Figure 8 In the figure, the area of CNV is large and the boundary is not obvious, which poses a great obstacle to the segmentation task. Among these segmentation results, U-Net has serious mis-segmentation problems, while CENet and CPFNet perform better than U-Net, which may benefit from the fusion of contextual information. However, they still have some false negative segmentations and false positive segmentations. Chen's results show that when there are large changes in the two images, only attention in the channel direction may underestimate the correlation between them, thereby reducing the channel weight and causing some mis-segmentations. It is worth noting that with the help of the correlation attention guidance mechanism, the method of the present invention can guide the extraction of features at the next time point according to the existing features, thereby avoiding mis-segmentation as much as possible. In addition, the method of the present invention is also applicable to cases where the CNV area is small, such as Fig. 9 shown.
[0147] Growth prediction experiment results:
[0148] The training strategy used was the same as the segmentation experiment. Dice Similarity Coefficient (DSC), Jaccard index (Jac), Precision (Precision, Pre), Specificity (Specificity, Spe) and Accuracy (Accuracy, Acc) were used as evaluation indicators for growth prediction.
[0149] Table 3 lists the growth prediction comparison experiment and ablation experiment:
[0150] Table 3. Comparative experiments and ablation experiments for CNV growth prediction
[0151]
[0152]
[0153] TAPred is a method proposed in the literature Zhang Y, Zhang X, Ji Z, et al, "An integrated time adaptive geographic atrophy prediction model for SD-OCT images," Medical Image Analysis; 68 (1): 101893 (2021), which is used to automatically predict the growth of geographic atrophy (GA), and the model is adjusted to adapt to the CNV growth prediction task. In addition, the baseline method of the present invention is to replace the recurrent neural network with the three feature maps generated at the bottom of the splicing encoder. Baseline + CLSTM, baseline + CGRU and baseline + AGRU represent the use of ConvLSTM, ConvGRU and AGRU as recurrent neural networks, respectively. As can be seen from Table 3, compared with the TAPred method, the method of the present invention increases Dsc, Jac, Pre, Spre and Acc by 4.00%, 4.10%, 0.85%, 0.05% and 0.08%, respectively, and the main indicators Dsc and Jac reach 83.69% and 78.85%, respectively, which shows that the prediction results of the present invention are closer to the actual follow-up. In addition, compared with the baseline, the recurrent neural network is able to capture the dynamic changes of the input, which is crucial for the growth prediction task. Among these recurrent neural networks, the proposed AGRU has better performance in growth prediction due to the integration of spatial attention and channel attention of longitudinal data, focusing on the changes in the spatial position of spatiotemporal sequence images.
[0154] Fig.10 and Fig.11 Two examples of CNV growth prediction results are shown. The first row is a follow-up OCT B-scan of the patient, the second row is the input segmentation result, followed by the prediction result. Fig.10 and Fig.11 It can be seen that the predicted results are closely related to the segmentation results. Compared with the TAPred method, the model of the present invention can well learn the subtle decrease and strong increase of CNV area. Compared with the baseline direction, the proposed AGRU has a greater advantage in predicting the future direction of CNV area.
[0155] So far, a CNV growth prediction method based on deep learning has been implemented and verified. The present invention includes three steps: registration, collaborative segmentation and growth prediction. First, the registration model is trained by matching key points to register the follow-up image to the reference image. Then, the collaborative segmentation network embedded in the CAG module collaboratively segments the longitudinal OCT image. Finally, a growth prediction model integrating CNN and AGRU modules is designed. CNN is used to extract the features of each frame of B-scan, and the AGRU module is used to learn the spatiotemporal information of longitudinal data. The experimental results show that the CNV prediction results obtained by the present invention are basically consistent with the actual situation. According to the predicted CNV morphology, combined with some clinical indicators, the attending physician can judge the efficacy of the drug and decide whether to continue injecting the drug or change the treatment plan next month.
[0156] The present invention proposes for the first time a whole process of a CNV growth prediction method based on a convolutional neural network, which can accurately predict the growth area of CNV. The key technical points of the present invention include: (1) a rigid registration network is designed for the first time to register the SD-OCT B-scans of each patient at different time points to eliminate the retinal shift of the longitudinal data; (2) a collaborative segmentation network with a correlation attention guidance (CAG) module is proposed for the first time to collaboratively segment the CNV lesion area of a set of follow-up images, which can enhance common abstract features and suppress other irrelevant semantic information to guide the segmentation of the image at the next time point; (3) an encoder-recurrent network-decoder framework for CNV growth prediction is proposed for the first time, in which an attention-based gated recurrent unit (AGRU) is designed as a recurrent neural network to recursively learn the robust representation of features.
[0157] The present invention also provides a choroidal neovascularization growth prediction device for implementing the above-mentioned choroidal neovascularization growth prediction method.
[0158] A specific embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for predicting choroidal neovascularization growth are implemented.
[0159] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0160] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0161] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0162] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0163] Obviously, the above embodiments are merely examples for the purpose of clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.
Claims
1. A method for predicting choroidal neovascularization growth, characterized in that: include: Obtaining a retinal OCT image before receiving treatment and using it as a baseline image, and obtaining multiple follow-up retinal OCT images after receiving treatment; After registering each follow-up image with the reference image, segmenting the choroidal neovascularization CNV lesion area of the reference image and multiple follow-up images to obtain n segmented images, including: The reference image and the multiple follow-up images are respectively subjected to feature extraction by an encoder to obtain n encoded feature maps, wherein the encoder is a ResNet-34 network with the last average pooling layer and the fully connected layer removed; The i-1th encoded feature map and the i-th encoded feature map are input into the correlation attention guidance module to obtain the i-th reconstructed feature map, and the 0th reconstructed feature map is the 0th encoded feature map. The specific operation of the correlation attention guidance module is: The i-1th encoded feature map and the i-th encoded feature map Perform dimensionality reduction to obtain feature maps and feature map Among them, C, H and W represent the number of channels, height and width of the input features; For the feature map F AD Reorganize and transpose to get the feature map For the feature map F BD Recombination to obtain feature map Calculate the feature map F AR and feature map F BR Comparison matrix between Among them, softmax() means using the softmax function to normalize the weights, f AR (i,j) represents the feature map F AR The gray value at position (i,j) in the Represents the feature map F AR The average gray value, f BR (j,i) represents the feature map F BR The gray value at position (j,i) in Represents the feature map F BR The average gray value of The comparison matrix M NCC After transposition, the feature map F BR Multiply, reorganize and upsample to size, after multiplying with the scale parameter α and the feature map F B Perform element-wise sum operation to get spatial attention output For the feature map F A After the global average pooling operation, the weights on the channels are obtained through the multi-layer perceptron and the sigmoid activation function, and the weights and feature maps F B Multiply them together to get the channel attention output Perform element-by-element sum operation on the spatial attention output and the channel attention output to generate the i-th reconstructed feature map Inputting the i-th reconstructed feature map into the decoder, performing multiple upsampling, and performing jump connections with multiple shallow features generated by the encoder in the process of generating the i-th encoded feature map, to obtain the i-th segmented image; The n segmented images are respectively concatenated with the corresponding original images and then convolved and down-sampled multiple times to obtain n high-dimensional feature maps; The i-1th spatial feature map output by the i-1th gated recurrent unit and the i-th high-dimensional feature map are input into the i-th gated recurrent unit to obtain the i-th spatial feature map, i∈0...n-1, where the specific operation in the i-th gated recurrent unit is: The i-1th spatial feature map and the i-th high-dimensional feature map are respectively subjected to 3×3 convolution operations, added, and processed with a sigmoid function to obtain the output of the reset gate; the i-1th spatial feature map and the i-th high-dimensional feature map are subtracted, and then subjected to 1×1 convolution and cross-channel average pooling operations to obtain a spatial attention map; the i-1th spatial feature map and the i-th high-dimensional feature map are subtracted, and then average pooling and maximum pooling operations are performed respectively, and the outputs of the two are processed by two consecutive fully connected layers and then superimposed to obtain a channel attention map; the spatial attention map and the channel attention map are element-by-element multiplied and normalized by a sigmoid function to obtain the output of the update gate; the i-1th spatial feature map after the 3×3 convolution operation is subjected to a Hadamard product with the output of the reset gate, and is added to the i-th high-dimensional feature map after the 3×3 convolution operation and then processed with a tanh function to obtain a candidate state; Subtract 1 from the output of the update gate and perform a Hadamard product with the i-1th spatial feature map, and add the candidate state after performing a Hadamard product with the output of the update gate to obtain a hidden state, which is the i-th spatial feature map; The n-1th spatial feature map is processed by multiple deconvolution operation units, and jump-connected with the feature map generated by multiple downsampling of the n-1th segmented image after splicing with the corresponding original image to obtain the target feature map; The target feature map is processed by a 1×1 convolution operation and a softmax function to obtain a CNV growth prediction result.
2. The choroidal neovascularization growth prediction method according to claim 1, characterized in that: The formula for the specific operation in the gated recursive unit is expressed as: Reset gate output R n =G reset (X n ,H n-1 )=σ(W xr *X n +W hr *H n-1 ) Update gate output Candidate status Hidden State Among them, W xr , W hr , W xh and W hh are all 3×3 weight matrices, "*" is the convolution operation, is the Hadamard product, σ and tanh represent the sigmoid function and tanh function respectively, F SA represents 1×1 convolution operation and cross-channel average pooling, F CA It means that global average pooling and global maximum pooling are introduced into the input, and then two fully connected layers are used to obtain the channel attention map and superimposed.
3. The choroidal neovascularization growth prediction method according to claim 1, characterized in that: The obtaining of retinal OCT images comprises: Perform anisotropic filtering on ophthalmic OCT images; The boundaries of the retinal layers in the filtered image were segmented, where the boundaries of the retinal layers were the inner limiting membrane layer and the retinal pigment epithelium layer, and the retinal pigment epithelium layer was adjusted to the correct position using OCT Explorer software.
4. The choroidal neovascularization growth prediction method according to claim 1, characterized in that: The specific operation of the registration is: After using the ResNet-18 network to extract features from the reference image and follow-up image after splicing on the channel, the full connection layer with 3 input and output channels is used to obtain three transformation parameters: rotation angle θ, horizontal displacement T x and vertical displacement T y ; According to the three transformation parameters, the rigid transformation matrix T is obtained. r : Among them, (x0, y0) is the coordinate of the center point of the follow-up image; resampling the follow-up image according to the rigid transformation matrix; The mask of the follow-up image is also transformed as described above to obtain the registered follow-up image.
5. The choroidal neovascularization growth prediction method according to claim 4, characterized in that: The loss function of the registration process is defined as: in, is the key point of the reference image, the key point is the point on the retinal pigment epithelium, g is the total number of key points, and the key points of the follow-up image after registration are are the key points of the follow-up image before registration.
6. The method for predicting choroidal neovascularization growth according to claim 1, characterized in that: The loss function of the segmentation process is defined as: Total loss Joint loss L single =L Dice +L BCE Dice loss Binary cross entropy loss L BCE =-∑ h,w (1-Y)log(1-P)+Ylog(P) Among them, P and Y represent the segmentation result and the corresponding gold standard respectively, and h and w are the pixel coordinates in P and Y.
7. A choroidal neovascularization growth prediction device, characterized in that: Used to implement the choroidal neovascularization growth prediction method as described in any one of claims 1-6.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for predicting choroidal neovascularization growth as claimed in any one of claims 1 to 6 are implemented.
