Facial paralysis automatic quantitative evaluation method and system based on facial video
By using facial video analysis and machine learning, the problems of stability and subtle signal quantification in facial paralysis assessment have been solved, achieving objective, detailed, and interpretable assessment results for facial paralysis.
Patent Information
- Application Number
- CN202611345473.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-01
- Publication Date
- 2026-11-20
AI Technical Summary
Current facial paralysis assessments rely on doctors' visual observation, which is affected by factors such as experience, angle, video quality, and patient cooperation, making it difficult to achieve stable, continuous, and verifiable quantitative assessment of subtle signals.
By acquiring facial videos, key point coordinates are extracted using a facial key point detection model, rigid body alignment and scale normalization are performed, video-level features are constructed, and a machine learning model is used for scoring to output detailed evaluation results.
It achieves objectivity and consistency in assessment results, possesses clinical interpretability, can precisely characterize coordinated movements, outputs detailed scoring reasons, and facilitates clinical analysis.
Smart Images

Figure CN123141978A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer vision and medical information processing technology (G06N), specifically to an automated quantitative assessment method and system for facial paralysis based on facial video. Background Technology
[0002] Facial paralysis, also known as facial nerve palsy, is clinically assessed by observing the patient's resting facial expression and standard facial expressions such as raising eyebrows, closing eyes, wrinkling nose, grinning, and pouting. Commonly used scoring systems include: the House–Brackmann Facial Nerve Grading System (hereinafter referred to as the House–Brackmann grade), which classifies functional status into grades I to VI based on overall facial function, with grade I indicating normal function and grade VI indicating complete paralysis; the Sunnybrook Facial Grading System, which evaluates resting symmetry, voluntary movement, and coordinated movement separately, and generates a composite score, usually from 0 to 100, using a weighted formula, with higher scores indicating better overall facial nerve function; and eFACE (derived from Clinician-Graded Electronic Facial Paralysis Assessment), which uses an electronic interface to score static, dynamic, and coordinated related items in different areas and generates scores for each area and a total score. Among these, the Sunnybrook scoring structure takes into account static, dynamic, and coordinated aspects, making it more suitable for structured, quantitative, and traceable computer-aided assessments.
[0003] Current clinical assessments primarily rely on physicians' visual observation and experience. While simple to implement, this method is affected by factors such as physician experience, observation angle, video quality, patient cooperation, fatigue level, and scoring intervals. For subtle signals such as slight mouth corner displacement, changes in eye fissures, nasal wing movements, and movements accompanying non-target areas, manual observation struggles to generate stable, continuous, and verifiable numerical records.
[0004] With the development of computer vision and machine learning technologies, using ordinary camera equipment to collect frontal videos of subjects and then automating the evaluation through facial landmark detection, geometric normalization, temporal feature extraction, and scoring models can provide a new technical path for the quantification of facial paralysis. However, facial paralysis scoring is not a simple image classification problem; its difficulty lies in the need to simultaneously process resting facial appearance, multiple active movements, left-right differences, non-target region linkages, subject-level total score formulas, and clinical interpretability. Summary of the Invention
[0005] The purpose of this invention is to overcome the shortcomings and deficiencies of the existing technology and to provide an automated quantitative assessment method and system for facial paralysis based on facial video.
[0006] The technical solution adopted by this invention is as follows: Firstly, this invention provides an automated quantitative assessment method for facial paralysis based on facial video, comprising: Acquire a frontal facial movement video of the subject, the video including multiple specific facial movements; Frames are extracted from each action video, and the coordinates of key points in each area of the face are extracted using a facial key point detection model. The individual resting baseline of the subject is estimated based on the stable frames in the first part of the video. Using the preset facial stable reference point as a benchmark, the similar transformation from each frame to the resting reference posture is fitted for rigid body alignment. The scale is normalized by the preset facial reference distance to obtain the dimensionless facial key point trajectory. Video-level features are constructed based on the dimensionless facial key point trajectories, and the video-level features include static features, dynamic features, and linkage features; The video-level features of multiple action videos of the same subject are aggregated into subject-level features, and sub-item scoring models are established according to static items, dynamic items and linkage items respectively. For each scoring item, the prediction value of each scoring item is obtained by selecting or fusing rule prediction and machine learning model prediction based on the validation index. Based on the preset scoring formula, the static total score, dynamic total score, linked total score, and final total score are calculated from the predicted values of each scoring item, and the evaluation results including item scores and total scores are output.
[0007] Secondly, the present invention provides an automated quantitative assessment system for facial paralysis based on facial video, including a processor and a memory, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described method.
[0008] The beneficial effects of the present invention include at least the following: (1) In this invention, by aligning individual resting baselines and similar transformation rigid bodies with pupil distance scale normalization, the influence of different subjects’ face size, shooting distance, video resolution and slight head posture changes on the motion amplitude measurement results is effectively eliminated, making the evaluation results under different conditions comparable and improving the objectivity and consistency of the evaluation.
[0009] (2) In this invention, specific motion signals with clinical directional meanings are constructed for different types of motion, rather than simply applying a uniform metric, so that each feature has clear clinical interpretability, making it easier for clinicians to understand and trust the assessment results.
[0010] (3) In this invention, a multi-dimensional linkage quantification system with side, region and time locking is constructed, which can accurately depict the occurrence position, side and synchronization degree with the target action of the linkage motion, and realize the leap from "qualitative description" to "multi-dimensional quantification" of linkage motion.
[0011] (4) In this invention, the interference of differences in facial shape, age and expression habits of different individuals on the score is reduced by using the left and right comparison of the subject to the perception of the affected side and the self-reference mechanism of the healthy side, thereby improving the generalization ability of the features.
[0012] (5) In this invention, 13 sub-scores are output and the total score is synthesized according to the formula, instead of just outputting a single level or black box total score. This allows clinicians to trace the specific reasons for changes in the total score, such as static asymmetry, insufficient active movement or abnormal linkage, which is more suitable for rehabilitation follow-up and functional change analysis.
[0013] (6) In this invention, the combination of rule mapping and the sub-item selection of machine learning model is used to automatically select a more suitable prediction path for the data characteristics of different sub-items. It is more stable than a single black box model in small sample and high-dimensional feature scenarios, while retaining clinical interpretability.
[0014] (7) In this invention, by resampling the fixed phase point of the video signal and statistically analyzing the real timestamp, the temporal characteristics under different frame rates and different video lengths are comparable, which improves the robustness of the system to the acquisition conditions.
[0015] (8) In this invention, by outputting a complete chain of evidence including key point overlay video, audit table, feature table, prediction table, confusion matrix and statistical chart, the evaluation basis can be intuitively verified. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, obtaining other drawings based on these drawings without creative effort still falls within the scope of the present invention.
[0017] Figure 1 This is a flowchart of an automated quantitative assessment system for facial paralysis based on facial video, as described in this invention. Figure 2 This is a schematic diagram of the facial key point region division in this invention; Figure 3 This is a flowchart of the resting baseline and posture normalization process in this invention; Figure 4 This is a schematic diagram comparing the eye corners before and after normalization in this invention; Figure 5This is a schematic diagram illustrating the extraction of static, dynamic, and linkage features in this invention; Figure 6 This is a flowchart of the rule-model fusion scoring process in this invention; Figure 7 This is a schematic diagram of the visual report output in this invention. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments described below are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0019] In this invention, facial paralysis refers to facial muscle motor dysfunction caused by facial nerve palsy. It should be particularly noted that the technical solution of this invention is essentially a computer-based method for data processing and quantitative evaluation of facial motor function. Its output provides auxiliary reference information for clinicians and does not constitute a diagnosis or treatment of the disease.
[0020] The Sunnybrook-like scoring formula refers to a structure formed by subtracting static and linked deductions from the dynamic score of the Sunnybrook facial nerve scoring system, combined with the scoring fields, value ranges, and action sets in this embodiment. It does not mean that it is completely equivalent to the original Sunnybrook scale.
[0021] The second-weighted Kappa (QWK) is used to measure the consistency between the predicted level and the reference level. It applies higher weights to errors that differ by multiple levels. The value is usually no higher than 1, where 1 indicates perfect consistency and 0 indicates that it is comparable to the level of random consistency.
[0022] The macro average QWK refers to first calculating the QWK of each scoring item separately, and then taking the arithmetic mean of each item with equal weight, rather than weighting by the sample size of each item.
[0023] Example 1: like Figures 1 to 7 As shown, this embodiment provides an automated quantitative assessment method for facial paralysis based on facial video, including steps S1 to S9.
[0024] Step S1: Data Acquisition and Action Standardization. The system receives frontal facial action videos of the subjects, organized by subject or consultation session. Each subject includes multiple action videos, which include multiple specific facial actions. In this embodiment, the specific facial actions include five standard actions for scoring: raising eyebrows, slightly closing eyes, wrinkling nose, grinning, and pouting.
[0025] In addition, auxiliary actions such as forcefully closing the eyes, frowning, and puffing out the cheeks may also be included.
[0026] The actual filename of each video can be automatically identified by the system according to a preset mapping table, without being limited to a specific English filename.
[0027] After reading the scoring sheet, the system generates a subject-level label table, including static items, dynamic items, linked items, and a total score field. For anomalies such as missing items or missing videos, the system generates audit logs, avoiding the use of silent deletion or falsified labels to conceal the anomalies.
[0028] Step S2: Facial key point extraction. The system extracts frames from each action video and uses a facial key point detection model. In this embodiment, Face Landmarker or Face Mesh in MediaPipe is used to perform single face detection on each sampled frame and extract the coordinates of key points in the eyebrows, eyes, nose, mouth, cheeks and midline area of the face.
[0029] Each sampled frame saves the subject's de-identified identifier, action category, frame index, timestamp, detection status flag, and key point coordinates.
[0030] For example, each sampled frame saves the following fields: This represents a unique identifier for a subject or consultation session that has undergone de-identification processing. It is used to associate different action videos of the same subject and does not directly store the subject's name. This indicates the standardized action category to which the frame belongs, such as raising an eyebrow, slightly closing the eyes, wrinkling the nose, grinning, or pouting. This indicates the sequential index of the frame in the original video, which in one embodiment is counted starting from 0; This represents the timestamp of the frame relative to the start of the video, in milliseconds. It can be calculated based on the frame index and the video frame rate or read from the video container. This is a Boolean flag indicating whether a single target face was successfully detected in the frame. A true value or a value of 1 indicates successful detection, while a false value or a value of 0 indicates unsuccessful detection.
[0031] , Indicates the sequence number is The coordinates of facial key points, among which The coordinates are in the horizontal direction. The coordinates are in the vertical direction. Relative depth coordinates; For key point indexing. and Dimensionless coordinates after normalizing the image width and height can be used. This refers to the relative depth output by the model, rather than the absolute physical depth in the sense of medical imaging.
[0032] To reduce storage size and improve auditing efficiency, the system can save only a compact set of key points closely related to facial paralysis scores; when more granular research is required, the complete set of facial key points can also be saved.
[0033] Step S3: Pose Normalization and Resting Baseline. The system selects frames from the first 10% to 30% of the video where faces are continuously detected, and calculates the average coordinates of the keypoints as the individual resting baseline for that subject in that action. Using stable keypoints with relatively small movements, such as the corners of the eyes, bridge of the nose, and tip of the nose, as references, the Umeyama similarity transform is used to fit a two-dimensional rigid body alignment of each frame to the resting reference pose. After this transformation, head translation, planar rotation, and scale changes in the keypoint trajectory are effectively reduced, and the remaining changes mainly correspond to facial expression movements.
[0034] Furthermore, the system uses interpupillary distance or canthoplasty distance as a dimensionless unit of measurement to normalize coordinate and distance features. As a result, the influence of differences in face size, camera distance, and video resolution among different subjects on the amplitude of motion is normalized to the same reference scale, making measurement results under different conditions comparable.
[0035] Figure 4 This illustration shows a before-and-after comparison of two facial contours with the same processing meaning: the left side represents the input before normalization, where the slanted line connecting the corners of the eyes indicates head rotation in the video frame, and there may also be differences in position and scale between different frames; the right side represents the output after stable reference point similarity transformation and interpupillary distance normalization, where the line connecting the corners of the eyes is corrected to be horizontal, and the facial center and scale are unified. These two contours are only used to illustrate the differences before and after geometric pose correction and do not represent two different subjects, nor are they intended to directly indicate the severity of facial paralysis.
[0036] Step S4: Static feature extraction. Based on the normalized resting frame key points, calculate the static left-right symmetry features, including: left-right difference in eye opening, eye tilt angle, nasolabial fold slope, left-right difference in the nasal alar or paranasal region, mouth corner height difference, mouth corner drooping angle, mouth width-to-height ratio, and cheek lift, etc.
[0037] In this embodiment, the static features can be respectively matched with the resting palpebral fissure asymmetry score. Resting nasolabial fold asymmetry score Asymmetric scoring of resting verbal arguments The detailed value range and scoring direction of the above fields are shown in the scoring structure and formula below. Depending on the scoring system, this can also be extended to resting condition scoring items for more regions.
[0038] Step S5: Dynamic feature extraction, constructing motion signals with clinical directional meaning for different action types: used to describe the left and right side movement ability of the subject when performing active actions.
[0039] To precisely define the motion signals specific to each of the following actions, a unified notation is first agreed upon: Assume that after rigid body alignment and pupil distance normalization in step S3, the... The frame number is The dimensionless coordinates of the facial key points are Keypoint numbering uses the 468-point topology numbering of MediaPipe Face Mesh; in the image coordinate system The axis is positive with the right side of the image as the positive axis. The axis is positive at the bottom of the image. In this section, "left / right" refers to the left / right side in the image coordinate system. Let the set of resting baseline frames determined in step S3 be denoted as . Key points The resting baseline position is ,in This represents the number of frames at resting baseline. (Note: The original text contains some formatting errors and inconsistencies. To perform the positive part operation, It is a two-dimensional Euclidean distance. It is an absolute value.
[0040] The key points in this embodiment are numbered as follows: left eyebrow peak 105, right eyebrow peak 334; left upper eyelid midpoint 159, right upper eyelid midpoint 386; left lower eyelid midpoint 145, right lower eyelid midpoint 374; left inner corner of eye 133, right inner corner of eye 362; left outer corner of eye 33, right outer corner of eye 263; left nostril 98, right nostril 327; left corner of mouth 61, right corner of mouth 291; the key points along the midline of the face are numbered as follows: upper lip outer edge midpoint 0, upper lip inner edge midpoint 13, lower lip inner edge midpoint 14, lower lip outer edge midpoint 17, nose tip 1, nose base 2, nose bridge 168. Based on the above notations, the left-side motion signal for each action... With right-side motion signal The definition is as follows.
[0041] (a) Eyebrow Raising: The vertical upward displacement of key points in the left and right eyebrow peak and eyebrow tail areas relative to the resting baseline is calculated, reflecting the function of the levator palpebrae superioris and frontalis muscles. Using key points 105 on the left eyebrow peak and 334 on the right eyebrow peak as representative points, the left and right motion signals of the eyebrow raising action are defined as follows: , Due to the image The axis pointing downwards is positive. This means that the key points of the eyebrow are displaced upward relative to the resting baseline. The positive part is used to ensure that the signal only measures the upward movement. Alternatively, the representative points can be expanded to the average coordinates of the left eyebrow contour point set {70, 63, 105, 66, 107} and the right eyebrow contour point set {300, 293, 334, 296, 336}, and calculated using the same formula.
[0042] (b) Light eye closure: Calculate the normalized closure amplitude and residual opening of the left and right eye fissures to reflect the function of the orbicularis oculi muscle. First, assemble the resting baseline frames. Internal calculation of left and right palpebral fissure width , ; redefine the first Normalized eye opening for left and right eyes in frames , Its resting baseline opening is (The same applies to the right side). The normalized closure amplitude is defined as... , Residual opening is defined as the action window. (See step S6 for the determination method) Minimum value of internal normalized opening degree (The same applies to the right side), the ratio of residual opening to resting opening. This ratio reflects the degree to which the eyes are closed; the larger the ratio, the less complete the eyelid closure.
[0043] (c) Nasal Wrinkling: The displacement of key points in the nasal alar and paranasal regions relative to the resting baseline is calculated to reflect the function of the nasal muscles and the levator labii superioris alaeque nasi muscle. Using the left nasal alar key point 98 and the right nasal alar key point 327 as representative points, the left and right motion signals of the nasal wrinkling action are defined as follows: , This refers to the Euclidean displacement of the key point of the nasal ala relative to its resting baseline position; alternatively, the representative point can be expanded to multiple key points beside the nose, and the average displacement of each point can be taken.
[0044] (d) Grinning: Calculate the combined indicators of mouth corner abduction displacement, mouth corner elevation, and mouth width increase to reflect the function of the levator anguli oris muscles, risorius, and orbicularis oris muscles. Using key points 61 on the left corner of the mouth and 291 on the right corner as representative points, first calculate the resting mouth width. With the Frame mouth width The increase in mouth width is The mouth corner displacement is then decomposed into an abduction component and an elevation component, and weighted and combined with the increase in mouth width to obtain the left and right motion signals of the grinning action: , The first term is the outward displacement of the corners of the mouth (positive when the left corner of the mouth moves to the left of the image and the right corner moves to the right of the image), the second term is the upward lifting of the corners of the mouth, and the third term is the increase in mouth width; the weighting coefficients are preset constants, and in this embodiment, they are taken as... , .
[0045] (e) Pouting: Calculate the displacement of the corners of the mouth inward toward the midline, the change in lip area, the proportion of lip retraction, and the amount of displacement of the lip center, etc., to reflect the function of the orbicularis oris muscle.
[0046] Specifically, the left and right movement signals of the corners of the mouth retracting inward towards the midline and the pouting motion are defined as follows: , The first term measures the inward displacement of the corner of the mouth towards the midline of the face (positive when the left corner of the mouth moves to the right of the image and the right corner of the mouth moves to the left of the image), and the second term is a supplementary term for the total displacement of the corner of the mouth. As a preset constant, in this embodiment, we take... .
[0047] The lip area is calculated using the shoelace formula for the outer lip contour polygon: The sequence of vertices of the closed polygon formed by the key points of the MediaPipe outer lip contour (61, 146, 91, 181, 84, 17, 314, 405, 321, 375, 291, 409, 270, 269, 267, 0, 37, 39, 40, 185) is taken. The vertex is denoted as the nth vertex. The first frame The coordinates of the vertices are And agreed on the first The vertex is the first vertex, then the... The area of the frame lip is In a simplified embodiment, the approximate lip area can also be calculated using the same formula by taking only the quadrilateral formed by the corner of the mouth 61, the midpoint of the outer edge of the upper lip 0, the corner of the mouth 291, and the midpoint of the outer edge of the lower lip 17. The resting lip area is recorded. The change in lip area is defined as Furthermore, it can statistically analyze the maximum and minimum values of this change within the action window; the lip contraction ratio is defined as the action window... The ratio of the minimum area of the inner lip to the area of the resting lip When pouting, the lips move towards the midline. The smaller the value, the more complete the lip retraction; the lip center displacement is defined as the Euclidean displacement of the key point O at the midpoint of the outer edge of the upper lip relative to its resting baseline position. It can also be supplemented by vertical offset of the lip center relative to the key point 1 of the nose tip. The change relative to its resting value is used as a supplementary measure.
[0048] For each type of movement, the system further calculates the maximum value, 90th percentile amplitude, mean, standard deviation, area under the curve, peak frame position, ratio of the weak side to the strong side's movement amplitude, and absolute difference between the left and right sides of the motion curves in the left and right target regions. Using these characteristics, the insufficient movement on the affected side can be converted into a quantifiable digital signal.
[0049] The precise definition of the statistical characteristics of the above motion curve is: for a certain side of the motion signal ( , (This refers to the number of frames in the video that are included in the statistics), with a maximum value of ; 90th percentile range That is, for sets Take the 90th percentile; the mean is Standard deviation is The area under the curve is the trapezoidal integral over the actual timestamp. ,in For the first Frame timestamps (in seconds); peak frame location is It can be further divided by Normalized to phase position; let the motion amplitudes of the signals on the left and right sides be respectively and (The amplitude of movement can be taken as the maximum value or the 90th percentile amplitude mentioned above), then the ratio of the amplitude of movement on the weak side to that on the strong side is: The absolute difference between the left and right sides is .
[0050] Step S6: Linkage feature extraction. Linkage refers to the accompanying movements that should not occur in non-target areas when the subject performs a certain target action, such as abnormal eye closure when grinning or mouth pulling when wrinkling the nose.
[0051] For each target action, this embodiment divides the facial area into target and non-target areas. Taking a grin as an example: the mouth is the target area, and the eyebrows, eyes, and nose are non-target areas. For each non-target area, the following seven types of features are calculated for both the left and right sides: (a) Robust 90th percentile motion amplitude within the target motion peak window: A time window of approximately 0.3 seconds before and after the peak frame of the target motion curve is taken. The 90th percentile of the motion amplitude in the non-target region within this window is calculated to avoid interference from single-frame noise. The precise definition of "motion amplitude" is as follows: for the non-target region... and side First, define its frame-by-frame motion signal. The motion signals for the mouth region are taken from the key points at the corners of the mouth on the corresponding side (61 on the left, 291 on the right); the key points at the brow peak on the corresponding side are taken from the eyebrow region (105 on the left, 334 on the right); and the key points at the alar of the nose on the corresponding side are taken from the alar of the nose on the corresponding side (98 on the left, 327 on the right). The motion signals for these regions are all Euclidean displacements of the corresponding key points relative to their resting baseline positions. , The key points on this side of the region are numbered; the motion signal of the eye region is the absolute value of the change in vertical eye opening relative to the resting eye opening. The opening of the left eye Right eye opening , For the set of resting baseline frames The average value of the corresponding opening (see step S5 for the convention of key point numbering and coordinate marking).
[0052] To suppress jitter at key points in a single frame, A smoothed signal is obtained by applying a center moving average with a window length of 5 frames. (The average value at the signal boundary is taken according to the actual available frames); the same smoothing is applied to the target motion curve (the sum of the left and right target motion signals defined in step S5) to obtain the result. Its peak frame is The peak window is defined as follows: Among them, half-window frame rate The value is determined by adjusting the preset window duration (approximately 0.3 seconds) and the video frame rate. For signals resampled to a fixed number of phase points, it can also be determined by rounding down to a preset proportion of the signal length. This characteristic is the 90th percentile of the smooth motion signal within the peak window. ,in This indicates that the values within the set are taken at the 90th percentile; using the 90th percentile instead of the maximum value avoids outliers from a single frame dominating amplitude estimation.
[0053] (b) Motion amplitude within the adaptive motion window: The motion window is adaptively determined based on the start and end times of the target motion curve, and the motion amplitude of the non-target region within this window is calculated. The adaptive motion window is determined as follows: Let the smoothed target motion curve be... Its peak frame is (As defined above), set the threshold. ,in In this embodiment, the preset threshold ratio is taken as... (That is, 50% of the peak value). From the peak frame Start by expanding to both sides: take the smallest value forward. Makes all All Take the largest value from the left. Makes all All That is, to obtain the largest continuous overthreshold interval containing the peak frame. Its two endpoints correspond to the start and end times of the target action, respectively. To avoid the window being too narrow, a minimum half-window is set. frame, This represents the total number of frames in the video signal; if Then, the interval is symmetrically expanded to both sides with the interval as the center until the length is not less than And truncated within the effective range of the signal. When the target motion curve is completely missing or there is no threshold frame, it degenerates into the fixed peak window in (a). The above threshold ratio Both the minimum half-window parameter and the minimum half-window parameter are preset constants, and the resulting window is uniquely determined for the same input signal, thus this definition is reproducible. The motion amplitude within the adaptive action window is... ,in and The definition is the same as (a).
[0054] (c) The Pearson linear correlation coefficient between the motion signal in the non-target area and the motion signal in the target area can quantify the degree of linear synchronization between the two time-series signals. The value range is from −1 to 1: a positive value indicates that the changes are in the same direction, and the larger the absolute value, the more obvious the linear co-movement.
[0055] (d) Welch frequency domain coherence: The Welch method is used to estimate the frequency domain coherence between the non-target signal and the target signal, and to detect the degree of synchronization between the two signals at different frequency components.
[0056] (e) Baseline change of non-target areas before and after action execution. Compare the positional differences of non-target areas during the resting phase before action and the recovery phase after action to detect whether the action caused a continuous positional change in non-target areas.
[0057] (f) The ratio of peak motion amplitude in the non-target area of the affected side to that of the healthy side is used to compare the intensity difference of the linked motion between the affected and healthy sides using the affected side perception mechanism.
[0058] (g) The ratio of the motion amplitude of the non-target area to the motion amplitude of the target area measures the relative magnitude of the linkage intensity to the active motion intensity.
[0059] The above seven characteristics systematically characterize the linkage phenomenon from multiple dimensions such as amplitude, synchronicity, frequency domain, and side differentiation, and can accurately answer questions such as "on which side, in which region, whether it is synchronized with the target action, and how strong the linkage is".
[0060] Step S7: Feature Aggregation and Affected Side Perception. Video-level features are aggregated into a subject-level wide table, with each row corresponding to one subject. Each column contains statistics on static, dynamic, and linked features from different action videos. The affected side perception step is performed: information on the affected side recorded in the clinical scoring table is read first; when affected side information is missing, the weaker side is automatically inferred as the affected side based on the cumulative motor ability of the five types of actions, and the video mirroring state is detected and uniformly processed. In feature construction, the ratio of the affected side to the healthy side is used as a key feature input, and the subject's own left-right comparison is used to reduce the interference of differences in individual facial shape, age, and expression habits on the scoring.
[0061] Simultaneously, perform time-robust processing: resample the motion signal of each action video to a fixed number of phase points (e.g., 64), and use the real timestamps to calculate physical quantities such as curve area and motion speed, so that the time-route statistics under different frame rates, different video lengths and different frame-sampling steps are comparable.
[0062] Step S8: Integrate the sub-scoring and rules with the model, and build prediction models for each of the 13 scoring sub-items. Candidate machine learning models include: logistic regression or random forest classifiers with class weights, ordinal regression models (OrdinalLogistic Regression, OrdinalRidge), tree model regressors (XGBoost, LightGBM), and gradient boosting models.
[0063] For proportional characteristics with clear clinical monotonic relationships, such as the ratio of active movement amplitude on the affected side to that on the healthy side, and the ratio of non-target to target linkage amplitude, monotonic interval rule mapping or isotonic regression is used to map the proportional values to scoring levels.
[0064] Subsequently, subject-level grouped cross-validation was employed to ensure that videos from the same subject did not simultaneously appear in both the training and test sets. The out-of-bounds predictive metrics for both the rule-based path and the machine learning model path were calculated separately, and the optimal predictive path was automatically selected or a weighted fusion was performed for each component. This mechanism enables the use of the most suitable predictive strategy for components with different data characteristics, balancing clinical interpretability and data-driven predictive capabilities.
[0065] For example, based on metrics such as the Quadratic Weighted Kappa (QWK), Balanced Accuracy (BA; the arithmetic mean of sensitivity and specificity in binary classification, and the macro average of recall rates for each class in multi-class classification, used to mitigate the impact of class imbalance on ordinary accuracy), or Mean Absolute Error (MAE; the arithmetic mean of the absolute difference between predicted and reference values, with smaller values indicating smaller errors) obtained from cross-validation out-of-bounds prediction, a selection or fusion between rule-based prediction and machine learning prediction can be performed.
[0066] Step S9: Total score calculation and output. The total score can be synthesized from the predicted sub-scores using a scoring formula, or it can be directly regressed using subject-level features. The system can select the optimal total score based on the validation error between the directly regressed total score and the formula-synthesized total score to obtain a more stable total score output.
[0067] In one specific embodiment, the scoring structure and formula are as follows: A Sunnybrook-like structured scoring configuration is adopted, dividing the score into static, dynamic, and linked components. The static component includes the palpebral fissure, nasolabial fold, and corner of the mouth; the dynamic component includes raising the eyebrows, slightly closing the eyes, wrinkling the nose, grinning, and pouting; the linked component includes the accompanying movements of non-target areas during each target action. The medical scoring concept of this structure is referenced from the Sunnybrook facial nerve scoring system, and the specific fields and value ranges are based on the scoring configuration of this embodiment.
[0068] For example, the total score can be calculated using the following formula: Static total score = ; Dynamic total score = ; Total score = ; Final total score = Dynamic total score - Static total score - Linked total score; Among them, field prefix This indicates a static scoring item. This indicates the score for palpebral fissure asymmetry at rest, with a value ranging from 0 to 1. The score represents the asymmetry of the nasolabial fold at rest, with a value ranging from 0 to 2. The score represents the asymmetry of verbal expression at rest, ranging from 0 to 1. The higher the score of the static item, the more obvious the asymmetry at rest. The multiplier of 5 is used to convert the static raw score into a static deduction score.
[0069] The field prefix dyn indicates an active motion scoring item. This indicates the score for the active movement of raising eyebrows. Indicates the score of active movement with eyes slightly closed. Indicates the active movement score of the wrinkled nose. This indicates the score for active motor skills involving grinning and showing teeth. This represents the active movement score for pouting. The values for each of the above dynamic items range from 1 to 5. The higher the score, the better the completion of the movement in the target area and the better the left-right symmetry. The multiplier of 4 is used to convert the raw scores of the five active movements into a dynamic total score.
[0070] The field prefix "syn" indicates a linked motion scoring item. This indicates the linkage score of non-target areas during the eyebrow-raising action. This indicates the coordination score of non-target areas during the light eye-closing action. This indicates the linkage score of non-target areas during the nose-wrinkling action. This indicates the non-target area linkage score during the grinning and teeth-showing action. This represents the non-target area linkage score during the pouting action. The values for each linkage item range from 0 to 3; higher scores indicate more pronounced abnormalities accompanied by movement.
[0071] In the formula, the static total score is 5 times the sum of the three static asymmetric original scores, which is a deduction item; the dynamic total score is 4 times the sum of the five active motion original scores, which is a functional scoring item; the linkage total score is the sum of the five linkage original scores, which is a deduction item; the final total score is obtained by subtracting the static total score and the linkage total score from the dynamic total score in sequence. This formula is the deterministic synthesis rule of this embodiment, which facilitates tracing back from the final total score to each scoring item.
[0072] The above sub-item names are only field names in one embodiment and do not limit the application of the present invention to other facial nerve function scoring systems or other action sets.
[0073] In addition, the system outputs the following evaluation results: a label cleaning table, a video list, keypoint data files (CSV / Parquet format), a video-level feature table, a subject-level feature table, a sub-item prediction table, a total score prediction table, an evaluation index table (including QWK, BA, MAE), a confusion matrix, a detection quality map, a total scatter plot, an error distribution map, and a keypoint overlay demonstration video. The keypoint overlay demonstration video overlays keypoints for the eyebrows, eyes, nose, and mouth, along with left and right side measurement lines, onto the original video frames, allowing doctors or researchers to visually see the facial regions and peak motions used by the algorithm.
[0074] The above method was validated using real clinical data. Data was collected from frontal motion videos of subjects from multiple collaborating medical institutions, and after de-identification, it was used for model training and evaluation. Subject-level grouped cross-validation (Group K-Fold) was employed, and the evaluation metrics included: Macro-averaged QWK: The QWK of each of the 13 rating items is calculated separately, and then the arithmetic mean of each item is calculated with equal weight. The result for the whole batch is 0.4194, which indicates that there is a moderate degree of non-random consistency between the predicted level and the reference level.
[0075] Mean absolute error of total score (MAE): the average of the absolute values of the difference between the predicted total score and the reference total score for each subject. The overall batch result was 8.4547, which is within an acceptable range for total scores of approximately 0 to 100.
[0076] Pearson linear correlation coefficient: The correlation coefficient between the predicted total score and the reference total score. The result for the whole batch is 0.8408, and the result for the 4th batch of independently held data is 0.8786, indicating that the predicted total score and the reference total score have a strong linear correlation.
[0077] It should be noted that the above statistical results are only used to illustrate the implementation effect of this technical solution and do not constitute a diagnostic conclusion for any specific subject, nor should the method of this invention be interpreted as a disease diagnosis method. The essence of this invention is a computer-based method for data processing and quantitative evaluation of facial motor function. Its output provides auxiliary reference for clinicians, and the final medical judgment is made by qualified clinicians.
[0078] Example 2: This embodiment provides an automated quantitative assessment system for facial paralysis based on facial video, including a processor and a memory. The memory stores a computer program, and the processor executes the computer program to implement the method described above. Exemplarily, the processor includes: a video input module for acquiring a video of the subject's frontal movements and scoring labels; a facial key point extraction module for frame-by-frame detection and extraction of key point coordinates; a posture and scale normalization module for estimating the individual's resting baseline, Umeyama rigid body alignment, and pupillary distance scale normalization; a feature construction module for constructing static, dynamic, and linked features, including a temporal robustness processing unit; a sub-item scoring module for aggregating features and performing rule-model optimization fusion on a sub-item basis; and a total score calculation and output module for calculating the total score according to a formula and outputting an assessment report and a key point overlay video. Furthermore, the system may also include an affected side inference module for automatically inferring the weaker side and processing video mirroring. The specific implementation methods of each module are consistent with the corresponding steps in Embodiment 1, and will not be repeated here.
[0079] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. For example, the facial landmark detection model is not limited to the MediaPipe series and can be replaced by other models capable of outputting dense facial landmarks, such as OpenFace, FaceAlignment, or a custom deep learning-based model; the action set is not limited to the above five categories and can be added or replaced according to clinical needs; the choice of machine learning model is not limited to the types listed above. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention. For non-core components or conventional technical means not described in detail in the specification, those skilled in the art can select and implement them based on common knowledge, and will not be elaborated here.
Claims
1. An automated quantitative assessment method for facial paralysis based on facial video, characterized in that, include: Acquire a frontal facial movement video of the subject, the video including multiple specific facial movements; Frames are extracted from each action video, and the coordinates of key points in each area of the face are extracted using a facial key point detection model. The individual resting baseline of the subject is estimated based on the stable frames in the first part of the video. Using the preset facial stable reference point as a benchmark, the similar transformation from each frame to the resting reference posture is fitted for rigid body alignment. The scale is normalized by the preset facial reference distance to obtain the dimensionless facial key point trajectory. Video-level features are constructed based on the dimensionless facial key point trajectories, and the video-level features include static features, dynamic features, and linkage features; The video-level features of multiple action videos of the same subject are aggregated into subject-level features, and sub-item scoring models are established according to static items, dynamic items and linkage items respectively. For each scoring item, the prediction value of each scoring item is obtained by selecting or fusing rule prediction and machine learning model prediction based on the validation index. Based on the preset scoring formula, the static total score, dynamic total score, linked total score, and final total score are calculated from the predicted values of each scoring item, and the evaluation results including item scores and total scores are output.
2. The automated quantitative assessment method for facial paralysis based on facial video according to claim 1, characterized in that, The specific facial movements include raising eyebrows, slightly closing eyes, wrinkling the nose, grinning, and pouting; the static features include static left-right symmetry features; the dynamic features include target area motion amplitude features and motion curve statistical features constructed according to the action type; the linkage features include non-target area accompanying motion features extracted according to side, region, and time window constraints; wherein, the construction method of the non-target area accompanying motion features is as follows: for each target action, the facial region is divided into target region and non-target region, and for each non-target region, the accompanying motion features are calculated separately for the left and right sides within the time window near the peak of the target action.
3. The automated quantitative assessment method for facial paralysis based on facial video according to claim 2, characterized in that, The static left-right symmetry features include: left-right difference in eye opening, eye opening tilt angle, nasolabial fold slope, left-right difference in the nasal ala or paranasal region, mouth corner height difference, mouth corner drooping angle, mouth width-to-height ratio, and cheek lift. Based on the static left-right symmetry features, resting eye opening asymmetry scores, resting nasolabial fold asymmetry scores, and resting mouth corner asymmetry scores are obtained.
4. The automated quantitative assessment method for facial paralysis based on facial video according to claim 2, characterized in that, The target region motion amplitude features constructed according to action type include: During the eyebrow raising action, calculate the vertical upward displacement of the key points of the left and right eyebrows relative to the resting baseline; During the gentle eye-closing action, the normalized closure amplitude and residual opening of the left and right eye fissures are calculated. During the nose wrinkling action, the displacement of key points in the nasal alar and paranasal regions relative to the resting baseline is calculated. During the grinning motion, calculate the combined indicators of the outward displacement of the corners of the mouth, the upward lifting of the corners of the mouth, and the increase in mouth width. During the pouting action, calculate the displacement of the corners of the mouth towards the midline, the change in lip area, and the displacement of the lip center. The statistical features of the motion curves include at least one of the following: maximum value, 90th percentile amplitude, mean, standard deviation, area under the curve, peak frame position, ratio of motion amplitude of the weak side to the strong side, and absolute difference between the left and right sides.
5. The automated quantitative assessment method for facial paralysis based on facial video according to claim 2, characterized in that, The accompanying motion features calculated for each non-target region separately on the left and right sides include at least one of the following: The robust 90th percentile amplitude of motion within the peak window of the target action; The amplitude of motion within the adaptive action window; The Pearson linear correlation coefficient between motion signals in non-target regions and motion signals in target regions; Welch frequency domain coherence between motion signals in non-target regions and motion signals in target regions; The baseline change in the non-target area before and after the action is performed; The ratio of peak motion amplitude in the non-target area on the affected side to that on the healthy side; The ratio of the motion amplitude of the non-target area to the motion amplitude of the target area.
6. The automated quantitative assessment method for facial paralysis based on facial video according to claim 1, characterized in that, The preset facial stability reference points are key points at the corners of the eyes, the bridge of the nose, and the tip of the nose. The preset facial reference distance is the interpupillary distance or the distance between the corners of the eyes; the individual resting baseline is determined by the average coordinates of key points of several frames of the face continuously detected in the front end of the video.
7. The automated quantitative assessment method for facial paralysis based on facial video according to claim 1, characterized in that, It also includes a affected side perception step: prioritizing the reading of affected side information from clinical records; when affected side information is missing, automatically inferring the weaker side as the affected side based on the cumulative motor ability of the various actions, and detecting and uniformly processing the video mirror state; In feature construction, the ratio of the affected side to the healthy side is used as the feature input, and the left and right comparison of the subjects themselves is used to reduce the interference of differences in facial shape, age and expression habits among different individuals on the score; The construction of video-level features also includes: resampling the motion signal of the video to a fixed number of phase points, and using real timestamps to calculate the area of the motion curve and the motion speed, so that the temporal statistics under different frame rates, different video lengths and different frame extraction steps are comparable.
8. The automated quantitative assessment method for facial paralysis based on facial video according to claim 1, characterized in that, The method of selecting or fusing the rule-based prediction and machine learning model prediction based on validation indicators specifically involves: performing monotonic interval rule mapping and isotonic calibration on proportional features including those with clear clinical monotonic meaning; combining the rule output and the machine learning model output; and selecting or fusing them separately based on at least one of the following indicators: the quadratic weighted Kappa consistency coefficient, balanced accuracy, or mean absolute error of the cross-validation out-of-bounds prediction. The machine learning model includes at least one of the following: a balanced classifier, an ordinal regression model, a sequential logistic regression model, a tree model regressor, or a gradient boosting model. When establishing the sub-score model, subject-level grouped cross-validation is used to ensure that different action videos of the same subject do not appear in the training set and the test set at the same time.
9. The automated quantitative assessment method for facial paralysis based on facial video according to claim 2, characterized in that, The preset scoring formula is: The static total score = ; The dynamic total score = ; The total score of the linkage = ; Final total score = Dynamic total score - Static total score - Linked total score; in, The resting palpebral fissure asymmetry score is given. To score resting nasolabial fold asymmetry, Asymmetrical scoring for resting verbal arguments; , , , and The scores for active movements were raised eyebrows, slightly closed eyes, wrinkled nose, grinned, and pouted. , , , and The scores are for the non-target area linkage corresponding to each action.
10. An automated quantitative assessment system for facial paralysis based on facial video, characterized in that, It includes a processor and a memory, the memory storing a computer program, and the processor executing the computer program to implement the automated quantitative assessment method for facial paralysis based on facial video as described in any one of claims 1 to 9.
