A human-computer collaborative quantitative analysis method for infrared meibomian gland images

Through human-machine collaborative infrared meibomian gland image quantification analysis method, combined with automatic segmentation and manual fine-tuning, it solves the problems of low gland segmentation accuracy and low efficiency of manual annotation in the existing technology, and achieves precise quantification of gland morphology. Analysis and calculation of biological parameters to provide efficient diagnostic support for clinicians.

CN115019379BActive Publication Date: 2024-08-30FUZHOU UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210609257.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2024-08-30
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

Existing infrared meibomian gland image analysis methods cannot meet the needs of quantitative analysis of gland morphology. The accuracy of automatic segmentation is low and the efficiency of relying on manual annotation is inefficient. It cannot efficiently assist clinicians in the diagnosis of MGD and dry eye disease.

Method used

Using a human-computer collaborative infrared meibomian gland image quantitative analysis method, combined with automatic segmentation and manual fine-tuning, accurate identification and quantitative analysis of the glands are achieved through semantic segmentation, connected area identification, center line extraction and biological parameter calculation.

Benefits of technology

It significantly improves the accuracy and labeling efficiency of gland segmentation. It can accurately extract the center line and width line containing curved glands, calculate a variety of biological parameters, provide clinicians with objective diagnostic basis, reduce misdiagnosis rates and save labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115019379B
    Figure CN115019379B
Patent Text Reader

Abstract

The present invention proposes a human-machine collaborative infrared meibomian gland image quantitative analysis method, comprising the following steps: step S1, semantic segmentation of meibomian glands in an image is performed to convert the image into a binary gland image; step S2, identifying a single gland in the binary gland image; step S3, automatically acquiring the center line of the gland area; step S4, automatically calculating the length of a single gland based on the center line; step S5, automatically calculating the diameter of a single gland based on the center line; step S6, automatically calculating the area of ​​a single gland area according to the results obtained in the above steps; step S7, automatically calculating the deformation coefficient of a single gland area according to the results obtained in the above steps; step S8, automatically calculating the development value of the gland area according to the results obtained in the above steps; step S9, calculating the percentage of the gland area in the central area of ​​the image; the present invention can efficiently and accurately identify the glands and realize the automatic calculation of the main biological parameters of the meibomian glands.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image recognition and analysis, and in particular to a human-machine collaborative infrared meibomian gland image quantitative analysis method. Background Art

[0002] Meibomian gland dysfunction (MGD) is the main cause of dry eye disease. Glandular changes can lead to insufficient lipid secretion or duct obstruction, affecting the quality of lipid secretion, resulting in excessive tear evaporation and dry eye symptoms. This condition can cause severe discomfort, interfere with daily activities, and even cause blindness. Studies have shown that ophthalmic clinicians can make accurate judgments on patients' conditions through relevant dry eye examinations and guide patients to receive dry eye treatment as early and in a standardized manner, which can effectively delay the course of the disease or cure it, and reduce the risk of visual impairment or even blindness in patients. Meibomian gland infrared images have high sensitivity and specificity for the diagnosis of MGD patients. It is an effective tool that has been widely recognized by clinicians for observing morphological changes in the meibomian glands, providing an effective and objective basis for the clinical diagnosis of MGD.

[0003] At present, most of the infrared meibomian gland image analysis methods have achieved qualitative analysis of MGD and identification of the entire gland area, but cannot meet the needs of quantitative analysis of gland morphology in infrared meibomian gland images; the few proposed quantitative analysis methods based on gland segmentation often have the problem of low accuracy of automatic gland segmentation or low efficiency of relying entirely on manual labeling. How to efficiently and accurately assist clinicians in the diagnosis of MGD and dry eye is an important goal of the infrared meibomian gland image analysis research. Summary of the invention

[0004] The present invention proposes a human-machine collaborative infrared meibomian gland image quantitative analysis method, which makes full use of artificial intelligence technology and only combines a small amount of manual correction to efficiently and accurately identify the glands, and can accurately extract the center lines of all glands including those with severe curvature, thereby realizing the automatic calculation of the main biological parameters of the meibomian glands, providing an objective basis for clinicians to diagnose MGD and dry eye, and saving labor costs.

[0005] The present invention adopts the following technical solutions.

[0006] A human-machine collaborative infrared meibomian gland image quantitative analysis method is used to identify the meibomian gland area in the gland infrared image and collect its appearance feature data, the analysis method comprising the following steps;

[0007] Step S1, reading an infrared meibomian gland image, using a method combining automatic segmentation with manual fine-tuning correction to perform semantic segmentation of the meibomian glands on the image, and converting the infrared meibomian gland image into a binary gland image;

[0008] Step S2, based on the connected areas in the gland image, identify the single gland in the binary gland image; the specific method is to scan the image line by line along the y-axis direction, and record the points where the color changes during the scanning process as the entry points of the gland; for each gland entry point, operate according to the following rules: if the entry point does not fall within any previously known connected area, it is determined that the point belongs to a new gland, and its maximum connected area is calculated; otherwise, the entry point is ignored, and the traversal processing of all entrances is completed, so that all non-connected single glands can be distinguished and identified;

[0009] Step S3, automatically obtaining the center line of the gland area;

[0010] Step S4, automatically calculating the length of a single gland based on the center line;

[0011] Step S5, automatically calculating the diameter of a single gland based on the center line;

[0012] Step S6, automatically calculating the area of ​​a single gland region according to the results obtained in the above steps;

[0013] Step S7, automatically calculating the deformation coefficient of a single gland region according to the results obtained in the above steps;

[0014] Step S8, automatically calculating the development value of the gland area according to the results obtained in the above steps;

[0015] Step S9, calculating the percentage of the glandular area in the central area of ​​the image.

[0016] In step S3, the specific method is as follows: for a single gland region, firstly, a center line extraction method based on line scanning is used to preliminarily obtain the left and right boundary point sets of the gland, and the coordinates of the center point are calculated; when the calculated center point does not fall within the gland region, the gland is determined to be a curved gland, and then a cyclic corrosion method is further used to obtain the center line Lc of the gland. i .

[0017] The scanning-based gland area centerline extraction described in step S3 is achieved by scanning a single gland area line by line along the y-axis direction; the specific method is that when the gland is detected for the first time from left to right, the pixel point is added to the gland left boundary point set, and when the gland is detected for the first time from right to left, the point is recorded and added to the gland right boundary point set. The center of the left and right points of the corresponding row in the gland left and right boundary point sets is taken as the center point of the row.

[0018] The extraction of the gland centerline based on corrosion in step S3 is achieved by cyclic corrosion; the specific method is: repeatedly search for edges and delete them on a single gland image, that is, the corrosion, until there is only one adjacent pixel next to each pixel; if there are still some scattered pixels in the gland edge area that affect the judgment of the centerline, starting from a certain point P, connect the point P1 closest to the point, and then connect P1 and the point P2 closest to P1, ... until there are no points with a distance less than the threshold that can be connected, stop the process, and obtain a line; then start from each rough center point, calculate the length of the line, and take the longest line as the gland centerline Lc i .

[0019] In step S4, the specific method is: traverse the points on the center line of the selected gland in turn, calculate the Euclidean distance between two adjacent points in turn and calculate the cumulative sum, so as to obtain the length Length of the gland i , its unit is: number of pixels;

[0020] In step S5, the specific method is as follows: traverse the points on the center line of a gland in turn: first, find the slope and midpoint of the line connecting two adjacent points; then, starting from the midpoint, extend the detection outward in two directions along the perpendicular median respectively; when the detected pixel is a non-glandular part, calculate the distance between the two points, add it to the list width of the gland, and store the intersection points of the perpendicular median and the two sides of the gland boundary in the LeftPoints and RightPoints lists respectively; after the traversal is completed, find the average value of the width list to obtain the average width of the gland, which is used as the diameter D of the gland. i , its unit is: number of pixels.

[0021] In step S7, the specific method is: according to the LeftPoints and RightPoints lists of any gland, the left and right unilateral perimeters P of the gland are calculated respectively. a and P b , according to the center points of the first and last points of the two lists are a1 and a n , find the standard deviation σ of the corresponding gland diameter D The deformation coefficient DI of the gland is calculated according to the following formula: i ;

[0022]

[0023] In step S8, the specific method is: the grayscale values ​​of the pixels of the glandular part are obtained and the sum is averaged to obtain AG g The grayscale values ​​of the pixels in the eyelid area around the gland are also obtained and the sum is averaged to obtain AG m , and then calculate the development value OD, which is specifically shown as follows;

[0024]

[0025] In step S6, the specific method is: summing the number of pixels of the point set of the largest connected area of ​​any gland to obtain the area S of the gland i , its unit is: number of pixels.

[0026] In step S9, the specific method is: automatically identify the five glands in the center of the image, and calculate the minimum enclosing rectangle of the five glands in the center according to their minimum enclosing rectangles. Assuming that the total area of ​​the glands is S gland , the area of ​​the minimum enclosing rectangle is S rectangle The percentage of the central gland is calculated based on the following formula: c :

[0027] Ratio c =S gland / S rectangle Formula three.

[0028] In step S1, the method of semantically segmenting the meibomian glands of the image includes OSTU segmentation method, watershed segmentation method, pure manual labeling method, or segmentation using a deep learning model for semantic segmentation tasks.

[0029] The present invention relates to a human-machine collaborative infrared meibomian gland image quantitative analysis method, which first performs gland semantic segmentation on the original infrared meibomian gland image to obtain a binary gland image, then realizes the recognition of a single gland based on the connected area, and generates a center line and a calibrated width line for each gland, thereby realizing the automatic calculation of biological parameters such as gland length, width, deformation coefficient, development value, and central area gland area ratio. The present invention can perform quantitative analysis on infrared meibomian gland images, effectively and accurately assist clinicians in diagnosing meibomian gland dysfunction and dry eye, reduce the misdiagnosis rate, and save labor costs. Compared with existing methods, the algorithm of the present invention can accurately identify glands with abnormal morphology and divide the center line and width line. It can also manually revise the gland annotation according to actual needs, realize more accurate biological parameter calculation, and provide a reliable and objective basis for clinical diagnosis.

[0030] Compared with the prior art, the present invention has the following beneficial effects:

[0031] (1) The present invention organically combines artificial intelligence with a small amount of user correction to accurately segment the meibomian glands and can also assist users in manual labeling, which can significantly reduce the labeling cost of the glands and improve the labeling accuracy;

[0032] (2) The present invention can also extract accurate center lines and width lines for abnormal and curved glands, thereby achieving more accurate index calculation.

[0033] (3) The present invention can perform quantitative analysis on infrared meibomian gland images and calculate a variety of common biological parameters to assist clinicians in diagnosing MGD and dry eye. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:

[0035] Attached Figure 1 It is a schematic diagram of the process of the present invention;

[0036] Attached Figure 2 is a schematic diagram of the cyclic corrosion treatment method in step 2;

[0037] Attached Figure 3 is a schematic diagram of a method for automatically calculating the diameter of a single gland in step S5;

[0038] Attached Figure 4 is a schematic diagram comparing the effects of the existing method (b) and the traditional method (a) on segmenting glands;

[0039] Attached Figure 5 It is a schematic diagram of the application of the present invention to auxiliary analysis of meibomian gland images. DETAILED DESCRIPTION

[0040] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0041] It should be noted that the following detailed descriptions are illustrative and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0042] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0043] like Figure 1 As shown, a human-machine collaborative infrared meibomian gland image quantitative analysis method is used to identify the meibomian gland area in the gland infrared image and collect its appearance feature data, and the analysis method includes the following steps;

[0044] Step S1, reading an infrared meibomian gland image, using a method combining automatic segmentation with manual fine-tuning correction to perform semantic segmentation of the meibomian glands on the image, and converting the infrared meibomian gland image into a binary gland image;

[0045] In this step, deep learning technology is introduced to segment the meibomian glands based on UNet++ to obtain a binary gland image (hereinafter referred to as image). Since the automatic segmentation results show some adhesion of adjacent glands and incomplete segmentation of glands near the edges, the user corrects the image by clicking and moving the mouse.

[0046] Step S2, based on the connected areas in the gland image, identify the single gland in the binary gland image; the specific method is to scan the image line by line along the y-axis direction, and record the points where the color changes during the scanning process as the entry points of the gland; for each gland entry point, operate according to the following rules: if the entry point does not fall within any previously known connected area, it is determined that the point belongs to a new gland, and its maximum connected area is calculated; otherwise, the entry point is ignored, and the traversal processing of all entrances is completed, so that all non-connected single glands can be distinguished and identified;

[0047] In this step, the image is scanned line by line along the y-axis with a step length of 5 pixels;

[0048] Step S3, automatically obtaining the center line of the gland area;

[0049] Step S4, automatically calculating the length of a single gland based on the center line;

[0050] Step S5, automatically calculating the diameter of a single gland based on the center line;

[0051] Step S6, automatically calculating the area of ​​a single gland region according to the results obtained in the above steps;

[0052] Step S7, automatically calculating the deformation coefficient of a single gland region according to the results obtained in the above steps;

[0053] Step S8, automatically calculating the development value of the gland area according to the results obtained in the above steps;

[0054] Step S9, calculating the percentage of the glandular area in the central area of ​​the image.

[0055] In step S3, the specific method is as follows: for a single gland region, firstly, a center line extraction method based on line scanning is used to preliminarily obtain the left and right boundary point sets of the gland, and the coordinates of the center point are calculated; when the calculated center point does not fall within the gland region, the gland is determined to be a curved gland, and then a cyclic corrosion method is further used to obtain the center line Lc of the gland. i .

[0056] The scanning-based gland area centerline extraction described in step S3 is achieved by scanning a single gland area line by line along the y-axis direction; the specific method is that when the gland is detected for the first time from left to right, the pixel point is added to the gland left boundary point set, and when the gland is detected for the first time from right to left, the point is recorded and added to the gland right boundary point set. The center of the left and right points of the corresponding row in the gland left and right boundary point sets is taken as the center point of the row.

[0057] like Figure 2 As shown, the extraction of the gland centerline based on corrosion in step S3 is achieved by cyclic corrosion; the specific method is: repeatedly search for edges and delete them on a single gland image, that is, the corrosion, until there is only one adjacent pixel next to each pixel; if there are still some scattered pixels in the gland edge area that affect the judgment of the centerline, starting from a certain point P, connect the point P1 closest to the point, and then connect P1 and the point P2 closest to P1, ... until there are no points with a distance less than the threshold that can be connected, stop the process, and get a line; then start from each rough center point, calculate the length of the line, and take the longest line as the centerline Lc of the gland. i .

[0058] In step S4, the specific method is: traverse the points on the center line of the selected gland in turn, calculate the Euclidean distance between two adjacent points in turn and calculate the cumulative sum, so as to obtain the length Length of the gland. i , its unit is: number of pixels;

[0059] like Figure 3 As shown, in step S5, the specific method is: traverse the points on the center line of a gland in turn: first, find the slope and midpoint of the line connecting two adjacent points; then, starting from the midpoint, extend the detection outward in two directions along the perpendicular median respectively; when the detected pixel is a non-glandular part, calculate the distance between the two points, add it to the list width of the gland, and store the intersection points of the perpendicular median and the two sides of the gland boundary in the LeftPoints and RightPoints lists respectively; after the traversal is completed, find the average value of the width list to obtain the average width of the gland, which is used as the diameter D of the gland. i , its unit is: number of pixels.

[0060] like Figure 4 As shown, after steps S1-S5, the embodiment of the present invention achieves better gland segmentation and identifies all independent glands. The center line and width line can be accurately extracted for glands of any shape (including severely curved glands in the box area), which is better than the performance of existing methods.

[0061] In step S7, the specific method is: according to the LeftPoints and RightPoints lists of any gland, the left and right unilateral perimeters P of the gland are calculated respectively. a and P b , according to the center points of the first and last points of the two lists are a1 and a n , find the standard deviation σ of the corresponding gland diameter D The deformation coefficient DI of the gland is calculated according to the following formula: i ;

[0062]

[0063] In step S8, the specific method is: the grayscale values ​​of the pixels of the glandular part are obtained and the sum is averaged to obtain AG g The grayscale values ​​of the pixels in the eyelid area around the gland are also obtained and the sum is averaged to obtain AG m , and then calculate the development value OD, which is specifically shown as follows;

[0064]

[0065] In step S6, the specific method is: summing the number of pixels of the point set of the largest connected area of ​​any gland to obtain the area S of the gland i , its unit is: number of pixels.

[0066] In step S9, the specific method is: automatically identify the five glands in the center of the image, and calculate the minimum enclosing rectangle of the five glands in the center according to their minimum enclosing rectangles. Assuming that the total area of ​​the glands is S gland , the area of ​​the minimum enclosing rectangle is S rectangle The percentage of the central gland is calculated based on the following formula: c :

[0067] Ratio c =S gland / S rectangle Formula three.

[0068] like Figure 5 As shown, the embodiment of the present invention can be applied to auxiliary analysis of meibomian gland images.

[0069] In step S1, the method of semantically segmenting the meibomian glands of the image includes OSTU segmentation method, watershed segmentation method, pure manual labeling method, or segmentation using a deep learning model for semantic segmentation tasks.

[0070] In summary, the existing meibomian gland image analysis methods often have low accuracy in automatic gland segmentation, low efficiency in completely relying on manual labeling, inability to accurately implement quantitative analysis, and failure to meet the subsequent clinical needs for gland morphological change analysis. The present invention provides a human-machine collaborative infrared meibomian gland image quantitative analysis method. This embodiment makes full use of artificial intelligence technology, combined with a small amount of convenient manual correction, to efficiently and accurately identify glands, and can accurately extract the center line of all glands including those with severe curvature, thereby realizing the automatic calculation of the main biological parameters of the meibomian glands, providing an objective basis for clinicians to diagnose MGD and dry eye.

[0071] Compared with the existing methods, this embodiment can accurately identify and extract the center line and width line of glands of various shapes, realize the accurate calculation of multiple common biological parameters, and help clinicians diagnose MGD and dry eye. In addition, this embodiment can also assist users in manual labeling, significantly reducing the labeling cost of glands and improving labeling accuracy.

[0072] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the present invention.

Claims

1. A human-machine collaborative infrared meibomian gland image quantitative analysis method for identifying the meibomian gland area in the gland infrared image and collecting its appearance feature data, characterized in that: The analytical method comprises the following steps: Step S1, reading an infrared meibomian gland image, using a method combining automatic segmentation with manual fine-tuning correction to perform semantic segmentation of the meibomian glands on the image, and converting the infrared meibomian gland image into a binary gland image; Step S2, based on the connected areas in the gland image, identify the single gland in the binary gland image; the specific method is to scan the image line by line along the y-axis direction, and record the points where the color changes during the scanning process as the entry points of the gland; for each gland entry point, operate according to the following rules: if the entry point does not fall within any previously known connected area, it is determined that the point belongs to a new gland, and its maximum connected area is calculated; otherwise, the entry point is ignored; after completing the traversal processing of all entrances, all non-connected single glands can be distinguished and identified; Step S3, automatically obtaining the center line of the gland area; Step S4, automatically calculating the length of a single gland based on the center line; Step S5, automatically calculating the diameter of a single gland based on the center line; Step S6, automatically calculating the area of ​​a single gland region according to the results obtained in the above steps; Step S7, automatically calculating the deformation coefficient of a single gland region according to the results obtained in the above steps; Step S8, automatically calculating the development value of the gland area according to the results obtained in the above steps; Step S9, calculating the percentage of the glandular area in the central area of ​​the image; In step S3, the specific method is as follows: for a single gland region, firstly, a center line extraction method based on line scanning is used to preliminarily obtain the left and right boundary point sets of the gland, and the coordinates of the center point are calculated; when the calculated center point does not fall within the gland region, the gland is determined to be a curved gland, and then a cyclic corrosion method is further used to obtain the center line Lc of the gland. i ; The scanning-based gland area centerline extraction in step S3 is achieved by scanning a single gland area line by line along the y-axis direction; the specific method is that when the gland is detected for the first time from left to right, the pixel point is added to the gland left boundary point set, and when the gland is detected for the first time from right to left, the pixel point is recorded and added to the gland right boundary point set; the center of the left and right points of the corresponding row in the gland left and right boundary point sets is taken as the center point of the row; The extraction of the gland centerline based on corrosion in step S3 is achieved by cyclic corrosion; the specific method is: repeatedly search for edges and delete them on a single gland image, that is, the corrosion, until there is only one adjacent pixel next to each pixel; if there are still some scattered pixels in the gland edge area that affect the judgment of the centerline, starting from a certain point P, connect the point P1 closest to the point, and then connect P1 and the point P2 closest to P1, ... until there are no points with a distance less than the threshold that can be connected, stop the process, and get a line; then start from each rough center point, calculate the length of the line, and take the longest line as the gland centerline Lc i ; In step S4, the specific method is: traverse the points on the center line of the selected gland in turn, calculate the Euclidean distance between two adjacent points in turn and calculate the cumulative sum, so as to obtain the length Length of the gland i , its unit is: number of pixels; In step S5, the specific method is as follows: traverse the points on the center line of a gland in turn: first, find the slope and midpoint of the line connecting two adjacent points; then, starting from the midpoint, extend the detection outward in two directions along the perpendicular median respectively; when the detected pixel is a non-glandular part, calculate the distance between the two points, add it to the list width of the gland, and store the intersection points of the perpendicular median and the two sides of the gland boundary in the LeftPoints and RightPoints lists respectively; after the traversal is completed, find the average value of the width list to obtain the average width of the gland, which is used as the diameter D of the gland. i , its unit is: number of pixels; In step S7, the specific method is: according to the LeftPoints and RightPoints lists of any gland, the left and right unilateral perimeters P of the gland are calculated respectively. a and P b , according to the center points of the first and last points of the two lists are a1 and a n , find the standard deviation σ of the corresponding gland diameter D The deformation coefficient DI of the gland is calculated according to the following formula: i ; In step S8, the specific method is: the grayscale values ​​of the pixels of the glandular part are obtained and the sum is averaged to obtain AG g The grayscale values ​​of the pixels in the eyelid area around the gland are also obtained and the sum is averaged to obtain AG m , and then calculate the development value OD, which is specifically shown as follows; In step S6, the specific method is: summing the number of pixels of the point set of the largest connected area of ​​any gland to obtain the area S of the gland i , its unit is: number of pixels; In step S9, the specific method is: automatically identify the five glands in the center of the image, and calculate the minimum circumscribed rectangle of the five glands in the center according to their minimum circumscribed rectangles. Assuming that the total area of ​​the glands is S gland , the area of ​​the minimum enclosing rectangle is S rectangle The percentage of the central gland is calculated based on the following formula: c : Ratio c =S gland / S rectangle Formula 3; In step S1, the method of semantically segmenting the meibomian glands of the image includes OSTU segmentation method, watershed segmentation method, pure manual labeling method, or segmentation using a deep learning model for semantic segmentation tasks.

Citation Information

Patent Citations

  • Method for carrying out processing on meibomian gland image to obtain gland parameter information

    CN106530294A

  • A method for quantitatively analyzing the shape and area of meibomian gland with MATLAB

    CN109064468A