The invention relates to the technical field of eye detection, in particular to a method, a device and a storage medium for quantitatively evaluating conjunctival congestion.
The degree of conjunctival congestion or inflammation is an important reference index for doctors to evaluate the ocular inflammation of patients. The clinical doctor requires that the degree of conjunctival congestion or inflammation (light, medium or heavy) be judged manually, within 1 m of the patient. Because of the subjectivity of different doctors, there is no uniform standard for the judgment of light, medium and heavy conjunctival congestion or inflammation, which can result in misdiagnosis and missed diagnosis.
Aiming at the problem with accuracy of manual measurement as affected by human factors, the prior art proposed a shape-dependent image recognition technology scheme. As described in the Chinese patent CN111212594A (Application No.: CN201880066273.2, published on May 29, 2020), in an image captured by a camera including the eye, one or more blood vessels were identified, and the degree of conjunctival congestion is determined based on the size of the one or more blood vessels identified. In addition, in the prior art, there is another method to check the degree of conjunctival congestion by using the proportion of the red pixel value of the eye. This method specifically obtains high-resolution eye images, converts the eye images from RGB to gray, uses Gaussian filtering to find the regions with large differences in transverse and longitudinal gradients, and uses a threshold value to separate bloodshot from non-bloodshot.
However, eye inflammation is mostly conjunctival congestion or inflammation, and the congestion or inflammation in this area is mostly diffuse. Therefore, the shape-dependent recognition method used in the prior art has the following disadvantages: 1. It is easy to be affected by the depth of blood vessel color, and the red pixel values cannot be accurately extracted, resulting in inaccurate recognition. 2. Due to the characteristics and/or structure of the human eyeball, there are typically shadows at the intersection of the eyelid and the eyeball, affecting the accuracy of the method. 3. Because the eyeball is spherical, use of a single light beam to irradiate the eyeball results in uneven light.
In order to overcome the low accuracy of the prior art in measuring the degree of conjunctival congestion or inflammation, the present invention concerns a method for quantitatively evaluating conjunctival congestion or inflammation.
In order to achieve the above purpose, the present invention adopts the following technical scheme(s).
In one aspect, the present invention concerns a method for quantitatively evaluating conjunctival congestion or inflammation, including (e.g., the following steps):
Furthermore, one or more eye bitmaps (e.g., a “second eye bitmap”) of the eye respectively moving inward and outward to respective limit positions may be obtained in the step S2, and the eye conjunctival image may be obtained by combining a first eye bitmap of the eye moving inward to an inward limit position and a second eye bitmap of the eye moving outward to an outward limit position. In addition, the eye conjunctival image may include the lower bulbar conjunctiva only, the lower palpebral conjunctiva only, the upper bulbar conjunctiva only, the upper palpebral conjunctiva only, the lower and upper bulbar conjunctiva, the lower and upper palpebral conjunctiva, the lower bulbar and palpebral conjunctiva, the upper bulbar and palpebral conjunctiva, or the lower and upper bulbar and palpebral conjunctiva, as desired.
Furthermore, in step S3, a pixel in which the ratio of the red channel value to the blue channel value exceeds a threshold may be considered a red/bloodshot pixel. In other words, when the ratio of the red channel value to the blue channel value in one of the pixels exceeds a threshold, the one pixel is a red/bloodshot pixel. Also, the percentage of conjunctival congestion or inflammation (e.g., in the patient's eye) is the percentage of the area of the red/bloodshot pixels in the conjunctival area(s) of the eye conjunctival image.
Furthermore, the threshold may be a fixed value set in advance (e.g., a predetermined value), or a manually set value.
In another aspect, the present invention concerns a device for quantitatively evaluating conjunctival congestion or inflammation, comprising:
A video acquisition module, configured to respond to a video acquisition instruction and obtain a video of ocular movement (e.g., of a patient's eye) from inside out or from outside in:
A feature extraction module, configured to segment one or more images (e.g., of the patient's eye in the video) to obtain an eye conjunctiva image, and extract a red channel value and a blue channel value of each pixel (e.g., in a conjunctival area) in the eye conjunctiva image; and
A calculation module, configured to calculate the ratio of the red channel value to the blue channel value of each pixel to determine the percentage of conjunctival congestion or inflammation.
Furthermore, the feature extraction module may include an image processing submodule, configured to extract one or more eye bitmaps (e.g., a second eye bitmap, or first and second eye bitmaps) of the eye moving inward and outward to (or at) a respective limit position from the video.
In another aspect, the present invention concerns a computer-readable storage medium, wherein at least one program code is stored in the computer-readable storage medium, and the at least one program code is loadable and/or executable by a processor to perform a method for quantitatively evaluating conjunctival hyperplasia, congestion or inflammation as described above. The computer-readable storage medium and the processor that can load and/or execute the at least one program code may be included in the present device for quantitatively evaluating conjunctival congestion or inflammation.
Compared with the prior art, the present invention has at least the following beneficial effects:
In the present invention, the eye conjunctiva image is synthesized from eye bitmaps of the eye moving inward and outward to the limit position(s), and then the red channel value and the blue channel value are extracted from each pixel of the (synthesized) image. Since the light reflected by a bloodshot or inflamed area is mainly red, and the sclera itself has a high reflectivity for both red and blue, the red channel value is significantly higher in the bloodshot/inflamed area than the blue channel value. Where there is no bloodshot or inflammation, the red channel value and the blue channel value are equivalent, and the congestion or inflammation degree can be accurately determined by the ratio of the red channel value and the blue channel value of each pixel, so as to determine the percentage (or degree) of conjunctival congestion or inflammation.
Specific embodiments of the present invention are further described in detail in combination with the attached drawings and embodiments. The following embodiments are used to illustrate the invention, but not to limit the scope of the invention.
As shown in
Step S1: obtaining a video of ocular movement (e.g., of a patient's eye) from inside out and/or from outside in.
Specifically, in step S1, an eye evaluation or measurement device can be used to fix or set the user's eyes and head (e.g., using a head and/or chin rest or other head movement stability tool, which may be adjustable), and a camera set in front of the user's eyes (e.g., in a position that is fixed relative to the head and/or chin rest) can capture video of one of the eyes moving horizontally from inside to outside and/or from outside to inside. An indicator light (e.g., an LED, which can be included in the present device, and which may move linearly along a horizontal line) can be used to guide the user's eye movement.
Video of the ocular movements (e.g., to an inside limit position and to an outside limit position) can also be obtained through other eye devices or video capture devices.
Step S2: segmenting an eye image in the video to obtain an eye conjunctiva image, and extracting a red channel value and a blue channel value of each pixel from the eye conjunctiva image.
Specifically, in step S2, segmentation of an eye image from the video (e.g., identifying and removing from the image[s] or video one or more structures in the patient's eye not being examined, such as the iris, the pupil, the cornea, or the entire eyeball itself) can produce an eye conjunctiva image with the eye (or one or more structures therein) removed. Specifically, eye bitmaps (e.g., second eye bitmaps) with the eye moving inward and outward to respective limit positions can be extracted from the video. Then, a first extracted eye bitmap with the eye moving inward to the limit position (e.g., at the inward limit position) and a second extracted eye bitmap with the eye moving outward to the limit position (e.g., at the outward limit position) are superimposed to obtain the eye conjunctiva image without the influence of the image of the eye (or one or more structures of the eye). Then, the red channel value and blue channel value of each pixel are extracted from the eye conjunctiva image. Alternatively, the vales of the red and blue channels in each pixel of the conjunctival area in the eye conjunctiva image are determined.
It should be noted that an “eye gaze position” refers to the position of the eyeball in the eye examination, which can be divided into a first eye gaze position, a second eye gaze position, and a third eye gaze position. The first eye gaze position may refer to the eye gaze position when the patient's two eyes look straight ahead towards an infinite distance in a horizontal plane, the second eye gaze position may refer to the eye position when the eyeball moves up, down, in and/or out, and the third eye gaze position may refer to the eye position when the eyeball moves inwardly up, inwardly down, outwardly up and/or outwardly down. That is, the eye gaze position when the focal point of the eyeball moves up, under the nose, supratemporally or subtemporally may be characterized as a second or third eye gaze position. For example, the image(s) in
Step S3: determining a percentage (or degree) of conjunctival congestion or inflammation from a ratio of the red channel value to the blue channel value of each pixel (e.g., in the eye conjunctiva image).
In Step S3, a pixel having a ratio of the red channel value to the blue channel value that exceeds a threshold is a red/bloodshot pixel, and the percentage of conjunctival congestion or degree of inflammation is the percentage of the area of the red/bloodshot pixels in the conjunctival area of the eye conjunctiva image. Since the light reflected by the bloodshot or inflamed area (e.g., in the conjunctiva) is mainly red (see, e.g., the center left image in
A video acquisition module 401, configured to respond to a video acquisition instruction and obtain a video of ocular movement from inside out or from outside in;
A feature extraction module 402, configured to segment the eye image to obtain the eye conjunctiva image, and extract the red channel value and blue channel value of each pixel from the eye conjunctiva image; and
A calculation module 403, configured to calculate the ratio of the red channel value to the blue channel value of each pixel (e.g., in the conjunctival area of the eye conjunctiva image) to determine the percentage or degree of conjunctival congestion or inflammation.
In one possible implementation, the video acquisition module 401 can control the start of the camera or other filming equipment when receiving the acquisition instruction, guide the user's eye movement by controlling a voice device or a light device, and obtain the ocular movement video. Furthermore, the feature extraction module 402 may include an image processing submodule, configured to extract one or more eye bitmaps (e.g., second eye bitmaps) of the eye moving inward and outward to the limit positions (e.g., with the pupil at the innermost and outermost positions) from the video.
In an exemplary embodiment, the present invention concerns a computer-readable storage medium, wherein at least one program code is stored in the computer-readable storage medium, and the at least one program code is loadable and/or executable by a processor (which may be in the device 40, or a separate computer or workstation in electrical communication with the device 40) to perform the method for quantitatively evaluating conjunctival hyperemia, congestion or inflammation as described above. For example, the computer-readable storage medium can comprise a read-only memory (ROM), a random access memory (RAM), a flash drive, a compact disc read-only memory (CDROM), magnetic tape, a floppy disk or an optical data storage device.
A person of ordinary skill in the art may understand that all or part of the steps to implement the above embodiments may be performed by hardware or by hardware associated with at least one program code, which may be stored in a computer-readable storage medium, such as a read-only memory, a compact disc or an optical disc.
The above are only preferred embodiments of this application and are not intended to limit the invention, and any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the invention shall be included in the scope of protection of the invention.
| Number | Date | Country | Kind |
|---|---|---|---|
| 202210992159.0 | Aug 2022 | CN | national |
This application is a continuation of International Pat. Appl. No. PCT/CN2023/113490, filed on Aug. 17, 2023, which claims priority to Chinese Pat. Appl. No. 202210992159.0, filed on Aug. 18, 2022, the contents of each of which are incorporated by reference herein in their entireties.
| Number | Date | Country | |
|---|---|---|---|
| Parent | PCT/CN2023/113490 | Aug 2023 | WO |
| Child | 19019558 | US |