A cross-modal infrared polarization face recognition method based on codec
Through the cross-modal infrared polarization face recognition method based on the codec, the visible light and infrared polarization face images are combined to generate identity features and modal features, which solves the problem of difficulty in face recognition under insufficient light and realizes the problem of face illumination at night. Fast and accurate face recognition under insufficient conditions, suitable for business, security and legal fields.
Patent Information
- Application Number
- CN202210259369.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-16
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-03-16
AI Technical Summary
Existing face recognition technology is greatly affected by illumination changes under insufficient illumination conditions, and it is difficult to effectively identify facial features, especially at night when there is insufficient illumination.
Using a codec-based cross-modal infrared polarization face recognition method, by combining visible light and infrared polarization face images, the codec structure is trained, identity features and modal features are generated, and feature similarity loss functions and reconstructions are constructed Loss function to realize the recognition of infrared polarized face images.
It improves the speed and accuracy of face recognition and enables faster and more effective identity recognition through infrared polarized face images under insufficient lighting conditions. It is suitable for business, security and legal applications.
Smart Images

Figure CN114694214B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of image recognition, and in particular relates to a cross-modal infrared polarization face recognition method based on a codec. Background Art
[0002] The task of face recognition is to enable computers to determine a person's identity based on face data. By processing and analyzing face data, essential features that reflect a person's identity are extracted, thereby establishing a connection between features and identity. After years of development, a variety of face recognition technologies have made great progress, but in practical applications they are still affected by many factors, such as changes in lighting and posture. Therefore, cross-modal face recognition will become a research hotspot in the field of face recognition.
[0003] In the case of insufficient light at night, infrared can be used to obtain thermal radiation images of the face. Since polarization images can reflect information about the surface features of objects, such as depth, shadow, and shape, more effective contour information and facial depth information can be obtained in polarized face images, which can better cope with the impact of posture changes on face recognition. To address the above problems, a cross-modal infrared polarization face recognition method based on codec is proposed using face images based on the combination of visible light and infrared polarization. Infrared polarization face cross-modal recognition can improve the speed and accuracy of face recognition, which is of great significance in business, security, and law enforcement. Summary of the invention
[0004] The purpose of the present invention is to provide a cross-modal infrared polarization face recognition method based on codec to solve the problem of face recognition under insufficient lighting conditions.
[0005] The technical solution of the present invention is a cross-modal infrared polarization face recognition method based on a codec, which recognizes infrared polarization face images, including the following contents:
[0006] Step S1: In the training phase, each face image in the visible light face database and the infrared polarization face database is used to train the codec structure:
[0007] The encoder encodes each face image into a set of identity features and modality features, and the decoder recombines and decodes each set of identity features and modality features to regenerate the corresponding face image;
[0008] Step S2, constructing a feature similarity loss function and a reconstruction loss function, and constraining the codec structure;
[0009] Step S3: In the testing phase, the codec trained in steps S1 and S2 is used to encode the visible light face images in the visible light face database one by one and generate the database identity feature idF base , encode the infrared polarized face image to be identified to generate the identity feature idF x , calculate the identity feature idF to be identified x and database identity feature idF base The cosine similarity of is taken, and the maximum similarity is taken to match the corresponding face identity.
[0010] Furthermore, the specific content of step S1 is:
[0011] Let the visible light face database be Vis base = {Vis1, Vis2...Vis n} and infrared polarization face database for Polar base = {Polar1, Polar2...Polar n};
[0012] Where n represents faces of different identities i∈[1,n], each person with the same identity contains m face data, and faces of the same identity in different modalities are denoted as j∈[1,m]. Each face image in the visible light face database is denoted as Vis i,j , each face image in the infrared polarization face database is denoted as Polar i,j , i represents face data of different identities, j represents face data of the same identity but different postures;
[0013] In the encoding stage of the training process, the visible light face images Vis are selected one by one. p,q Input the encoder and get multiple sets of visible light identity features idF p and visible light modal feature modeF vis , and then the infrared polarized face images Polar s,t Input the encoder and get multiple sets of identity features idF s and infrared polarization modal characteristics modeF polar ;
[0014] In the decoding stage of the training process, the visible light identity feature idF p and infrared polarization modal characteristics modeF polar Combined with the encoder input to synthesize infrared polarization face data VPolar p,t , the infrared polarization identity feature idF of the same identity and the same mode s and visible light modal feature modeF visCombined with the synthesized visible light face data PVis as the input of the encoder s,q .
[0015] Furthermore, in step S2, the method for constructing the codec network similarity loss function is:
[0016]
[0017] Among them, reshape means straightening the feature into a one-dimensional vector, cos similar Indicates the calculation of cosine similarity:
[0018]
[0019] a and b are the one-dimensional vectors after reshape in formula (1) reshape(idF p ) and reshape(idF s );
[0020] The method to construct the encoder-decoder network reconstruction loss function is:
[0021] Loss reconstruction =||VPolar p,t -Polar p,t ||2+||PVis s,q -Vis s,q ||2 (3),
[0022] The final loss function of the network is Loss = Loss similar +Loss reconstruction .
[0023] Furthermore, in step S3, the method for identifying the infrared polarized face image to be identified is:
[0024] Input the infrared polarized face image Polar to be identified into the encoder Encoder trained in step S1 and step S2 to obtain the identity feature idF x , send the face images in the visible light database to the encoder one by one to obtain the identity features {idF1, idF2...idF n}, calculate the face similarity between the infrared polarized face identity feature to be identified and the visible light face database identity feature {score1, score2...score n}, select the face identity with the maximum matching value for matching
[0025] The beneficial effect of the present invention is: the present invention utilizes the fusion of visible light facial image features and infrared polarization facial image features to solve the problem of facial recognition under insufficient lighting conditions. The infrared polarization facial image itself contains infrared polarization information, so that the infrared polarization information contained in the face can be obtained through the infrared polarization facial image under insufficient lighting conditions, thereby achieving the purpose of more rapid and effective identity recognition of facial images, which is helpful for subsequent applications in business, security, and law. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 Infrared image of facial features under insufficient lighting conditions;
[0027] Figure 2 In order to adopt the cross-modal infrared polarization face recognition method based on codec of the present invention, Figure 1 Infrared polarization images obtained from facial features under the same conditions. DETAILED DESCRIPTION
[0028] The present invention is described in detail with reference to the following specific embodiments.
[0029] The present invention provides a cross-modal infrared polarization face recognition method based on a codec, which is processed according to the following steps:
[0030] S1. In the training phase, the codec structure is trained using the face images in the visible light face database and the infrared polarization face database:
[0031] The encoder encodes each face image into a set of identity features and modality features, and the decoder recombines and decodes each set of identity features and modality features to regenerate the corresponding face image;
[0032] S2. Construct feature similarity loss function Loss similar And reconstruction loss function Loss reconstruction Put constraints on the encoder-decoder network.
[0033] S3. In the testing phase, the codec trained in steps S1 and S2 is used to encode the visible light face images in the visible light face database one by one and generate the database identity feature idF base , idF base ={idF1, idF2...idF n}, encode the infrared polarized face image to be identified to generate the identity feature idF x , calculate the identity feature idF to be identified x and database identity feature idF base The cosine similarity of is taken, and the maximum similarity is taken to match the corresponding face identity.
[0034] In some embodiments, the specific content of step S1 is:
[0035] Let the visible light face database be Vis base = {Vis1, Vis2...Vis n} and infrared polarization face database for Polar base = {Polar1, Polar2...Polar n};
[0036] Where n represents faces of different identities i∈[1,n], each person with the same identity contains m face data, and faces of the same identity in different modalities are denoted as j∈[1,m]. Each face image in the visible light face database is denoted as Vis i,j , each face image in the infrared polarization face database is denoted as Polar i,j , i represents face data of different identities, and j represents face data of the same identity but different postures.
[0037] Randomly select from the visible light face database Vis base and infrared polarization face database Polar base The network consists of an encoder and a decoder, and the main parts use the VGG-16 infrastructure. The encoder encodes the input face data into two features: identity feature idF and modality feature modeF. The decoder decodes the identity feature idF and modality feature modeF to reconstruct the face image.
[0038] In the encoding stage of the training process, the visible light face images Vis are selected one by one. p,q Input the encoder and get multiple sets of visible light identity features idF p and visible light modal feature modeF vis , and then the infrared polarized face images Polar s,t Input the encoder and get multiple sets of identity features idF s and infrared polarization modal characteristics modeF polar ;
[0039] In the decoding stage of the training process, the visible light identity feature idF p and infrared polarization modal characteristics modeF polar Combined with the encoder input to synthesize infrared polarization face data VPolar p,t , the infrared polarization identity feature idF of the same identity and the same mode s and visible light modal feature modeF visCombined with the synthesized visible light face data PVis as the input of the encoder s,q .
[0040] In some embodiments, in step S2, the method for constructing the codec network similarity loss function is:
[0041]
[0042] Reshape means straightening the feature into a one-dimensional vector, cos similar Indicates the calculation of cosine similarity:
[0043]
[0044] a and b are the one-dimensional vectors after reshape in formula (1) reshape(idF p ) and reshape(idF s );
[0045] The method to construct the encoder-decoder network reconstruction loss function is:
[0046] Loss reconstruction =||VPolar p,t -Polar p,t ||2+||PVis s,q -Vis s,q ||2, (3)
[0047] The final loss function of the network is Loss = Loss similar +Loss reconstruction .
[0048] In some embodiments, in step S3, the method for identifying the infrared polarized face image to be identified is:
[0049] Input the infrared polarized face image Polar to be identified into the encoder Encoder trained in step S1 and step S2 to obtain the identity feature idF x , send the faces in the visible light database one by one into the encoder to obtain the identity features {idF1, idF2...idF n}, according to formula (2), calculate the face similarity {score1, score2...score n}, select the face identity with the maximum matching value for matching.
[0050] In a cross-modal infrared polarization face recognition method based on a codec of the present invention, the infrared polarization face image itself contains infrared polarization information, so that the infrared polarization information contained in the face can be obtained through the infrared polarization face image under insufficient lighting conditions. In step S1, the visible light face and the infrared polarization face are combined to train the codec, and the loss function constrains the network in step S2, so that the encoder has the ability to encode the visible light face image and the infrared polarization face image to obtain the corresponding identity feature idF base and idF x ability.
[0051] By using a cross-modal infrared polarization face recognition method based on a codec of the present invention, a face image is collected, such as Figure 2 As shown in the figure, infrared polarization facial images can obtain richer facial features under insufficient lighting conditions through the unique infrared polarization characteristics of infrared polarization images. Figure 1 is the infrared image of the face image under insufficient lighting conditions, such as Figure 1 and Figure 2 By comparison, infrared polarization images can obtain richer facial features than traditional infrared images, thereby making it possible to use more obvious facial features to perform more accurate facial recognition work under insufficient lighting conditions.
[0052] In order to prevent the face recognition system from being affected by many environmental factors in practical applications, the present invention aims to propose a cross-modal infrared polarization face recognition method based on codec, which can eliminate environmental influences to some extent. First, the codec structure is trained using visible light and infrared polarization face data. The encoder encodes the face into identity features and modal features. The decoder recombines and decodes the identity and modal features of the visible light face image and the infrared polarization face image encoded by the encoder, and regenerates new infrared polarization face images and visible light images. Then, a network loss function is constructed. The loss function is constructed by constructing the codec network similarity loss function Loss similar And the encoding and decoding network reconstruction loss function Loss reconstruction Finally, the infrared polarized face image to be identified is input into the trained network, and its identity feature idF is obtained through the encoder. x . And send the faces in the visible light database into the code one by one, and get the corresponding identity features {idF1, idF2...idF n}, use cosine similarity to calculate the facial similarity between the identity features of the infrared polarized face to be identified and the identity features of the visible light face database, and select the face identity with the maximum matching value for matching. This achieves the purpose of more rapid and effective identity recognition of face images, which is helpful for subsequent applications in business, security, and law.
Claims
1. A cross-modal infrared polarization face recognition method based on codec, which recognizes infrared polarization face images, characterized in that: Includes the following: Step S1: In the training phase, each face image in the visible light face database and the infrared polarization face database is used to train the codec structure: The encoder encodes each face image into a set of identity features and modality features, and the decoder recombines and decodes each set of identity features and modality features to regenerate the corresponding face image; The specific content of step S1 is: Let the visible light face database be Vis base = {Vis1, Vis2...Vis n } and infrared polarization face database for Polar base = {Polar1, Polar2...Polar n }; Where n represents faces of different identities i∈[1,n], each person with the same identity contains m face data, and faces of the same identity in different modalities are denoted as j∈[1,m]. Each face image in the visible light face database is denoted as Vis i,j , each face image in the infrared polarization face database is denoted as Polar i,j , i represents face data of different identities, j represents face data of the same identity but different postures; In the encoding stage of the training process, the visible light face images Vis are selected one by one. p,q Input the encoder and get multiple sets of visible light identity features idF p and visible light modal feature modeF vis , and then the infrared polarized face images Polar s,t Input the encoder and get multiple sets of identity features idF s and infrared polarization modal characteristics modeF polar ; In the decoding stage of the training process, the visible light identity feature idF p and infrared polarization modal characteristics modeF polar Combined with the encoder input to synthesize infrared polarization face data VPolar p,t , the infrared polarization identity feature idF of the same identity and the same mode s and visible light modal feature modeF vis Combined with the synthesized visible light face data PVis as the input of the encoder s,q ; Step S2, constructing a feature similarity loss function and a reconstruction loss function, and constraining the codec structure; Step S3: In the testing phase, the codec trained in steps S1 and S2 is used to encode the visible light face images in the visible light face database one by one and generate the database identity feature idF base , encode the infrared polarized face image to be identified to generate the identity feature idF x , calculate the identity feature idF to be identified x and database identity feature idF base The cosine similarity of is taken, and the maximum similarity is taken to match the corresponding face identity.
2. A codec-based cross-modal infrared polarization face recognition method as claimed in claim 1, characterized in that: In step S2, the method for constructing the codec network similarity loss function is: Among them, reshape means straightening the feature into a one-dimensional vector, cos similar Indicates the calculation of cosine similarity: a and b are the one-dimensional vectors after reshape in formula (1) reshape(idF p ) and reshape(idF s ); The method to construct the encoder-decoder network reconstruction loss function is: Loss reconstruction =||VPolar p,t -Polar p,t ||2+||PVis s,q -Vis s,q ||2 (3), The final loss function of the network is Loss = Loss similar +Loss reconstruction .
3. A codec-based cross-modal infrared polarization face recognition method as claimed in claim 2, characterized in that: In step S3, the method for identifying the infrared polarized face image to be identified is: Input the infrared polarized face image Polar to be identified into the encoder Encoder trained in step S1 and step S2 to obtain the identity feature idF x , send the face images in the visible light database to the encoder one by one to obtain the identity features {idF1, idF2...idF n }, calculate the face similarity between the infrared polarized face identity feature to be identified and the visible light face database identity feature {score1, score2...score n }, select the face identity with the maximum matching value for matching.
