OCT image recommendation method, device, equipment and medium based on artificial intelligence

Through the OCT image recommendation method based on artificial intelligence, it uses lesion characteristic indicators to screen and evaluate, and quickly recommends similar OCT images, which solves the problem of doctors having difficulty finding similar cases during diagnosis, and improves diagnostic efficiency and accuracy.

CN114782337BActive Publication Date: 2024-09-13SHENZHEN PING AN SMART HEALTHCARE TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202210370131.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-08
Publication Date
2024-09-13
Estimated Expiration
2042-04-08

AI Technical Summary

Technical Problem

When doctors diagnose fundus diseases, it is difficult to quickly find past cases with similar lesion characteristics to the current patient, resulting in low diagnostic efficiency.

Method used

An OCT image recommendation method based on artificial intelligence is used to obtain fundus OCT images, perform preprocessing and lesion detection, construct lesion vectors, calculate lesion characteristic indicators, and based on these characteristic indicators screen and evaluate, recommend similar lesion images to assist diagnosis.

Benefits of technology

It greatly improves the efficiency of ophthalmologists' picture reading and diagnosis. By quickly recommending similar OCT pictures, it reduces the time doctors spend searching for similar cases and improves the accuracy and efficiency of diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114782337B
    Figure CN114782337B
Patent Text Reader

Abstract

The present application proposes an artificial intelligence-based OCT image recommendation method, device, electronic device and storage medium. The artificial intelligence-based OCT image recommendation method includes: acquiring fundus OCT images, and preprocessing all acquired fundus OCT images to obtain an OCT test image set; inputting the images in the OCT test image set into a network detection model for lesion detection to obtain a lesion image set; constructing a lesion vector, and filtering the lesion image set based on the lesion vector to obtain an effective lesion image set; calculating the lesion feature index of each image in the effective lesion image set; and evaluating the images in the effective lesion image set based on the lesion feature index to obtain an OCT recommended image. The present application calculates the lesion feature index of the OCT image, constructs a vector based on the lesion feature index for operation to quickly recommend similar OCT images, thereby improving the efficiency of ophthalmologists in reading and diagnosing images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to an artificial intelligence-based OCT image recommendation method, device, electronic device and storage medium. Background Art

[0002] Optical Coherence Tomography (OCT) is an imaging technology used for fundus disease imaging examination, which has the characteristics of high resolution, non-contact and non-invasive. Due to the unique optical properties of the eyeball structure, OCT imaging technology has been widely used in the field of ophthalmology, especially in fundus disease examination.

[0003] Doctors often need to find previous cases with lesion characteristics that are similar to those of the current patient for comparative research. However, the amount of data from previous cases is huge. Especially when multiple lesions appear in the same image, it is difficult for doctors to quickly find appropriate previous cases for reference, thereby reducing the doctor's diagnostic efficiency. Summary of the invention

[0004] In view of the above, it is necessary to propose an artificial intelligence-based OCT image recommendation method, device, electronic device and storage medium to solve the technical problem of how to improve the diagnostic efficiency of doctors.

[0005] The present application provides an artificial intelligence-based OCT image recommendation method, the method comprising:

[0006] Obtaining fundus OCT images, and preprocessing all acquired fundus OCT images to obtain an OCT image set to be tested;

[0007] Inputting the images in the OCT image set to be tested into a network detection model to perform lesion detection to obtain lesion detection results, and taking all images in which lesions are detected in the OCT image set to be tested as a lesion image set, wherein the lesions in the lesion image set include multiple lesion types;

[0008] constructing a lesion vector according to the detection result of each lesion type, and screening the lesion image set to obtain a valid lesion image set based on the lesion vectors in the lesion image set and the lesion vectors of the patient to be tested;

[0009] Calculating the lesion feature index of each image in the effective lesion image set, wherein the lesion feature index includes an area feature index, a color feature index and a shape feature index;

[0010] The images in the effective lesion image set are evaluated based on the lesion characteristic index of each image in the effective lesion image set and the lesion characteristic index of the patient to be tested, and an OCT recommended image is obtained according to the evaluation result.

[0011] In some embodiments, the acquiring of fundus OCT images and preprocessing of all acquired fundus OCT images to obtain an OCT image set to be tested includes:

[0012] Scan the human eye with the OCT system to obtain fundus OCT images;

[0013] The fundus OCT image is downsampled, and the size of the downsampled fundus OCT image is corrected to obtain an OCT image to be tested, and all the OCT images to be tested are used as the OCT image set to be tested.

[0014] In some embodiments, inputting the image in the OCT image set to be tested into a network detection model to perform lesion detection to obtain a lesion detection result comprises:

[0015] Annotating the images in the OCT image set to be tested to obtain an OCT sample image;

[0016] A network detection model is trained based on the OCT sample images, and the trained network detection model is used to perform lesion detection on the images in the image set to be tested to obtain lesion detection results.

[0017] In some embodiments, constructing a lesion vector according to the detection result of each lesion type, and screening the lesion image set to obtain a valid lesion image set based on the lesion vector in the lesion image set and the lesion vector of the patient to be tested comprises:

[0018] constructing a lesion vector according to the detection result of each lesion type contained in each image in the lesion image set;

[0019] Vector multiplication operations are performed on the lesion vector of the patient to be tested and the lesion vector corresponding to each image in the lesion image set, and all images in the lesion image set corresponding to non-zero operation results are taken as a valid lesion image set.

[0020] In some embodiments, the calculating of the lesion feature index of each image in the effective lesion image set, wherein the lesion feature index includes an area feature index, a color feature index and a shape feature index, comprises:

[0021] Acquiring the area of ​​each lesion in each image in the effective lesion image set according to the connected domain analysis method as the area characteristic index;

[0022] Converting each image in the effective lesion image set into a grayscale image, and taking the average grayscale of each lesion in each image in the effective lesion image set as the color feature index;

[0023] Convex hull analysis is performed on each type of lesion in each image in the effective lesion image set to obtain shape feature indicators.

[0024] In some embodiments, performing convex hull analysis on each lesion in each image in the effective lesion image set to obtain shape feature indicators includes:

[0025] Performing convex hull analysis on each lesion in each image in the effective lesion image set to obtain a convex hull contour of the lesion;

[0026] Performing a similarity transformation on the lesion convex hull contour to obtain a transformed convex hull contour;

[0027] The similarities between the convex hull contour of the lesion of the patient to be tested and each transformed convex hull contour are calculated respectively, and the obtained similarity results are used as the shape feature index.

[0028] In some embodiments, the evaluating the images in the effective lesion image set based on the lesion characteristic index of each image in the effective lesion image set and the lesion characteristic index of the patient to be tested, and obtaining the OCT recommended image according to the evaluation result includes:

[0029] Constructing a corresponding area feature vector, color feature vector and shape feature vector respectively according to the area feature index, color feature index and shape feature index of each image in the effective image set;

[0030] Respectively calculating the cosine similarity between the area feature vector and the color feature vector of the patient to be tested and the area feature vector and the color feature vector of each image in the effective lesion image set to obtain an area feature similarity value and a color feature similarity value, and calculating the average value of each element in the shape feature vector of each image in the effective lesion image set as the shape feature similarity value;

[0031] The average values ​​of the area feature similarity value, color feature similarity value and shape feature similarity value corresponding to each image in the effective lesion image set are calculated, and the image corresponding to the maximum average value is selected as the OCT recommended image.

[0032] The embodiment of the present application also provides an artificial intelligence-based OCT image recommendation device, the device comprising:

[0033] An acquisition unit is used to acquire fundus OCT images and preprocess all acquired fundus OCT images to obtain an OCT image set to be tested;

[0034] A detection unit, configured to input the images in the OCT image set to be tested into a network detection model to perform lesion detection to obtain lesion detection results, and use all images in which lesions are detected in the OCT image set to be tested as a lesion image set, wherein the lesions in the lesion image set include multiple lesion types;

[0035] A screening unit, configured to construct a lesion vector according to the detection result of each lesion type, and screen the lesion image set to obtain a valid lesion image set based on the lesion vectors in the lesion image set and the lesion vectors of the patient to be tested;

[0036] A calculation unit, used for calculating the lesion characteristic index of each image in the effective lesion image set, wherein the lesion characteristic index includes an area characteristic index, a color characteristic index and a shape characteristic index;

[0037] An evaluation unit is used to evaluate the images in the effective lesion image set based on the lesion characteristic index of each image in the effective lesion image set and the lesion characteristic index of the patient to be tested, and obtain an OCT recommended image according to the evaluation result.

[0038] The present application also provides an electronic device, the electronic device comprising:

[0039] A memory storing at least one instruction;

[0040] A processor executes the instructions stored in the memory to implement the artificial intelligence-based OCT image recommendation method.

[0041] An embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the artificial intelligence-based OCT image recommendation method.

[0042] This application calculates the lesion feature index of the OCT image and constructs a vector based on the lesion feature index to perform operations to quickly recommend similar OCT images for auxiliary diagnosis, which can greatly improve the efficiency of ophthalmologists in reading and diagnosing. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a flowchart of a preferred embodiment of the artificial intelligence-based OCT image recommendation method involved in this application.

[0044] Figure 2 It is a functional module diagram of a preferred embodiment of the artificial intelligence-based OCT image recommendation device involved in this application.

[0045] Figure 3 It is a structural schematic diagram of an electronic device of a preferred embodiment of the artificial intelligence-based OCT image recommendation method involved in the present application. DETAILED DESCRIPTION

[0046] In order to more clearly understand the purpose, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other. In the following description, many specific details are set forth to facilitate a full understanding of the present application, and the embodiments described are only a part of the embodiments of the present application, rather than all of the embodiments.

[0047] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art to which the present application belongs. The terms used herein in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0049] The embodiment of the present application provides an artificial intelligence-based OCT image recommendation method, which can be applied to one or more electronic devices. The electronic device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a programmable gate array (Field-Programmable Gate Array, FPGA), a digital processor (Digital Signal Processor, DSP), an embedded device, etc.

[0050] An electronic device can be any electronic product that can interact with a customer, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.

[0051] The electronic device may also include a network device and / or a client device, wherein the network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud consisting of a large number of hosts or network servers based on cloud computing.

[0052] The network where the electronic device is located includes but is not limited to the Internet, wide area network, metropolitan area network, local area network, virtual private network (VPN), etc.

[0053] like Figure 1 FIG. 1 is a flowchart of a preferred embodiment of the OCT image recommendation method based on artificial intelligence of the present application. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0054] S10, acquiring fundus OCT images, and preprocessing all acquired fundus OCT images to obtain an OCT image set to be tested.

[0055] In an optional embodiment, the step of acquiring fundus OCT images and preprocessing all acquired fundus OCT images to obtain an OCT image set to be tested includes:

[0056] S101, scanning the human eye according to the OCT system to obtain an OCT image of the fundus;

[0057] S102, downsampling the fundus OCT image, and performing size correction on the downsampled fundus OCT image to obtain an OCT image to be tested, and all the OCT images to be tested are used as the OCT image set to be tested.

[0058] In this optional embodiment, the OCT system can use an ophthalmology-related medical alliance imaging platform, which can provide a one-stop intelligent inspection service for fundus color photos and OCT, and can connect to most models of fundus color photos and OCT equipment on the market. The core service of this system is to provide a fundus color photo and OCT platform information management and process integration service for ophthalmic diagnosis and treatment institutions, ophthalmic screening organizations, and the people who receive ophthalmic screening, including the reading of examination images, lesion disease identification and classification, risk warnings, ophthalmic electronic medical records, ophthalmic medical alliance referral services, typical case libraries, similar case recommendations and other auxiliary diagnosis and treatment tools for the commercial end; personalized reports, chronic disease predictions, and eye health popularization for consumers.

[0059] In this optional embodiment, the lesion extraction device based on fundus OCT images obtains original fundus optical coherence tomography (OCT) images, wherein the original fundus OCT images are directly obtained by the OCT device without any processing.

[0060] In this optional embodiment, OCT is currently divided into two categories: time domain optical coherence tomography (TD-OCT) and frequency domain optical coherence tomography (FD-OCT). Time domain OCT is to superimpose and interfere the light signal reflected from the tissue at the same time with the light signal reflected from the reference reflector, and then form an image. In frequency domain OCT, the reference reflector of the reference arm is fixed, and the interference of signals is achieved by changing the frequency of the light wave of the light source. The embodiment of the present invention can obtain the original fundus OCT image through a variety of methods, and can be obtained by TD-OCT method, and can also be obtained by FD-OCT method. The specific acquisition method is not limited here.

[0061] In this optional embodiment, the acquired fundus OCT image is downsampled, and the size of the image obtained after the downsampling is corrected. For example, the image is downsampled from the original resolution of 1024*640 to 512*320, and the upper and lower black borders are added to obtain a 512*512 OCT image as the image to be detected, and all the images to be detected are used as the OCT image set to be detected.

[0062] In this way, the OCT images can be uniformly collected and processed according to the OCT system to improve the efficiency of OCT image acquisition. At the same time, the OCT images can be processed in a unified size to facilitate obtaining a unified size that meets the requirements of the subsequent network detection model and improve the detection efficiency.

[0063] S11, input the images in the OCT image set to the network detection model to perform lesion detection to obtain lesion detection results, and use all images in the OCT image set with lesions detected as a lesion image set, wherein the lesions in the lesion image set include multiple lesion types.

[0064] In an optional embodiment, inputting the image in the OCT image set to be tested into a network detection model to perform lesion detection to obtain a lesion detection result includes:

[0065] S111, annotating the images in the OCT image set to be tested to obtain an OCT sample image;

[0066] S112, training a network detection model based on the OCT sample image, and using the trained network detection model to perform lesion detection on the images in the image set to be tested to obtain lesion detection results.

[0067] In this optional embodiment, the present scheme selects 17 categories of fundus lesion sample images as the OCT image set to be tested for training and detection of the network detection model, and the 17 categories of fundus lesions include: epiretinal membrane, vitreomacular traction, full-thickness macular holes, focal high-reflection points, diffuse high-reflection areas, intraretinal fluid, subretinal fluid, retinal schisis, posterior scleral staphyloma, drusen, retinal pigment epithelial atrophy, retinal pigment epithelial detachment, choroidal neovascularization, choroidal morphological abnormalities, other retinal abnormalities, lamellar or pseudo-macular holes, and irregular or missing ellipsoidal bands, and there is at least one category of lesions in each sample image.

[0068] In this optional embodiment, the coordinates of the upper left corner of the lesion box marked in the image of the OCT image set to be tested, as well as the length, width and category label are used as given values ​​of the model input sample for training, and corresponding enhancement processing (including cropping, scaling, rotation, contrast change, etc.) is performed on the image and annotation to improve the generalization ability of the model training.

[0069] In this optional embodiment, different categories of lesions are annotated with different label values ​​as training samples, such as natural numbers such as 1, 2, 3, etc., and areas in the image that do not contain lesions are labeled with label 0. They can be trained through a semantic segmentation network so that different categories of lesions in the output results correspond to different colors.

[0070] In this optional embodiment, the labeled training samples are divided into a training set and a test set in proportion, wherein the sample ratio of the training set is 80%, and the sample ratio of the test set is 20%. The training samples in the training set and the corresponding labels are sent to the network detection model for training, and the accuracy of the network detection model is tested using the test samples in the test set. If the accuracy is greater than or equal to the preset accuracy, the training ends. If the accuracy is less than the preset accuracy, the above training steps are continued, wherein the preset accuracy can be set to 90% or 95%. The loss function used in the training process is the cross entropy loss function, and the activation function uses the sigmoid function.

[0071] In this optional embodiment, a trained network detection model can be used to perform lesion detection on the images in the test image set to obtain lesion detection results, and all images in which lesions are detected in the OCT test image set are used as a lesion image set, and the lesions in the lesion image set include multiple lesion types.

[0072] In this way, only one network detection model can be used to identify multiple lesion types in an eye OCT image, without the need for multiple detection models to separately identify multiple lesion types, reducing time loss and computing resource overhead, improving recognition and prediction efficiency, and saving costs.

[0073] S12, constructing a lesion vector according to the detection result of each lesion type, and screening the lesion image set to obtain a valid lesion image set based on the lesion vectors in the lesion image set and the lesion vectors of the patient to be tested.

[0074] In an optional embodiment, constructing a lesion vector according to the detection result of each lesion type, and screening the lesion image set to obtain a valid lesion image set based on the lesion vector in the lesion image set and the lesion vector of the patient to be tested comprises:

[0075] S121, constructing a lesion vector according to the detection result of each lesion type contained in each image in the lesion image set;

[0076] S122, performing vector multiplication operations on the lesion vector of the patient to be tested and the lesion vector corresponding to each image in the lesion image set, and taking all images in the lesion image set whose operation results are not 0 as a valid lesion image set.

[0077] In this optional embodiment, the detection results of each lesion type contained in each image in the lesion image set include two types: presence and absence, and the detection results of various lesion types are represented by 17-bit binary numbers and arranged into a 17-dimensional vector in the following fixed order, where the value 0 in each dimension represents the absence of the corresponding type of lesion, which is negative, and the value 1 represents the presence of the corresponding type of lesion, which is positive.

[0078] In this optional embodiment, the order of lesions in the lesion vector is: epiretinal membrane, vitreomacular traction, full-thickness macular hole, focal high-reflection points, diffuse high-reflection areas, intraretinal fluid, subretinal fluid, retinoschisis, posterior scleral staphyloma, drusen, retinal pigment epithelial atrophy, retinal pigment epithelial detachment, choroidal neovascularization, choroidal morphological abnormalities, other retinal abnormalities, lamellar or pseudo-macular holes, and irregular or missing ellipsoidal bands.

[0079] For example, if the sample is labeled with four types of epiretinal membrane, vitreous macular traction, full-thickness macular hole, and focal high-reflection point, a four-dimensional label vector is generated, and each vector element represents a lesion. If the generated lesion vector is [0,0,1,1], it means that the corresponding epiretinal membrane and vitreous macular traction are negative, and the full-thickness macular hole and focal high-reflection point are positive.

[0080] In this optional embodiment, vector multiplication operations are performed on the lesion vector of the patient to be tested and the lesion vector corresponding to each image in the lesion image set, and all images in the lesion image set whose operation results are not 0 are taken as a valid lesion image set.

[0081] Exemplarily, the lesion vector of the patient to be tested is (1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0), and the lesion vector corresponding to image A in the lesion image set is (1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1), then the result of vector multiplication of the two vectors is (1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0), Since not all elements in the calculation result are 0, image A is classified into the valid lesion image set; the lesion vector corresponding to image B in the lesion image set is (0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1), and the calculation result after multiplication with the lesion vector of the patient to be tested is (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), that is, the final calculation result is 0, so image B is filtered out.

[0082] In this way, by representing the detection results of different types of lesions as binary vectors for calculation, OCT images with the same lesion type as the patient to be tested can be quickly screened out, reducing redundant OCT images and improving the calculation efficiency of subsequent processes.

[0083] S13, calculating the lesion feature index of each image in the effective lesion image set, wherein the lesion feature index includes an area feature index, a color feature index and a shape feature index.

[0084] In an optional embodiment, the calculating of the lesion feature index of each image in the effective lesion image set, wherein the lesion feature index includes an area feature index, a color feature index and a shape feature index, comprises:

[0085] S131, obtaining the area of ​​each lesion in each image in the effective lesion image set according to the connected domain analysis method as the area characteristic index;

[0086] S132, converting each image in the effective lesion image set into a grayscale image, and taking the average grayscale of each lesion in each image in the effective lesion image set as the color feature index;

[0087] S133, performing convex hull analysis on each type of lesion in each image in the effective lesion image set to obtain shape feature indicators.

[0088] In this optional embodiment, the number of pixels of each type of lesion in each image in the effective lesion image set can be calculated one by one by a connected domain analysis method, so as to obtain the corresponding area as the area feature index. Wherein, a connected domain is a set of adjacent pixels with the same pixel value, and a mark is set for each connected domain to complete the connected domain analysis.

[0089] In this optional embodiment, each image in the effective lesion image set can be converted into a grayscale image with a grayscale range of [0-255], and then the average grayscale of each lesion in each image in the effective lesion image set is calculated as the color feature index.

[0090] In this optional embodiment, a convex hull analysis can be performed on each type of lesion in each image in the effective lesion image set to obtain the convex hull contour of the lesion, wherein a polygon is made through certain points so that the polygon can "enclose" all the points. When this polygon is a convex polygon, we call it a "convex hull".

[0091] In this optional embodiment, since the convex hull contour shape of each patient is different, in order to obtain a convex hull contour that is most similar to the convex hull contour shape of the patient to be tested, a similarity transformation algorithm is first used to perform a similarity transformation on the lesion convex hull contour to obtain a transformed convex hull contour, wherein the similarity transformation of a graphic refers to a graphic that maintains an unchanged shape (size, direction and position are variable) during the change process from one graphic to another.

[0092] In this optional embodiment, the similarity between the convex hull contour of the lesion of the patient to be tested and each transformed convex hull contour can be calculated by a normalized template matching algorithm, and the obtained similarity result is used as the shape feature index. Among them, the normalized cross-correlation matching algorithm uses the convex hull contour of the patient to be tested as a template, traverses each possible position in each transformed convex hull contour, and compares whether each position is "similar" to the template. The value range is [0,1], and the closer to 1, the higher the similarity.

[0093] Exemplarily, the patient to be tested has three kinds of lesions: epiretinal membrane, vitreomacular traction, and full-thickness macular hole. The image P in the effective lesion image set also has three kinds of lesions: epiretinal membrane, vitreomacular traction, and full-thickness macular hole. Suppose the similarity of the lesion convex hull contours corresponding to each lesion category is calculated by the normalized template matching algorithm, and the calculation results are 0.3, 0.6, and 0.2, then 0.3, 0.6, and 0.2 are used as the shape feature indicators of the corresponding lesion categories.

[0094] In this way, the lesion characteristic index of the OCT image can be calculated, and a vector can be constructed in the subsequent process to perform calculations to evaluate the OCT image, thereby improving the accuracy of the evaluation.

[0095] S14, evaluating the images in the effective lesion image set based on the lesion characteristic index of each image in the effective lesion image set and the lesion characteristic index of the patient to be tested, and acquiring an OCT recommended image according to the evaluation result.

[0096] In an optional embodiment, the evaluating the images in the effective lesion image set based on the lesion characteristic index of each image in the effective lesion image set and the lesion characteristic index of the patient to be tested, and obtaining the OCT recommended image according to the evaluation result includes:

[0097] S141, constructing a corresponding area feature vector, color feature vector and shape feature vector respectively according to the area feature index, color feature index and shape feature index of each image in the valid image set;

[0098] S142, respectively calculating the cosine similarity between the area feature vector and the color feature vector of the patient to be tested and the area feature vector and the color feature vector of each image in the effective lesion image set to obtain an area feature similarity value and a color feature similarity value, and calculating the average value of each element in the shape feature vector of each image in the effective lesion image set as the shape feature similarity value;

[0099] S143, calculating the average values ​​of the area feature similarity value, the color feature similarity value and the shape feature similarity value corresponding to each image in the effective lesion image set, and selecting the image corresponding to the maximum average value as the OCT recommended image.

[0100] In this optional embodiment, the corresponding area feature vector, color feature vector and shape feature vector may be constructed respectively according to the area feature index, color feature index and shape feature index of each type of lesion contained in each image in the effective lesion image set.

[0101] In this optional embodiment, since the shape feature index is obtained based on the similarity between the convex hull contour of the lesion in each image in the valid image set and the convex hull contour of the lesion in the image of the patient to be tested, the shape feature index is shared by each image in the valid image set and the image of the patient to be tested. When constructing the shape feature vector, if the corresponding category of lesions in each image in the valid image set and the image of the patient to be tested does not exist, the shape feature index of the corresponding category of lesions is 1.

[0102] Exemplarily, in image K in the valid image set, only the focal epiretinal membrane is positive, and in the patient to be tested, only the focal vitreomacular traction is positive, then the corresponding shape feature index vectors are (0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1).

[0103] For example, in the image C of the effective lesion image set, only four types of lesions, namely, epiretinal membrane, vitreous macular traction, full-thickness macular hole, and focal high-reflection point, are positive, and the other types of lesions are negative. The area characteristic indices corresponding to the four types of positive lesions are 2, 6, 8, and 5, the color characteristic indices are 28, 39, 58, and 66, and the shape characteristic indices are 0.4, 0.5, 0.2, and 0.6; while the patient to be tested has only epiretinal membrane, full-thickness macular hole, and focal high-reflection point. If the shooting point and choroidal morphology abnormalities are positive, the area feature vector, color feature vector and shape feature vector corresponding to image C are (2, 6, 8, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (28, 39, 58, 66, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (0.4, 0, 0.2, 0.6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1).

[0104] In this optional embodiment, the cosine similarity algorithm can be used to calculate the cosine similarities between the area feature vector and color feature vector of the patient to be tested and the area feature vector and color feature vector of each image in the effective lesion image set to obtain the area feature similarity value and the color feature similarity value, and the average value of each element in the shape feature vector of each image in the effective lesion image set is calculated as the shape feature similarity value.

[0105] Exemplarily, the area feature vector and color feature vector of the patient to be tested are (3, 0, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0) and (22, 0, 53, 11, 0, 0, 0, 0, 0, 0, 0, 0, 89, 0, 0, 0). Then, the corresponding area feature similarity values ​​and color feature similarity values ​​can be obtained by calculating the area feature vector and color feature vector of image C through cosine similarity. At the same time, the average value of each element in the shape feature vector of image C is calculated as the shape feature similarity value, that is, 0.4+0+0.2+0.6+1+1+1+1+1+1+1+1+1+1+1+1+1 / 17=0.84.

[0106] In this optional embodiment, the average values ​​of the area feature similarity value, color feature similarity value and shape feature similarity value corresponding to each image in the effective lesion image set are calculated, and the image corresponding to the maximum average value is selected as the OCT recommended image.

[0107] Exemplarily, the area feature similarity value, color feature similarity value and shape feature similarity value corresponding to image D in the effective lesion image set are 0.6, 0.2 and 0.4 respectively, and the average value is 0.4. After calculating the average values ​​of the area feature similarity value, color feature similarity value and shape feature similarity value corresponding to each image in the effective lesion image set, the image corresponding to the largest average value is selected as the OCT recommended image.

[0108] In this way, the images in the effective lesion image set are quantitatively evaluated through the obtained lesion characteristic index and the lesion image of the patient to be tested, so as to determine the OCT image most similar to the OCT image of the patient to be tested as the OCT recommended image, effectively improving the accuracy of obtaining the OCT recommended image.

[0109] See also Figure 2 , Figure 2 1 is a functional module diagram of a preferred embodiment of the artificial intelligence-based OCT image recommendation device of the present application. The artificial intelligence-based OCT image recommendation device 11 includes an acquisition unit 110, a detection unit 111, a screening unit 112, a calculation unit 113, and an evaluation unit 114. The module / unit referred to in the present application refers to a series of computer-readable instruction segments that can be executed by the processor 13 and can complete fixed functions, which are stored in the memory 12. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.

[0110] In an optional embodiment, the acquisition unit 110 is used to acquire fundus OCT images, and preprocess all acquired fundus OCT images to obtain an OCT image set to be tested.

[0111] In an optional embodiment, the step of acquiring fundus OCT images and preprocessing all acquired fundus OCT images to obtain an OCT image set to be tested includes:

[0112] Scan the human eye with the OCT system to obtain fundus OCT images;

[0113] The fundus OCT image is downsampled, and the size of the downsampled fundus OCT image is corrected to obtain an OCT image to be tested, and all the OCT images to be tested are used as the OCT image set to be tested.

[0114] In this optional embodiment, the OCT system can use an ophthalmology-related medical alliance imaging platform, which can provide a one-stop intelligent inspection service for fundus color photos and OCT, and can connect to most models of fundus color photos and OCT equipment on the market. The core service of this system is to provide a fundus color photo and OCT platform information management and process integration service for ophthalmic diagnosis and treatment institutions, ophthalmic screening organizations, and the people who receive ophthalmic screening, including the reading of examination images, lesion disease identification and classification, risk warnings, ophthalmic electronic medical records, ophthalmic medical alliance referral services, typical case libraries, similar case recommendations and other auxiliary diagnosis and treatment tools for the commercial end; personalized reports, chronic disease predictions, and eye health popularization for consumers.

[0115] In this optional embodiment, the lesion extraction device based on fundus OCT images obtains original fundus optical coherence tomography (OCT) images, wherein the original fundus OCT images are directly obtained by the OCT device without any processing.

[0116] In this optional embodiment, OCT is currently divided into two categories: time domain optical coherence tomography (TD-OCT) and frequency domain optical coherence tomography (FD-OCT). Time domain OCT is to superimpose and interfere the light signal reflected from the tissue at the same time with the light signal reflected from the reference reflector, and then form an image. In frequency domain OCT, the reference reflector of the reference arm is fixed, and the interference of signals is achieved by changing the frequency of the light wave of the light source. The embodiment of the present invention can obtain the original fundus OCT image through a variety of methods, and can be obtained by TD-OCT method, and can also be obtained by FD-OCT method. The specific acquisition method is not limited here.

[0117] In this optional embodiment, the acquired fundus OCT image is downsampled, and the size of the image obtained after the downsampling is corrected. For example, the image is downsampled from the original resolution of 1024*640 to 512*320, and the upper and lower black borders are added to obtain a 512*512 OCT image as the image to be detected, and all the images to be detected are used as the OCT image set to be detected.

[0118] In an optional embodiment, the detection unit 111 is used to input the images in the OCT image set to be tested into a network detection model to perform lesion detection to obtain a lesion detection result, and use all images in the OCT image set to be tested in which lesions are detected as a lesion image set, wherein the lesions in the lesion image set include multiple lesion types.

[0119] In an optional embodiment, inputting the image in the OCT image set to be tested into a network detection model to perform lesion detection to obtain a lesion detection result includes:

[0120] Annotating the images in the OCT image set to be tested to obtain an OCT sample image;

[0121] A network detection model is trained based on the OCT sample images, and the trained network detection model is used to perform lesion detection on the images in the image set to be tested to obtain lesion detection results.

[0122] In this optional embodiment, the present scheme selects 17 categories of fundus lesion sample images as the OCT image set to be tested for training and detection of the network detection model, and the 17 categories of fundus lesions include: epiretinal membrane, vitreomacular traction, full-thickness macular holes, focal high-reflection points, diffuse high-reflection areas, intraretinal fluid, subretinal fluid, retinal schisis, posterior scleral staphyloma, drusen, retinal pigment epithelial atrophy, retinal pigment epithelial detachment, choroidal neovascularization, choroidal morphological abnormalities, other retinal abnormalities, lamellar or pseudo-macular holes, and irregular or missing ellipsoidal bands, and there is at least one category of lesions in each sample image.

[0123] In this optional embodiment, the coordinates of the upper left corner of the lesion box marked in the image of the OCT image set to be tested, as well as the length, width and category label are used as given values ​​of the model input sample for training, and corresponding enhancement processing (including cropping, scaling, rotation, contrast change, etc.) is performed on the image and annotation to improve the generalization ability of the model training.

[0124] In this optional embodiment, different categories of lesions are annotated with different label values ​​as training samples, such as natural numbers such as 1, 2, 3, etc., and areas in the image that do not contain lesions are labeled with label 0. They can be trained through a semantic segmentation network so that different categories of lesions in the output results correspond to different colors.

[0125] In this optional embodiment, the labeled training samples are divided into a training set and a test set in proportion, wherein the sample ratio of the training set is 80%, and the sample ratio of the test set is 20%. The training samples in the training set and the corresponding labels are sent to the network detection model for training, and the accuracy of the network detection model is tested using the test samples in the test set. If the accuracy is greater than or equal to the preset accuracy, the training ends. If the accuracy is less than the preset accuracy, the above training steps are continued, wherein the preset accuracy can be set to 90% or 95%. The loss function used in the training process is the cross entropy loss function, and the activation function uses the sigmoid function.

[0126] In this optional embodiment, a trained network detection model can be used to perform lesion detection on the images in the test image set to obtain lesion detection results, and all images in which lesions are detected in the OCT test image set are used as a lesion image set, and the lesions in the lesion image set include multiple lesion types.

[0127] In an optional embodiment, the screening unit 112 is used to construct a lesion vector according to the detection results of each lesion type, and screen the lesion image set to obtain a valid lesion image set based on the lesion vectors in the lesion image set and the lesion vectors of the patient to be tested.

[0128] In an optional embodiment, constructing a lesion vector according to the detection result of each lesion type, and screening the lesion image set to obtain a valid lesion image set based on the lesion vector in the lesion image set and the lesion vector of the patient to be tested comprises:

[0129] constructing a lesion vector according to the detection result of each lesion type contained in each image in the lesion image set;

[0130] Vector multiplication operations are performed on the lesion vector of the patient to be tested and the lesion vector corresponding to each image in the lesion image set, and all images in the lesion image set corresponding to non-zero operation results are taken as a valid lesion image set.

[0131] In this optional embodiment, the detection results of each lesion type contained in each image in the lesion image set include two types: presence and absence, and the detection results of various lesion types are represented by 17-bit binary numbers and arranged into a 17-dimensional vector in the following fixed order, where the value 0 in each dimension represents the absence of the corresponding type of lesion, which is negative, and the value 1 represents the presence of the corresponding type of lesion, which is positive.

[0132] In this optional embodiment, the order of lesions in the lesion vector is: epiretinal membrane, vitreomacular traction, full-thickness macular hole, focal high-reflection points, diffuse high-reflection areas, intraretinal fluid, subretinal fluid, retinoschisis, posterior scleral staphyloma, drusen, retinal pigment epithelial atrophy, retinal pigment epithelial detachment, choroidal neovascularization, choroidal morphological abnormalities, other retinal abnormalities, lamellar or pseudo-macular holes, and irregular or missing ellipsoidal bands.

[0133] For example, if the sample is labeled with four types of epiretinal membrane, vitreous macular traction, full-thickness macular hole, and focal high-reflection point, a four-dimensional label vector is generated, and each vector element represents a lesion. If the generated lesion vector is [0,0,1,1], it means that the corresponding epiretinal membrane and vitreous macular traction are negative, and the full-thickness macular hole and focal high-reflection point are positive.

[0134] In this optional embodiment, vector multiplication operations are performed on the lesion vector of the patient to be tested and the lesion vector corresponding to each image in the lesion image set, and all images in the lesion image set whose operation results are not 0 are taken as a valid lesion image set.

[0135] Exemplarily, the lesion vector of the patient to be tested is (1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0), and the lesion vector corresponding to image A in the lesion image set is (1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1), then the result of vector multiplication of the two vectors is (1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0), Since not all elements in the calculation result are 0, image A is classified into the valid lesion image set; the lesion vector corresponding to image B in the lesion image set is (0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1), and the calculation result after multiplication with the lesion vector of the patient to be tested is (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), that is, the final calculation result is 0, so image B is filtered out.

[0136] In an optional embodiment, the calculation unit 113 is used to calculate the lesion feature index of each image in the effective lesion image set, and the lesion feature index includes an area feature index, a color feature index and a shape feature index.

[0137] In an optional embodiment, the calculating of the lesion feature index of each image in the effective lesion image set, wherein the lesion feature index includes an area feature index, a color feature index and a shape feature index, comprises:

[0138] Acquiring the area of ​​each lesion in each image in the effective lesion image set according to the connected domain analysis method as the area characteristic index;

[0139] Converting each image in the effective lesion image set into a grayscale image, and taking the average grayscale of each lesion in each image in the effective lesion image set as the color feature index;

[0140] Convex hull analysis is performed on each type of lesion in each image in the effective lesion image set to obtain shape feature indicators.

[0141] In this optional embodiment, the number of pixels of each type of lesion in each image in the effective lesion image set can be calculated one by one by a connected domain analysis method, so as to obtain the corresponding area as the area feature index. Wherein, a connected domain is a set of adjacent pixels with the same pixel value, and a mark is set for each connected domain to complete the connected domain analysis.

[0142] In this optional embodiment, each image in the effective lesion image set can be converted into a grayscale image with a grayscale range of [0-255], and then the average grayscale of each lesion in each image in the effective lesion image set is calculated as the color feature index.

[0143] In this optional embodiment, a convex hull analysis can be performed on each type of lesion in each image in the effective lesion image set to obtain the convex hull contour of the lesion, wherein a polygon is made through certain points so that the polygon can "enclose" all the points. When this polygon is a convex polygon, we call it a "convex hull".

[0144] In this optional embodiment, since the convex hull contour shape of each patient is different, in order to obtain a convex hull contour that is most similar to the convex hull contour shape of the patient to be tested, a similarity transformation algorithm is first used to perform a similarity transformation on the lesion convex hull contour to obtain a transformed convex hull contour, wherein the similarity transformation of a graphic refers to a graphic that maintains an unchanged shape (size, direction and position are variable) during the change process from one graphic to another.

[0145] In this optional embodiment, the similarity between the convex hull contour of the lesion of the patient to be tested and each transformed convex hull contour can be calculated by a normalized template matching algorithm, and the obtained similarity result is used as the shape feature index. Among them, the normalized cross-correlation matching algorithm uses the convex hull contour of the patient to be tested as a template, traverses each possible position in each transformed convex hull contour, and compares whether each position is "similar" to the template. The value range is [0,1], and the closer to 1, the higher the similarity.

[0146] Exemplarily, the patient to be tested has three kinds of lesions: epiretinal membrane, vitreomacular traction, and full-thickness macular hole. The image P in the effective lesion image set also has three kinds of lesions: epiretinal membrane, vitreomacular traction, and full-thickness macular hole. Suppose the similarity of the lesion convex hull contours corresponding to each lesion category is calculated by the normalized template matching algorithm, and the calculation results are 0.3, 0.6, and 0.2, then 0.3, 0.6, and 0.2 are used as the shape feature indicators of the corresponding lesion categories.

[0147] In an optional embodiment, the evaluation unit 114 is used to evaluate the images in the effective lesion image set based on the lesion characteristic index of each image in the effective lesion image set and the lesion characteristic index of the patient to be tested, and obtain the OCT recommended image according to the evaluation result.

[0148] In an optional embodiment, the evaluating the images in the effective lesion image set based on the lesion characteristic index of each image in the effective lesion image set and the lesion characteristic index of the patient to be tested, and obtaining the OCT recommended image according to the evaluation result includes:

[0149] Constructing a corresponding area feature vector, color feature vector and shape feature vector respectively according to the area feature index, color feature index and shape feature index of each image in the effective image set;

[0150] Respectively calculating the cosine similarity between the area feature vector and the color feature vector of the patient to be tested and the area feature vector and the color feature vector of each image in the effective lesion image set to obtain an area feature similarity value and a color feature similarity value, and calculating the average value of each element in the shape feature vector of each image in the effective lesion image set as the shape feature similarity value;

[0151] The average values ​​of the area feature similarity value, color feature similarity value and shape feature similarity value corresponding to each image in the effective lesion image set are calculated, and the image corresponding to the maximum average value is selected as the OCT recommended image.

[0152] In this optional embodiment, the corresponding area feature vector, color feature vector and shape feature vector may be constructed respectively according to the area feature index, color feature index and shape feature index of each type of lesion contained in each image in the effective lesion image set.

[0153] In this optional embodiment, since the shape feature index is obtained based on the similarity between the convex hull contour of the lesion in each image in the valid image set and the convex hull contour of the lesion in the image of the patient to be tested, the shape feature index is shared by each image in the valid image set and the image of the patient to be tested. When constructing the shape feature vector, if the corresponding category of lesions in each image in the valid image set and the image of the patient to be tested does not exist, the shape feature index of the corresponding category of lesions is 1.

[0154] Exemplarily, in image K in the valid image set, only the focal epiretinal membrane is positive, and in the patient to be tested, only the focal vitreomacular traction is positive, then the corresponding shape feature index vectors are (0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1).

[0155] For example, in the image C of the effective lesion image set, only four types of lesions, namely, epiretinal membrane, vitreous macular traction, full-thickness macular hole, and focal high-reflection point, are positive, and the other types of lesions are negative. The area characteristic indices corresponding to the four types of positive lesions are 2, 6, 8, and 5, the color characteristic indices are 28, 39, 58, and 66, and the shape characteristic indices are 0.4, 0.5, 0.2, and 0.6; while the patient to be tested has only epiretinal membrane, full-thickness macular hole, and focal high-reflection point. If the shooting point and choroidal morphology abnormalities are positive, the area feature vector, color feature vector and shape feature vector corresponding to image C are (2, 6, 8, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (28, 39, 58, 66, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (0.4, 0, 0.2, 0.6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1).

[0156] In this optional embodiment, the cosine similarity algorithm can be used to calculate the cosine similarities between the area feature vector and color feature vector of the patient to be tested and the area feature vector and color feature vector of each image in the effective lesion image set to obtain the area feature similarity value and the color feature similarity value, and the average value of each element in the shape feature vector of each image in the effective lesion image set is calculated as the shape feature similarity value.

[0157] Exemplarily, the area feature vector and color feature vector of the patient to be tested are (3, 0, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0) and (22, 0, 53, 11, 0, 0, 0, 0, 0, 0, 0, 0, 89, 0, 0, 0). Then, the corresponding area feature similarity values ​​and color feature similarity values ​​can be obtained by calculating the area feature vector and color feature vector of image C through cosine similarity. At the same time, the average value of each element in the shape feature vector of image C is calculated as the shape feature similarity value, that is, 0.4+0+0.2+0.6+1+1+1+1+1+1+1+1+1+1+1+1+1 / 17=0.84.

[0158] In this optional embodiment, the average values ​​of the area feature similarity value, color feature similarity value and shape feature similarity value corresponding to each image in the effective lesion image set are calculated, and the image corresponding to the maximum average value is selected as the OCT recommended image.

[0159] Exemplarily, the area feature similarity value, color feature similarity value and shape feature similarity value corresponding to image D in the effective lesion image set are 0.6, 0.2 and 0.4 respectively, and the average value is 0.4. After calculating the average values ​​of the area feature similarity value, color feature similarity value and shape feature similarity value corresponding to each image in the effective lesion image set, the image corresponding to the largest average value is selected as the OCT recommended image.

[0160] It can be seen from the above technical solutions that the present application can calculate the lesion feature index of the OCT image, and then perform operations based on the vector constructed by the lesion feature index to quickly recommend similar OCT images for auxiliary diagnosis, thereby greatly improving the ophthalmologist's reading and diagnosis efficiency.

[0161] See also Figure 3 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 1 includes a memory 12 and a processor 13. The memory 12 is used to store computer-readable instructions, and the processor 13 is used to execute the computer-readable instructions stored in the memory to implement the artificial intelligence-based OCT image recommendation method described in any of the above embodiments.

[0162] In an optional embodiment, the electronic device 1 further includes a bus, a computer program stored in the memory 12 and executable on the processor 13, such as an artificial intelligence-based OCT image recommendation program.

[0163] Figure 3 Only the electronic device 1 having the memory 12 and the processor 13 is shown, and those skilled in the art can understand that Figure 3 The structure shown does not constitute a limitation on the electronic device 1 , and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0164] Combination Figure 1 The memory 12 in the electronic device 1 stores a plurality of computer-readable instructions to implement an artificial intelligence-based OCT image recommendation method, and the processor 13 can execute the plurality of instructions to implement:

[0165] Obtaining fundus OCT images, and preprocessing all acquired fundus OCT images to obtain an OCT image set to be tested;

[0166] Inputting the images in the OCT image set to be tested into a network detection model to perform lesion detection to obtain lesion detection results, and taking all images in which lesions are detected in the OCT image set to be tested as a lesion image set, wherein the lesions in the lesion image set include multiple lesion types;

[0167] constructing a lesion vector according to the detection result of each lesion type, and screening the lesion image set to obtain a valid lesion image set based on the lesion vectors in the lesion image set and the lesion vectors of the patient to be tested;

[0168] Calculating the lesion feature index of each image in the effective lesion image set, wherein the lesion feature index includes an area feature index, a color feature index and a shape feature index;

[0169] The images in the effective lesion image set are evaluated based on the lesion characteristic index of each image in the effective lesion image set and the lesion characteristic index of the patient to be tested, and an OCT recommended image is obtained according to the evaluation result.

[0170] Specifically, the specific implementation method of the processor 13 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0171] Those skilled in the art will appreciate that the schematic diagram is merely an example of the electronic device 1 and does not constitute a limitation on the electronic device 1. The electronic device 1 may be a bus structure or a star structure. The electronic device 1 may also include more or less other hardware or software than shown in the diagram, or a different arrangement of components. For example, the electronic device 1 may also include input and output devices, network access devices, etc.

[0172] It should be noted that the electronic device 1 is only an example, and other existing or future electronic products that are suitable for the present application should also be included in the protection scope of the present application and included here by reference.

[0173] Among them, the memory 12 includes at least one type of readable storage medium, and the readable storage medium can be non-volatile or volatile. The readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 12 can be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 12 can also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. The memory 12 can not only be used to store application software and various types of data installed on the electronic device 1, such as the code of the artificial intelligence-based OCT image recommendation program, but also can be used to temporarily store data that has been output or is to be output.

[0174] In some embodiments, the processor 13 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 13 is the control core (Control Unit) of the electronic device 1, and uses various interfaces and lines to connect various components of the entire electronic device 1, and executes or executes programs or modules stored in the memory 12 (for example, executing an artificial intelligence-based OCT image recommendation program, etc.), and calls data stored in the memory 12 to execute various functions of the electronic device 1 and process data.

[0175] The processor 13 executes the operating system of the electronic device 1 and various installed applications. The processor 13 executes the applications to implement the steps in the above-mentioned embodiments of the artificial intelligence-based OCT image recommendation method, for example Figure 1 Steps shown.

[0176] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to complete the present application. The one or more modules / units may be a series of computer-readable instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the electronic device 1. For example, the computer program may be divided into an acquisition unit 110, a detection unit 111, a screening unit 112, a calculation unit 113, and an evaluation unit 114.

[0177] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, and includes a number of instructions for enabling a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to execute a part of the artificial intelligence-based OCT image recommendation method described in each embodiment of the present application.

[0178] If the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also instruct the relevant hardware devices to complete through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented.

[0179] The computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory and other memory, etc.

[0180] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.

[0181] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0182] The bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. Figure 3 Only one arrow is used in the figure, but it does not mean that there is only one bus or one type of bus. The bus is configured to realize the connection and communication between the memory 12 and at least one processor 13, etc.

[0183] An embodiment of the present application also provides a computer-readable storage medium (not shown), in which computer-readable storage medium is stored computer-readable instructions, and the computer-readable instructions are executed by a processor in an electronic device to implement the artificial intelligence-based OCT image recommendation method described in any of the above embodiments.

[0184] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0185] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0186] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0187] In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the specification can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any specific order.

[0188] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.

Claims

1. An artificial intelligence-based OCT image recommendation method, characterized in that: The method comprises: Obtaining fundus OCT images, and preprocessing all acquired fundus OCT images to obtain an OCT image set to be tested; Inputting the images in the OCT image set to be tested into a network detection model to perform lesion detection to obtain lesion detection results, and taking all images in which lesions are detected in the OCT image set to be tested as a lesion image set, wherein the lesions in the lesion image set include multiple lesion types; Constructing a lesion vector according to the detection result of each lesion type, and screening the lesion image set based on the lesion vectors in the lesion image set and the lesion vectors of the patient to be tested to obtain a valid lesion image set, including: constructing a lesion vector according to the detection result of each lesion type contained in each image in the lesion image set; performing vector multiplication operations on the lesion vector of the patient to be tested and the lesion vector corresponding to each image in the lesion image set, respectively, and taking all images in the lesion image set corresponding to non-zero operation results as the valid lesion image set; Calculating the lesion feature index of each image in the effective lesion image set, wherein the lesion feature index includes an area feature index, a color feature index and a shape feature index; The images in the effective lesion image set are evaluated based on the lesion characteristic index of each image in the effective lesion image set and the lesion characteristic index of the patient to be tested, and an OCT recommended image is obtained according to the evaluation result.

2. The artificial intelligence-based OCT image recommendation method according to claim 1, characterized in that: The method of acquiring fundus OCT images and preprocessing all acquired fundus OCT images to obtain an OCT image set to be tested includes: Scan the human eye with the OCT system to obtain fundus OCT images; The fundus OCT image is downsampled, and the size of the downsampled fundus OCT image is corrected to obtain an OCT image to be tested, and all the OCT images to be tested are used as the OCT image set to be tested.

3. The artificial intelligence-based OCT image recommendation method according to claim 1, characterized in that: The step of inputting the image in the OCT image set to be tested into a network detection model to perform lesion detection to obtain a lesion detection result comprises: Annotating the images in the OCT image set to be tested to obtain an OCT sample image; A network detection model is trained based on the OCT sample images, and the trained network detection model is used to perform lesion detection on the images in the image set to be tested to obtain lesion detection results.

4. The artificial intelligence-based OCT image recommendation method according to claim 1, characterized in that: The calculation of the lesion feature index of each image in the effective lesion image set, wherein the lesion feature index includes an area feature index, a color feature index and a shape feature index, comprises: Acquiring the area of ​​each lesion in each image in the effective lesion image set according to the connected domain analysis method as the area characteristic index; Converting each image in the effective lesion image set into a grayscale image, and taking the average grayscale of each lesion in each image in the effective lesion image set as the color feature index; Convex hull analysis is performed on each type of lesion in each image in the effective lesion image set to obtain shape feature indicators.

5. The artificial intelligence-based OCT image recommendation method according to claim 4, characterized in that: The performing convex hull analysis on each lesion in each image in the effective lesion image set to obtain shape feature indicators comprises: Performing convex hull analysis on each lesion in each image in the effective lesion image set to obtain a convex hull contour of the lesion; Performing a similarity transformation on the lesion convex hull contour to obtain a transformed convex hull contour; The similarity between the convex hull contour of the lesion of the patient to be tested and each transformed convex hull contour is calculated respectively, and the obtained similarity result is used as the shape feature index.

6. The artificial intelligence-based OCT image recommendation method according to claim 1, characterized in that: The step of evaluating the images in the effective lesion image set based on the lesion characteristic index of each image in the effective lesion image set and the lesion characteristic index of the patient to be tested, and obtaining the OCT recommended image according to the evaluation result comprises: Constructing a corresponding area feature vector, color feature vector and shape feature vector respectively according to the area feature index, color feature index and shape feature index of each image in the effective lesion image set; Respectively calculating the cosine similarity between the area feature vector and the color feature vector of the patient to be tested and the area feature vector and the color feature vector of each image in the effective lesion image set to obtain an area feature similarity value and a color feature similarity value, and calculating the average value of each element in the shape feature vector of each image in the effective lesion image set as the shape feature similarity value; The average values ​​of the area feature similarity value, color feature similarity value and shape feature similarity value corresponding to each image in the effective lesion image set are calculated, and the image corresponding to the maximum average value is selected as the OCT recommended image.

7. An OCT image recommendation device based on artificial intelligence, characterized in that: The device comprises: An acquisition unit is used to acquire fundus OCT images and preprocess all acquired fundus OCT images to obtain an OCT image set to be tested; A detection unit, configured to input the images in the OCT image set to be tested into a network detection model to perform lesion detection to obtain lesion detection results, and use all images in which lesions are detected in the OCT image set to be tested as a lesion image set, wherein the lesions in the lesion image set include multiple lesion types; A screening unit is used to construct a lesion vector according to the detection result of each lesion type, and screen the lesion image set based on the lesion vectors in the lesion image set and the lesion vectors of the patient to be tested to obtain a valid lesion image set, including: constructing a lesion vector according to the detection result of each lesion type contained in each image in the lesion image set; performing vector multiplication operations on the lesion vector of the patient to be tested and the lesion vector corresponding to each image in the lesion image set, respectively, and taking all images in the lesion image set whose operation results are not 0 as the valid lesion image set; A calculation unit, used for calculating the lesion characteristic index of each image in the effective lesion image set, wherein the lesion characteristic index includes an area characteristic index, a color characteristic index and a shape characteristic index; An evaluation unit is used to evaluate the images in the effective lesion image set based on the lesion characteristic index of each image in the effective lesion image set and the lesion characteristic index of the patient to be tested, and obtain an OCT recommended image according to the evaluation result.

8. An electronic device, characterized in that: The electronic device comprises: a memory storing computer-readable instructions; and A processor executes the computer-readable instructions stored in the memory to implement the artificial intelligence-based OCT image recommendation method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the artificial intelligence-based OCT image recommendation method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Image processing apparatus, image processing method

    CN106157297A

  • Fundus lesion analysis method and device

    CN109993731A

  • Fundus focus detection method and device, computer equipment and storage medium

    CN110163844A

  • Ophthalmic disease classification and identification method and device based on random forest and medium

    CN110363226A

  • Macular edema lesion area segmentation method based on deep neural network

    CN110555856A