A micro-expression feature extraction method based on random cuboid sampling
The micro-expression feature extraction method through random cuboid sampling solves the problem of losing locality and asymmetry in the micro-expression recognition algorithm in the existing technology, improves the recognition accuracy and robustness, and achieves better micro-expression feature capture. and classification effects.
Patent Information
- Application Number
- CN202210652633.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-07
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-06-07
AI Technical Summary
Existing micro-expression recognition algorithms rely on designed facial areas and entire micro-expression videos, and are prone to losing the locality, asymmetry, and transience of micro-expressions, resulting in insufficient recognition accuracy and robustness.
A micro-expression feature extraction method based on random cuboid sampling is adopted. Random cuboids are generated through the spatial block generation module and the temporal segment generation module. The micro-expression features are extracted using spatio-temporal descriptors, and support vector machines are used for recognition.
It improves the accuracy and robustness of micro-expression recognition, captures the subtle and rapid features of micro-expressions, discovers key areas in the time dimension of micro-expressions, and improves the recognition rate and classification accuracy.
Smart Images

Figure CN115035577B
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of computer vision and micro-expression recognition, and in particular to a micro-expression feature extraction method based on random cuboid sampling. Background Art
[0002] Micro-expressions can reveal a person's true emotions and mental state. They have attracted a lot of attention in the past decade and have important applications in lie detection, clinical medicine, national security and other fields, and have important research value. However, due to the locality, asymmetry and very short duration of micro-expressions, the current recognition algorithms are still difficult to meet the actual application requirements in terms of accuracy and robustness. Therefore, it is still a very challenging topic.
[0003] The micro-expression feature extraction algorithm based on random cuboid sampling uses random sampling in the spatiotemporal dimension of micro-expression videos, which improves the extraction of micro-expression feature areas to a certain extent and has good applicability. There are two mainstream ways in the selection of facial regions in traditional micro-expression feature extraction methods, including dividing the face into m×n blocks and selecting specific facial regions of interest (ROI), such as eyes, nose, mouth, cheeks, etc., and then applying spatiotemporal descriptors to the selected regions to extract micro-expression features. The three orthogonal plane local binary patterns (LBP-TOP) spatiotemporal descriptor has been successfully applied to the feature extraction of micro-expressions. Subsequently, various improved algorithms based on LBP-TOP have emerged, including six intersection point local binary patterns (LBP-SIP) and three mean picture local binary patterns (LBP-MOP), tensor independent color space (TICS) considering RGB information, and more compact spatiotemporal complementary local quantization patterns (SPCLQP). However, these methods are based on the two mainstream facial region division methods mentioned above and the entire micro-expression segment, which are prone to lose the key characteristics of micro-expressions and limit the robustness of the algorithm.
[0004] Since the features of micro-expressions are very weak, many studies have explored the facial areas involved in micro-expressions. These include using the Facial Action Coding System (FACS) to divide ROIs; masking the eyes and cheeks to avoid interference from eye movements or eyes; using the areas around facial feature points, etc. However, these methods only consider the extraction of micro-expression features in the face and use the entire micro-expression frame, which is prone to generate redundant features and reduce the final classification accuracy.
[0005] The main feature of random sampling is its randomness, which has achieved good results in image recognition in recent years. So far, randomness has not been applied to micro-expression feature extraction algorithms. Therefore, applying random sampling in the spatial and temporal dimensions of micro-expressions to generate micro-expression feature extraction areas is of great significance in improving micro-expression recognition performance and exploring micro-expression temporal characteristics. Summary of the invention
[0006] Purpose of the invention: In view of the above problems, the purpose of the present invention is to provide a micro-expression feature extraction method based on random rectangular sampling, so as to solve the problems that traditional micro-expression recognition algorithms rely on designed facial areas, use entire micro-expression videos and relatively fixed time and space areas, which easily lead to the loss of locality, asymmetry, transience and other problems of micro-expressions.
[0007] Technical solution: A micro-expression feature extraction method based on random cuboid sampling, comprising the following steps:
[0008] Step 1: Align and normalize the faces of each frame in the video;
[0009] Step 2: Use the spatial block generation module to detect the normalized facial feature points, and generate a set of spatial blocks based on the feature points using the block size factor to capture the local area of micro-expressions;
[0010] Step 3: Use the time domain segment generation module to generate unit random intervals through the time domain length factor and map them to a set of micro-expression time domain segments with different frame numbers;
[0011] Step 4: Combine the spatial block set and the temporal segment set into multiple random cuboids, extract the spatiotemporal features of micro-expressions on the generated random cuboids, and apply support vector machine for micro-expression recognition.
[0012] Furthermore, in step 1, the method for aligning and normalizing the face of each frame image in the video includes the following steps:
[0013] S11: face alignment;
[0014] S111: Assume that the entire database is DB={v 1 , v 2 , ..., v n},
[0015] Where n is the number of micro-expression video clips, v j = {v j,1 , v j,2 , ..., v j,m}, m represents the frame number of the jth micro-expression segment;
[0016] S112: Use dlib software to detect the facial feature points of the first frame of each video clip, denoted as Ψ, and then calculate the transformation matrix T according to the left and right eye coordinates corresponding to the feature points. The calculation formula is as follows:
[0017]
[0018] in,
[0019] S113: Considering that the duration of micro-expression segments is particularly short and there is little head movement, the transformation matrix T of the first frame of each micro-expression segment is applied to the entire micro-expression segment, that is, v′ j =T j ×v j ;
[0020] S12: face normalization;
[0021] S121: crop the face area to remove the influence of background factors, and use dlib to detect the aligned face feature points, which is Ψ;
[0022] S122: Calculate the appropriate cropping area according to the coordinates of the facial feature points in the image. For the left, right and lower boundaries, the cheek and jaw feature points are used to define them, i.e., Ψ 1 ,Ψ 17 and 9 ;
[0023] S123: Considering the need to fully preserve the face area and reduce the influence of interference factors, Ψ 30 , y(Ψ 9,y -Ψ 30,y ) / 1.3 to limit the area above the face; and apply the same cropping operation to each micro-expression segment.
[0024] Optimally, the number of facial feature points in each frame is 68 to 70.
[0025] Furthermore, the implementation of step 2 includes the following steps:
[0026] S21: Use regional random sampling SPG to establish the spatial block generation module model, that is:
[0027] SPG(x i ,y i ; ρ) = G i (ρ,Ψ i ), i=1, 2, 3;
[0028] Among them, x i ,y irepresents the coordinates of the upper left vertex of the randomly sampled block, ρ represents the block size factor, Ψ i is the set of feature points in the i-th equally divided area, G i (ρ,Ψ i ) represents the point set for generating blocks in the i-th equally divided limited area;
[0029] S22: Assume that the image of each frame in the input micro-expression video clip is I = {w, h}, where w and h are width and height respectively; by setting the size factor ρ, determine the length and width of each block, i.e. ρw, ρh; in order to achieve the coverage of the entire face, the total number of spatial blocks is
[0030] S23: Generate a random block set using the block size factor, use the normalized facial feature points to define the generation area of the spatial block, divide the facial area horizontally into three equal parts, further use the facial feature points in each area to define the generation area of the spatial block, and capture the feature area that matches the micro-expression;
[0031] S24: Generate a spatial block in each equally divided area. First, further reduce the spatial block generation area by the facial feature points in the corresponding equally divided area, then generate N / 3 spatial blocks by random sampling, and finally add them to the spatial block set.
[0032] When using the block size factor to generate a random block set, it is necessary to use the normalized facial feature points to limit the generation area of the spatial block. Considering that the face tends to decrease from large to small from top to bottom, using the entire face will carry redundant background noise. Therefore, the face area is divided into three equal parts horizontally, and the facial feature points are further used in each area to limit the spatial block generation area to capture the feature area that matches the micro-expression. In each equally divided area, a spatial block is generated. First, the spatial block generation area is further reduced by the facial feature points in the corresponding equally divided area, and then N / 3 spatial blocks are generated by random sampling, and finally added to the spatial block set.
[0033] Furthermore, the implementation of step three includes the following steps:
[0034] S31: Use TSG to establish a time domain segment generation module model, namely:
[0035] TSG(t i ; η) = G i (η, 1);
[0036] Where t represents the starting frame position obtained by random sampling, η represents the unit segment length factor, G i (η, 1) means randomly sampling the i-th point in unit length;
[0037] S32: Assuming that the micro-expression frame length is a unit length, the length of each segment is determined by setting the segment length factor η, that is, η×1; in order to be equal to the original segment length, the total number of segments is set to Similarly, sample M points at unit length;
[0038] S33: Mapping the obtained starting frame position and unit segment length to micro-expression segments with real different frame lengths.
[0039] Since each micro-expression segment is of non-fixed length, the obtained unit point set coordinates and random segment lengths are mapped to segments of different frame lengths.
[0040] Furthermore, the implementation of step 4 includes the following steps:
[0041] S41: According to the spatial block generation module SPG and the temporal segment generation module TSG, a random cuboid set Ω is constructed as follows:
[0042] Ω(x i ,y i , t j )=SPG(x i ,y i ;ρ)·TSG(t j ; η);
[0043] Where · represents the operation of constructing a cuboid;
[0044] S42: Apply the spatiotemporal descriptor LBP-TOP on each random rectangular area to extract the features of micro-expressions, then concatenate all the random rectangular features as the final feature vector, and use the support vector machine to train the model for micro-expression recognition.
[0045] Beneficial effects: Compared with the prior art, the advantages of the present invention are:
[0046] (1) The random sampling technology is applied to the field of micro-expression recognition. The spatial block generation module and the temporal segment generation module are used to generate random cuboids for micro-expression feature extraction, and a micro-expression recognition framework is designed.
[0047] (2) By combining the random generation method of spatial and temporal dimensions, appropriate micro-expression spatiotemporal feature regions can be generated to capture the subtle and rapid features of micro-expressions, thereby improving the recognition rate of micro-expressions;
[0048] (3) The present invention not only obtains better recognition results, but also better discovers the key areas in the time dimension of micro-expressions. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1This is a micro-expression recognition framework diagram based on random cuboid sampling of the present invention;
[0050] Figure 2 This is a feature extraction flow chart of the present invention. DETAILED DESCRIPTION
[0051] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention.
[0052] A specific implementation of a micro-expression feature extraction method based on random cuboid sampling is described as follows:
[0053] (1) The present invention combines random sampling technology with micro-expression recognition and designs a new micro-expression recognition framework. In order to make the micro-expression recognition effect more accurate, the present invention proposes a spatial block generation module and a temporal segment generation module to construct a feature area that is more in line with the subtle and rapid micro-expressions.
[0054] (2) Different block size factors and time domain segment factors are set to combine random rectangles of different sizes to explore the micro-expression recognition performance.
[0055] (3) The feature extraction process of the random cuboid after combination is detailed in Figure 2 .
[0056] (4) See Figure 1 ,After the micro-expression features are extracted, they are fed to the support vector machine for ,micro-expression classification.
[0057] The specific process of the present invention is described as follows:
[0058] (1) Input micro-expression video frame sequence v j = {v j,1 , v j,2 , ..., v j,m}; parameter initialization list {w, h, ρ, η};
[0059] (2) Perform face alignment and normalization on the frame sequence and resize the video frame to (w, h);
[0060] (3) Use parameters ρ, η to initialize the spatial block generation module SPG and the temporal segment generation module TSG;
[0061] (4) The point sets sampled by SPG and TSG are combined into a set of random cuboids. Then, the spatiotemporal descriptor LBP-TOP is applied to each small area to extract micro-expression features. Finally, they are concatenated in sequence to form the feature vector of the video sequence.
[0062] (5) Feed the feature vector to the support vector machine for micro-expression classification.
[0063] A micro-expression feature extraction method based on random cuboid sampling comprises the following steps:
[0064] Step 1: Align and normalize the faces of each frame in the video;
[0065] (1) Assume that the entire database is DB = {v 1 , v 2 , ..., v n}, n is the number of micro-expression video clips. j = {v j,1 , v j,2 , ..., v j,m}, m represents the number of frames of the jth micro-expression clip. We use dlib software to detect the 68 facial feature points of the first frame of each video clip, denoted as Ψ, and then calculate the transformation matrix T based on the left and right eye coordinates corresponding to the feature points. The calculation formula is as follows:
[0066]
[0067] in, Since the duration of micro-expression segments is very short and there is little head movement, we apply the transformation matrix T of the first frame of each micro-expression segment to the entire micro-expression segment, that is, v′ j =T j ×v j .
[0068] (2) After face alignment, we crop the face area to remove the influence of background factors. Similarly, we first use dlib to detect the facial feature points after alignment, denoted as Ψ. Then we calculate the appropriate cropping area based on the coordinates of the facial feature points in the image. For the left, right, and bottom boundaries, we use the cheek and jaw feature points to define them, that is, Ψ 1 ,Ψ 17 and 9 In order to preserve the face area as much as possible and reduce some interference factors such as hair, we use 30,y -(Ψ 9,y -Ψ 30,y ) / 1.3 to limit the area above the face. In this way, the same cropping operation is applied to each micro-expression segment.
[0069] Step 2: Use the spatial block generation module to detect the normalized facial feature points, and generate a set of spatial blocks based on the feature points using the block size factor to capture the local area of micro-expressions;
[0070] (1) The spatial block generation module uses regional random sampling SPG for modeling, which is described as follows:
[0071] SPG(x i ,y i ; ρ) = G i (ρ,Ψ i ), i = 1, 2, 3
[0072] in, x i,y i represents the coordinates of the upper left vertex of the randomly sampled block, ρ represents the block size factor, Ψ i is the set of feature points in the i-th equally divided area, G i (ρ,Ψ i ) represents the set of points that generate blocks in the i-th equally divided limited area.
[0073] (2) Assume that the image of each frame in the input micro-expression video clip is I = {w, h}, where w and h are the width and height respectively. By setting the size factor ρ, the length and width of each block can be determined, i.e., ρw and ρh. In order to achieve the coverage of the entire face, the total number of spatial blocks is
[0074] (3) Using the block size factor to generate a random block set requires the use of normalized facial feature points to limit the generation area of the spatial block. Considering that the face tends to decrease from large to small from top to bottom, using the entire face will carry redundant background noise. Therefore, the face area is divided horizontally into three equal parts, and the facial feature points are further used in each area to limit the spatial block generation area to capture the feature area that matches the micro-expression. In each equally divided area, a spatial block is generated. First, the spatial block generation area is further reduced by the facial feature points in the corresponding equally divided area, and then N / 3 spatial blocks are generated by random sampling, and finally added to the spatial block set.
[0075] Step 3: Use the time domain segment generation module to generate unit random intervals through the time domain length factor and map them to micro-expression time domain segments with different frame numbers;
[0076] (1) The time domain segment generation module is modeled using TSG, which is described as follows:
[0077] TSG(t i ,η)=G i (η, 1);
[0078] Among them, t represents the vertex coordinates obtained by random sampling, η represents the unit fragment length factor, G i (η, 1) means randomly sampling the i-th point in unit length.
[0079] (2) Assuming that the micro-expression frame length is unit length, the length of each segment can be determined by setting the segment length factor η, that is, η×1. In order to make the length equal to the original segment length, we set the total number of segments to Likewise, M points are sampled at a unit length.
[0080] (3) Since each micro-expression segment is of non-fixed length, we map the obtained unit point set coordinates and random segment lengths to segments of different frame lengths.
[0081] Step 4: Combine the spatial block set and the temporal segment set into multiple random cuboids, extract the spatiotemporal features of micro-expressions on the generated random cuboids, and apply support vector machine for micro-expression recognition.
[0082] (1) According to the spatial block generation module SPG and the temporal segment generation module TSG, a random cuboid set Ω is constructed as follows:
[0083] Ω(x i ,y i , t j )=SPG(x i ,y i ;ρ)·TSG(tj;η);
[0084] Where · represents the operation of constructing a cuboid.
[0085] (2) After the random cuboid set Ω is constructed, we apply the spatiotemporal descriptor LBP-TOP on each random cuboid region to extract the features of micro-expressions. We then concatenate all the random cuboid features as the final feature vector and use the support vector machine to train the model for micro-expression recognition.
[0086] The present invention conducts experiments on the publicly released micro-expression databases CASME II and SAMM, whose video sample frame rates are all 200fps. Because the duration of micro-expressions themselves is approximately between 0.05 and 0.5s, they are selected for the performance evaluation of the present invention for the convenience of analysis in the time domain. There are two mainstream methods for the traditional micro-expression feature extraction process, including dividing the face into m×n non-overlapping blocks and selecting specific ROI areas, such as eyes, eyebrows, mouth, etc., and then applying spatiotemporal descriptors to extract features in the entire micro-expression video. However, due to the weakness, locality, asymmetry and short duration of micro-expressions, it is not effective to use the entire face or a specific ROI or an entire continuous video. The present invention uses the above two mainstream facial region selection schemes as benchmark algorithms for comparison.
[0087] (1) Qualitative evaluation experiment
[0088] The experiment selected three non-overlapping blocks configurations (5×5, 8×8 and 10×10) and eight specific ROIs (eyebrows, eyes, nose and mouth). The selection of non-overlapping blocks obviously carries a lot of background noise. For smaller blocks, the external appearance features of the face can be better described, but the positions are relatively fixed, and the key facial areas of micro-expressions are easily lost. The advantage of selecting specific ROIs is that the background noise outside the face is removed, but the selection of the area is based on cognitive priors, and the characteristics of micro-expressions themselves also make the method perform poorly. We used different parameters, block size factor ρ={0.1, 0.15} and segment length factor η={0.3, 0.5, 0.8}, and configured the spatial block generation module and time domain segment generation module proposed in the present invention to compare the baseline performance. It can be clearly concluded that the generated spatial blocks can significantly describe the local area of micro-expressions and can also meet the asymmetric characteristics of micro-expressions. Similarly, it can be seen that the generated segments are conducive to exploring the characteristics of the micro-expression time domain. It can be found that the classification results of micro-expressions by the algorithm proposed in the present invention are relatively ideal.
[0089] (2) Quantitative analysis results
[0090] In order to comprehensively evaluate the recognition performance of the algorithm, this paper uses the recognition accuracy and F1 score obtained by the leave-one-subject cross-validation method (LOSO) for quantitative analysis. At the same time, in order to prove the effectiveness of the time domain segment generation module, the random cuboid algorithm using the entire micro-expression segment is also used in the performance comparison.
[0091] In the CASME II database, considering the imbalance of database sample categories, the last five categories of micro-expression samples were selected, and the total number of samples was 246. The baseline results are shown in Table 1.
[0092] Table 1 CASME II baseline results
[0093]
[0094] At the same time, the parameters block size factor ρ = {0.1, 0.15}, segment length factor η = {0.3, 0.5, 0.8} are used for testing. Due to the characteristics of random sampling, we conducted multiple experiments to prove the effectiveness of the present invention. The experimental results are shown in Tables 2 and 3.
[0095] Table 2 Experimental results of the present invention on CASME II (ρ=0.1, η={0.3, 0.5, 0.8})
[0096]
[0097] Table 3 Experimental results of the present invention on CASME II (ρ=0.15, η={0.3, 0.5, 0.8})
[0098]
[0099] As can be seen from the table, the best result of the random cuboid feature extraction method containing only the spatial block generation module is 3% higher in accuracy and 5% higher in F1 score than the best baseline result. In order to make a fairer performance comparison, we judge by block size. By calculating the mean of multiple experiments, we finally get an accuracy of 0.4122 and an F1 score of 0.3568 when ρ = 0.1. Compared with 10×10 blocks, the accuracy is improved by 3% and the F1 score is improved by 5%. Similarly, when ρ = 0.15, there is no improvement in accuracy compared with 8×8 blocks, but the F1 score is improved by 3%. This proves that the spatial generation module is effective, because random sampling within a limited range is very promising for capturing micro-expression feature areas. The best result of the random cuboid feature extraction method containing the spatial block generation module is 5% higher in accuracy and 6% higher in F1 score than the best baseline result. It can also be clearly seen from Tables 2 and 3 that the method using the time domain segment generation module generally has higher recognition accuracy and F1 score than the method without using it. For each time domain factor, it can be improved by 1 to 2% on average.
[0100] In the SAMM database, similarly, considering the imbalance of sample categories, the last five categories of micro-expression samples were selected, and the total number of samples was 136. The baseline results are shown in Table 4.
[0101] Table 4 SAMM baseline results
[0102]
[0103] Similar to the experiment conducted on CASME II, multiple experiments were conducted to demonstrate the effectiveness of the present invention. The experimental results are shown in Tables 5 and 6. The best result of the random cuboid feature extraction method that only includes the spatial block generation module is 3% higher in accuracy and 3.6% higher in F1 score than the best result of the baseline. When ρ=0.15, the experiment is generally not as good as when ρ=0.1. This is related to the size of the block and is consistent with the results of the baseline. When the average of multiple experiments is judged by the block size rule, the conclusion is consistent with the results on CASME II. When ρ=0.1, the accuracy is basically the same as the baseline result, but the F1 score is improved by 1.2%. When ρ=0.15, the accuracy is improved by 1.6% and the F1 score is basically the same. However, after adding the time domain segment generation module, the overall performance is further improved, and on average it can be improved by another 1-2%.
[0104] Table 5 Experimental results of the present invention on SAMM (ρ=0.1, η={0.3, 0.5, 0.8})
[0105]
[0106] Table 6 Experimental results of the present invention on SAMM (ρ=0.15, η={0.3, 0.5, 0.8})
[0107]
Claims
1. A micro-expression feature extraction method based on random cuboid sampling, characterized in that The following steps are involved: Step 1: Align and normalize the faces of each frame in the video; Step 2: Use the spatial block generation module to detect the normalized facial feature points, and generate a set of spatial blocks based on the feature points using the block size factor to capture the local area of micro-expressions; Step 3: Use the time domain segment generation module to generate unit random intervals through the time domain length factor and map them to a set of micro-expression time domain segments with different frame numbers; Step 4: Combine the spatial block set and the temporal segment set into multiple random cuboids, extract the spatiotemporal features of micro-expressions on the generated random cuboids, and apply support vector machine to perform micro-expression recognition; The implementation of step 2 includes the following steps: S21: Use regional random sampling SPG to establish the spatial block generation module model, that is: SPG(x i ,y i ;ρ)=G i (r, P) i ),i=1,2,3; Among them, x i ,y i represents the coordinates of the upper left vertex of the randomly sampled block, ρ represents the block size factor, Ψ i is the set of feature points in the i-th equally divided area, G i (ρ,Ψ i ) represents the point set for generating blocks in the i-th equally divided limited area; S22: Assume that the image of each frame in the input micro-expression video clip is I = [w, h}, where w and h are width and height respectively; by setting the size factor ρ, determine the length and width of each block, i.e. ρw, ρh; in order to achieve the coverage of the entire face, the total number of spatial blocks is S23: Generate a random block set using the block size factor, use the normalized facial feature points to define the generation area of the spatial block, divide the facial area horizontally into three equal parts, further use the facial feature points in each area to define the generation area of the spatial block, and capture the feature area that matches the micro-expression; S24: Generate a spatial block in each equally divided area. First, further reduce the spatial block generation area by corresponding to the facial feature points in the equally divided area. Then, generate N / 3 spatial blocks by random sampling, and finally add them to the spatial block set. The implementation of step three includes the following steps: S31: Use TSG to establish a time domain segment generation module model, namely: TSG(t i ;h)=G i (h, 1); Among them, t i represents the starting frame position obtained by random sampling, η represents the unit segment length factor, G i (η, 1) means randomly sampling the i-th point in unit length; S32: Assuming that the micro-expression frame length is a unit length, the length of each segment is determined by setting the segment length factor η, that is, η×1; in order to be equal to the original segment length, the total number of segments is set to Similarly, sample M points at unit length; S33: mapping the obtained starting frame position and unit segment length to real micro-expression segments with different frame lengths; The implementation of step 4 includes the following steps: S41: According to the spatial block generation module SPG and the temporal segment generation module TSG, a random cuboid set Ω is constructed as follows: Ω(x i ,y i ,t j )=SPG(x i ,y i ;ρ)·TSG(t j ;η); Where. represents the operation of constructing a cuboid; S42: Apply the spatiotemporal descriptor LBP-TOP on each random rectangular area to extract the features of micro-expressions, then concatenate all the random rectangular features as the final feature vector, and use the support vector machine to train the model for micro-expression recognition.
2. The micro-expression feature extraction method based on random cuboid sampling according to claim 1, characterized in that: In step 1, the method for aligning and normalizing the face of each frame image in the video includes the following steps: S11: face alignment; S111: Assume that the entire database is DB = {v1, v2, ..., v n }, Where n is the number of micro-expression video clips, v j = {v j,1 , v j,2 , ..., v j,m }, m represents the frame number of the jth micro-expression segment; S112: Use dlib software to detect the facial feature points of the first frame of each video clip, denoted as Ψ, and then calculate the transformation matrix T according to the left and right eye coordinates corresponding to the feature points. The calculation formula is as follows: where x = (Ψ 37,x + Ψ 46,x ) / 2, y = (Ψ 37,y + Ψ 46,y ) / 2 S113: Considering that the duration of micro-expression segments is particularly short and there is little head movement, the transformation matrix T of the first frame of each micro-expression segment is applied to the entire micro-expression segment, that is, v′ j =T j ×v j ; S12: face normalization; S121: crop the face area to remove the influence of background factors, and use dlib to detect the aligned face feature points, which is Ψ; S122: Calculate the appropriate cropping area according to the coordinates of the facial feature points in the image. For the left, right, and lower boundaries, the cheek and jaw feature points are used to define them, i.e., Ψ1, Ψ2 17 and Ψ9; S123: Considering the need to fully preserve the face area and reduce the influence of interference factors, Ψ 30,y -(Ψ 9,y -Ψ 30,y ) / 1.3 to limit the area above the face; and apply the same cropping operation to each micro-expression segment.
3. The micro-expression feature extraction method based on random cuboid sampling according to claim 2, characterized in that: The number of facial feature points in each frame is 68 to 70.
