Virtual face identity recognition method and system based on privacy protection
By creating and using virtual faces, the problem of face data information leakage and security risks is solved, and high-security face recognition is achieved. Through virtual face conversion and similarity comparison, data security and identification are ensured. accuracy.
Patent Information
- Application Number
- CN202410499143.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-24
- Publication Date
- 2024-09-06
AI Technical Summary
In the existing technology, information leakage and potential security risks of face data lead to information leakage and security risks when using face verification.
By obtaining the user's real face information, creating and saving a virtual face, deleting the real face information, and performing virtual face conversion and similarity comparison during the face recognition operation, the user's identity is recognized without saving the real face. Face data.
It improves data security, avoids information leakage, and ensures the security of face recognition. Through the use of virtual faces, a standardized collaboration process is formed to facilitate supervision, and the virtual faces and real faces are visually identical. Different and difficult to crack.
Smart Images

Figure CN118606982A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a virtual face identity recognition method and system based on privacy protection. Background Art
[0002] In our daily lives, we often encounter scenarios where face scanning is required, whether it is for transportation, travel accommodation, using bank apps, or browsing various application websites. Faces are often collected as identity verification information. Various websites store facial data, resulting in information leakage and potential security risks. Summary of the invention
[0003] (I) Purpose of the invention
[0004] The present invention aims to solve the shortcomings and difficulties of the prior art, and thus proposes a virtual face identity recognition method and system based on privacy protection to solve the problems of information leakage and potential security risks.
[0005] (II) Technical solution
[0006] To solve the above problems, the first aspect of the present invention provides a virtual face identity recognition method based on privacy protection, comprising:
[0007] Acquire the user's real face information, create a corresponding virtual face based on the real face information and save it;
[0008] After obtaining the virtual face information, deleting the real face information;
[0009] Create and bind user identity information based on the saved virtual face;
[0010] When the user performs a face recognition operation, the collected face information is converted into a virtual face to generate virtual face information to be confirmed;
[0011] The virtual face information to be confirmed is compared with the virtual face information saved by the user for similarity to realize the recognition of the user's identity.
[0012] As a technical solution of the present invention, the step of obtaining the user's real face information, creating and saving a corresponding virtual face according to the real face information includes:
[0013] Extract features from the user's real face information to form a corresponding real feature vector set;
[0014] Performing matrix transformation on the real feature vector set to form a corresponding virtual feature vector set;
[0015] The virtual feature vector set is template-stylized to generate a target virtual human face.
[0016] As a technical solution of the present invention, the real feature vector set is matrix transformed to form a corresponding virtual feature vector set, including adding a time vector in the process of matrix transformation, which is used for legitimacy judgment of the real feature vector set and is discarded when performing the similarity comparison.
[0017] As a technical solution of the present invention, the step of creating and binding user identity information based on the stored virtual face includes:
[0018] Pairing and binding the user's basic identity information with the virtual face, the basic identity information including important information and additional information, the important information including name, ID number, address, and the additional information including physiological layer information;
[0019] The important information is feature extracted and input into a pre-trained text recognition conversion model for conversion to form virtual important information, the converted virtual important information is saved, and the important information is deleted.
[0020] As a technical solution of the present invention, when the user performs a face recognition operation, the collected face information is converted into a virtual face to generate virtual face information to be confirmed, including:
[0021] Extract features from the real face information of the current user to form a corresponding real feature vector set;
[0022] Performing matrix transformation on the real feature vector set to form a corresponding virtual feature vector set to be confirmed;
[0023] The virtual feature vector set to be confirmed is template-stylized to generate a virtual human face to be confirmed.
[0024] As a technical solution of the present invention, when the user performs a face recognition operation, the collected face information is converted into a virtual face to generate virtual face information to be confirmed, including:
[0025] When the target user first creates the corresponding virtual face, the saved virtual face image is fed back to the target user. When the target user performs subsequent identity recognition and verification, the fed-back virtual face image is directly used as identity proof for recognition and verification.
[0026] As a technical solution of the present invention, when the user performs a face recognition operation, the collected face information is converted into a virtual face to generate virtual face information to be confirmed, including the target user performing a virtual face conversion based on his or her own real face picture.
[0027] As a technical solution of the present invention, it also includes:
[0028] Determining a first loss based on the real feature vector set and the virtual feature vector set;
[0029] Inputting the virtual face information into the judgment model and outputting the judgment result;
[0030] Determining a second loss according to the judgment result and the label corresponding to the virtual face information;
[0031] confirming the generated comprehensive loss, which shall be positively correlated with the first loss and the second loss respectively;
[0032] The face images are trained based on the generated comprehensive loss to generate a target virtual face that matches the target user.
[0033] As a technical solution of the present invention, the virtual face information to be confirmed is compared with the virtual face information saved by the user for similarity, so as to realize the recognition of the user's identity, and the calculation is performed according to the following formula:
[0034]
[0035] Where A represents the virtual feature vector to be confirmed, B represents the stored target virtual feature vector, and n represents the dimension.
[0036] The second aspect of the present invention proposes a virtual face identification system based on privacy protection, comprising:
[0037] A first virtual face generation unit, used to obtain the user's real face information, create a corresponding virtual face according to the real face information and save it;
[0038] A privacy module, used to delete the real face information after obtaining the virtual face information;
[0039] An application module, used to create and bind user identity information based on the stored virtual face;
[0040] The second virtual face generating unit is used to convert the collected real face information into a virtual face when the user performs a face recognition operation, and generate virtual face information to be confirmed;
[0041] The virtual face comparison unit is used to compare the virtual face information to be confirmed with the virtual face information saved by the user to achieve similarity recognition of the user's identity.
[0042] The above technical solution of the present invention has the following beneficial technical effects:
[0043] The present invention provides face recognition services by introducing a special face mechanism; in application scenarios where real faces are needed, various application websites obtain virtual faces by calling the virtual face generation interface of the face mechanism; the application website creates and binds identity information through the saved virtual faces; when obtaining virtual faces of unknown identities, the application website determines the identity information of the user by calling the virtual face comparison interface of the face mechanism; the application website only saves the virtual faces and does not need to save the real faces; the collaboration between the face mechanism and various application websites makes the whole process easy to form norms and easy to supervise; the virtual faces and real faces are completely different in the visual sense of the images, and the correlation between them cannot be directly judged and they are difficult to crack; the virtual faces have the same recognizability as the real faces, and meet the identity creation and management based on the virtual faces. In the virtual world of computer networks, individual users can use the virtual face avatars they hold as passes on the network, which greatly improves data security. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a schematic diagram of the process of the present invention;
[0045] Figure 2 This is a schematic diagram of real face verification in the present invention;
[0046] Figure 3 A schematic diagram of virtual face verification in the present invention;
[0047] Figure 4 A schematic diagram of a user applying for a virtual face at a face mechanism in the present invention;
[0048] Figure 5 A schematic diagram of generating a virtual face in the present invention;
[0049] Figure 6 Schematic diagram of the similarity comparison between virtual faces in the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.
[0052] In the embodiments of this specification, a virtual face identification method based on privacy protection is proposed, which can generate a face containing specific identity information and high authenticity virtual face information. In one embodiment, Figure 1 As shown in the figure, the necessary steps involved in realizing identity recognition using virtual faces are:
[0053] The user's real face information is obtained, and a corresponding virtual face is created and saved according to the real face information. After the virtual face information is obtained, the real face information is deleted. The user's identity information is created and bound according to the saved virtual face. When the user performs a face recognition operation, the collected face information is converted into a virtual face to generate virtual face information to be confirmed. The virtual face information to be confirmed is compared with the virtual face information saved by the user for similarity, so as to realize the recognition of the user's identity.
[0054] Next, first combine Figure 2-6 , the above steps of the present invention are specifically introduced. Specifically, the user's real face information is obtained, and a corresponding virtual face is created and saved according to the real face information, including extracting features from the user's real face information to form a corresponding real feature vector set, performing matrix transformation on the real feature vector set to form a corresponding virtual feature vector set, and performing template stylization on the virtual feature vector set to generate a target virtual face.
[0055] The matrix transformation of the real feature vector set to form a corresponding virtual feature vector set includes adding a time vector during the matrix transformation process, which is used as a legitimacy judgment of the real feature vector set and is discarded when performing the similarity comparison, so that the virtual face can be used in the metaverse as an individual identity pass.
[0056] In one embodiment, the user identity information is created and bound based on the saved virtual face, including pairing and binding the user's basic identity information with the virtual face, the basic identity information includes important information and additional information, the important information includes name, ID number, address, and the additional information includes physiological layer information, such as height, gender, etc. Data that will not cause actual personal hazards to the user may not be converted to reduce the loss of computer resources and will be ignored in the following. Feature extraction is performed on the important information, and the pre-trained text recognition conversion model is input for conversion to form virtual important information, the converted virtual important information is saved, and the important information is deleted.
[0057] This part is an extended embodiment of the present invention, and its principle is the same as above, which will not be elaborated here.
[0058] In one embodiment, when a user performs a face recognition operation, the collected real face information is converted into a virtual face to generate virtual face information to be confirmed, including extracting features from the current user's real face information to form a corresponding real feature vector set, performing matrix conversion on the real feature vector set to form a corresponding virtual feature vector set to be confirmed, and template stylizing the virtual feature vector set to be confirmed to generate a virtual face to be confirmed.
[0059] In one embodiment, when a user performs a face recognition operation, the collected face information is converted into a virtual face to generate virtual face information to be confirmed, including when the target user first creates the corresponding virtual face, the saved virtual face image is fed back to the target user, and when the target user performs subsequent identity recognition verification, the fed-back virtual face image is directly used as identity proof for identification verification. It can be understood that the generated virtual face replaces the real face for identification verification, and no real information is required for verification. However, this method has the risk of the virtual face image being stolen. Therefore, when implementing this method, it is necessary to perform encryption verification after inputting the virtual face image (common password input and other methods can be used).
[0060] In one embodiment, when the user performs face recognition operation, the collected face information is converted into a virtual face to generate virtual face information to be confirmed, including the target user performing virtual face conversion based on his or her real face picture. This real-time method is similar to the previous embodiment, and the processing method is similar, so it will not be repeated here.
[0061] In one embodiment, it also includes determining a first loss based on the real feature vector set and the virtual feature vector set, inputting the virtual face information into a judgment model, outputting a judgment result, determining a second loss based on the judgment result and the label corresponding to the virtual face information, confirming a generated comprehensive loss, and the generated comprehensive loss should be positively correlated with the first loss and the second loss respectively. Based on the generated comprehensive loss, the face image is trained to generate a target virtual face that matches the target user.
[0062] The present invention uses the following formula as an example to illustrate the similarity comparison method. The virtual face information to be confirmed is compared with the virtual face information saved by the user to achieve the recognition of the user's identity, and the calculation is performed according to the following formula:
[0063]
[0064] Where A represents the virtual feature vector to be confirmed, B represents the stored target virtual feature vector, and n represents the dimension.
[0065] It is understandable that for two vectors, we can imagine them as two line segments in space, both starting from the origin ([0,0,,…,]) and pointing in different directions. There is an angle between the two line segments. If the angle is 0 degrees, it means that the directions are the same and the line segments overlap; if the angle is 90 degrees, it means that a right angle is formed and the directions are completely different; if the angle is 180 degrees, it means that the directions are exactly opposite. Therefore, we can judge the similarity of vectors by the size of the angle. The smaller the angle, the more similar they are. Taking two-dimensional space as an example, we need to calculate the angle between two vectors a and b. The cosine theorem is used to obtain it. Assuming that vector a is [x1,y1] and vector b is [x2,y2], it has now been proved that this method of calculating cosines also holds for n-dimensional vectors. Assuming that A and B are two n-dimensional vectors, A is [A1,A2,...An], and B is [B1,B2,...Bn], then the similarity can be calculated according to the above formula.
[0066] The second aspect of the present invention proposes a virtual face identification system based on privacy protection, comprising:
[0067] A first virtual face generation unit, used to obtain the user's real face information, create a corresponding virtual face according to the real face information and save it;
[0068] A privacy module, used for (the website) to delete the real face information after obtaining the virtual face information;
[0069] An application module, used to create and bind user identity information based on the stored virtual face;
[0070] The second virtual face generating unit is used to convert the collected real face information into a virtual face when the user performs a face recognition operation, and generate virtual face information to be confirmed;
[0071] The virtual face comparison unit is used to compare the virtual face information to be confirmed with the virtual face information saved by the user to achieve similarity recognition of the user's identity.
[0072] In the present invention, a special face mechanism (including a virtual face generation interface and a virtual face comparison interface) is introduced to provide face recognition services. By introducing a special face recognition mechanism, the identity application subject and the identity recognition subject are distinguished; in application scenarios where real faces are required, various application websites (privacy modules, application modules) obtain virtual faces by calling the virtual face generation interface (unit) of the face mechanism. When the application website obtains a virtual face of an unknown identity, it determines the user's identity information by calling the virtual face comparison interface (unit) of the face mechanism. In the system constructed by the present invention, the face mechanism only provides a virtual face generation interface and a virtual face comparison interface, and there is no need to save the real face, so as to greatly improve data security.
[0073] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments. The above embodiments and descriptions are only preferred examples of the present invention and are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A virtual face identification method based on privacy protection, characterized in that: include: Acquire the user's real face information, create a corresponding virtual face based on the real face information and save it; After obtaining the virtual face information, deleting the real face information; Create and bind user identity information based on the saved virtual face; When the user performs a face recognition operation, the collected face information is converted into a virtual face to generate virtual face information to be confirmed; The virtual face information to be confirmed is compared with the virtual face information saved by the user for similarity to realize the recognition of the user's identity.
2. The method for virtual face identification based on privacy protection according to claim 1, characterized in that: The step of obtaining the user's real face information, creating and saving a corresponding virtual face according to the real face information includes: Extract features from the user's real face information to form a corresponding real feature vector set; Performing matrix transformation on the real feature vector set to form a corresponding virtual feature vector set; The virtual feature vector set is template-stylized to generate a target virtual human face.
3. The method for virtual face identification based on privacy protection according to claim 2, characterized in that: The matrix conversion of the real feature vector set to form a corresponding virtual feature vector set includes adding a time vector in the process of matrix conversion, which is used for legitimacy judgment of the real feature vector set and is discarded when performing the similarity comparison.
4. The method for virtual face identification based on privacy protection according to claim 1, characterized in that: The step of creating and binding user identity information based on the stored virtual face includes: Pairing and binding the user's basic identity information with the virtual face, the basic identity information including important information and additional information, the important information including name, ID number, address, and the additional information including physiological layer information; The important information is feature extracted and input into a pre-trained text recognition conversion model for conversion to form virtual important information, the converted virtual important information is saved, and the important information is deleted.
5. The method for virtual face identification based on privacy protection according to claim 1, characterized in that: When the user performs a face recognition operation, the collected face information is converted into a virtual face to generate virtual face information to be confirmed, including: Extract features from the real face information of the current user to form a corresponding real feature vector set; Performing matrix transformation on the real feature vector set to form a corresponding virtual feature vector set to be confirmed; The virtual feature vector set to be confirmed is template-stylized to generate a virtual human face to be confirmed.
6. The method for virtual face identification based on privacy protection according to claim 1, characterized in that: When the user performs a face recognition operation, the collected face information is converted into a virtual face to generate virtual face information to be confirmed, including: When the target user first creates the corresponding virtual face, the saved virtual face image is fed back to the target user. When the target user performs subsequent identity recognition and verification, the fed-back virtual face image is directly used as identity proof for recognition and verification.
7. The method for virtual face identification based on privacy protection according to claim 1, characterized in that: When the user performs a face recognition operation, the collected face information is converted into a virtual face to generate virtual face information to be confirmed, including the target user performing a virtual face conversion based on his or her own real face picture.
8. The method for virtual face identification based on privacy protection according to claim 2, characterized in that: Also includes: Determining a first loss based on the real feature vector set and the virtual feature vector set; Inputting the virtual face information into the judgment model and outputting the judgment result; Determining a second loss according to the judgment result and the label corresponding to the virtual face information; confirming the generated comprehensive loss, which shall be positively correlated with the first loss and the second loss respectively; The face images are trained based on the generated comprehensive loss to generate a target virtual face that matches the target user.
9. The method for virtual face identification based on privacy protection according to claim 1, characterized in that: The virtual face information to be confirmed is compared with the virtual face information saved by the user for similarity, so as to identify the user's identity, and is calculated according to the following formula: Where A represents the virtual feature vector to be confirmed, B represents the stored target virtual feature vector, and n represents the dimension.
10. A virtual face identification system based on privacy protection, characterized in that: include: A first virtual face generation unit, used to obtain the user's real face information, create a corresponding virtual face according to the real face information and save it; A privacy module, used to delete the real face information after obtaining the virtual face information; An application module, used to create and bind user identity information based on the stored virtual face; The second virtual face generating unit is used to convert the collected real face information into a virtual face when the user performs a face recognition operation, and generate virtual face information to be confirmed; The virtual face comparison unit is used to compare the virtual face information to be confirmed with the virtual face information saved by the user to achieve similarity recognition of the user's identity.
