Facial expression classification algorithm and system for stroke patients based on attention and neural network
Through an expression classification algorithm for stroke patients based on attention and neural networks, using down-sampling feature extraction and channel attention structure, the problem of insufficient emotion screening in rehabilitation training in the existing technology is solved, and fast and accurate expression recognition and Personalized rehabilitation treatment.
Patent Information
- Application Number
- CN202210544094.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-18
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-05-18
AI Technical Summary
The existing technology ignores the emotional screening during the training process in the rehabilitation training of stroke patients, resulting in the diagnosis results being easily affected by external factors, time-consuming and labor-intensive, and the patient's negative emotions cannot be detected in time, which affects the rehabilitation effect.
An expression classification algorithm for stroke patients based on attention and neural networks is adopted. By establishing an expression database and facial expression recognition model, the downsampling feature extraction structure, channel attention structure and graph convolution neural layer are used to achieve fast and accurate expression feature extraction. and classification.
It improves the accuracy and speed of facial expression recognition, can promptly detect the negative emotions of stroke patients, reduces the impact of external factors, and achieves personalized rehabilitation treatment.
Smart Images

Figure CN114943997B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision technology, and in particular to an algorithm and system for classifying facial expressions of stroke patients based on attention and neural networks. Background Art
[0002] In recent decades, the prevalence of stroke has increased significantly, and a large amount of medical research is also underway. As a result, the level of monitoring and research on it has been continuously improving. Recognizing and detecting the facial expressions of stroke patients during training and rehabilitation is an urgent problem that hospitals need to solve.
[0003] Most of the existing methods rely on direct observation of the facial expressions, speech and behaviors of stroke patients during rehabilitation training after training and rehabilitation, and ignore the emotional screening of stroke patients during the training process. This is not only time-consuming and labor-intensive, but the diagnostic results are also easily affected by various external factors such as the hospital level, the doctor's subjectivity, the education level and age of the rehabilitation patients, resulting in various complications such as depression in the patients after rehabilitation training. At the same time, the existing technology cannot detect the negative emotions of patients in time during the rehabilitation training process, resulting in the doctor's inability to adjust or even stop the patient's rehabilitation training in time to carry out personalized rehabilitation treatment. For this reason, the present application proposes an expression classification algorithm and system for stroke patients based on attention and neural networks. Summary of the invention
[0004] In view of the shortcomings of the prior art, the present invention provides an algorithm and system for classifying facial expressions of stroke patients based on attention and neural networks, which have the advantages of high accuracy and fast recognition speed, etc., and solve the problems of the prior art, which is time-consuming and labor-intensive, and the diagnosis results are easily affected by various external factors such as the level of the hospital, the subjectivity of the doctor, the education level and age of the rehabilitation patients, thereby causing various concurrent comprehensive symptoms such as depression to the patients after rehabilitation training. At the same time, the prior art cannot detect the negative emotions of the patients in time during the rehabilitation training process, resulting in the problem that the doctors cannot adjust or even stop the rehabilitation training of the patients in time to carry out personalized rehabilitation treatment.
[0005] In order to achieve the above-mentioned purpose of high accuracy and fast recognition speed, the present invention provides the following technical solution: an algorithm for classifying facial expressions of stroke patients based on attention and neural network, comprising the following steps:
[0006] A. Establish a database of facial expressions of stroke patients;
[0007] a1. Select a large number of patients across the country as samples and take pictures of their various expressions;
[0008] a2. Upload all emoticons to the system center;
[0009] a3. Read the target image to be identified;
[0010] a4. Use Dlib forward face detector for detection;
[0011] a5. Get the returned picture of facial features;
[0012] a6. Get the face and crop it out;
[0013] a7. Store the face as a single piece of data in the database;
[0014] B. Establishing a facial expression recognition model: The facial expression recognition model includes a downsampling feature extraction structure, a channel attention structure, three graph neural network layers, and a loss layer;
[0015] b1. The downsampling feature extraction structure is used to extract features of the face image in the target frame through a small convolution block to obtain a rough feature map;
[0016] b2. The channel attention structure is used to extract features from the input feature map through a depth-separable convolution structure to obtain a fine feature map, and global average pooling is used on the input feature map in the channel domain to encode the entire spatial feature on a channel as a global feature to achieve weighted feature map weighting to obtain a key feature map, and the obtained fine feature map is dot-multiplied with the key feature map and then superimposed with the fine feature map to obtain a channel attention feature map;
[0017] b3. The feature map is passed through three graph convolutional neural layers. The graph convolutional neural layers use the features on the feature map as nodes and generate edges based on different feature distances. This simply and effectively implements the construction of the graph network and can quickly learn all the spatial features of the stroke patient's expression.
[0018] b4, the loss layer is used to obtain the loss value of the feature map output by the graph convolutional neural layer structure, so as to predict the facial expression category according to the loss value;
[0019] C. Train the algorithm model from the stroke patient expression database, and then obtain an offline trained facial expression classification and recognition model.
[0020] Furthermore, in the downsampling feature extraction structure of the facial expression recognition model, small convolution blocks are used to extract features of the target box containing the face area, which can make full use of the information of each pixel in the image and can achieve the purpose of quickly extracting facial expression features.
[0021] Furthermore, in the channel attention structure of the facial expression recognition model, on the one hand, channel information is used as weighted features to further extract facial expression features and obtain key expression information that can be classified.
[0022] Furthermore, the graph convolutional neural layer can quickly construct graphs through feature maps.
[0023] Furthermore, in the channel attention structure diagram, the channel attention focuses on the effective channel features and multiplies them with the original feature map to adaptively adjust the features. The channel feature change formula is: C =σ(MLP(Avg Pool(F))).
[0024] Furthermore, the feature map is first average pooled and max pooled on the channel, and after selecting the maximum value, the feature value is fused through a multi-layer perceptron, and then the original feature is multiplied by the feature value to complete the channel weighting.
[0025] Another technical problem to be solved by the present invention is to provide an expression classification system for stroke patients based on attention and neural network, including a target frame extraction module and a facial expression recognition module.
[0026] Furthermore, the target frame extraction module is used to extract a target frame containing a face area from the target image to be identified, and perform feature normalization processing on the extracted target frame.
[0027] Furthermore, the facial expression recognition module is used to perform facial expression recognition on the target frame after feature normalization using the facial expression recognition model that has been trained offline, thereby identifying the facial expression category of the face in the target image, and directly processing the captured data in real time through a computer.
[0028] Compared with the prior art, the present invention provides an expression classification algorithm and system based on attention mechanism and graph convolutional neural network, which has the following beneficial effects:
[0029] 1. The algorithm and system for classifying facial expressions of stroke patients based on attention and neural networks, in the downsampling feature extraction structure of the facial expression recognition model, uses small convolution blocks to extract features from the target frame containing the face area, which can make full use of the information of each pixel in the image and can quickly extract facial expression features; in the channel attention structure of the facial expression recognition model, on the one hand, channel information is used as weighted features to further extract facial expression features, and key expression information that can be classified is obtained, thereby improving the recognition accuracy of facial expression recognition; on the other hand, the graph convolution neural layer can quickly construct a graph through the feature map, thereby reducing the model size and improving the recognition speed of facial expression recognition; in general, the above-mentioned facial expression recognition method based on the channel attention mechanism and graph convolutional neural network can improve the recognition accuracy and recognition speed of facial expression recognition.
[0030] 2. The algorithm and system for categorizing facial expressions of stroke patients based on attention and neural networks use the latest artificial intelligence technology and can achieve a high recognition accuracy rate. It mainly uses deep learning technology for facial expression recognition and classification, and its main function is to capture facial expression movements, process and analyze captured data, and judge facial expressions. It involves multiple disciplines such as ergonomics, computer graphics, image processing, and data processing. In view of the various problems existing in the current stroke diagnostic standards and the fact that the facial expression reactions of stroke patients often have facial expression asymmetry problems such as hemiplegia, which are different from healthy children, the present invention combines deep learning technology to construct a facial expression recognition model, extracts facial expression feature data of stroke, and performs expression recognition and classification during training by deep learning the stroke expression reaction features, so as to achieve efficient and convenient emotions of stroke patients during training, and timely discover them, so as to achieve the purpose of medical intelligence. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A schematic diagram of establishing a stroke facial expression database based on Dlib provided by an embodiment of the present invention;
[0032] Figure 2 A schematic diagram of the structure of a facial expression recognition model based on a channel attention mechanism and a graph convolutional neural network provided in an embodiment of the present invention;
[0033] Figure 3 A schematic diagram of the graph convolutional neural network structure provided by an embodiment of the present invention;
[0034] Figure 4 A flowchart of using a training data set to train a facial expression recognition model provided by an embodiment of the present invention;
[0035] Figure 5 A schematic diagram comparing the recognition results of different facial expression recognition methods provided by an embodiment of the present invention;
[0036] Figure 6 A facial expression sampling diagram provided by an embodiment of the present invention;
[0037] Figure 7 A real-time classification and recognition block diagram provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] See also Figure 1-7 ,The stroke patient expression classification algorithm based on attention and neural network includes the following steps:
[0040] A. Establish a database of facial expressions of stroke patients;
[0041] a1. Select a large number of patients across the country as samples and take pictures of their various expressions;
[0042] a2. Upload all emoticons to the system center;
[0043] a3. Read the target image to be identified;
[0044] a4. Use Dlib forward face detector for detection;
[0045] a5. Get the returned picture of facial features;
[0046] a6. Get the face and crop it out;
[0047] a7. Store the face as a single piece of data in the database;
[0048] B. Establishing a facial expression recognition model: The facial expression recognition model includes a downsampling feature extraction structure, a channel attention structure, three graph neural network layers, and a loss layer;
[0049] b1. The downsampling feature extraction structure is used to extract features of the face image in the target frame through a small convolution block to obtain a rough feature map;
[0050] b2. The channel attention structure is used to extract features from the input feature map through a depth-separable convolution structure to obtain a fine feature map, and global average pooling is used on the input feature map in the channel domain to encode the entire spatial feature on a channel as a global feature to achieve weighted feature map weighting to obtain a key feature map, and the obtained fine feature map is dot-multiplied with the key feature map and then superimposed with the fine feature map to obtain a channel attention feature map;
[0051] b3. The feature map is passed through three graph convolutional neural layers. The graph convolutional neural layers use the features on the feature map as nodes and generate edges based on different feature distances. This simply and effectively implements the construction of the graph network and can quickly learn all the spatial features of the stroke patient's expression.
[0052] b4, the loss layer is used to obtain the loss value of the feature map output by the graph convolutional neural layer structure, so as to predict the facial expression category according to the loss value;
[0053] C. Train the algorithm model from the stroke patient expression database, and then obtain an offline trained facial expression classification and recognition model.
[0054] Another technical problem to be solved by the present invention is to provide an expression classification system for stroke patients based on attention and neural network, including a target frame extraction module and a facial expression recognition module.
[0055] Among them, the facial expression recognition module is used to use the facial expression recognition model that has been trained offline to perform facial expression recognition on the target frame after feature normalization, so as to identify the facial expression category of the face in the target image and directly process the captured data in real time through a computer.
[0056] At the same time, in the downsampling feature extraction structure of the facial expression recognition model, small convolution blocks are used to extract features of the target box containing the face area, which can make full use of the information of each pixel in the image and can achieve the purpose of quickly extracting facial expression features.
[0057] In the channel attention structure of the facial expression recognition model, on the one hand, channel information is used as weighted features to further extract facial expression features and obtain key expression information that can be classified.
[0058] Secondly, the target frame extraction module is used to extract the target frame containing the face area from the target image to be identified, and perform feature normalization processing on the extracted target frame.
[0059] In the channel attention structure diagram, channel attention focuses on effective channel features and multiplies them with the original feature map to adaptively adjust the features. The channel feature change formula is:
[0060] M C =σ(MLP(Avg Pool(F))).
[0061] The feature map is first average pooled and max pooled on the channel. After selecting the maximum value, the feature value is fused through a multi-layer perceptron, and then the original feature is multiplied by the feature value to complete the channel weighting.
[0062] Embodiment: Expression classification algorithm and system based on attention mechanism and graph convolutional neural network provided by the present invention:
[0063] The method of establishing a stroke facial expression database based on Dlib includes:
[0064] (1) Read the target image to be identified;
[0065] (2) Use Dlib forward face detector for detection;
[0066] (3) Get the returned facial feature image.
[0067] After the stroke facial expression database was established, we trained and tested the facial expression classification and recognition model on this database. The facial expression recognition model includes a channel attention structure, three graph neural convolutional network layers and a loss layer.
[0068] See also Figure 2 , the downsampling feature extraction structure is used to extract features of the face image in the target frame through a small convolution block to obtain a rough feature map; the channel attention structure is used to extract features of the input feature map through a depth-separable convolution structure to obtain a fine feature map, and global average pooling is used on the input feature map in the channel domain to encode the entire spatial feature on a channel as a global feature to achieve weighted feature map weighting, obtain a key feature map, and multiply the obtained fine feature map with the key feature map and superimpose it with the fine feature map to obtain a channel attention feature map; then this feature map is passed through three graph convolution neural layers, which will use the features on this feature map as nodes and generate edges according to different feature distances, thus simply and effectively realizing the construction of the graph network and being able to quickly learn all the spatial features of the expression of stroke patients; the fusion loss layer is used to obtain the loss value of the feature map to predict the facial expression category based on the loss value;
[0069] Among them, the above-mentioned facial expression recognition method based on the channel attention mechanism and graph convolutional neural network, in the downsampling feature extraction structure of the facial expression recognition model, uses a small convolution block to extract features of the target box containing the face area, which can make full use of the information of each pixel in the image and can achieve the purpose of quickly extracting facial expression features; in the channel attention structure of the facial expression recognition model, on the one hand, channel information is used as weighted features to further extract facial expression features, and key expression information that can be classified is obtained, thereby improving the recognition accuracy of facial expression recognition; on the other hand, the graph convolutional neural layer can quickly construct a graph through the feature map, thereby reducing the model size and improving the recognition speed of facial expression recognition; in general, the above-mentioned facial expression recognition method based on the channel attention mechanism and graph convolutional neural network can improve the recognition accuracy and recognition speed of facial expression recognition.
[0070] In this channel attention structure diagram, channel attention focuses on effective channel features and multiplies them with the original feature map to adaptively adjust the features. The following is the formula for channel feature change:
[0071] M C =σ(MLP(Avg Pool(F)))
[0072] The feature map is first average pooled and max pooled on the channel. After selecting the maximum value, the feature value is fused through a multi-layer perceptron, and then the original feature is multiplied by the feature value to complete the channel weighting.
[0073] See also Figure 3 : The graph convolutional neural network structure can calculate the updated node features and construct the graph structure by inputting the feature graph and adjacency matrix.
[0074] In a graph consisting of N nodes (N = 1, 2, 3, ..., n), X∈R d Represents the characteristics of all nodes, X i Represents the feature A∈R of node i N×N . represents the adjacency matrix, A ij shows the weight of the edge between node i and node j (currently there is no self-loop, i.e. A ii =0). When GCN propagates forward, each node will fuse the information of its adjacent nodes as the embedding of the node in the next layer. The training of GCN can be understood as training a mapping function f G (.,.). The input of GCN is the vector matrix H∈R representing the node embedding n×d And the adjacency matrix A between nodes. Then update the embedding of each node by calculation, where the node embedding of layer I is H (l+1) ∈R n×d .
[0075] After the feature map is obtained through the graph neural network layer, we use the cross entropy loss function to calculate the loss value, which is calculated as follows:
[0076] L = -[ylogy^+(1-y)log(1-y^)]
[0077] Where y represents the true label and y^ represents the network predicted label. The loss function is continuously updated through iterations.
[0078] In this embodiment, in the downsampling feature extraction structure of the facial expression recognition model, by fusing the feature attention and graph neural network layers, the feature differences learned by the model are maximized and the spatial semantic information of the image is learned, so that expressions can be better distinguished and network overfitting can be prevented, thereby improving the generalization ability of the model.
[0079] Since the neural network model used in the present invention is very lightweight and has only three layers compared to other facial expression recognition networks, the recognition speed of facial expression recognition is improved.
[0080] On this basis, the present invention proposes a system based on channel attention mechanism and graph convolutional neural network stroke facial expression recognition method, such as Figure 7 As shown:
[0081] (1) extracting a target frame containing the face area from the target image to be identified, and performing feature normalization processing on the extracted target frame;
[0082] (2) Use the facial expression recognition model that has been trained offline to perform facial expression recognition on the target frame after feature normalization, thereby identifying the facial expression category of the face in the target image and directly processing the captured data in real time through a computer.
[0083] Therefore, the present invention can process videos with high real-time requirements and recognize the facial expression category of each frame image therein in real time.
[0084] The present invention is further described below in conjunction with experiments.
[0085] 1. The stroke facial expression library created by the present invention
[0086] In this embodiment, the facial expression data set selected is the stroke expression database created by ourselves. Figure 1 The dataset is constructed using the dlib method in . The dataset images are provided by Huashan Hospital and have been approved by ethics. Specifically, we collected videos and then captured the facial expression data images, which consist of 1,143 facial expression images, all in PNG format. The dataset contains six types of expressions, and the specific expression category labels include: angry, pain, fear, happy, sad, and neutral. Each type of data is balanced. The expressions of these images are marked by doctors, and images with ambiguous expressions are discarded. The dataset is divided into training set, test set, and validation set in a ratio of 8:1:1.
[0087] 2. Image data preprocessing.
[0088] The final effect is Figure 6 As shown in the figure, the training set, test set, and validation set are divided into three folders, each of which contains single-channel grayscale images of 6 different expressions. Figure 3 The right side shows the "angry" type of pictures. Because the expression pictures obtained are pure face pictures, the size is also the same (48*48), and they have all been through face detection, irrelevant background clipping and normalization, this article will not use other algorithms (such as Adaboost algorithm) to further preprocess the pictures. So far, the preprocessing part of the stroke facial expression library has been completed.
[0089] 3. Experimental Platform
[0090] The relevant experimental platform is: CPU Intel(R)CoreTMi5-7500CPU@3.40GHz, memory 32G DDR42400MHz, GPU GeForce GTX 1080Ti, video memory 16G; operating system windows 64-bit, experimental platform pycharm, pytorch.
[0091] 4. Train in the neural network to obtain a trained facial expression recognition model
[0092] The entire training set is passed into the neural network designed by the present invention, and the downsampling feature extraction structure of the network is used to extract features of the face image in the target frame through a small convolution block to obtain a rough feature map; the channel attention structure is used to extract features of the input feature map through a depth-separable convolution structure to obtain a fine feature map, and global average pooling is used for the input feature map in the channel domain to encode the entire spatial feature on a channel as a global feature to achieve weighted feature map weighting to obtain a key feature map, and the obtained fine feature map is dot-multiplied with the key feature map and then superimposed with the fine feature map to obtain a channel attention feature map; then this feature map is passed through three graph convolution neural layers, and the graph convolution neural layers will use the features on this feature map as nodes, generate edges according to different feature distances, and simply and effectively realize the construction of the graph network and can quickly learn all the spatial features of the expression of stroke patients; the fusion loss layer is used to obtain the loss value of the feature map to predict the facial expression category according to the loss value, thereby obtaining a trained facial expression recognition model.
[0093] Among them, two evaluation methods are used for the results of model testing:
[0094] 1) Accuracy: It is used to measure the performance of the classifier in correct classification. The calculation method of accuracy is:
[0095]
[0096] Where N represents the total number of samples in the test data set; when, is 1 if the value is true, otherwise it is 0.
[0097] (2) Confusion matrix: Each column represents the predicted category, and the total number of each column represents the number of data predicted to be in that category; each row represents the true category of the data, and the total number of data in each row represents the number of data instances in that category.
[0098] The confusion matrix generated by the method of the present invention is as follows Figure 6As shown in the figure, it can be seen that the recognition accuracy of the two expressions of pain and fear is relatively high. The recognition accuracy of these two types of expressions, especially the recognition accuracy of the expression of pain, is basically above 90%.
[0099] 5. Use the offline trained facial expression recognition model to recognize facial expressions of stroke patients in real time.
[0100] See also Figure 7 , the real-time video frame is used to extract the patient's face using the Dlib-based face feature extractor, and then passed into the facial expression recognition model that has been trained offline. The model classifies the incoming features and obtains the classified expression results.
[0101] The electrical components appearing in the article are all electrically connected to the main controller and the power supply. The main controller can be a conventional known device for control such as a computer, and the existing public power connection technology is not described in detail in the article.
[0102] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0103] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for classifying facial expressions of stroke patients based on attention and neural network, characterized in that: The following steps are involved: A. Establish a database of facial expressions of stroke patients; a1. Select a large number of patients across the country as samples and take pictures of their various expressions; a2. Upload all emoticons to the system center; a3. Read the target image to be identified; a4. Use Dlib forward face detector for detection; a5. Get the returned picture of facial features; a6. Get the face and crop it out; a7. Store the face as a single piece of data in the database; B. Establishing a facial expression recognition model: The facial expression recognition model includes a downsampling feature extraction structure, a channel attention structure, three graph neural network layers, and a loss layer. In the schematic diagram of the channel attention structure, the channel attention focuses on effective channel features and multiplies them with the original feature map to adaptively adjust the features. The channel feature change formula is: M C =σ(MLP(Avg Pool(F))); b1. The downsampling feature extraction structure is used to extract features of the face image in the target frame through a small convolution block to obtain a rough feature map; b2. The channel attention structure is used to extract features from the input feature map through a depth-separable convolution structure to obtain a fine feature map, and global average pooling is used on the input feature map in the channel domain to encode the entire spatial feature on a channel as a global feature to achieve weighted feature map weighting to obtain a key feature map, and the obtained fine feature map is dot-multiplied with the key feature map and then superimposed with the fine feature map to obtain a channel attention feature map; b3. The feature map is passed through three graph convolutional neural layers. The graph convolutional neural layers use the features on the feature map as nodes and generate edges based on different feature distances. This simply and effectively implements the construction of the graph network and can quickly learn all the spatial features of the stroke patient's expression. b4, the loss layer is used to obtain the loss value of the feature map output by the graph convolutional neural layer structure, so as to predict the facial expression category according to the loss value; C. Train the algorithm model from the stroke patient expression database, and then obtain an offline trained facial expression classification and recognition model.
2. The method for classifying facial expressions of stroke patients based on attention and neural network according to claim 1, characterized in that: In the downsampling feature extraction structure of the facial expression recognition model, small convolution blocks are used to extract features of the target box containing the face area, which can make full use of the information of each pixel in the image and can achieve the purpose of quickly extracting facial expression features.
3. The method for classifying facial expressions of stroke patients based on attention and neural network according to claim 1, characterized in that: In the channel attention structure of the facial expression recognition model, on the one hand, channel information is used as weighted features to further extract facial expression features and obtain key expression information that can be classified.
4. The method for classifying facial expressions of stroke patients based on attention and neural network according to claim 1, characterized in that: The graph convolutional neural layer can quickly construct graphs through feature maps.
5. The method for classifying facial expressions of stroke patients based on attention and neural network according to claim 1, characterized in that: The feature map is first average pooled and max pooled on the channel, and after the maximum value is selected, the feature value is fused through a multi-layer perceptron, and then the original feature is multiplied by the feature value to complete the channel weighting.
6. A stroke patient expression classification system based on attention and neural network, using the stroke patient expression classification method based on attention and neural network as claimed in claim 1, characterized in that: It includes target frame extraction module and facial expression recognition module.
7. The stroke patient expression classification system superior to attention and neural network according to claim 6, characterized in that: The target frame extraction module is used to extract a target frame containing a face area from a target image to be identified, and perform feature normalization processing on the extracted target frame.
8. The stroke patient expression classification system superior to attention and neural network according to claim 6, characterized in that: The facial expression recognition module is used to perform facial expression recognition on the target frame after feature normalization using the facial expression recognition model that has been trained offline, so as to identify the facial expression category of the face in the target image, and directly process the captured data in real time through a computer.
