Face recognition optimization method, device, equipment and medium
By optimizing the distribution threshold by mixing the Gaussian distribution data model and the EM iterative algorithm, the problem of misrecognition of the face recognition system under static thresholds is solved, and the recognition accuracy and recall rate are improved.
Patent Information
- Application Number
- CN202111205183.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-15
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-10-15
AI Technical Summary
Existing face recognition systems are prone to misrecognition when using static thresholds, especially when lighting changes, angles are different, and masks are worn, resulting in low recognition accuracy and recall rate.
Using a mixed Gaussian distribution data model, by obtaining the multimodal distribution probability density and weight of face recognition similarity data, the EM iterative algorithm is used to optimize the distribution threshold and dynamically adjust the recognition threshold to improve recognition accuracy.
It improves the accuracy of face recognition, reduces misjudgments, and improves the overall accuracy and recall rate.
Smart Images

Figure CN113807319B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of video surveillance technology, and specifically provides a face recognition optimization method, device, equipment and medium. Background Art
[0002] In image recognition scenarios such as face recognition and vehicle recognition, the main engine used is the 1:N comparison engine. In specific scenarios, directly using the comparison engine often does not bring the best recognition effect. The specific reasons are as follows:
[0003] 1. The laboratory training environment is limited, and there is little training data for extreme lighting conditions, which results in the engine being greatly affected by the environment after it is deployed online. Too much light leads to overexposure, and insufficient light leads to underexposure of the face, resulting in loss of details.
[0004] 2. The monitoring scene is different from the comparison scene. Generally, the camera capture point cannot capture the front face image, while the photos stored in the face database are mostly frontal photos. As a result, in the monitoring scene, the captured side face photos are compared with the frontal photos in the database, resulting in the data distribution of the comparison results being different from the data distribution of the frontal comparison results, making it easy to cause misidentification when using a fixed static threshold.
[0005] 3. To ensure the accuracy of the comparison results, the static threshold is usually set too high, which results in sacrificing the recall rate and low overall accuracy. For example, when a large number of people are wearing masks, the photos captured are of people wearing masks, while the registered photos stored in the face database are of people not wearing masks. If the two are compared, the similarity is low.
[0006] It can be seen that the use of static thresholds cannot cope with complex comparison situations. Accordingly, a new recognition solution is needed in the art to solve the above problems. Summary of the invention
[0007] The present invention aims to solve the above technical problem, that is, to solve the problem that the use of static thresholds in existing face recognition easily causes misrecognition.
[0008] In a first aspect, the present invention provides a face recognition optimization method, which mainly comprises the following steps:
[0009] S1. Acquire face recognition similarity data within a preset time period, wherein the face recognition similarity data is similarity data obtained by comparing the captured photos with the database photos within the preset time period;
[0010] S2, determining whether the similarity data presents a multi-peak distribution, and if so, obtaining a probability density of each peak distribution in the similarity data based on the similarity data;
[0011] S3, establishing a mixed Gaussian distribution data model of the similarity data according to the probability density and weight of each peak distribution;
[0012] S4, optimizing the mixed Gaussian distribution data model using an EM iterative algorithm to obtain a distribution threshold of the mixed Gaussian distribution data model;
[0013] S5. Acquire the facial image information to be identified, and identify the facial image information to be identified based on the mixed Gaussian distribution data model and the obtained distribution threshold.
[0014] Optionally, in step S2, the multimodal distribution includes a bimodal distribution.
[0015] Optionally, in step S2, obtaining the probability density of each peak distribution in the similarity data based on the similarity data includes obtaining according to the following formula:
[0016]
[0017] Wherein, x is the face recognition similarity value, μ is the mode of the similarity data, σ is the standard deviation of the similarity data, and P(x|θ) is the probability density of the similarity data.
[0018] Optionally, in step S2, before obtaining the probability density of each peak distribution in the similarity data based on the similarity data, the similarity data is divided into multiple data regions according to a pre-set similarity static threshold, and each data region corresponds to a different peak distribution.
[0019] Optionally, before step S3, the ratio of the number of similarity data contained in each of the multiple data regions to the total amount of all similarity data is calculated respectively, and the ratio is used as the weight of the corresponding data region in the mixed Gaussian distribution data model.
[0020] Optionally, in step S4, a mixed Gaussian distribution data model of similarity data of each user is obtained according to the probability density and weight of the similarity data in each data region, wherein the mixed Gaussian distribution data model is specifically:
[0021]
[0022] Among them, N(x|μ k ,∑ k ) is the probability density function of the k-th Gaussian model, that is, the probability that the k-th model produces x; π k are the weights of the Gaussian model.
[0023] In a second aspect, the present invention provides a face recognition optimization device, mainly comprising:
[0024] A data acquisition module, which is used to acquire face recognition similarity data within a preset time period, wherein the face recognition similarity data is similarity data obtained by comparing the captured photos with the base photos within the preset time period;
[0025] A data processing module, which is used to determine whether the similarity data presents a multi-peak distribution, and if so, obtain the probability density of each peak distribution in the similarity data based on the similarity data;
[0026] A model generation module, which is used to establish a mixed Gaussian distribution data model of the similarity data according to the probability density and weight of each peak distribution;
[0027] A distribution threshold acquisition module, which is used to optimize the mixed Gaussian distribution data model using an EM iterative algorithm to obtain a distribution threshold of the mixed Gaussian distribution data model;
[0028] The recognition module is used to obtain the facial image information to be recognized, and recognize the facial image information to be recognized based on the mixed Gaussian distribution data model and the obtained distribution threshold.
[0029] Optionally, the data processing module is used to determine whether the similarity data presents a bimodal distribution.
[0030] Optionally, the data processing module obtains the probability density of each peak distribution in the similarity data based on the similarity data, including obtaining according to the following formula:
[0031]
[0032] Wherein, x is the face recognition similarity value, μ is the mode of the similarity data, σ is the standard deviation of the similarity data, and P(x|θ) is the probability density of the similarity data.
[0033] Optionally, the data processing module, before obtaining the probability density of each peak distribution in the similarity data based on the similarity data, divides the similarity data into multiple data regions according to a pre-set similarity static threshold, each data region corresponding to a different peak distribution.
[0034] Optionally, the model generation module calculates the ratio of the number of similarity data contained in each of the multiple data regions to the total amount of all similarity data, and uses the ratio as the weight of the corresponding data region in the mixed Gaussian distribution data model.
[0035] Optionally, the model generation module obtains a mixed Gaussian distribution data model of the similarity data of each user according to the probability density and weight of the similarity data in each data area, wherein the mixed Gaussian distribution data model is specifically:
[0036]
[0037] Among them, N(x|μ k ,∑ k ) is the probability density function of the k-th Gaussian model, that is, the probability that the k-th model produces x; π k are the weights of the Gaussian model.
[0038] In a third aspect, the present invention provides a face recognition optimization device, which includes one or more processors. When the one or more processors are executed, the device executes the face recognition optimization method described in any one of the first aspects of the present invention.
[0039] In a fourth aspect, the present invention provides a computer storage medium storing a computer program, which, when executed, can implement the face recognition optimization method described in any one of the first aspects of the present invention.
[0040] Beneficial technical effects:
[0041] When adopting the above-mentioned technical solution, the present invention improves the accuracy of face recognition and correspondingly reduces the occurrence of misjudgment by using the distribution threshold obtained by the mixed Gaussian distribution data model as the dynamic threshold for face recognition, compared with simply using the static threshold for face recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings, in which:
[0043] Figure 1 It is a flow chart of the main steps of an embodiment of the face recognition optimization method of the present invention;
[0044] Figure 2 Schematic diagram of bimodal distribution of comparison similarity data of an embodiment of the face recognition optimization method of the present invention;
[0045] Figure 3 1 is a schematic diagram of a dynamic threshold optimization process of an embodiment of a face recognition optimization method of the present invention;
[0046] Figure 4 It is a structural schematic diagram of an embodiment of the face recognition optimization device of the present invention.
[0047] Figure 5 It is a structural schematic diagram of an embodiment of a face recognition optimization device of the present invention. DETAILED DESCRIPTION
[0048] The present invention provides a face recognition optimization method, such as Figure 1 As shown, it mainly includes the following steps:
[0049] S1. Acquire face recognition similarity data within a preset time period, wherein the face recognition similarity data is similarity data obtained by comparing the captured photos with the database photos within the preset time period;
[0050] S2, determining whether the similarity data presents a multi-peak distribution, and if so, obtaining a probability density of each peak distribution in the similarity data based on the similarity data;
[0051] S3, establishing a mixed Gaussian distribution data model of the similarity data according to the probability density and weight of each peak distribution;
[0052] S4, optimizing the mixed Gaussian distribution data model using an EM iterative algorithm to obtain a distribution threshold of the mixed Gaussian distribution data model;
[0053] S5. Acquire the facial image information to be identified, and identify the facial image information to be identified based on the mixed Gaussian distribution data model and the obtained distribution threshold.
[0054] In one embodiment of the face recognition optimization method of the present invention, step S1 specifically includes obtaining face recognition similarity data, wherein the face recognition similarity data is similarity data obtained by comparing the captured photo with the base photo. The acquired face recognition similarity data can be used to obtain face recognition similarity data within a preset time period based on the amount of face recognition data generated daily in the actual scene. For example, in a smart community scenario, a total of 300,000 groups of video surveillance face recognition comparison photos are collected for one month. In addition to the captured photos and the base photos with the highest similarity, each group of acquired data also includes similarity data obtained by comparing the captured photos with the base photos. Some data are randomly selected as the test set, and the remaining data are used as the training set.
[0055] The step S2 is specifically to determine whether the similarity data presents a multi-peak distribution form. In general, the face recognition results include two categories: successful recognition and failed recognition. When the amount of face recognition similarity data collected increases, a more obvious bimodal distribution is presented on the distribution diagram of the recognition similarity data. For more refined classification occasions, the face recognition similarity can be divided into multiple categories according to its size, such as being divided into three categories according to the high, medium and low similarity of the recognition results. According to this classification method, the similarity data may present a more complex three-peak or multi-peak structure. In actual operation, different classification standards can also be preset according to actual needs, so that the recognition similarity data can be divided into multiple data categories, and the distribution of the recognition similarity presents a multi-peak distribution form accordingly.
[0056] For bimodal distribution scenarios, the intersection of the two unimodal recognition similarity data density curves that make up the bimodal distribution is used as the best segmentation point of the two data density curves. The similarity value corresponding to the best segmentation point is the distribution threshold of the two data probability densities. Compared with the use of static thresholds for face recognition alone, the distribution threshold corresponding to the best segmentation point improves the accuracy of face recognition and correspondingly reduces the occurrence of misjudgments.
[0057] For scenarios with three peaks or more, a method similar to the bimodal distribution is adopted to convert the adjacent data distribution in the multi-peak into a bimodal data distribution composed of multiple adjacent unimodal data. The same method as the bimodal distribution is used to find the segmentation thresholds between multiple adjacent data distributions.
[0058] The following is an example of a bimodal distribution. Figure 2 The figure shows a bimodal distribution diagram of the comparison similarity data of the embodiment of the face recognition optimization method of the present invention. Figure 2As can be seen in the figure, with 0.9 as the split point, the low segment on the left is the sample statistics of failed face recognition matches, which presents a skewed distribution, and the high segment on the right is the sample statistics of successful matches, which presents only the left half of the skewed distribution, and the data distribution on both sides is combined to form a Gaussian mixture distribution. The intersection of the probability distribution of the high segment and the probability distribution of the low segment is considered to be the best split point for splitting the data distribution on the left and right sides. The value corresponding to the split point as the dynamic threshold of face recognition will better guarantee the recognition results of people in the corresponding scene. It should be noted that the dynamic threshold of face recognition for each person, that is, the intersection of the probability distribution of the high segment and the low segment of face recognition similarity for each person, is not the same. Some people have more high segment data, which means that the user is often captured from the front and the captured image is clearer. Compared with the static threshold, it is necessary to increase the judgment threshold of recognition similarity, thereby improving the accuracy, reducing the recall rate, and ensuring the highest comprehensive F1 score. For another group of people, there are more low-segment data, which means that the overall quality of the user's snapshots is poor, and the threshold needs to be lowered to increase the recall rate, thus generating a dynamic threshold.
[0059] Generally, the obtained similarity data distribution can be judged by image recognition to determine whether the face recognition similarity data distribution presents a bimodal distribution. Alternatively, the tester can manually judge whether the face recognition similarity data distribution presents a bimodal distribution. According to relevant testing experience, when the face recognition similarity data accumulates to a certain amount, the similarity data will present a bimodal distribution.
[0060] When the face recognition similarity data presents a bimodal distribution, the similarity data is divided into two data areas according to a pre-set face recognition similarity static threshold, corresponding to the two data categories of successful recognition and unsuccessful recognition. Among them, the data with face recognition similarity greater than the static threshold is the data of successful recognition, and the data with face recognition similarity less than the static threshold is the data of unsuccessful recognition.
[0061] In the above two data classifications, the probability density of the similarity data is obtained based on the similarity data. The probability density is specifically,
[0062]
[0063] Wherein, x is the face recognition similarity value, μ is the mode of the face recognition similarity data, σ is the standard deviation of the face recognition similarity data, and P(x|θ) is the probability density of the face recognition similarity data.
[0064] Specifically, the probability density of the data part whose face recognition similarity is less than the static threshold, that is, the data that failed to be recognized, can be set as:
[0065]
[0066] The probability density of the data part whose face recognition similarity is greater than the static threshold, that is, the recognition success data, can be set as:
[0067]
[0068] Specifically, step S3 is to establish a mixed Gaussian distribution data model of similarity data according to the probability density and weight of the similarity data in each data region. The mixed Gaussian distribution data model refers to a linear combination of multiple Gaussian distribution functions. In theory, the model can fit any type of distribution and is usually used to solve the situation where the data in the same set contains multiple different distributions.
[0069] Specifically, the mixed Gaussian distribution data model used in the present invention is as follows:
[0070]
[0071] Among them, N(x|μ k ,∑ k ) is the probability density function of the k-th Gaussian model, that is, the probability distribution of x generated by the k-th model; π k is the weight of the Gaussian model; x is the face recognition similarity value.
[0072] Specifically, in the present invention, π k The ratio of the number of face recognition similarity data contained in different regions of face recognition similarity data to the total number of recognition similarity data is the weight of the Gaussian model. For example, the static threshold is set to 0.85, the total number of face recognition similarity data is 1000, of which 600 have a face recognition similarity less than 0.85, and 400 have a face recognition similarity greater than 0.85; then the weight of the Gaussian model for the data with a face recognition similarity less than the static threshold is π k The initial value is 600 / 1000=0.6; the weight of the Gaussian model for the data part whose face recognition similarity is greater than the static threshold is π k The initial value of is 400 / 1000=0.4.
[0073] In addition, N(x|μ k ,∑ k ) is the same as the probability density function P(x|θ) of the single Gaussian distribution described in step S2, and can be regarded as the probability density model of the kth single Gaussian distribution.
[0074] The step S4 specifically includes optimizing the mixed Gaussian distribution data model using the EM iterative algorithm to obtain the demarcation point of the mixed Gaussian distribution data model.
[0075] First, the EM algorithm is used to iteratively solve the mixed Gaussian model. The EM algorithm can be used to solve the parameter estimation problem of missing data. The existence of hidden parameters is actually the problem of missing data. The records of which category each sample comes from are missing. The Gaussian mixture model is iteratively processed by using the iterative approximation method. The EM algorithm contains hidden parameters. In each iteration, the size of the hidden parameters is first calculated using the parameters of the previous time, and a set of optimal parameters is found through the iterative process. For the present invention, the set of optimal hidden parameters obtained after iterating the mixed Gaussian model using the EM algorithm is specifically the mode, standard deviation and left and right distribution probabilities of face recognition similarity. The mixed Gaussian distribution data model represented by the optimal hidden parameters is most likely to generate the existing sampled data. The process of each iteration is also a process of parameter optimization and correction.
[0076] Among them, when judging the iteration of the EM algorithm, the corresponding iteration parameters can be set as the condition for the end of the iteration. For example, the maximum number of iterations can be set, and when the number of iterations is greater than the maximum number of iterations, the iteration ends. It is also possible to set a minimum difference to determine whether the parameter value (mode, standard deviation, probability density) obtained after this iteration is less than the preset minimum difference between the parameter value obtained by the previous iteration result, and when the parameter value obtained by the previous and next iteration results is less than the preset minimum difference, the iteration ends.
[0077] Secondly, after obtaining the optimal mode and standard deviation through multiple iterations, they are respectively substituted into the probability density formulas of the left and right distributions to obtain the probability density formulas of the low segment similarity data distribution and the high segment similarity data distribution after iterative optimization of the EM algorithm.
[0078] Finally, by using the probability density formula of the low segment similarity data distribution and the probability density formula of the high segment similarity data distribution, the x value with the same probability density formula is calculated, that is, by calculating the face recognition similarity value in the following formula,
[0079] P(x1|θ)=P(x2|θ), that is
[0080]
[0081] The above formula is used to solve the same face recognition similarity value in the two probability density formulas, that is, the similarity value when x1=x2, and this similarity value is used as the dynamic threshold for face recognition of the user. This similarity value is also the intersection of the two probability density distributions on the left and right, also known as the best segmentation point of the two probability density distributions.
[0082] The step S5 specifically includes identifying the face image to be identified based on the mixed Gaussian distribution data model and the obtained demarcation point. That is, the demarcation point of the probability distribution of the high segment and the low segment of the face recognition similarity of a certain user in the mixed Gaussian distribution data model is used as the threshold of the face recognition similarity of the user to identify the face image to be identified. If the similarity value after identification is higher than the threshold, it means that the identification is successful, otherwise, it means that the identification fails.
[0083] In step S5, the server periodically obtains the newly added face recognition similarity data of each user, and corrects and optimizes the face recognition dynamic threshold of each user based on the newly obtained similarity data and the mixed Gaussian distribution data model to obtain the corrected and optimized face recognition dynamic threshold. Figure 3 As shown, the face recognition comparison results obtained by the 1:N engine are saved in the server's database. The server analyzes whether the data distribution of each person's face recognition similarity data conforms to the form of a bimodal distribution. For users whose similarity data conforms to a bimodal distribution, the EM algorithm is used to solve the intersection of the similarity data distribution on both sides of the static threshold, and the intersection is used as the dynamic threshold for face recognition of the user. The face recognition dynamic threshold of each person is saved in the database. Based on the acquired face recognition dynamic threshold, the server periodically updates the face recognition threshold saved in the settings to the latest acquired face recognition dynamic threshold.
[0084] The performance of the mixed Gaussian distribution data model can be evaluated using a confusion matrix. Specifically, a confusion matrix is an error matrix. The confusion matrix is generally a square matrix of (n_classes, n_classes), where n_classes represents the number of classes.
[0085] Each row of the confusion matrix represents an instance in the true class, or each row represents an instance in the predicted class.
[0086] Each column represents an instance of a real class.
[0087] The confusion matrix makes it easy to see if the system is confusing two classes.
[0088] The indicators used include precision, recall and F1 score, and the confusion matrix is used to assist in calculating these values.
[0089] Precision: the proportion of positive samples in the positive examples determined by the classifier;
[0090] Recall rate: the proportion of positive examples predicted to be positive to the total positive examples;
[0091] F1score: 2·precision·recall / (precision+recall).
[0092] For the prediction results of a classifier, we can draw a confusion matrix like this: each row of the table represents the predicted category, and each column represents the actual category. In a binary classification task, the confusion matrix is as follows:
[0093] Label = 1 Label=0 Predict=1 TP FP Predict = 0 FN TN
[0094] Where label is the label of the data, and predict is the prediction result of the model. In order to calculate precision, recall and F1, four concepts are introduced here:
[0095] TP: True Positive, meaning label = 1 and predict = 1
[0096] FP: False Positive, meaning label = 0 and predict = 1
[0097] FN: False Negative, meaning label = 1 and predict = 0
[0098] TN: True Negative, meaning label = 0 and predict = 0
[0099] True / False indicates whether the prediction result is consistent with the annotation label.
[0100] Positive / Negative indicates whether the prediction result is 1 or 0.
[0101] After obtaining the confusion matrix, calculating the precision, recall, and F1 value only requires substituting into the formula:
[0102] precision=TP / (TP+FP)
[0103] recall=TP / (TP+FN)
[0104] After obtaining the accuracy and recall, the F1score can be obtained by solving the following formula:
[0105]
[0106] Among them, F1score is the harmonic mean of precision and recall, and the maximum value of the harmonic mean is 1 and the minimum value is 0. The closer it is to 1, the better the comprehensive performance of precision and recall is.
[0107] For example, by manually marking 1000 face recognition comparison photos of 10 people, including 500 positive samples and 500 negative samples, after model training, the comparison thresholds of the 10 people are generated.
[0108] According to the comparison threshold, the comparison samples are divided into predicted positive samples and predicted negative samples.
[0109] The number of TP types whose true value is 1 and predicted value is 1 is 489.
[0110] The number of FP types whose true value is 0 and predicted value is 1 is 24.
[0111] The number of FN types with true value of 1 and predicted value of 0 is 11.
[0112] The number of TN types whose true value is 0 and predicted value is 0 is 476.
[0113] From this, we can get,
[0114] precision=489 / (489+24)=0.9532
[0115] recall=489 / (489+11)=0.978
[0116] F1score=2*0.9532*0.978 / (0.9532+0.978)=0.9654
[0117] In a second aspect, the present invention provides a face recognition optimization device, such as Figure 4 As shown, the face recognition optimization device of this embodiment mainly includes:
[0118] A data acquisition module, which is used to acquire face recognition similarity data within a preset time period, wherein the face recognition similarity data is similarity data obtained by comparing the captured photos with the base photos within the preset time period;
[0119] A data processing module, which is used to determine whether the similarity data presents a multi-peak distribution, and if so, obtain the probability density of each peak distribution in the similarity data based on the similarity data;
[0120] A model generation module, which is used to establish a mixed Gaussian distribution data model of the similarity data according to the probability density and weight of each peak distribution;
[0121] A distribution threshold acquisition module, which is used to optimize the mixed Gaussian distribution data model using an EM iterative algorithm to obtain a distribution threshold of the mixed Gaussian distribution data model;
[0122] The recognition module is used to obtain the facial image information to be recognized, and recognize the facial image information to be recognized based on the mixed Gaussian distribution data model and the obtained distribution threshold.
[0123] The face recognition optimization device provided in this embodiment can be used to execute the face recognition optimization method provided in the first aspect. The specific implementation method and technical effect are similar to those described in the first aspect, and will not be repeated here.
[0124] In a third aspect, the present invention provides a face recognition optimization device, such as Figure 5 As shown, the face recognition optimization device 400 of this embodiment mainly includes: a processor 41, a memory 42, and a receiver 43.
[0125] The processor 41, the memory 42, and the receiver 43 are connected to each other through a bus and communicate with each other. Specifically,
[0126] A processor 41, which is used to execute the face recognition optimization method provided by the present invention;
[0127] A memory 42, which is used to store execution instructions. When the face recognition optimization device 400 is running, the processor 41 communicates with the memory 42, and the processor 41 executes the execution instructions stored in the memory 42, so that the face recognition optimization device 400 performs the face recognition optimization method described in any one of the first aspects of the present invention;
[0128] The receiver 43 is used to receive face recognition similarity data.
[0129] In a fourth aspect, the present invention provides a computer storage medium storing a computer program, which, when executed, can implement the face recognition optimization method described in any one of the first aspects of the present invention.
[0130] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A face recognition optimization method, characterized in that: The following steps are involved: S1. Acquire face recognition similarity data within a preset time period, wherein the face recognition similarity data is similarity data obtained by comparing the captured photos with the database photos within the preset time period; S2. Determine whether the similarity data presents a multi-peak distribution. If so, obtain the probability density of each peak distribution in the similarity data based on the similarity data, including: Determining a category of similarity of recognition results based on the similarity data; Determining whether the similarity data exhibits a multimodal distribution based on the category; S3, establishing a mixed Gaussian distribution data model of the similarity data according to the probability density and weight of each peak distribution; S4, optimizing the mixed Gaussian distribution data model using an EM iterative algorithm to obtain a distribution threshold of the mixed Gaussian distribution data model; S5. Acquire the facial image information to be identified, and identify the facial image information to be identified based on the mixed Gaussian distribution data model and the obtained distribution threshold.
2. The face recognition optimization method according to claim 1, characterized in that: In step S2, the multimodal distribution includes a bimodal distribution.
3. The face recognition optimization method according to claim 1, characterized in that: In step S2, obtaining the probability density of each peak distribution in the similarity data based on the similarity data includes obtaining according to the following formula: Wherein, x is the face recognition similarity value, μ is the mode of the similarity data, σ is the standard deviation of the similarity data, and P(x|θ) is the probability density of the similarity data.
4. The face recognition optimization method according to claim 1, characterized in that: In step S2, before obtaining the probability density of each peak distribution in the similarity data based on the similarity data, the similarity data is divided into a plurality of data regions according to a pre-set similarity static threshold, each of the data regions corresponding to a different peak distribution.
5. The face recognition optimization method according to claim 4, characterized in that: Before step S3, the ratio of the number of similarity data contained in each of the multiple data regions to the total amount of all similarity data is calculated respectively, and the ratio is used as the weight of the corresponding data region in the mixed Gaussian distribution data model.
6. The face recognition optimization method according to claim 5, characterized in that: In step S4, a mixed Gaussian distribution data model of similarity data of each user is obtained according to the probability density and weight of similarity data in each data region, where: The mixed Gaussian distribution data model is specifically: in, is the probability density function of the kth Gaussian model, that is, the probability that the kth model produces x; are the weights of the Gaussian model.
7. A face recognition optimization device, characterized in that: include: A data acquisition module, which is used to acquire face recognition similarity data within a preset time period, wherein the face recognition similarity data is similarity data obtained by comparing the captured photos with the base photos within the preset time period; A data processing module, which is used to determine whether the similarity data presents a multi-peak distribution, and if so, obtain the probability density of each peak distribution in the similarity data based on the similarity data, including: Determining a similarity category of the recognition result based on the similarity data; Determining whether the similarity data presents a multimodal distribution based on the similarity category; A model generation module, which is used to establish a mixed Gaussian distribution data model of the similarity data according to the probability density and weight of each peak distribution; A distribution threshold acquisition module, which is used to optimize the mixed Gaussian distribution data model using an EM iterative algorithm to obtain a distribution threshold of the mixed Gaussian distribution data model; The recognition module is used to obtain the facial image information to be recognized, and recognize the facial image information to be recognized based on the mixed Gaussian distribution data model and the obtained distribution threshold.
8. The face recognition optimization device according to claim 7, characterized in that: The data processing module is used to determine whether the similarity data presents a bimodal distribution.
9. The face recognition optimization device according to claim 7, characterized in that: The data processing module obtains the probability density of each peak distribution in the similarity data based on the similarity data, including obtaining according to the following formula: Wherein, x is the face recognition similarity value, μ is the mode of the similarity data, σ is the standard deviation of the similarity data, and P(x|θ) is the probability density of the similarity data.
10. The face recognition optimization device according to claim 7, characterized in that: The data processing module, before obtaining the probability density of each peak distribution in the similarity data based on the similarity data, divides the similarity data into multiple data regions according to a pre-set similarity static threshold, each of the data regions corresponding to a different peak distribution.
11. The face recognition optimization device according to claim 10, characterized in that: The model generation module calculates the ratio of the amount of similarity data contained in each of the multiple data regions to the total amount of all similarity data, and uses the ratio as the weight of the corresponding data region in the mixed Gaussian distribution data model.
12. The face recognition optimization device according to claim 11, characterized in that: The model generation module obtains a mixed Gaussian distribution data model of the similarity data of each user according to the probability density and weight of the similarity data in each data region, wherein the mixed Gaussian distribution data model is specifically: in, is the probability density function of the kth Gaussian model, that is, the probability that the kth model produces x; are the weights of the Gaussian model.
13. A face recognition optimization device, characterized in that: comprising one or more processors, When the one or more processors are executed, the device performs the face recognition optimization method according to any one of claims 1 to 6.
14. A computer storage medium storing a computer program, wherein the computer program can implement the face recognition optimization method according to any one of claims 1 to 6 after being executed.
