Meibomian gland anomaly report generation method and device, electronic equipment and storage medium

Through the combination of multi-modal ophthalmology data and preset models, a detailed meibomian gland abnormality report is generated, which solves the problem of insufficient reliability and interpretability of meibomian gland detection reports in the existing technology, and improves the reliability and interpretability of the report. Interpretability.

CN118609746AInactive Publication Date: 2024-09-06ZHUHAI PEOPLES HOSPITAL GUANGDONG PROVINCE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410670316.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing meibomian gland detection reports mainly rely on manual assessment, which makes it difficult for young or inexperienced ophthalmology professionals to quickly assess, and the final conclusion is not easy for patients to understand and lacks reliability.

Method used

Multi-modal ophthalmology data acquisition and preset models (picture classification, segmentation, blocked target recognition, text classification) are used to generate meibomian gland abnormality reports. The meibomian gland severity classification model is trained and tested to generate detailed abnormality reports. Includes analysis of severity levels, zones, congestion targets, and text categories.

Benefits of technology

Improves the reliability and interpretability of meibomian gland abnormality reporting, providing detailed characterization analysis to enable patients and ophthalmology professionals to better understand meibomian gland severity grades and the reasoning behind them.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609746A
    Figure CN118609746A
Patent Text Reader

Abstract

The invention provides a meibomian gland anomaly report generation method and device, electronic equipment and a storage medium. The method comprises the following steps: classifying first multi-modal ophthalmic data through a meibomian gland image classification model to obtain a first meibomian gland severity level; segmenting the second multi-modal ophthalmic data through a meibomian gland segmentation model to obtain a meibomian gland region; recognizing the third multi-mode ophthalmology data through a meibomian gland blockage target recognition model to obtain a blockage target; classifying the fourth multi-modal ophthalmology data through a meibomian gland text classification model to obtain a text category; labeling the sample multi-modal ophthalmic data set according to the first meibomian gland severity level, the meibomian gland region, the clogging target and the text category; training and testing the meibomian gland severity grade division model according to the sample multi-mode ophthalmology data set; and inputting the to-be-tested multi-modal ophthalmic data into the meibomian gland severity level division model to obtain an anomaly report, wherein the anomaly report comprises the second meibomian gland severity level and report analysis data. And the reliability of generating the meibomian gland abnormality report is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of abnormal report generation of meibomian glands, and in particular to a method, device, electronic equipment, and storage medium for generating abnormal report of meibomian glands. Background Art

[0002] Currently, the test reports of meibomian glands are mainly evaluated and written manually by ophthalmologists. For young and inexperienced personnel, it is undoubtedly impossible to quickly evaluate, and for experienced ophthalmologists, they usually only write the final conclusion, which is not convenient for patients to understand. Summary of the invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides a method, device, electronic device, and storage medium for generating a meibomian gland abnormality report, which can improve the reliability of generating a meibomian gland abnormality report.

[0004] In a first aspect, an embodiment of the present invention provides a method for generating an abnormality report of a meibomian gland, comprising:

[0005] Acquiring first multimodal ophthalmic data, second multimodal ophthalmic data, third multimodal ophthalmic data, and fourth multimodal ophthalmic data;

[0006] Classifying the severity of the meibomian gland images in the first multimodal ophthalmic data by using a preset meibomian gland image classification model to obtain a first meibomian gland severity grade;

[0007] Segmenting the tarsal plate and meibomian glands in the second multimodal ophthalmic data by using a preset meibomian gland segmentation model to obtain a meibomian gland region;

[0008] Performing blockage target recognition processing on the meibomian glands in the third multimodal ophthalmic data by using a preset meibomian gland blockage target recognition model to obtain a blockage target;

[0009] Performing meibomian gland text classification on the fourth multimodal ophthalmological data by using a preset meibomian gland text classification model to obtain a text category of the fourth multimodal ophthalmological data;

[0010] annotating a sample multimodal ophthalmic dataset according to the first meibomian gland severity level, the meibomian gland area, the blockage target, and the text category;

[0011] Training and testing a preset meibomian gland severity grading model based on the labeled sample multimodal ophthalmic dataset;

[0012] The multimodal ophthalmic data to be tested is input into the trained meibomian gland severity grading model to classify the severity of the meibomian glands, and an abnormality report is obtained. The abnormality report includes a second meibomian gland severity grade and report analysis data, and the report analysis data characterizes the process of the meibomian gland severity grading model making predictions using the meibomian gland area, the blockage target and the text category.

[0013] In some embodiments of the present invention, the first multimodal ophthalmic data includes multiple types of ophthalmic picture sub-data, and different types of the ophthalmic picture sub-data represent ophthalmic pictures taken by different types of equipment. The meibomian gland picture classification model includes multiple types of equipment picture sub-models. Based on the equipment type, there is a mapping relationship between the equipment picture sub-model and the ophthalmic picture sub-data. The severity of the meibomian gland pictures in the first multimodal ophthalmic data is classified by the preset meibomian gland picture classification model to obtain a first meibomian gland severity level, including:

[0014] Based on the mapping relationship, the severity classification process is performed on the ophthalmic image sub-data of the corresponding type by the device image sub-model to obtain the meibomian gland grade of the corresponding type;

[0015] The first meibomian gland severity grade is obtained by weighted summing the different types of meibomian gland subgrades according to preset weights.

[0016] In some embodiments of the present invention, after segmenting the tarsus and meibomian glands in the second multimodal ophthalmic data by using a preset meibomian gland segmentation model to obtain the meibomian gland region, the method further includes:

[0017] Obtaining the density of the meibomian glands according to the proportion of the meibomian gland area in the meibomian area;

[0018] The curvature of the curve is calculated at a preset position and a preset number of random positions on each meibomian gland in the meibomian gland area, and an average value of all the curvatures of the curve is obtained to determine the curvature degree of the meibomian gland.

[0019] In some embodiments of the present invention, performing meibomian gland text classification on the fourth multimodal ophthalmic data by using a preset meibomian gland text classification model to obtain the text category of the fourth multimodal ophthalmic data includes:

[0020] Converting the fourth multimodal ophthalmology data through a BERT model and a word segmenter to obtain a target meta-embedding vector;

[0021] The target element embedding vector is input into the trained meibomian gland text classification model to perform meibomian gland text classification, so as to obtain the text category of the fourth multimodal ophthalmic data.

[0022] In some embodiments of the present invention, before converting the fourth multimodal ophthalmic data through the BERT model and the word segmenter to obtain the target element embedding vector, the method includes:

[0023] Acquire sample text, wherein the sample text includes patient description text, clinical observation record text, and patient medical history text;

[0024] Performing word segmentation and tagging processing on the sample text by the word segmenter to obtain multiple tags;

[0025] Input the token into the BERT model for conversion to obtain a corresponding embedding vector;

[0026] Performing average calculation on the embedding vectors to obtain a sample element embedding vector;

[0027] Connecting the sample element embedding vectors corresponding to the sample texts of different categories, and setting labels for the sample texts of each category;

[0028] The sample text and the label are input into the meibomian gland text classification model for training and testing, and the meibomian gland text classification model is used to learn the relationship between the meta-embedding vector and the label.

[0029] In a second aspect, an embodiment of the present invention provides a device for generating an abnormality report of a meibomian gland, comprising:

[0030] An acquisition module, configured to acquire first multimodal ophthalmic data, second multimodal ophthalmic data, third multimodal ophthalmic data, and fourth multimodal ophthalmic data;

[0031] a severity classification module, configured to classify the severity of the meibomian gland images in the first multimodal ophthalmic data by using a preset meibomian gland image classification model to obtain a first meibomian gland severity grade;

[0032] a segmentation module, configured to segment the tarsal plate and the meibomian gland in the second multimodal ophthalmic data by using a preset meibomian gland segmentation model to obtain a meibomian gland region;

[0033] A blocked target recognition module, configured to perform blocked target recognition processing on the meibomian glands in the third multimodal ophthalmic data by using a preset meibomian gland blocked target recognition model to obtain blocked targets;

[0034] A text classification module, used for performing meibomian gland text classification on the fourth multimodal ophthalmic data by using a preset meibomian gland text classification model to obtain a text category of the fourth multimodal ophthalmic data;

[0035] a labeling module for labeling a sample multimodal ophthalmic dataset according to the first meibomian gland severity level, the meibomian gland area, the blockage target, and the text category;

[0036] A training module, used for training and testing a preset meibomian gland severity grading model according to the labeled sample multimodal ophthalmic dataset;

[0037] An abnormality report generation module is used to input the multimodal ophthalmic data to be tested into the trained meibomian gland severity grading model to classify the severity of the meibomian glands and obtain an abnormality report, wherein the abnormality report includes a second meibomian gland severity grade and report analysis data, and the report analysis data characterizes the process of the meibomian gland severity grading model making predictions using the meibomian gland area, the blockage target and the text category.

[0038] In some embodiments of the present invention, the first multimodal ophthalmic data includes multiple types of ophthalmic picture sub-data, and different types of the ophthalmic picture sub-data represent ophthalmic pictures taken by different types of equipment. The meibomian gland picture classification model includes multiple types of equipment picture sub-models. Based on the equipment type, there is a mapping relationship between the equipment picture sub-model and the ophthalmic picture sub-data. The severity classification module includes:

[0039] A tarsal gland grade module, used for performing severity classification processing on the ophthalmic image sub-data of the corresponding type through the device image sub-model based on the mapping relationship to obtain the tarsal gland grade of the corresponding type;

[0040] A weighted summation module is used to perform weighted summation on the different types of meibomian gland subgrades according to preset weights to obtain the first meibomian gland severity grade.

[0041] In some embodiments of the present invention, the device for generating an abnormality report of a meibomian gland comprises:

[0042] A meibomian gland density module, used to obtain the meibomian gland density according to the proportion of the meibomian gland area in the meibomian area;

[0043] The curvature module is used to calculate the curvature of the curve at a preset position and a preset number of random positions on each meibomian gland in the meibomian gland area, and obtain the average value of all the curvatures of the curve to determine the curvature of the meibomian gland.

[0044] In a second aspect, an embodiment of the present invention provides a device for generating an abnormality report of a meibomian gland, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the method for generating an abnormality report of a meibomian gland as described in the first aspect above.

[0045] In a third aspect, an embodiment of the present invention provides an electronic device, comprising the device for generating an abnormal report of a meibomian gland as described in the second aspect above.

[0046] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the method for generating an abnormality report of a meibomian gland as described in the first aspect above.

[0047] The method for generating an abnormality report of a meibomian gland according to an embodiment of the present invention has at least the following beneficial effects: obtaining first multimodal ophthalmic data, second multimodal ophthalmic data, third multimodal ophthalmic data, and fourth multimodal ophthalmic data; classifying the severity of the meibomian gland image in the first multimodal ophthalmic data by a preset meibomian gland image classification model to obtain a first meibomian gland severity level; segmenting the tarsus and meibomian glands in the second multimodal ophthalmic data by a preset meibomian gland segmentation model to obtain a meibomian gland area; performing blockage target recognition processing on the meibomian glands in the third multimodal ophthalmic data by a preset meibomian gland blockage target recognition model to obtain a blockage target; and classifying the meibomian gland text classification model by a preset meibomian gland text classification model to obtain a first meibomian gland severity level. The method comprises the following steps: first, performing meibomian gland text classification on the multimodal ophthalmic data to obtain the text category of the fourth multimodal ophthalmic data; annotating the sample multimodal ophthalmic data set according to the first meibomian gland severity level, the meibomian gland area, the blocked target and the text category; training and testing the preset meibomian gland severity level classification model according to the annotated sample multimodal ophthalmic data set; inputting the multimodal ophthalmic data to be tested into the trained meibomian gland severity level classification model to classify the severity of the meibomian glands and obtain an abnormal report, the abnormal report includes the second meibomian gland severity level and report analysis data, the report analysis data includes the meibomian gland area, the blocked target and the text category of the multimodal ophthalmic data to be tested. The four features in the multimodal ophthalmic data set are obtained by using the meibomian gland image classification model, the meibomian gland segmentation model, the meibomian gland blocked target recognition model and the meibomian gland text classification model, and the feature of the first meibomian gland severity level is used as the label of the meibomian gland severity level classification model. The interpretability of the meibomian gland severity classification model is trained with the three features of the meibomian gland area, the blocked target, and the text category, so that the finally generated meibomian gland severity classification model is interpretable. Therefore, in addition to the final conclusion: the meibomian gland severity level, the finally generated report also has other features that assist patients and ophthalmic professionals in understanding the current meibomian gland severity level: the meibomian gland area, the blocked target, and the text category. The reasoning process behind the predicted meibomian gland severity level is explained. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 is a flow chart of a method for generating an abnormality report of a meibomian gland provided by an embodiment of the present invention;

[0049] Figure 2 is a schematic diagram of identifying a meibomian gland region provided by an embodiment of the present invention;

[0050] Figure 3 is a schematic diagram of identifying a blocked target provided by an embodiment of the present invention;

[0051] Figure 4 It is a structural diagram of a device for generating an abnormality report of a meibomian gland provided in another embodiment of the present invention. DETAILED DESCRIPTION

[0052] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0053] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0054] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0055] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.

[0056] The control method of the embodiment of the present invention is further described below based on the accompanying drawings.

[0057] Reference Figure 1 , Figure 1 A flowchart of a method for generating an abnormal report of a meibomian gland provided in an embodiment of the present invention, the method for generating an abnormal report of a meibomian gland includes but is not limited to the following steps:

[0058] Step S110, acquiring first multimodal ophthalmological data, second multimodal ophthalmological data, third multimodal ophthalmological data and fourth multimodal ophthalmological data;

[0059] Step S120, classifying the severity of the meibomian gland images in the first multimodal ophthalmic data by using a preset meibomian gland image classification model to obtain a first meibomian gland severity grade;

[0060] Step S130, segmenting the tarsus and meibomian glands in the second multimodal ophthalmic data using a preset meibomian gland segmentation model to obtain a meibomian gland region;

[0061] Step S140, performing blockage target recognition processing on the meibomian glands in the third multimodal ophthalmic data using a preset meibomian gland blockage target recognition model to obtain a blockage target;

[0062] Step S150, performing meibomian gland text classification on the fourth multimodal ophthalmic data using a preset meibomian gland text classification model to obtain a text category of the fourth multimodal ophthalmic data;

[0063] Step S160 , annotating the sample multimodal ophthalmic dataset according to the first meibomian gland severity level, meibomian gland area, blockage target, and text category;

[0064] Step S170, training and testing a preset meibomian gland severity grading model according to the labeled sample multimodal ophthalmic dataset;

[0065] Step S180, input the multimodal ophthalmic data to be tested into the trained meibomian gland severity grading model to classify the severity of the meibomian glands, and obtain an abnormal report, which includes a second meibomian gland severity grade and report analysis data, and the report analysis data characterizes the process of the meibomian gland severity grading model making predictions using the meibomian gland area, blockage target and text category.

[0066] It should be noted that, with permission, the first multimodal ophthalmic data, the second multimodal ophthalmic data, the third multimodal ophthalmic data and the fourth multimodal ophthalmic data are obtained. The first multimodal ophthalmic data, the second multimodal ophthalmic data, the third multimodal ophthalmic data and the fourth multimodal ophthalmic data are not of the same form or category. For example, the first multimodal ophthalmic data, the second multimodal ophthalmic data and the third multimodal ophthalmic data are all in the form of pictures, while the fourth multimodal ophthalmic data is in the form of text. Therefore, correspondingly, the method of acquiring multimodal ophthalmic data is also different. The complex patterns and relationships in the first multimodal ophthalmic data, the second multimodal ophthalmic data, the third multimodal ophthalmic data and the fourth multimodal ophthalmic data are learned through multiple models to help predict the severity of late-stage eyelid gland abnormalities:

[0067] (1) Establishing a meibomian gland image classification model, illustratively including Resnet34 and Resnet50, to achieve severity classification of meibomian gland images and classification of severity of meibomian gland abnormalities (grade classification: 0, 1, 2, 3)

[0068] (2) Establish a meibomian gland segmentation model, illustratively including Deep LabV3 and Unet deep learning algorithms, to achieve image segmentation tasks, targeting the segmentation of tarsus and meibomian glands. And calculate the auxiliary diagnosis related index detection of meibomian gland abnormalities, including: meibomian gland density, the longest / shortest length of meibomian glands, and the curvature of meibomian glands.

[0069] (3) Establish a meibomian gland obstruction target recognition model. For example, YoloDR is improved to achieve the meibomian gland obstruction target recognition task. That is, the classification layer of the original Yolo model is changed to the classification layer of DETR, that is, the Transformer layer in RTDETRdecoder. Because DETR is an end-to-end target detection model. Combining it with YOLO is to obtain the accuracy of DETR's Transformer layer in target recognition based on the rapid detection capability of YOLO. Reference Figure 3 , Figure 3 The box in the middle is the blocking target.

[0070] (4) Establish a meibomian gland text classification model, exemplarily based on meta-embedd ing. Text categories include clinical observations, patient descriptions, and patient medical history text data.

[0071] Training and Validation: A sample multimodal ophthalmology dataset was then annotated with first meibomian gland severity grade, meibomian gland area, blocked target, and text category; the meibomian gland severity grading model was trained on a dataset with annotated ophthalmic images and associated text data. The dataset should cover a wide range of meibomian gland abnormalities and their severity levels to ensure the robustness and generalization of the model. In addition, the model was validated using a separate dataset to evaluate its performance.

[0072] Furthermore, the test results are scored or indexed after the test: Meibomian gland abnormality / dry eye severity 0, 1, 2, 3, 0 for no meibomian gland abnormality (MGD), 1 for mild, 2 for moderate, and 3 for severe. For the above (1)-(4), an abnormal report of MGD is formed. The meibomian gland severity grading model can generate a score or index to quantify the severity of meibomian gland abnormalities. These scores can provide quantitative indicators for ophthalmic professionals to help them assess the disease status and track changes over time. Visualization can also be performed.

[0073] Then proceed with:

[0074] Annotation categories: Sample multimodal ophthalmic data are annotated with the corresponding meibomian gland severity.

[0075] Feature Annotation: Specific features (meibomian gland area, occlusion target, and text category) on the sample multimodal ophthalmic data are annotated, and these features represent specific parts in the sample multimodal ophthalmic data.

[0076] Model training: The model is trained using sample multimodal ophthalmology data with class and feature annotations. The model learns to associate data features with severity labels.

[0077] Model prediction: The multimodal ophthalmic data to be tested is input into the trained model, and the model will output the predicted severity.

[0078] Explanatory features: The model is interpretable. It not only predicts the severity, but also identifies and displays the meibomian gland area, blockage target, and text category that have the greatest impact on the prediction results, thereby obtaining report analysis data.

[0079] It is important to note that the interpretability of a model is not always directly determined by the annotated features, but requires explicit design in the model architecture and training process to support interpretability.

[0080] In another embodiment, the first multimodal ophthalmic data includes multiple types of ophthalmic picture sub-data, and different types of ophthalmic picture sub-data represent ophthalmic pictures taken by different types of equipment. The meibomian gland picture classification model includes multiple types of equipment picture sub-models. Based on the equipment type, there is a mapping relationship between the equipment picture sub-model and the ophthalmic picture sub-data. The severity of the meibomian gland pictures in the first multimodal ophthalmic data is classified by the preset meibomian gland picture classification model to obtain a first meibomian gland severity level, including:

[0081] Based on the mapping relationship, the severity classification of the corresponding type of ophthalmic image sub-data is performed through the device image sub-model to obtain the corresponding type of meibomian gland level;

[0082] The different types of meibomian gland subgrades are weighted summed according to preset weights to obtain the first meibomian gland severity grade.

[0083] It should be noted that the meibomian glands of the same eye of the same person were photographed by mobile phone (Phone), LipidViewⅡ (LV), Keratograph 5M (K5M), and CANON infrared (Canon) photography. The shooting scene and shooting time were the same, and each type of picture was taken for no less than the preset number of pictures. The classification model was trained for each data source, and then the ophthalmic picture sub-data was input into the corresponding type of device picture sub-model. For example, the ophthalmic picture sub-data taken by the mobile phone was input into the device picture sub-model corresponding to the mobile phone photography. The meibomian gland level output by each model was obtained, and then the meibomian gland levels of different types were weighted and summed, and finally the first meibomian gland severity level was obtained. For example, MGD_Level = 0.4*Score_LV+0.3*Score_K5M+0.2*Score_Canon+0.1*Score_phone.

[0084] In another embodiment, after the meibomian glands and tarsus in the second multimodal ophthalmic data are segmented by a preset meibomian gland segmentation model to obtain the meibomian gland region, the method further includes:

[0085] Meibomian gland density was obtained based on the proportion of meibomian gland area to the meibomian area;

[0086] The curvature of the curve is calculated at a preset position and a preset number of random positions on each meibomian gland in the meibomian gland area, and an average value of all the curvatures of the curve is obtained to determine the curvature degree of the meibomian gland.

[0087] It should be noted that, refer to Figure 2 , identify the meibomian gland area, meibomian gland density = meibomian gland area / meibomian area; calculate the curvature of the meibomian gland, calculate the curvature of each meibomian gland, and find the average. The process is as follows: the curvature of a curve is the rotation rate of the tangent direction angle to the arc length at a certain point on the curve, which is defined by differentiation and indicates the degree to which the curve deviates from a straight line. Mathematically, it indicates the numerical value of the curvature of the curve at a certain point. Among them, the top / bottom / left / right end is the top / bottom / left / right end of the gland.

[0088] In another embodiment, the fourth multimodal ophthalmic data is subjected to meibomian gland text classification by a preset meibomian gland text classification model to obtain text categories of the fourth multimodal ophthalmic data, including:

[0089] The fourth multimodal ophthalmology data is transformed and processed through the BERT model and word segmenter to obtain the target meta-embedding vector;

[0090] The target meta-embedding vector is input into the trained meibomian gland text classification model to perform meibomian gland text classification and obtain the text category of the fourth multimodal ophthalmic data.

[0091] In another embodiment, before converting the fourth multimodal ophthalmic data through the BERT model and the word segmenter to obtain the target meta-embedding vector, the method includes:

[0092] Obtain sample texts, including patient description texts, clinical observation record texts, and patient medical history texts;

[0093] The sample text is segmented and marked by a word segmenter to obtain multiple marks;

[0094] Input the token into the BERT model for conversion to obtain the corresponding embedding vector;

[0095] The embedding vectors are averaged to obtain the sample element embedding vector;

[0096] Connect the sample element embedding vectors corresponding to sample texts of different categories, and set labels for sample texts of each category;

[0097] The sample text and labels are input into the Meibomian Gland Text Classification Model for training and testing. The Meibomian Gland Text Classification Model is used to learn the relationship between the meta-embedding vector and the label.

[0098] It should be noted that the meibomian gland text classification model can select meta-embedd ing to implement text classification of patient description text, clinical observation record text, and patient medical history text. For example,

[0099] (1) Use the pre-trained BERT model and tokenizer in Hugging Face's Transformers library to generate embedding vectors for the input sample text. For example, the categories of the sample text can be patient description = "I have dry eyes in an air-conditioned room"; clinical observation = "red and dry eyes, obvious blood vessels in the anterior segment, eyelashes falling off, and scaly eyelids."; patient history = "multiple recurrences of dry eyes, meibomian gland atrophy by one-third, IPL treatment, but the effect is not obvious." Then, the tokenizer is used to convert the pre-processed (special characters are removed, etc.) sample text into tokens that BERT can understand. The tokenized input is then fed into the BERT model to generate an embedding vector for each token.

[0100] (2) The meta-embedding vector is obtained by averaging the BERT embedding vectors over all tokens.

[0101] (3) Concatenate the meta-embedding vectors of all example texts and define the labels accordingly.

[0102] (4) A meibomian gland text classification model was constructed for text classification, which contains one hidden layer.

[0103] (5) The meibomian gland text classification model is trained on the concatenated meta-embedding vectors and their corresponding labels.

[0104] (6) Finally, predict the category of the text based on its meta-embedding vector.

[0105] like Figure 4 As shown, Figure 4 1 is a structural diagram of a device for generating an abnormality report of a meibomian gland provided by an embodiment of the present invention. The present invention also provides a device for generating an abnormality report of a meibomian gland, comprising:

[0106] The processor 401 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0107] The memory 402 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 402 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 402, and the processor 401 calls and executes the method of generating a report of an abnormality of a meibomian gland in the embodiment of this application;

[0108] Input / output interface 403, used to implement information input and output;

[0109] Communication interface 404, used to realize communication interaction between the present apparatus and other devices, which can be realized by wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WI FI, Bluetooth, etc.);

[0110] Bus 405 , which transmits information between various components of the device (e.g., processor 401 , memory 402 , input / output interface 403 , and communication interface 404 );

[0111] The processor 401 , the memory 402 , the input / output interface 403 and the communication interface 404 are connected to each other in communication within the device via the bus 405 .

[0112] Furthermore, the device for generating a report of abnormality of the meibomian glands comprises:

[0113] An acquisition module, configured to acquire first multimodal ophthalmic data, second multimodal ophthalmic data, third multimodal ophthalmic data, and fourth multimodal ophthalmic data;

[0114] a severity classification module, configured to classify the severity of the meibomian gland images in the first multimodal ophthalmic data by using a preset meibomian gland image classification model to obtain a first meibomian gland severity grade;

[0115] a segmentation module, configured to segment the tarsal plate and the meibomian gland in the second multimodal ophthalmic data by using a preset meibomian gland segmentation model to obtain a meibomian gland region;

[0116] A blocked target recognition module, configured to perform blocked target recognition processing on the meibomian glands in the third multimodal ophthalmic data by using a preset meibomian gland blocked target recognition model to obtain blocked targets;

[0117] A text classification module, used for performing meibomian gland text classification on the fourth multimodal ophthalmic data by using a preset meibomian gland text classification model to obtain a text category of the fourth multimodal ophthalmic data;

[0118] a labeling module for labeling a sample multimodal ophthalmic dataset according to the first meibomian gland severity level, the meibomian gland area, the blockage target, and the text category;

[0119] A training module, used for training and testing a preset meibomian gland severity grading model according to the labeled sample multimodal ophthalmic dataset;

[0120] An abnormality report generation module is used to input the multimodal ophthalmic data to be tested into the trained meibomian gland severity classification model to classify the severity of the meibomian glands and obtain an abnormality report, wherein the abnormality report includes a second meibomian gland severity level and report analysis data, and the report analysis data includes the meibomian gland area, the blockage target and the text category of the multimodal ophthalmic data to be tested.

[0121] In another embodiment, the first multimodal ophthalmic data includes multiple types of ophthalmic picture sub-data, and different types of the ophthalmic picture sub-data represent ophthalmic pictures taken by different types of equipment. The meibomian gland picture classification model includes multiple types of equipment picture sub-models, and based on the equipment type, there is a mapping relationship between the equipment picture sub-model and the ophthalmic picture sub-data. The severity classification module includes:

[0122] A tarsal gland grade module, used for performing severity classification processing on the ophthalmic image sub-data of the corresponding type through the device image sub-model based on the mapping relationship to obtain the tarsal gland grade of the corresponding type;

[0123] A weighted summation module is used to perform weighted summation on the different types of meibomian gland subgrades according to preset weights to obtain the first meibomian gland severity grade.

[0124] In another embodiment, the device for generating a meibomian gland abnormality report comprises:

[0125] A meibomian gland density module, used to obtain the meibomian gland density according to the proportion of the meibomian gland area in the meibomian area;

[0126] The curvature module is used to calculate the curvature of the curve at a preset position and a preset number of random positions on each meibomian gland in the meibomian gland area, and obtain the average value of all the curvatures of the curve to determine the curvature of the meibomian gland.

[0127] The device for generating an abnormality report of a meibomian gland is used to execute the method for generating an abnormality report of a meibomian gland according to an embodiment of the present application.

[0128] An embodiment of the present application also provides an electronic device, including the device for generating an abnormality report of a meibomian gland as described above.

[0129] An embodiment of the present application further provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the above-mentioned device and method for generating an abnormal report of a meibomian gland is implemented.

[0130] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0131] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0132] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions under the shared conditions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.

Claims

1. A method for generating a meibomian gland abnormality report, It is characterized in that include: Acquiring first multimodal ophthalmic data, second multimodal ophthalmic data, third multimodal ophthalmic data, and fourth multimodal ophthalmic data; Classifying the severity of the meibomian gland images in the first multimodal ophthalmic data by using a preset meibomian gland image classification model to obtain a first meibomian gland severity grade; Segmenting the tarsal plate and meibomian glands in the second multimodal ophthalmic data by using a preset meibomian gland segmentation model to obtain a meibomian gland region; Performing blockage target recognition processing on the meibomian glands in the third multimodal ophthalmic data by using a preset meibomian gland blockage target recognition model to obtain a blockage target; Performing meibomian gland text classification on the fourth multimodal ophthalmological data by using a preset meibomian gland text classification model to obtain a text category of the fourth multimodal ophthalmological data; annotating a sample multimodal ophthalmic dataset according to the first meibomian gland severity level, the meibomian gland area, the blockage target, and the text category; Training and testing a preset meibomian gland severity grading model based on the labeled sample multimodal ophthalmic dataset; The multimodal ophthalmic data to be tested is input into the trained meibomian gland severity grading model to classify the severity of the meibomian glands, and an abnormality report is obtained. The abnormality report includes a second meibomian gland severity grade and report analysis data, and the report analysis data characterizes the process of the meibomian gland severity grading model making predictions using the meibomian gland area, the blockage target and the text category.

2. The method for generating a meibomian gland abnormality report according to claim 1, It is characterized in that The first multimodal ophthalmic data includes multiple types of ophthalmic picture sub-data, and different types of the ophthalmic picture sub-data represent ophthalmic pictures taken by different types of equipment. The meibomian gland picture classification model includes multiple types of equipment picture sub-models. Based on the equipment type, there is a mapping relationship between the equipment picture sub-model and the ophthalmic picture sub-data. The severity of the meibomian gland pictures in the first multimodal ophthalmic data is classified by the preset meibomian gland picture classification model to obtain a first meibomian gland severity level, including: Based on the mapping relationship, the severity classification process is performed on the ophthalmic image sub-data of the corresponding type by the device image sub-model to obtain the meibomian gland grade of the corresponding type; The first meibomian gland severity grade is obtained by weighted summing the different types of meibomian gland subgrades according to preset weights.

3. The method for generating a meibomian gland abnormality report according to claim 1, It is characterized in that After the meibomian glands and tarsus in the second multimodal ophthalmic data are segmented by the preset meibomian gland segmentation model to obtain the meibomian gland region, the method includes: Obtaining the density of the meibomian glands according to the proportion of the meibomian gland area in the meibomian area; The curvature of the curve is calculated at a preset position and a preset number of random positions on each meibomian gland in the meibomian gland area, and an average value of all the curvatures of the curve is obtained to determine the curvature degree of the meibomian gland.

4. The method for generating a meibomian gland abnormality report according to claim 1, It is characterized in that The method of performing meibomian gland text classification on the fourth multimodal ophthalmological data by using a preset meibomian gland text classification model to obtain the text category of the fourth multimodal ophthalmological data includes: Converting the fourth multimodal ophthalmology data through a BERT model and a word segmenter to obtain a target meta-embedding vector; The target element embedding vector is input into the trained meibomian gland text classification model to perform meibomian gland text classification, so as to obtain the text category of the fourth multimodal ophthalmic data.

5. The method for generating a meibomian gland abnormality report according to claim 4, It is characterized in that Before converting the fourth multimodal ophthalmic data through the BERT model and the word segmenter to obtain the target element embedding vector, the method includes: Acquire sample text, wherein the sample text includes patient description text, clinical observation record text, and patient medical history text; Performing word segmentation and tagging processing on the sample text by the word segmenter to obtain multiple tags; Input the token into the BERT model for conversion to obtain a corresponding embedding vector; Performing average calculation on the embedding vectors to obtain a sample element embedding vector; Connecting the sample element embedding vectors corresponding to the sample texts of different categories, and setting labels for the sample texts of each category; The sample text and the label are input into the meibomian gland text classification model for training and testing, and the meibomian gland text classification model is used to learn the relationship between the meta-embedding vector and the label.

6. A device for generating a meibomian gland abnormality report, It is characterized in that include: An acquisition module, configured to acquire first multimodal ophthalmic data, second multimodal ophthalmic data, third multimodal ophthalmic data, and fourth multimodal ophthalmic data; a severity classification module, configured to classify the severity of the meibomian gland images in the first multimodal ophthalmic data by using a preset meibomian gland image classification model to obtain a first meibomian gland severity grade; a segmentation module, configured to segment the tarsal plate and the meibomian gland in the second multimodal ophthalmic data by using a preset meibomian gland segmentation model to obtain a meibomian gland region; A blocked target recognition module, configured to perform blocked target recognition processing on the meibomian glands in the third multimodal ophthalmic data by using a preset meibomian gland blocked target recognition model to obtain blocked targets; A text classification module, used to perform meibomian gland text classification on the fourth multimodal ophthalmic data by using a preset meibomian gland text classification model to obtain a text category of the fourth multimodal ophthalmic data; a labeling module for labeling a sample multimodal ophthalmic dataset according to the first meibomian gland severity level, the meibomian gland area, the blockage target, and the text category; A training module, used for training and testing a preset meibomian gland severity grading model according to the labeled sample multimodal ophthalmic dataset; An abnormality report generation module is used to input the multimodal ophthalmic data to be tested into the trained meibomian gland severity grading model to classify the severity of the meibomian glands and obtain an abnormality report, wherein the abnormality report includes a second meibomian gland severity grade and report analysis data, and the report analysis data characterizes the process of the meibomian gland severity grading model making predictions using the meibomian gland area, the blockage target and the text category.

7. The device for generating an abnormality report of a meibomian gland according to claim 6, It is characterized in that The first multimodal ophthalmic data includes multiple types of ophthalmic picture sub-data, and different types of the ophthalmic picture sub-data represent ophthalmic pictures taken by different types of equipment. The meibomian gland picture classification model includes multiple types of equipment picture sub-models. Based on the equipment type, there is a mapping relationship between the equipment picture sub-model and the ophthalmic picture sub-data. The severity classification module includes: A tarsal gland grade module, used for performing severity classification processing on the ophthalmic image sub-data of the corresponding type through the device image sub-model based on the mapping relationship to obtain the tarsal gland grade of the corresponding type; A weighted summation module is used to perform weighted summation on the different types of meibomian gland subgrades according to preset weights to obtain the first meibomian gland severity grade.

8. The device for generating an abnormality report of a meibomian gland according to claim 6, It is characterized in that The device for generating an abnormal report of a meibomian gland comprises: A meibomian gland density module, used to obtain the meibomian gland density according to the proportion of the meibomian gland area in the meibomian area; The curvature module is used to calculate the curvature of the curve at a preset position and a preset number of random positions on each meibomian gland in the meibomian gland area, and obtain the average value of all the curvatures of the curve to determine the curvature of the meibomian gland.

9. An electronic device, It is characterized in that A device for generating an abnormality report of a meibomian gland comprising the device according to claim 8.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method for generating an abnormality report of a meibomian gland according to any one of claims 1 to 7.