Anesthesia wake-up facial feature prediction method and device based on deep learning

By using deep learning technology and combining YOLO8, SHAP and Meta Q-Learning models, we have achieved automated recognition and early warning of facial features during postoperative anesthesia recovery. This solves the problems of labor-intensive and inaccurate manual observation and improves the automation and accuracy of recovery monitoring.

CN117975526BActive Publication Date: 2026-11-27THE FIFTH AFFILIATED HOSPITAL SUN YAT SEN UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410017042.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-03
Publication Date
2026-11-27
Estimated Expiration
2044-01-03

AI Technical Summary

Technical Problem

In existing technologies, facial feature observation during the postoperative anesthesia recovery phase relies on manual labor, which is labor-intensive and has low accuracy. In particular, it is difficult for inexperienced personnel to respond promptly to specific complications.

Method used

A deep learning-based approach is adopted, utilizing YOLO8, SHAP, and Meta Q-Learning sub-models for facial feature prediction, including key target detection, feature importance analysis, and time series prediction. Through image feature extraction and multi-dimensional panel time series prediction, automated recognition and early warning of facial features are achieved.

Benefits of technology

It improves the accuracy and efficiency of facial feature recognition, reduces the consumption of human resources, can provide timely warnings of specific complications during postoperative recovery, and improves the automation level of recovery monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117975526B_ABST
    Figure CN117975526B_ABST
Patent Text Reader

Abstract

The present application provides a kind of based on deep learning anesthesia wake-up facial feature prediction method, device, the method includes: sample facial video data is preprocessed;Sample facial video data is trained and tested;The facial video data to be measured is input to face landmark detection model, and key target detection is carried out by YOLO8 submodel, and feature importance analysis is carried out by first SHAP submodel, and YOLO8 submodel is adjusted based on the result of feature importance analysis by first Meta Q-Learning, and the target key landmark information of the object to be measured is obtained by target detection to facial video data by YOLO8 submodel after adjustment;Target key landmark information is input into image feature extraction model to obtain target feature;The prediction category is obtained by multidimensional panel time series prediction to target feature by time series prediction model. Face feature is accurately predicted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of facial feature prediction technology for anesthesia recovery based on deep learning, and particularly to a method and apparatus for predicting facial features for anesthesia recovery based on deep learning. Background Technology

[0002] Many patients experience specific complications during the postoperative anesthesia recovery phase. Currently, the only way to address these situations is by manually observing the patient's facial expressions. This process is very labor-intensive, and the accuracy of observation is relatively low for less experienced personnel. Summary of the Invention

[0003] This invention aims to at least solve one of the technical problems existing in the prior art. To this end, this invention proposes a method and device for predicting facial features during anesthesia recovery based on deep learning, which can accurately predict facial features.

[0004] In a first aspect, embodiments of the present invention provide a method for predicting facial features upon anesthesia recovery based on deep learning, including:

[0005] Acquire sample facial video data and preprocess the sample facial video data;

[0006] The preprocessed sample facial video data is divided into a first training set and a first test set. The first training set is input into a preset facial landmark detection model for training, and the first test set is input into the trained facial landmark detection model for testing, thereby obtaining the trained facial landmark detection model. The facial landmark detection module includes a YOLO8 sub-model, a first SHAP sub-model, and a first Meta Q-Learning sub-model.

[0007] Acquire the facial video data of the subject to be tested;

[0008] The facial video data to be tested is input into the facial landmark detection model. The YOLO8 sub-model is used to detect key targets in the facial video data. The facial video data after key target detection is then input into the first SHAP sub-model for feature importance analysis. Based on the results of the feature importance analysis, the YOLO8 sub-model is tuned using the first Meta Q-Learning method. The tuned YOLO8 sub-model is then used to detect targets in the facial video data to obtain the target key landmark information of the object to be tested.

[0009] The target key marker information is input into a preset image feature extraction model to obtain the target features;

[0010] The target features are predicted using a pre-defined time series prediction model to obtain the predicted category through multi-dimensional panel time series prediction.

[0011] In some embodiments of the present invention, the step of acquiring sample facial video data and preprocessing the sample facial video data includes:

[0012] The sample facial video data is obtained, and multiple keyframes are extracted from the sample facial video data to obtain multiple sample facial image data.

[0013] The same object is obtained from the sample facial images as a reference point, and the multiple sample facial image data are aligned according to the reference point, wherein the reference point is an unchanging object.

[0014] In some embodiments of the present invention, the step of inputting the facial video data to be tested into the facial landmark detection model, performing key target detection on the facial video data to be tested using the YOLO8 sub-model, inputting the facial video data after key target detection into the first SHAP sub-model for feature importance analysis, tuning the YOLO8 sub-model based on the results of the feature importance analysis using the first Meta Q-Learning, and performing target detection on the facial video data using the tuned YOLO8 sub-model to obtain the target key landmark information of the object to be tested, including:

[0015] The YOLO8 sub-model is used to detect key targets in the facial video data under test, and the bounding boxes of the objects of interest are obtained.

[0016] The first SHAP sub-model is used to perform feature importance analysis on the video frames of the facial video data to be tested and the objects of interest in the bounding boxes to obtain important indicators of different indicator features in the video frames.

[0017] The system acquires the indicator features in the video frame whose important indicators are higher than a preset threshold, and determines whether the indicator features exist in the bounding box. If not, the indicator features are identified as missing information; if so, the indicator features are identified as detection information.

[0018] The detection information and the omission information are input into the Meta Q-Learning sub-model, and the parameters of the YOLO8 sub-model are adjusted according to the detection information and the omission information;

[0019] The YOLO8 sub-model with adjusted parameters is used to detect key targets in the facial video data to be tested, thereby obtaining key target information.

[0020] In some embodiments of the present invention, the step of inputting the target key marker information into a preset image feature extraction model to obtain target features further includes:

[0021] Obtain key marker information from the sample;

[0022] The key marker information of the sample is divided to obtain a second training set and a second test set. The second training set is input into a preset image feature extraction model for training, and the second test set is input into the trained image feature extraction model for testing, so as to obtain the image feature extraction model that has been trained. The image feature extraction model includes a CNN sub-model, a second SHAP sub-model and a second Meta Q-Learning sub-model.

[0023] The target key marker information is input into the image feature extraction model, and the target key marker information is image recognized by the CNN sub-model. The facial video data after image recognition is input into the second SHAP sub-model for feature importance analysis. Based on the result of feature importance analysis, the parameters of the CNN sub-model are tuned by the second Meta Q-Learning sub-model. The target key marker information is then image recognized by the tuned CNN sub-model to obtain the target features of the test object.

[0024] In some embodiments of the present invention, after dividing the preprocessed sample facial video data into a first training set and a first test set, inputting the first training set into a preset facial landmark detection model for training, and inputting the first test set into the trained facial landmark detection model for testing, to obtain the trained facial landmark detection model, the process includes:

[0025] Cross-validate the trained facial landmark detection model;

[0026] The effectiveness of the facial landmark detection model is determined by the precision, recall, and F1 score after cross-validation.

[0027] In some embodiments of the present invention, after performing multi-dimensional panel time series prediction on the target features using a preset time series prediction model to obtain the predicted category, the process includes:

[0028] An alarm is sent when the predicted category is one of the categories in the preset set of warning categories.

[0029] In some embodiments of the present invention, the time series prediction model includes an RNN sub-model, a TimeSformer sub-model, and a third Meta Q-Learning sub-model. The step of performing multi-dimensional panel time series prediction on the target features using a preset time series prediction model to obtain the predicted category includes:

[0030] The target feature is predicted using the RNN sub-model, and the prediction result is input into the TimeSformer sub-model.

[0031] The spatiotemporal data in the time series prediction results are associated with the TimeSformer sub-model;

[0032] The RNN sub-model is tuned based on the spatiotemporal data association results using the third Meta Q-Learning sub-model. The tuned RNN sub-model is then used to perform time series prediction on the long-term dependency sequence data in the target key marker information to obtain the prediction category.

[0033] Secondly, embodiments of the present invention provide a deep learning-based anesthesia recovery facial feature prediction device, including at least one control processor and a memory for communicatively connecting to the at least one control processor; the memory stores instructions executable by the at least one control processor, the instructions being executed by the at least one control processor to enable the at least one control processor to perform the deep learning-based anesthesia recovery facial feature prediction method as described in the first aspect above.

[0034] Thirdly, embodiments of the present invention provide an electronic device including a deep learning-based facial feature prediction device for anesthesia recovery as described in the second aspect above.

[0035] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing computer-executable instructions for performing the deep learning-based facial feature prediction method for anesthesia recovery as described in the first aspect above.

[0036] The deep learning-based facial feature prediction method for anesthesia recovery according to embodiments of the present invention has at least the following beneficial effects: acquiring sample facial video data and preprocessing the sample facial video data; dividing the preprocessed sample facial video data into a first training set and a first test set; inputting the first training set into a preset facial landmark detection model for training; inputting the first test set into the trained facial landmark detection model for testing; obtaining the trained facial landmark detection model, wherein the facial landmark detection module includes a YOLO8 sub-model, a first SHAP sub-model, and a first Meta Q-Learning sub-model; acquiring the facial video data of the subject to be tested; inputting the facial video data to be tested into the facial landmark detection model; performing key target detection on the facial video data to be tested using the YOLO8 sub-model; inputting the facial video data after key target detection into the first SHAP sub-model for feature importance analysis; and performing feature importance analysis on the first Meta Q-Learning sub-model. Q-Learning, based on the results of feature importance analysis, tunes the YOLO8 sub-model. The tuned YOLO8 sub-model then performs target detection on the facial video data to obtain key target information of the object under test. This key target information is input into a preset image feature extraction model to obtain target features. A preset time series prediction model then performs multi-dimensional panel time series prediction on the key target information to obtain the predicted category. The facial landmark detection model enables the identification of different facial parts, i.e., key target detection, thereby comprehensively judging facial features and expressions. Furthermore, meta-learning dynamic tuning using YOLO8+SHAP+META Q-LEARNING allows for dynamic tuning of spoken interpretability and model accuracy, improving model accuracy. Attached Figure Description

[0037] Figure 1 This is a flowchart of a deep learning-based facial feature prediction method for anesthesia recovery provided in one embodiment of the present invention;

[0038] Figure 2 This is a schematic diagram illustrating a specific application scenario of a deep learning-based facial feature prediction method for anesthesia recovery, provided in another embodiment of the present invention.

[0039] Figure 3 This is a structural diagram of a deep learning-based facial feature prediction device for anesthesia recovery provided in another embodiment of the present invention. Detailed Implementation

[0040] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.

[0041] In the description of this invention, it should be understood that the orientation descriptions, such as up, down, front, back, left, right, etc., are based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limiting this invention.

[0042] In the description of this invention, "several" means one or more, "more than" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.

[0043] In the description of this invention, unless otherwise explicitly defined, terms such as "setting," "installing," and "connecting" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this invention in conjunction with the specific content of the technical solution.

[0044] The control method of the present invention will be further described below with reference to the accompanying drawings.

[0045] Reference Figure 1 , Figure 1 The flowchart illustrates a deep learning-based facial feature prediction method for anesthesia recovery, which includes, but is not limited to, the following steps:

[0046] Step S100: Obtain sample facial video data and preprocess the sample facial video data;

[0047] Step S200: Divide the preprocessed sample facial video data to obtain a first training set and a first test set. Input the first training set into the preset facial landmark detection model for training. Input the first test set into the trained facial landmark detection model for testing to obtain a trained facial landmark detection model. The facial landmark detection module includes a YOLO8 sub-model, a first SHAP sub-model, and a first Meta Q-Learning sub-model.

[0048] Step S300: Obtain the facial video data of the subject to be tested;

[0049] Step S400: Input the facial video data to be tested into the facial landmark detection model. Use the YOLO8 sub-model to perform key target detection on the facial video data to be tested. Input the facial video data after key target detection into the first SHAP sub-model for feature importance analysis. Use the first Meta Q-Learning to adjust the parameters of the YOLO8 sub-model based on the results of the feature importance analysis. Use the adjusted YOLO8 sub-model to perform target detection on the facial video data to obtain the target key landmark information of the object to be tested.

[0050] Step S500: Input the key target information into the preset image feature extraction model to obtain the target features;

[0051] Step S600: Perform multi-dimensional panel time series prediction on the target features using a preset time series prediction model to obtain the predicted category.

[0052] It should be noted that the sample facial video data mainly refers to facial video data of patients recovering from anesthesia after surgery.

[0053] It should be noted that during the training of the facial landmark detection model using sample facial video data, a visual model is used to analyze the facial video data frame by frame to identify and detect facial features in the sample video data. The visual model can be a neural network model such as a CNN model, and is not limited here. The four stages of anesthesia recovery are time-segmented [0,4], namely: 0: not yet awakened from anesthesia; 1: decreasing depth of anesthesia, gradual recovery of sensory and motor functions; 2: spontaneous breathing; 3: recovery of airway reflexes; 4: awake. Specific complications during anesthesia recovery are time-segmented [5,8], namely: 5: cardiovascular event; 6: regurgitation and aspiration; 7: airway obstruction; 8: agitation. The facial landmark detection model is trained based on the time-segmented sample facial video data.

[0054] It should be noted that the facial landmark detection model and image feature extraction model are used to extract features from the facial video data under test. Relevant features are extracted from frames extracted from the video within the marked time period, including features of the image itself (color histogram, etc.), changes in eyebrow movement, strabismus, lip twitching, or subtle facial muscle contractions.

[0055] It should be noted that a facial landmark detection model (YOLO8+SHAP+META Q-LEARNING) is used to identify key target landmark information, such as eyes, nose, mouth, and facial contours. This helps in tracking facial expressions and movements.

[0056] It should be noted that the image feature extraction model is used to analyze the facial expressions of key target landmarks to obtain target features. Furthermore, the target features are statistically analyzed, such as: (1) Head movement: Calculate the statistical data of head movement (mean, standard deviation), including yaw angle, pitch angle and roll angle. (2) Blink rate: Calculate the number of blinks per minute. (3) Mouth movement: Measure features related to mouth opening and closing, such as the aspect ratio of the mouth. (4) Gaze direction: Estimate the gaze direction (e.g., left, right, up, down) based on the position of eye landmarks. (5) Pupil dilation: Track the change in pupil size over time. The statistical results are compared with a preset threshold, and features that exceed the range are used as indicators of alertness and given special attention. Furthermore, for sample facial video data, features are aggregated and extracted. Statistical data are calculated, including the mean, standard deviation or histogram of feature values. Using the aggregated facial features as input and the annotated state labels as target variables, a machine learning classifier is trained during the training of sample facial video data.

[0057] In the test facial video data, YOLO (You Only LookOnce) is used for target detection, SHAP (SHapley Additive exPlanations) is used for feature importance analysis, and Meta Q-Learning is used for model optimization, dynamic parameter tuning, and robustness improvement.

[0058] In another embodiment, sample facial video data is acquired, and the sample facial video data is preprocessed, including:

[0059] Acquire sample facial video data, extract multiple keyframes from the sample facial video data, and obtain multiple sample facial image data;

[0060] The same object is obtained from the sample facial images as a reference point, and the data of multiple sample facial images are aligned according to the reference point. The reference point is an unchanging object.

[0061] It's important to note that because patients may constantly change position within the video, and the position of the video capture device may also shift, preprocessing is necessary to obtain more accurate facial expressions. This preprocessing applies to both sample facial video data and the facial video data to be tested. Individual frames or keyframes are periodically extracted from the video, and using reference objects in the video as a baseline, the frame of the video capture is correctly aligned and cropped to focus on the patient's face. It's important to understand that the reference object cannot be an object whose position changes.

[0062] In another embodiment, the facial video data to be tested is input into a facial landmark detection model. A YOLO8 sub-model performs key target detection on the facial video data. The facial video data after key target detection is then input into a first SHAP sub-model for feature importance analysis. Based on the results of the feature importance analysis, the YOLO8 sub-model is tuned using first Meta-Q-Learning. The tuned YOLO8 sub-model then performs target detection on the facial video data to obtain the target key landmark information of the object under test, including:

[0063] Key target detection is performed on the face video data to be tested using the YOLO8 sub-model to obtain the bounding boxes of the objects of interest.

[0064] The first SHAP sub-model is used to perform feature importance analysis on video frames and objects of interest in bounding boxes of the facial video data under test, and important indicators of different indicator features in the video frames are obtained.

[0065] The system acquires the key metrics in the video frame that are higher than a preset threshold, and determines whether the metrics feature exists in the bounding box. If it does not exist, the metrics feature is identified as missing information; if it does exist, the metrics feature is identified as detection information.

[0066] The detection and omission information are input into the Meta Q-Learning sub-model, and the parameters of the YOLO8 sub-model are adjusted based on the detection and omission information.

[0067] By using the YOLO8 sub-model with adjusted parameters to perform key target detection on the facial video data under test, key target marker information is obtained.

[0068] It's important to note that the annotations indicating the presence of specific objects or devices in the tested facial video data involve the YOLO8 sub-model annotating the data with bounding boxes around the objects of interest (such as medical devices). Understandably, during training with sample facial video data, the pre-trained YOLO8 sub-model is fine-tuned on the annotated dataset to perform object detection on the sample facial video data. The YOLO8 sub-model ultimately outputs the bounding boxes of the detected objects.

[0069] It's important to note the SHAP sub-model used for feature importance analysis: This sub-model is integrated into the object detection pipeline. For each video frame and object of interest within the bounding box of the test facial video data, SHAP is applied to explain why certain objects were detected or missed, involving the analysis of the importance of specific image regions or features. This importance metric is crucial for model evaluation.

[0070] It should be noted that meta-q learning is used for model tuning: a meta-q-learning framework is set up in which the agent (YOLO8 sub-model) learns to tune the YOLO8 sub-model parameters (anchor box size, model architecture, detection threshold) based on the SHAP sub-model interpretation and feedback on object detection performance.

[0071] Feedback loop: During video analysis, the results of object detection and SHAP sub-model interpretation are continuously analyzed. The YOLO8 sub-model is iteratively updated using the meta-q-learning sub-model, and hyperparameters are adjusted to improve object detection accuracy.

[0072] In another embodiment, inputting key target information into a preset image feature extraction model to obtain target features further includes:

[0073] Obtain key marker information from the sample;

[0074] The key marker information of the samples is divided to obtain a second training set and a second test set. The second training set is input into the preset image feature extraction model for training, and the second test set is input into the trained image feature extraction model for testing, thus obtaining a trained image feature extraction model. The image feature extraction model includes a CNN sub-model, a second SHAP sub-model, and a second Meta Q-Learning sub-model.

[0075] The key target information is input into the image feature extraction model. The CNN sub-model performs image recognition on the key target information. The facial video data after image recognition is input into the second SHAP sub-model for feature importance analysis. Based on the results of the feature importance analysis, the CNN sub-model is tuned through the second Meta Q-Learning sub-model. The tuned CNN sub-model then performs image recognition on the key target information to obtain the target features of the object under test.

[0076] It should be noted that CNN+SHAP+Third Meta Q-Learning combines Convolutional Neural Networks (CNN), Shapley Additive Explanations (SHAP), and Meta Q-Learning. The CNN sub-model processes image data from key target information. The SHAP sub-model calculates the contribution of features to the prediction results to interpret the model's output. This determines the degree of attention the CNN sub-model pays to image features in the key target information. Third Meta Q-Learning is then used to tune the CNN sub-model, resulting in a more accurate model.

[0077] In another embodiment, after dividing the preprocessed sample facial video data into a first training set and a first test set, inputting the first training set into a preset facial landmark detection model for training, and inputting the first test set into the trained facial landmark detection model for testing, to obtain a trained facial landmark detection model, the process includes:

[0078] Cross-validate the trained facial landmark detection model;

[0079] The effectiveness of a facial landmark detection model is determined by its precision, recall, and F1 score after cross-validation.

[0080] It's important to note that after the facial landmark detection model is trained, evaluation and validation are necessary: ​​Cross-validation: Perform cross-validation to evaluate the model's performance on new test facial video data. Use appropriate metrics such as precision, recall, and F1 score to assess the model's effectiveness. Deployment: Deploy the fine-tuned YOLO model, combined with SHAP and Meta Q-Learning, for real-time analysis of facial videos during anesthesia recovery. Understandably, evaluation and validation can also be performed during the training of the image feature extraction model.

[0081] In another embodiment, after performing multi-dimensional panel time series prediction on the target key marker information using a preset time series prediction model to obtain the predicted category, the process includes:

[0082] An alarm is sent if the predicted category is one of the categories in the preset set of warning categories.

[0083] It should be noted that the monitoring and alerting process involves continuous monitoring and analysis of the facial video data during the recovery process. An alert is issued if a specific object is detected near the face or if the predicted category for the face is cardiovascular event, regurgitation, airway obstruction, or agitation.

[0084] In another embodiment, the time series prediction model includes an RNN sub-model, a TimeSformer sub-model, and a third Meta Q-Learning sub-model. The model performs multi-dimensional panel time series prediction on the target key marker information using a preset time series prediction model to obtain prediction categories, including:

[0085] The long-term dependency sequence data in the key marker information of the target are predicted by using the RNN sub-model, and the time series prediction results are input into the TimeSformer sub-model.

[0086] The spatiotemporal data in the time series prediction results are correlated using the TimeSformer sub-model;

[0087] The third Meta Q-Learning sub-model is used to tune the RNN sub-model based on the results of spatiotemporal data association. The tuned RNN sub-model is then used to perform time series prediction on the long-term dependency sequence data in the key target information to obtain the prediction category.

[0088] It should be noted that after extracting the features, a prediction model needs to be built for the time series of panel data on postoperative anesthesia recovery and specific complications: based on the target features obtained by the facial landmark detection model and the image feature extraction model, multi-dimensional panel data time series prediction is achieved. Deep learning-based panel time series prediction involves predicting the future values ​​of variables of multiple entities (panels) observed over time. This can be achieved using a deep learning model that can capture complex time dependencies and patterns in the data. The following is an overview of the steps of the time series prediction model: (1) Data preparation: - Organize the panel time series data into a suitable format, with the data as 3D tensors, where the dimensions represent entities, time steps, and features (variables). Split the data into training, validation, and test sets. Since time series data has time dependencies, time splitting must be used to avoid data leakage. (2) Functional engineering: Determine the features to be used for prediction. These features may include lagged values ​​of the target variable, exogenous variables, and other relevant time series features. (3) Data normalization: Normalize the data to ensure that each feature has a similar scale. Common normalization techniques include min-max scaling or z-score normalization. (4) Sequence Generation: Create sequences (input-output pairs) for training deep learning models. For example, use the sliding window method to create fixed-length sequences from time series data. (5) Model Construction and Selection (RNN + TimeSformer + meta Q-LEARNING): Choose a suitable deep learning architecture for time series forecasting: Recurrent Neural Network (RNN): LSTM or GRU networks are typically used to handle sequence data with long-term dependencies. Transformer-based models: TimeSformer sub-model, used to handle spatiotemporal data correlations. Third meta Q-LEARNING sub-model, used for model convergence and automatic parameter tuning.

[0089] (6) Model Training: Train the deep learning model on the generated sequences using the training data. Optimize the model using an appropriate loss function (e.g., mean squared error for regression tasks) and optimization algorithms such as Adam or RMSprop. (7) Model Validation: Use a validation set to tune hyperparameters, such as the number of hidden units in the model or the learning rate, to avoid overfitting. (8) Model Evaluation: Evaluate the model's performance using a test set. Common evaluation metrics for time series forecasting include mean absolute error (MAE) and root mean square error (RMSE). (9) Model Deployment: Once the model has been trained and evaluated, it can be deployed to forecast new panel time series data. The deployed time series prediction model is put into application. The RNN sub-model is used to predict the long-term dependency sequence data in the key target information, and the time series prediction results are input into the TimeSformer sub-model. The TimeSformer sub-model is used to associate the spatiotemporal data in the time series prediction results. The third Meta Q-Learning sub-model is used to tune the RNN sub-model based on the spatiotemporal data association results. The tuned RNN sub-model is then used to predict the long-term dependency sequence data in the key target information to obtain the prediction category. (10) Monitoring and updating: The performance of the model is continuously monitored and updated when new data is available. It should be noted that deep learning models require a large amount of data to perform well, especially when dealing with complex time series patterns or small panels. In addition, feature engineering, data preprocessing and hyperparameter tuning are crucial for achieving accurate prediction.

[0090] One embodiment is provided below, with reference to Figure 2 :

[0091] 1.1 Training Data Collection: Collect a large dataset of labeled facial images or videos, including macroscopic facial features (visible facial features) and microscopic facial features. The dataset should cover a wide range of emotions and individuals.

[0092] 1.2 Preprocessing: The collected data is preprocessed by standardizing the images, aligning faces, and reducing noise or artifacts.

[0093] 1.3 Facial Landmark Detection: Facial landmark detection algorithms are used to identify key facial features, including eyes, eyebrows, nose, and mouth. These landmarks serve as reference points for subsequent analysis.

[0094] 1.4 Region of Interest (ROI) Extraction: Define the specific region of interest within the face that provides the richest information for facial feature analysis. ROIs include the face + neck ROI, face ROI, eye ROI, eyebrow ROI, nose ROI, mouth ROI, and ROIs for medical devices such as intubation devices.

[0095] 1.5 Feature Extraction: Relevant features, such as texture descriptors, optical flow, and intensity gradients, are extracted from the defined ROI. These features capture subtle facial variations associated with facial features.

[0096] 1.6 Machine Learning Training: A YOLO8+SHAP+META Q-LEARNING network was used to implement facial features. The extracted features were fused with the upsampled feature values ​​from the last layer to achieve classification prediction. The probabilities (P) of each category were calculated for each of the above ROIs. The average P value for all ROIs was taken as the property of the emotion; a property greater than 75% indicates the presence of that emotion.

[0097] 1.7 Fine-tuning and optimization: Techniques such as cross-validation, hyperparameter optimization, and data augmentation are used to fine-tune the trained model to improve performance and generalization ability.

[0098] 1.8 Real-time detection: Applying the trained model to real-time or streaming video data for facial feature detection. This can involve using the trained model to process frames or video sequences to identify and classify facial features as they appear.

[0099] 1.9 Evaluation and Validation: Evaluate the algorithm's performance using appropriate metrics, such as accuracy, precision, recall, or F1 score. Validate the algorithm on unseen data to assess its generalization ability.

[0100] 1.10 Model Optimization: Collect user feedback and continuously update and improve the algorithm based on real-world usage scenarios. Consider incorporating feedback from psychology or behavioral analysis experts to improve the accuracy and reliability of the algorithm.

[0101] like Figure 3 As shown, Figure 3 This is a structural diagram of a deep learning-based facial feature prediction device for anesthesia recovery, provided in one embodiment of the present invention. The present invention also provides a deep learning-based facial feature prediction device for anesthesia recovery, comprising:

[0102] The processor 310 can be implemented using a general-purpose central processing unit (CPU), microprocessor, application specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application.

[0103] The memory 320 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 320 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 320 and called and executed by the processor 310 to execute the deep learning-based anesthesia awakening facial feature prediction method of the embodiments of this application.

[0104] Input / output interface 330 is used to realize information input and output;

[0105] The communication interface 340 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0106] Bus 350 transmits information between various components of the device (e.g., processor 310, memory 320, input / output interface 330, and communication interface 340);

[0107] The processor 310, memory 320, input / output interface 330 and communication interface 340 are connected to each other within the device via bus 350.

[0108] This application also provides an electronic device, including the deep learning-based facial feature prediction device for anesthesia recovery as described above.

[0109] This application embodiment also provides a storage medium, which is a computer-readable storage medium, storing a computer program that, when executed by a processor, implements the above-described deep learning-based anesthesia awakening facial feature prediction method.

[0110] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof. The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separate, and may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0111] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically include computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0112] The above provides a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of the present invention.

Claims

1. A deep learning-based method for predicting facial features during anesthesia recovery, characterized in that, include: Acquire sample facial video data and preprocess the sample facial video data; The preprocessed sample facial video data is divided into a first training set and a first test set. The first training set is input into a preset facial landmark detection model for training, and the first test set is input into the trained facial landmark detection model for testing, thereby obtaining the trained facial landmark detection model. The facial landmark detection module includes a YOLO8 sub-model, a first SHAP sub-model, and a first Meta Q-Learning sub-model. Acquire the facial video data of the subject to be tested; The facial video data to be tested is input into the facial landmark detection model. The YOLO8 sub-model is used to detect key targets in the facial video data. The facial video data after key target detection is then input into the first SHAP sub-model for feature importance analysis. Based on the results of the feature importance analysis, the YOLO8 sub-model is tuned using the first Meta Q-Learning method. The tuned YOLO8 sub-model is then used to detect targets in the facial video data to obtain the target key landmark information of the object to be tested. The target key marker information is input into a preset image feature extraction model to obtain the target features; The target features are predicted using a pre-defined time series prediction model to obtain the predicted category; The step of inputting the target key marker information into a preset image feature extraction model to obtain target features also includes: Obtain key marker information from the sample; The key marker information of the sample is divided to obtain a second training set and a second test set. The second training set is input into a preset image feature extraction model for training, and the second test set is input into the trained image feature extraction model for testing, so as to obtain the image feature extraction model that has been trained. The image feature extraction model includes a CNN sub-model, a second SHAP sub-model and a second Meta Q-Learning sub-model. The target key marker information is input into the image feature extraction model, and the target key marker information is image recognized by the CNN sub-model. The facial video data after image recognition is input into the second SHAP sub-model for feature importance analysis. Based on the result of feature importance analysis, the parameters of the CNN sub-model are tuned by the second Meta Q-Learning sub-model. The target key marker information is then image recognized by the tuned CNN sub-model to obtain the target features of the test object.

2. The deep learning-based facial feature prediction method for anesthesia recovery according to claim 1, characterized in that, The acquisition of sample facial video data and the preprocessing of the sample facial video data include: The sample facial video data is obtained, and multiple keyframes are extracted from the sample facial video data to obtain multiple sample facial image data. The same object is obtained from the sample facial images as a reference point, and the multiple sample facial image data are aligned according to the reference point, wherein the reference point is an unchanging object.

3. The deep learning-based facial feature prediction method for anesthesia recovery according to claim 1, characterized in that, The process involves inputting the facial video data to be tested into the facial landmark detection model, performing key target detection on the facial video data using the YOLO8 sub-model, and then inputting the facial video data after key target detection into the first SHAP sub-model for feature importance analysis. Based on the results of the feature importance analysis, the YOLO8 sub-model is tuned using the first Meta Q-Learning method. The tuned YOLO8 sub-model then performs target detection on the facial video data to obtain the target key landmark information of the object under test, including: The YOLO8 sub-model is used to detect key targets in the facial video data under test, and the bounding boxes of the objects of interest are obtained. The first SHAP sub-model is used to perform feature importance analysis on the video frames of the facial video data to be tested and the objects of interest in the bounding boxes to obtain important indicators of different indicator features in the video frames. The system acquires the indicator features in the video frame whose important indicators are higher than a preset threshold, and determines whether the indicator features exist in the bounding box. If not, the indicator features are identified as missing information; if so, the indicator features are identified as detection information. The detection information and the omission information are input into the Meta Q-Learning sub-model, and the parameters of the YOLO8 sub-model are adjusted according to the detection information and the omission information; The YOLO8 sub-model with adjusted parameters is used to detect key targets in the facial video data to be tested, thereby obtaining key target information.

4. The deep learning-based facial feature prediction method for anesthesia recovery according to claim 1, characterized in that, After dividing the preprocessed sample facial video data into a first training set and a first test set, inputting the first training set into a preset facial landmark detection model for training, and inputting the first test set into the trained facial landmark detection model for testing, to obtain the trained facial landmark detection model, the process includes: Cross-validate the trained facial landmark detection model; The effectiveness of the facial landmark detection model is determined by the precision, recall, and F1 score after cross-validation.

5. The deep learning-based facial feature prediction method for anesthesia recovery according to claim 1, characterized in that, After performing multi-dimensional panel time series prediction on the target features using a preset time series prediction model to obtain the predicted category, the process includes: An alarm is sent when the predicted category is one of the categories in the preset set of warning categories.

6. The deep learning-based facial feature prediction method for anesthesia recovery according to claim 1, characterized in that, The time series prediction model includes an RNN sub-model, a TimeSformer sub-model, and a third Meta Q-Learning sub-model. The target features are subjected to multi-dimensional panel time series prediction using the preset time series prediction model to obtain predicted categories, including: The target feature is predicted using the RNN sub-model, and the prediction result is input into the TimeSformer sub-model. The spatiotemporal data in the time series prediction results are associated with the TimeSformer sub-model; The RNN sub-model is tuned based on the spatiotemporal data association results using the third Meta Q-Learning sub-model. The tuned RNN sub-model is then used to perform time series prediction on the long-term dependency sequence data in the target key marker information to obtain the prediction category.

7. A deep learning-based facial feature prediction device for anesthesia recovery, characterized in that, It includes at least one control processor and a memory for communicatively connecting to the at least one control processor; the memory stores instructions executable by the at least one control processor, which, when executed by the at least one control processor, enable the at least one control processor to perform the deep learning-based anesthesia awakening facial feature prediction method as described in any one of claims 1 to 6.

8. An electronic device, characterized in that, Includes the deep learning-based facial feature prediction device for anesthesia recovery as described in claim 7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions for causing a computer to perform the deep learning-based facial feature prediction method for anesthesia recovery as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Facial pain expression recognition method and system based on depth information

    CN113080855A