Multi-person facial expression recognition system and method based on deep learning
By intercepting and calibrating the image data of the target population, we obtain facial fat and thin grading data, and use geometric features to judge expressions, which solves the problem of high computing resource requirements in the existing technology and achieves efficient facial expressions on limited resource devices. Identify.
Patent Information
- Application Number
- CN202410246195.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-05
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-03-05
AI Technical Summary
Existing multi-person facial expression recognition technology requires a large amount of annotated data and high computing resources, resulting in a long preparation period and high cost, making it difficult to implement facial expression recognition on devices with limited computing resources.
By obtaining target population image data for interception, segmentation and calibration, facial fat and thin grading data are obtained, and geometric features are used to judge expressions, to calculate pleasant and non-pleasant expression judgment coefficients, and to perform threshold judgments to achieve expression grading.
It reduces the computing resource requirements for facial expression recognition, improves the accuracy of recognition results, and enables lightweight facial expression recognition on devices with limited computing resources.
Smart Images

Figure CN118038525B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of facial recognition and relates to image processing technology, and specifically to a multi-person facial expression recognition system and method based on deep learning. Background Art
[0002] Facial recognition technology is a technology based on computer vision and uses artificial intelligence methods, especially machine learning and deep learning technologies, to identify and verify individual facial features. These technologies can detect and recognize faces in pictures or videos, and use the recognition results for a variety of applications, such as identity authentication in the security field, beauty advice and effect evaluation in the beauty field;
[0003] In the prior art, when performing multi-person facial expression recognition, there are the following defects:
[0004] 1. Directly using image recognition to judge facial expressions requires a large amount of labeled data to generate test data and train the recognition model, which takes a long time and is costly to prepare;
[0005] 2. It requires large-scale computing resources to run. It is difficult to achieve facial expression recognition by training models on devices with limited computer resources.
[0006] To this end, we propose a multi-person facial expression recognition system and method based on deep learning. Summary of the invention
[0007] In view of the deficiencies in the prior art, the purpose of the present invention is to provide a multi-person facial expression recognition system and method based on deep learning. The present invention is based on obtaining target population image data, intercepting, segmenting and calibrating the target population image data to obtain calibration image data, obtaining facial fatness and thinness classification data from the calibration image data, marking five key points in the calibration image data respectively, obtaining a first expression judgment index and a second expression judgment index from the five key points, defining the first expression judgment index and the second expression judgment index as expression index data, obtaining a first feature expression index and a second feature expression index respectively according to the expression index data, calculating a first pleasant expression judgment coefficient, a second pleasant expression judgment coefficient, a first unpleasant expression judgment coefficient and a second unpleasant expression judgment coefficient respectively according to the first feature expression index and the second feature expression index to obtain expression judgment data, obtaining a pleasant expression judgment coefficient difference and an unpleasant expression judgment coefficient difference respectively according to the expression judgment data, performing a threshold judgment on the pleasant expression judgment coefficient difference to obtain first expression classification data, performing a threshold judgment on the unpleasant expression judgment coefficient difference to obtain second expression classification data.
[0008] In order to achieve the above purpose, the present invention adopts the following technical solutions to achieve the above purpose. The specific working process of each module of the multi-person facial expression recognition system based on deep learning is as follows:
[0009] Facial calibration module: obtains the image data of the target population, intercepts, segments and calibrates the image data of the target population, and obtains calibrated image data;
[0010] Facial classification module: Mark four feature points in the calibration image data, obtain the facial height and width values according to the distance values between the feature points, calculate the facial aspect ratio value according to the facial height and width values, perform threshold division on the facial aspect ratio value, and obtain facial fatness and thinness classification data;
[0011] Facial expression module: five key points are marked in the calibration image data respectively, a first feature line, a second feature line, a third feature line, a fourth feature line, a first feature angle and a first feature angle are obtained from the five key points, a first expression judgment index is obtained from the first feature line, the second feature line and the first feature angle, a second expression judgment index is obtained from the third feature line, the fourth feature line and the second feature angle, and the first expression judgment index and the second expression judgment index are defined as expression index data;
[0012] Judgment coefficient module: obtain the first characteristic expression index and the second characteristic expression index respectively according to the expression index data, calculate the first happy expression judgment coefficient, the second happy expression judgment coefficient, the first unpleasant expression judgment coefficient and the second unpleasant expression judgment coefficient respectively according to the first characteristic expression index and the second characteristic expression index, and obtain expression judgment data;
[0013] Expression recognition module: according to the expression judgment data, the difference of the judgment coefficient of the happy expression and the difference of the judgment coefficient of the unpleasant expression are respectively obtained, and the threshold judgment is performed on the difference of the judgment coefficient of the happy expression to obtain the first expression classification data, and the threshold judgment is performed on the difference of the judgment coefficient of the unpleasant expression to obtain the second expression classification data.
[0014] Further, the face calibration module includes an image acquisition unit and a face calibration unit;
[0015] The image acquisition unit acquires the target crowd image in real time, intercepts the target image data at each characteristic moment, combines two consecutive target images into a group to obtain the characteristic moment image, and performs image segmentation on the characteristic moment expression image to obtain the facial image data;
[0016] The facial calibration unit performs image calibration on the facial image to obtain calibration image data, as follows:
[0017] Acquire facial image data, use a deep learning model to acquire facial key points, acquire a facial reference template, mark standard key points on the front of the face on the facial reference template to obtain marked key points, match the facial key points with the marked key points, and proportionally enlarge the facial image data on the facial reference template so that the facial image data covers the facial reference template to obtain calibrated image data;
[0018] Repeat the above process to calibrate each facial image;
[0019] The face calibration module acquires the calibration image data and transmits it to the face classification module.
[0020] Furthermore, the face classification module obtains face classification data as follows:
[0021] Acquire calibration image data, convert the calibration image data into Drawing file format, and open the calibration image data in AutoCAD;
[0022] In the calibration image data, the midpoint of the eyebrow center is marked as the first feature point, the tip of the chin is marked as the second feature point, the protruding point of the left zygomatic arch is marked as the third feature point, and the protruding point of the right zygomatic arch is marked as the fourth feature point;
[0023] Use a line connection tool to connect the first feature point to the second feature point, connect the third feature point to the fourth feature point, mark the line between the first feature point and the second feature point as a facial height line, and mark the line between the third feature point and the fourth feature point as a facial width line;
[0024] Use the measurement tool to obtain the length values of the face height line and the face width line, and mark them as the face height value and the face width value respectively;
[0025] The facial height value and the facial width value are calculated to obtain the facial width-to-height ratio value;
[0026] Obtain a first facial aspect ratio threshold and a second facial aspect ratio threshold;
[0027] The first facial width-to-height ratio threshold, the second facial width-to-height ratio threshold and the facial width-to-height ratio value are numerically compared to obtain facial fatness and thinness classification data, and the data is transmitted to the judgment coefficient module;
[0028] The numerical comparison process is as follows:
[0029] When the facial width-to-height ratio value is less than the first facial width-to-height ratio threshold, it is determined to be in the first facial fat-to-thin classification interval;
[0030] When the facial aspect ratio value is less than or equal to the second facial aspect ratio threshold and greater than or equal to the first facial aspect ratio threshold, it is determined to be the second facial fatness and thinness classification interval;
[0031] When the facial aspect ratio value is greater than or equal to the second facial aspect ratio threshold, it is determined to be a third facial fatness and thinness classification interval.
[0032] Furthermore, the facial classification module obtains the first facial aspect ratio threshold and the second facial aspect ratio threshold as follows:
[0033] Obtain m different facial image data respectively, calculate the facial aspect ratio of each facial image data, and mark them as a first aspect ratio, a second aspect ratio, a third aspect ratio, ... an mth aspect ratio respectively;
[0034] The first aspect ratio to the mth aspect ratio are calculated to obtain an average aspect ratio;
[0035] The standard deviation of the aspect ratio is obtained by calculating the first aspect ratio to the mth aspect ratio and the average of the aspect ratios;
[0036] The difference between the aspect ratio mean and the aspect ratio standard deviation is used as the first facial aspect ratio threshold, and the sum of the aspect ratio mean and the aspect ratio standard deviation is used as the second facial aspect ratio threshold.
[0037] Furthermore, the facial expression module obtains expression index data, specifically as follows:
[0038] Acquire calibration image data, open the calibration image data in AutoCAD, mark the left corner of the mouth as the first key point, mark the right corner of the mouth as the second key point, mark the nose tip as the third key point, mark the outer corner of the left eye as the fourth key point, and mark the outer corner of the right eye as the fifth key point in the calibration image data;
[0039] Connect the first key point and the third key point to obtain a first feature line, connect the second key point and the third key point to obtain a second feature line, mark the angle formed by the first feature line and the second feature line at the third key point as a first feature angle, and define the first feature line, the second feature line and the first feature angle as a first expression judgment index;
[0040] Connect the fourth key point with the third key point to obtain a third feature line, connect the fifth key point with the third key point to obtain a fourth feature line, mark the angle formed by the fourth feature line and the fifth feature line at the third key point as a second feature angle, and define the third feature line, the fourth feature line and the second feature angle as a second expression judgment index;
[0041] defining the first expression judgment index and the second expression judgment index as expression index data;
[0042] And transmit the expression index data to the judgment coefficient module.
[0043] Furthermore, the judgment coefficient module obtains expression judgment data, specifically as follows:
[0044] Acquire expression index data, the expression index data including characteristic moment images corresponding to the two target images, mark the characteristic expression index acquired according to the first target population image as a first characteristic expression index, and mark the characteristic expression index acquired according to the second target population image as a second characteristic expression index;
[0045] According to the first characteristic expression index and the second characteristic expression index, the first happy expression judgment coefficient and the second happy expression judgment coefficient are calculated respectively:
[0046] Calculate the first happy expression judgment coefficient as follows:
[0047] Obtain facial fatness and thinness classification data, and obtain expression index weighted values according to the facial fatness and thinness classification data;
[0048] When the facial image is in the first facial fat-thin classification interval, F1 is used to assign parameters to the weighted values of the expression index;
[0049] When the facial image is in the second facial fat-thin classification interval, F2 is used to assign parameters to the weighted values of the expression index;
[0050] When the facial image is in the third facial fat-thin classification interval, F3 is used to assign parameters to the weighted values of the expression index;
[0051] Obtain the first characteristic line, the second characteristic line and the first characteristic angle according to the characteristic expression index data, and respectively obtain the first characteristic line length value, the second characteristic line length value and the first characteristic angle angle value through the measurement tool in AutoCAD;
[0052] The first happy expression judgment coefficient is obtained by calculating the expression index weighted value, the first characteristic line length value, the second characteristic line length value and the first characteristic angle value;
[0053] Repeat the above-mentioned first happy expression judgment coefficient calculation process to calculate the happy expression judgment coefficient corresponding to the second characteristic expression index, and mark it as the second happy expression judgment coefficient Ty2;
[0054] Calculate a first unpleasant expression judgment coefficient and a second unpleasant expression judgment coefficient according to the first characteristic expression index and the second characteristic expression index respectively;
[0055] Respectively obtain a first happy expression judgment coefficient, a second happy expression judgment coefficient, a first unpleasant expression judgment coefficient, and a second unpleasant expression judgment coefficient corresponding to each calibration image data to obtain expression judgment data;
[0056] Furthermore, the judgment coefficient module calculates the first unpleasant expression judgment coefficient and the second unpleasant expression judgment coefficient as follows:
[0057] The third characteristic line, the fourth characteristic line and the second characteristic angle are obtained according to the characteristic expression index data, and the length value of the third characteristic line, the length value of the fourth characteristic line and the angle value of the second characteristic angle are respectively obtained by using the measurement tool in AutoCAD;
[0058] The first unpleasant expression judgment coefficient is obtained by calculating the expression weight value, the third characteristic line length value, the fourth characteristic line length value and the second characteristic angle value;
[0059] Repeat the above-mentioned first unpleasant expression judgment coefficient calculation process to calculate the unpleasant expression judgment coefficient corresponding to the second characteristic expression index, and mark it as the second unpleasant expression judgment coefficient.
[0060] Further, the expression recognition module includes a happy expression recognition unit and a non-happy expression recognition unit;
[0061] The happy expression recognition unit performs happy expression recognition;
[0062] The unpleasant expression recognition unit further performs expression recognition:
[0063] Perform joyful expression recognition as follows:
[0064] Acquire expression judgment data, and acquire a first happy expression judgment coefficient and a second happy expression coefficient according to the expression judgment data;
[0065] Calculating the difference between the first happy expression judgment coefficient and the second happy expression coefficient to obtain the happy expression judgment coefficient difference;
[0066] Obtaining a threshold value of a happy expression judgment coefficient, comparing the happy expression judgment coefficient difference with the happy expression judgment coefficient threshold value, and obtaining first expression classification data;
[0067] The specific numerical comparison process is as follows:
[0068] If the difference in the joyful expression judgment coefficient is greater than the joyful expression judgment coefficient threshold, it is judged as the first joyful expression classification interval; if the difference in the joyful expression judgment coefficient is less than or equal to the joyful expression judgment coefficient threshold, it is judged as the second joyful expression classification interval;
[0069] Among them, the facial image in the first joyful expression grading interval is in a joyful expression state, and the facial image in the second joyful expression grading interval is in a non-joyful expression state.
[0070] Furthermore, the unpleasant expression recognition unit further performs expression recognition according to the first expression classification data, as follows:
[0071] Obtaining a first unpleasant expression judgment coefficient and a second unpleasant expression judgment coefficient corresponding to a second pleasant expression grading interval;
[0072] Calculate the difference between the first unpleasant expression judgment coefficient and the second unpleasant expression coefficient to obtain the unpleasant expression judgment coefficient difference;
[0073] Obtaining a non-pleasant expression judgment coefficient threshold, performing a threshold comparison between the non-pleasant expression judgment coefficient difference and the non-pleasant expression judgment coefficient threshold, and obtaining second expression classification data;
[0074] The specific numerical comparison process is as follows:
[0075] If the difference in the non-pleasant expression judgment coefficient is less than the non-pleasant expression judgment coefficient threshold, it is judged as the first non-pleasant expression interval; if the difference in the non-pleasant expression judgment coefficient is greater than or equal to the non-pleasant expression judgment coefficient threshold, it is judged as the second non-pleasant expression interval;
[0076] Among them, the facial image in the first non-pleasant expression classification interval is in a sad expression state, and the facial image in the second non-pleasant expression classification interval is in a neither sad nor happy expression state.
[0077] A multi-person facial expression recognition method based on deep learning, the multi-person facial expression recognition method based on deep learning comprising the following steps:
[0078] Step S1: Acquire facial image data, and calibrate the facial image data to obtain calibrated image data;
[0079] Step S2: Acquire calibration image data and perform facial classification to obtain facial classification data;
[0080] Step S3: Acquire expression index data according to the calibration image data;
[0081] Step S4: Acquire expression index data, and acquire expression judgment data according to the expression index data;
[0082] Step S5: Perform facial expression judgment based on the expression judgment data.
[0083] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0084] 1. The present invention obtains the facial height value and the facial width value to calculate the facial width-to-height ratio value, divides the facial width-to-height ratio value by threshold, and obtains facial fat-thin classification data, taking into account the influence of facial fat-thinness of different groups of people on expression recognition, and further ensures the accuracy of the recognition effect;
[0085] 2. The geometric feature-based method of the present invention for facial expression recognition is usually lighter than complex convolutional neural network models and easier to run on devices with limited computing resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0087] Figure 1 is the overall system block diagram of the present invention;
[0088] Figure 2 It is a diagram of the implementation steps of the present invention;
[0089] Figure 3 A schematic diagram of a facial image corresponding to the first facial fatness and thinness classification interval in the present invention;
[0090] Figure 4 Schematic diagram of facial image corresponding to the third facial fatness and thinness classification interval in the present invention. DETAILED DESCRIPTION
[0091] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. 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.
[0092] Embodiment 1
[0093] See also Figure 1 and Figure 2 , the present invention provides a technical solution: a multi-person facial expression recognition system based on deep learning, comprising a facial calibration module, a facial classification module, a facial expression module, a judgment coefficient module, an expression recognition module and a server, wherein the facial calibration module, the facial classification module, the facial expression module, the judgment coefficient module and the expression recognition module are respectively connected to the server;
[0094] Also includes servers;
[0095] The facial calibration module acquires facial image data and calibrates the facial image data to obtain calibrated image data;
[0096] The face calibration module includes an image acquisition unit and a face calibration unit;
[0097] The image acquisition unit acquires the target crowd image in real time, intercepts the target image data at each characteristic moment, combines two consecutive target images into a group to obtain the characteristic moment image, and performs image segmentation on the characteristic moment expression image to obtain the facial image data;
[0098] It should be noted here that:
[0099] The facial image data obtained here are all frontal facial image data , , if the acquired data is not the frontal face image data, it will be automatically discarded;
[0100] The characteristic moment image is composed of two target images separated by a characteristic moment, wherein one characteristic moment is specifically set to 0.25 seconds;
[0101] The facial calibration unit performs image calibration on the facial image to obtain calibration image data, as follows:
[0102] Acquire facial image data, use a deep learning model to acquire facial key points, acquire a facial reference template, mark standard key points on the front of the face on the facial reference template to obtain marked key points, match the facial key points with the marked key points, and proportionally enlarge the facial image data on the facial reference template so that the facial image data covers the facial reference template to obtain calibrated image data;
[0103] Repeat the above process to calibrate each facial image;
[0104] In a specific implementation, facial key points include but are not limited to the corners of the eyes, the tip of the nose, and the corners of the mouth. For example, a facial image is randomly selected from the facial image data, the left eye corner in the facial image is used as the facial key point A1, and the left eye corner is marked as the marked key point B1 in the facial reference template, A1 is matched with B1, and the facial image is enlarged until it covers the facial reference model to obtain the calibration image data;
[0105] It should be noted here that:
[0106] The deep learning model used here is HOG+SVM, and the facial reference template is the online template in HOG+SVM;
[0107] The calibrated image data has a consistent standard, which can reduce the changes caused by different lighting, angles, etc., making it easier to compare and analyze the facial features of different individuals;
[0108] The face calibration module acquires the calibration image data and transmits it to the face classification module;
[0109] The face classification module acquires the calibration image data and performs face classification to obtain face classification data;
[0110] The face classification module includes AutoCAD;
[0111] Acquire calibration image data, convert the calibration image data into Drawing file format, and open the calibration image data in AutoCAD;
[0112] In the calibration image data, the midpoint of the eyebrow center is marked as the first feature point, the tip of the chin is marked as the second feature point, the protruding point of the left zygomatic arch is marked as the third feature point, and the protruding point of the right zygomatic arch is marked as the fourth feature point;
[0113] Use a line connection tool to connect the first feature point to the second feature point, connect the third feature point to the fourth feature point, mark the line between the first feature point and the second feature point as a facial height line, and mark the line between the third feature point and the fourth feature point as a facial width line;
[0114] Use the measurement tool to obtain the length values of the face height line and the face width line, and mark them as the face height value and the face width value respectively;
[0115] It should be noted here that: the connection tool and measurement tool involved in this embodiment are built-in processing tools in AutoCAD;
[0116] The facial height value and the facial width value are calculated using the facial width-to-height ratio calculation formula to obtain the facial width-to-height ratio value;
[0117] The specific configuration of the face width-to-height ratio calculation formula is:
[0118] Among them, Kgb is the value of the facial width-to-height ratio, Kd is the value of the facial width, and Gd is the value of the facial height;
[0119] Obtain a first facial aspect ratio threshold and a second facial aspect ratio threshold;
[0120] The threshold acquisition process is as follows:
[0121] Obtain m different facial image data respectively, calculate the facial aspect ratio of each facial image data by using the above facial aspect ratio calculation formula, and mark them as a first aspect ratio, a second aspect ratio, a third aspect ratio, ... an mth aspect ratio respectively;
[0122] Calculate the aspect ratio average by using the aspect ratio average calculation formula from the first aspect ratio to the mth aspect ratio to obtain the aspect ratio average;
[0123] The specific configuration of the aspect ratio average calculation formula is:
[0124] Among them, Kgb1 to Kgbm are the first aspect ratio to the mth aspect ratio, and Kgbp is the average aspect ratio;
[0125] The aspect ratio standard deviation is calculated by using the aspect ratio standard deviation calculation formula to calculate the aspect ratio standard deviation from the first aspect ratio to the mth aspect ratio and the average of the aspect ratios;
[0126] The specific configuration of the aspect ratio standard deviation calculation formula is:
[0127]
[0128] Among them, Kgb1 to Kgbm are the first aspect ratio to the mth aspect ratio, Kgbp is the average of the aspect ratios, and Kgbc is the standard deviation of the aspect ratios;
[0129] The difference between the aspect ratio mean and the aspect ratio standard deviation is used as a first facial aspect ratio threshold, and the sum of the aspect ratio mean and the aspect ratio standard deviation is used as a second facial aspect ratio threshold;
[0130] The first face width-to-height ratio threshold, the second face width-to-height ratio threshold and the face width-to-height ratio value are numerically compared to obtain face fat-to-thin classification data. For a schematic diagram of a face image, please refer to Figure 3 and Figure 4 ;
[0131] The numerical comparison process is as follows:
[0132] When the facial width-to-height ratio value is less than the first facial width-to-height ratio threshold, it is determined to be in the first facial fat-to-thin classification interval;
[0133] When the facial aspect ratio value is less than or equal to the second facial aspect ratio threshold and greater than or equal to the first facial aspect ratio threshold, it is determined to be the second facial fatness and thinness classification interval;
[0134] When the facial width-to-height ratio value is greater than or equal to the second facial width-to-height ratio threshold, it is determined to be in the third facial fat-to-thin classification interval;
[0135] The facial image corresponding to the first facial fat-thin classification interval is a thin facial image, the facial image corresponding to the second facial fat-thin classification interval is a normal facial image, and the facial image corresponding to the third facial fat-thin classification interval is an obese facial image;
[0136] The facial expression module obtains expression index data based on the calibration image data;
[0137] Acquire calibration image data, open the calibration image data in AutoCAD, mark the left corner of the mouth as the first key point, mark the right corner of the mouth as the second key point, mark the nose tip as the third key point, mark the outer corner of the left eye as the fourth key point, and mark the outer corner of the right eye as the fifth key point in the calibration image data;
[0138] See also Figure 3 and Figure 4 , connect the first key point and the third key point to obtain a first feature line, connect the second key point and the third key point to obtain a second feature line, mark the angle formed by the first feature line and the second feature line at the third key point as a first feature angle, and define the first feature line, the second feature line and the first feature angle as a first expression judgment index;
[0139] Connect the fourth key point with the third key point to obtain a third feature line, connect the fifth key point with the third key point to obtain a fourth feature line, mark the angle formed by the fourth feature line and the fifth feature line at the third key point as a second feature angle, and define the third feature line, the fourth feature line and the second feature angle as a second expression judgment index;
[0140] defining the first expression judgment index and the second expression judgment index as expression index data;
[0141] The judgment coefficient module obtains the expression index data and calculates the expression judgment data according to the expression index data;
[0142] Acquire expression index data, the expression index data including characteristic moment images corresponding to the two target images, mark the characteristic expression index acquired according to the first target population image as a first characteristic expression index, and mark the characteristic expression index acquired according to the second target population image as a second characteristic expression index;
[0143] It should be noted here that: the time when the facial image corresponding to the first characteristic expression index is obtained is one characteristic moment earlier than the time when the facial image corresponding to the second characteristic expression index is obtained;
[0144] According to the first characteristic expression index and the second characteristic expression index, the first happy expression judgment coefficient and the second happy expression judgment coefficient are calculated respectively:
[0145] Calculate the first happy expression judgment coefficient as follows:
[0146] Obtain facial fatness and thinness classification data, and obtain expression index weighted values according to the facial fatness and thinness classification data;
[0147] When the facial image is in the first facial fat-thin classification interval, F1 is used to assign parameters to the weighted values of the expression index;
[0148] When the facial image is in the second facial fat-thin classification interval, F2 is used to assign parameters to the weighted values of the expression index;
[0149] When the facial image is in the third facial fat-thin classification interval, F3 is used to assign parameters to the weighted values of the expression index;
[0150] In this embodiment, F1 is specifically limited to 1.1-1.2, F2 is specifically limited to 0.95-1.05, and F3 is specifically limited to 0.8-0.9;
[0151] It should be noted here that: According to the chatGPT query, when different people present the same expression, the distance and angle between the facial features will have a deviation of about 10% to 20% due to the fatness or thinness of the face. Taking the second facial fatness and thinness classification interval as the benchmark, the deviation value is assigned to the first facial fatness and thinness classification interval and the third facial fatness and thinness classification interval;
[0152] Obtain the first characteristic line, the second characteristic line and the first characteristic angle according to the characteristic expression index data, and respectively obtain the first characteristic line length value, the second characteristic line length value and the first characteristic angle angle value through the measurement tool in AutoCAD;
[0153] The expression index weighted value, the first characteristic line length value, the second characteristic line length value and the first characteristic angle value are calculated by the calculation formula of the joyful expression judgment coefficient to obtain the first joyful expression judgment coefficient;
[0154] The specific configuration of the calculation formula for the pleasant expression judgment coefficient is as follows:
[0155] When the first characteristic angle is greater than 90 degrees, the formula is configured as: Yy1 = (Tz1 + Tz2) * (1 + sin (a-90)) * Jq;
[0156] When the first characteristic angle is less than or equal to 90 degrees, the formula configuration is Yy1=(Tz1+Tz2)*sina*Jq;
[0157] Among them, Yy1 is the first happy expression judgment coefficient, Tz1 is the length value of the first characteristic line, Tz2 is the length value of the second characteristic line, a is the angle value of the first characteristic angle, and Jq is the weighted value of the expression index;
[0158] Repeat the above-mentioned first happy expression judgment coefficient calculation process to calculate the happy expression judgment coefficient corresponding to the second characteristic expression index, and mark it as the second happy expression judgment coefficient Ty2;
[0159] The first unpleasant expression judgment coefficient and the second unpleasant expression judgment coefficient are calculated according to the first characteristic expression index and the second characteristic expression index, respectively, as follows:
[0160] The third characteristic line, the fourth characteristic line and the second characteristic angle are obtained according to the characteristic expression index data, and the length value of the third characteristic line, the length value of the fourth characteristic line and the angle value of the second characteristic angle are respectively obtained by using the measurement tool in AutoCAD;
[0161] The expression weight value, the third characteristic line length value, the fourth characteristic line length value and the second characteristic angle value are calculated by using the unpleasant expression judgment coefficient calculation formula to obtain a first unpleasant expression judgment coefficient;
[0162] The specific configuration of the calculation formula for the non-pleasant expression judgment coefficient is as follows:
[0163] When the second characteristic angle is less than or equal to 90 degrees, the formula configuration is: Fy1 = (Tz3 + Tz4) * sinb * Jq;
[0164] When the second characteristic angle is greater than 90 degrees, the formula configuration is: Fy1 = (Tz3 + Tz4) * (1 + sin (b-90)) * Jq;
[0165] Among them, Fy1 is the first unpleasant expression judgment coefficient, Tz3 is the third characteristic line length value, Tz4 is the fourth characteristic line length value, b is the second characteristic angle value, and Jq is the expression index weighted value;
[0166] Repeat the above-mentioned first unpleasant expression judgment coefficient calculation process to calculate the unpleasant expression judgment coefficient corresponding to the second characteristic expression index, and mark it as the second unpleasant expression judgment coefficient Fy2;
[0167] Respectively obtain a first happy expression judgment coefficient, a second happy expression judgment coefficient, a first unpleasant expression judgment coefficient, and a second unpleasant expression judgment coefficient corresponding to each calibration image data to obtain expression judgment data;
[0168] The judgment coefficient module acquires the expression judgment data and transmits it to the expression recognition module;
[0169] The expression recognition module makes facial expression judgment based on the expression judgment data;
[0170] The expression recognition module includes a happy expression recognition unit and a non-happy expression recognition unit;
[0171] The happy expression recognition unit performs happy expression recognition as follows:
[0172] Acquire expression judgment data, and acquire a first happy expression judgment coefficient and a second happy expression coefficient according to the expression judgment data;
[0173] Calculating the difference between the first happy expression judgment coefficient and the second happy expression coefficient to obtain the happy expression judgment coefficient difference;
[0174] Obtaining a threshold value of a happy expression judgment coefficient, comparing the happy expression judgment coefficient difference with the happy expression judgment coefficient threshold value, and obtaining first expression classification data;
[0175] It should be noted here that: according to the specific parameters in the calculation formula of the joyful expression judgment coefficient Yy1=(Tz1+Tz2)*sina*Jq, it is set, assuming that Tz1 and Tz2 are both 55 mm, a is 88 degrees, and Jq is 1.01, the joyful expression judgment coefficient is calculated to be 109.989; repeat the above process, respectively calculate the first joyful expression judgment coefficient and the second joyful expression judgment coefficient corresponding to multiple different joyful expressions, and calculate the average difference between the first joyful expression judgment coefficient and the second joyful expression coefficient as the joyful expression judgment coefficient threshold;
[0176] The specific numerical comparison process is as follows:
[0177] If the difference in the joyful expression judgment coefficient is greater than the joyful expression judgment coefficient threshold, it is judged as the first joyful expression classification interval; if the difference in the joyful expression judgment coefficient is less than or equal to the joyful expression judgment coefficient threshold, it is judged as the second joyful expression classification interval;
[0178] Wherein, the facial image in the first pleasant expression classification interval is in a pleasant expression state, and the facial image in the second pleasant expression classification interval is in a non-pleasant expression state;
[0179] The unpleasant expression recognition unit further performs expression recognition according to the first expression classification data, as follows:
[0180] Obtaining a first unpleasant expression judgment coefficient and a second unpleasant expression judgment coefficient corresponding to a second pleasant expression classification interval;
[0181] Calculate the difference between the first unpleasant expression judgment coefficient and the second unpleasant expression coefficient to obtain the unpleasant expression judgment coefficient difference;
[0182] Obtaining a non-pleasant expression judgment coefficient threshold, performing a threshold comparison between the non-pleasant expression judgment coefficient difference and the non-pleasant expression judgment coefficient threshold, and obtaining second expression classification data;
[0183] It should be noted here that: the threshold value of the unpleasant expression judgment coefficient is to obtain multiple sad expression images, calculate the first unpleasant expression judgment coefficient and the second unpleasant expression coefficient corresponding to each sad expression image, and calculate the average value of the difference between the first unpleasant expression judgment coefficient and the second unpleasant expression coefficient as the threshold value of the unpleasant expression judgment coefficient;
[0184] The specific numerical comparison process is as follows:
[0185] If the difference in the non-pleasant expression judgment coefficient is less than the non-pleasant expression judgment coefficient threshold, it is judged as the first non-pleasant expression interval; if the difference in the non-pleasant expression judgment coefficient is greater than or equal to the non-pleasant expression judgment coefficient threshold, it is judged as the second non-pleasant expression interval;
[0186] Wherein, the facial image in the first non-pleasant expression classification interval is in a sad expression state, and the facial image in the second non-pleasant expression classification interval is in a neither sad nor happy expression state;
[0187] It should be noted that: in this embodiment, the neither sad nor happy expression state is an intermediate transition zone between the happy expression state and the sad expression state. The neither sad nor happy expression state is usually called "calm", "neutral" or "expressionless". In this expression, the facial expression of a person is relatively relaxed and does not obviously show the characteristics of happiness or sadness.
[0188] In this application, if corresponding calculation formulas appear, the above calculation formulas are all dimensionless and take their numerical calculations. The weight coefficients, proportional coefficients and other coefficients in the formulas are set to a result value obtained by quantifying each parameter. The size of the weight coefficient and the proportional coefficient can be determined as long as it does not affect the proportional relationship between the parameter and the result value.
[0189] Embodiment 2
[0190] Based on another concept of the same invention, a multi-person facial expression recognition system and method based on deep learning is proposed, comprising the following steps:
[0191] Step S1: Acquire facial image data, and calibrate the facial image data to obtain calibrated image data;
[0192] Step S11: acquiring the target crowd image in real time, intercepting the target image data at each characteristic moment, combining two consecutive target images into a group to obtain the characteristic moment image, and performing image segmentation on the characteristic moment expression image to obtain the facial image data;
[0193] Step S12: Perform image calibration on the facial image to obtain calibration image data, as follows:
[0194] Step S121: Acquire facial image data, use a deep learning model to acquire facial key points, acquire a facial reference template, annotate standard key points of the front face of the face on the facial reference template to obtain annotated key points, correspond the facial key points to the annotated key points, and proportionally enlarge the facial image data on the facial reference template so that the facial image data covers the facial reference template to obtain calibrated image data;
[0195] Step S122: repeat the above process to calibrate each facial image;
[0196] Step S2: Acquire calibration image data and perform facial classification to obtain facial classification data;
[0197] Step S21: Acquire calibration image data, convert the calibration image data into a Drawing file format, and open the calibration image data in AutoCAD;
[0198] Step S22: in the calibration image data, mark the midpoint of the eyebrow center as the first feature point, mark the tip of the chin as the second feature point, mark the protruding point of the left zygomatic arch as the third feature point, and mark the protruding point of the right zygomatic arch as the fourth feature point;
[0199] Step S23: Use a line connection tool to connect the first feature point to the second feature point, connect the third feature point to the fourth feature point, mark the line between the first feature point and the second feature point as a facial height line, and mark the line between the third feature point and the fourth feature point as a facial width line;
[0200] Step S24: using a measuring tool to obtain the length values of the face height line and the face width line, and marking them as the face height value and the face width value respectively;
[0201] Step S25: Calculating the facial height value and the facial width value to obtain a facial aspect ratio value;
[0202] Step S26: Obtaining a first facial aspect ratio threshold and a second facial aspect ratio threshold;
[0203] Step S261: respectively obtain m different facial image data, calculate the facial aspect ratio of each facial image data, and mark them as a first aspect ratio, a second aspect ratio, a third aspect ratio, ... an mth aspect ratio;
[0204] Step S262: Calculate the aspect ratios from the first aspect ratio to the mth aspect ratio to obtain an average aspect ratio;
[0205] Step S263: Calculating the aspect ratio standard deviation from the first aspect ratio to the mth aspect ratio and the average of the aspect ratios;
[0206] Step S264: taking the difference between the aspect ratio mean and the aspect ratio standard deviation as the first facial aspect ratio threshold, and taking the sum of the aspect ratio mean and the aspect ratio standard deviation as the second facial aspect ratio threshold;
[0207] Step S27: comparing the first facial aspect ratio threshold, the second facial aspect ratio threshold and the facial aspect ratio value to obtain facial fatness and thinness classification data;
[0208] Step S271: when the facial aspect ratio value is less than the first facial aspect ratio threshold, it is determined to be in the first facial fatness and thinness classification interval;
[0209] Step S272: when the facial aspect ratio value is less than or equal to the second facial aspect ratio threshold and greater than or equal to the first facial aspect ratio threshold, it is determined to be the second facial fatness and thinness classification interval;
[0210] Step S273: when the facial aspect ratio value is greater than or equal to the second facial aspect ratio threshold, it is determined to be a third facial fatness and thinness classification interval;
[0211] Step S3: Acquire expression index data according to the calibration image data;
[0212] Step S31: obtaining calibration image data, opening the calibration image data in AutoCAD, marking the left corner of the mouth as the first key point, the right corner of the mouth as the second key point, the tip of the nose as the third key point, the outer corner of the left eye as the fourth key point, and the outer corner of the right eye as the fifth key point in the calibration image data;
[0213] Step S32: Connect the first key point and the third key point to obtain a first feature line, connect the second key point and the third key point to obtain a second feature line, mark the angle formed by the first feature line and the second feature line at the third key point as a first feature angle, and define the first feature line, the second feature line and the first feature angle as a first expression judgment indicator;
[0214] Step S33: connecting the fourth key point and the third key point to obtain a third feature line, connecting the fifth key point and the third key point to obtain a fourth feature line, marking the angle formed by the fourth feature line and the fifth feature line at the third key point as a second feature angle, and defining the third feature line, the fourth feature line and the second feature angle as a second expression judgment index;
[0215] Step S34: defining the first expression judgment index and the second expression judgment index as expression index data;
[0216] Step S4: Acquire expression index data, and acquire expression judgment data according to the expression index data;
[0217] Step S41: Acquire expression judgment data, the expression judgment data including characteristic moment images corresponding to the two target images, mark the characteristic expression index acquired according to the first target population image as the first characteristic expression index, and mark the characteristic expression index acquired according to the second target population image as the second characteristic expression index;
[0218] Step S42: Calculate the first happy expression judgment coefficient and the second happy expression judgment coefficient according to the first characteristic expression index and the second characteristic expression index respectively. The specific steps are as follows:
[0219] Step S421: Obtaining facial fatness and thinness classification data, and obtaining expression index weighted values according to the facial fatness and thinness classification data;
[0220] Step S4211: when the facial image is in the first facial fatness and thinness classification interval, use F1 to perform parameter assignment on the weighted value of the expression index;
[0221] Step S4212: when the facial image is in the second facial fatness and thinness classification interval, use F2 to perform parameter assignment on the expression index weighted value;
[0222] Step S4213: when the facial image is in the third facial fat-thin classification interval, use F3 to assign parameters to the weighted values of the expression index;
[0223] Step S422: obtaining the first feature line, the second feature line and the first feature angle according to the feature expression index data, and obtaining the first feature line length value, the second feature line length value and the first feature angle angle value respectively through the measurement tool in AutoCAD;
[0224] Step S423: obtaining a first happy expression judgment coefficient by calculating the expression index weighted value, the first characteristic line length value, the second characteristic line length value and the first characteristic angle value;
[0225] Step S424: repeat the above-mentioned first happy expression judgment coefficient calculation process, calculate the happy expression judgment coefficient corresponding to the second characteristic expression index, and mark it as the second happy expression judgment coefficient Ty2;
[0226] Step S43: Calculate the first unpleasant expression judgment coefficient and the second unpleasant expression judgment coefficient according to the first characteristic expression index and the second characteristic expression index, respectively, as follows:
[0227] Step S431: obtaining the third characteristic line, the fourth characteristic line and the second characteristic angle according to the characteristic expression index data, and obtaining the length value of the third characteristic line, the length value of the fourth characteristic line and the angle value of the second characteristic angle respectively through the measurement tool in AutoCAD;
[0228] Step S432: obtaining a first unpleasant expression judgment coefficient by calculating the expression weight value, the third characteristic line length value, the fourth characteristic line length value, and the second characteristic angle value;
[0229] Step S434: repeating the above-mentioned first unpleasant expression judgment coefficient calculation process, calculating the unpleasant expression judgment coefficient corresponding to the second characteristic expression index, and marking it as the second unpleasant expression judgment coefficient Fy2;
[0230] Step S44: respectively obtaining the first happy expression judgment coefficient, the second happy expression judgment coefficient, the first unpleasant expression judgment coefficient and the second unpleasant expression judgment coefficient corresponding to each calibration image data to obtain expression judgment data;
[0231] Step S5: performing facial expression judgment according to the expression judgment data;
[0232] Step S51: The happy expression recognition unit performs happy expression recognition, which is as follows:
[0233] Step S511: Acquire expression judgment data, and acquire a first happy expression judgment coefficient and a second happy expression coefficient according to the expression judgment data;
[0234] Step S512: calculating the difference between the first happy expression judgment coefficient and the second happy expression coefficient to obtain the happy expression judgment coefficient difference;
[0235] Step S513: obtaining a threshold value of a happy expression judgment coefficient, and numerically comparing the happy expression judgment coefficient difference with the threshold value of the happy expression judgment coefficient to obtain first expression classification data;
[0236] Step S5131: if the difference in the joyful expression judgment coefficient is greater than the joyful expression judgment coefficient threshold, it is determined to be the first joyful expression classification interval; if the difference in the joyful expression judgment coefficient is less than or equal to the joyful expression judgment coefficient threshold, it is determined to be the second joyful expression classification interval;
[0237] Wherein, the facial image in the first pleasant expression classification interval is in a pleasant expression state, and the facial image in the second pleasant expression classification interval is in a non-pleasant expression state;
[0238] Step S52: the unpleasant expression recognition unit further performs expression recognition according to the first expression classification data, and the specific steps are as follows:
[0239] Step S521: obtaining a first unpleasant expression judgment coefficient and a second unpleasant expression judgment coefficient corresponding to a second pleasant expression classification interval;
[0240] Step S522: Calculate the difference between the first unpleasant expression judgment coefficient and the second unpleasant expression coefficient to obtain the unpleasant expression judgment coefficient difference;
[0241] Step S523: obtaining a threshold value of a non-pleasant expression judgment coefficient, performing a threshold comparison between the non-pleasant expression judgment coefficient difference and the non-pleasant expression judgment coefficient threshold value, and obtaining second expression classification data;
[0242] Step S5231: if the difference of the unpleasant expression judgment coefficient is less than the unpleasant expression judgment coefficient threshold, it is judged as the first unpleasant expression interval;
[0243] Step S5232: if the difference of the unpleasant expression judgment coefficient is greater than or equal to the unpleasant expression judgment coefficient threshold, it is judged as the second unpleasant expression interval;
[0244] Wherein, the facial image in the first non-pleasant expression classification interval is in a sad expression state, and the facial image in the second non-pleasant expression classification interval is in a neither sad nor happy expression state;
[0245] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. Multi-person facial expression recognition system based on deep learning, It is characterized in that include: Facial calibration module: used to obtain the image data of the target population, intercept, segment and calibrate the image data of the target population, and obtain calibrated image data; Facial classification module: used to mark four feature points in the calibration image data, obtain the facial height value and facial width value according to the distance value between the feature points, calculate the facial width-to-height ratio value according to the facial height value and the facial width value, perform threshold division on the facial width-to-height ratio value, and obtain facial fatness and thinness classification data; Facial expression module: used to mark five key points in the calibration image data respectively, obtain the first feature line, the second feature line, the third feature line, the fourth feature line, the first feature angle and the second feature angle from the five key points, calculate the first expression judgment index through the first feature line, the second feature line and the first feature angle through geometric feature, calculate the second expression judgment index through the third feature line, the fourth feature line and the second feature angle through geometric feature, and obtain the expression index data through the first expression judgment index and the second expression judgment index combined with the time difference analysis of image acquisition; Judgment coefficient module: obtain the first characteristic expression index and the second characteristic expression index respectively according to the expression index data, calculate the first happy expression judgment coefficient, the second happy expression judgment coefficient, the first unpleasant expression judgment coefficient and the second unpleasant expression judgment coefficient respectively according to the first characteristic expression index and the second characteristic expression index, and obtain expression judgment data; Expression recognition module: according to the expression judgment data, the difference of the judgment coefficient of happy expression and the difference of the judgment coefficient of unpleasant expression are obtained respectively, and the threshold judgment is performed on the difference of the judgment coefficient of happy expression, and the facial image is divided into happy expression and unpleasant expression. The threshold judgment is performed on the difference of the judgment coefficient of unpleasant expression, and the happy expression is further divided into the sad expression state and the neither sad nor happy expression state, so as to realize the expression judgment of the facial image; The facial expression module obtains expression index data, as follows: Acquire calibration image data, open the calibration image data in AutoCAD, mark the left corner of the mouth as the first key point, mark the right corner of the mouth as the second key point, mark the nose tip as the third key point, mark the outer corner of the left eye as the fourth key point, and mark the outer corner of the right eye as the fifth key point in the calibration image data; Connect the first key point and the third key point to obtain a first feature line, connect the second key point and the third key point to obtain a second feature line, mark the angle formed by the first feature line and the second feature line at the third key point as a first feature angle, and define the first feature line, the second feature line and the first feature angle as a first expression judgment index; Connect the fourth key point with the third key point to obtain a third feature line, connect the fifth key point with the third key point to obtain a fourth feature line, mark the angle formed by the fourth feature line and the fifth feature line at the third key point as a second feature angle, and define the third feature line, the fourth feature line and the second feature angle as a second expression judgment index; defining the first expression judgment index and the second expression judgment index as expression index data; And transmit the expression index data to the judgment coefficient module; The judgment coefficient module obtains expression judgment data, as follows: Acquire expression index data, the expression index data including characteristic moment images corresponding to the two target images, mark the characteristic expression index acquired according to the first target population image as a first characteristic expression index, and mark the characteristic expression index acquired according to the second target population image as a second characteristic expression index; According to the first characteristic expression index and the second characteristic expression index, the first happy expression judgment coefficient and the second happy expression judgment coefficient are calculated respectively: Calculate the first happy expression judgment coefficient as follows: Obtain facial fatness and thinness classification data, and obtain expression index weighted values according to the facial fatness and thinness classification data; When the facial image is in the first facial fat-thin classification interval, F1 is used to assign parameters to the weighted values of the expression index; When the facial image is in the second facial fat-thin classification interval, F2 is used to assign parameters to the weighted values of the expression index; When the facial image is in the third facial fat-thin classification interval, F3 is used to assign parameters to the weighted values of the expression index; F1 is specifically limited to 1.1-1.2, F2 is specifically limited to 0.95-1.05, and F3 is specifically limited to 0.8-0.9; Obtain the first characteristic line, the second characteristic line and the first characteristic angle according to the characteristic expression index data, and respectively obtain the first characteristic line length value, the second characteristic line length value and the first characteristic angle angle value through the measurement tool in AutoCAD; The first happy expression judgment coefficient is obtained by calculating the expression index weighted value, the first characteristic line length value, the second characteristic line length value and the first characteristic angle value; Repeat the above-mentioned first happy expression judgment coefficient calculation process to calculate the happy expression judgment coefficient corresponding to the second characteristic expression index, and mark it as the second happy expression judgment coefficient; Calculate a first unpleasant expression judgment coefficient and a second unpleasant expression judgment coefficient according to the first characteristic expression index and the second characteristic expression index respectively; The first happy expression judgment coefficient, the second happy expression judgment coefficient, the first unpleasant expression judgment coefficient and the second unpleasant expression judgment coefficient corresponding to each calibration image data are respectively obtained to obtain expression judgment data.
2. The multi-person facial expression recognition system based on deep learning according to claim 1, It is characterized in that The face calibration module obtains calibration image data as follows: The face calibration module includes an image acquisition unit and a face calibration unit; The image acquisition unit acquires the target crowd image in real time, intercepts the target image data at each characteristic moment, combines two consecutive target images into a group to obtain the characteristic moment image, and performs image segmentation on the characteristic moment expression image to obtain the facial image data; The face calibration unit performs image calibration on the face image as follows: Acquire facial image data, use a deep learning model to acquire facial key points, acquire a facial reference template, mark standard key points on the front of the face on the facial reference template to obtain marked key points, match the facial key points with the marked key points, and proportionally enlarge the facial image data on the facial reference template so that the facial image data covers the facial reference template to obtain calibrated image data; Repeat the above process to calibrate each facial image; The face calibration module acquires the calibration image data and transmits it to the face classification module.
3. The multi-person facial expression recognition system based on deep learning according to claim 1, It is characterized in that The face classification module obtains face classification data as follows: Acquire the calibration image data, convert the calibration image data into Drawing file format, and open the calibration image data in AutoCAD; In the calibration image data, the midpoint of the eyebrow center is marked as the first feature point, the tip of the chin is marked as the second feature point, the protruding point of the left zygomatic arch is marked as the third feature point, and the protruding point of the right zygomatic arch is marked as the fourth feature point; Connect the first feature point to the second feature point, connect the third feature point to the fourth feature point, mark the line between the first feature point and the second feature point as a facial height line, and mark the line between the third feature point and the fourth feature point as a facial width line; Obtain the length values of the face height line and the face width line, and mark them as the face height value and the face width value respectively; The facial height value and the facial width value are calculated to obtain the facial width-to-height ratio value; Obtain a first facial aspect ratio threshold and a second facial aspect ratio threshold; The first facial width-to-height ratio threshold, the second facial width-to-height ratio threshold and the facial width-to-height ratio value are numerically compared to obtain facial fatness and thinness classification data, and the data is transmitted to the judgment coefficient module; The numerical comparison process is as follows: When the facial width-to-height ratio value is less than the first facial width-to-height ratio threshold, it is determined to be in the first facial fat-to-thin classification interval; When the facial aspect ratio value is less than or equal to the second facial aspect ratio threshold and greater than or equal to the first facial aspect ratio threshold, it is determined to be the second facial fatness and thinness classification interval; When the facial aspect ratio value is greater than or equal to the second facial aspect ratio threshold, it is determined to be a third facial fatness and thinness classification interval.
4. The multi-person facial expression recognition system based on deep learning according to claim 3, It is characterized in that The facial classification module obtains the first facial aspect ratio threshold and the second facial aspect ratio threshold as follows: Respectively obtain m different facial image data, calculate the facial aspect ratio of each facial image data, and mark them as a first aspect ratio to an mth aspect ratio; The first aspect ratio to the mth aspect ratio are calculated to obtain an average aspect ratio; The standard deviation of the aspect ratio is obtained by calculating the first aspect ratio to the mth aspect ratio and the average of the aspect ratios; The difference between the aspect ratio mean and the aspect ratio standard deviation is used as the first facial aspect ratio threshold, and the sum of the aspect ratio mean and the aspect ratio standard deviation is used as the second facial aspect ratio threshold.
5. The multi-person facial expression recognition system based on deep learning according to claim 1, It is characterized in that The judgment coefficient module calculates the first unpleasant expression judgment coefficient and the second unpleasant expression judgment coefficient as follows: The third characteristic line, the fourth characteristic line and the second characteristic angle are obtained according to the characteristic expression index data, and the length value of the third characteristic line, the length value of the fourth characteristic line and the angle value of the second characteristic angle are respectively obtained by using the measurement tool in AutoCAD; The first unpleasant expression judgment coefficient is obtained by calculating the expression weight value, the third characteristic line length value, the fourth characteristic line length value and the second characteristic angle value; Repeat the above-mentioned first unpleasant expression judgment coefficient calculation process to calculate the unpleasant expression judgment coefficient corresponding to the second characteristic expression index, and mark it as the second unpleasant expression judgment coefficient.
6. The multi-person facial expression recognition system based on deep learning according to claim 1, It is characterized in that The expression recognition module includes a happy expression recognition unit and a non-happy expression recognition unit; The happy expression recognition unit performs happy expression recognition; The unpleasant expression recognition unit further performs expression recognition: Perform joyful expression recognition as follows: Acquire expression judgment data, and acquire a first happy expression judgment coefficient and a second happy expression coefficient according to the expression judgment data; Calculating the difference between the first happy expression judgment coefficient and the second happy expression coefficient to obtain the happy expression judgment coefficient difference; Obtaining a threshold value of a happy expression judgment coefficient, comparing the happy expression judgment coefficient difference with the happy expression judgment coefficient threshold value, and obtaining first expression classification data; The specific numerical comparison process is as follows: If the difference in the joyful expression judgment coefficient is greater than the joyful expression judgment coefficient threshold, it is judged as the first joyful expression classification interval; if the difference in the joyful expression judgment coefficient is less than or equal to the joyful expression judgment coefficient threshold, it is judged as the second joyful expression classification interval; Among them, the facial image in the first joyful expression grading interval is in a joyful expression state, and the facial image in the second joyful expression grading interval is in a non-joyful expression state.
7. The multi-person facial expression recognition system based on deep learning according to claim 6, It is characterized in that The unpleasant expression recognition unit further performs expression recognition according to the first expression classification data, specifically as follows: Obtaining a first unpleasant expression judgment coefficient and a second unpleasant expression judgment coefficient corresponding to a second pleasant expression classification interval; Calculate the difference between the first unpleasant expression judgment coefficient and the second unpleasant expression coefficient to obtain the unpleasant expression judgment coefficient difference; Obtaining a non-pleasant expression judgment coefficient threshold, performing a threshold comparison between the non-pleasant expression judgment coefficient difference and the non-pleasant expression judgment coefficient threshold, and obtaining second expression classification data; The specific numerical comparison process is as follows: If the difference in the non-pleasant expression judgment coefficient is less than the non-pleasant expression judgment coefficient threshold, it is judged as the first non-pleasant expression interval; if the difference in the non-pleasant expression judgment coefficient is greater than or equal to the non-pleasant expression judgment coefficient threshold, it is judged as the second non-pleasant expression interval; Among them, the facial image in the first non-pleasant expression classification interval is in a sad expression state, and the facial image in the second non-pleasant expression classification interval is in a neither sad nor happy expression state.
