Infrared thermal imaging facial paralysis severity assessment method based on weighted temperature texture features
Through the infrared thermal imaging method based on weighted temperature texture features, combined with the inverse residual multi-scale convolution attention algorithm and support vector machine, the subjectivity and asymmetry problems in facial paralysis assessment are solved, and the objective and accurate assessment of the severity of facial paralysis is achieved. Accurate assessment improves diagnostic performance.
Patent Information
- Application Number
- CN202410596146.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-08-23
AI Technical Summary
Existing facial paralysis assessment methods have problems such as poor subjectivity, facial expression muscle dysfunction and natural asymmetry affecting assessment accuracy, and external environmental factors leading to poor assessment results.
An infrared thermal imaging method based on weighted temperature texture features is used to extract thermal asymmetry features through the facial region of interest segmentation algorithm and support vector machine using inverse residual multi-scale convolution attention to achieve automatic grading of facial paralysis severity.
It achieves objective and unified assessment standards, reduces inter- and intra-group differences in assessment results, avoids the influence of facial expression movement completion and natural asymmetry, eliminates the influence of light and angle factors, and improves the accuracy of facial paralysis diagnosis. sex.
Smart Images

Figure CN118526164A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of facial paralysis assessment and rehabilitation, and in particular to an infrared thermal imaging facial paralysis severity assessment method based on weighted temperature texture features. Background Art
[0002] At present, there are two main methods for assessing the severity of facial paralysis. One is that doctors observe the patient's facial movements (smiling, raising eyebrows, closing eyes, etc.), measure the range of motion on both sides of the face, and score the severity of facial paralysis based on the asymmetry of facial movements, such as the House-Brackmann scoring system. The other method is mainly a computer-assisted automatic facial paralysis severity assessment system based on the House-Brackmann scoring standard. This type of system takes photos or videos of the patient's facial movements and automatically assesses the asymmetry of facial muscle movements in patients with facial paralysis through image processing methods.
[0003] House–Brackmann (HB) scoring scale: The disadvantage is that it varies from person to person. The evaluation results are based on the subjective experience of the physician, and there are large differences between and within groups. At the same time, the classification principles in the HB scoring scale can only be applied skillfully and accurately by professional clinicians. Different clinicians often make different judgments on the same patient due to their own experience and different understanding of the disease, which brings a certain degree of error to the assessment of facial paralysis.
[0004] The automatic facial feature tracking algorithm proposed by Wachtman et al.: Although its experimental results are positively correlated with the HB score, this type of method has obvious defects: most patients with facial paralysis have dysfunctional facial expression muscles and cannot fully and accurately complete the prescribed standard facial expression movements. At the same time, repetitive facial expressions will cause psychological resistance in patients.
[0005] Park et al. proposed a method for assessing facial nerve function: Since some human facial expressions have a certain natural asymmetry, this method cannot fully determine whether the asymmetry of a subject's facial expression is caused by facial paralysis. At the same time, when external environmental factors such as light or shooting angle make the image itself poor, the severity of facial paralysis will be incorrectly assessed, which is not conducive to the diagnosis and treatment of patients with facial paralysis. Summary of the invention
[0006] In view of the deficiencies in the prior art, the present invention provides an infrared thermal imaging facial paralysis severity assessment method based on weighted temperature texture features, which solves the problem that the House–Brackmann (HB) scoring scale method "varies from person to person", and its assessment results are based on the subjective experience of doctors, and there are large differences between and within groups, and the facial feature automatic tracking algorithm. Most patients with facial paralysis have dysfunction of facial expression muscles and cannot fully and accurately complete their prescribed standard facial expression movements. At the same time, repeated facial expressions will cause psychological resistance in patients. A method for assessing facial nerve function. Since some human facial expressions have a certain natural asymmetry, such methods cannot fully determine whether the asymmetry of a subject's facial expression is caused by facial paralysis. At the same time, when external environmental factors such as light or shooting angle make the image itself poor, the severity of the facial paralysis will be incorrectly assessed, which is not conducive to the diagnosis and treatment of patients with facial paralysis.
[0007] To achieve the above objectives, the present invention is implemented by the following technical scheme: an infrared thermal imaging facial paralysis severity assessment method based on weighted temperature texture features, comprising the following steps:
[0008] Step 1: Collect infrared thermal images of the subject's face;
[0009] Step 2: Automatic segmentation of facial thermal image region of interest. We propose a facial region of interest segmentation algorithm using inverted residual multi-scale convolutional attention for patients with facial paralysis.
[0010] Step 3: Extract thermal asymmetry features. Thermal asymmetry features refer to the Euclidean distance between the features extracted from the same area symmetrically on the left and right sides of the face, that is, between two regions of interest. The extracted features include two types, one is the weighted temperature feature and the other is the weighted average grayscale texture feature;
[0011] Step 4: Automatically classify the severity of facial paralysis. Input the thermal asymmetry features into the support vector machine, and output three levels: mild, moderate, and severe. The parameters of the support vector machine are obtained through machine learning.
[0012] Preferably, in step 1, in step 1, the infrared thermal image acquisition specification is that all subjects are required not to smoke, drink, take medicine, use cosmetics, or perform strenuous exercise within 12 hours before the facial infrared thermal image acquisition, so as to try to avoid changes in body temperature distribution caused by changes in human physiological rhythms. Before the facial infrared thermal image acquisition, the subject needs to sit quietly in the detection environment for 20 minutes to adapt to the room temperature. After calming down, sit 1.2m away from the infrared camera, with a curtain placed behind to obtain a background with uniform temperature distribution. The subject looks straight ahead with both eyes, and the infrared thermal imager takes infrared thermal images of the front of the subject's head.
[0013] Preferably, in step 2, the MobileNetV3 network is used as the backbone, and the facial region of interest segmentation algorithm of the inverted residual multi-scale convolutional attention is introduced, and a multi-branch prediction structure is proposed to improve the local organ prediction accuracy. According to the distribution of key points and the characteristics of the facial physiological structure, five regions including the forehead, eyes, nose, mouth and cheeks are divided, and each region is divided from the midline into two left and right symmetrical regions of interest.
[0014] Preferably, in step 2, in this network, a series of Mbneck networks are stacked, and the activation functions are relu and hardwish. The Mbneck network is composed of three modules: deep separable convolution, inverted residual structure and multi-scale convolution attention. Then, the key point prediction task is performed by classifying the facial organs into different subsets.
[0015] Preferably, in step 2, in the Mbneck structure, first a 1×1 convolution is used to increase the dimension, then a 3×3 depth-separable convolution is used for feature extraction, then a multi-scale convolution attention module is used, and finally a 1×1 convolution is used to reduce the dimension.
[0016] Preferably, in step 2, the depthwise separable convolution consists of two parts, namely, depthwise convolution and 1×1 point convolution. Assuming that the size of the input feature map of the standard convolution is D F ×D F ×M, the size of the convolution kernel is D K ×D K ×M×N, the size of the output feature map is D F ×D F ×N Assume that the spatial resolution of the feature map is D F ×D F unchanged, where M and N are the number of channels of the input feature map and the output feature map. Then the amount of calculation for the standard convolution is D K ×D K ×M×N×D F ×D F , the parameter is D K ×D K ×M×N.
[0017] Preferably, in step three,
[0018] ①Weighted temperature characteristics:
[0019] The weighted temperature feature represents the weighted sum of the maximum temperature value, the minimum temperature value, and the average temperature value in the entire region of interest. The weighted temperature feature represents the average value of all temperature values in the entire region of interest. The weighted temperature feature represents the average value of the largest 10% of all temperature values in the entire region of interest. The weighted temperature feature represents the average value of the smallest 10% of all temperature values in the entire region of interest. The calculation formula is as follows:
[0020]
[0021]
[0022]
[0023]
[0024] Where N represents the number of all pixels in a region of interest, T j Represents the temperature value of the i-th pixel in a region of interest, T j Indicates T i 's in ascending order.
[0025] ②Average weighted grayscale texture features:
[0026] The weighted average grayscale texture feature refers to the average value of the second-order texture feature calculated by the grayscale co-occurrence matrix obtained under different parameters.
[0027] Gray-level co-occurrence matrix is a statistical method that considers the spatial distribution characteristics of temperature on infrared thermal images. It characterizes texture features by calculating the frequency of pixel pairs with specific values and specific spatial relationships in thermal images. The gray-level co-occurrence matrix starts from the gray level of the N×N image f(x,y) with pixel i, and counts the distance to i. The probability that pixels with grayscale j appear simultaneously is P(i, j, δ, θ);
[0028] The mathematical expression is: P(i,j,δ,θ)={[(x,y),(x+dx,y+dy]|f(x,y)=i,f(x+dx,y+dy)=j}
[0029] The parameters of the gray-level co-occurrence matrix in this study are as follows: the offset distance δ is set to 2 and 5, the offset direction θ is set to 0°, 45°, 90°, 135°, and the maximum gray level G is set to 16 and 32. Any combination of the above parameters can be used to obtain 16 gray-level co-occurrence matrices G. k (k<=16).
[0030] Through the gray-level co-occurrence matrix G k Four second-order texture features are calculated:
[0031] a) Contrast: F1 k =∑ i ∑ j |ij| 2 P(i,j), used to measure the clarity of infrared thermal images and the depth of texture grooves;
[0032] b) Correlation coefficient: Correlation for characterizing local temperature distribution of infrared thermal images;
[0033] c) Energy: F3 k =∑ i ∑ j P(i,j) 2 , used to reflect the uniformity of temperature distribution and texture coarseness;
[0034] d) Homogeneity: It is used to reflect the homogeneity of image texture and measure the local change of temperature distribution.
[0035] The weighted average grayscale texture feature refers to the weighted average of the above four second-order texture features:
[0036]
[0037]
[0038]
[0039]
[0040] The present invention provides an infrared thermal imaging facial paralysis severity assessment method based on weighted temperature texture features, which has the following beneficial effects:
[0041] The present invention unifies the evaluation criteria through an objective evaluation method, and solves the problem of large inter-group and intra-group differences in the results of the House–Brackmann (HB) scoring scale method; judges by infrared thermal imaging of patients in a relaxed state, and solves the problem that patients cannot completely and accurately complete the prescribed facial expression movements in the facial feature automatic tracking algorithm, and avoids patients from having resistance to repeated facial expressions; objectively evaluates by using the temperature difference between the affected side and the healthy side of the face, and longitudinally compares it with the self-evaluation data, and avoids the influence of certain natural asymmetry of some people's facial expressions on the evaluation results, and eliminates the influence of shooting light and angle on the evaluation results. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a system principle flow chart of the present invention;
[0043] Figure 2 It is the overall network structure flow chart of the present invention;
[0044] Figure 3 The Mbneck network structure flow chart of the present invention;
[0045] Figure 4 The specific division method of the facial region of interest of the present invention;
[0046] Figure 5 Schematic diagram of standard convolution of the present invention;
[0047] Figure 6 Schematic diagram of depth-wise separable convolution of the present invention;
[0048] Figure 7 This is a flow chart of the multi-scale convolutional attention module of the present invention;
[0049] Figure 8 It is the overall network division diagram of the present invention;
[0050] Fig. 9 This is a diagram showing the preliminary experimental results of infrared thermal imaging facial key point positioning of the present invention. DETAILED DESCRIPTION
[0051] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] Embodiment 1:
[0053] like Figure 1 As shown, an embodiment of the present invention provides an infrared thermal imaging facial paralysis severity assessment method based on weighted temperature texture features, comprising the following steps:
[0054] Step 1: Collect infrared thermal images of the subject's face;
[0055] Step 2: Automatic segmentation of facial thermal image region of interest. We propose a facial region of interest segmentation algorithm using inverted residual multi-scale convolutional attention for patients with facial paralysis.
[0056] Step 3: Extract thermal asymmetry features. Thermal asymmetry features refer to the Euclidean distance between the features extracted from the same area symmetrical on the left and right sides of the face, that is, between two regions of interest. The extracted features include two types, one is the weighted temperature feature and the other is the weighted average grayscale texture feature.
[0057] Step 4: Automatically grade the severity of facial paralysis by inputting thermal asymmetry features into a support vector machine and outputting three levels: mild, moderate, and severe. The parameters of the support vector machine are obtained through machine learning.
[0058] In step 1, the infrared thermal image acquisition specification requires all subjects not to smoke, drink, take medicine, use cosmetics or engage in strenuous exercise within 12 hours before facial infrared thermal image acquisition, so as to try to avoid changes in body temperature distribution caused by changes in human physiological rhythms. Before facial infrared thermal image acquisition, the subjects need to sit quietly in the test environment for 20 minutes to adapt to the room temperature. After calming down, they sit 1.2m away from the infrared camera with a curtain placed behind them to obtain a background with uniform temperature distribution. The subjects look straight ahead with their eyes, and the infrared thermal imager takes infrared thermal images of the front of the subject's head.
[0059] In step 2, we use the MobileNetV3 network as the backbone, introduce the facial region of interest segmentation algorithm with inverted residual multi-scale convolutional attention, and propose a multi-branch prediction structure to improve the accuracy of local organ prediction. In facial thermal image processing, we carefully divide the five facial regions of interest, including forehead, eyes, nose, mouth and cheeks, according to the distribution of key points and the characteristics of facial physiological structure. The division of these regions not only takes into account the accurate location of the organs, but also fully considers their shape and size to ensure that the temperature information of each organ can be captured to the maximum extent.
[0060] In order to accurately divide the region of interest, we first need to determine the facial midline so that the face can be divided into two symmetrical parts. Because it can help us locate the position and range of facial organs more accurately. In order to determine the facial midline, we selected the x-axis coordinates of a series of key points for average calculation. Specifically, we selected the 28th, 29th, 30th, 31st, 34th, 52nd, 58th, 63rd and 67th points on the face. These key points are usually distributed in the central area of the face and can better represent the position of the facial midline. After obtaining the facial midline, the specific division method of the five facial regions of interest is as follows Figure 4 .
[0061] In step 2, in this network, a series of Mbneck networks are stacked, and its activation functions are relu and hardwish. The Mbneck network is composed of three modules: deep separable convolution, inverted residual structure and multi-scale convolution attention. Then, the key point prediction task is performed by classifying the facial organs into different subsets.
[0062] In step 2, in the Mbneck structure, a 1×1 convolution is first used to increase the dimension, and then a 3×3 depth-separable convolution is used for feature extraction. After that, an inverted residual multi-scale convolution attention module is used, and finally a 1×1 convolution is used for dimensionality reduction.
[0063] In step 2, the depthwise separable convolution consists of two parts, namely depthwise convolution and 1×1 point convolution. Assume that the size of the input feature map of the standard convolution is, the size of the convolution kernel is, and the size of the output feature map is. Assume that the spatial resolution of the feature map remains unchanged, where and is divided into the number of channels of the input feature map and the output feature map. Then the computational complexity of the standard convolution is and the number of parameters is.
[0064] In step three,
[0065] ①Weighted temperature characteristics:
[0066] Weighted temperature characteristics Indicates the maximum temperature value T in the entire area of interest max , minimum temperature value T min , average temperature value T mean The weighted sum of mean represents the average value of all temperature values in the entire area of interest, T max It represents the average value of the largest 10% of all temperature values in the entire area of interest, T min It represents the average value of the smallest 10% of all temperature values in the entire area of interest, and the calculation formula is as follows:
[0067]
[0068]
[0069]
[0070]
[0071] Where N represents the number of all pixels in a region of interest, T i Represents the temperature value of the i-th pixel in a region of interest, T j Indicates T i 's in ascending order.
[0072] ②Weighted average grayscale texture features:
[0073] The weighted average grayscale texture feature refers to the average value of the second-order texture feature calculated by the grayscale co-occurrence matrix obtained under different parameters.
[0074] Gray-level co-occurrence matrix is a statistical method that considers the spatial distribution characteristics of temperature on infrared thermal images. It characterizes texture features by calculating the frequency of pixel pairs with specific values and specific spatial relationships in thermal images. The gray-level co-occurrence matrix starts from the gray level of the N×N image f(x,y) with pixel i, and counts the distance to i. The probability that pixels with grayscale j appear simultaneously is P(i,j,δ,θ).
[0075] The mathematical expression is: P(i,j,δ,θ)={[(x,y),(x+dx,y+dy]|f(x,y)=i,f(x+dx,y+dy)=j}
[0076] The parameters of the gray-level co-occurrence matrix in this study are as follows: the offset distance δ is set to 2 and 5, the offset direction θ is set to 0°, 45°, 90°, 135°, and the maximum gray level G is set to 16 and 32. Any combination of the above parameters can be used to obtain 16 gray-level co-occurrence matrices G. k (k<=16).
[0077] Through the gray-level co-occurrence matrix G k Four second-order texture features are calculated:
[0078] a) Contrast: F1 k =∑ i ∑ j |ij| 2 P(i,j), used to measure the clarity of infrared thermal images and the depth of texture grooves;
[0079] b) Correlation coefficient: Correlation for characterizing local temperature distribution of infrared thermal images;
[0080] c) Energy: F3 k =∑ i ∑ j P(i,j) 2 , used to reflect the uniformity of temperature distribution and texture coarseness;
[0081] d) Homogeneity: It is used to reflect the homogeneity of image texture and measure the local change of temperature distribution.
[0082] The weighted average grayscale texture feature refers to the weighted average of the above four second-order texture features:
[0083]
[0084]
[0085]
[0086]
[0087] Specifically, 1. Sample clinical screening and construction of infrared thermal imaging data set
[0088] (1) Sample clinical screening criteria
[0089] The project team will recruit 30 patients with facial paralysis who meet the inclusion criteria to construct an infrared thermal imaging test set. The inclusion criteria are: 1) age ≥ 18 years old; 2) meet the clinical diagnostic criteria for facial paralysis, acute onset and unilateral facial nerve hemiplegia; 3) seek medical treatment within 3 days of onset and have not yet received acupuncture treatment. Exclusion criteria are: 1) patients with and have had similar symptoms such as herpes zoster, Lyme disease, stroke and brain tumors; 2) patients with facial skin diseases, ophthalmic diseases, otolaryngological diseases and trigeminal neuralgia that may change the distribution of facial temperature. 3) patients who have undergone facial plastic surgery. According to the Declaration of Helsinki, all subjects will be fully informed of the research plan and potential risks before the start of the study and sign an informed consent form.
[0090] (2) Infrared thermal imaging acquisition specifications
[0091] All subjects were required not to smoke, drink, take medicine, use cosmetics or do strenuous exercise within 12 hours before the facial infrared thermal image acquisition. The acquisition time was limited to between 9 and 10 am to try to avoid changes in human body temperature distribution caused by changes in human physiological rhythms. Before the facial infrared thermal image acquisition, the subjects were required to sit quietly in the test environment for 20 minutes to adapt to the room temperature. After calming down, they sat 1.2m away from the infrared camera, with a curtain behind them to obtain a background with uniform temperature distribution. The subjects looked straight ahead with their eyes, and the infrared thermal imager captured the infrared thermal images of the front of the subject's head. Each group of infrared thermal images of the subject was taken twice, with an interval of 5 minutes each time. The group with the best imaging effect was selected and analyzed using the infrared thermal image analysis software (MC2.1) that comes with the thermal imager, and the other group of thermal images was used as a backup. In addition, after the infrared thermal image acquisition, the clinician will use the House-Brackmann (HB) scoring scale to evaluate the severity of facial paralysis of each subject and give the facial nerve function grade.
[0092] (3) Construction of sample set
[0093] In the previous work, we have collected a total of 220 infrared thermal images of the face of patients with facial paralysis at different stages. After each infrared thermal image collection, clinicians will use the House-Brackmann (HB) scoring scale to evaluate the facial nerve function of patients with facial paralysis. The HB scoring scale is the most commonly used clinical evaluation standard for facial nerve function. Physicians require patients with facial paralysis to complete the facial expression movements specified in the HB scoring scale, judge their completion and muscle symmetry, and divide the severity of facial paralysis from mild to severe into six levels, with level I being normal facial function and level VI being complete facial paralysis. Therefore, each facial infrared thermal image will be associated with the facial nerve function level given by the physician, and together they constitute a training set. The 30 newly collected samples in this project will be used as a test set to evaluate the performance of the classifier in actual clinical applications.
[0094] 2. Automatic Segmentation of Thermal Images
[0095] Based on previous studies and combined with the symptoms of facial paralysis, this study divided the frontal thermal image into ten symmetrical regions of interest, as shown above. Figure 3 As shown in the figure. Automatic segmentation of facial regions of interest helps to improve the reliability of thermal asymmetry analysis of facial infrared thermal images. The basis of automatic segmentation of facial thermal image regions of interest is the localization of facial key points. Some studies use edge detection, AAM or CSR to automatically locate key points on facial infrared thermal images, but these methods are not suitable for patients with facial paralysis with abnormal facial temperature. In recent years, the emergence of convolutional neural networks has led to rapid development of visible light facial key point localization, but there is currently no effective method specifically for facial infrared thermal images. Therefore, we propose a facial region of interest segmentation algorithm based on inverted residual multi-scale convolutional attention for patients with facial paralysis.
[0096] The temperature changes in most areas of the face are gentle and have strong spatial correlation, which is mainly due to the uniform distribution of blood vessels in these facial areas. However, in organ areas, due to changes in physiological structure, specific changes in temperature occur. For example: because the tissue of the nose wing is thinner, it is closer to the ambient temperature than other parts; due to the spatial structure and physiological characteristics of the eyes, nostrils and mouth, their temperature will change dramatically compared with the surrounding skin temperature. These temperature changes are related to the physiological characteristics of the human face and have good generalization characteristics. Therefore, with the MobileNetV3 network as the backbone, the facial region of interest algorithm of the inverted residual multi-scale convolution attention is adopted, and a multi-branch prediction structure is proposed to improve the local organ prediction accuracy. Compared with the traditional infrared thermal image face alignment algorithm, this algorithm has higher detection accuracy, and also has excellent performance in facial paralysis infrared thermal imaging. The overall model is as follows Figure 2 shown.
[0097] In this network, a series of Mbneck networks are stacked, and its activation functions are relu and hardwish. The Mbneck network is composed of three modules: deep separable convolution, inverted residual structure and multi-scale convolution attention. Then, the key point prediction task is performed by classifying the facial organs into different subsets.
[0098] The Mbneck network structure is as follows Figure 3 As shown in the figure, it is mainly composed of depth-wise separable convolution, inverted residual and multi-scale convolution attention modules.
[0099] In the Mbneck structure, a 1×1 convolution is first used to increase the dimension, and then a 3×3 depth-separable convolution is used for feature extraction. After that, a multi-scale convolution attention module is used, and finally a 1×1 convolution is used for dimensionality reduction.
[0100] (1) Depthwise Separable Convolution
[0101] Depthwise separable convolution consists of two parts: depthwise convolution and 1×1 point convolution. Figure 5 The following is a schematic diagram of a standard convolution. Assume that the size of the input feature map of the standard convolution is D. F ×D F ×M, the size of the convolution kernel is D K ×D K ×M×N, the size of the output feature map is D F ×D F ×N (assuming the spatial resolution of the feature map is D F ×D F unchanged), where M and N are the number of channels of the input feature map and the output feature map. Then the amount of calculation for the standard convolution is D K ×D K ×M×N×D F ×D F , the parameter is D K ×D K ×M×N.
[0102] Unlike standard convolution, where each convolution kernel calculates all channels in the feature map, a convolution kernel in depthwise separable convolution only calculates the feature map of one channel, and then uses 1×1 point convolution to perform channel fusion on the output feature map of the depthwise convolution. In addition, 1×1 point convolution also has the function of dimensionality increase and decrease, adjusting the channels of the feature map of the depthwise convolution to the specified number of channels. Figure 6 shown.
[0103] In the depthwise separable convolution, assuming that the convolution kernel size of the depthwise convolution is D K ×D K ×M, the convolution kernel size of 1×1 point convolution is 1×1×M×N. The computational complexity of depthwise separable convolution is D K ×D K ×M×D F ×D F +M×N×D F ×D F , the parameter is D K ×D K ×M+1×1×M×N. When the number of channels of the input and output feature maps is the same (i.e., M=N), the ratio of the computational complexity of the depthwise separable convolution to that of the standard convolution is R flops for:
[0104]
[0105] Then the ratio of the number of parameters of depthwise separable convolution to standard convolution is R params for:
[0106]
[0107] When D K When the size is 3, the number of parameters of depthwise separable convolution is about one-ninth of that of standard convolution, but the performance is only slightly reduced.
[0108] (2) Inverted residual structure
[0109] In the residual structure of the deep residual network (ResNet), 1×1 convolution is first used to reduce the number of channels of the input feature map, then 3×3 convolution is used to extract the features of the image, and finally 1×1 convolution is used to increase the number of output channels. Generally speaking, if the number of channels of the input feature map is smaller, the performance of the deep separable convolution is worse, and the fewer features it extracts. Therefore, unlike the residual structure of ResNet, MobileNetV3 adopts an inverted residual structure, that is, 1×1 convolution is first used to increase the number of input channels, then 3×3 convolution is used to extract features, and finally 1×1 convolution is used to reduce the number of output channels. In addition, in the inverted residual structure, after the 1×1 convolution is used to reduce the number of channels, the feature map is "compressed". In order to reduce information loss, the nonlinear activation function is removed after the deep separable convolution, so it is called the inverted residual structure with a linear bottleneck.
[0110] (3) Multi-scale convolutional attention module
[0111] In thermal infrared face images, since the facial information obtained is temperature information, when it is presented in the form of pictures, the contrast is not high compared with normal visible light face images, and some organs have blurred boundaries. Therefore, the introduction of a multi-scale convolutional attention module can effectively improve the detection accuracy of thermal infrared face key points. The multi-scale convolutional attention module consists of three parts, and its structure is as follows: Figure 7 shown.
[0112] Depthwise convolution: used to aggregate local information.
[0113] Multi-branch convolution: Multi-branch strip convolution for capturing multi-scale context uses three parallel multi-scale strip convolutions of size 1x7, 1x11, 1x21 respectively.
[0114] 1×1 convolution: used to model the relationship between different channels. The output of 1×1 convolution is directly used as attention weight to reweight the input of the multi-scale convolution attention module.
[0115] Mathematically, it can be expressed as
[0116]
[0117]
[0118] Where F represents the input features. Att and Out are the attention map and output respectively. It is an element-by-element matrix multiplication operation. DWConv stands for deep convolution, Scale i ,i∈{0,1,2,3}.
[0119] (4) Multi-branch structure
[0120] The use of a multi-branch structure can effectively improve the detection accuracy of infrared thermal face alignment. In thermal infrared faces, since only the temperature information of the face is collected, the feature representations of different organs are inconsistent. In the underlying network, the features of the organs of the face can be considered similar. However, in the deep network, the features of each organ are not the same. At the same time, in thermal infrared face images, the clarity of different organs is completely controlled by the temperature of the face and is not uniform. Therefore, classification prediction for each organ is an effective method.
[0121] In this method, we divide the entire network into a backbone network and branch networks, such as Figure 8 shown.
[0122] The backbone network is mainly used to extract local features of the face. In the branch network, multiple branches are used to predict different subsets of thermal infrared face key points. In this algorithm, we divide the facial key points into three subsets: outer contour, nose and eyebrows, and eyes and mouth according to the clarity of the thermal infrared face, and give different layers to each subset for training. Finally, the predicted coordinates of each key point are integrated to achieve the purpose of facial key point coordinate prediction. Fig. 9 Preliminary experimental results of infrared thermal image key point positioning of the proposed algorithm.
[0123] 3. Thermal Asymmetry Feature Extraction
[0124] Temperature features are the most commonly used in infrared thermal imaging-assisted diagnosis. Under certain abnormal physiological conditions, the temperature value of the region of interest will change relative to that of normal people. Infrared thermal imaging can not only measure the temperature value of a region of interest, but also depict the spatial distribution of all temperature values of a region of interest. The spatial distribution of temperature can be represented by texture features, and the introduction of texture features may help in the early diagnosis of facial paralysis. Therefore, this study combined texture features with temperature features to quantitatively evaluate the thermal asymmetry of facial paralysis.
[0125] (1) Weighted temperature characteristics:
[0126] Weighted temperature characteristics Indicates the maximum temperature value T in the entire area of interest max , minimum temperature value T min, average temperature value T mean The weighted sum of mean represents the average value of all temperature values in the entire area of interest, T max It represents the average value of the largest 10% of all temperature values in the entire area of interest, T min It represents the average value of the smallest 10% of all temperature values in the entire area of interest, and the calculation formula is as follows:
[0127]
[0128]
[0129]
[0130]
[0131] Where N represents the number of all pixels in a region of interest, T i Represents the temperature value of the i-th pixel in a region of interest, T j Indicates T i 's in ascending order.
[0132] ②Weighted average grayscale texture features:
[0133] The weighted average grayscale texture feature refers to the average value of the second-order texture feature calculated by the grayscale co-occurrence matrix obtained under different parameters.
[0134] Gray-level co-occurrence matrix (GLCM) is a statistical method that considers the spatial distribution characteristics of temperature on infrared thermal images. It characterizes texture features by calculating the frequency of pixel pairs with specific values and specific spatial relationships in thermal images. The gray-level co-occurrence matrix is based on the gray level of the N×N image f(x,y) as pixel i, and the distance to i is The probability that pixels with grayscale j appear simultaneously is P(i,j,δ,θ).
[0135] The mathematical expression is: P(i,j,δ,θ)={[(x,y),(x+dx,y+dy]|f(x,y)=i,f(x+dx,y+dy)=j}
[0136] Table 1 Four second-order texture features calculated by GLCM
[0137]
[0138]
[0139] The parameters of the gray-level co-occurrence matrix in this study are as follows: the offset distance δ is set to 2 and 5, the offset direction θ is set to 0°, 45°, 90°, 135°, and the maximum gray level G is set to 16 and 32. Any combination of the above parameters can be used to obtain 16 gray-level co-occurrence matrices G. k (k<=16).
[0140] Through the gray-level co-occurrence matrix G k Four second-order texture features are calculated:
[0141] a) Contrast: F1 k =∑ i ∑ j |Ij| 2 P(i,j), used to measure the clarity of infrared thermal images and the depth of texture grooves;
[0142] b) Correlation coefficient: Correlation for characterizing local temperature distribution of infrared thermal images;
[0143] c) Energy: F3 k =∑ i ∑ j P(i,j) 2 , used to reflect the uniformity of temperature distribution and texture coarseness;
[0144] d) Homogeneity: It is used to reflect the homogeneity of image texture and measure the local change of temperature distribution.
[0145] The weighted average grayscale texture feature refers to the weighted average of the above four second-order texture features:
[0146]
[0147]
[0148]
[0149]
[0150] (3) Feature symmetry measurement
[0151] There is a difference in thermal symmetry between the left and right sides of the face between healthy people and patients with facial paralysis. In order to quantify this difference, it is necessary to measure the feature symmetry of a pair of regions of interest. The most commonly used method to express feature symmetry is the difference between two features or the Euclidean distance, where the smaller the measurement value, the better the symmetry.
[0152] The symmetry between the temperature characteristics of a pair of regions of interest in this study is expressed as the mean temperature difference (ΔTmean) and the maximum temperature difference (ΔTmax), respectively, and is calculated as follows:
[0153] ΔT mena =|T L-mean -T R-mean |
[0154] ΔT L-max =|T L-max -T R-min |
[0155] ΔT R-max =|T R-max -T L-min |
[0156]
[0157] Among them, TL-mean and TR-mean represent the average temperature of the left and right regions, respectively, and TL-max and TR-max represent the maximum temperature of the left and right regions of interest, respectively.
[0158] The symmetry ρ between two texture features is calculated using the Minkowski distance, as follows:
[0159]
[0160] Among them, FL,Δ,G and FR,Δ,G represent the texture features of a pair of symmetrically distributed regions of interest, θ,Δ,G are the parameters of GLCM, θ is the offset direction with values of 0°, 45°, 90°, 135°, Δ is the offset distance with values of 2 and 5, and G is the maximum grayscale with values of 16 and 32. P takes values of 1 and 2. When P = 2, it is the Euclidean distance; when P = 1, it is the Manhattan distance. Each region of interest of the subject has 4 types of texture features (Table 1), and there are 8 symmetry degrees ρ between each type of texture features. Therefore, there are 32 texture symmetry degrees between each pair of regions of interest of the subject.
[0161] (4) Constructing a support vector machine classifier
[0162] Mapping the asymmetric features of facial temperature distribution to the HB grading scale that characterizes the severity of facial paralysis is a typical pattern classification problem. Due to the small number of training set samples in the current project, the deep learning method is prone to overfitting, so we introduce support vector machine (SVM). The following describes the basic scheme for SVM classification.
[0163] The input of SVM is the characteristic symmetry between the ipsilateral and contralateral regions of interest of the subject's facial infrared thermal image and the temperature distribution mixing parameters, and the output is the severity of facial paralysis (or normal). The frontal infrared thermal image of a subject has 5 pairs of regions of interest ( Figure 1 ), each pair of regions of interest has 2 temperature symmetries and 32 texture symmetries. In addition, the entire facial thermal image also includes 4 temperature distribution mixing parameters. Therefore, the input vector of SVM has a maximum of 174 dimensions. In order to select the temperature features and texture features with the most diagnostic value, it is necessary to test the classification performance of different feature symmetry combinations. In order to evaluate the generalization error of different feature symmetry combinations on the diagnosis of facial paralysis, the sample set was divided into training set and test set through N-fold cross validation. In addition, in order to evaluate the effectiveness of SVM for the diagnosis of facial paralysis, we introduced classic classifiers such as K nearest neighbor (KNN), linear discriminant analysis (LDA), and decision tree to compare the performance with SVM.
[0164] For the facial paralysis diagnosis problem, the cases can be divided into four types of results: true positive examples, false positive examples, true negative examples, and false negative examples according to the combination of their true categories and the SVM classifier diagnosis categories. The explanations of these classification results are shown in Table 2.
[0165] Table 2 Confusion matrix of diagnosis results
[0166]
[0167]
[0168] According to the confusion matrix of the diagnostic results, a total of five indicators were used to evaluate the diagnostic ability of the PDFLN classifier for facial paralysis, namely accuracy, sensitivity, specificity, precision and F1 score, and the calculation formula is as follows:
[0169] Accuracy=(TP+TN) / (TP+TN+FP+FN)
[0170] Sensitivity=TP / (TP+FN)
[0171] Specificity = TN / (FP + TN)
[0172] Precision=TP / (FP+TP)
[0173] F1=2×Precision×Sensitivity / (Precision+Sensitivity)
[0174] SPSS Statistics 23 (IBM, Armonk, NY, USA) was used for statistical analysis. P < 0.05 was considered statistically significant. The analyzed temperature features, texture features, and temperature distribution mixing parameters were tested for normal distribution using the Shapiro-Wilk test. The differences in feature symmetry between the two groups of subjects in the facial region of interest were analyzed using the Student's test. For the two groups of feature symmetry with statistical differences, the inter-subject variation was evaluated by comparing the interquartile range of the data of each group. Five classification performance indicators, accuracy, sensitivity, specificity, precision, and F1 score, were used to compare the diagnostic ability of different feature symmetry combinations for facial paralysis. In addition, the area under the ROC curve (AUC) was used to compare the generalization performance of different classifiers.
[0175] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. Infrared thermal imaging facial paralysis severity assessment method based on weighted temperature texture features, characterized by: The following steps are involved: Step 1: Collect infrared thermal images of the subject's face; Step 2: Automatic segmentation of thermal image of facial region. We propose a facial region of interest segmentation algorithm using inverted residual multi-scale convolutional attention for patients with facial paralysis. Step 3: Extract thermal asymmetry features. The thermal asymmetry feature is the same area symmetrical between the left and right sides of the face, that is, the region of interest, which is obtained by the Euclidean distance between the extracted features. The extracted features include two types, one is the weighted temperature feature and the other is the weighted grayscale texture feature. Step 4: Automatically grade the severity of facial paralysis by inputting thermal asymmetry features into a support vector machine and outputting three levels: mild, moderate, and severe. The parameters of the support vector machine are obtained through machine learning.
2. The infrared thermal imaging facial paralysis severity assessment method based on weighted temperature texture features according to claim 1 is characterized in that: In step 1, the infrared thermal image acquisition specification requires all subjects not to smoke, drink, take medicine, use cosmetics or engage in strenuous exercise within 12 hours before facial infrared thermal image acquisition, so as to try to avoid changes in body temperature distribution caused by changes in human physiological rhythms. Before facial infrared thermal image acquisition, the subjects need to sit quietly in the test environment for 20 minutes to adapt to the room temperature. After calming down, they sit 1.2m away from the infrared camera with a curtain placed behind them to obtain a background with uniform temperature distribution. The subjects look straight ahead with their eyes, and the infrared thermal imager takes infrared thermal images of the front of the subject's head.
3. The infrared thermal imaging facial paralysis severity assessment method based on weighted temperature texture features according to claim 1 is characterized in that: Taking MobileNetV3 network as the backbone, the algorithm of facial region of interest segmentation with inverted residual multi-scale convolutional attention is introduced, and a multi-branch prediction structure is proposed to improve the accuracy of local organ prediction. According to the distribution of key points and the characteristics of facial physiological structure, five regions including forehead, eyes, nose, mouth and cheeks are carefully divided. Each region is divided into two symmetrical regions of interest from the midline.
4. The infrared thermal imaging facial paralysis severity assessment method based on weighted temperature texture features according to claim 1 is characterized in that: In step 2, in this network, a series of Mbneck networks are stacked, and its activation functions are relu and hardwish. The Mbneck network is composed of three modules: deep separable convolution, inverted residual structure and multi-scale convolution attention. Then, the key point prediction task is performed by classifying the facial organs into different subsets.
5. The infrared thermal imaging facial paralysis severity assessment method based on weighted temperature texture features according to claim 1 is characterized in that: In step 2, in the Mbneck structure, a 1×1 convolution is first used to increase the dimension, and then a 3×3 depth-separable convolution is used for feature extraction. After that, an inverted residual multi-scale convolution attention module is used, and finally a 1×1 convolution is used for dimensionality reduction.
6. The method for assessing facial paralysis severity using infrared thermal imaging based on weighted temperature texture features according to claim 1, characterized in that: In step 2, the depthwise separable convolution consists of two parts, namely depthwise convolution and 1×1 point convolution. Assume that the size of the input feature map of the standard convolution is D F ×D F ×M, the size of the convolution kernel is D K ×D K ×M×N, the size of the output feature map is D F ×D F ×N Assume that the spatial resolution of the feature map is D F ×D F unchanged, where M and N are the number of channels of the input feature map and the output feature map. Then the amount of calculation for the standard convolution is D K ×D K ×M×N×D F ×D F , the parameter is D K ×D K ×M×N.
7. The method for assessing facial paralysis severity using infrared thermal imaging based on weighted temperature texture features according to claim 1, characterized in that: In step three, ①Weighted temperature characteristics: The weighted temperature feature represents the weighted sum of the maximum temperature value, the minimum temperature value, and the average temperature value in the entire region of interest. The weighted temperature feature represents the average value of all temperature values in the entire region of interest. The weighted temperature feature represents the average value of the largest 10% of all temperature values in the entire region of interest. The weighted temperature feature represents the average value of the smallest 10% of all temperature values in the entire region of interest. The calculation formula is as follows: Where N represents the number of all pixels in a region of interest, T i Represents the temperature value of the i-th pixel in a region of interest, T j Indicates T i In ascending order; ②Weighted average grayscale texture features: The weighted average grayscale texture feature refers to the average value of the second-order texture feature calculated by the grayscale co-occurrence matrix obtained under different parameters; Gray-level co-occurrence matrix is a statistical method that considers the spatial distribution characteristics of temperature on infrared thermal images. It characterizes texture features by calculating the frequency of pixel pairs with specific values and specific spatial relationships in thermal images. The gray-level co-occurrence matrix starts from the gray level of the N×N image f(x, y) as pixel i, and counts the distance to i. The probability of pixels with grayscale j appearing simultaneously is P(i, j, δ, θ); The mathematical expression is: P(i,j,δ,θ)={[(x,y),(x+dx,y+dy]|f(x,y)=i,f(x+dx,y+dy)=j} The parameters of the gray-level co-occurrence matrix in this study are as follows: the offset distance δ is set to 2 and 5, the offset direction θ is set to 0°, 45°, 90°, 135°, and the maximum gray level G is set to 16 and 32. Any combination of the above parameters can be used to obtain 16 gray-level co-occurrence matrices G. k (k<=16); Through the gray-level co-occurrence matrix G k Four calculated second-order textures feature: a) Contrast: F1 k =∑ i ∑ j |ij| 2 P(i,j), used to measure the clarity of infrared thermal images and the depth of texture grooves; b) Correlation coefficient: Correlation for characterizing local temperature distribution of infrared thermal images; c) Energy: F3 k =∑ i ∑ j P(i,j) 2 , used to reflect the uniformity of temperature distribution and texture coarseness; d) Homogeneity: It is used to reflect the homogeneity of image texture and measure the local change of temperature distribution; The weighted average grayscale texture feature refers to the weighted average of the above four second-order texture features:
Citation Information
Cited By
Single-sided paralysis multi-branch evaluation method and system based on multi-feature fusion and multi-task learning, medium and equipment
CN119399528A
Single facial paralysis multi-branch evaluation method, system, medium and equipment based on multi-feature fusion and multi-task learning
CN119399528B
Thermal sensation evaluation method and system based on infrared thermal imaging technology
CN120252964A
