Intelligent analyzer and image processing method for tear film break-up time in dry eye diagnosis

By locking the reference frame, reverse translation alignment, grayscale variance comparison, and spatiotemporal dual-dimensional tracking mechanism, the problems of false positives and timing errors in dry eye detection are solved, and millisecond-level objective quantification and visualized pathological data reference for dry eye diagnosis are realized.

CN123160422APending Publication Date: 2026-11-24CANGZHOU AIER EYE HOSPITAL CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611024003.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-10
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Current dry eye tests suffer from significant false positives and timing errors due to nystagmus, tear film, and eyelid obstruction, making it difficult to achieve objective, accurate, and fully automated condition assessment.

Method used

By acquiring the eye video stream to lock the reference frame, the pupil offset vector is used to perform reverse translation alignment on the continuous images; the gray-scale variance of the image blocks is calculated to establish a reference map, and the deformed areas are extracted by feature comparison with subsequent frames; a spatiotemporal dual-dimensional tracking mechanism is introduced to filter out free impurities and artifacts by using displacement velocity and coordinate interval, and to determine the real fracture area based on the area increasing law; finally, the absolute fracture time is calculated according to the number of interval frames, and a heat map is rendered based on the relative timestamp.

Benefits of technology

It eliminates physiological micro-motion interference, reduces the misjudgment rate of rupture identification, achieves millisecond-level objective quantification of diagnostic indicators, and provides intuitive and visualized pathological data reference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160422A_ABST
    Figure CN123160422A_ABST
Patent Text Reader

Abstract

This invention relates to the fields of ophthalmic medical and medical image processing technology, and discloses an intelligent tear film breakup time analyzer and image processing method for dry eye diagnosis. It aims to solve problems such as false positives and timing errors caused by nystagmus, tear film suspended matter, and eyelid occlusion in existing dry eye detection methods. This invention acquires a reference frame from the eye video stream, performs reverse translation alignment on continuous images using the pupil offset vector, calculates the grayscale variance of image blocks to establish a reference map, compares features with subsequent frames to extract deformed regions, introduces a spatiotemporal dual-dimensional tracking mechanism, uses displacement velocity and coordinate intervals to filter out free impurities and artifacts, and determines the true breakup region based on the area increasing rule, calculates the absolute breakup time based on the number of interval frames, and renders a thermal overlay map based on the relative timestamp. This can eliminate physiological micro-motion interference, reduce the false positive rate of breakup identification, and provide intuitive and visualized pathological data reference.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of ophthalmic medical auxiliary diagnostic equipment and medical image processing technology, and in particular to an intelligent tear film breakup time analyzer and image processing method for the diagnosis of dry eye syndrome. Background Technology

[0002] In the clinical diagnosis of dry eye, non-invasive tear film breakup time is a crucial objective assessment indicator. Current routine testing techniques typically utilize a projection system (such as a Placido disc) to project high-contrast patterns, such as concentric rings or grids, onto the subject's ocular surface, and record the tear film reflection image during the subject's eye-opening period using a camera. When the local tear film on the ocular surface thins or breaks down due to moisture evaporation, the corresponding reflection pattern becomes distorted, broken, or blurred. Existing technologies usually rely on clinicians manually observing the video footage and timing it manually, or using basic image grayscale thresholding software to roughly capture the moment when pattern distortion occurs.

[0003] However, in actual clinical testing, subjects maintain an open-eye state for several seconds to tens of seconds, during which their eyeballs inevitably experience involuntary micro-detachment or tremors. In addition, suspended particles commonly found in tears (such as exfoliated cells and lipid dust) slide rapidly with the tear flow, and slight obstruction from the eyelids and eyelashes further contribute to these uncontrollable physiological dynamic changes, creating distortion artifacts resembling tear film breakup in optical images. Traditional detection methods and existing basic recognition algorithms often struggle to effectively distinguish between genuine in-situ tear film breakup spots and the detachment interference caused by these physiological activities. This easily triggers false positives, leading to significant errors in the calculated tear film breakup time. Furthermore, current technology cannot visually represent the dynamic evolution of the breakup process, ultimately requiring time-consuming frame-by-frame review and judgment by physicians, making it difficult to achieve objective, accurate, and fully automated assessment of dry eye syndrome. Summary of the Invention

[0004] In view of the aforementioned existing problems, the present invention is proposed.

[0005] Therefore, in order to solve the problems of false positives and timing errors caused by nystagmus, tear film suspension and eyelid obstruction in the existing dry eye detection, the present invention provides an intelligent tear film breakup time analyzer and image processing method for the diagnosis of dry eye.

[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution: In a first aspect, the present invention provides an image processing method for diagnosing dry eye syndrome, comprising the following steps: S1. Obtain eye grayscale video stream data containing ocular surface reflection patterns, extract the image of the tear film in its initial intact state from the eye grayscale video stream data as a reference frame, and extract continuous images after the reference frame to form an effective video sequence. S2. Extract the distribution features of the reflection pattern in the reference frame to establish a reference map, and compare the features of each subsequent frame image in the effective video sequence with the reference map to extract the regions where the pattern deformation occurs and generate a difference map. S3. Obtain the continuous difference map and track the position and area of ​​the pattern deformation area; if the area shows an increasing trend between consecutive adjacent frames, then the pattern deformation area is identified as the real crack area and a corresponding crack confirmation map is generated. S4. Record the frame number in which the tear film rupture confirmation image is first generated, and calculate the first tear film rupture time based on the difference between the frame number and the frame number of the reference frame.

[0007] As a preferred embodiment of the image processing method for dry eye diagnosis described in this invention, the following steps are taken: acquiring grayscale video stream data of the eye containing ocular surface reflection patterns, extracting an image of the tear film in its initial intact state from the grayscale video stream data of the eye as a reference frame, and cropping consecutive images after the reference frame to form an effective video sequence. A concentric ring pattern is projected onto the ocular surface using a projection system, and a camera device continuously acquires grayscale video stream data of the eye containing tear film reflection images. The grayscale values ​​of pixels in each frame of the ocular grayscale video stream data are extracted and accumulated to obtain the sum of grayscale values ​​of the current frame. The sum of grayscale values ​​is then divided by the number of pixels involved in the accumulation to obtain the global average brightness. The first frame image in which the global average brightness value experiences a sharp drop and then rebound due to eyelid occlusion, and the value remains stable, is locked as the reference frame in the initial intact state of the tear film. The frame preceding the point where the global average brightness drops sharply again is set as the end frame. Continuous images from the reference frame to the end frame are extracted. The largest dark circular area in the reference frame is extracted as the standard pupil area, and the coordinates of the center pixel of the standard pupil area are obtained and positioned as the reference anchor point. The offset pixel vector of the current pupil center coordinates of subsequent frames in the continuous images relative to the reference anchor point is calculated, and the corresponding subsequent frames are translated in reverse order based on the offset pixel vector to generate the spatially aligned effective video sequence.

[0008] As a preferred embodiment of the image processing method for dry eye diagnosis described in this invention, the following steps are taken: The distribution features of the reflection pattern in the reference frame are extracted to establish a reference image; subsequent frames in the effective video sequence are compared frame by frame with the reference image to extract regions where pattern deformation occurs and generate a difference map. According to a set pixel interval, the reference frame is divided into grid-like image blocks of equal area; the grayscale values ​​of pixels within each image block are extracted, and the variance of the grayscale values ​​within each image block is calculated. This variance is used as a distribution feature value characterizing the intensity of the pattern's brightness and darkness contrast; the calculated distribution feature value and its corresponding coordinate position are integrated to establish the reference image. Subsequent frames in the effective video sequence are divided into image blocks in a manner corresponding to the reference frame, and the current variance of the image blocks within the current frame is calculated; the current variance is divided by the distribution feature value of the image block at the same coordinate position in the reference image to obtain the feature ratio; if the feature ratio is lower than a set normal value threshold, it is determined that pattern deformation has occurred within the corresponding image block, and the pixel set corresponding to the image block with pattern deformation in the same frame is marked and extracted to generate the difference map.

[0009] As a preferred embodiment of the image processing method for dry eye diagnosis described in this invention, the method includes: acquiring continuous difference maps and tracking the location and area of ​​the pattern deformation region; if the area shows an increasing trend between consecutive adjacent frames, the pattern deformation region is identified as a true breakage region, and a corresponding breakage confirmation map is generated. The specific steps are as follows: Extract the geometric center coordinates of the pattern-deformed region in the difference image of the current frame. In the difference images of consecutive adjacent frames, establish a search circle with a set radius centered on the geometric center coordinates for region matching. During tracking between consecutive frames, calculate the displacement velocity of the geometric center coordinates and eliminate suspended object interference regions whose displacement velocity exceeds a set velocity threshold. Simultaneously, define the upper and lower edge coordinate intervals of the image and eliminate eyelid interference regions whose center coordinates are located within the upper and lower edge coordinate intervals. Count the total number of pixels matching the pattern-deformed region within the search circle as the area value of the pattern-deformed region. Extract the area values ​​of the same pattern-deformed region in consecutive adjacent frames to generate an area change sequence, and eliminate short-term interference regions that exist for fewer than a set frame number threshold. If the area change sequence conforms to an overall increasing trend within a set allowable error range, the pattern-deformed region is confirmed as a true breakage region, and an independent breakage marker is assigned to generate the corresponding breakage confirmation image.

[0010] As a preferred embodiment of the image processing method for dry eye diagnosis described in this invention, the following steps are taken: Record the frame number in which the tear film breakup confirmation image is first generated, and calculate the first tear film breakup time based on the difference between the frame number and the frame number of the reference frame. Obtain the frame number where the tear film rupture confirmation image is first generated, and subtract the frame number of the reference frame from the frame number to obtain the total number of frames in the interval. Obtain the frame rate per second of the camera device that collects the grayscale video stream data of the eye, and divide the total number of frames in the interval by the frame rate per second to calculate the first tear film rupture time accurate to milliseconds. Extract the outermost contour boundary coordinate set of the actual rupture area in each frame of the tear film confirmation image and its relative timestamp at the time of generation, and associate it with the first tear film rupture time to package it into a tear film status data package. Parse the tear film status data package, and match the corresponding warm and cool gradient colors in a preset color spectrum according to the relative timestamp of the actual rupture area, where the earlier the relative timestamp, the warmer the color tone. According to the outermost contour boundary coordinate set, overlay and render the pixel blocks with the matched colors onto the original image of the reference frame according to the set transparency parameters to generate a heat overlay map for visually displaying the rupture location and time sequence.

[0011] In a second aspect, the present invention provides an intelligent tear film breakup time analyzer for the diagnosis of dry eye syndrome, comprising: An image acquisition device for continuously acquiring a sequence of tear film images containing a projected pattern from the subject's eye; A memory, wherein a computer program is stored; Display device for visually presenting the assessment results of dry eye diagnosis; The processor is communicatively connected to the image acquisition device, the memory, and the display device. When the processor executes the computer program, it implements the image processing method for dry eye diagnosis as described in any one of claims 1 to 9, and outputs the evaluation results obtained by executing the method to the display device for display.

[0012] The beneficial effects of this invention are: This invention acquires a reference frame from an eye video stream, performs reverse translation alignment on consecutive images using the pupil offset vector, calculates the grayscale variance of image blocks to establish a reference map, and extracts deformed regions by comparing features with subsequent frames. It introduces a spatiotemporal dual-dimensional tracking mechanism, using displacement velocity and coordinate intervals to filter out free impurities and artifacts, and identifies the true fracture region based on an increasing area pattern. Finally, it calculates the absolute fracture time based on the number of frames between them and renders a thermal overlay map based on the relative timestamp. This invention can eliminate physiological micro-motion interference, reduce the false judgment rate of fracture identification, achieve millisecond-level objective quantification of diagnostic indicators, and provide intuitive and visualized pathological data references. Attached Figure Description

[0013] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0014] Figure 1 Here is a flowchart of the overall image processing method; Figure 2 Flowchart for S1 reference frame locking and valid sequence alignment; Figure 3 Flowchart for constructing the S2 feature reference map and comparing the gridded variance; Figure 4 Flowchart for S3 spatiotemporal dynamic tracking and interference removal; Figure 5 This is a flowchart of the S4 time calculation and visualization rendering process. Detailed Implementation

[0015] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0016] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.

[0017] Secondly, the term "one embodiment" or "example" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the invention. The appearance of an embodiment in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that mutually excludes other embodiments.

[0018] Example 1 Reference Figures 1-5 This is the first embodiment of the present invention, which provides an image processing method for diagnosing dry eye syndrome, including the following steps: S1. Acquire grayscale video stream data of the eye containing the ocular surface reflection pattern, extract the image of the tear film in its initial intact state from the grayscale video stream data of the eye as the reference frame, and extract continuous images after the reference frame to form an effective video sequence, including the following steps: A concentric ring pattern is projected onto the ocular surface using a projection system, and a camera continuously captures grayscale video stream data of the eye, including tear film reflection images. The grayscale values ​​of pixels in each frame of the video stream are extracted and accumulated to obtain the sum of grayscale values ​​for the current frame. This sum is then divided by the number of pixels involved in the accumulation to obtain the global average brightness. The first frame where the global average brightness value experiences a sharp drop and subsequent rebound due to eyelid occlusion, and then remains stable, is designated as the reference frame, representing the initial intact state of the tear film. The frame preceding the point where the global average brightness value drops sharply again is set as the end frame. Continuous images from the reference frame to the end frame are extracted. The largest dark circular area in the reference frame is extracted as the standard pupil region, and the coordinates of the center pixel of the standard pupil region are used as the reference anchor point. The offset pixel vectors of the current pupil center coordinates relative to the reference anchor point are calculated for each subsequent frame in the continuous images. Based on these offset pixel vectors, the corresponding subsequent frames are then translated in reverse to generate a spatially aligned and effective video sequence.

[0019] It should be noted that in the initial data acquisition and preprocessing stage of non-invasive dry eye detection, the system needs to eliminate the lag error caused by manual button marking and the physical spatial displacement error caused by the subject's eyeball micro-movements. It then performs automatic cropping and pupil alignment calibration based on physiological feedback. The specific operation steps are as follows: Projection System Imaging and Dynamic Acquisition of Global Brightness Features: The system activates a projection system such as a Placido disc to project a high-contrast concentric ring aperture onto the subject's ocular surface. The camera continuously records the reflective state of the ocular surface at a fixed frame rate. Since subsequent image analysis relies on light and shadow structures, the main control program extracts color information from the video stream in real time, converting it into a single-channel grayscale video stream. Then, frame by frame, it sums the grayscale values ​​of all pixels in the image and calculates the average value, which serves as the global brightness average representing the current exposure state of the entire ocular surface. During this process, the system calculates the global brightness average of the current frame image. The mathematical model is as follows: The average global brightness value calculated from the current frame image (ranging from 0 to 255).

[0020] : The sequence number of the currently processed video stream frame.

[0021] and : These represent the horizontal and vertical pixel resolutions of the image captured by the camera device, respectively.

[0022] : in the In the frame image, the spatial coordinates are The grayscale value of the pixel at that location (for a regular 8-bit grayscale image, the value range is strictly limited to between 0 and 255).

[0023] Automatic locking of the reference frame and effective sequence based on blink physiological feedback: The accurate breakpoint should be the instant the subject completes a blink. When blinking occurs, the opaque eyelid skin largely obscures the highly reflective cornea, causing a sharp, step-like drop in the average global brightness captured by the camera. As the eyelid lifts again, a new layer of liquid tear film coats the ocular surface, and the global brightness quickly recovers. The system captures the trough of this brightness curve and locks the first frame where the value stabilizes after the recovery as the reference frame, serving as the physical zero point for timing. The system continues monitoring until it detects the next sharp drop in brightness representing a blink, setting the previous frame at this point as the end frame, thus automatically cropping a continuous image containing only one complete eye-opening cycle.

[0024] Reverse translation and physical space alignment calibration based on pupil anchor points: During the eye-opening test cycle, to prevent misalignment caused by slight eye movements, the system segments the pupil region in the reference frame using image thresholding and calculates its geometric center coordinates as the reference positioning anchor point. In each subsequent frame, the system tracks the current pupil center in real time. Once a displacement occurs, the system performs a matrix transformation to reverse translate the entire frame image. The formula for this alignment reverse translation matrix transformation is as follows: : The new spatial coordinates of the pixel after reverse translation and alignment compensation.

[0025] : The original spatial coordinates of any pixel in the current frame before alignment.

[0026] : Coordinates of the geometric center anchor point of the standard pupil in the reference frame.

[0027] : No. The geometric center coordinates of the current pupil in the frame image.

[0028] : The displacement vector of the current pupil from the reference positioning anchor point (limited by the micro-movement amplitude of the real human eye, the absolute value of this difference vector is usually limited to within 0 to 50 pixels).

[0029] S2. Extract the distribution features of the reflection pattern in the reference frame to establish a reference map. Compare the features of each subsequent frame in the effective video sequence with the reference map to extract the regions where the pattern deformation occurs and generate a difference map. This includes the following steps: According to the set pixel interval, the reference frame is divided into grid-like image blocks of equal area; the gray values ​​of pixels within the image blocks are extracted, and the variance of the pixel gray values ​​within the image blocks is calculated. The variance is used as a distribution feature value to characterize the intensity of the contrast between light and dark areas of the pattern; the calculated distribution feature values ​​and their corresponding coordinate positions are integrated to establish a reference map. Subsequent frames in the effective video sequence are divided into image blocks in the same manner as the reference frame, and the current variance of the image blocks within the current frame is calculated; the current variance is divided by the distribution feature value of the image block at the same coordinate position in the reference map to obtain the feature ratio; if the feature ratio is lower than the set normal value threshold, it is determined that pattern deformation has occurred in the corresponding image block, and the pixel set corresponding to the image block with pattern deformation in the same frame is marked and extracted to generate a difference map.

[0030] It should be noted that after establishing a spatially aligned effective video sequence, the system needs to convert the clinical optical appearance caused by tear film rupture into a mathematical model that can be quantified and recognized by a computer, and perform regional feature calculation and numerical comparison. The specific operation steps are as follows: The system employs a block-based management strategy to reduce computational overhead and improve noise resistance. The system divides the reference frame into equal matrix segments according to a set pixel span, generating dense grid image blocks. In the reference frame immediately after blinking, the tear film is intact, concentric rings reflect clearly, and the boundaries between light and dark areas within the image blocks are distinct, resulting in a large distribution span of pixel grayscale values ​​within these areas and a high calculated variance. The system extracts the variance value of each image block and its corresponding coordinate axis parameters to construct a digital matrix reflecting the initial unbroken features, i.e., the reference image.

[0031] Consecutive frame region variance comparison and pattern deformation threshold determination: Over time, the local tear film on the ocular surface gradually evaporates and thins until it ruptures. The optical refractive index at the tear film rupture point changes, causing scattering of reflected light beams and blurring of bright and dark lines. The system quantifies this physical change using a variance model. The formula for calculating the gray-level variance and current feature ratio of the grid image patch is as follows: : The grayscale variance value of a grid image patch, used to characterize the contrast intensity of light and dark areas in that region.

[0032] The total number of pixels contained within a grid image block.

[0033] : The gray value of the i-th pixel within the image block.

[0034] The local average value of grayscale values ​​of all pixels within this image block.

[0035] The feature ratio of the current frame image block to the corresponding image block in the reference frame. Under ideal, unbroken conditions, this value approaches 1.0.

[0036] : Current number The current variance of the image patch at the same coordinate position in the frame.

[0037] Standard deviation of the image patch at the corresponding coordinate position in the reference frame.

[0038] Binarization of deformed pixel sets and generation of difference maps: The system's normal numerical threshold is typically between 0.60 and 0.85 (i.e., allowing 15% to 40% environmental noise tolerance). If the calculated feature ratio... If the value falls below this threshold, the system's underlying algorithm determines that the optical pattern in that coordinate region has undergone irreversible deformation. After determination, the system performs binarization marking on the image blocks with pattern deformation, for example, assigning a value of 1 to deformed areas and 0 to normal areas in the background matrix. The system then isolates the pixel set covered by these marked image blocks, generating a difference map that only shows the shape and location of suspected broken patches, filtering out useless background image information for subsequent dynamic tracking.

[0039] S3. Obtain continuous difference maps to track the location and area of ​​the pattern deformation region; if the area shows an increasing trend between consecutive adjacent frames, the pattern deformation region is identified as the true fracture region, and a corresponding fracture confirmation map is generated, including the following steps: Extract the geometric center coordinates of the pattern-deformed region in the difference image of the current frame. In the difference images of consecutive adjacent frames, establish a search circle with a set radius centered on the geometric center coordinates for region matching. During tracking between consecutive frames, calculate the displacement velocity of the geometric center coordinates and eliminate suspended object interference regions whose displacement velocity exceeds a set velocity threshold. Simultaneously, define the upper and lower edge coordinate intervals of the image and eliminate eyelid interference regions whose center coordinates are located within the upper and lower edge coordinate intervals. Count the total number of pixels matching the pattern-deformed region within the search circle as the area value of the pattern-deformed region. Extract the area values ​​of the same pattern-deformed region in consecutive adjacent frames to generate an area change sequence, and eliminate short-term interference regions that exist for fewer than a set frame number threshold. If the area change sequence conforms to an overall increasing trend within a set allowable error range, the pattern-deformed region is confirmed as a true break region and assigned an independent break marker to generate a corresponding break confirmation image.

[0040] It should be noted that the initially extracted difference map is limited by the clinical imaging environment and is prone to impurities or occlusion artifacts. Therefore, the system introduces a dynamic tracking and filtering mechanism in both spatiotemporal dimensions to eliminate false breakage signals. The specific operation steps are as follows: Inter-frame matching based on search circle and suspended matter velocity filtering: Tiny dust particles or detached cells often exist in tears. These suspended matter also appear as dark spots in the image, but exhibit displacement characteristics that slide with the tear flow velocity. The system extracts the geometric center coordinates of the deformed patch from the previous frame and establishes a search circle of a set radius at the corresponding position in the next frame to perform correlation matching. To accurately quantify and remove free-state dynamic impurities, the system calculates the displacement velocity of the geometric center of the deformed region and the area constraint conditions as follows: Scalar movement speed of deformed patches between two adjacent frames. The system's preset speed threshold is 5 to 15 pixels per frame. Once this physical limit is exceeded, it is determined to be an impurity removal.

[0041] The same deformed patch in the current number The coordinates of the geometric center in the frame.

[0042] : The geometric center coordinates of the same deformed patch in the previous frame.

[0043] : The measured area of ​​the deformed patch in the current frame (in terms of the total number of pixels it contains).

[0044] : The measured area of ​​the deformed patch in the previous frame.

[0045] : The system's preset allowable error for area fluctuation. A value between 0.02 and 0.08 represents a reasonable jitter of 2% to 8% for the edge recognition algorithm.

[0046] Temporal series screening of deformed regions and incremental confirmation of true tear film breakage: True tear film breakage in dry eye has the optical characteristics of irreversible expansion and localized area increase. Electrical signal noise generated by the camera sensor typically exists only for a very short number of frames. The system quantifies the area of ​​the deformed region by statistically analyzing the total number of pixels within it, requiring the target patch to exist stably across multiple consecutive frames, meeting a set frame count threshold. Under this premise, the system further examines its area change sequence. If, during temporal progression, the area of ​​the patch, after eliminating extremely small pixel jitter errors, shows a clear overall expansion trend, the system algorithm will ultimately confirm it as a true breakage region and output the corresponding breakage confirmation map.

[0047] S4. Record the frame number where the first tear film rupture confirmation image is generated. Calculate the first tear film rupture time based on the difference between the frame number and the frame number of the reference frame, including the following steps: Obtain the frame number of the first generated tear film rupture confirmation image, and subtract the frame number of the reference frame from the frame number to obtain the total number of frames in the interval. Obtain the frame rate per second of the camera that collects grayscale video stream data of the eye, and divide the total number of frames in the interval by the frame rate per second to calculate the first tear film rupture time accurate to milliseconds. Extract the outermost contour boundary coordinate set of the actual rupture area in each frame of the tear film confirmation image and its relative timestamp at the time of generation, and associate it with the first tear film rupture time to package it into a tear film status data package. Parse the tear film status data package, and match the corresponding warm and cool gradient colors in a preset color spectrum according to the relative timestamp of the actual rupture area, where the earlier the relative timestamp, the warmer the color tone. According to the outermost contour boundary coordinate set, overlay and render the pixel blocks of the matched colors onto the original image of the reference frame according to the set transparency parameters to generate a heat overlay map for visually displaying the rupture location and time sequence.

[0048] It should be noted that after completing the underlying image recognition and feature filtering, the system needs to convert the background array data into quantitative indicators and visualization reports that can be used for clinical diagnosis. The specific operation steps are as follows: Clinical time calculation based on hardware frame rate mapping: The core clinical indicator for assessing dry eye syndrome is the time it takes for a subject to keep their eyes open until the tear film first breaks up. Based on hardware acquisition parameters and tracking results, the system calculates this first tear film breakup time using the following conversion formula: : First tear film breakup time accurate to milliseconds. Physical values ​​range from 0 to 30 seconds.

[0049] : The target frame number recorded when the fracture confirmation map was successfully generated for the first time.

[0050] The reference frame number locked in step S1 is the initial intact state of the tear film.

[0051] The constant number of image frames captured per second by the physical camera device. By using a division operation, the discrete frame domain is seamlessly transformed into a continuous time domain, successfully eliminating the neural delay error of manual observation.

[0052] Data encapsulation of rupture contour spatial coordinates and relative timestamps: For the subsequently generated full-cycle rupture confirmation map, the system uses an edge detection algorithm to extract the outermost contour boundary coordinate set of each real rupture patch, recording the spatial location and actual physical extent of deformation, and assigning a relative timestamp of the occurrence time to the corresponding coordinate set. The system structurally integrates spatial contour data and temporal data to generate standardized tear film state data packets.

[0053] Intuitive Thermal Overlay Rendering Based on Time-Series Chromatography Mapping: To enhance the visual diagnostic efficiency of medical reports, the system utilizes a chromatographic rendering engine to parse tear film status data packets. Based on the relative timestamp of rupture occurrence, the system assigns differentiated rendering colors to different rupture regions. For example, rapidly ruptured regions are matched with warm tones such as red, which carries a higher warning threshold, while late-stage rupture regions are matched with cool tones such as blue. The system assigns preset transparency parameters to the color-configured regions and overlays them onto the initially acquired baseline frame image based on the original coordinate set. This thermal overlay visually demonstrates the regional differences and temporal evolution of tear film stability on the ocular surface.

[0054] Example 2 This embodiment provides an intelligent tear film breakup time analyzer for the diagnosis of dry eye syndrome, including: An image acquisition device for continuously acquiring a sequence of tear film images containing a projected pattern from the subject's eye; Memory, which stores computer programs; Display device for visually presenting the assessment results of dry eye diagnosis; The processor is communicatively connected to the image acquisition device, the memory, and the display device. The processor executes the computer program and outputs the evaluation results obtained from the image processing method to the display device for display.

[0055] Example 3 To further clarify the technical solution of the present invention, the following is a third embodiment of the present invention, using a specific scenario in a medical testing environment where non-invasive tear film breakup time testing is performed on a subject suspected of having dry eye syndrome, to provide a more detailed description of the technical solution of the present invention.

[0056] In this embodiment, the intelligent tear film breakup time analyzer of the present invention is deployed in a professional ophthalmic testing area. When the test is started, the subject positions his chin on the instrument's bracket and looks straight ahead at the high-contrast concentric ring pattern projected by the projection system.

[0057] Step S1: Baseline Locking and Spatial Stabilization Alignment Based on Physiological Feedback In the initial phase of image acquisition, the subject blinked as instructed and then remained with their eyes open. Upon blinking, the instrument's camera recorded a step decrease in the overall brightness of the ocular surface image; as the eyelid lifted, the corneal surface was re-coated with a liquid tear film, and the overall brightness rebounded rapidly. The system monitored and captured this physical change, recording the brightness at the 20th frame (i.e., when it had recovered and stabilized). =20) is directly locked as the zero-point reference frame for physical timing.

[0058] During continuous detection, due to eye muscle fatigue, the eyeball involuntarily jerked slightly to the upper right in frame 45. The system extracted the pupil center coordinates in real time and calculated that it had an offset pixel vector of (X:+4,Y:-3) relative to the reference anchor point in the reference frame. The system immediately issued a matrix transformation command to shift the entire frame 45 image to the lower left by (X:-4,Y:+3). This alignment compensation mechanism eliminates the displacement error caused by eye movement, ensuring that all frames in the subsequent valid video sequence are on the same horizontal and vertical plane.

[0059] Step S2: Comparison of local feature meshes and discovery of deformed regions After spatial alignment, the system divides the reference frame into dense grid image blocks of 16×16 pixels in the background and calculates the standard grayscale variance of each grid region. For example, the black and white lines in a certain grid in the upper right corner of the cornea are clear, and the calculated standard variance is 180.

[0060] As the test progressed, localized moisture on the corneal surface began to evaporate. By frame 116, the tear film in the upper right grid area had thinned and broken, causing diffuse reflection of light and blurring the previously clear concentric ring structure. The system calculated in real time that the current variance of this grid had decreased to 72. The system further calculated the eigenvalue ratio. =72 / 180=0.40. Since this ratio is much lower than the system's normal fluctuation tolerance threshold of 0.70, the system marks this grid area as having undergone pattern deformation in the underlying matrix, and after filtering out normal background pixels, generates a difference map containing the coordinate set of the deformed area.

[0061] Step S3: Dual filtering in spatiotemporal dimensions and confirmation of rights for the actual fractured area Due to the presence of physical interference sources in the detection environment, the system did not immediately output a conclusion, but instead performed dynamic tracking filtering on the difference map. During the tracking period from frame 116 to frame 120, the system also detected a deformed patch at the bottom of the image, but calculated that its downward displacement speed was as high as 18 pixels / frame. Based on physical rules, the system determined that the patch was a free-state impurity such as detached particles sliding with the tear fluid, and then removed its coordinate data from the record; at the same time, based on coordinate range limitations, the system removed a slight eyelash trembling artifact located at the very top edge of the image.

[0062] For the deformed plaque in the upper right corner of the cornea, the system tracking revealed that its position was relatively static, and its measured area slowly expanded from 45 pixels to 48 and 52 pixels in continuously tracked image frames, which is consistent with... The overall area of ​​the tear film shows a gradual increase in accordance with physical laws, and the number of frames in which this condition persists stably exceeds the set threshold of 4 frames. At the logical decision level, the system confirms that this area is not electronic noise or physical interference, thus identifying it as a genuine tear film rupture area and generating a final rupture confirmation map.

[0063] Step S4: Millisecond-level calculation of clinical diagnostic indicators and output of heatmap diagnosis During the diagnostic data encapsulation and output stage, the system extracts the frame number from the initial generation of the rupture confirmation image, i.e., frame 116. The camera's frame rate (FPS) is known to be a constant 30 frames per second. The system uses the time conversion formula for analytical calculation: =(116-20) / 30=3.200 seconds. Since the result of 3.200 seconds is objectively lower than the conventional clinical health limit, the system judges that the subject is in a pathological state of extreme tear film instability.

[0064] To visualize the diagnostic results, the system extracted the outermost contour coordinates of the actual rupture area and, based on the early relative timestamp of 3.200 seconds, matched a deep red warm hue representing a high-alert state in the colorimetric rendering engine. The system then rendered and overlaid a polygonal region configured with this deep red block and assigned a certain transparency parameter onto the upper right coordinates of the baseline frame image. The final output thermal overlay map visually displays the location of the rupture in the local microenvironment of the ocular surface and the severity of the condition.

[0065] In summary, this invention acquires a reference frame from the eye video stream, performs reverse translation alignment on consecutive images using the pupil offset vector, calculates the grayscale variance of image blocks to establish a reference map, and extracts deformed regions by comparing features with subsequent frames. It introduces a spatiotemporal dual-dimensional tracking mechanism, using displacement velocity and coordinate intervals to filter out free impurities and artifacts, and identifies the true fracture region based on an increasing area rule. Finally, it calculates the absolute fracture time based on the number of frames between them and renders a thermal overlay map based on the relative timestamp. This invention can eliminate physiological micro-motion interference, reduce the false judgment rate of fracture identification, achieve millisecond-level objective quantification of diagnostic indicators, and provide intuitive and visualized pathological data references.

[0066] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.

Claims

1. An image processing method for dry eye diagnosis, characterized by, Includes the following steps: S1. Obtain eye grayscale video stream data containing ocular surface reflection patterns, extract the image of the tear film in its initial intact state from the eye grayscale video stream data as a reference frame, and extract continuous images after the reference frame to form an effective video sequence. S2. Extract the distribution features of the reflection pattern in the reference frame to establish a reference map, and compare the features of each subsequent frame image in the effective video sequence with the reference map to extract the regions where the pattern deformation occurs and generate a difference map. S3. Obtain the continuous difference map and track the position and area of ​​the pattern deformation area; if the area shows an increasing trend between consecutive adjacent frames, then the pattern deformation area is identified as the real crack area and a corresponding crack confirmation map is generated. S4. Record the frame number in which the tear film rupture confirmation image is first generated, and calculate the first tear film rupture time based on the difference between the frame number and the frame number of the reference frame.

2. The image processing method for dry eye diagnosis according to claim 1, wherein, The steps in step S1 of acquiring eye grayscale video stream data and extracting reference frames include: A concentric ring pattern is projected onto the ocular surface using a projection system, and a camera device continuously acquires grayscale video stream data of the eye containing tear film reflection images. The grayscale values ​​of pixels in each frame of the ocular grayscale video stream data are extracted and accumulated to obtain the sum of grayscale values ​​of the current frame. The sum of grayscale values ​​is then divided by the number of pixels involved in the accumulation to obtain the global average brightness. The first frame image in which the global average brightness value experiences a sharp drop and then rebound due to eyelid occlusion, and the value remains stable, is locked as the reference frame in the initial intact state of the tear film.

3. The image processing method for dry eye diagnosis according to claim 2, wherein, The step S1, which involves extracting consecutive images after the reference frame to form a valid video sequence, includes: The frame preceding the point where the global average brightness drops sharply again is set as the end frame. Continuous images from the reference frame to the end frame are extracted. The largest dark circular area in the reference frame is extracted as the standard pupil area, and the coordinates of the center pixel of the standard pupil area are obtained and positioned as the reference anchor point. The offset pixel vector of the current pupil center coordinates of subsequent frames in the continuous images relative to the reference anchor point is calculated, and the corresponding subsequent frames are translated in reverse order based on the offset pixel vector to generate the spatially aligned effective video sequence.

4. The image processing method for dry eye diagnosis according to claim 1, wherein, The step S2, which involves extracting the distribution features of the reflection pattern in the reference frame and establishing a reference image, includes: According to the set pixel interval, the reference frame is divided into grid-like image blocks with equal area; the gray values ​​of the pixels in the image blocks are extracted, and the variance of the gray values ​​of the pixels in the image blocks is calculated. The variance is used as the distribution feature value to characterize the intensity of the contrast between light and dark in the pattern; the calculated distribution feature value and its corresponding coordinate position are integrated to establish the reference image.

5. The image processing method for dry eye diagnosis according to claim 4, wherein The step S2, which involves comparing the features of each subsequent frame in the effective video sequence with the reference image to generate a difference map, includes: The subsequent frame images in the effective video sequence are divided into image blocks according to the method corresponding to the reference frame, and the current variance of the image block in the current frame is calculated; the current variance is divided by the distribution feature value of the image block at the same coordinate position in the reference image to obtain the feature ratio; if the feature ratio is lower than the set normal value threshold, it is determined that a pattern deformation has occurred in the corresponding image block, and the pixel set corresponding to the image block with pattern deformation in the same frame image is marked and extracted to generate the difference map.

6. The image processing method for dry eye diagnosis according to claim 1, wherein, The step of tracking the location of the pattern deformation area in step S3 includes: Extract the geometric center coordinates of the pattern deformation region in the difference image of the current frame. In the next consecutive adjacent difference images, establish a search circle with a set radius centered on the geometric center coordinates for region matching. During the tracking process between consecutive frames, calculate the displacement velocity of the geometric center coordinates and remove suspended object interference regions whose displacement velocity exceeds a set velocity threshold. At the same time, define the upper and lower edge coordinate intervals of the image and remove eyelid interference regions whose center coordinates are located in the upper and lower edge coordinate intervals.

7. The image processing method for dry eye diagnosis according to claim 6, wherein, The steps in step S3, including tracking the area and confirming it as a true rupture region, include: The total number of pixels in the pattern deformation region matched within the search circle is counted and used as the area value of the pattern deformation region. The area values ​​of the same pattern deformation region in consecutive adjacent frames are extracted to generate an area change sequence, and short-term interference regions with fewer than a set frame number threshold are removed. If the area change sequence conforms to an overall increasing trend within a set allowable error range, the pattern deformation region is confirmed as a true break region, and an independent break mark is assigned to generate the corresponding break confirmation image.

8. The image processing method for diagnosing dry eye syndrome as described in claim 1, characterized in that, The step of calculating the first tear film breakup time in step S4 includes: Obtain the frame number in which the tear film rupture confirmation image is first generated, and subtract the frame number of the reference frame from the frame number to obtain the total number of frames in the interval; obtain the frame rate per second of the camera device that collects the grayscale video stream data of the eye, and divide the total number of frames in the interval by the frame rate per second to calculate the first tear film rupture time accurate to milliseconds; extract the outermost contour boundary coordinate set of the true rupture area in each frame of the tear film confirmation image and its relative timestamp when it was generated, and associate it with the first tear film rupture time to package it into a tear film status data packet.

9. The image processing method for diagnosing dry eye syndrome as described in claim 8, characterized in that, Step S4, after calculating the first tear film breakup time, also includes the step of generating a visual evaluation result: The tear film state data packet is parsed, and the corresponding warm and cool gradient colors are matched in a preset color spectrum according to the relative timestamp of the actual rupture area, wherein the earlier the relative timestamp, the warmer the color tone. According to the outermost contour boundary coordinate set, the pixel blocks with the matched colors are superimposed and rendered on the original image of the reference frame according to the set transparency parameters to generate a thermal overlay map for intuitively displaying the rupture location and time sequence.

10. An intelligent tear film breakup time analyzer for the diagnosis of dry eye syndrome, characterized in that, include: An image acquisition device for continuously acquiring a sequence of tear film images containing a projected pattern from the subject's eye; A memory, wherein a computer program is stored; Display device for visually presenting the assessment results of dry eye diagnosis; The processor is communicatively connected to the image acquisition device, the memory, and the display device. When the processor executes the computer program, it implements the image processing method for dry eye diagnosis as described in any one of claims 1 to 9, and outputs the evaluation results obtained by executing the method to the display device for display.