Face and voiceprint authentication system and method based on deep transfer learning

The face and voiceprint authentication system through deep transfer learning, combined with the convolutional neural network and transfer learning algorithm, solves the security and efficiency problems of the face and voiceprint recognition system, achieving high accuracy and simple login.

CN111723679BActive Publication Date: 2024-09-27SHANGHAI WULING SHENGTONG INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010463483.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-27
Publication Date
2024-09-27
Estimated Expiration
2040-05-27

AI Technical Summary

Technical Problem

In the existing technology, the single authentication method of face and voiceprint recognition systems has security and management efficiency problems, and the collection of user face and voiceprint information takes a long time, making it difficult to achieve high-accuracy deep learning model training.

Method used

Using a face and voiceprint authentication system based on deep transfer learning, through the collection module, core algorithm layer module and data storage module, combined with the convolutional neural network and transfer learning algorithm, it performs data preprocessing, user liveness detection and model integration to achieve Unified authentication of face and voiceprint data.

Benefits of technology

It improves the authentication security and efficiency of the system, avoids the risk of illegal photo login, simplifies the user login process, and enhances the recognition accuracy and generalization ability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111723679B
    Figure CN111723679B
Patent Text Reader

Abstract

The present invention provides a face and voiceprint authentication system and method based on deep transfer learning, including: a user-side module: collecting and constructing face and voiceprint image data sets and returning verification results; a training module: including data preprocessing algorithms, user liveness detection algorithms, construction of deep convolutional neural network models, fusion of transfer learning algorithms, training of convolutional neural network models and convolutional neural network model integration algorithms; a data and model storage module: including the storage of face data sets and voiceprint data sets, and the storage of face recognition models and voiceprint recognition models after network model training. The present invention applies face recognition and voiceprint recognition to the system verification process, and the user does not need to enter the user name and password, making the system login process more simple and convenient. The user does not need to worry about the problems caused by the theft and forgetting of the user name and password, which improves the user's login experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence application technology, and in particular, to a face and voiceprint authentication system and method based on deep transfer learning. Background Art

[0002] The traditional identity authentication method is to register and log in using a username and password. In this authentication method, when a user forgets their username and password, they need to retrieve their password to re-authenticate, which is not conducive to the user's login verification experience. The login method based on face and voiceprint does not have to worry about forgetting usernames and passwords. Real-time face and voiceprint authentication is sufficient.

[0003] Currently, most smart identity authentication methods use a single authentication method of face or voiceprint, which is not conducive to the security and confidentiality of system authentication. When users scan their faces and collect a voiceprint, it will not only not reduce the authentication efficiency, but also improve the accuracy of system authentication.

[0004] At present, most studies have conducted separate training methods for face and voiceprint information, which is not conducive to the unified management of the system and the efficiency of system operation. Since face information belongs to image data, and voiceprint information is voice data, it is possible to consider converting voice data into image data. After being unified into image data, convolutional neural networks can be used to extract features and perform recognition, thereby improving the authentication efficiency of the system.

[0005] There is a vulnerability in face recognition login. When someone uses the user's facial photo to illegally verify, it will threaten the information security of the system. Therefore, the present invention considers a liveness verification algorithm based on facial organ movement detection to avoid such problems. The traditional image processing method of calculating the number of blinks has low accuracy and long verification time.

[0006] At present, most image recognition research is based on feature extraction algorithms of deep convolutional neural networks, and deep learning training requires large-scale training data sets as support. However, when users register their faces and voiceprints, it is unrealistic to collect a large amount of face and voiceprint information, and it will waste a lot of user time. At this time, the present invention introduces a transfer learning algorithm to solve this problem, applying the prior knowledge learned from the public face and voiceprint data to the small-scale data set registered by the user, thereby improving the training starting point of the network model and the accuracy of the recognition model.

[0007] Currently, face and voiceprint recognition mostly use a single network model. Since the application of convolutional neural network models, all deep CNN models have different structural improvements. Being able to integrate the results of multiple network models will achieve better recognition results. Therefore, it is possible to consider improving the generalization ability of the recognition model by training multiple different network models and integrating their prediction results.

[0008] Patent document CN109657661A (application number: 201910133404.0) discloses a dual-factor identity authentication system of voiceprint recognition and face recognition, which is provided with a voice recording module, the voice recording module is connected to a voiceprint feature extraction module, the voiceprint feature extraction module is connected to a voiceprint modeling module, the voice recording module, the voiceprint feature extraction module, and the voiceprint modeling module are simultaneously connected to a voiceprint authentication module; the facial extraction module is connected to a facial key point calibration module, the facial key point calibration module is connected to a face modeling module, the facial extraction module, the facial key point calibration module, and the face modeling module are simultaneously connected to a face authentication module, and the voiceprint authentication module and the face authentication module are simultaneously connected to an execution module. Summary of the invention

[0009] In view of the defects in the prior art, the object of the present invention is to provide a face and voiceprint authentication system and method based on deep transfer learning.

[0010] The face and voiceprint authentication system based on deep transfer learning provided by the present invention includes:

[0011] Collection module: collects face and voiceprint data, and builds face and voiceprint data sets;

[0012] Core algorithm layer module: including data preprocessing algorithm, user liveness detection algorithm and convolutional neural network model integration algorithm. It builds deep convolutional neural network model, integrates transfer learning algorithm and trains convolutional neural network model according to face and voiceprint data sets to obtain authentication results.

[0013] Data and model storage module: stores face data sets and voiceprint data sets, as well as face recognition models and voiceprint recognition models trained by network models;

[0014] Feedback module: returns the authentication result to the front-end interface and performs face and voiceprint authentication to log in the user.

[0015] Preferably, the collection and construction of the face and voiceprint data sets include: completing when the system user registers, using a camera and a microphone to collect face and voiceprint data.

[0016] Preferably, the voiceprint data is converted from sound to image, and the voiceprint data is converted into spectrogram data and stored in the data layer, including: first reading the audio in a string format, then converting the string into an int format, and finally normalizing the wave amplitude and drawing the wave spectrogram.

[0017] Preferably, the data preprocessing algorithm performs data expansion and enhancement on the face data and performs denoising and enhancement on the voiceprint data;

[0018] The user liveness detection algorithm is completed using a dynamic facial capture algorithm;

[0019] The construction of the deep convolutional neural network model includes: building network models with different network structures to learn the facial and voiceprint features of the user; the network models include: VGG, Inception-v3, ResNet and DenseNet;

[0020] The integration of the transfer learning algorithm includes: performing transfer learning based on prior knowledge to improve the training starting point and training accuracy;

[0021] The training of the convolutional neural network model is completed by using an optimization algorithm and a variable learning rate to obtain a training result;

[0022] The model integration algorithm of the convolutional neural network integrates the training results according to the weighted method to obtain the authentication results and perform decision identification.

[0023] Preferably, the noise spectrum estimation value calculated when there is no speech is used to represent the spectrum with speech noise, and is subtracted from the noise spectrum to obtain the estimated value of the speech spectrum. Assume that the time series of the speech signal is x(n), and the i-th frame speech signal after windowing and framing is x i (m), frame length is N, speech signal X i (m) is obtained after discrete Fourier transform i (k), the duration of the noise segment is IS, and the corresponding number of frames is NIS, then the average energy value of the noise segment is:

[0024]

[0025] The denoised and enhanced speech is the original speech with the noise component removed. The expression is:

[0026]

[0027] a and b are both constants, a is the over-subtraction factor, b is the gain compensation factor, and the speech signal after noise removal in the frequency domain is subjected to inverse fast Fourier transform IFFT to obtain a speech sequence in the time domain.

[0028] Preferably, the user liveness detection algorithm uses the eye aspect ratio EAR and the mouth aspect ratio MAR to detect eye and mouth movements, including: firstly detecting facial feature points, locating six key points P1, P2, P3, P4, P5 and P6 of the eyes and mouth, and obtaining a mathematical formula reflecting the relationship between the eye and mouth feature points, namely, the eye aspect ratio EAR and the mouth aspect ratio MAR, which are expressed as:

[0029]

[0030] The numerator is the distance between the vertical eye-mouth landmarks, and the denominator is the distance between the horizontal eye-mouth landmarks.

[0031] Preferably, during the training process of the convolutional neural network model, the face and voiceprint data are forward propagated from front to back, and the output error is back propagated from back to front to adjust the parameters of each network layer. Suppose the output value of each neural node i is 0 i , the connection weight is W ij , the bias value is θ j , W ij and θ j belongs to [-1,1], then the input value of each node of the network is:

[0032] I j =∑ i w ij o i +θ j

[0033]

[0034] If the actual output is inconsistent with the expected output, the face and voiceprint data enter the back propagation process. Back propagation starts from the last layer, and the calculated error is back propagated layer by layer from back to front to adjust the network parameters. The error of the output layer is:

[0035] E j =O j (1-O j )(T j -O j )

[0036] Among them, O j is the output value of node j, T j is the output result of the network;

[0037] The hidden layer error in the middle is:

[0038] E j =O j (1-O j )∑ k Ek W jk

[0039] Among them, W jk is the weight connecting node j and node k, E k is the error rate of k nodes;

[0040] The error rate is used to adjust the connection parameter value so that the error decreases along the gradient direction. The weight update is as follows:

[0041] ΔW ij =λE j O i

[0042] W ij =W ij +ΔW ij

[0043] Where λ represents the learning rate;

[0044] The gradient g t The average value of Gradient g t The mean of the squares is set to Then the training parameter θ is updated as:

[0045]

[0046] Here, ε is set to 10 -8 ; η represents the learning rate; subscript t represents time, θ t represents the parameters to be trained at time t before updating; θ t+1 Represents the updated parameters to be trained at time t+1;

[0047] Suppose there are N network models to be trained, x is the test sample, and the prediction results s of N C-dimensional vectors are obtained. i , the weighted method introduces the weight w i It is used to indicate the influence of the deep network framework on the prediction results. The final prediction results are:

[0048]

[0049] The face and voiceprint authentication method based on deep transfer learning provided by the present invention includes:

[0050] Collection steps: Collect face and voiceprint data, and build face and voiceprint datasets;

[0051] Training steps: including data preprocessing algorithm, user liveness detection algorithm and convolutional neural network model integration algorithm. Based on the face and voiceprint data sets, the deep convolutional neural network model is constructed, the transfer learning algorithm is integrated and the convolutional neural network model is trained to obtain the authentication result.

[0052] Data and model storage step: store face data sets and voiceprint data sets, as well as store face recognition models and voiceprint recognition models after network model training;

[0053] Feedback step: Return the authentication result to the front-end interface and display it.

[0054] Preferably, the collection and construction of the face and voiceprint data sets include: completing when the system user registers, using a camera and a microphone to collect face and voiceprint data;

[0055] The feedback module includes: returning the authentication result and using it for user login.

[0056] Preferably, the voiceprint data is converted from sound to image, and the voiceprint data is converted into spectrogram data and stored in the data layer, including: first reading the audio in a string format, then converting the string into an int format, and finally normalizing the wave amplitude and drawing the wave spectrogram.

[0057] Compared with the prior art, the present invention has the following beneficial effects:

[0058] 1. The present invention applies face recognition and voiceprint recognition to the system verification process. Users do not need to enter usernames and passwords, making the system login process simpler. Users do not need to worry about problems caused by usernames and passwords being stolen or forgotten, greatly improving the user's login experience.

[0059] 2. The present invention combines face recognition and voiceprint recognition, adopts double insurance to ensure the uniqueness of the user, and can better improve the security of system authentication.

[0060] 3. The present invention converts the sound signal into spectrum image data through MFCC features, which is unified with the face data type. This conversion method integrates the face and voiceprint recognition process. Both face and voiceprint recognition can be completed using convolutional neural network training. The simultaneous execution of the same algorithm improves the algorithm application efficiency, thereby improving the system authentication efficiency.

[0061] 4. The present invention sets up a liveness detection algorithm based on facial action detection, and the aspect ratio detection based on eyes and mouth is simple, effective and easy to implement, which can avoid the risk of illegal users mistakenly logging in using photos and improve the security and confidentiality of the system.

[0062] 5. The present invention combines deep convolutional neural networks with transfer learning algorithms, which can fully learn the prior knowledge obtained from public data sets, thereby improving the training starting point of the network model and the accuracy of the face and voiceprint recognition models.

[0063] 6. The present invention adopts a model integration algorithm based on convolutional neural network, which can make full use of the strengths of different network models. The model integration of convolutional neural network (CNN) can enhance the generalization ability of CNN model and improve the recognition accuracy of face and voiceprint. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0065] Figure 1 This is the overall framework diagram of the face and voiceprint system authentication method based on deep transfer learning;

[0066] Figure 2 This is the overall flow chart of the core algorithm layer;

[0067] Figure 3 Schematic diagram of data enhancement technology for faces;

[0068] Figure 4 Schematic diagram of the six key detection points of eyes and mouth in liveness detection;

[0069] Figure 5 Schematic diagram of the transfer learning process. DETAILED DESCRIPTION

[0070] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0071] Deep learning algorithms can extract high-level, abstract features of images layer by layer. The CNN model is a type of deep learning algorithm. Applying the CNN model to face and voiceprint recognition tasks can automatically extract face and voiceprint image features.

[0072] With the help of transfer learning algorithms, pre-trained models learned from other large data sets can be improved and modified so that they can be reused in related fields, which can greatly alleviate the overfitting problem caused by insufficient data. Transfer learning can solve the problem of small data. When the data source in a specific field is insufficient but related to a certain field, the model built in this field can be migrated and reused.

[0073] Voiceprint recognition, also known as speaker identification, has two categories, namely speaker identification and speaker confirmation. The former is used to determine which of several people said a certain speech segment, which is a "multiple-choice" problem; while the latter is used to confirm whether a certain speech segment was said by a specified person, which is a "one-to-one discrimination" problem. Different tasks and applications will use different voiceprint recognition technologies. Whether it is identification or confirmation, it is necessary to model the speaker's voiceprint first, which is the so-called "training" or "learning" process. The present invention belongs to the problem of speaker identification.

[0074] Through certain means, the user's identity is confirmed. There are many methods of identity authentication, which can basically be divided into: identity authentication based on shared keys, identity authentication based on biological characteristics, and identity authentication based on public key encryption algorithms. The present invention belongs to identity authentication based on biological characteristics.

[0075] Liveness detection is a method to determine the real physiological characteristics of an object in some identity verification scenarios. In face recognition applications, liveness detection can verify whether the user is the real live person through combined actions such as blinking, opening the mouth, shaking the head, and nodding, using technologies such as facial key point positioning and face tracking. It can effectively resist common attack methods such as photos, face swapping, masks, occlusion, and screen reshoots, thereby helping users identify fraudulent behavior and protecting their interests.

[0076] Different deep network frameworks have their own structural improvements, so fusing the recognition results of multiple models is conducive to improving the recognition rate of face and voiceprint images. CNN model integration trains multiple network models and synthesizes their prediction results. This method can improve the generalization ability of CNN models. Among the model integration methods, there are two commonly used integration algorithms: direct averaging and weighted averaging.

[0077] The present invention discloses a face and voiceprint system authentication method based on deep transfer learning. Figure 1 As shown in the figure, the authentication framework of the system includes: the user end collects and builds face and voiceprint image data sets, and returns verification results; the core algorithm layer includes six modules: data preprocessing algorithm, user liveness detection algorithm verification, construction of deep convolutional neural network model, fusion of transfer learning algorithm, training of convolutional neural network model, and model integration algorithm of convolutional neural network. The data and model storage end includes the storage of face data sets and voiceprint data sets, as well as the storage of face recognition models and voiceprint recognition models after network model training.

[0078] The collection and construction of face and voiceprint image data sets need to be completed when the system user registers. The user uses a camera and microphone to collect the sound data. The collected sound data needs to be converted into spectral image data for subsequent training. The data preprocessing algorithm is used for data expansion and enhancement of face data and denoising and enhancement of voiceprint data. The user liveness detection algorithm is completed using a dynamic facial capture algorithm to avoid false user login caused by users using photos. The construction of the deep convolutional neural network model is to build four network models with different network structures to learn the user's facial and voiceprint features. The fusion of transfer learning algorithms can make full use of prior knowledge in other tasks for transfer learning to achieve the problem of improving the training starting point and training accuracy. The training of the convolutional neural network model is completed using an optimization algorithm and a variable learning rate to achieve the purpose of fine tuning. The model integration algorithm of the convolutional neural network integrates the training results of the above four networks to achieve the purpose of decision recognition. The verification result return module returns the authentication result after model integration and uses it for user login.

[0079] The collection and construction of face and voiceprint image data sets need to be completed through cameras and microphones. After the user submits the registration application, the background requests to call the camera and microphone to complete the dynamic collection work. Different from the face data collection work, after completing the voiceprint data collection work, the sound-image conversion process is required to convert the voiceprint information into spectrogram information and store it in the data layer. In this process, first read the audio in string format, then convert the string into int format, and finally perform wave amplitude normalization and wave spectrogram drawing.

[0080] The overall process of the core algorithm layer is as follows Figure 2 As shown. The present invention first performs data expansion technology and spectral subtraction denoising technology on the collected original face and voiceprint data sets to perform image enhancement, which can improve the generalization ability of the model and improve the recognition accuracy at the data level. The face and voiceprint data sets after data enhancement will be used to train the deep network model. When training the face and voiceprint models, public face and voiceprint data sets can be used to train pre-trained models with prior knowledge. Using these pre-trained models, the face and voiceprint data sets are used to execute transfer learning algorithms on four different network frameworks to adjust the network parameters until the final user face and voiceprint recognition model is obtained. Finally, these four networks are used to integrate the model. The model integration of the present invention adopts a weighted method to give weights to different network models respectively, and the integrated model is used for user face and voiceprint identity authentication.

[0081] Data preprocessing algorithms include face data enhancement and expansion and voice data denoising and enhancement. The enhancement technology for face data is mainly used in deep learning algorithms. As the number of layers of convolutional neural networks increases, the amount of training samples required also gradually increases. When the face data is small, overfitting will occur. At this time, data enhancement technology can be used to expand the face data set. The premise of data enhancement is that the CNN model is invariant. Figure 3 As shown in the figure, even if the face to be recognized is shifted (translation), changes in viewpoint (viewpoint), changes in size (size), lighting and brightness (illumination), the convolutional network model can stably distinguish this face. In practical applications, we collect limited face scenes, but in fact we need the CNN model to recognize face pictures with different scenes and viewpoints. Therefore, we need to make slight adjustments to the existing face data to adapt to multiple situations.

[0082] The spectral subtraction algorithm uses the characteristics that additive noise is unrelated to speech. The spectral subtraction algorithm is simple, has a small amount of calculation, can achieve fast processing, and can obtain a higher output signal-to-noise ratio. Assuming that the noise statistics are stable, the noise spectrum estimate calculated when there is no speech is used to represent the spectrum with speech noise, and it is subtracted from the noise spectrum to obtain the estimated value of the speech spectrum. Assuming that the time series of the speech signal is x(n), the i-th frame speech signal after windowing and framing is Xi(m), the frame length is N, and the speech signal Xi(m) is Xi(k) after DFT (transformed to the frequency domain). Then the amplitude and phase angle components are obtained for subsequent calculations. These two sets of values ​​must be saved in the spectral subtraction. It is known that the duration of the speech-free gap segment (noise segment) is IS, and the corresponding number of frames is NIS. The average energy value of the noise segment is:

[0083]

[0084] The denoised and enhanced speech is the original speech with the noise component removed:

[0085]

[0086] a and b are both constants, a is the over-subtraction factor, and b is the gain compensation factor. At this point, the speech signal after noise removal in the frequency domain has been obtained, and finally the speech sequence in the time domain can be obtained through the inverse fast Fourier transform (IFFT). Since the speech signal phase is not sensitive, the phase angle can be directly used in the speech signal after spectral subtraction without processing.

[0087] The user liveness detection algorithm verifies whether the user's real identity is live, avoiding the risk of illegal users stealing photos to log in. The present invention will calculate the blinking and mouth opening movements in the video stream based on facial feature detection. The present invention uses two important parameters, eye aspect ratio (EAR) and mouth aspect ratio (MAR), to detect eye and mouth movements. To use this method, the facial feature points must first be detected, such as Figure 4 As shown, six key points P1, P2, P3, P4, P5, and P6 of the eyes and mouth are located. At this point, the mathematical formula reflecting the relationship between the feature points of the eyes and mouth can be obtained, namely the eye aspect ratio (EAR) and the mouth aspect ratio (MAR):

[0088]

[0089] The numerator of this formula is the distance between vertical eye (mouth) landmarks, and the denominator is the distance between horizontal eye (mouth) landmarks. Because there is only one set of horizontal points, but two sets of vertical points, the denominator is weighted. The EAR and MAR parameters remain roughly constant when the eyes and mouth are open, but they drop rapidly to zero when blinking and opening the mouth. Using the EAR and MAR formulas, image processing techniques can be avoided. Only the aspect ratio of the key points of the eye and mouth features needs to be calculated to determine whether a person has blinked and opened his mouth. The method of calculating the aspect ratio of the eyes (EAR) and the aspect ratio of the mouth (MAR) is a simpler and more elegant method, which mainly involves a simple calculation of the distance ratio between the facial feature points based on the eyes and mouth. This method of blinking and opening the mouth detection is fast, effective and easy to implement.

[0090] The construction of the deep convolutional neural network model is to learn the features of face and voiceprint image information later. The present invention can select four CNN frameworks with different structures, namely VGG, Inception-v3, ResNet and DenseNet, to recognize face and voiceprint images. They have different structural characteristics and advantages and disadvantages in structure. The characteristic of the VGG network is that the depth of the network is increased to improve the recognition effect of the image, and multiple small convolution kernels are used instead of large convolution kernels to improve the recognition rate of the network to the image. The Inception-v3 model can be expanded with high computational efficiency and low parameters. On the one hand, a two-dimensional convolution is divided into two one-dimensional convolutions, and on the other hand, the structure of the initial module is optimized. The ResNet model has a deeper network hierarchy and residual connection, and can use residual connection to solve the degradation problem caused by the network being too deep. The DenseNet model adopts a dense connection structure, and any two network layers of the network are interconnected, which facilitates the propagation of features to any subsequent network layer, so that the features extracted by each layer are reused by subsequent network layers. The reason for choosing these four different deep network model architectures is that they each have structural advantages and are good at processing data, providing a training basis for the subsequent model integration process. These classification models are composed of convolutional layers, excitation layers (relu layers), pooling layers, and fully connected layers. The convolutional layer is used to automatically extract various abstract high-level features from face and voiceprint images, and different convolution kernels can be trained to capture different features. The convolutional layer is followed by the relu layer and the pooling layer. The rectified linear unit (ReLU) is used to perform nonlinear mapping on the output:

[0091]

[0092] Where x is the input value. The pooling layer is used to abstract the original feature information and reduce overfitting by reducing the data dimension. The fully connected layer is placed at the end of the neural network model. All nodes are fully connected, which can synthesize all the face and voiceprint features extracted by the previous nodes.

[0093] The fusion of transfer learning algorithms is a key algorithm for face and voiceprint image recognition. Due to the short system registration time and the small number of face and voiceprint collection, the overfitting problem of deep convolutional neural network training will be caused. The more complex the image recognition problem to be solved, the larger the number of face and voiceprint training samples required for training the network model. In the case of limited face and voiceprint image data, the present invention uses the strategy of transfer learning to improve the recognition accuracy. The use of transfer learning models has a higher starting point, and the initial accuracy of the model is much higher before fine-tuning begins. The use of transfer learning models has a higher slope, and the rate of performance improvement is faster during the training process. The use of transfer learning models can also have a higher asymptotic rate, and the network can converge to the optimal value more smoothly than training from scratch. The present invention uses a pre-trained model trained with public data sets in the field of face and voiceprints, and then loads it into 4 different deep CNN frameworks, and migrates it to the user's face and voiceprint recognition problems through fine-tuning of network parameters. That is, a network model with prior knowledge is trained through a large-scale public face and voiceprint dataset, and then the new face and voiceprint data obtained by user registration is used to continue training to adjust the weight parameters in the pre-trained model. Finally, the parameters of the face and voiceprint recognition model will be adapted to the new dataset. This process is as follows Figure 5 As shown in the figure, we can first use the training data in the source task (recognition of public face datasets, public voiceprint datasets, etc.) for learning, and then transfer the parameters of the learned features on the convolutional layer and some fully connected layers so that they can be applied to the learning of the target task (recognition of user faces and voiceprints). At this point, the user face and voiceprint recognition tasks no longer require a large amount of data to be trained from scratch, and most of the models can be transferred and used directly.

[0094] The training of the convolutional neural network model is the process of learning the features of face and voiceprint images. At this time, the network continuously corrects the connection weight parameters between each neuron so that the model can output correct information. During the network training process, the face and voiceprint image information is forward propagated from front to back, and the output error is back propagated from back to front to adjust the parameters of each network layer. Assume that the output value of each neural node i is O i , the connection weight is W ij , the bias value is θ j , W ij and θ j Belongs to [-1,1]. The input value of each node in the network is:

[0095] I j =∑ i w ij o i +θ j

[0096]

[0097] The output of this result means that the forward propagation process is completed. If the actual output is inconsistent with the expected output, the information enters the back propagation process. Back propagation starts from the last layer, and the calculated error is propagated back layer by layer from back to front to adjust the network parameters. The error for the output layer is:

[0098] E j =O j (1-O j )(T j -O j )

[0099] Among them, O j is the output value of node j, T j is the output result of the network. The hidden layer error in the middle is:

[0100] E j =O j (1-O j )∑ k E k W jk

[0101] Among them, W jk is the weight connecting node j and node k, E k is the error rate of the k-node. Finally, the error rate is used to adjust the connection parameter value so that the error decreases along the gradient direction. The weight update is as follows:

[0102] ΔW ij =λE j O i

[0103] W ij =W ij +ΔW ij

[0104] Here, λ represents the learning rate. The present invention uses the Adam optimization algorithm to dynamically adjust the learning rate of the parameters. Each training learning rate has dynamic constraints, and the parameters can be updated more smoothly. t The average value of and the gradient g t The mean of the squares is set to Then the training parameter θ is updated as:

[0105]

[0106] Here, ∈ is set to 10-8. This is the process in which the network trains all face and voiceprint samples once, and then iterates continuously until the training process terminates.

[0107] The purpose of convolutional neural network model integration is to fuse the results of multiple network models so that face and voiceprint recognition can achieve higher recognition accuracy. All deep network models have their own architectural advantages and disadvantages. CNN model integration can train multiple network models and synthesize their prediction results, thereby improving the generalization ability of face and voiceprint recognition models. Therefore, the present invention takes multiple CNN models for model integration for face and voiceprint image recognition tasks. In the model integration method, there are two integration algorithms: direct averaging and weighted averaging. The present invention uses the weighted method to calculate the authentication results. Assume that there are N network models to be trained, x is the test sample, and finally N C-dimensional vector prediction results s are obtained. i The weighted method introduces the weight w i This parameter is used to indicate the degree of influence of the deep network framework on the prediction results. The model with high recognition rate sets the weight parameter higher, and the model with low recognition rate sets the weight parameter slightly lower. The final prediction result is:

[0108]

[0109] The face and voiceprint authentication method based on deep transfer learning provided by the present invention includes:

[0110] Collection steps: Collect face and voiceprint data, and build face and voiceprint datasets;

[0111] Training steps: including data preprocessing algorithm, user liveness detection algorithm and convolutional neural network model integration algorithm. Based on the face and voiceprint data sets, the deep convolutional neural network model is constructed, the transfer learning algorithm is integrated and the convolutional neural network model is trained to obtain the authentication result.

[0112] Data and model storage step: store face data sets and voiceprint data sets, as well as store face recognition models and voiceprint recognition models after network model training;

[0113] Feedback step: Return the authentication result to the front-end interface and perform face and voiceprint authentication to log in the user.

[0114] Those skilled in the art know that, in addition to implementing the system, device and its various modules provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present invention can be considered as a hardware component, and the modules included therein for implementing various programs can also be considered as structures within the hardware component; the modules for implementing various functions can also be considered as both software programs for implementing the method and structures within the hardware component.

[0115] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.

Claims

1. A face and voiceprint authentication system based on deep transfer learning, characterized in that: include: Collection module: collects face and voiceprint data, and builds face and voiceprint data sets; Core algorithm layer module: including data preprocessing algorithm, user liveness detection algorithm and convolutional neural network model integration algorithm. It builds deep convolutional neural network model, integrates transfer learning algorithm and trains convolutional neural network model according to face and voiceprint data sets to obtain authentication results. Data and model storage module: stores face data sets and voiceprint data sets, as well as face recognition models and voiceprint recognition models trained by network models; Feedback module: returns the authentication result to the front-end interface and performs face and voiceprint authentication to log in the user; During the training process of the convolutional neural network model, the face and voiceprint data are forward propagated from front to back, and the output error is back propagated from back to front. The parameters of each network layer are adjusted, and the output value of each neural node i is set to O i , the connection weight is W ij , the bias value is θ j , W ij and θ j belongs to [-1,1], then the input value of each node of the network is: I j =S i W ij The i +θ j If the actual output is inconsistent with the expected output, the face and voiceprint data enter the back propagation process. Back propagation starts from the last layer, and the calculated error is back propagated layer by layer from back to front to adjust the network parameters. The error of the output layer is: AND j =The j (1-O j )(T j -THE j ) Among them, O j is the output value of node j, T j is the output result of the network; The hidden layer error in the middle is: HAVE BEEN j =O j (1-O j )∑ k HAVE BEEN k W jk Among them, W jk is the weight connecting node j and node k, E k is the error rate of k nodes; The error rate is used to adjust the connection parameter value so that the error decreases along the gradient direction. The weight update is as follows: ΔW ij =λE j O i IN ij =In ij +ΔW ij Where λ represents the learning rate; The gradient g t The average value of Gradient g t The mean of the squares is set to Then the training parameter θ is updated as: Here, ε is set to 10 -8 ; η represents the learning rate; subscript t represents time, θ t represents the parameters to be trained at time t before updating; θ t+1 Represents the updated parameters to be trained at time t+1; Suppose there are N network models to be trained, x is the test sample, and the prediction results s of N C-dimensional vectors are obtained. i , the weighted method introduces the weight w i It is used to indicate the influence of the deep network framework on the prediction results. The final prediction results are:

2. The face and voiceprint authentication system based on deep transfer learning according to claim 1, characterized in that: The collection and construction of the face and voiceprint data sets include: completing when the system user registers, using a camera and a microphone to collect face and voiceprint data.

3. The face and voiceprint authentication system based on deep transfer learning according to claim 1, characterized in that: The voiceprint data is converted from sound to image, and the voiceprint data is converted into spectrogram data and stored in the data layer, including: first reading the audio in string format, then converting the string into int format, and finally normalizing the wave amplitude and drawing the wave spectrogram.

4. The face and voiceprint authentication system based on deep transfer learning according to claim 1, characterized in that: The data preprocessing algorithm performs data expansion and enhancement on the face data and performs denoising and enhancement on the voiceprint data; The user liveness detection algorithm is completed using a dynamic facial capture algorithm; The construction of the deep convolutional neural network model includes: building network models with different network structures to learn the facial and voiceprint features of the user; the network models include: VGG model, Inception-v3 model, ResNet and DenseNet model; The integration of the transfer learning algorithm includes: performing transfer learning based on prior knowledge to improve the training starting point and training accuracy; The training of the convolutional neural network model is completed by using an optimization algorithm and a variable learning rate to obtain a training result; The model integration algorithm of the convolutional neural network integrates the training results according to the weighted method to obtain the final result and perform decision recognition.

5. The face and voiceprint authentication system based on deep transfer learning according to claim 1, characterized in that: The noise spectrum estimate calculated when there is no speech is used to represent the spectrum with speech noise. It is subtracted from the noise spectrum to obtain the estimated value of the speech spectrum. Suppose the time series of the speech signal is x(n), and the i-th frame speech signal after windowing and framing is X i (m), frame length is N, speech signal X i (m) is obtained after discrete Fourier transform i (k), the duration of the noise segment is IS, and the corresponding number of frames is NIS, then the average energy value of the noise segment is: The denoised and enhanced speech is the original speech with the noise component removed. The expression is: a and b are both constants, a is the over-subtraction factor, b is the gain compensation factor, and the speech signal after noise removal in the frequency domain is subjected to inverse fast Fourier transform IFFT to obtain a speech sequence in the time domain.

6. The face and voiceprint authentication system based on deep transfer learning according to claim 1, characterized in that: The user liveness detection algorithm uses the eye aspect ratio EAR and the mouth aspect ratio MAR to detect the eye and mouth movements, including: firstly detecting the facial feature points, locating the six key points P1, P2, P3, P4, P5 and P6 of the eyes and mouth, and obtaining a mathematical formula reflecting the relationship between the eye and mouth feature points, namely the eye aspect ratio EAR and the mouth aspect ratio MAR, which are expressed as: The numerator is the distance between the vertical eye-mouth landmarks, and the denominator is the distance between the horizontal eye-mouth landmarks.

7. A face and voiceprint authentication method based on deep transfer learning, characterized in that: include: Collection steps: Collect face and voiceprint data, and build face and voiceprint datasets; Training steps: including data preprocessing algorithm, user liveness detection algorithm and convolutional neural network model integration algorithm. Based on the face and voiceprint data sets, the deep convolutional neural network model is constructed, the transfer learning algorithm is integrated and the convolutional neural network model is trained to obtain the authentication result. Data and model storage step: store face data sets and voiceprint data sets, as well as store face recognition models and voiceprint recognition models after network model training; Feedback step: return the authentication result to the front-end interface and perform face and voiceprint authentication to log in the user; During the training process of the convolutional neural network model, the face and voiceprint data are forward propagated from front to back, and the output error is backward propagated from back to front. The parameters of each network layer are adjusted. The output value of each neural node i is set to O i , the connection weight is W ij , the bias value is θ j , W ij and θ j belongs to [-1,1], then the input value of each node of the network is: AND j =∑ i IN ij ABOUT i +θ j If the actual output is inconsistent with the expected output, the face and voiceprint data enter the back propagation process. Back propagation starts from the last layer, and the calculated error is back propagated layer by layer from back to front to adjust the network parameters. The error of the output layer is: AND j =The j (1-O j )(T j -THE j ) Among them, O j is the output value of node j, T j is the output result of the network; The hidden layer error in the middle is: HAVE BEEN j =O j (1-O j )∑ k HAVE BEEN k W jk Among them, W jk is the weight connecting node j and node k, E k is the error rate of k nodes; The error rate is used to adjust the connection parameter value so that the error decreases along the gradient direction. The weight update is as follows: ΔW ij =λE j O i IN ij =In ij +ΔW ij Where λ represents the learning rate; The gradient g t The average value of Gradient g t The mean of the squares is set to Then the training parameter θ is updated as: Here, ε is set to 10 -8 ; η represents the learning rate; subscript t represents time, θ t represents the parameters to be trained at time t before updating; θ t+1 Represents the updated parameters to be trained at time t+1; Suppose there are N network models to be trained, x is the test sample, and the prediction results s of N C-dimensional vectors are obtained. i , the weighted method introduces the weight w i It is used to indicate the influence of the deep network framework on the prediction results. The final prediction results are:

8. The face and voiceprint authentication method based on deep transfer learning according to claim 7, characterized in that: The collection and construction of the face and voiceprint data sets include: completing when the system user registers, using a camera and a microphone to collect face and voiceprint data.

9. The face and voiceprint authentication method based on deep transfer learning according to claim 7, characterized in that: The voiceprint data is converted from sound to image, and the voiceprint data is converted into spectrogram data and stored in the data layer, including: first reading the audio in string format, then converting the string into int format, and finally normalizing the wave amplitude and drawing the wave spectrogram.