Image processing method and device, screening system, and computer-readable storage medium
By cascading multiple feature extractors and classifiers in parallel, using deep neural networks and Xgboost classifiers, the problem of insufficient feature extraction in diabetic retinopathy screening in the existing technology is solved, and the accuracy and robustness of screening are improved. rod, enabling more efficient diabetic retinopathy screening.
Patent Information
- Application Number
- CN202010104357.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-20
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-02-20
AI Technical Summary
In the existing technology for diabetic retinopathy screening, the manual feature extraction method cannot fully utilize the fundus photo information, resulting in limited accuracy and low robustness. In addition, the features extracted by the deep learning algorithm are not comprehensive enough and the screening performance is insufficient.
Multiple feature extractors and classifiers in parallel cascade are used to extract and fuse multi-layer features of fundus photos through deep neural networks, and Xgboost classifier is used for classification to improve the screening performance of diabetic retinopathy.
By making full use of fundus photo information, the accuracy and robustness of diabetic retinopathy screening are improved, the screening performance is improved, and diabetic retinopathy and other fundus diseases can be more effectively identified.
Smart Images

Figure CN113283270B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an image processing method and device, a screening system, and a computer-readable storage medium. Background Art
[0002] Diabetic retinopathy (DR) is a common chronic complication in diabetic patients. Early screening for DR can effectively prevent further deterioration of vision. Summary of the invention
[0003] According to some embodiments of the present disclosure, there is provided an image processing method, including: acquiring an image to be processed; extracting a first feature of the image to be processed using a first feature extractor; performing a first classification of the image to be processed according to the first feature using a first classifier; when the classification result is the first result, extracting a second feature of the image to be processed using a second feature extractor; performing a second classification of the image to be processed according to the second feature using a second classifier; and outputting the classification result of the second classification.
[0004] In some embodiments, using a first feature extractor to extract a first feature of an image to be processed includes: using multiple first feature extractors cascaded in parallel to respectively extract multiple first features of the image to be processed, and fusing the extracted first features, wherein a first classification is performed on the image to be processed based on the fused first features; and / or using a second feature extractor to extract a second feature of an image to be processed includes: using multiple second feature extractors cascaded in parallel to respectively extract multiple second features of the image to be processed, and fusing the extracted second features, wherein a second classification is performed on the image to be processed based on the fused second features.
[0005] In some embodiments, the image to be processed is a fundus photograph; the first feature includes features of diabetic retinopathy and features of non-diabetic retinopathy; the second feature includes features of diabetic retinopathy and features of other fundus diseases except diabetic retinopathy.
[0006] In some embodiments, the first classification includes classifying the fundus photograph as a photograph including characteristics of diabetic retinopathy, or a photograph not including characteristics of diabetic retinopathy, and the first result indicates that the fundus photograph includes characteristics of diabetic retinopathy; the second classification includes classifying the fundus photograph as a photograph including characteristics of diabetic retinopathy, or a photograph including characteristics of other fundus diseases.
[0007] In some embodiments, the image processing method further includes: when the classification result is the second result, using a third feature extractor to extract a third feature of the image to be processed; using a third classifier to perform a third classification on the image to be processed according to the third feature; and outputting the classification result of the third classification.
[0008] In some embodiments, the second result indicates that the fundus photograph does not include characteristics of diabetic retinopathy; the third characteristics include characteristics of no fundus lesions and characteristics of other fundus lesions; the third classification includes classifying the fundus photograph as a photograph that does not include characteristics of fundus lesions, or a photograph that includes characteristics of other fundus lesions.
[0009] In some embodiments, at least one of the first classifier, the second classifier, and the third classifier is an Xgboost classifier.
[0010] In some embodiments, using a third feature extractor to extract a third feature of the image to be processed includes: using multiple third feature extractors cascaded in parallel to respectively extract multiple third features of the image to be processed, and fusing the extracted third features, wherein the image to be processed is thirdly classified according to the fused third features.
[0011] In some embodiments, the image processing method further includes: inputting user information, and storing the user information and the classification result in association.
[0012] In some embodiments, the plurality of first feature extractors include different types of first feature extractors; and / or the plurality of second feature extractors include different types of second feature extractors.
[0013] In some embodiments, the multiple first feature extractors include three second feature extractors, namely SE-ResNet, ResNext, and InceptionV3 networks.
[0014] In some embodiments, the multiple second feature extractors include three second feature extractors, namely SE-ResNet, ResNext, and InceptionV3 networks.
[0015] In some embodiments, fusing the extracted first features includes: horizontally splicing the extracted multiple first features to obtain a fused first feature.
[0016] In some embodiments, fusing the extracted second features includes: horizontally splicing the extracted multiple second features to obtain a fused second feature.
[0017] According to some other embodiments of the present disclosure, there is provided an image processing device, comprising: an acquisition unit, configured to acquire an image to be processed; a first feature extractor, configured to extract a first feature of the image to be processed; a first classifier, configured to perform a first classification on the image to be processed; a second feature extractor, configured to extract a second feature of the image to be processed when the classification result is the first result; a second classifier, configured to perform a second classification on the image to be processed according to the second feature; and an output unit, configured to output the classification result of the second classification.
[0018] According to some further embodiments of the present disclosure, there is provided an image processing device, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the image processing method described in any of the aforementioned embodiments based on instructions stored in the memory.
[0019] According to some further embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the image processing method described in any of the aforementioned embodiments is implemented.
[0020] According to other embodiments of the present disclosure, a screening system for diabetic retinopathy is provided, comprising: the image processing device described in any of the aforementioned embodiments, configured to classify fundus photographs of a user.
[0021] In some embodiments, the screening system further includes: an image sensor configured to take a photograph of the user's fundus.
[0022] In some embodiments, the screening system further includes: an input device configured to input user information; and a memory configured to store user information and classification results in an associated manner.
[0023] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0025] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
[0026] Figure 1 is a flowchart showing an image processing method according to an embodiment of the present disclosure;
[0027] Figure 2 is a block diagram showing an image processing apparatus according to an embodiment of the present disclosure;
[0028] Figure 3 is a block diagram showing an image processing apparatus according to another embodiment of the present disclosure;
[0029] Figure 4A is a block diagram illustrating a screening system according to one embodiment of the present disclosure;
[0030] Figure 4B is a block diagram illustrating a screening system according to another embodiment of the present disclosure;
[0031] Figure 5A is a schematic diagram showing an auxiliary diagnosis system according to an embodiment of the present disclosure;
[0032] Figure 5B is a business flow chart showing a privatized version of an auxiliary diagnosis system according to an embodiment of the present disclosure;
[0033] Figure 5C is a business flow chart showing a SaaS version auxiliary diagnosis system according to an embodiment of the present disclosure;
[0034] Figure 6 is a block diagram showing a computer system for implementing one embodiment of the present disclosure.
[0035] It should be understood that the size of each part shown in the accompanying drawings is not drawn according to the actual proportional relationship. In addition, the same or similar reference numerals represent the same or similar components. DETAILED DESCRIPTION
[0036] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. The description of the exemplary embodiments is merely illustrative and is in no way intended to limit the present disclosure and its application or use. The present disclosure can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to make the present disclosure thorough and complete and to fully express the scope of the present disclosure to those skilled in the art. It should be noted that unless otherwise specifically stated, the relative arrangement of the components and steps described in these embodiments should be interpreted as being merely exemplary and not as a limitation.
[0037] All terms (including technical terms or scientific terms) used in the present disclosure have the same meanings as those understood by ordinary technicians in the field to which the present disclosure belongs, unless otherwise specifically defined. It should also be understood that terms defined in general dictionaries, such as general dictionaries, should be interpreted as having meanings consistent with their meanings in the context of the relevant technology, and should not be interpreted in an idealized or extremely formal sense, unless explicitly defined herein.
[0038] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0039] Using machine learning to classify images is very common in various fields. Feature extraction is a key issue in machine learning, and the quality of the extracted features directly affects the classification accuracy and generalization performance of the classifier.
[0040] In a related technology, a classifier is used to identify and judge several manually extracted project features, such as blood vessel contours, red lesions (microblood flow), brightness lesions (exudation, cotton wool spots), etc., to achieve the purpose of screening for diabetic retinopathy. Feature extraction in related technologies is to extract key features by preprocessing the data and then combining prior knowledge, or to extract features using principal component analysis, chi-square test, mutual information selection, etc. This type of manual feature extraction method has certain limitations, because it mainly relies on prior knowledge, it is difficult to take advantage of big data, the extracted features are limited, and the information in the image cannot be fully utilized, resulting in limited accuracy and low robustness in practical applications.
[0041] For example, in the medical field, the above problems are obvious. For example, in the screening of diabetic retinopathy, the method of manually extracting features cannot fully utilize the information in the fundus photos. In actual applications, many other retinal diseases will be misjudged as diabetic retinopathy.
[0042] With the development of deep learning, deep neural networks can learn higher-level feature information from large amounts of raw data for classification, eliminating the complex process of feature extraction and selection.
[0043] In another related technology, deep convolutional neural networks are used to automatically learn the required features from training data and perform classification judgments, achieving a certain accuracy rate on test data. The deep learning algorithm currently used in the identification of diabetic retinopathy has further improved the screening performance compared to the traditional manual feature extraction method, but the features extracted by the convolutional neural network used are not comprehensive enough, and the screening performance for diabetic retinopathy is not good enough, and there is still room for improvement.
[0044] To address this problem, the present invention proposes an image processing method that can fully utilize the information of fundus photographs to further improve the performance of diabetic retinopathy screening, so as to assist doctors in screening for diabetic retinopathy quickly, accurately and effectively.
[0045] In the following embodiments, the implementation process of the image processing method disclosed in the present invention is described by taking diabetic retinopathy screening in the medical field as an example. Those skilled in the art can understand that the image processing method disclosed in the present invention is also applicable in other fields.
[0046] Figure 1 FIG. 1 is a flowchart showing an image processing method according to an embodiment of the present disclosure. The image processing method may be executed by an image processing device.
[0047] like Figure 1 As shown, the image processing method includes the following steps: S1, obtaining an image to be processed; S2, using a first feature extractor to extract a first feature of the image to be processed; S3, using a first classifier to perform a first classification on the image to be processed according to the first feature.
[0048] In some embodiments, the image to be processed is a fundus photograph of the user. For example, a fundus photograph of the user is taken using an image sensor, and the fundus photograph is transmitted to an image processing device. The first feature includes features of diabetic retinopathy and features of non-diabetic retinopathy. Retinopathy not caused by diabetes means that the features of diabetic retinopathy are not included, including both normal and disease-free situations and situations of other lesions except diabetic retinopathy. Accordingly, the first classification includes classifying the fundus photograph as a photograph including features of diabetic retinopathy or a photograph not including features of diabetic retinopathy.
[0049] In some other embodiments, extracting the first feature of the image to be processed by using the first feature extractor includes: extracting multiple first features of the image to be processed respectively by using multiple first feature extractors cascaded in parallel, and fusing the extracted first features. Accordingly, the image to be processed is first classified according to the fused first features.
[0050] In some embodiments, the plurality of first feature extractors include different types of first feature extractors. For example, the plurality of first feature extractors include three first feature extractors, namely SE-ResNet, ResNext, and InceptionV3 networks.
[0051] The parallel cascade connection is, for example, that a plurality of first feature extractors receive the same image to be processed, and each first feature extractor outputs the extracted first feature, that is, different first feature extractors output different first features.
[0052] In some embodiments, the fusion method includes splicing. For example, the first features extracted by the multiple first feature extractors are T1 = [t11, t12, t13, t14], T2 = [t21, t22, t23, t24] ... Tn = [tn1, tn2, tn3, tn4]. The multiple first features are spliced, for example, horizontally spliced, and the fused first feature obtained is T = [t11, t12, t13, t14, t21, t22, t23, t24 ... tn1, tn2, tn3, tn4].
[0053] Next, according to the result of the first classification, the subsequent execution step is determined, that is, execution step S4.
[0054] When the classification result of the first classification is the first result, the following steps are performed: S41, using a second feature extractor to extract a second feature of the image to be processed; S51, using a second classifier, performing a second classification on the image to be processed according to the second feature; S6, outputting the classification result, for example, outputting the classification result of the second classification.
[0055] In some embodiments, the first result indicates that the fundus photograph includes features of diabetic retinopathy. The second features include features of diabetic retinopathy and features of other fundus lesions other than diabetic retinopathy. The second classification includes classifying the fundus photograph as a photograph including features of diabetic retinopathy or a photograph including features of other fundus lesions. The classification result of the second classification indicates that the fundus photograph includes features of diabetic retinopathy or includes features of other fundus lesions.
[0056] In some other embodiments, extracting the second feature of the image to be processed by the second feature extractor includes: extracting multiple second features of the image to be processed by using multiple second feature extractors cascaded in parallel, and fusing the extracted second features. Accordingly, the image to be processed is subjected to a second classification according to the fused second features. The parallel cascading and fusing here can be carried out in a manner similar to the processing of the first feature.
[0057] In some embodiments, the plurality of second feature extractors include different types of second feature extractors. For example, the plurality of second feature extractors include three second feature extractors, namely SE-ResNet, ResNext, and InceptionV3 networks.
[0058] When the classification result of the first classification is the second result, perform the following steps: S42, use a third feature extractor to extract a third feature of the image to be processed; S52, use a third classifier to perform a third classification on the image to be processed according to the third feature; S6, output the classification result, for example, output the classification result of the third classification.
[0059] In some embodiments, when the classification result is the second result, the classification result of the first classification may also be directly output without performing extraction and classification of the third feature.
[0060] In some embodiments, the second result indicates that the fundus photo does not include features of diabetic retinopathy. The third feature includes features of no fundus lesions and features of other fundus lesions. The third classification includes classifying the fundus photo as a photo that does not include features of fundus lesions or a photo that includes features of other fundus lesions. Accordingly, the classification result of the third classification indicates that the fundus photo includes features of other fundus lesions or does not include features of fundus lesions.
[0061] In some other embodiments, extracting the third feature of the image to be processed by the third feature extractor includes: extracting multiple third features of the image to be processed by using multiple third feature extractors cascaded in parallel, and fusing the extracted third features. Accordingly, the image to be processed is subjected to a third classification according to the fused third features. The parallel cascading and fusing here can be carried out in a manner similar to the processing of the first feature.
[0062] In some embodiments, the plurality of third feature extractors include different types of third feature extractors. For example, the plurality of third feature extractors include three third feature extractors, namely SE-ResNet, ResNext, and InceptionV3 networks.
[0063] The following describes in detail how to train each feature extractor and classifier with examples.
[0064] In some embodiments, different feature extractors can be trained on different data sets. For example, the first feature extractor is used to extract the features of diabetic retinopathy and the features of non-diabetic retinopathy (including normal and other lesions) in fundus photographs. The second feature extractor is used to extract the features of diabetic retinopathy and the features of other fundus diseases in fundus photographs. Here, we can only focus on the abnormal fundus photographs in the fundus photographs to be processed, and ignore the normal fundus photographs, because the second feature extractor is designed to distinguish the features of diabetic retinopathy and the features of other lesions. The third feature extractor is used to extract the features of normal and other lesions in fundus photographs.
[0065] For example, fundus photos can be annotated, with the label of diabetic retinopathy as 1 and the label of other conditions (including normal and other lesions) as 0, to construct data set 1. Another way to annotate fundus photos is to annotate only the fundus photos with lesions. For example, the label of diabetic retinopathy is 1, and the label of other lesions is 0, to construct data set 2. The label of normal fundus photos is 0, and the label of fundus photos of other lesions other than diabetic retinopathy is 1, to construct data set 3. By standardizing data sets and annotating different data sets in different ways, multiple deep networks focusing on different features can be trained to make full use of the information in fundus photos.
[0066] In some embodiments, the above three data sets are independent and non-repetitive. The three data sets can be divided into a training set, a validation set and a test set in a certain ratio (for example, 8:1:1). The training set and validation set of the three data sets are used to train and validate multiple feature extraction networks respectively.
[0067] For example, the feature extractor can be trained by transfer learning of multiple classic image classification deep neural networks. The classic image classification deep neural networks here are, for example, SE-ResNet, ResNext, and InceptionV3. Transfer learning is a machine learning method that refers to a pre-trained model being reused in another task. In the embodiment of the present application, the existing trained model (i.e., the object of transfer learning) is used as a pre-trained model to train the feature extractor on the training set and the validation set. For example, when the loss of the training set and the validation set tends to be flat, the parameters and networks before a certain layer in the middle of these models are intercepted to form a feature extractor. The features and feature dimensions extracted by different layers are different and can be used for more tasks. In this way, the deep features of the fundus photographs can be extracted.
[0068] In some embodiments, the parameters and network before the penultimate layer of each model are intercepted to form a feature extractor. Of course, the intercepted parameters and network may also include the parameters and network of the penultimate layer of the model. Because the model to be migrated is generally a classification model, the penultimate layer of each model network is generally a fully connected layer, and the layer before the penultimate layer includes, for example, an input layer and a hidden layer. The specific number of layers and the number of neurons and other structures will vary depending on the model to be migrated. In a specific embodiment, the number of models migrated and the network layer used to extract features may be different.
[0069] In some embodiments, the depth features extracted by multiple feature extractors may be fused to form a depth feature set.
[0070] As an example, we migrated SE-ResNet, ResNext, and InceptionV3 networks and models respectively, and trained classification models on the training and validation sets of Datasets 1, 2, and 3. Due to the settings of the datasets, the model trained on Dataset 1 focuses on the characteristics of diabetic retinopathy in fundus photos and the characteristics of non-diabetic retinopathy (normal and other lesions); the model trained on Dataset 2 focuses more on the characteristics of diabetic retinopathy and other fundus diseases in abnormal fundus photos; the model trained on Dataset 3 focuses more on the characteristics of normal and non-diabetic retinopathy in fundus photos. During the model training process, when the loss of the training set and the validation set tends to be flat, stop training.
[0071] The first feature extractors trained with data set 1 may include n features, for example, feature_extraction1_1, feature_extraction1_2, feature_extraction1_3, ..., feature_extraction1_n, where n is a positive integer. The features extracted by the n first feature extractors are concatenated according to samples to form a fused first feature data set 1.
[0072] In some embodiments, three first feature extractors are trained, for example, feature_extraction1_1, feature_extraction1_2, and feature_extraction1_3 are SE-ResNet, ResNext, and InceptionV3 models, respectively. The first features extracted by the three first feature extractors can be horizontally spliced to obtain a fused first feature dataset 1.
[0073] The second feature extractors trained with data set 2 may include m, for example, feature_extraction2_1, feature_extraction2_2, feature_extraction2_3, ..., feature_extraction2_m, where m is a positive integer. m may be the same as n or different. The features extracted by the m second feature extractors are spliced according to samples to form a fused second feature data set 2.
[0074] In some embodiments, three second feature extractors are trained, for example, feature_extraction2_1, feature_extraction2_2, and feature_extraction2_3 are SE-ResNet, ResNext, and InceptionV3 models, respectively. The second features extracted by the three second feature extractors can be horizontally spliced to obtain a fused second feature dataset 2.
[0075] The third feature extractors trained with the data set 3 may include k, for example, feature_extraction3_1, feature_extraction3_2, feature_extraction3_3, ..., feature_extraction3_k, where k is a positive integer. k may be the same as m and n, or different. The features extracted by the k third feature extractors are spliced according to samples to form a fused third feature data set 3.
[0076] In some embodiments, three second feature extractors are trained, for example, feature_extraction3_1, feature_extraction3_2, and feature_extraction3_3 are SE-ResNet, ResNext, and InceptionV3 models, respectively. The third features extracted by the three third feature extractors can be horizontally spliced to obtain a fused third feature dataset 3.
[0077] Each fused feature data set can be used to train a corresponding classifier. In some embodiments, at least one of the first classifier, the second classifier, and the third classifier is an Xgboost classifier. For example, the first classifier, the second classifier, and the third classifier are all Xgboost classifiers. The classification algorithm of the Xgboost classifier is an integrated learning method based on Boosting. Using the Xgboost classifier can prevent overfitting and improve the accuracy of classification, and parallel optimization can improve the efficiency of the algorithm.
[0078] For example, multiple deep neural networks can be cascaded in parallel and the feature outputs of multiple network intermediate layers can be concatenated and fused to train Xgboost classifiers. Different Xgboost classifiers can be trained on different data sets. Data from multiple data sets can also be put together to test the overall performance of the model.
[0079] Using each fused feature data set, 10-fold cross-validation was used to train three Xgboost classifiers, namely XGB_classfication1, XGB_classfication2, and XGB_classfication3. 10-fold cross-validation is used to test the accuracy of the algorithm, that is, the data set is divided into ten parts, 9 of which are used as training data and 1 as test data in turn for testing. The Xgboost classifier trained with deep features extracted by multiple models focuses on more diverse high-level features in fundus photos, which can improve the classification performance to a certain extent.
[0080] In the application, the first feature extractor feature_extraction1_1-n is cascaded in parallel, and the extracted features are spliced and classified with XGB_classification1. According to the classification results, XGB_classification2 or XGB_classification3 is cascaded in series. If XGB_classification1 is classified as 1, the original fundus photo is fed into the parallel cascade feature_extraction2_1-m to extract the depth feature, and then classified with XGB_classification2, and the classification result is output as the final result. If XGB_classification1 is classified as 0, the final classification result can be directly output as 0. Of course, the original fundus photo can also be further fed into the parallel cascade feature_extraction3_1-3 to extract the depth feature, and then classified with XGB_classification3.
[0081] Compared with a single classification model, the cascade classification model can more effectively identify diabetic retinopathy and other lesions other than diabetic retinopathy, and can further improve the accuracy of diabetic retinopathy screening. The test results show that compared with a single classification model, the accuracy, specificity, and positive predictive value of the cascade classification model have been greatly improved.
[0082] In the above embodiment, feature values are extracted by deep neural network and used to train the classifier, thus avoiding the complex process of manual feature extraction. In addition, multiple deep neural networks are fused to extract features of fundus photos, so that the dimension of the features is increased, so that the trained diabetic retinopathy screening classifier has better performance and generalization ability.
[0083] Figure 2 is a block diagram showing an image processing apparatus according to an embodiment of the present disclosure.
[0084] like Figure 2As shown, the image processing device 20 includes: an acquisition unit 210, configured to acquire an image to be processed, for example, executing step S1; a first feature extractor 220, configured to extract a first feature of the image to be processed, for example, executing step S2; a first classifier 230, configured to perform a first classification of the image to be processed, for example, executing step S3; a second feature extractor 241, configured to extract a second feature of the image to be processed when the classification result is the first result, for example, executing step S41; and a second classifier 251, configured to perform a second classification of the image to be processed according to the second feature, for example, executing step S51.
[0085] In some embodiments, the image processing device 20 further includes: an output unit 260 configured to output the classification result, for example, executing step S6 to output the classification result of the second classification. For example, the output unit 260 can output the classification result using a display, a player, or the like.
[0086] In some embodiments, the image processing device further includes: a third feature extractor 242, configured to extract a third feature of the image to be processed when the classification result is the second result, for example, executing step S42; a third classifier 252, configured to perform a third classification on the image to be processed according to the third feature, for example, executing step S52. Accordingly, the output unit 260 is configured to output the classification result of the third classification, for example, executing step S6. It should be understood that the output 260 can also be configured to output the classification result of the first classification.
[0087] Figure 3 is a block diagram illustrating an image processing apparatus according to another embodiment of the present disclosure.
[0088] like Figure 3 As shown, the image processing device 30 includes: a memory 310 and a processor 320 coupled to the memory 310. The memory 310 is configured to store instructions for executing the corresponding embodiments of the image processing method. The processor 320 is configured to execute one or more steps of the image processing method in any of the embodiments of the present disclosure based on the instructions stored in the memory 310.
[0089] It should be understood that each step in the aforementioned image processing method can be implemented by a processor, and can be implemented in any manner of software, hardware, firmware or a combination thereof.
[0090] In addition to the image processing method and apparatus, the embodiments of the present disclosure may also be in the form of a computer program product implemented on one or more non-volatile storage media containing computer program instructions. Therefore, the embodiments of the present disclosure also provide a computer-readable storage medium on which computer instructions are stored, and when the instructions are executed by a processor, the image processing method in any of the aforementioned embodiments is implemented.
[0091] The disclosed embodiment also provides a screening system for diabetic retinopathy, comprising the image processing device described in any of the aforementioned embodiments.
[0092] Figure 4A is a block diagram illustrating a screening system according to one embodiment of the present disclosure.
[0093] like Figure 4A As shown, the screening system 4A includes an image processing device 40A. The image processing device 40A is configured to execute the image processing method described in any of the above embodiments. The structure of the image processing device 40A can be similar to the above-mentioned image processing device 20 or 30, and is configured to classify the fundus photographs of the user.
[0094] In some embodiments, the screening system 4A further includes: an image sensor 410 configured to take a fundus photograph of the user. The image sensor is, for example, a camera.
[0095] The screening system 4A can be implemented as a local service, that is, the image sensor and the image processing device are both located at the user end.
[0096] In some embodiments, the screening system 4A further includes: an input device 430, configured to input user information. The input device 430, for example, can obtain user information through text, sound, or image. The screening system 4A can also include: a memory 440, configured to associate and store user information and classification results. Both the input device 430 and the memory 440 can be located at the user end.
[0097] Figure 4B is a block diagram illustrating a screening system according to another embodiment of the present disclosure. Figure 4B and Figure 4A The difference is that the image processing device is located in the cloud, and the screening system also includes a communication unit. Figure 4B and Figure 4A The differences are shown below, and the similarities will not be repeated here.
[0098] Figure 4B The screening system 4B in the embodiment is implemented as a cloud service. Figure 4B As shown, the image sensor 410 is located at the user end, and the image processing device 40B is located in the cloud. The image processing device 40B in the cloud can provide services to multiple users simultaneously or in time-sharing.
[0099] In the case where the image sensor 410 and the image processing device 40B are located on different sides, for example, the image sensor 410 is located at the user end, and the image processing device 40 is located at the cloud, the screening system 4B includes on the user end and the cloud, respectively: a communication unit 421, configured to transmit the fundus photograph taken by the user end to the image processing device; and a communication unit 422, configured to transmit the classification results of the fundus photograph by the image processing device to the user end.
[0100] The communication units can communicate with each other through a network, for example. The network can be a wireless network, a wired network, and / or any combination of a wireless network and a wired network, and can include a local area network, the Internet, a telecommunication network, an Internet of Things based on the Internet and / or a telecommunication network, and / or any combination of the above networks. For example, a wired network can communicate by means of twisted pair, coaxial cable or optical fiber transmission, and a wireless network can communicate by means of 3G / 4G / 5G mobile communication network, Bluetooth, Zigbee or Wi-Fi.
[0101] The disclosed embodiments also provide an auxiliary diagnosis system for diabetic retinopathy, which can implement the image processing method described in any of the aforementioned embodiments, such as automatic screening of diabetic retinopathy through software, to improve diagnostic efficiency and accuracy. In some embodiments, the system also saves the user's historical reports to facilitate disease management.
[0102] According to the disclosed embodiments, the auxiliary diagnosis system can be divided into a private version and a SaaS version. The private version meets the needs of hospitals that cannot connect to the external network, and the SaaS version is suitable for primary medical care, which provides cloud services when it is unable to purchase servers due to cost constraints, uploads fundus data to the cloud for processing, and returns the processing results.
[0103] Figure 5A FIG. 1 is a schematic diagram showing an auxiliary diagnosis system according to an embodiment of the present disclosure. Figure 5A As shown, the auxiliary diagnosis system 5 includes a server 51 , a database 52 , a terminal computer 53 , and a printer 54 .
[0104] For the private version, the aforementioned image processing device may be located at the user end (e.g., hospital) together with the server 51, database 52, terminal computer 53, and printer 54, for inputting user information, providing auxiliary diagnosis services, and outputting (e.g., printing) classification results, etc. The aforementioned image sensor, input device, memory, etc. may be components of the terminal computer 53. The printer 54 is an implementation of the aforementioned output unit.
[0105] For the SaaS version, the auxiliary diagnosis system 5 also includes a server 50. The aforementioned image processing device can be located in the cloud together with the server 50 and the server 51, and is used to classify images and provide auxiliary diagnosis services; and the image sensor, input device, etc. can be located at the user end together with the terminal computer 53 and the printer 54, and is used to take images, input user information, print classification results, etc. For example, the image sensor, input device, etc. can be a component of the terminal computer 53. The terminal computer 53 exchanges data with the server 50 and the database 52 through the server 51.
[0106] Figure 5B FIG. 1 is a business flow chart showing a private version of an auxiliary diagnosis system according to an embodiment of the present disclosure. Figure 5B As shown, the privatized version mainly includes functions of doctor account management, auxiliary diagnosis and historical report viewing.
[0107] Doctor account management mainly includes the following functions:
[0108] (1) After the institution successfully purchases and installs the system, it logs in using the configured account and password and enters the "Doctor Management" page;
[0109] (2) Click "Create Doctor Account" to enter the "Doctor Information" page and fill in the doctor's information. "Name" and "Doctor's Phone Number" are required information.
[0110] (3) Click "OK" to complete the creation of the doctor account;
[0111] (4) Click "Reset Password" on the right side of the doctor's information. The account password will be reset to the initial password "ret123";
[0112] (5) Enter the doctor's name in the search box and click the search button to search for doctor information;
[0113] (6) Click the "Reset" button to restore the doctor list;
[0114] (7) Click the "Number of diagnoses" button to sort in ascending or descending order according to the number of diagnoses;
[0115] (8) Click the icon under "Enable / Disable" to enable or disable the doctor account.
[0116] Auxiliary diagnosis mainly includes the following functions:
[0117] (1) After successful purchase and installation, the doctor logs in using the account and password generated by the institution and enters the "Diagnosis Analysis" page;
[0118] (2) Fill in the patient information in the "Patient Information Entry" area. "Name", "Gender" and "Date of Birth" are required information. "Mobile Number" and "Patient's Self-Description" are optional and recommended for a more comprehensive understanding of the patient's condition. Note: Please enter the patient information correctly. Incorrect information entry will result in information mismatch or loss.
[0119] (3) Click the "+" in the left eye and right eye image upload boxes respectively to upload the fundus image. When uploading images, be sure to distinguish between the left and right eyes. If the image upload is wrong or fails, click the "Re-upload" button to re-upload the image.
[0120] (4) Click the "Start Analysis" button to analyze the data. The analysis will be completed in about 10 seconds and the page will automatically jump to the "Diagnosis Analysis Interface". If no results are returned for a long time, the message "Network timeout or abnormality, please try again" will be displayed. Click the "Start Analysis" button again.
[0121] (5) On the "Diagnosis Analysis Results" interface, fill in the "Doctor's Order" information.
[0122] This is a required field;
[0123] (6) Click the "Finish" button to generate the report and save the report information;
[0124] (7) Click the “Print” button to print the report, or click the “Download” button to download the report.
[0125] Historical report viewing mainly includes the following functions:
[0126] (1) After successful purchase and installation, the institution logs in using the configured account and password and enters the "Doctor Management" page; the doctor logs in using the account and password generated by the institution and enters the "Diagnosis Analysis" page;
[0127] (2) Click “Historical Report” to enter the historical report page.
[0128] Figure 5C FIG. 4 is a business flow chart showing a SaaS version auxiliary diagnosis system according to some embodiments of the present disclosure. Figure 5C As shown, the SaaS version mainly includes the functions of institutional account management, doctor account management, auxiliary diagnosis and historical report viewing.
[0129] Institutional account management mainly includes the following functions:
[0130] (1) The account administrator successfully logs into the system and enters the "Organization Management" page;
[0131] (2) Click "Create Institution Account" to enter the "Create Institution Account" page and fill in the institution information. "Institution Name" and "Email Account" are both required information. After the institution is successfully created, the institution administrator needs to log in to the email address and verify the login;
[0132] (3) Click “Information Details” to view detailed information about the organization;
[0133] (4) Click the button under "Enable / Disable" to enable or disable the institution account;
[0134] (5) Click “Review Application” to enter the review application page and display the agency review list;
[0135] (6) Click “Under Review” on the review application page to enter the institution details page;
[0136] (7) Review the organization information. If the requirements are met, click “Passed Review” and the organization can use the account. Otherwise, click “Return Application”.
[0137] Doctor account management mainly includes the following functions:
[0138] (1) After the institution successfully purchases and installs the system, it logs in using its account and password and enters the "Doctor Management" page;
[0139] (2) Click "Create Doctor Account" to enter the "Doctor Information" page and fill in the doctor's information. "Name", "Gender", "Date of Birth", "Doctor's Phone Number", "Doctor's Title", "Years of Practice" and "Professional Qualification Certificate Number" are all required information;
[0140] (3) Click "OK" to complete the creation of the doctor account;
[0141] (4) Click "Modify Information" on the right side of the doctor's information to reset password and jump to the "Doctor Information" page, where you can modify the information on the doctor's information page;
[0142] (5) Enter the doctor's name in the search box and click the search button to search for doctor information;
[0143] (6) Click the "Reset" button to restore the doctor list;
[0144] (7) Click the "Number of diagnoses" button to sort in ascending or descending order according to the number of diagnoses;
[0145] (8) Click the icon under "Enable / Disable" to enable or disable the doctor account.
[0146] In the auxiliary diagnosis function of the SaaS version, (1)-(6) are the same as the private version, but a QR code can be automatically generated after clicking. Users (such as patients) can view the report by scanning the QR code and view historical reports through the corresponding mobile health service number. After scanning the QR code, they will jump to the auxiliary diagnosis report page.
[0147] The historical report viewing function of the SaaS version is the same as that of the private version.
[0148] Figure 6 is a block diagram showing a computer system for implementing one embodiment of the present disclosure.
[0149] like Figure 6 As shown, the computer system can be in the form of a general-purpose computing device, and the computer system can be used to implement the image processing method of the above embodiment. The computer system includes a memory 610, a processor 620, and a bus 600 connecting different system components.
[0150] The memory 610 may include, for example, a system memory, a non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs. The system memory may include a volatile storage medium, such as a random access memory (RAM) and / or a cache memory. The non-volatile storage medium may store, for example, instructions for executing the corresponding embodiment of the display method. The non-volatile storage medium includes, but is not limited to, a disk memory, an optical memory, a flash memory, etc.
[0151] The processor 620 can be implemented by a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistors, etc. Discrete hardware components. Accordingly, each module such as the judgment module and the determination module can be implemented by a central processing unit (CPU) running instructions in a memory that execute corresponding steps, or can be implemented by a dedicated circuit that executes corresponding steps.
[0152] The bus 600 may use any of a variety of bus architectures, including, but not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, and a Peripheral Component Interconnect (PCI) bus.
[0153] The computer system may further include an input / output interface 630, a network interface 640, a storage interface 650, etc. These interfaces 630, 640, 650, the memory 610, and the processor 620 may be connected via a bus 600. The input / output interface 630 may provide a connection interface for input / output devices such as a display, a mouse, and a keyboard. The network interface 640 may provide a connection interface for various networked devices. The storage interface 640 may provide a connection interface for external storage devices such as a floppy disk, a USB flash drive, and an SD card.
[0154] So far, various embodiments of the present disclosure have been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.
[0155] Although some specific embodiments of the present disclosure have been described in detail by way of examples, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified or some technical features may be replaced by equivalents without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. An image processing method, comprising: Acquire an image to be processed, where the image to be processed is a fundus photograph; Extracting a first feature of the image to be processed by using a first feature extractor, wherein the first feature includes a feature of diabetic retinopathy and a feature of non-diabetic retinopathy; Using a first classifier, performing a first classification on the image to be processed according to the first feature; When the classification result is the first result, a second feature extractor is used to extract a second feature of the image to be processed, where the second feature includes a feature of diabetic retinopathy and a feature of other fundus lesions except diabetic retinopathy; Using a second classifier, performing a second classification on the image to be processed according to the second feature; Output the classification results of the second classification, in: Extracting the first feature of the image to be processed by using the first feature extractor includes: extracting multiple first features of the image to be processed respectively by using multiple first feature extractors cascaded in parallel, and horizontally splicing the extracted multiple first features to obtain a fused first feature, wherein the multiple first feature extractors include three second feature extractors, which are SE-ResNet, ResNext, and InceptionV3 networks, respectively, and performing a first classification on the image to be processed according to the fused first features; and / or Using the second feature extractor to extract the second feature of the image to be processed includes: using multiple second feature extractors cascaded in parallel to respectively extract multiple second features of the image to be processed, and horizontally splicing the extracted multiple second features to obtain fused second features, wherein the multiple second feature extractors include 3 second feature extractors, namely SE-ResNet, ResNext, and InceptionV3 networks, and performing a second classification on the image to be processed according to the fused second features.
2. The image processing method according to claim 1, wherein: The first classification includes classifying the fundus photograph as a photograph including features of diabetic retinopathy or a photograph not including features of diabetic retinopathy, and the first result indicates that the fundus photograph includes features of diabetic retinopathy; The second classification includes classifying the fundus photograph as a photograph including features of diabetic retinopathy or a photograph including features of other fundus lesions.
3. The image processing method according to claim 1 or 2, further comprising: When the classification result is the second result, extracting a third feature of the image to be processed by using a third feature extractor; Using a third classifier, performing a third classification on the image to be processed according to the third feature; Output the classification result of the third category.
4. The image processing method according to claim 3, wherein: The second result indicates that the fundus photograph does not include features of diabetic retinopathy; The third characteristics include characteristics of no fundus lesions and characteristics of other fundus lesions; The third classification includes classifying the fundus photograph into a photograph that does not include features of a fundus lesion or a photograph that includes features of other fundus lesions.
5. The image processing method according to claim 3, wherein: At least one of the first classifier, the second classifier, and the third classifier is an Xgboost classifier.
6. The image processing method according to claim 3, wherein: Extracting the third feature of the image to be processed by using the third feature extractor includes: A plurality of third feature extractors cascaded in parallel are used to extract a plurality of third features of the image to be processed respectively, and the extracted third features are fused, wherein the image to be processed is subjected to a third classification according to the fused third features.
7. The image processing method according to claim 1 or 2, further comprising: Input user information and store the user information and classification results in an associated manner.
8. An image processing device, comprising: An acquisition unit is configured to acquire an image to be processed, where the image to be processed is a fundus photograph; A first feature extractor is configured to extract a first feature of the image to be processed, wherein the first feature includes a feature of diabetic retinopathy and a feature of non-diabetic retinopathy; A first classifier is configured to perform a first classification on the image to be processed; A second feature extractor is configured to extract a second feature of the image to be processed when the classification result is the first result, the second feature including a feature of diabetic retinopathy and a feature of other fundus lesions except diabetic retinopathy; A second classifier is configured to perform a second classification on the image to be processed according to the second feature; an output unit, configured to output a classification result of the second classification, in: Extracting the first feature of the image to be processed by using the first feature extractor includes: extracting multiple first features of the image to be processed respectively by using multiple first feature extractors cascaded in parallel, and horizontally splicing the extracted multiple first features to obtain a fused first feature, wherein the multiple first feature extractors include three second feature extractors, which are SE-ResNet, ResNext, and InceptionV3 networks, respectively, and performing a first classification on the image to be processed according to the fused first features; and / or Using the second feature extractor to extract the second feature of the image to be processed includes: using multiple second feature extractors cascaded in parallel to respectively extract multiple second features of the image to be processed, and horizontally splicing the extracted multiple second features to obtain fused second features, wherein the multiple second feature extractors include 3 second feature extractors, namely SE-ResNet, ResNext, and InceptionV3 networks, and performing a second classification on the image to be processed according to the fused second features.
9. An image processing device, comprising: Memory; and A processor coupled to the memory, wherein the processor is configured to execute the image processing method according to any one of claims 1 to 7 based on instructions stored in the memory.
10. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the image processing method according to any one of claims 1 to 7 is implemented.
11. A screening system for diabetic retinopathy, comprising: The image processing device according to claim 8 or 9 is configured to classify the fundus photographs of the user.
12. The screening system of claim 11, further comprising: The image sensor is configured to take a fundus photograph of the user.
13. The screening system of claim 11, further comprising: an input device configured to input user information; The memory is configured to store the user information and the classification result in an associated manner.
Citation Information
Cited By
Image processing method and apparatus, screening system, and computer-readable storage medium
EP4109328B1
