Methods, apparatuses, and media for classification of oct images

By combining quality assessment and multi-classification models, the problem of insufficient accuracy in OCT image analysis is solved, achieving automated and efficient image processing and generating accurate prediction results at both the image and user levels.

CN121788939BActive Publication Date: 2026-11-24ZHONGSHAN OPHTHALMIC CENT SUN YAT SEN UNIV +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202512014199.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-12-29
Publication Date
2026-11-24
Estimated Expiration
2045-12-29

AI Technical Summary

Technical Problem

Existing OCT image analysis methods cannot fully utilize three-dimensional information when processing two-dimensional and three-dimensional images, resulting in insufficient accuracy. Furthermore, directly processing three-dimensional images places high demands on hardware equipment and lacks classification results for single two-dimensional images.

Method used

By receiving 3D OCT images, using a quality assessment model to judge the quality of 2D images, filtering qualified image sets, and performing multi-classification through a first detection model to obtain image-level prediction results, and combining the features of abnormal image sets with the prediction results, a second detection model is used to generate user-level prediction results, thus achieving end-to-end automated classification.

Benefits of technology

It improves the accuracy of user-level prediction results, reduces inconsistencies caused by human intervention, enhances the automation and efficiency of image processing, reduces hardware requirements, and simplifies the image processing workflow.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121788939B_ABST
    Figure CN121788939B_ABST
Patent Text Reader

Abstract

The disclosure provides a classification method, device and medium for an OCT image, the classification method comprising: receiving a three-dimensional OCT image of an eye fundus of a target object; in response to receiving the three-dimensional OCT image, automatically triggering a judgment on whether each two-dimensional image of the three-dimensional OCT image is qualified in terms of image quality by a quality assessment model based on machine learning to obtain a qualified image set; performing multi-classification on each two-dimensional image of at least part of the images in the qualified image set by a first detection model to obtain image information of each two-dimensional image, the image information comprising image features and a first prediction result, and judging whether each two-dimensional image of the qualified image set has a retinal pathological feature before or after the multi-classification to obtain an abnormal image set; and processing the image features and the first prediction result of the images in the abnormal image set by a second detection model to obtain a second prediction result. Thus, a picture-level prediction result and a user-level prediction result can be obtained simultaneously, and the accuracy of the user-level prediction result can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of artificial intelligence, and in particular to a method, apparatus, and medium for classifying OCT images. Background Technology

[0002] Optical coherence tomography (OCT) technology has become an indispensable core tool in modern ophthalmic diagnosis. It can provide three-dimensional structural images of the retina with micron-level resolution, providing important evidence for the early detection and accurate diagnosis of various fundus diseases. With the popularization of OCT equipment and the improvement of scanning speed, massive amounts of image data are generated in clinical practice, posing a huge challenge to ophthalmologists' interpretation of images.

[0003] Currently, with the development of artificial intelligence (AI) technology, various AI models for OCT image analysis have emerged. For example, one existing approach classifies two-dimensional images to obtain a classification result indicating whether each two-dimensional image is abnormal, and then simply combines the classification results of multiple two-dimensional images to obtain the final result. Another example is an existing approach that directly classifies three-dimensional OCT images.

[0004] However, simply combining the classification results of multiple two-dimensional images cannot fully utilize the information in three-dimensional OCT images, thus affecting the accuracy of the final result. While directly classifying three-dimensional OCT images can fully utilize their information, it lacks the classification results of a single two-dimensional image. Furthermore, three-dimensional OCT images are generally very large, and direct processing poses a significant challenge to hardware. Summary of the Invention

[0005] This disclosure is made in view of the above-mentioned situation, and its purpose is to provide a method, apparatus and medium for classifying OCT images that can simultaneously obtain image-level prediction results and user-level prediction results and improve the accuracy of user-level prediction results.

[0006] Therefore, a first aspect of this disclosure provides a classification method for processing OCT images, comprising: receiving a three-dimensional OCT image of the fundus of a target object, the three-dimensional OCT image comprising multiple two-dimensional images; in response to receiving the three-dimensional OCT image, automatically triggering a quality assessment model based on machine learning to determine whether the image quality of each two-dimensional image of the three-dimensional OCT image is qualified to obtain a qualified image set; performing multi-classification on each two-dimensional image of at least a portion of the images in the qualified image set using a first detection model based on machine learning to obtain image information of each two-dimensional image of the at least a portion of the images, the image information comprising image features and a first prediction result, the first prediction result reflecting whether each two-dimensional image has a corresponding retinal disease, wherein, before or after the multi-classification, it is determined whether each two-dimensional image of the qualified image set has retinal pathological features to filter abnormal images in the qualified image set as an abnormal image set; and processing the image features and the first prediction result of the abnormal image set using a second detection model based on machine learning to obtain a second prediction result, the second prediction result reflecting whether the three-dimensional OCT image has a corresponding retinal disease.

[0007] In this scenario, using the image features of the 2D image and the first prediction result to determine the second prediction result allows for the simultaneous acquisition of both the first and second prediction results. Furthermore, it leverages the judgments of the first detection model to gather more information, thereby improving the accuracy of user-level prediction results through complementarity and error correction. Additionally, it facilitates automated classification of 3D OCT images (i.e., integrates all aspects of image processing into a seamless, end-to-end automated workflow without human intervention), improving the automation and efficiency of the image processing process and reducing inconsistencies introduced by human intervention. Moreover, the quality assessment model can automatically identify and exclude low-quality images to ensure the reliability of downstream analysis. Furthermore, filtering out anomalous images significantly reduces the number of 2D images requiring subsequent processing, such as weight calculations, thereby improving prediction efficiency.

[0008] Additionally, in the classification method according to the first aspect of this disclosure, optionally, the quality assessment model is used to receive a two-dimensional image and output a quality assessment result, the quality assessment result including qualified, unqualified, requiring reshoot, or requiring enhancement processing; in response to the quality assessment result being requiring reshoot, a first message is output, the first message being used to instruct the operator to reshoot the two-dimensional image; in response to the quality assessment result being requiring enhancement processing, quality enhancement processing is performed on the two-dimensional image, and the quality assessment result of the quality-enhanced two-dimensional image is set to qualified. In this case, distinguishing the two-dimensional images that need to be reshot can increase the probability of capturing important two-dimensional images. Distinguishing the two-dimensional images that need enhancement processing can improve the consistency of image quality entering subsequent processes and can reduce unqualified images to improve shooting efficiency.

[0009] Furthermore, in the classification method according to the first aspect of this disclosure, optionally, the quality assessment model is a classification model based on EfficientNetV2-S, and the output of the classification model includes the category of image quality. This improves the performance of OCT image quality assessment.

[0010] Furthermore, in the classification method according to the first aspect of this disclosure, optionally, the second detection model determines the weight of each two-dimensional image in the abnormal image set based on the image features of all two-dimensional images in the abnormal image set and the first prediction result. The image features of the abnormal image set are then fused based on the weights of each two-dimensional image in the abnormal image set to obtain fused features. The second prediction result is then obtained based on the fused features. Thus, an adaptive weight can be calculated for each two-dimensional image (e.g., an abnormal image containing pathological information) to generate highly condensed and information-rich user-level (e.g., patient-level) features. Additionally, determining image weights using the image features of the two-dimensional images and the first prediction result allows for the reference of the judgment of the first detection model to gather more information, thereby improving the accuracy of the user-level prediction result through complementarity and error correction.

[0011] Furthermore, in the classification method according to the first aspect of this disclosure, optionally, in the second detection model, the feature evaluation vector of the abnormal image set and the first prediction result of the abnormal image set are processed based on cross-attention to obtain the attention weight of each two-dimensional image in the abnormal image set and used as the weight. The feature evaluation vector is the result of feature evaluation of all image features in the abnormal image set, wherein, in the cross-attention, the first prediction result serves as the query vector, and the feature evaluation vector serves as both the key vector and the value vector. In this case, cross-attention can generate dynamic weights that are closely related to the classification task context, thereby helping the model learn more flexible feature representations. In addition, since cross-attention receives feature evaluation vectors, on the one hand, it can simplify the calculation of complex relationships between image features into scalar processing, and on the other hand, it facilitates the integration of other more suitable methods for analyzing image features (such as value analysis and uncertainty analysis) to guide the model to focus on more important content.

[0012] Furthermore, in the classification method according to the first aspect of this disclosure, optionally, all image features of the anomalous image set are processed based on a first attention to generate first attention weights processed by a tanh activation function and used as a value-perceived signal; all image features of the anomalous image set are processed based on a second attention to generate second attention weights processed by a sigmoid activation function and used as an uncertainty-perceived signal; the value-perceived signal and the uncertainty-perceived signal are fused to obtain the feature evaluation vector. Thus, valuable two-dimensional images and two-dimensional images with high recognition reliability can be dynamically highlighted, facilitating subsequent robust user-level prediction.

[0013] Furthermore, in the classification method according to the first aspect of this disclosure, optionally, the first detection model and the second detection model constitute an end-to-end model, the input of which is the qualified image set or the abnormal image set, and the output of which is the first prediction result and the second prediction result. In this case, by training the end-to-end model as a whole, more room for automatic adjustment can be provided to the model, which is beneficial to improving the efficiency and accuracy of obtaining prediction results, thereby further improving the automation of image classification.

[0014] Furthermore, in the classification method according to the first aspect of this disclosure, optionally, the loss function used to train the end-to-end model is the sum of a first loss function, a second loss function, and a third loss function; the first loss function is the difference between image features of two-dimensional images with the same image-level annotation; the second loss function is the difference between the first prediction result and the image-level annotation; and the third loss function is the difference between the second prediction result and the user-level annotation. In this case, the first loss function can enhance both image-level and user-level feature representations, thereby simultaneously promoting embedding representations with classification discriminativeness and compactness at both classification levels.

[0015] A second aspect of this disclosure provides an electronic device including a processor and a memory, the memory storing a computer program that, when executed, implements the classification method as described in the first aspect of this disclosure.

[0016] A third aspect of this disclosure provides a computer-readable storage medium storing at least one instruction that, when executed by a processor, implements the classification method as described in the first aspect of this disclosure.

[0017] According to this disclosure, a method, apparatus, and medium for classifying OCT images are provided, which can simultaneously obtain image-level prediction results and user-level prediction results and improve the accuracy of user-level prediction results. Attached Figure Description

[0018] This disclosure will now be explained in further detail by way of example only with reference to the accompanying drawings.

[0019] Figure 1 This is a schematic diagram illustrating an example of the classification environment involved in this disclosure.

[0020] Figure 2 This is an exemplary flowchart illustrating the classification method involved in the examples of this disclosure.

[0021] Figure 3 This is a schematic diagram illustrating the cooperation between the first detection model and the second detection model involved in the example of this disclosure.

[0022] Figure 4 This is an exemplary flowchart illustrating step S104 as described in this disclosure.

[0023] Figure 5 This is a schematic diagram illustrating the structure of the second detection model involved in the example of this disclosure.

[0024] Figure 6 This is an exemplary flowchart illustrating the acquisition of feature evaluation vectors as described in this disclosure.

[0025] Figure 7 This is an exemplary block diagram illustrating an electronic device to which the present disclosure is based. Detailed Implementation

[0026] Hereinafter, preferred embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. In the following description, the same reference numerals are used for the same components, and repeated descriptions are omitted. Furthermore, the drawings are merely schematic diagrams, and the proportions of the components or the shapes of the components may differ from actual figures. It should be noted that the terms "comprising" and "having," and any variations thereof, in this disclosure, do not necessarily limit the process, method, system, product, or apparatus to the explicitly listed steps or units, but may include or have other steps or units not explicitly listed or inherent to these processes, methods, products, or apparatuses.

[0027] First, let me introduce the relevant terminology used in this disclosure.

[0028] "Annotation information" refers to the labels assigned to images after they have been annotated. It can also be called the gold standard. In the field of artificial intelligence, annotation information can be used to indicate what a neural network needs to predict or learn. Additionally, "annotation" can refer to the process of labeling or annotating a dataset (such as a training dataset). Annotation can include operations such as classifying images, text, or other types of data, marking bounding boxes, or semantic segmentation.

[0029] An "encoder" can refer to a network structure or module in deep learning used to transform input data into a latent representation (such as a feature vector). Conversely, a "decoder" can refer to a structure used to transform the latent representation generated by the encoder back into the original input data.

[0030] As mentioned above, existing solutions have some drawbacks. The inventors have designed a technical solution that aggregates image information from multiple two-dimensional images, enabling the aggregation of multiple two-dimensional images as a whole to obtain user-level prediction results, while also providing image-level prediction results for each individual two-dimensional image, thereby improving the diversity of image analysis dimensions. Therefore, the inventors provide several solutions, and corresponding embodiments can at least address some of the aforementioned problems, thereby simultaneously obtaining image-level and user-level prediction results and improving the accuracy of user-level prediction results. Examples of this disclosure will be described in detail below.

[0031] This disclosure provides an example of a classification method for OCT images that can simultaneously obtain image-level prediction results and user-level prediction results, thereby improving the accuracy of the user-level prediction results. Furthermore, the classification method for OCT images described in this disclosure can also be referred to as a detection method or an analysis method (hereinafter referred to as a classification method).

[0032] Examples of this disclosure will now be described in detail with reference to the accompanying drawings. Figure 1 This is a schematic diagram illustrating an example of the classification environment involved in the present disclosure. It should be noted that this is not intended to limit the scope of the present disclosure.

[0033] refer to Figure 1 The classification environment may include a classification system 100, which can be used to obtain at least one of the following: quality assessment results of two-dimensional images in three-dimensional OCT images, user-level classification of three-dimensional OCT images, and image-level classification of two-dimensional images in three-dimensional OCT images. The classification system 100 can be any device with computing capabilities. For example, the classification system 100 can be a cloud server, personal computer, mainframe, or distributed computing system.

[0034] Continue to refer to Figure 1 The classification environment may include an acquisition device 9 (e.g., an OCT acquisition device), which can be used to acquire a three-dimensional OCT image P1 of the target object and transmit it to the classification system 100. The classification system 100 can judge the image quality of the two-dimensional images in the three-dimensional OCT image P1 to obtain qualified images P2 (i.e., qualified two-dimensional images) and unqualified images P3 (i.e., unqualified two-dimensional images). The qualified images P2 can form a qualified image set. The classification system 100 can judge the qualified image set to obtain abnormal images P4 and normal images P5. The abnormal images P4 can form an abnormal image set. The classification system 100 can classify each abnormal image P4 in the abnormal image set (e.g., multi-class classification) to obtain a picture-level prediction result D1 (i.e., the first prediction result D14 described later) for each abnormal image P4 in the abnormal image set. The classification system 100 can at least integrate multiple picture-level prediction results D1 of the abnormal image set to obtain a user-level prediction result D2 (i.e., the second prediction result D15 described later, such as a patient-level prediction result).

[0035] Figure 2 This is an exemplary flowchart illustrating a classification method according to an example of this disclosure. Furthermore, at least one step in the classification method may be implemented by at least a portion of the components of the classification system 100. Figure 3 This is a schematic diagram showing the cooperation of the first detection model 200 and the second detection model 300 involved in the example of this disclosure.

[0036] In some examples, a workflow engine can transform the steps in a classification method into multiple task nodes and control the flow logic between these task nodes. This can further improve the automation of the image processing workflow.

[0037] In some examples, reference Figure 2 By using the classification method disclosed in this example, the image features of the two-dimensional image and the first prediction result are used to determine the second prediction result. On the one hand, the first prediction result and the second prediction result can be obtained at the same time. On the other hand, the judgment of the first detection model 200 can be fully referenced to gather more information, thereby improving the accuracy of the user-level prediction result through complementarity and error correction.

[0038] Furthermore, it facilitates the automated classification of 3D OCT images (i.e., integrates all aspects of image processing into a seamless, end-to-end automated workflow without human intervention), improving the automation and efficiency of image processing and reducing inconsistencies introduced by human intervention. For example, it can compress the classification of 3D OCT images to the second level, significantly improving classification efficiency. Classifying 3D OCT images is clinically time-consuming; ophthalmologists need to spend a significant amount of time identifying abnormalities in 2D images, and this time can be even longer when waiting in line for a doctor. Therefore, improving the automation of 3D OCT image classification simplifies the operation, eliminates the need for human intervention, and is applicable to the classification of 3D OCT images acquired by home-based OCT acquisition devices.

[0039] In addition, the quality assessment model can automatically identify and exclude low-quality images to ensure the reliability of downstream analysis.

[0040] The classification method disclosed herein can greatly reduce the workload of ophthalmologists and alleviate the problem of ophthalmologist shortage.

[0041] In some examples, reference Figure 2 The classification method may include step S101. In step S101, a three-dimensional OCT image (also referred to as three-dimensional OCT data) of the fundus of the target object may be received. The three-dimensional OCT image may include multiple two-dimensional images (i.e., two-dimensional OCT images). In other words, a three-dimensional OCT image can be composed of multiple two-dimensional images. For example, a three-dimensional OCT image may include hundreds of two-dimensional images. In addition, the target object can be any living organism (e.g., a human or an animal). In some examples, the multiple two-dimensional images may be continuous in three-dimensional space. This helps to identify continuous changes in pathological morphology in three-dimensional space to improve the accuracy of prediction results.

[0042] In some examples, reference Figure 2The classification method may include step S102. In step S102, a quality assessment model can be used to determine whether the image quality of each two-dimensional image of the 3D OCT image is acceptable to obtain a set of acceptable images. In some examples, in response to receiving a 3D OCT image, the quality assessment model can be automatically triggered to determine whether the image quality of each two-dimensional image of the 3D OCT image is acceptable to obtain a set of acceptable images. This further improves the automation of image classification. In addition, the set of acceptable images can be a collection of two-dimensional images in the 3D OCT image whose image quality is acceptable (hereinafter referred to as acceptable images).

[0043] In some examples, a quality assessment model can be used to receive a two-dimensional image and output a quality assessment result. The quality assessment result can be used to indicate the image quality of the two-dimensional image. In some examples, the quality assessment result may include a category of image quality.

[0044] In some examples, image quality categories can include acceptable or unacceptable. For instance, a quality assessment model can independently evaluate each 2D image and classify the image quality of each 2D image as acceptable or unacceptable. In some examples, image quality categories can include acceptable, unacceptable, requiring reshoot, or requiring enhancement.

[0045] In some examples, in response to a quality assessment result indicating that a re-image is needed (i.e., a second image needs to be captured), a first message can be output, instructing the operator to re-capture the 2D image. This increases the probability of capturing important 2D images. For example, if key lesions or anatomical structures are not captured, they can be identified as needing to be re-captured. In some examples, in response to the presence of a 2D image requiring re-capture, the current process can be exited, and step S102 can be re-executed after the re-capture is completed.

[0046] In some examples, in response to a quality assessment result indicating the need for enhancement, a quality enhancement process can be performed on the 2D image, and the quality assessment result of the enhanced 2D image can be set to acceptable. In this case, the consistency of image quality entering subsequent processes can be improved, and unacceptable images can be reduced, thereby improving shooting efficiency. Furthermore, the quality enhancement process can be any process that improves image quality, such as contrast enhancement, super-resolution reconstruction, or filtering.

[0047] In some examples, in response to a quality assessment result of non-compliance, a two-dimensional image can be discarded (i.e., a non-compliance image can be lost).

[0048] In some examples, qualified image sets can be automatically and seamlessly passed to the next stage. This improves the automation of image classification.

[0049] In some examples, the quality assessment model can be a machine learning-based model. In others, it can be a deep learning-based model. This facilitates automatic feature extraction and image quality identification. In still others, the quality assessment model may include a feature extraction module based on a lightweight convolutional neural network. This improves the efficiency of image quality identification and reduces resource consumption.

[0050] The inventors discovered through research that EfficientNetV2-S performs well in OCT image quality assessment among lightweight convolutional neural networks. Therefore, a quality assessment model was built based on EfficientNetV2-S. In some examples, the quality assessment model can be a classification model based on EfficientNetV2-S (e.g., EfficientNetV2-S can be used as the backbone network of a classification model). The output of the classification model can include the category of image quality (i.e., the quality assessment result described later). That is, the classification model, after training, can distinguish whether the quality of an OCT image is "acceptable" or something else, such as "unacceptable". For example, taking a binary classification model as an example, a lightweight binary classifier can be used to replace the classification head of EfficientNetV2-S to obtain the quality assessment model. In some examples, EfficientNetV2-S can be pre-trained using ImageNet. In some examples, other lightweight convolutional neural networks can also be used to build the quality assessment model, such as MobileNet, EfficientNet, or MobileViT.

[0051] In some examples, the dataset used to train and / or validate the quality assessment model may include both acceptable and unacceptable images. This allows the quality assessment model to learn to distinguish between acceptable and unacceptable images through training.

[0052] In some examples, reference Figure 2 The classification method may include step S103. In step S103, a first detection model 200 based on machine learning performs multi-classification (i.e., classification of multiple diseases) on each two-dimensional image of at least a portion of the qualified image set (hereinafter referred to as the classification image set) to obtain image information of each two-dimensional image in the classification image set.

[0053] Furthermore, the image information can be information generated by any first detection model 200 during the processing of two-dimensional images. In some examples, the image information may include image features (i.e., feature representations of each two-dimensional image, also known as image-level information representations, depth feature representations, or high-dimensional features) and a first prediction result (i.e., image-level prediction results). Thus, preliminary prediction results and feature representations for each two-dimensional image can be obtained. Additionally, the classification image set may include at least anomalous images (i.e., two-dimensional images exhibiting retinal pathological features).

[0054] Furthermore, the first prediction result can reflect whether each two-dimensional image contains a corresponding retinal disease. In some examples, the first prediction result may include the probability of belonging to a corresponding category. For ease of description, the category classified by the first detection model 200 will be referred to as the first category, and the probability of the category will be referred to as the first category probability. For example, for the first category probability in vector form, each dimension of the vector can represent the predicted probability that the two-dimensional image belongs to a specific category.

[0055] Additionally, the first category can reflect the presence of anomalies in the two-dimensional image. In some examples, the first category can include normal and abnormal. In this case, the first category probability can include a normal probability and an abnormal probability. In some examples, the first category can include belonging to the corresponding disease and not belonging to the corresponding disease. In this case, the first category probability can include a belonging probability and a not belonging probability. In some examples, the first category can include normal and at least two diseases (i.e., multi-class prediction). In this case, the first category probability can include a normal probability and a probability for each disease. In some examples, the first category can be associated with retinal diseases. For example, the first category can include normal, age-related macular degeneration (AMD), choroidal neovascularization (CNV), central serous chorioretinopathy (CSC), diabetic retinopathy (DR), macular edema (ME), macular hole (MH), epiretinal membrane (ERM), and retinitis pigmentosa (RP).

[0056] In some examples, before or after multi-classification, it can be determined whether each 2D image in the qualified image set has retinal pathological features (i.e., whether there are abnormalities, such as neovascularization, microaneurysms, or macular degeneration) to filter out abnormal images in the qualified image set (hereinafter referred to as the screening step). The abnormal image set can be a collection of abnormal images in the qualified image set. In this case, the number of 2D images that need to be processed, such as calculating weights, can be greatly reduced, thereby improving prediction efficiency (for example, lesions in ophthalmological 2D images are very small; out of 100 2D images, there may only be 10 abnormal images and 90 normal images). In addition, it helps the model to measure weights only based on the probability of abnormal images. Furthermore, diseased areas are usually small and few in number in 2D images; removing normal images allows the model to focus more on abnormal images.

[0057] In some examples, the set of images to be classified can be a set of anomalous images when a filtering step is performed before multi-classification. This reduces the number of two-dimensional images that need to be classified.

[0058] In some examples, during the screening step before multi-classification, an anomaly detection model can be used to determine whether each two-dimensional image in the qualified image set has retinal pathological features (i.e., whether there are anomalies).

[0059] In some examples, the anomaly detection model can be a binary classification model. In this case, compared to first classifying multiple images and then determining whether an anomaly exists, the efficiency of identifying abnormal images can be improved (i.e., a large number of normal images without lesions can be quickly screened out). Specifically, the anomaly detection model can perform an anomaly detection task on each image in the qualified image set. This task can quickly classify all qualified images into two categories: "normal" or "abnormal" to obtain an abnormal image set. The first detection model 200 can then perform a multi-disease classification task on each image in the abnormal image set to determine the specific pathological type, such as age-related macular degeneration (AMD), diabetic retinopathy (DR), etc.

[0060] In some examples, when a filtering step is performed before multi-classification, the set of images to be classified can be a set of anomalous images.

[0061] The inventors discovered that while image-level prediction can determine whether a two-dimensional image is abnormal, this predictive value is lost when the prediction is performed as an independent task. Therefore, the inventors extracted anomalous images based on the first-class probability, increasing the model's focus on clearly anomalous images, thus fully utilizing the information and improving prediction accuracy.

[0062] In some examples, during the screening step after multi-classification, the presence of retinal pathological features in each 2D image of the qualified image set can be determined based on the first prediction result of each image. In this case, anomalous images can be directly identified using the first prediction result without adding additional anomaly detection steps or modules. For example, multi-classification results and anomaly status results can be obtained simultaneously through a single classification. Furthermore, the interpretability of anomaly detection can be improved. Specifically, at least one 2D image with anomalies (i.e., anomaly image) can be identified from the qualified image set based on the first prediction result of each 2D image and included as the anomalous image set.

[0063] In some examples, the normal probability and anomalous probability of each 2D image can be obtained based on the first category probability of the first prediction result (i.e., later). Figure 5 The normal / abnormal probability D16 in the model, also known as the binary classification probability, identifies at least one anomalous image from the qualified image set based on the normal and anomalous probabilities of each two-dimensional image. In other words, image-level multi-class prediction is transformed into a binary decision to identify anomalous images. Thus, image information of the anomalous image can be obtained (i.e., later...). Figure 5 (The abnormal features D111 and the abnormal prediction results D141 in the image). In some examples, two-dimensional images with an abnormal probability greater than the normal probability can be considered as abnormal images.

[0064] In some examples, when performing a filtering step after multi-classification, the classification image set can be all two-dimensional images of the qualified image set.

[0065] In some examples, the results of the filtering steps performed before and after multi-class classification can be combined to determine the final set of anomalous images. For instance, let the result of the filtering step before multi-class classification be the first set of anomalous images, and the result of the filtering step after multi-class classification be the second set of anomalous images. Two-dimensional images that exist in both the first and second sets of anomalous images are selected to form the final set of anomalous images. In this case, the accuracy of the anomalous image set can be improved, thereby reducing the computational load in subsequent stages and improving the accuracy of subsequent processing.

[0066] In some examples, the category probability threshold (i.e., confidence threshold) of the model used to identify anomalous images (i.e., the anomaly detection model or the first detection model 200) can be configured to classify two-dimensional images that are uncertain about their normality as anomalous images. The category probability threshold can be used to compare the probability of a two-dimensional image belonging to each category to identify its category. That is, the model is more sensitive to normal images, and uncertain normal images will be classified as anomalous. In this case, it can suppress the possibility that image information of anomalous two-dimensional images will not enter subsequent user-level classification, thereby improving the comprehensiveness of anomalous images participating in user-level classification. It should be noted that even if a normal image enters subsequent user-level classification, since the weight of each image is calculated later, if it is actually a normal image, it will receive a weight of 0 or close to 0, which will not affect the final prediction result. In some examples, the category probability threshold can be determined by continuously adjusting and testing it.

[0067] In some examples, the first detection model 200 can be a deep learning model. In some examples, the reference... Figure 3 The first detection model 200 may include a feature extraction module 210, which can be used to extract features from each two-dimensional image to obtain image features D11 for each two-dimensional image. Specifically, the feature extraction module 210 can be used to extract features from each image in the classification image set to obtain image features D11 for each two-dimensional image. In this case, each image feature D11 contains rich image semantic information.

[0068] In some examples, reference Figure 3 The feature extraction module 210 may include an encoder 211 and a decoder 212 connected to the encoder 211. The encoder 211 can receive each two-dimensional image, and the decoder 212 can receive the output D12 of the encoder 211 and output the image features D11 of each two-dimensional image.

[0069] In some examples, encoder 211 can be a fine-tuned VisionFM (Vision Foundation Model). In this case, because VisionFM uses more OCT data during pre-training, the extracted features are more useful for classifying OCT images, improving the model's robustness. VisionFM can be a pre-trained model. In some examples, encoder 211 can also be other models, such as RETFound or EyeClip. Furthermore, fine-tuning can be based on the original weights of VisionFM. In some examples, the fine-tuning method can be LoRA (Low-Rank Adaptation). This reduces the overhead of fine-tuning for OCT classification tasks while maintaining the model's general visual representation. In some examples, fine-tuning can also take other forms, such as QLoRA or Adapter.

[0070] In some examples, reference Figure 3 Decoder 212 can be a prompt decoder (also known as a prompt-guided decoder). The prompt decoder can receive learnable prompt parameters D13 and the output D12 of encoder 211 and output image features D11. In this case, these category-aware learnable prompt parameters D13 can guide the prompt decoder to extract discriminative features (i.e., enabling the prompt decoder to learn disease-related information from a single two-dimensional image, such as discriminative retinal information) to generate image features D11, thereby improving the accuracy of subsequent image-level and user-level classification. Furthermore, compared to common attention mechanisms that primarily aim to build correlations between sequential features, the learnable prompt parameters D13 can be updated based on the output D12 of encoder 211, thus obtaining prompts that measure the relevance of the two-dimensional image to the disease.

[0071] Additionally, the learnable cue parameter D13 can be associated with the predicted category. For example, a cue decoder can be guided by multiple learnable cue parameters D13, each corresponding to a category (e.g., a disease category).

[0072] In some examples, the cue decoder can be Transformer-based. When the learnable cue parameter D13 and the output D12 of encoder 211 are input to the cue decoder, the learnable cue parameter D13 can serve as the query vector, and the output D12 of encoder 211 can serve as both the key vector and the value vector. As an example of a Transformer-based cue decoder, the input (i.e., the learnable cue parameter D13 and the output D12 of encoder 211) can sequentially pass through cross attention, residual connections & layer normalization (Add & Norm), self-attention, residual connections & layer normalization (Add & Norm), feedforward network (FFN), residual connections & layer normalization (Add & Norm) before the output (i.e., image features D11).

[0073] In some examples, a reference is returned. Figure 3 The first detection model 200 may include a first classification head 220. The first classification head 220 (also known as an image-level classification head or a two-dimensional image classification head) can be used to classify the image features D11 of each two-dimensional image to obtain a first prediction result D14 for each two-dimensional image.

[0074] In some examples, the first classification head 220 can be based on a linear classifier. Specifically, the first classification head 220 can be used to perform a linear transformation (e.g., through a linear transformation layer) on image features D11 and then input it into a linear classifier (e.g., a softmax activation function) to generate a first class probability (also referred to as a probability distribution). Thus, features adapted to the classification task can be generated through linear transformation.

[0075] In this scenario, each two-dimensional image, after being processed by the first detection model 200, generates a probability distribution for at least one first category and obtains image features D11 for each two-dimensional image. This facilitates subsequent selection of two-dimensional images containing pathological information (e.g., retinal pathological features) based on the first prediction result D14 and / or calculation of the weight of each two-dimensional image.

[0076] In some examples, multi-class classification of the two-dimensional images by the first detection model 200 is not mandatory. That is, each two-dimensional image can be classified arbitrarily (e.g., binary classification). It should be noted that, unless there is a contradiction, the corresponding steps or modules can be adaptively adjusted.

[0077] In some examples, a reference is returned. Figure 2The classification method may include step S104. In step S104, the image features of the abnormal image set and the first prediction result are processed by a second detection model 300 based on machine learning to obtain a second prediction result (i.e., a user-level prediction result). In this case, it is possible to construct a user-level feature representation from multiple two-dimensional images to obtain a user-level prediction result. For example, it is possible to aggregate multiple two-dimensional images of a three-dimensional (3D) OCT image to obtain a patient-level prediction result.

[0078] Furthermore, the second prediction result can reflect whether the 3D OCT image contains a corresponding retinal disease (i.e., whether the target object's retina contains a corresponding disease). In some examples, the second prediction result may include the probability of belonging to the corresponding category. For ease of description, the category classified by the second detection model 300 will be referred to as the second category, and the probability of the second category will be referred to as the second category probability. The relevant descriptions are similar to those of the first category and the first category probability, and will not be repeated here. In some examples, the second category may be consistent with the first category. For example, the first category may include normal and at least two diseases, and the second category may include normal and at least two diseases.

[0079] Figure 4 This is an exemplary flowchart illustrating step S104 as described in this disclosure. Figure 5 This is a schematic diagram illustrating the structure of the second detection model 300 involved in the example of this disclosure.

[0080] In some examples, reference Figure 4 and Figure 5 Step S104 may include determining the weight of each two-dimensional image in the abnormal image set (hereinafter referred to as image weight) based on the image information (i.e., image information sequence) of all two-dimensional images in the abnormal image set using the second detection model 300 (step S201), fusing the image features D11 of the abnormal image set based on the weights of each two-dimensional image in the abnormal image set to obtain fused features D17 (i.e., user-level features) (step S202), and obtaining the second prediction result D15 based on the fused features D17 (step S203). Thus, an adaptive weight can be calculated for each two-dimensional image (e.g., an abnormal image containing pathological information) to generate highly condensed and information-rich user-level (e.g., patient-level) features. Furthermore, by using the image features D11 of the two-dimensional image and the first prediction result D14 to determine the image weights, the judgment of the first detection model 200 can be referenced to gather more information, thereby improving the accuracy of the user-level prediction results through complementarity and error correction.

[0081] In addition, image weights can represent the contribution (i.e., the degree of attention) of each 2D image in obtaining the second prediction result D15. For example, the first 2D image might have a weight of 0.01, the second 2D image might have a weight of 0.2, and so on.

[0082] In some examples, the weights of the two-dimensional images in the qualified image set, excluding the abnormal image set, can be set to 0 or close to 0. In some examples, the weights of the two-dimensional images in the qualified image set that do not contain abnormalities can also be calculated by the fusion module 310, which will be described later.

[0083] In some examples, fusion can be a weighted sum (e.g., multiplying and summing image weights with image features D11 (e.g., anomaly features D111)).

[0084] In some examples, reference Figure 5 The above-mentioned operation of identifying abnormal images (i.e., the screening step) can be performed by the second detection model 300.

[0085] In some examples, the second detection model 300 can be a deep learning model. In other examples, both the first and second detection models 300 can be multi-task deep learning models. This improves the convenience of multi-classification.

[0086] In some examples, reference Figure 3 The second detection model 300 can share the feature extraction module 210 with the first detection model 200 (that is, the feature extraction module 210 is also part of the second detection model 300). This facilitates training that allows both to influence the network parameters of the feature extraction module 210. In some examples, the second detection model 300 can receive the output from the feature extraction module 210 (i.e., image features D11) and the output from the first detection model 200 (i.e., the first prediction result D14) to obtain the second prediction result D15.

[0087] In some examples, reference Figure 3The first detection model 200 and the second detection model 300 can constitute an end-to-end model. The input to the end-to-end model can be a qualified image set (without pre-screening of abnormal image sets) or an abnormal image set (with pre-screened abnormal image sets). The output of the end-to-end model is a first prediction result D14 and a second prediction result D15. An end-to-end model is a model architecture that directly maps input to output. The entire model, from input to output, is a complete, end-to-end trainable system. In the example disclosed herein, a qualified image set or an abnormal image set can be directly used as input. After a series of calculations and processing within the end-to-end model, the corresponding first and second prediction results are directly output, thus eliminating the need for intermediate steps such as manual feature extraction. Furthermore, by training the end-to-end model as a whole, more room for automatic adjustment can be provided to the model, which is beneficial for improving the efficiency and accuracy of obtaining prediction results, thereby further improving the automation of image classification.

[0088] As mentioned above, the image information from all 2D images in the anomalous image set can determine the weight of each 2D image. In some examples, image information can be processed based on cross-attention to obtain image weights. In this case, cross-attention can generate dynamic weights that are closely related to the classification task context, thereby helping the model learn more flexible feature representations. In addition, cross-attention receives feature evaluation vectors, which on the one hand simplifies the calculation of complex relationships between image features into scalar processing, and on the other hand facilitates the integration of other more suitable methods for analyzing image features (such as value analysis and uncertainty analysis) to guide the model to focus on more important content.

[0089] In some examples, in the second detection model 300, the feature evaluation vector of the anomalous image set and the first prediction result of the anomalous image set can be processed based on cross-attention to obtain the attention weight of each two-dimensional image in the anomalous image set and used as the weight. Specifically, refer to Figure 5 The second detection model 300 may include a cross-attention-based fusion module 310. The fusion module 310 may receive feature evaluation vectors from anomaly image sets (e.g., all anomaly images) and a first prediction result D14 (e.g., anomaly prediction result D141) from the anomaly image sets to calculate the attention weights for each two-dimensional image in the anomaly image sets and use them as image weights. Thus, normalized image weights can be calculated for each two-dimensional image.

[0090] In some examples, when the feature evaluation vector of the anomalous image set and the first prediction result D14 of the anomalous image set are input into the fusion module 310 (i.e., in cross-attention), the first prediction result D14 can be used as a query vector, and the feature evaluation vector can be used as both a key vector and a value vector.

[0091] In some examples, the feature evaluation vector can be adjusted via a linear layer and then input into the fusion module 310 along with the first prediction result D14 of the anomalous image set.

[0092] Furthermore, the feature evaluation vector for an anomaly image set can be determined from all image features of the anomaly image set. Specifically, the feature evaluation vector can be the result of feature evaluation of all image features in the anomaly image set. The feature evaluation vector can be used to guide the generation of image weights. In some examples, the feature evaluation vector can be determined by performing value analysis and uncertainty analysis on each of all image features in the anomaly image set through an attention mechanism. This allows for the dynamic highlighting of valuable 2D images and 2D images with high recognition reliability, facilitating subsequent robust user-level predictions.

[0093] Figure 6 This is an exemplary flowchart illustrating the acquisition of feature evaluation vectors as described in this disclosure.

[0094] In some examples, reference Figure 6 Obtaining the feature evaluation vector may include: processing all image features of the abnormal image set based on the first attention to generate first attention weights that have been processed by the tanh activation function and used as value-aware signals (step S301); processing all image features of the abnormal image set based on the second attention to generate second attention weights that have been processed by the sigmoid activation function and used as uncertainty-aware signals (step S302); and fusing the value-aware signals and uncertainty-aware signals to obtain the feature evaluation vector (step S303).

[0095] Specifically, return to reference Figure 5 The second detection model 300 may include a first attention module 320 (also called a value-aware module) and a second attention module 330 (also called an uncertainty-aware module). The first attention module 320 receives all image features D11 from the abnormal image set to generate first attention weights, which can serve as value-aware signals. The second attention module 330 receives all image features D11 from the abnormal image set to generate second attention weights, which can serve as uncertainty-aware signals. For example, the image features D11 of all abnormal images from the qualified image set can be input together into the first attention module 320 and the second attention module 330 respectively. The first attention module 320 determines the value of each abnormal image, and the second attention module 330 determines the uncertainty of each abnormal image.

[0096] Additionally, the value-perceived signal can be used to measure the information value of image feature D11 in obtaining the second prediction result D15 (that is, the value-perceived signal can be used to assess the importance or contribution of the information contained in image feature D11 to the final decision). The uncertainty-perceived signal can be used to measure the reliability of the first prediction result D14.

[0097] In some examples, the value range of the value-aware signal can be [-1, 1], and the value range of the uncertainty-aware signal can be [0, 1].

[0098] In some examples, the first attention module 320 and the second attention module 330 can receive all image features D11 of the anomalous image set in parallel.

[0099] In some examples, reference Figure 5 The first attention module 320 may include a tanh activation function, and the first attention weights may have already been processed by the tanh activation function. Therefore, the range of the tanh activation function is symmetric, which helps to reflect both positive and negative information input. Specifically, the tanh activation function can receive the attention score generated by the first attention module 320 and output the first attention weights.

[0100] In some examples, reference Figure 5 The second attention module 330 may include a sigmoid activation function, and the second attention weights may have already been processed by the sigmoid activation function. Therefore, the value range of the sigmoid activation function helps to reflect the reliability of the prediction results. Specifically, the sigmoid activation function may receive the attention score generated by the second attention module 330 and output the second attention weights.

[0101] In this case, value-perceived signals and uncertainty-perceived signals can be obtained by using different activation functions (i.e., tanh activation function and sigmoid activation function).

[0102] In some examples, the value-perceived signal and the uncertainty-perceived signal can be fused to obtain the feature evaluation vector. This allows the feature evaluation vector to fuse the "value" and "reliability" of image feature D11. In some examples, the value-perceived signal and the uncertainty-perceived signal can be multiplied element-wise (i.e., element-wise product) to obtain the feature evaluation vector.

[0103] In some examples, reference Figure 5The second detection model 300 can also be used to obtain a second prediction result D15 based on the fusion feature D17. Specifically, the second detection model 300 can be used to classify the fusion feature D17 (e.g., multi-class classification) and output the second prediction result D15. Thus, information from multiple two-dimensional images can be integrated to obtain user-level prediction results. Furthermore, integrating information from multiple two-dimensional images can reduce the impact of inaccurate image-level prediction results, thereby improving the accuracy of user-level prediction results. For example, although the first prediction result D14 of a certain two-dimensional image may be biased, the bias can be corrected by performing overall prediction using multiple two-dimensional images.

[0104] In some examples, reference Figure 5 The second detection model 300 may include a second classification head 340, which can be used to classify the fused feature D17 and output a second prediction result D15. In some examples, the second classification head 340 may be based on a linear classifier. Specifically, refer to... Figure 5 The second classification head 340 can be used to linearly transform the fused feature D17 (e.g., through a linear transformation layer) and then input it into a linear classifier (e.g., a softmax activation function) to generate a second class probability (also known as a probability distribution). In this case, linear transformation can generate features adapted to the classification task. Furthermore, deep networks themselves possess powerful non-linear mapping capabilities, and the final features are often linearly separable. Compared to using complex non-linear classifiers, this reduces computational complexity, minimizes disruption to end-to-end trainability, and increases the stability of gradient propagation. In some examples, the second classification head 340 can also be based on a non-linear classifier (e.g., MLP (Multilayer Perceptron), XGBoost, etc.).

[0105] In some examples, an initial end-to-end model can be trained using a training dataset to obtain a trained end-to-end model.

[0106] In some examples, the training dataset may include a set of two-dimensional images of multiple sample target objects. Each image in each set of two-dimensional images may have image-level annotation information (i.e., one two-dimensional image corresponds to one annotation information, also known as image-level annotation). Each set of two-dimensional images for each sample target object may have user-level annotation information (i.e., one set of two-dimensional images for one sample target object corresponds to one annotation information, also known as user-level annotation). For example, multiple patients may be selected, with each patient associated with a set of two-dimensional images, corresponding image-level annotation information, and user-level annotation information. It should be noted that the annotation information matches the category to be classified (e.g., first category and second category), which will not be elaborated further here.

[0107] To enhance image-level and user-level feature representations, the inventors introduced supervised contrastive loss on top of standard cross-entropy loss, thereby simultaneously promoting embedded representations with both classification discriminative power and compactness at both classification levels.

[0108] In some examples, the loss function used to train the end-to-end model may include a first loss function, a second loss function, and a third loss function. In some examples, the loss function may be the sum of the first, second, and third loss functions. It should be noted that if the first detection model 200 and the second detection model 300 do not constitute an end-to-end model (i.e., they are independently trained models), the first detection model 200 and the second detection model 300 may be trained based on the second loss function and the third loss function, respectively, or further, the first detection model 200 and / or the second detection model 300 may also be trained in conjunction with the first loss function.

[0109] Additionally, the first loss function can be a supervised contrastive loss based on image features D11 and image-level annotations. In some examples, the first loss function can be the difference between image features D11 of two-dimensional images with the same image-level annotations in the training dataset. For example, suppose there are three image features D11: a, b, and c, where features a and b have the same annotation information, and c is different. The first loss function can shorten the distance between features a and b, and increase the distance between features c, making the image features D11 with different annotation information more discriminative. In some examples, the first loss function can satisfy the formula:

[0110] in, For the first loss function, The number of two-dimensional images in the training dataset (i.e., the number of two-dimensional images used for training). To compare with the training dataset A set of two-dimensional images with identical image-level annotations. The number of elements in the set. For the training dataset, the first Image features D11 of a two-dimensional image. For the set of Image features D11 of a two-dimensional image. For the training dataset, the first Image features D11 of a two-dimensional image, "This is a dot product operation." For temperature coefficient, It is an exponential function. This is a filtering condition, indicating that the selected 2D image is not the first image in the training dataset. A two-dimensional image. Additionally, the temperature coefficient can be a hyperparameter that can be adjusted based on model performance (e.g., it can be set to 0.07).

[0111] Alternatively, the second loss function can be the difference between the first prediction D14 of the 2D image used for training and the image-level annotation. In some examples, the second loss function can be the cross-entropy loss function.

[0112] Alternatively, the third loss function can be the difference between the second prediction result D15 of multiple 2D images of the target object used for training and the user-level annotation. In some examples, the third loss function can be the cross-entropy loss function.

[0113] In some examples, end-to-end model training can be performed end-to-end. Specifically, during model training, the data input to the model is used to obtain a predicted result at the output. This predicted result is compared with the true result (i.e., the labeled information) to obtain an error. This error is propagated through each layer of the model (i.e., backpropagation), and the representation of each layer is adjusted based on this error until the model converges or achieves the expected result. This is end-to-end training. In other words, end-to-end training also delegates the task of feature extraction to the model, directly inputting raw data or slightly preprocessed data, allowing the model to perform feature extraction itself.

[0114] In this context, multiple modules within the end-to-end model (the first detection model 200 and the second detection model 300) can mutually promote and improve each other, thereby enhancing not only the accuracy of user-level prediction results but also the accuracy of image-level prediction results. For example, for OCT images, not every two-dimensional image contains obvious pathological information (e.g., a two-dimensional image might contain images surrounding pathological information, which is difficult for either humans or machines to accurately identify). However, by training them together, they can collectively influence the feature extraction module 210, thereby improving the accuracy of feature extraction and, consequently, the accuracy of subsequent predictions.

[0115] The examples in this disclosure also relate to another image classification method, including: acquiring multiple two-dimensional images of the fundus of a target object, inputting the multiple two-dimensional images into an end-to-end model to obtain a first prediction result and a second prediction result for each two-dimensional image. Furthermore, at least one step in the image classification method can be implemented by at least a portion of the components in the classification system 100. It should be noted that, unless contradictory, the relevant descriptions of classification methods can also be applied to image classification methods.

[0116] Figure 7 This is an exemplary block diagram illustrating an electronic device 8 as described in this disclosure.

[0117] The examples of this disclosure also relate to an electronic device 8, see reference 8. Figure 7 The electronic device 8 may include a processor 801 (e.g., a central processing unit or a graphics processing unit) and a memory 802. The memory 802 may store a computer program that, when executed, implements one or more steps of the classification method or image classification method described above.

[0118] In some examples, memory 802 may include a computer-readable storage medium, which may include, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory, etc. For example, computer-executable instructions may be loaded from memory unit 807 (described later) into random access memory (RAM) to execute computer-executable instructions. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, USB storage, flash memory, etc.

[0119] In some examples, reference Figure 7 The processor 801 and memory 802 can be connected to each other via bus 803. In some examples, the electronic device 8 may also include an input / output interface 804, which can be connected to bus 803. In some examples, the electronic device 8 may also include an input unit 805 (e.g., touch screen, keyboard, mouse, camera, microphone, etc.), an output unit 806 (e.g., display, speaker, etc.), a storage unit 807 (e.g., magnetic tape, hard disk, flash memory, etc.), and / or a communication unit 808, which can be connected to the input / output interface 804. Additionally, the communication unit 808 can be used to enable the electronic device 8 to communicate wirelessly or wiredly with other electronic devices.

[0120] Examples of this disclosure also disclose a computer-readable storage medium that can store at least one instruction, which, when executed by a processor, implements one or more steps of the classification method or image classification method described above. The computer-readable storage medium can be, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, microdrives, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic cards or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.

[0121] The scheme disclosed herein can simulate the comprehensive judgment ability of ophthalmologists, assigning different weights to two-dimensional images of different importance, thereby achieving a qualitative leap from massive two-dimensional data to accurate three-dimensional prediction.

[0122] To verify the effectiveness of the solution disclosed herein (hereinafter referred to as "this solution"), the inventors compared its performance with other methods. The experiment was conducted using the PyTorch deep learning framework on a hardware environment consisting of four NVIDIA A6000 GPUs.

[0123] During the training phase of the quality assessment model, the Adam optimizer was used for training, with a total of 50 training cycles, a batch size of 32, an initial learning rate of 1×10⁻³, and a weight decay of 1×10⁻⁵.

[0124] During the training phase of the end-to-end model, the Adam optimizer was also used, with 50 training epochs, a batch size of 4, an initial learning rate of 3×10⁻⁴, and weight decay of 1×10⁻⁵. A cosine annealing learning rate scheduling strategy was employed during training, including a 5-epoch warm-up. The LoRA configuration was: rank r=8, scaling factor α=16, and random kill rate of 0.1.

[0125] Test data: The comparison with the machine was conducted on a test set containing 40,672 two-dimensional images of 1,964 patients. The comparison with humans was conducted on a test dataset containing 842 OCT images of 105 patients. The classification system 100 built by the scheme and a group of human clinicians (including 4 ophthalmologists and 9 ophthalmologists) performed the same diagnostic task. The diagnostic task covered the entire process from image screening to final disease diagnosis.

[0126] In comparisons with machine learning, patient-level prediction methods included this approach, ABMIL (as described in the literature: Ilse, M., Tomczak, JM & Welling, M. Attention-based Deep Multiple Instance Learning. Preprint at https: / / doi.org / 10.48550 / arXiv.1802.04712 (2018)), S4MIL (as described in the literature: Fillioux, L., Boyd, J., Vakalopoulou, M., Cournède, P.-H. & Christodoulidis, S. Structured State Space Models for Multiple Instance Learning in Digital Pathology. Preprint at https: / / doi.org / 10.48550 / arXiv.2306.15789 (2023)), and M4 (as described in the literature: Li, J. et al. M4: Multi-proxy multi-gate mixture of experts network for multiple instance learning inhistopathology image analysis). Image Analysis 103, 103561 (2025)).

[0127] In comparisons with machine learning, image-level prediction methods include Kamatalab (Qian, B. et al. DRAC 2022: A public benchmark for diabetic retinopathy analysis on ultra-wide optical coherence tomography angiography images. Patterns (NY) 5, 100929 (2024).), FAI (Pachade, S. et al. RFMiD: Retinal Image Analysis for multi-Disease Detection challenge. Medical Image Analysis 99, 103365 (2025)), and FMUE (Peng, Y. et al. Enhancing AI reliability: A foundation model with uncertainty estimation for optical coherence tomography-based retinal disease diagnosis. Cell Rep Med 6, 101876 (2024)).

[0128] Experimental results: The F1 scores of this scheme in patient-level prediction and image-level prediction were 94.39% and 90.99%, respectively, both of which were better than the comparison method. The performance comparison with other comparison methods is shown in Table 1.

[0129]

[0130] Table 1 Performance comparison of the comparison methods Table 2 shows a performance comparison of this solution with that of a human-machine interface: Anomaly detection task: The F1 score of FOCUS in this scheme was 95.47%, which was significantly better than the average level of 4 professional ophthalmologists (90.91%, p<0.005).

[0131] Multi-disease diagnostic task: The F1 score of FOCUS in this program was 93.49%, which was comparable to the performance of the experienced retinal specialist group (mean 91.35%, p=0.376) and significantly better than the junior physician group (62.35%) and senior physician group (76.28%).

[0132] Diagnostic efficiency: The FOCUS solution in this case can process the entire human-machine comparison dataset in just 22.7 seconds, while it would take human doctors tens of minutes to several hours to complete the same task, demonstrating a significant efficiency advantage.

[0133]

[0134] Table 2 Performance Comparison with Human-Machine Interface Furthermore, the research disclosed herein has been approved by the Ethics Review Committee of Zhongshan Ophthalmic Center, Sun Yat-sen University (IRB-ZOC-SYSU, No.: 2023KYPJ344). All procedures were conducted in accordance with the principles of the Declaration of Helsinki. Informed consent is not required because the data was collected retrospectively and personal information has been de-identified.

[0135] While the present disclosure has been specifically described above in conjunction with the accompanying drawings and examples, it is to be understood that the foregoing description does not limit the present disclosure in any way. Those skilled in the art can make modifications and variations to the present disclosure as needed without departing from its essential spirit and scope, and all such modifications and variations shall fall within the scope of the present disclosure.

Claims

1. A classification method for OCT images, characterized in that, include: Receive a three-dimensional OCT image of the fundus of the target object, wherein the three-dimensional OCT image includes multiple two-dimensional images; In response to receiving the 3D OCT image, an automatic trigger is initiated to determine whether the image quality of each 2D image of the 3D OCT image is qualified through a machine learning-based quality assessment model in order to obtain a qualified image set; A first detection model based on machine learning performs multi-classification on each two-dimensional image of at least a portion of the qualified image set to obtain image information for each two-dimensional image of the at least a portion of the images. The image information includes image features and a first prediction result, whereby the first prediction result reflects whether each two-dimensional image possesses a corresponding retinal disease. Specifically, before or after the multi-classification, it is determined whether each two-dimensional image in the qualified image set possesses retinal pathological features to filter abnormal images in the qualified image set as an abnormal image set. A second prediction result is obtained by processing the image features of the abnormal image set and the first prediction result using a second detection model based on machine learning. The second prediction result reflects whether the three-dimensional OCT image contains a corresponding retinal disease. Specifically, the second detection model determines the weight of each two-dimensional image in the abnormal image set based on the image features of all two-dimensional images in the abnormal image set and the first prediction result. The image features of the abnormal image set are then fused based on the weights of each two-dimensional image to obtain fused features. Finally, the second prediction result is obtained based on the fused features. In the second detection model, the feature evaluation vector of the abnormal image set and the first prediction result of the abnormal image set are processed based on cross-attention to obtain the attention weight of each two-dimensional image in the abnormal image set, which is then used as the weight. The feature evaluation vector is the result of feature evaluation of all image features in the abnormal image set. In the cross-attention, the first prediction result serves as the query vector, and the feature evaluation vector serves as both the key vector and the value vector. All image features of the anomalous image set are processed based on the first attention to generate first attention weights that have been processed by the tanh activation function and used as value perception signals. All image features of the anomalous image set are processed based on the second attention to generate second attention weights that have been processed by the sigmoid activation function and used as uncertainty perception signals. The value perception signals and the uncertainty perception signals are fused to obtain the feature evaluation vector.

2. The classification method according to claim 1, characterized in that, The quality assessment model is used to receive two-dimensional images and output quality assessment results, which include qualified, unqualified, need to be reshot, or need to be enhanced. In response to the quality assessment result indicating that a retake is required, a first message is output, which instructs the operator to retake the 2D image. In response to the quality assessment result indicating that enhancement processing is required, the two-dimensional image is subjected to quality enhancement processing, and the quality assessment result of the enhanced two-dimensional image is set to qualified.

3. The classification method according to claim 1, characterized in that, The quality assessment model is a classification model based on EfficientNetV2-S, and the output of the classification model includes the category of image quality.

4. The classification method according to claim 1, characterized in that, The first detection model and the second detection model constitute an end-to-end model. The input of the end-to-end model is the qualified image set or the abnormal image set, and the output of the end-to-end model is the first prediction result and the second prediction result.

5. The classification method according to claim 4, characterized in that, The loss function used to train the end-to-end model is the sum of the first loss function, the second loss function, and the third loss function; The first loss function is the difference in image features between two-dimensional images with the same image-level annotation; The second loss function is the difference between the first prediction result and the image-level annotation; The third loss function is the difference between the second prediction result and the user-level annotation.

6. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a computer program that, when executed, implements the classification method as described in any one of claims 1 to 5.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one instruction that, when executed by a processor, implements the classification method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Eye fundus image classification method, device and equipment based on multiple tasks and storage medium

    CN117253085A

  • Video monitoring image abnormity identification method, device and system and medium

    CN120107840A