A feature classification system for the eyelid margin
By combining the eyelid edge segmentation module and feature classification module, using the U2-Net and EfficientNet models to classify eyelid edge features, the problem of limited classification accuracy in the prior art is solved, and efficient detection of fine-grained features is achieved.
Patent Information
- Application Number
- CN202411352010.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2044-09-26
AI Technical Summary
In the prior art, the eyelid margin feature classification system fails to fully utilize segmentation information to assist feature classification, resulting in limited accuracy of classification results, especially in fine-grained feature detection.
The combination of eyelid edge segmentation module and feature classification module is used to perform eyelid edge segmentation using the U2-Net model, and the significant probability map is fused through the cascade operation box, and feature classification is combined with the EfficientNet model, including shallow and deep feature extraction, feature calibration is used for feature calibration, and finally the classification results are obtained through the Softmax layer.
It improves the accuracy and efficiency of eyelid margin characteristics classification, can effectively detect subtle features such as eyelid margin redness and meibomian gland blockage, adapt to different working environments, and is suitable for conditions with limited computing resources.
Smart Images

Figure CN119229511B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to an eyelid margin feature classification system. Background Art
[0002] The eyelid margin is the junction of the eyelid skin and the conjunctiva. Maintaining a healthy eyelid margin is crucial to the health of the overall ocular surface. Blepharitis is one of the most common eye diseases, affecting approximately 47% of ophthalmological patients. Blepharitis often causes meibomian gland dysfunction, dry eyes, and blepharokeratoconjunctivitis (BKC). BKC may cause astigmatism, corneal lesions, amblyopia, vision loss, or corneal perforation. Therefore, early diagnosis and treatment of blepharitis are very important to prevent vision loss. According to the American Academy of Ophthalmology classification, blepharitis is divided into anterior blepharitis and posterior blepharitis according to anatomical location.
[0003] In recent years, deep learning has demonstrated significant potential in medical image segmentation and classification. One study proposed a deep learning-based method for automatically and objectively assessing eyelid morphology. This method demonstrated extremely high reliability and repeatability, demonstrating great potential for automated diagnosis and remote monitoring of eyelid-related diseases. Another study applied deep learning techniques to analyze eyelid morphology in patients with thyroid-related eye disease, demonstrating strong agreement between automated and manual measurements, suggesting the potential application of deep learning in automated eyelid morphology measurement. Furthermore, significant progress has been made in the automated detection and classification of diabetic retinopathy images using deep learning models.
[0004] However, a common flaw in these studies is that they lack attention to the specific fine-grained features of the eyelid margin, often relying on broader, non-specific morphological features. Therefore, there is an urgent need for a deep learning-based system dedicated to fine-grained eyelid margin image classification to detect subtle features such as eyelid margin redness and meibomian gland obstruction, thus filling this technical gap. Summary of the Invention
[0005] (1) Technical issues to be resolved
[0006] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a feature classification system for the eyelid margin, which solves the technical problem that the prior art regards segmentation and classification as independent tasks, fails to fully utilize segmentation information to assist feature classification, and results in limited accuracy of classification results.
[0007] (2) Technical solution
[0008] In order to achieve the above objectives, the main technical solutions adopted by the present invention include:
[0009] An embodiment of the present invention provides an eyelid margin feature classification system, comprising:
[0010] The eyelid margin segmentation module is used to input the received original feature image into a preset eyelid margin segmentation model to obtain a segmented image corresponding to the original feature image;
[0011] The outputs of the last encoder and all decoders of the eyelid margin segmentation model are processed by a preset 3×3 convolution and Sigmoid function to generate a saliency probability map corresponding to each output. All saliency probability maps are upsampled to the same size as the original feature image, fused through a cascade operation box, and processed by a 1×1 convolution and Sigmoid function to generate a segmentation image corresponding to the original feature map.
[0012] A feature classification module is used to input the segmented image into a preset feature classification model to obtain a feature classification result;
[0013] The eyelid margin segmentation model is based on U 2 -Net model, including encoder, decoder and saliency fuser, and the encoder and decoder are connected by skip connections;
[0014] The feature classification results include eyelid margin opening or eyelid margin congestion, and the corresponding grades of eyelid margin opening or eyelid margin congestion;
[0015] The feature classification model includes: a shallow feature extraction unit for extracting shallow features of an image, a deep feature extraction unit for extracting shallow features into deep features, an output unit for converting deep features into outputs, and a classification head for classifying the outputs.
[0016] Optionally, the feature classification module is configured to input the segmented image into a preset feature classification model to obtain a feature classification result, including:
[0017] The shallow feature extraction unit performs image dimensionality upscaling on the segmented image using a pre-set 3×3 convolutional layer, performs batch normalization on it, and finally outputs the shallow feature image corresponding to the segmented image using a pre-set Swish activation function;
[0018] The deep feature extraction unit extracts features from the shallow feature image according to a preset moving reverse residual convolution group to obtain a deep feature image;
[0019] The output unit is used to reduce the dimensionality of the deep feature image according to the preset 1×1 convolution layer, and then obtain the feature image corresponding to the segmented image through the preset average pooling layer and full connection layer;
[0020] The classification head is used to input the feature image into a preset fully connected layer and a Softmax layer to obtain a feature classification result.
[0021] Optionally, the moving reverse residual convolution group includes: MBConv blocks connected in sequence;
[0022] Each MBConv block is used to increase the dimension of the input image through a 1×1 dimensionality-increasing convolutional layer, and then perform batch normalization and Swish activation function activation in sequence to obtain the first process image;
[0023] The first process image is processed by a k×k depthwise separable convolutional layer, and then batch normalized and activated by the Swish activation function to obtain the second process image, where k is 3 or 5;
[0024] After the second process image is processed by the SE layer, it is sent to the Dropout layer after passing through the 1×1 dimensionality reduction convolution layer and batch normalization;
[0025] The output of the Dropout layer and the input image are added in phase to obtain an output image; the input image includes a shallow feature image or an output image of the MBConv block.
[0026] Optionally, the depth-wise separable convolution layer includes depth-wise convolution and point-wise convolution;
[0027] Each of the MBConv blocks processes the first process image through a k×k depthwise separable convolutional layer, and then performs batch normalization and Swish activation function activation again to obtain a second process image, including:
[0028] The depth convolution performs convolution processing on each channel of the first process image according to a preset formula to obtain a third process image;
[0029] Point-by-point convolution performs weighted combination on the third process image in the channel direction according to a preset formula 2 to obtain a second process image;
[0030] The formula 1 is:
[0031]
[0032] in, is the c-th output channel feature map obtained after the depth convolution operation, X c is the feature map of a specific channel of the input, W c is the convolution kernel corresponding to the input channel c, * is the convolution symbol;
[0033] The second formula is:
[0034]
[0035] in, is the c-th output channel feature map obtained after the depth convolution operation, W 1×1,c is the 1×1 convolution kernel in the point-by-point convolution, corresponding to the cth channel, Y pointwise It is the final output image after point-by-point convolution.
[0036] Optionally, the MBConv block processes the second process image through the SE layer, and then passes it through a 1×1 dimensionality reduction convolution layer and batch normalization processing before sending it to the Dropout layer, including:
[0037] The second process image is average pooled according to a preset global average pooling formula; the average pooling formula is:
[0038]
[0039] Among them, z c is the global average pooling result of the cth channel, H and W are the height and width of the input image, Y c,i,j is the pixel value of the cth channel at the spatial position (i, j) in the input feature map;
[0040] Subsequently, the second process image after average pooling is input into two consecutive fully connected layers, and the features of each channel are weighted according to the preset formula 3;
[0041] The formula three is:
[0042] s c =σ(W2·ReLU(W1·z c ));
[0043] Among them, s c is the attention weight of the c-th channel, W1 is the weight matrix of the first fully connected layer, and W2 is the weight matrix of the second fully connected layer;
[0044] After that, the channel is calibrated using the pre-set formula 4, and then sent to the Dropout layer after passing through the 1×1 dimensionality reduction convolution layer and batch normalization processing; the formula 4 is:
[0045]
[0046] in, is the output image after channel calibration, Y c is the original value of the second process image.
[0047] Optionally, the encoder is configured to obtain a third process image according to a preset formula five and input data; the formula five is:
[0048] y1=ReLU(BN(W*x1+b));
[0049] Among them, W is the convolution kernel, x1 is the input data, b is the bias term, * is the convolution operation, and BN is batch normalization;
[0050] The third process image is downsampled by a preset maximum pooling formula to obtain a downsampling result; the maximum pooling formula is:
[0051] y2=MaxPool(x2);
[0052] Among them, x2 is the third process image, and y2 is the output result after downsampling;
[0053] The decoder is configured to upsample the received data according to a preset bilinear difference formula to obtain an upsampling result; the bilinear difference formula is:
[0054]
[0055] Among them, (x3, y3) is the position where the difference is performed in the data received by the decoder, I o,p is the pixel value of the four pixels around (x3, y3), W op is the preset difference weight.
[0056] Optionally, the system further includes: a pre-processing module
[0057] The preprocessing module is configured to preprocess all image data in the first data training set and the second data training set, wherein the preprocessing includes normalization, resizing, and noise removal; the first data training set includes at least one eye image data and a mask corresponding to each eye image data; the second data training set includes at least one eyelid margin segmentation image and a classification result corresponding to each eyelid margin segmentation image;
[0058] A model training module, configured to train a pre-built eyelid margin segmentation model according to a pre-set first data training set to obtain a trained eyelid margin segmentation model;
[0059] The pre-built feature classification model is trained according to the pre-set second data training set to obtain a trained feature classification model.
[0060] Optionally, the system further comprises a model verification module;
[0061] The model validation module is configured to perform a performance evaluation on the trained eyelid margin segmentation model using a preset first data validation set, and adjust hyperparameters of the eyelid margin segmentation model according to the performance evaluation results;
[0062] A pre-set second data validation set is used to evaluate the performance of the trained feature classification model, and the hyperparameters of the feature classification model are adjusted according to the performance evaluation results.
[0063] Optionally, the system further includes a classification model adjustment module;
[0064] The classification model adjustment module is used to simultaneously scale the width, depth, and resolution of the feature classification model according to a load factor scaling strategy; the load factor scaling strategy is:
[0065]
[0066] Among them, α, β, and γ are scaling coefficients, and φ is the composite coefficient.
[0067] Optionally, the encoder and decoder are both composed of RSU-L or RSU-4F.
[0068] (3) Beneficial effects
[0069] The beneficial effects of the present invention are: an eyelid margin feature classification system of the present invention, by using an eyelid margin segmentation model and a feature classification model, realizes the use of segmentation information to assist feature classification, and is optimized for the characteristics of eyelid attrition, thereby improving the effect of processing eyelid margin features. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 This is a simplified diagram of the structure of an eyelid margin feature classification system;
[0071] Figure 2 This is a simplified diagram of the eyelid margin segmentation model structure;
[0072] Figure 3 This is a simplified diagram of the feature classification model structure;
[0073] Figure 4 This is a simplified diagram of the MBConv block structure;
[0074] Figure 5 This is a simplified diagram of the feature classification model structure after quantum optimization. DETAILED DESCRIPTION
[0075] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation methods in conjunction with the accompanying drawings.
[0076] An eyelid margin feature classification system proposed in an embodiment of the present invention utilizes an eyelid margin segmentation model and a feature classification model to utilize segmentation information to assist feature classification, and is optimized based on the characteristics of eyelid attrition, thereby improving the effect of processing eyelid margin features.
[0077] To better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. Instead, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0078] Example 1
[0079] This embodiment provides an eyelid margin feature classification system. Figure 1 As shown, including:
[0080] The preprocessing module collects eye image data including the eyelid margin and constructs the first data training set. The first data training set should include high-resolution eye image data and be detailedly annotated (i.e., with corresponding masks) for each image to ensure data accuracy and completeness.
[0081] Eyelid margin segmentation images are collected to construct a second data training set. The second data training set includes at least one eyelid margin segmentation image and a classification result corresponding to each eyelid margin segmentation image.
[0082] The collected image data is preprocessed, including steps such as image normalization, resizing, and noise removal. Normalization helps eliminate differences in brightness and contrast between images, resizing ensures that the images meet the model input requirements, and noise removal improves image quality.
[0083] The model training module is used to train the eyelid margin segmentation model according to the first data training set to obtain a trained eyelid margin segmentation model; during the training process, the cross entropy loss function is used to calculate the difference between the model prediction results and the true annotations, and the model parameters are continuously optimized through the gradient descent algorithm to improve the segmentation accuracy of the model.
[0084] The feature classification model is trained based on the second data training set to obtain a trained feature classification model. During the training process, a cross entropy loss function is selected to calculate the difference between the model prediction result and the true annotation.
[0085] a model validation module, configured to perform a performance evaluation on the trained eyelid margin segmentation model using a preset first data validation set, and adjust hyperparameters of the eyelid margin segmentation model according to the performance evaluation results;
[0086] A pre-set second data validation set is used to evaluate the performance of the trained feature classification model, and the hyperparameters of the feature classification model are adjusted according to the performance evaluation results.
[0087] Classification model adjustment module;
[0088] The classification model adjustment module is used to simultaneously scale the width, depth, and resolution of the feature classification model according to a load factor scaling strategy; the load factor scaling strategy is:
[0089]
[0090] Among them, α, β, and γ are scaling coefficients, and φ is the composite coefficient.
[0091] An eyelid margin segmentation module is used to input the received original feature map into a preset eyelid margin segmentation model to obtain a segmented image corresponding to the original feature map;
[0092] Eyelid margin segmentation model based on U 2 -Net model is established, including: encoder part, skip connection part, decoder part and saliency fuser part, which is used for feature extraction and information fusion between channels. The encoder part and the decoder part are connected by the skip connection part.
[0093] In general, the eyelid margin segmentation model structure is as follows Figure 2 As shown, it includes 6 levels of first encoders and 5 first decoders; among them, the first 4 levels of first encoders (i.e., En_1, En_2, En_3 and En_4) are RSU-7, RSU-6, RSU-5 and RSU-4 structures respectively, and the first 4 levels of first decoders (i.e., De_1, De_2, De_3 and De_4) are RSU-7, RSU-6, RSU-5 and RSU-4 structures respectively; the 5th level first encoder, the 6th level first encoder and the 5th level first decoder (i.e., En_5, En_6 and De_5) are all RSU-4F structures; each RSU-L includes L second encoders and L-1 second decoders; RSU-4F is a symmetric encoder structure with a height of 4 and the same as RSU-L; L is a non-zero natural number.
[0094] Each encoder (first encoder or second encoder) or decoder (first decoder or second decoder) mainly consists of a convolutional layer, a batch normalization layer, and a ReLU activation function.
[0095] The encoder is used to obtain a third process image according to a preset formula 5 and input data; the formula 5 is:
[0096] y1=ReLU(BN(W*x1+b));
[0097] Among them, W is the convolution kernel, x1 is the input data, b is the bias term, * is the convolution operation, and BN is batch normalization;
[0098] The third process image is downsampled by a preset maximum pooling formula to obtain a downsampling result; the maximum pooling formula is:
[0099] y2=MaxPool(x2);
[0100] Among them, x2 is the third process image, and y2 is the output result after downsampling;
[0101] The decoder is configured to upsample the received data according to a preset bilinear difference formula to obtain an upsampling result; the bilinear difference formula is:
[0102]
[0103] Among them, (x3, y3) is the position where the difference is performed in the data received by the decoder, I o,p is the pixel value of the four pixels around (x3, y3), W op is the preset difference weight.
[0104] Among them, the input of the first-level first encoder is the initial input of the eyelid margin segmentation model, and the input of any first encoder except the first-level first encoder is the output of the first encoder of the previous level of the first encoder; in the first four levels of first decoders, the input of any first decoder is the concatenation of the output of the first encoder of the same level corresponding to the first decoder and the output of the first decoder of the next level of the first decoder; the input of the fifth-level first decoder is the concatenation of the output of the fifth-level first encoder and the output of the sixth-level first encoder.
[0105] That is, the input of En_1 is the original feature image input to the eyelid margin segmentation model, the input of En_2 is the output of En_1, the input of En_3 is the output of En_2, the input of En_4 is the output of En_3, the input of En_5 is the output of En_4, and the input of En_6 is the output of En_5.
[0106] The input of De_1 is the concatenation of the output of En_1 and the output of De_2; the input of De_2 is the concatenation of the output of En_2 and the output of De_3; the input of De_3 is the concatenation of the output of En_3 and the output of De_4; the input of De_4 is the concatenation of the output of En_4 and the output of De_5; the input of De_5 is the concatenation of the output of En_5 and the output of En_6.
[0107] After the eyelid margin segmentation module receives the original feature image, the saliency fuser part processes the image output by the last-level first encoder (En_6) and the images output by all first decoders (De_1 to De_5) through a preset 3×3 convolution and Sigmoid function to generate a saliency probability map corresponding to each output. All saliency probability maps are upsampled to the same size as the original feature image, fused through a cascade operation box, and then processed through a 1×1 convolution and Sigmoid function to generate a segmentation image corresponding to the original feature map.
[0108] A feature classification module is used to input the segmented image into a preset feature classification model to obtain a feature classification result;
[0109] The feature classification model is based on EfficientNet, such as Figure 3 As shown, the network consists of nine stages: stage 1 through stage 9. Each convolutional layer is followed by batch normalization and a Swish activation function by default. Stage 1 (the shallow feature extraction unit) is a 3×3 convolutional layer, while stages 2 through 8 (the deep feature extraction units) consist of repeatedly stacked MBConv blocks. Stage 9 (the output unit) consists of three parts: a 1×1 convolution, average pooling, and finally a fully connected layer.
[0110] And each MBConv block, such as Figure 4 As shown in the figure, the first step is a 1×1 dimensionality increase convolution (followed by BN and Swish activation function), followed by a k×k depth-separable convolution layer (after BN and Swish activation function), k=3 or 5, then through a SE layer (using the attention mechanism to adjust the feature matrix), followed by a 1×1 dimensionality reduction convolution (followed by BN), and finally a Droupout layer. The output of Droupout and the input of MBConv are phase-added as the final output of the MBConv block.
[0111] Depthwise separable convolution is divided into two parts: depthwise convolution and pointwise convolution. Depthwise convolution performs convolution on each input channel according to formula 1. Pointwise convolution performs 1×1 convolution on the output of depthwise convolution according to formula 2.
[0112] The formula 1 is:
[0113]
[0114] in, is the c-th output channel feature map obtained after the depth convolution operation, X c is the feature map of a specific channel of the input, W c is the convolution kernel corresponding to the input channel c, * is the convolution symbol;
[0115] The second formula is:
[0116]
[0117] in, is the c-th output channel feature map obtained after the depth convolution operation, W 1×1,c is the 1×1 convolution kernel in the point-by-point convolution, corresponding to the cth channel, Y pointwise It is the final output image after point-by-point convolution.
[0118] The SE layer is used to recalibrate channel weights. It includes a global averaging layer and two fully connected layers connected in sequence. The global averaging layer performs average pooling on the input data according to the preset global average pooling formula. The average pooling results are input into two fully connected layers, and the features of each channel are weighted according to Formula 3. Afterwards, channel calibration is performed using Formula 4.
[0119] The average pooling formula is:
[0120]
[0121] Among them, z c is the global average pooling result of the cth channel, H and W are the height and width of the input image, Y c,i,j is the pixel value of the cth channel at the spatial position (i, j) in the input feature map; the formula three is:
[0122] s c =σ(W2·ReLU(W1·z c ));
[0123] Among them, s c is the attention weight of the c-th channel, W1 is the weight matrix of the first fully connected layer, and W2 is the weight matrix of the second fully connected layer;
[0124] The formula 4 is:
[0125]
[0126] in, is the output image after channel calibration, Y c is the original value of the second process image.
[0127] The classification head, including the fully connected layer and the Softmax layer, converts the input data into feature classification results.
[0128] This embodiment uses a double-layer nested U structure and RSU block design to effectively extract multi-scale features and achieve high-precision eyelid margin segmentation. The RSU block does not significantly increase the computational cost while maintaining high resolution, making it suitable for environments with limited computing resources.
[0129] Moreover, this embodiment does not rely on a pre-trained backbone network and can be trained from scratch to adapt to different working environments. It can also perform fine-grained feature classification on the segmented eyelid margin area through a feature classification model to improve classification accuracy and efficiency.
[0130] Example 2
[0131] This embodiment provides an eyelid margin feature classification system. The system is based on embodiment 1, and the feature classification model is as follows: Figure 5 As shown, it also includes: quantum feature extraction units corresponding one to one to stage2~stage8 (deep feature extraction units), and the quantum feature extraction units corresponding to each stage are located between the MBConv block of that stage and the MBConv block of the next stage. For example, the output of stage2 is used as the input of the quantum feature extraction unit corresponding to stage2, and the output of the quantum feature extraction unit corresponding to stage2 is used as the input of the MBConv block of stage3.
[0132] Each quantum feature extraction unit is used to encode the input data (feature map) into a quantum state based on the classical bits and classical digital information of the received input data to obtain the quantum state corresponding to the input data; extract the quantum features in the quantum state based on a pre-set quantum circuit to obtain a quantum feature map; and perform quantum measurement on the quantum state based on the quantum feature map, i.e., collapse the quantum state corresponding to the input data into the Z basis, thereby obtaining the quantum measurement result (usually in the form of electrostatic bits). Multiple measurements are performed to collect statistical data, extract the process data obtained by quantum calculation, and perform post-processing on the process to parse and format the classical data. Post-processing includes statistical analysis, data conversion, and feature extraction (usually through conversion to numerical values, calculation of probability distributions, or application of specific decoding algorithms). This classical data is the output image after quantum feature extraction. The output image after quantum feature extraction is concatenated with the input data and input into the next-order MBConv block.
[0133] Methods for quantum state encoding include:
[0134] Encoding of classical information into quantum information:
[0135] Qubit mapping: Mapping the state of a classical bit to a qubit. For example, we can use |0> to represent a classical 0 and |1> to represent a classical 1.
[0136] Multi-qubit encoding: For more complex classical information, multiple qubits can be used. For example, the classical binary string "101" can be encoded as a quantum state
[0137] The form of quantum state encoding:
[0138] Superposition state: Classical information can be encoded through superposition state. For example, quantum state represents the superposition state of a classical bit.
[0139] Entangled state: Quantum entangled state is a special quantum state in which quantum bits have strong correlations. Entangled state such as Bell state Used in quantum communication and quantum computing.
[0140] Coding schemes include:
[0141] Simple coding:
[0142] Direct mapping of quantum states: For example, mapping classical bits directly to quantum states |0> or |1>.
[0143] Amplitude encoding: Encoding classical information into a specific value of the quantum state amplitude. For example, mapping classical digital information α into a quantum state
[0144] Complex encoding:
[0145] Quantum error correction coding: To protect quantum information from noise and errors, quantum error correction codes are used. For example, Shor codes and Steane codes improve the robustness of quantum information through expansion and redundancy techniques.
[0146] Quantum data encoding: In quantum computing, quantum algorithms may need to encode data into specific quantum states to optimize computing performance. For example, quantum Fourier transforms can be used to encode quantum states to speed up the computing process.
[0147] Since quantum computing is currently limited by the number of quantum bits and noise effects, a hybrid optimization strategy can be adopted, such as combining quantum parameter updates with gradient descent of classical network parameters, and using the quantum approximate optimization algorithm (QAOA) to train the quantum circuit part.
[0148] This embodiment adds a quantum feature extraction unit on the basis of the feature classification model, which improves the overall feature extraction capability of the model and is more suitable for tasks with complex features.
[0149] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature specified as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, "plurality" means two or more, unless otherwise specifically defined.
[0150] In the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," "connect," "fixed," etc. should be understood broadly. For example, they may refer to fixed connection, detachable connection, or integration; mechanical connection or electrical connection; direct connection or indirect connection through an intermediate medium; and internal communication between two components or interaction between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on specific circumstances.
[0151] In the present invention, unless otherwise expressly specified or limited, when a first feature is "above" or "below" a second feature, it may mean that the first and second features are in direct contact, or that the first and second features are in indirect contact through an intermediate medium. Furthermore, when a first feature is "above," "above," or "above" a second feature, it may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is at a higher level than the second feature. When a first feature is "below," "below," or "below" a second feature, it may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is at a lower level than the second feature.
[0152] In the description of this specification, the terms "one embodiment", "some embodiments", "embodiments", "examples", "specific examples" or "some examples" refer to the specific features, structures, materials or characteristics described in conjunction with the embodiment or example and included in at least one embodiment or example of the present invention. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and features of different embodiments or examples, unless they are mutually inconsistent.
[0153] Although the embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and are not to be construed as limitations on the present invention. A person skilled in the art may alter, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A system for classifying eyelid margin features, characterized in that: include: The eyelid margin segmentation module is used to input the received original feature image into a preset eyelid margin segmentation model to obtain a segmented image corresponding to the original feature image; The outputs of the last encoder and all decoders of the eyelid margin segmentation model are processed by a preset 3×3 convolution and Sigmoid function to generate a saliency probability map corresponding to each output. All saliency probability maps are then input into a saliency fuser to generate a segmentation image corresponding to the original feature map. The saliency fuser is used to upsample all saliency probability maps output by the last level encoder and all decoders to the same size as the original feature image, fuse them through cascade operation boxes, and then process them through 1×1 convolution and sigmoid function to generate a segmentation image corresponding to the original feature map; A feature classification module is used to input the segmented image into a preset feature classification model to obtain a feature classification result; The eyelid margin segmentation model is based on U 2 -Net model, including encoder, decoder and saliency fuser, and the encoder and decoder are connected by skip connections; The feature classification results include eyelid margin opening or eyelid margin congestion, and the corresponding grades of eyelid margin opening or eyelid margin congestion; The feature classification model comprises: a layer of shallow feature extraction units, 7 layers of deep feature extraction units, a layer of output units and a classification head connected in sequence; The shallow feature extraction unit performs image dimensionality upscaling on the segmented image using a pre-set 3×3 convolutional layer, performs batch normalization on it, and finally outputs the shallow feature image corresponding to the segmented image using a pre-set Swish activation function; Any deep-level feature extraction unit extracts features from the shallow-level feature image according to a preset moving reverse residual convolution group to obtain a deep-level feature image; The output unit is used to reduce the dimensionality of the deep feature image according to the preset 1×1 convolution layer, and then obtain the feature image corresponding to the segmented image through the preset average pooling layer and full connection layer; A classification head is used to input the feature image into a preset fully connected layer and a Softmax layer to obtain a feature classification result; The moving reverse residual convolution group includes: at least one MBConv block and quantum feature extraction units corresponding to the MBConv blocks one by one, and each quantum feature extraction unit is located after its corresponding MBConv block; Each quantum feature extraction unit is used to: perform quantum state encoding on the output image of the MBConv block according to the classical bits and classical digital information corresponding to the received output image of the MBConv block, and obtain the quantum state corresponding to the output image of the MBConv block; extract the quantum features in the quantum state according to a pre-set quantum circuit to obtain the corresponding quantum feature map; perform quantum measurement on the quantum state according to the quantum feature map, collapse the quantum state corresponding to the input data into the Z basis, obtain the corresponding quantum measurement result, perform multiple measurements to collect statistical data, perform post-processing on all of them, obtain the corresponding quantum feature image, splice the quantum feature image with the output image of the MBConv block, and obtain the output image of the quantum feature extraction unit; The quantum feature extraction unit is optimized in advance by a hybrid optimization strategy; the hybrid optimization strategy is used to combine quantum parameter update with gradient descent of classical network parameters, and optimize the quantum circuit part using a quantum approximate optimization algorithm.
2. The eyelid margin feature classification system according to claim 1, characterized in that: Each MBConv block is used to increase the dimension of the input image through a 1×1 dimensionality-increasing convolutional layer, and then perform batch normalization and Swish activation function activation in sequence to obtain the first process image; The first process image is processed by a k×k depthwise separable convolutional layer, and then batch normalized and activated by the Swish activation function to obtain the second process image, where k is 3 or 5; After the second process image is processed by the SE layer, it is sent to the Dropout layer after passing through the 1×1 dimensionality reduction convolution layer and batch normalization; The output of the Dropout layer and the input image are added in phase to obtain an output image; the input image includes a shallow feature image or an output image of the MBConv block.
3. The eyelid margin feature classification system according to claim 2, characterized in that: The depth-wise separable convolution layer includes depth-wise convolution and point-wise convolution; Each of the MBConv blocks processes the first process image through a k×k depthwise separable convolutional layer, and then performs batch normalization and Swish activation function activation again to obtain a second process image, including: The depth convolution performs convolution processing on each channel of the first process image according to a preset formula to obtain a third process image; Point-by-point convolution performs weighted combination on the third process image in the channel direction according to a preset formula 2 to obtain a second process image; The formula 1 is: in, is the c-th output channel feature map obtained after the depth convolution operation, X c is the feature map of a specific channel of the input, W c is the convolution kernel corresponding to the input channel c, * is the convolution symbol; The second formula is: in, is the c-th output channel feature map obtained after the depth convolution operation, W 1×1,c is the 1×1 convolution kernel in the point-by-point convolution, corresponding to the cth channel, Y pointwise It is the final output image after point-by-point convolution.
4. The eyelid margin feature classification system according to claim 2, wherein: The MBConv block processes the second process image through the SE layer, and then sends it to the Dropout layer after a 1×1 dimensionality reduction convolution layer and batch normalization processing, including: The second process image is average pooled according to a preset global average pooling formula; the average pooling formula is: Among them, z c is the global average pooling result of the cth channel, H and W are the height and width of the input image, Y c,i,j is the pixel value of the cth channel at the spatial position (i, j) in the input feature map; Subsequently, the second process image after average pooling is input into two consecutive fully connected layers, and the features of each channel are weighted according to the preset formula 3; The formula three is: s c =σ(W2·ReLU(W1·z c )); Among them, s c is the attention weight of the c-th channel, W1 is the weight matrix of the first fully connected layer, and W2 is the weight matrix of the second fully connected layer; After that, the channel is calibrated using the pre-set formula 4, and then sent to the Dropout layer after passing through the 1×1 dimensionality reduction convolution layer and batch normalization processing; the formula 4 is: in, is the output image after channel calibration, Y c is the original value of the second process image.
5. The eyelid margin feature classification system according to claim 1, wherein: The encoder is used to obtain a third process image according to a preset formula 5 and input data; the formula 5 is: y1=ReLU(BN(W*x1+b)); Among them, W is the convolution kernel, x1 is the input data, b is the bias term, * is the convolution operation, and BN is batch normalization; The third process image is downsampled by a preset maximum pooling formula to obtain a downsampling result; the maximum pooling formula is: y2=MaxPool(x2); Among them, x2 is the third process image, and y2 is the output result after downsampling; The decoder is configured to upsample the received data according to a preset bilinear difference formula to obtain an upsampling result; the bilinear difference formula is: Among them, (x3, y3) is the position where the difference is performed in the data received by the decoder, I o,p is the pixel value of the four pixels around (x3, y3), W op is the preset difference weight.
6. The eyelid margin feature classification system according to claim 1, wherein: The system also includes a pre-processing module The preprocessing module is configured to preprocess all image data in the first data training set and the second data training set, wherein the preprocessing includes normalization, resizing, and noise removal; the first data training set includes at least one eye image data and a mask corresponding to each eye image data; the second data training set includes at least one eyelid margin segmentation image and a classification result corresponding to each eyelid margin segmentation image; A model training module, configured to train a pre-built eyelid margin segmentation model according to a pre-set first data training set to obtain a trained eyelid margin segmentation model; The pre-built feature classification model is trained according to the pre-set second data training set to obtain a trained feature classification model.
7. The eyelid margin feature classification system according to claim 1, wherein: The system also includes a model validation module; The model validation module is configured to perform a performance evaluation on the trained eyelid margin segmentation model using a preset first data validation set, and adjust hyperparameters of the eyelid margin segmentation model according to the performance evaluation results; A pre-set second data validation set is used to evaluate the performance of the trained feature classification model, and the hyperparameters of the feature classification model are adjusted according to the performance evaluation results.
8. The eyelid margin feature classification system according to claim 1, wherein: The system also includes a classification model adjustment module; The classification model adjustment module is used to simultaneously scale the width, depth, and resolution of the feature classification model according to a load factor scaling strategy; the load factor scaling strategy is: Among them, α, β, and γ are scaling coefficients, and φ is the composite coefficient.
9. The eyelid margin feature classification system according to claim 1, wherein: The encoder and decoder are both composed of RSU-L or RSU-4F.
Citation Information
Patent Citations
CNN-based meibomian gland region and meibomian gland atrophy region segmentation model and method
CN116205934A
A method and electronic device for distinguishing pet disease using deep-learning
KR1020220138900A