An identity recognition method based on contrastive learning and multimodal biometrics
By combining multi-modal biometric identification methods with sensor and touch screen data, using deep learning technology and Siamese neural network models, the shortcomings in security and accuracy of existing identity verification methods are solved, achieving high accuracy and adaptability It is suitable for authentication with high security requirements.
Patent Information
- Application Number
- CN202410765642.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-14
AI Technical Summary
Existing identity verification methods are difficult to provide sufficient security in the face of advanced persistent threats and insider threats, and single-modal biometric identification has insufficient accuracy and convenience in practical applications. Traditional pattern recognition methods are ineffective in large-scale data Poor performance in handling.
An identity recognition method based on contrastive learning and multi-modal biometrics is adopted, by combining sensor data and touch screen data, using deep learning technology and Siamese neural network model, combining bidirectional LSTM and bidirectional GRU layers for feature extraction, and calculating cosine distance for identity identification Identify.
It improves the accuracy and security of identity verification, reduces the false recognition rate and missed recognition rate, is highly adaptable, can work effectively in different devices and environments, and is suitable for areas with high security requirements.
Smart Images

Figure CN118349985B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of artificial intelligence algorithms, and in particular relates to an identity recognition method based on contrastive learning and multimodal biometrics. Background Art
[0002] In the digital world, identity authentication is the cornerstone of the security framework, which ensures access control to information and resources. Traditional authentication methods are mainly based on knowledge factors (such as passwords, PIN codes), possession factors (such as smart cards, keys), and biometric factors (such as fingerprints, facial recognition). However, these methods face multiple challenges in real-world applications.
[0003] The knowledge factor is vulnerable to social engineering attacks, such as phishing and guessing attacks, and users may also forget or leak their passwords. The possession factor becomes vulnerable if the device is lost or stolen. Although biometric methods are convenient, they also have many limitations, such as the device's sensors are vulnerable to damage, environmental factors, and the duplication of biometric features. In addition, a single biometric method may not provide sufficient security in all scenarios, such as in some high-security areas such as police systems, defense, and financial services.
[0004] As technology advances, attack methods are also evolving, and traditional authentication systems are often unable to defend against advanced persistent threats (APTs) and internal threats. For example, keyloggers can capture keystroke dynamics and simulate user behavior patterns. Therefore, existing authentication systems require more advanced security mechanisms to improve their robustness.
[0005] In the development of multi-factor authentication (MFA), attempts are made to combine multiple authentication methods to enhance security, but this often comes at the expense of user experience. Users need to remember multiple passwords, carry additional authentication devices, or wait for biometric reading and recognition every time they verify, which greatly affects user convenience.
[0006] In order to overcome the shortcomings of existing technologies, researchers have begun to explore more dynamic and non-intrusive authentication methods. For example, behavioral biometrics is based on the behavioral patterns of users when interacting with devices, such as keystroke rhythm, mouse movements, gestures, etc. These behavioral patterns are user-specific and difficult to imitate and replicate, thus providing a more secure and convenient authentication method.
[0007] However, even dynamic behavioral biometrics are difficult to achieve ideal accuracy if they rely only on data from a single modality. For example, keystroke dynamics may vary depending on the user's mood, physical state, or when using different devices. Similarly, gesture recognition is also affected by multiple factors such as ambient light and device camera quality. Therefore, single-modality authentication systems still have limitations in practical applications.
[0008] In addition, existing technologies usually use traditional pattern recognition and machine learning methods when processing biometric data, which perform poorly in large-scale data processing and complex pattern recognition tasks. Summary of the invention
[0009] Based on the above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide an identity recognition method based on contrastive learning and multimodal biometrics. This method improves the accuracy and security of identity authentication by combining multimodal data such as sensor data and touch screen data and adopting deep learning technology. At the same time, by utilizing the advantages of deep learning in feature engineering, the dependence on expert knowledge is reduced, and the universality and ease of use of the system are improved.
[0010] The specific implementation steps of the identity recognition method based on contrastive learning and multimodal biometrics of the present invention are as follows:
[0011] Step S21: collecting multimodal biometric data, where the collected multimodal biometric data includes sensor data and touch screen data;
[0012] Step S22: preprocessing the collected multimodal biometric data;
[0013] Step S23: sending the pre-processed multimodal data to a pre-trained posture classification model to identify posture labels for the sensor data and touch screen data;
[0014] Step S24: The pre-processed multimodal data is fed into the trained Siamese neural network model, the sensor data is fed into the bidirectional LSTM layer for feature extraction, and the touch screen data is fed into the bidirectional GRU layer for feature extraction; the sensor feature vectors extracted by the bidirectional LSTM layer and the bidirectional GRU layer are and the touch screen feature vector Then it is concatenated into a high-dimensional feature vector , and then the high-dimensional feature vector is transformed through the fully connected layer Perform feature dimensionality reduction;
[0015] Step S25: concatenate the feature vector after dimension reduction with the posture label identified by the posture classification model, extract fusion features through the fully connected layer, and use this fusion feature vector as the feature for subsequent user identity recognition;
[0016] Step S26: Calculate the similarity between the fused feature vector and the user feature vector in the database;
[0017] Step S27: Identify the user identity based on the similarity calculation result.
[0018] The identity recognition method based on contrastive learning and multimodal biometrics proposed in the present invention has the following beneficial technical effects:
[0019] 1. Enhanced security: By combining bidirectional LSTM and bidirectional GRU to perform deep feature extraction on sensor and touch screen data, the present invention can accurately capture the user's behavioral habits and dynamic characteristics, thereby achieving highly personalized identity authentication.
[0020] 2. High accuracy: The present invention uses a neural network model to extract features and calculate cosine distance, thereby reducing the false recognition rate and missed recognition rate during the identity recognition process.
[0021] 3. Adaptability and scalability: Since the invention is designed with the integration and processing of multimodal data in mind, it can be easily adapted to different devices and environments and can be expanded to accommodate new biometric types.
[0022] 4. The present invention can effectively improve the accuracy of identity authentication in police systems and other security-sensitive fields, while protecting user privacy and optimizing user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0024] Figure 1 This is a training flow chart based on contrastive learning model of the present invention.
[0025] Figure 2 This is a flow chart of the identity recognition method based on learning and multimodal biometrics of the present invention. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] The present invention proposes an identity recognition method based on contrastive learning and multimodal biometrics. The method first collects the user's interaction data on the smart device, such as sensor data and touch screen data, through the software SDK code. Then, the Siamese Network contrastive learning model is used for feature extraction and contrastive learning, and the posture classification model is used for posture classification. Finally, the user's identity is identified by comparing the user's feature vector with the feature vector in the database; this method realizes a high-precision and high-security identity authentication process by comprehensively considering the user's multiple biometrics and behavior patterns. The core of the present invention is how to improve the accuracy and stability of identity recognition through contrastive learning and the comprehensive use of multimodal data.
[0028] Combine the following Figure 1-Figure 2 First, the training process of the model based on contrastive learning and the posture classification model is introduced. The model training process includes the following steps:
[0029] Step S11: Collect multimodal biometric data, where the collected multimodal biometric data includes sensor data and touch screen data.
[0030] Deploy the biometric probe SDK on the mobile device to collect multimodal biometric data of the user while using the device. The collected multimodal biometric data includes sensor data and touch screen data; the sensor data includes motion information data captured by the acceleration sensor, direction change data captured by the gyroscope sensor, and gravity change data captured by the gravity sensor; the touch screen data includes the sliding, clicking, and pressing data of the finger on the screen.
[0031] Sensor data includes acceleration sensor data , gyroscope sensor data And gravity sensor data ; Touch screen data includes sliding data , click data And press data .
[0032] This step is the basis of the entire identification process. The collected data will be recorded and marked, laying the foundation for subsequent feature extraction and analysis. The successful implementation of this step depends on accurate data collection technology and effective data marking strategy.
[0033] Step S12: preprocessing the collected multimodal biometric data, including normalization and denoising.
[0034] The normalization process uses a standard batch normalization method to standardize the collected multimodal biometric data to eliminate differences between different devices and ensure data quality.
[0035] The normalized data is filtered to remove noise, for example, using a low-pass filter:
[0036]
[0037] in, is the original input at the current time step, is the output of the previous time step, is the filtered output of the current time step, and is the filter coefficient.
[0038] Step S13: Train the Siamese Network contrast learning model.
[0039] The Siamese Network contrastive learning model of the present invention combines a bidirectional long short-term memory network (Bi-LSTM) and a bidirectional gated recurrent unit (Bi-GRU) to extract features from sensor data and touch screen data, and extract information that can represent the user's identity characteristics, such as sliding speed, acceleration mode, key rhythm, etc. The extracted features need to be able to reflect the user's unique behavior patterns and biometrics, providing a basis for subsequent identity recognition.
[0040] After preprocessing, the collected multimodal biometric data is fed into a bidirectional LSTM layer for feature extraction, and the touch screen data is fed into a bidirectional GRU layer for feature extraction. This allows the model to capture the before-and-after dependencies in the time series data and extract the dynamic patterns of user behavior.
[0041] The bidirectional LSTM network is used to extract features from time series, and its structure is as follows:
[0042]
[0043]
[0044] in, are input features, is the hidden layer state at the current moment, is the hidden layer state at the next moment, is the hidden layer state at the previous moment, , is the weight, is the bias parameter, is the activation function, and the direction of the arrow indicates the forward or reverse direction of time.
[0045] The bidirectional GRU network is used to extract features from touch screen data. The update gate and reset gate are calculated as follows:
[0046]
[0047]
[0048]
[0049]
[0050] in, It is the update gate. It is the reset gate. Represents the candidate hidden state at the current moment, which is based on the current input and the hidden state at the previous moment Calculated, is the output of the current time step, is the weight matrix, represents the sigmoid function, represents the hyperbolic tangent function.
[0051] Sensor feature vector extracted by bidirectional LSTM layer and bidirectional GRU layer and the touch screen feature vector Then it is concatenated into a high-dimensional feature vector , the splicing operation can be expressed as: ,in, and are column vectors with dimensions and ; High-dimensional feature vector The dimension is .
[0052] The high-dimensional feature vector The feature dimension reduction is performed through the fully connected layer (FC layer). As a medium for feature fusion, the fully connected layer maps the high-dimensional feature space into a low-dimensional feature space for more efficient similarity calculation.
[0053] The calculation of dimensionality reduction of the fully connected layer is as follows:
[0054]
[0055] in, The dimension is The real matrix of The dimension is The real matrix of and are the weights and biases of the fully connected layer, is the feature after splicing, for The dimension of is the dimension after dimensionality reduction, is the output of the fully connected layer. The dimension of the feature vector is changed from Reduced to .
[0056] The output of the fully connected layer after dimensionality reduction is sent to the Siamese Network contrastive learning model for training. The model learns the similarities or differences between features by encoding and comparing the input feature pairs. During the training process, the model achieves efficient identity recognition by minimizing the distance between the same user feature pairs and maximizing the distance between different user feature pairs. After training, the user's feature data vector is stored in the database.
[0057] After training the Siamese Network contrastive learning model, a Siamese neural network model that can effectively match user features is obtained.
[0058] Step S14: Pre-training posture classification model.
[0059] After preprocessing, the collected multimodal biometric data is sent to the posture classification model for pre-training. The pre-trained posture classification model uses sensor data and touch screen data with posture labels for posture classification, uses a bidirectional LSTM layer for feature extraction, and obtains classification prediction results through a fully connected layer with softmax. During the pre-training process, the cross entropy loss function is used for model optimization. After pre-training the posture classification model, a posture classification model that can identify posture labels for sensor data and touch screen data is obtained.
[0060] In the identity authentication process of the method based on contrastive learning and multimodal biometrics proposed by the present invention, the new user sensor data and touch screen data will be processed through the same preprocessing steps as the training process, and then input into the trained Siamese neural network model and the trained posture classification model. During the identity recognition process, the distance between the new user feature data and the user feature data stored in the database will be calculated, and whether they are the same user will be determined based on the distance. If the distance is less than the preset threshold, it is identified as a legitimate user; otherwise, it is identified as an illegal user or other user.
[0061] The method for biometric recognition based on contrastive learning and multimodal features proposed in the present invention comprises the following steps:
[0062] Step S21: Collect multimodal biometric data, where the collected multimodal biometric data includes sensor data and touch screen data.
[0063] Deploy the biometric probe SDK on the mobile device to collect multimodal biometric data of the user while using the device. The collected multimodal biometric data includes sensor data and touch screen data; the sensor data includes motion information data captured by the acceleration sensor, direction change data captured by the gyroscope sensor, and gravity change data captured by the gravity sensor; the touch screen data includes the sliding, clicking, and pressing data of the finger on the screen.
[0064] Step S22: pre-processing the collected multimodal biometric data.
[0065] Preprocessing includes normalization and denoising, and the preprocessing method is the same as the preprocessing method in the model training process.
[0066] Step S23: sending the pre-processed multimodal data to a pre-trained posture classification model to identify posture labels for the sensor data and touch screen data.
[0067] Step S24: The pre-processed multimodal data is fed into the trained Siamese neural network model, the sensor data is fed into the bidirectional LSTM layer for feature extraction, and the touch screen data is fed into the bidirectional GRU layer for feature extraction; the sensor feature vectors extracted by the bidirectional LSTM layer and the bidirectional GRU layer are and the touch screen feature vector Then it is concatenated into a high-dimensional feature vector , and then the high-dimensional feature vector is transformed through the fully connected layer Perform feature dimensionality reduction. The methods of feature extraction, feature concatenation and feature dimensionality reduction are the same as those in the model training process.
[0068] Step S25: concatenate the feature vector after dimension reduction with the posture label identified by the posture classification model, extract fusion features through the fully connected layer, and use this fusion feature vector as the feature for subsequent user identity recognition.
[0069] Step S26: Calculate the similarity between the fused feature vector and the user feature vector in the database.
[0070] After the fully connected layer is mapped, the cosine distance metric is used to evaluate the similarity between feature vectors. Cosine distance can evaluate the similarity between two vectors in direction without being affected by the length of the vector, and is suitable for feature matching.
[0071] The similarity between two feature vectors is calculated by cosine similarity, and the calculation formula is as follows:
[0072]
[0073] in, and are the feature vectors to be compared, the dot product represents the inner product of the vectors, and the denominator is the L2 norm of the two vectors. The obtained similarity score is compared with the preset threshold to determine whether the user identity is the user himself. The threshold value can be adjusted according to the actual application scenario. A larger threshold represents higher security, which usually makes the model have a lower recall rate.
[0074] Step S27: Identify the user identity based on the similarity calculation result.
[0075] Based on the similarity calculation results of the cosine distance, the system will determine whether the input user feature vector matches the feature vector of known users in the database. If the similarity exceeds the preset threshold, it is considered an illegal user or a non-target user; if the similarity is less than or equal to the threshold, it is considered a legitimate user.
[0076] The present invention provides a powerful and flexible framework for performing accurate identity recognition tasks through multi-stage feature extraction and identity recognition, thereby improving the security and reliability of the entire system.
[0077] In order to improve the stability and adaptability of the recognition system, the present invention also introduces a continuous verification and dynamic adjustment mechanism. The system will continuously collect new data during the user's use and perform real-time identity verification. Once the identity verification result is found to be an illegal user or a non-target user, the system will trigger an alarm or re-verification mechanism. At the same time, the system can dynamically adjust the model parameters according to the new verification results to adapt to possible changes in user behavior.
[0078] In addition, the system will output the verification results and provide them to the application layer. If the user passes the identity authentication, they will be granted the corresponding access rights; if not, the system may require the user to perform a secondary verification or deny access. In addition, the system will collect user feedback to further optimize the identity identification process.
[0079] The identity recognition method based on contrastive learning and multimodal biometrics proposed in the present invention is more difficult to imitate and copy than the traditional identity recognition method that relies on single modal data, and the verification process is more seamless, so it has higher accuracy, security and convenience. Based on the method proposed in the present invention, an identity recognition method suitable for fields with high security requirements can be realized.
[0080] It is to be understood that the present invention is described by some embodiments, and it is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application are within the scope of protection of the present invention.
Claims
1. An identity recognition method based on contrastive learning and multimodal biometrics, It is characterized in that The steps include: Step S21: collecting multimodal biometric data, where the collected multimodal biometric data includes sensor data and touch screen data; Step S22: preprocessing the collected multimodal biometric data; Step S23: sending the pre-processed multimodal data to a pre-trained posture classification model to identify posture labels for the sensor data and touch screen data; Step S24: the preprocessed multimodal data is fed into the trained Siamese neural network model, the sensor data is fed into the bidirectional LSTM layer for feature extraction, and the touch screen data is fed into the bidirectional GRU layer for feature extraction; the sensor feature vector a and the touch screen feature vector b extracted by the bidirectional LSTM layer and the bidirectional GRU layer are then concatenated into a high-dimensional feature vector c, and then the high-dimensional feature vector c is subjected to feature dimensionality reduction through a fully connected layer; Step S25: concatenate the feature vector after dimension reduction with the posture label identified by the posture classification model, extract fusion features through the fully connected layer, and use this fusion feature vector as the feature for subsequent user identity recognition; Step S26: Calculate the similarity between the fused feature vector and the user feature vector in the database; Step S27: Identify the user identity based on the similarity calculation result; Specifically, the bidirectional LSTM layer feature extraction is used to extract features in the time series, and its structure is as follows: Among them, x t is the input feature, h t is the hidden layer state at the current moment, h t+1 is the hidden layer state at the next moment, h t-1 is the hidden layer state at the previous moment, W xh , W hh is the weight, b h is the bias parameter, f is the activation function, and the direction of the arrow indicates the forward or reverse direction of time; The bidirectional GRU layer feature extraction is used to extract features from touch screen data. The update gate and reset gate are calculated as follows: z t =σ(W z ·[h t-1 ,x t ]) r t =σ(W r ·[h t-1 ,x t ]) Among them, z t It is the update gate. Represents the candidate hidden state at the current moment, which is based on the current input x t and the hidden state h at the previous moment t-1 The calculated value, r t is the reset gate, h t is the output of the current time step, x t is the input, W,W z ,W r is the weight matrix, σ represents the sigmoid function, and tanh represents the hyperbolic tangent function; The sensor feature vector a and the touch screen feature vector b extracted by the bidirectional LSTM layer and the bidirectional GRU layer are then concatenated into a high-dimensional feature vector c, and then the high-dimensional feature vector c is subjected to feature dimensionality reduction by the fully connected layer, including the following steps: The sensor feature vector a and the touch screen feature vector b extracted by the bidirectional LSTM layer and the bidirectional GRU layer are then concatenated into a high-dimensional feature vector c. The concatenation operation can be expressed as: Among them, a and b are column vectors with dimensions d a and d b ; The dimension of the high-dimensional feature vector c is d a +d b ; The high-dimensional feature vector c is passed through the fully connected layer for feature dimensionality reduction; the fully connected layer acts as a medium for feature fusion, mapping the high-dimensional feature space to a low-dimensional feature space. The calculation of dimensionality reduction of the fully connected layer is as follows: o t =W o ·c+b o Among them, W o The dimension is d ′ ×(d a +d b ), b o The dimension is d ′ ×1 real matrix, W o and b o are the weights and biases of the fully connected layer, c is the concatenated features, d a +d b is the dimension of c, d ′ is the dimension after dimensionality reduction, o t is the output of the fully connected layer, through which the dimension of the feature vector is increased from d a +d b Downgraded to d ′ .
2. The identity recognition method based on contrastive learning and multimodal biometrics according to claim 1, It is characterized in that During identity recognition, if the similarity exceeds the preset threshold, the user is considered to be an illegal user or a non-target user; if the similarity is less than or equal to the threshold, the user is considered to be a legitimate user.
3. The identity recognition method based on contrastive learning and multimodal biometrics according to claim 1, It is characterized in that After identification, the following operations are performed: New data is continuously collected during user use, and real-time identity authentication is performed. Once the identity authentication result is found to be an illegal user or a non-target user, the system will trigger an alarm or re-verification mechanism; at the same time, the system dynamically adjusts the model parameters according to the new verification results to adapt to changes in user behavior.
4. The identity recognition method based on contrastive learning and multimodal biometrics according to claim 3, It is characterized in that After identification, the following operations are performed: Output the authentication result and provide it to the application layer; if the user passes the authentication, he / she is granted the corresponding access rights; if the user fails the authentication, the user is required to perform secondary authentication or access is denied.
5. The identity recognition method based on contrastive learning and multimodal biometrics according to claim 1, It is characterized in that Preprocessing includes normalization and denoising; normalization uses the standard batch normalization method, and denoising uses a low-pass filter: out t =β·in t +(1-β)·out t-1 Among them, t is the original input of the current time step, out t-1 is the output of the previous time step, out t is the filtered output at the current time step, and β is the filter coefficient.
6. The identity recognition method based on contrastive learning and multimodal biometrics according to claim 1, It is characterized in that The similarity calculation is achieved through the following steps: The similarity between two feature vectors is calculated by cosine similarity, and the calculation formula is as follows: Among them, t1 and t2 are the eigenvectors to be compared, the dot product represents the vector inner product, and the denominator is the L2 norm of the two vectors.
