A method, system and device for predicting axial length of eye
Deep learning technology and attention convolution module are used to solve the problem of insufficient accuracy and generalization ability in the prediction of axial length. The quality control model and pre-training weights are used to improve the quality and feature extraction of fundus photos, achieving more accurate eye prediction. Shaft length prediction.
Patent Information
- Application Number
- CN202311201719.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-15
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2043-09-15
AI Technical Summary
The insufficient accuracy and generalization ability of the axial length prediction model in the existing technology results in large errors in axial length measurement, especially when the quality of fundus photos is uneven, making it difficult to predict accurately.
It uses deep learning technology combined with attention convolution module and quality control model, enhances feature extraction through EMA attention module and self-attention module, uses pre-trained ImageNet weights for model fine-tuning, and combines ConvNeXt network for quality control and regression prediction to ensure input Photo quality and enhance model focus on features.
It improves the accuracy of axial length prediction and the generalization ability of the model, ensures the learning and recognition of high-quality features, reduces the risk of model overfitting, and enhances the ability to automatically detect fundus photos.
Smart Images

Figure CN117237749B
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent medical care, and specifically to an axial length prediction method, system, device, and computer-readable storage medium. Background Art
[0002] Axial length is one of the most important structures in the eye. It is the standard for measuring the anterior-posterior length of the eye. Accurate measurement of axial length is very important for ophthalmologists. It is closely related to the incidence of ophthalmic diseases, such as myopia, amblyopia, and refractive errors. Therefore, accurate measurement of axial length is one of the important links in ophthalmic diagnosis and treatment. Traditional axial length measurement is usually completed by A-ultrasound and optical axis scanners. These instruments can directly measure the anterior-posterior length of the eyeball, but these devices are relatively expensive and require manual operation by professionals, which has large errors. It is not convenient for ordinary medical institutions or some people who are inconvenient to go to the hospital. In addition, in clinical practice, the amount of fundus photo data is small and the quality of photos is uneven, which adds many obstacles to the measurement of axial length. Nowadays, the development of computer vision technology provides a new way to measure axial length. Computer vision technology is used to automatically predict axial length to avoid human interference factors and equipment limitations. However, there are also problems such as insufficient prediction accuracy and insufficient model generalization ability. Therefore, the use of intelligent technology for axial length measurement is still a popular research direction. Summary of the invention
[0003] In order to solve the problem of insufficient accuracy and generalization ability of the model in predicting the axial length, this application proposes an axial length prediction method by combining deep learning technology. After training, the method can automatically predict the axial length of the input fundus photo, which specifically includes:
[0004] Obtain fundus photographs;
[0005] The fundus photograph is input into a regression model for prediction to obtain the axial length of the fundus photograph, wherein the regression model is composed of a first convolution layer, an attention convolution module, and a fully connected layer. The fundus photograph obtains a feature vector through the first convolution layer, the feature vector obtains an enhanced feature through the attention convolution module, and the enhanced feature obtains a predicted axial length through the fully connected layer; the attention convolution module is composed of a convolution module and a DWM module, the feature vector is deeply convolved in the convolution module to obtain a convolution feature, the convolution feature is feature enhanced through the DWM module to obtain an enhanced feature, and the DWM module includes an EMA attention module and a self-attention module; the convolution feature is weighted calculated through the EMA module to obtain a weighted feature, the convolution feature is learned through the self-attention module to obtain a relationship feature, and the weighted feature is fused with the relationship feature to obtain an enhanced feature.
[0006] Furthermore, the EMA module is composed of a pooling layer, an attention layer, a group normalization layer, an activation function layer, and a Matmul layer in sequence. The convolutional features are input to the attention layer after dimension reduction processing in the pooling layer. In the attention layer, m sub-channels are weighted in parallel and local cross-channel interactions are established to obtain m feature tensors, where m is a natural number ≥1. The group normalization layer performs group normalization processing on the feature tensors to obtain multiple groups of feature matrices; the activation function layer performs nonlinear mapping through an activation function, and the Matmul layer fuses multiple groups of feature matrices to obtain weighted features. The self-attention module is composed of an embedding layer, a self-attention layer, and an activation function layer in sequence. The convolutional features learn the relationship between adjacent convolutional features through the self-attention module to obtain relational features.
[0007] Furthermore, the EMA module also includes a dimension conversion layer, which is used to perform dimension conversion on the input vector; the self-attention module also includes a dropout layer, which performs weighted processing on the neurons of the self-attention layer to change the number of neurons learned each time.
[0008] The feature vector passes through n groups of attention convolution modules in sequence and then performs full connection layer prediction, where n is a natural number ≥ 1, wherein the convolution module in the attention convolution module includes a downsampling layer and a residual convolution layer, and the feature vector is reduced in dimension by the downsampling layer and then residual convolution is performed using the residual convolution layer to obtain convolution features; the regression model also includes a maximum pooling layer, and the maximum pooling layer performs feature dimensionality reduction on the enhanced features to obtain low-dimensional features, and the low-dimensional features are classified and predicted through the fully connected layer.
[0009] The method also includes a quality control model, which performs feature recognition on fundus photos through a ConvNEXT network model to obtain high-quality photos. Regression prediction can only be performed when the input fundus photos pass the quality control model. When the quality of the input fundus photos does not meet the standards, regression prediction is stopped.
[0010] The regression model adopts one or more of the following: linear regression, AdaBoost, support vector machine, convolutional neural network, wherein the convolutional neural network adopts RestNET50 network for feature learning to obtain the prediction result of axial length, and the training weight of RestNET50 network is adjusted after secondary training of high-quality photos based on the pre-training weight of ImageNET model.
[0011] The method also includes data preprocessing, which includes one or more of the following: grayscale, binarization, image enhancement, denoising, and image augmentation, wherein the image augmentation includes horizontal flipping, vertical flipping, contrast transformation, and scale transformation. After the fundus photograph is augmented, the fundus photograph is converted into a tensor, and the tensor is normalized. In the normalization process, the mean and variance values of the three RGB channels of the image are limited.
[0012] The purpose of this application is to provide an axial length prediction system, comprising:
[0013] Data acquisition module: obtain fundus photos;
[0014] Regression prediction module: input the fundus photograph into the regression model for prediction to obtain the axial length of the fundus photograph, wherein the regression model is composed of a first convolution layer, an attention convolution module, and a fully connected layer. The fundus photograph obtains a feature vector through the first convolution layer, and the feature vector obtains an enhanced feature through the attention convolution module. The attention convolution module is composed of a convolution module and a DWM module. The feature vector is deeply convolved in the convolution module to obtain a convolution feature, and the convolution feature is feature enhanced through the DWM module to obtain an enhanced feature. The DWM module includes an EMA attention layer and a self-attention layer; the convolution feature is weighted calculated through the EMA module to obtain a weighted feature, the convolution feature is learned through the self-attention module to obtain a relationship feature, and the weighted feature is fused with the relationship feature to obtain an enhanced feature; the enhanced feature obtains the predicted axial length through the fully connected layer.
[0015] The purpose of this application is to provide an axial length prediction device, comprising:
[0016] A memory and a processor; the memory is used to store program instructions; the processor is used to call the program instructions, and when the program instructions are executed, any one of the above-mentioned axial length prediction methods is implemented.
[0017] The purpose of the present application is to provide a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, any one of the above-mentioned methods for predicting the axial length of the eye is implemented.
[0018] Advantages of this application:
[0019] 1. In order to enhance the performance of the model, this application adds a DWM module to the regression model. This module is a special attention mechanism consisting of an EMA attention module and a self-attention module to adjust and weight the input features and enhance the model's attention to useful information.
[0020] 2. In response to the problem of uneven quality of fundus photographs, this application uses a quality control model (ConvNeXt network) to screen fundus photographs and remove photos of poor quality to ensure that the model has good data quality before training, thereby ensuring that the model learns effective features and improves the usability of the model.
[0021] 3. In order to address the problems of small data sets and insufficient model generalization ability, this application first uses the weight parameters (including quality control model and regression model) pre-trained by the ImageNet model before using the fundus photo dataset for training, and then uses the fundus photo dataset for training and fine-tuning, so that the entire training process can obtain deep feature learning while avoiding the problem of model overfitting.
[0022] 4. The method proposed in this application includes a quality control model and a regression model. Regression prediction can only be performed after the input fundus photograph passes the quality control model. When the quality of the input fundus photograph cannot pass the quality control model, the next step of training cannot be carried out, thereby ensuring that the overall trained model can learn high-quality features and improve the reliability of the overall model.
[0023] 5. In order to enhance the generalization ability of the model, the training data is preprocessed, including image flipping, image scaling, contrast transformation, and normalization, to facilitate model calculation and processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 A schematic diagram of a flow chart of an axial length prediction method provided by an embodiment of the present invention;
[0026] Figure 2 A schematic diagram of an axial length prediction system provided by an embodiment of the present invention;
[0027] Figure 3 A schematic diagram of an axial length prediction device provided by an embodiment of the present invention;
[0028] Figure 4 Axis regression flow chart provided by an embodiment of the present invention;
[0029] Figure 5 A structural diagram of a fundus photo quality control module provided in an embodiment of the present invention;
[0030] Figure 6 A structural diagram of an eye axis regression module provided in an embodiment of the present invention;
[0031] Figure 7 A graph showing changes in eye axis regression training loss provided by an embodiment of the present invention;
[0032] Figure 8 A test set result diagram provided for an embodiment of the present invention. DETAILED DESCRIPTION
[0033] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0034] In some of the processes described in the specification and claims of the present invention and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The sequence numbers of the operations, such as S101, S102, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.
[0035] Figure 1 A schematic diagram of a method for predicting axial length of an eye provided by an embodiment of the present invention specifically includes:
[0036] S101: Obtain fundus photographs;
[0037] In one embodiment, the fundus generally refers to the inside of the back of the eyeball, which is composed of the optic disc, macula, retina and some blood vessels, and is orange-red in color. The optic disc should be bright yellowish and approximately oval in shape, with the retina converging at the center of the optic disc. The changes in the optic disc are observed. If abnormal changes occur, it usually indicates the presence of retinal disease. The fundus can usually be explored through imaging technology, such as a retinoscope, to observe changes in the retina, understand the thickness and direction of the blood vessels on the retina, and clarify the light reflection state of the arteries and the conditions of bleeding, white spots and papilledema.
[0038] In one embodiment, axial length is an indicator reflecting the growth of the eyeball, usually referring to the anterior-posterior diameter of the eyeball, which refers to the length from the corneal vertex to the macula. Usually, axial length increases with age. If the eyeball is congenitally abnormal, resulting in an axial length that is too long or too short, the probability of suffering from eye disease will increase. Abnormal axial length can lead to common ophthalmic diseases such as myopia, hyperopia and glaucoma, causing blurred vision, fundus lesions and other manifestations.
[0039] In a specific embodiment, the present invention counts the axial length data of Wenzhou college students, and the data volume reaches more than 10,000, covering students from freshman to senior year, so that both the data volume and data diversity are guaranteed. These data are divided into a training set, a validation set, and a test set, wherein the training set includes 10,847 Wenzhou college students' fundus color photos and axial length data, the validation set includes 2,171 Wenzhou college students' fundus color photos and axial length data, and the test set includes 543 Wenzhou college students' fundus color photos and axial length data.
[0040] In one embodiment, the present invention realizes the automatic detection function of axial length through two parts: quality control and prediction. Figure 4 As shown in the figure, in the quality control part, the network model is used to screen high-quality fundus photos, and then the axial length in the fundus photos is automatically detected through the prediction part.
[0041] In one embodiment, the ConvNeXt network does not make major innovations in the overall network framework and construction ideas. It only makes some adjustments and improvements to the existing classic ResNet50 / 200 network based on some advanced ideas of the Transformer network, introduces some of the latest ideas and technologies of the Transformer network into the existing modules of the CNN network, thereby combining the advantages of the two networks and improving the performance of the CNN network. The optimization design mainly includes the following points: macro design, ResNeXt network structure, inverse residual module, large convolution kernel, and various layered micro designs.
[0042] In one embodiment, the method also includes a quality control model, which performs feature recognition on fundus photographs through a ConvNEXT network model to obtain high-quality photographs. Regression prediction can only be performed when the input fundus photographs pass the quality control model. When the quality of the input fundus photographs does not meet the standards, regression prediction is stopped.
[0043] In a specific embodiment, before training the model, the present invention designs a quality control program for fundus photos, which can autonomously filter out fundus photos of unqualified quality, and use the deep learning ConvNEXT model to perform quality control on the input images, wherein the ConvNEXT model training weights are weights pre-trained on ImageNET and fine-tuned in actual fundus photo quality screening training, such as Figure 5As shown in the figure, the fundus photo is input into the network model, where the network model is composed of two-dimensional convolution, Layer normalization, four blocks and three downsampling layers overlapped in sequence, a GAP layer, a Layer normalization and a fully connected layer, and the data passes through in sequence to obtain the output of the model; a block is composed of three two-dimensional convolutions, a Layer normalization, an activation function, a Layer Scale layer, and a Drop path layer. The data passes through these combined modules plus the original input data to form the output of a block; a downsampling layer is composed of a Layer normalization and a two-dimensional convolution in sequence, and the data passes through in sequence to obtain the output of this layer.
[0044] In one embodiment, the method also includes data preprocessing, which includes one or more of the following: grayscale, binarization, image enhancement, denoising, and image augmentation, wherein the image augmentation includes horizontal flipping, vertical flipping, contrast transformation, and scale transformation. After the fundus photograph is augmented, the fundus photograph is converted into a tensor, and the tensor is normalized. In the normalization process, the mean and variance values of the three RGB channels of the image are limited.
[0045] In a specific embodiment, before the training process of the eye axis regression model, in order to enhance the generalization of the model, the training set images are subjected to data enhancement:
[0046] a. Flip the image horizontally with a probability of 50%;
[0047] b. Flip the image vertically with a probability of 50%;
[0048] c. Adjust the brightness, contrast and saturation of the image;
[0049] To facilitate calculation in the model, images of each level are proportionally enlarged / reduced to 224*224 and converted to tensor format;
[0050] In order to avoid the bias of the image data, the data was normalized, and the means and variances of the three channels were set to [0.485, 0.456, 0.406], [0.229, 0.224, 0.225] respectively;
[0051] In order to reduce the time cost, multi-thread parallelism is adopted, and the number of threads is set in the range of 6-10.
[0052] In a specific embodiment, the present invention designs a supplementary scaling of the image before entering the model, so that images of various sizes are scaled proportionally, thereby maintaining the integrity of their information to the greatest extent and improving the generalization ability of the model.
[0053] S102: Input the fundus photograph into the regression model for prediction to obtain the axial length of the fundus photograph, wherein the regression model is composed of a first convolution layer, an attention convolution module, and a fully connected layer. The fundus photograph obtains a feature vector through the first convolution layer, and the feature vector obtains an enhanced feature through the attention convolution module. The enhanced feature obtains the predicted axial length through the fully connected layer; the attention convolution module is composed of a convolution module and a DWM module, the feature vector is deeply convolved in the convolution module to obtain a convolution feature, and the convolution feature is feature enhanced through the DWM module to obtain an enhanced feature, and the DWM module includes an EMA attention module and a self-attention module; the convolution feature is weighted calculated through the EMA module to obtain a weighted feature, and the convolution feature is learned through the self-attention module to obtain a relationship feature, and the weighted feature is fused with the relationship feature to obtain an enhanced feature.
[0054] In one embodiment, the EMA (Excitation and Modulation Attention) attention mechanism is an attention mechanism for neural networks. Its main principle is to focus the network's attention on the most important part of the current task by weighted processing of the input data, thereby improving the performance of the model. The core idea of the EMA attention mechanism is to introduce the two concepts of excitation and modulation on the basis of the traditional attention mechanism. The excitation mechanism is used to calculate the importance of each part of the input data to the current task, while the modulation mechanism is used to adjust the weights of different parts to achieve better model performance. In the EMA attention mechanism, the excitation mechanism determines the importance of each part by calculating the similarity between the features of the input data and the parameters. Specifically, a similarity matrix is obtained by calculating the inner product of the input data and the parameters. Each element in the matrix represents the similarity between a part of the input data and the parameters. The higher the similarity, the more important the part is to the current task.
[0055] In one embodiment, the self-attention mechanism solves the following situation: the inputs received by the neural network are many vectors of different sizes, and there is a certain relationship between different vectors. However, during actual training, the relationship between these inputs cannot be fully utilized, resulting in extremely poor model training results. For example, machine translation problems (sequence to sequence problems, the machine decides how many labels to use), part-of-speech tagging problems (one vector corresponds to one label), semantic analysis problems (multiple vectors correspond to one label), and other text processing problems. The problem that the fully connected neural network cannot establish correlations for multiple related inputs is solved by the self-attention mechanism. The self-attention mechanism actually allows the machine to notice the correlations between different parts of the entire input.
[0056] In one embodiment, the EMA module is composed of a pooling layer, an attention layer, a group normalization layer, an activation function layer, and a Matmul layer in sequence. The convolutional features are input to the attention layer after dimension reduction processing in the pooling layer. In the attention layer, m sub-channels are weighted in parallel and local cross-channel interactions are established to obtain m feature tensors, where m is a natural number ≥1. The group normalization layer performs group normalization processing on the feature tensors to obtain multiple groups of feature matrices; the activation function layer performs nonlinear mapping through an activation function, and the Matmul layer fuses multiple groups of feature matrices to obtain weighted features. The self-attention module is composed of an embedding layer, a self-attention layer, and an activation function layer in sequence. The convolutional features learn the relationship between adjacent convolutional features through the self-attention module to obtain relational features.
[0057] In one embodiment, the EMA module also includes a dimension conversion layer, which is used to perform dimension conversion on the input vector; the self-attention module also includes a dropout layer, which performs weighted processing on the neurons of the self-attention layer to change the number of neurons learned each time.
[0058] In one embodiment, the feature vector passes through n groups of attention convolution modules in sequence and then performs full-connection layer prediction, where n is a natural number ≥ 1, wherein the convolution module in the attention convolution module includes a downsampling layer and a residual convolution layer, and the feature vector is reduced in dimension by the downsampling layer and then residual convolution is performed using the residual convolution layer to obtain convolution features; the regression model also includes a maximum pooling layer, and the maximum pooling layer performs feature dimensionality reduction on the enhanced features to obtain low-dimensional features, and the low-dimensional features are classified and predicted through the fully connected layer.
[0059] In one embodiment, regression prediction is to use the correlation principle of prediction as the basis, find out the factors that affect the prediction target, and then find out the approximate expression of the functional relationship between these factors and the prediction target, and find it out by mathematical methods. Then use sample data to estimate the parameters of the model and perform error testing on the model. If the model is confirmed, the model can be used to predict the change value of the factor.
[0060] In one embodiment, the regression model includes linear regression, polynomial regression, stepwise regression, ridge regression, lasso regression, elastic regression.
[0061] In one embodiment, the regression model adopts one or more of the following: linear regression, AdaBoost, support vector machine, convolutional neural network, wherein the convolutional neural network adopts RestNET50 network for feature learning to obtain the prediction result of axial length, and the training weight of RestNET50 network is adjusted after secondary training of high-quality photos based on the pre-training weight of ImageNET model.
[0062] In one embodiment, in the field of computer vision, a pre-trained model is a model trained on a large benchmark data set and is used to solve similar problems. Since the computational cost of training such a model is high, it is common to import published results and use the corresponding model. For example, in the target detection task, the backbone neural network must first be used for feature extraction. The backbone used here is generally a neural network such as VGG and ResNet. Therefore, when training a target detection model, the pre-trained weights of these neural networks can be used to initialize the parameters of the backbone, so that more effective features can be extracted from the beginning.
[0063] In one embodiment, in the field of image processing, people generally like to use ImageNet for network pre-training. There are two main reasons. On the one hand, ImageNet is a data set in the image field that has a large amount of pre-labeled training data. The large amount is a great advantage. The larger the amount, the more reliable the trained parameters. On the other hand, because ImageNet has 1,000 categories and many categories, it is considered general image data and has little to do with the field. Therefore, it has good versatility and can be used after pre-training.
[0064] In a specific embodiment, the present invention uses the classic deep learning model ResNet50, and fine-tunes it based on the pre-trained weights of ResNet50 on ImageNet1k, so that the model can extract deeper information from fundus photos. In addition, the structure of ResNet50 is kept unchanged, and an additional DWM module is added after each block. This module introduces a special attention mechanism on the basis of retaining the performance of ResNet50, which is used to enhance the model's attention to specific features. Specifically, this module adds self-attention by referencing the ViT (Vision Transformer) idea on the basis of retaining the steps of adaptive average pooling, group normalization and convolution operations of the EMA module, thereby achieving adjustment and weighting of input features, thereby improving the performance of the model in the task of predicting axial length from fundus photos.
[0065] In a specific embodiment, the present invention trains the eye axis regression model using a deep learning model, such as Figure 6As shown in the figure, in the fundus photo input network model, the model consists of the first convolution layer, four attention convolution layers, the maximum pooling layer, and two fully connected layers. The data passes through in sequence to obtain the output, wherein the first convolution layer includes a two-dimensional convolution and a Layer normalization in sequence; the attention convolution layer consists of a downsampling layer, a Block, and a DWM layer in sequence; a Block consists of three two-dimensional convolutions, two Batch normalizations, and a ReLU activation function. The data obtained by overlapping the two-dimensional convolution with other modules in sequence plus the input data of the original module are used to obtain the output of the Block; a downsampling layer consists of a Layer normalization and a two-dimensional convolution, and the data passes through the downsampling layer in sequence to obtain the output; a DWM layer consists of two modules, EMA and self-attention; EMA consists of a Reshape, an adaptive maximum pooling layer, an attention layer, group normalization, activation function, Matmul function, and activation function in sequence; the self-attention module consists of an embedding layer, a self-attention layer, an activation function, and a dropout layer in sequence. The data flows through these two modules respectively and then merges to obtain the output of the DWM.
[0066] The classification result weights of ImageNet are used as pre-training weights. In order to improve the training efficiency of the model, the front feature extraction layer of the model is frozen, and the feature classification layer is learned and back-propagated. During the training process of the model, the batchsize is set in the range of 64-256, and AdamW is used as the optimizer. The learning rate is initially set to 5e-5, and then the learning rate is self-adjusted according to the size of the loss. In order to enhance the generalization of the model, the weight-decay is set in the range of 0.1-0.05. The regression model is trained and learns the key features of the eye axis through the training set. The accuracy on the validation set is used as a measure of the model's performance, and the model weight with the highest accuracy on the validation set is saved as the best weight.
[0067] In a specific embodiment, a convolutional neural network is used to perform regression prediction on a fundus photograph using a trained regression model. It should be noted that in the prediction stage, any fundus photograph is input. If it passes the quality control model, the axial length is obtained through the axial length regression model. If it fails, a qualified photo is required to be input.
[0068] In a specific embodiment, it is verified by experiments that the change process of the LOSS loss value in regression training of the method of the present invention is as follows: Figure 7 As shown in Figure 2, the LOSS loss value of the training set stabilized in the 217th round, and the LOSS loss value of the validation set stabilized in the 145th round; the model obtained a regression rate of 81.53% on the test set, as shown in Figure 2. Figure 8As shown in Figure 1, most of the predicted values are clustered and located in the upper and lower confidence spaces of the fitting line, and only a small number of predicted values are relatively dispersed. In addition, in order to verify the effectiveness of the method, the present invention conducts an ablation experiment. As shown in Table 1, the ResNet50+DWM method proposed in the present invention shows the best performance in evaluation indicators such as recall rate, R square, and mean square error MSE.
[0069] Table 1 Ablation experiment display
[0070]
[0071] Figure 2 A schematic diagram of an axial length prediction device provided by an embodiment of the present invention specifically includes:
[0072] Data acquisition module: obtain fundus photos;
[0073] Regression prediction module: input the fundus photograph into the regression model for prediction to obtain the axial length of the fundus photograph, wherein the regression model is composed of a first convolution layer, an attention convolution module, and a fully connected layer. The fundus photograph obtains a feature vector through the first convolution layer, and the feature vector obtains an enhanced feature through the attention convolution module. The enhanced feature obtains the predicted axial length through the fully connected layer; the attention convolution module is composed of a convolution module and a DWM module, the feature vector is deeply convolved in the convolution module to obtain a convolution feature, and the convolution feature is feature enhanced through the DWM module to obtain an enhanced feature, and the DWM module includes an EMA attention module and a self-attention module; the convolution feature is weighted calculated through the EMA module to obtain a weighted feature, and the convolution feature is learned through the self-attention module to obtain a relationship feature, and the weighted feature is fused with the relationship feature to obtain an enhanced feature.
[0074] Figure 3 A schematic diagram of an axial length prediction device provided by an embodiment of the present invention specifically includes:
[0075] A memory and a processor; the memory is used to store program instructions; the processor is used to call the program instructions, and when the program instructions are executed, any one of the above-mentioned methods for predicting axial length of the eye is performed.
[0076] A computer-readable storage medium stores a computer program, wherein the computer program is executed by a processor to perform any one of the above-mentioned methods for predicting axial length of the eye.
[0077] The verification results of this verification embodiment show that assigning inherent weights to indications can improve the performance of the method relative to the default setting. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units. A person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above-mentioned embodiments may be completed by instructing the relevant hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0078] A person of ordinary skill in the art can understand that all or part of the steps in the above-mentioned embodiment method can be implemented by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. The above-mentioned medium storage can be a read-only memory, a disk or an optical disk, etc.
[0079] The above is a detailed introduction to a computer device provided by the present invention. For a person skilled in the art, according to the concept of the embodiments of the present invention, there may be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for predicting axial length of eye, characterized in that: Specifically include: Obtain fundus photographs; The fundus photograph is input into a regression model for prediction to obtain the axial length of the fundus photograph, wherein the regression model is composed of a first convolution layer, an attention convolution module, and a fully connected layer. The fundus photograph obtains a feature vector through the first convolution layer, the feature vector obtains an enhanced feature through the attention convolution module, and the enhanced feature obtains a predicted axial length through the fully connected layer; the attention convolution module is composed of a convolution module and a DWM module, the feature vector is deeply convolved in the convolution module to obtain a convolution feature, the convolution feature is feature enhanced through the DWM module to obtain an enhanced feature, and the DWM module includes an EMA attention module and a self-attention module; the convolution feature is weighted calculated through the EMA attention module to obtain a weighted feature, the convolution feature is learned through the self-attention module to obtain a relationship feature, and the weighted feature is fused with the relationship feature to obtain an enhanced feature.
2. The method for predicting axial length of eye according to claim 1, characterized in that: The EMA attention module consists of a pooling layer, an attention layer, a group normalization layer, an activation function layer, and a Matmul layer in sequence.
3. The method for predicting axial length of eye according to claim 2, characterized in that: The convolutional features are input to the attention layer after dimension reduction processing in the pooling layer. In the attention layer, m sub-channels are weighted in parallel and local cross-channel interactions are established to obtain m feature tensors, where m is a natural number ≥ 1. The group normalization layer performs group normalization processing on the feature tensors to obtain multiple groups of feature matrices; the activation function layer performs nonlinear mapping through an activation function, and the Matmul layer fuses multiple groups of feature matrices to obtain weighted features.
4. The method for predicting axial length of eye according to claim 2, characterized in that: The EMA attention module also includes a dimension conversion layer, which is used to perform dimension conversion on the input vector.
5. The method for predicting axial length of eye according to claim 1, characterized in that: The self-attention module is composed of an embedding layer, a self-attention layer, and an activation function layer in sequence. The convolution feature learns the relationship between adjacent convolution features through the self-attention module to obtain a relational feature.
6. The method for predicting axial length of eye according to claim 5, characterized in that: The self-attention module also includes a dropout layer, which performs weighted processing on the neurons of the self-attention layer to change the number of neurons learned each time.
7. The method for predicting axial length of eye according to claim 1, characterized in that: The feature vector passes through n groups of attention convolution modules in sequence and then performs full connection layer prediction, where n is a natural number ≥ 1, wherein the convolution module in the attention convolution module includes a downsampling layer and a residual convolution layer, and the feature vector is reduced in dimension by the downsampling layer and then residual convolution is performed using the residual convolution layer to obtain convolution features.
8. The method for predicting axial length of eye according to claim 1, characterized in that: The regression model also includes a maximum pooling layer, which performs feature dimensionality reduction on the enhanced features to obtain low-dimensional features, and the low-dimensional features are classified and predicted through the fully connected layer.
9. The method for predicting axial length of eye according to claim 1, characterized in that: The method also includes a quality control model, which performs feature recognition on fundus photos through a ConvNEXT network model to obtain high-quality photos. Regression prediction can only be performed when the input fundus photos pass the quality control model. When the quality of the input fundus photos does not meet the standards, regression prediction is stopped.
10. The method for predicting eye axis length according to claim 1, characterized in that: The regression model adopts one or more of the following: linear regression, AdaBoost, support vector machine, convolutional neural network, wherein the convolutional neural network adopts RestNET50 network to perform feature learning to obtain the prediction result of axial length.
11. The method for predicting axial length of eye according to claim 10, characterized in that: The training weights of the RestNET50 network are adjusted based on the pre-trained weights of the ImageNET model after secondary training on high-quality photos.
12. The method for predicting eye axis length according to claim 1, characterized in that: The method also includes data preprocessing, which includes one or more of the following: grayscale, binarization, image enhancement, denoising, and image augmentation.
13. The method for predicting eye axis length according to claim 12, characterized in that: The image augmentation includes horizontal flipping, vertical flipping, contrast transformation, and scale transformation. After the image augmentation is performed on the fundus photograph, the fundus photograph is converted into a tensor, and the tensor is normalized.
14. The method for predicting eye axis length according to claim 13, characterized in that: In the normalization process, the mean and variance values of the three RGB channels of the image are limited.
15. A system for predicting axial length of eye, characterized in that: include: Data acquisition module: obtain fundus photos; Regression prediction module: input the fundus photograph into the regression model for prediction to obtain the axial length of the fundus photograph, wherein the regression model is composed of a first convolution layer, an attention convolution module, and a fully connected layer. The fundus photograph obtains a feature vector through the first convolution layer, and the feature vector obtains an enhanced feature through the attention convolution module. The enhanced feature obtains the predicted axial length through the fully connected layer; the attention convolution module is composed of a convolution module and a DWM module, the feature vector is deeply convolved in the convolution module to obtain a convolution feature, and the convolution feature is feature enhanced through the DWM module to obtain an enhanced feature, and the DWM module includes an EMA attention module and a self-attention module; the convolution feature is weighted calculated through the EMA attention module to obtain a weighted feature, the convolution feature is learned through the self-attention module to obtain a relationship feature, and the weighted feature is fused with the relationship feature to obtain an enhanced feature.
16. An axial length prediction device, characterized in that: include: A memory and a processor; the memory is used to store program instructions; the processor is used to call the program instructions, and when the program instructions are executed, an axial length prediction method as described in claim 14 is implemented.
17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, an axial length prediction method according to any one of claims 1 to 14 is implemented.
