Palm vein image anti-counterfeiting method based on multi-scale memory enhanced generative adversarial network

Through the use of multi-scale memory-enhanced generative adversarial networks, the problem of poor noise filtering and normal sample reconstruction of memory-enhanced autoencoders when defending against adversarial attacks is solved, and the effective purification of adversarial perturbations and reduction of recognition error rates are achieved. , suitable for vein identification tasks.

CN118865459APending Publication Date: 2024-10-29CHONGQING TECH & BUSINESS UNIV +2
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410864455.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-30
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing memory-enhanced autoencoders are difficult to effectively filter the noise of abnormal samples when defending against adversarial attacks, and their reconstruction effect on normal samples is poor, resulting in the reconstructed images not being correctly classified by the classifier.

Method used

A multi-scale memory enhancement generative adversarial network is used to obtain feature representations through the top and bottom encoders, and is combined with the memory enhancement module for feature purification and fusion to achieve multi-scale purification against perturbations and reconstruct clean original images.

Benefits of technology

It significantly reduces the recognition error rate, improves the filtering effect of adversarial disturbances, can effectively purify attack disturbances in abnormal samples, and achieves good reconstruction of normal samples. It is suitable for vein recognition tasks and has fast image processing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118865459A_ABST
    Figure CN118865459A_ABST
Patent Text Reader

Abstract

The invention provides a palm vein image anti-counterfeiting method based on a multi-scale memory enhanced generative adversarial network, and the method comprises the steps: constructing the multi-scale memory enhanced generative adversarial network: inputting a sample into a top-layer encoder to obtain top-layer feature representation, and then inputting the sample into a bottom-layer encoder to obtain bottom-layer feature representation; the bottom-layer feature representation is mapped into a bottom-layer feature in a normal mode through a bottom-layer memory enhancement module, and the bottom-layer feature is fused with the top-layer feature representation after passing through a bottom-layer decoder to obtain a new top-layer feature; the new top-layer feature ztf passes through a top-layer memory enhancement module to obtain a top-layer feature of a normal mode, and then the top-layer feature of the normal mode and the bottom-layer feature of the normal mode are fused to obtain a clean multi-level fusion feature; reconstructing the fusion feature into a normal sample mode representation of the original image through a top decoder; and obtaining a normal sample mode of the original image through the trained network for vein recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of palm vein recognition, and specifically discloses a palm vein image anti-counterfeiting method based on a multi-scale memory-enhanced generative adversarial network. Background Art

[0002] Memory-enhanced autoencoders perform well in the field of anomaly detection. Given an input, the memory-enhanced autoencoder first obtains the encoding from the encoder, and then uses it as a query to retrieve the most relevant memory items for reconstruction. It can minimize the reconstruction error of normal samples and maximize the reconstruction error of abnormal samples, thereby achieving the purpose of anomaly detection. Since it can reconstruct adversarial images back to normal images, it can also be used to defend against adversarial attacks. Defending against adversarial attacks requires not only good reconstruction of normal samples, but also purification of attack disturbances in abnormal samples, so that they can be correctly identified and classified by the classification model. Although the memory-enhanced autoencoder can also be used to defend against adversarial attacks, it cannot filter out the noise of abnormal samples very well, and the reconstruction effect of normal samples is also relatively poor, because the memory-enhanced autoencoder does not care about the reconstruction effect, which leads to the reconstructed image not being correctly classified by the classifier to a certain extent. Summary of the invention

[0003] The purpose of the present invention is to provide a palm vein image anti-counterfeiting method based on a multi-scale memory-enhanced generative adversarial network, which is used to defend against adversarial perturbation attacks on a vein classifier based on a deep neural network. This method can not only achieve good reconstruction of normal samples, but also purify attack perturbations in abnormal samples at multiple scales.

[0004] The palm vein image anti-counterfeiting method based on a multi-scale memory-enhanced generative adversarial network in the present invention comprises:

[0005] Step 1: Construct a multi-scale memory-enhanced generative adversarial network according to the following strategy:

[0006] Given a palm vein image sample Input a top-level encoder to get the top-level feature representation Then the top-level feature representation z t Input to the bottom encoder to get the bottom feature representation

[0007] The underlying feature representation z b After the bottom memory enhancement module, it is mapped to the bottom feature of the normal mode, and then after passing through the bottom decoder, it is combined with the top feature representation z t Fusion obtains new top-level features

[0008] The new top-level feature z tfAfter the top-level memory enhancement module, the top-level features of the normal mode can be obtained, and then the top-level features of the normal mode are fused with the bottom-level features of the normal mode to obtain the clean multi-level fusion features.

[0009] This fused feature z is passed through the top decoder tbf Reconstruct the normal sample mode representation of the original image

[0010] Step 2: Use the trained multi-scale memory-enhanced generative adversarial network to purify the palm vein image and obtain the normal sample pattern of the original image for vein recognition.

[0011] Furthermore, in step 1, the process of obtaining the bottom-level feature representation and the top-level feature representation is expressed as follows:

[0012] z t =Encoder t (x),

[0013] z b =Encoder b (z t ),

[0014] Among them, Encoder t and Encoder b Represent the top encoder and bottom encoder respectively.

[0015] Furthermore, in step 1, both the top encoder and the bottom encoder consist of K convolutional layers for downsampling, 1 normal convolutional layer, and 2 residual blocks;

[0016] For the top encoder, K=2, and for the bottom encoder, K=1;

[0017] The residual block consists of two convolutional layers.

[0018] Furthermore, in step 1, a new top-level feature z is obtained tf The process is expressed as follows:

[0019] z tf =Concat{z t ,Decoder b [memory b (z b )]},

[0020] Among them memory b Decoder represents the underlying memory enhancement model, which is used to purify the attack disturbance of the underlying features; b Represents the bottom-level decoder, which is used to transform the bottom-level features z bDecoded into a vector with the same dimension as the top-level feature, Concat{.} represents a concatenation operation.

[0021] Furthermore, in step 1, the fusion feature z is obtained tbf , and reconstructed into the normal sample mode of the original image The process is expressed as follows:

[0022] z tbf =Concat{deconv[memory b (z b )],memory t (z tf )},

[0023]

[0024] Among them, deconv represents the deconvolution operation, memory t Represents the top-level memory enhancement module, which is used to purify the attack disturbance of multi-scale fusion features, Decoder t Decoder represents the top-level decoder, which is used to reconstruct the fused features into the normal representation of the original image. b and Decoder t Decoder t and Encoder b The reverse operation of .

[0025] Furthermore, in the memory enhancement module, a convolution layer is added at the head and tail to achieve channel fusion and amplification of features, that is, to reduce the dimension of features and restore them to the original dimension;

[0026] The memory enhancement module contains a matrix containing N real-valued vectors of fixed dimension C use represents the i-th memory item, that is, the i-th row of the matrix M, where i∈[0,N-1];

[0027] Given a query vector The memory enhancement module relies on a soft addressing weight vector get as follows:

[0028]

[0029] Where: the hyperparameter N defines the maximum capacity of the memory enhancement module; w is a row vector with non-negative elements and 1, w i is the i-th element of w; w is obtained as follows:

[0030] Given a feature vector Flatten it into a one-dimensional vector Make N copies of it and concatenate them with each memory item in the matrix M; put the concatenated matrix into a multi-layer perceptron network MLP, and then normalize it through the softmax function to get the weight as follows:

[0031] weights=softmax(vtanh(MLP(z,M))),

[0032] The weights are then sparsely processed and renormalized as follows to obtain each element in the required soft addressing weight vector w

[0033]

[0034] Among them, max(·,0) is the ReLU activation, ∈ is a very small positive scalar used to prevent the denominator from being 0, λ is the weight threshold, and here wi is the i-th element of weights.

[0035] Furthermore, the threshold λ preferably has a value interval of [1 / N, 3 / N].

[0036] The present invention proposes a multi-scale memory-enhanced generative adversarial network, which combines the techniques of memory-enhanced autoencoder and generative adversarial network to filter multi-scale adversarial disturbances and reconstruct a clean original image.

[0037] In some embodiments of the present invention, a learnable similarity is proposed, which can learn the distance between normal samples and memory items, so as to better measure the similarity between the two, and help move abnormal samples to the manifold of normal samples, thereby filtering out abnormalities;

[0038] The model adopted by the present invention, the multi-scale memory-enhanced generative adversarial network, is significantly superior to other contrast defense methods in reducing the recognition error rate. For vein recognition tasks, a fast image processing method is very important for the system, and the model adopted by the present invention also has a small time overhead. The present invention is simple to implement, fast and effective, and meets the application requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 System framework diagram of a multi-scale memory-enhanced generative adversarial network in an embodiment of the present invention;

[0040] Figure 2 A structural diagram of a memory enhancement module in an embodiment of the present invention;

[0041] Figure 3 A schematic diagram of the working process of a multi-layer perceptron for measuring features and memory items in an embodiment of the present invention. DETAILED DESCRIPTION

[0042] Figure 1 This is the framework diagram of the multi-scale memory-enhanced generative adversarial network in this example. Figure 1 As shown, the multi-scale memory-enhanced generative adversarial network proposed in the present invention has two memory-enhanced modules for filtering multi-scale adversarial disturbances and obtaining feature representations of normal samples, two encoder and two decoder modules for encoding and decoding, and the memory-enhanced modules, encoder, and decoder together constitute an autoencoder as the generator part of the generative adversarial network. The discriminator is based on tiles, which outputs a discrimination result for each tile of the input image, and finally takes the mean of the discrimination results of each tile to represent the probability of the real image.

[0043] In the above model, the processing flow of vein images is as follows:

[0044] Step 1: Given a normal sample input The top encoder encodes the input into the top feature representation The bottom encoder encodes the top-level features into the bottom-level feature representation As shown in Formula 1 and Formula 2:

[0045] z t =Encoder t (x), (1)

[0046] z b =Encoder b (z t ), (2)

[0047] Among them, Encoder t (Abbreviated as E in the figure t ) and Encode E b (Abbreviated as E in the figure b ) represent the top encoder and the bottom encoder respectively, both of which consist of K convolutional layers for downsampling, 1 normal convolutional layer, and 2 residual blocks. t , K = 2, for Encoder b , K = 1, the residual block consists of two convolutional layers. For most convolutional layers, this method inserts activation functions to improve the model's expressiveness. Note that both the ordinary convolutional layer and the residual block do not change the input size;

[0048] Step 2: The bottom-level features are mapped to the bottom-level features of the normal mode through the bottom-level memory enhancement module, and then fused with the top-level features after passing through the bottom-level decoder to obtain the new top-level features. As shown in Formula 3:

[0049] z tf =Concat{zt ,Decoder b [memory b (z b )]}, (3)

[0050] Among them, Decoder b Represents the bottom decoder (abbreviated as D in the figure) b ), used to decode the bottom-level features into vectors with the same dimension as the top-level features, memory b represents the underlying memory enhancement module, which is used to purify the attack disturbance of the underlying features and obtain the underlying features of the normal mode, z tf Represents the fusion of noisy top-level features and clean bottom-level features.

[0051] The new top-level features can then be passed through the top-level memory enhancement module to obtain the top-level features of the normal mode. Finally, the top-level features of the normal mode are fused with the bottom-level features of the normal mode to obtain a clean multi-level fusion feature. As shown in Formula 4, the top-level decoder reconstructs this fused feature into a representation of the normal sample pattern of the original image As shown in Formula 5:

[0052] z tbf =Concat{deconv[memory b (z b )],memory t (z tf )}, (4)

[0053]

[0054] Among them, deconv represents the deconvolution operation (upsampling in the figure), memory t Represents the top-level memory enhancement module, which is used to purify the attack disturbance of multi-scale fusion features, Decoder t (Abbreviated as D in the figure t ) represents the top decoder, which is used to reconstruct the fused features into the normal representation of the original image. b and Decoder t is an Encoder t and Encoder b The inverse operation of

[0055] Step 3: After steps 1 and 2, the clean image can be well reconstructed, and the adversarial image can also be reconstructed back into a clean image, and finally correctly recognized by the vein recognition system (CNN Discriminator in the figure).

[0056] The aforementioned memory enhancement module is used to filter abnormal disturbances and obtain the representation of the normal mode of the feature vector. Its structure is as follows Figure 2 As shown in the figure, in order to limit the size of the memory enhancement module, this example adds a convolution layer at the head and tail of the memory enhancement module to achieve channel fusion and amplification of features, that is, to reduce the dimension of the features and restore them to the original dimension.

[0057] The memory enhancement module contains a matrix containing N real-valued vectors of fixed dimension C use represents the i-th memory item, i.e., the i-th row of the matrix M, where i∈[0,N-1]. Given a query vector (i.e., the encoded feature representation after reduction) The memory enhancement module relies on a soft addressing weight vector get As shown in Formula 6:

[0058]

[0059] Where: w is a row vector whose non-negative elements sum to 1, w i is the ith element of w. Accessing M requires addressing weight w, and the weight vector w is calculated based on z and M; the specific calculation is shown in formula (7).

[0060]

[0061] The hyperparameter N defines the maximum capacity of the memory-enhanced module. The memory-enhanced module is not sensitive to the setting of N, and a sufficiently large N can be well adapted to each dataset. In the original memory-enhanced autoencoder, d(z,m i ) is defined as the cosine similarity between z and mi. In many cases, cosine similarity cannot accurately describe the similarity between two vectors. Therefore, a learnable similarity is proposed in this example to measure the distance between normal samples and memory items. In the model of this example, the similarity between z and mi is obtained through a multi-layer perceptron network. Figure 2 It is represented by the function f(z",M;θ), and its structure is as follows Figure 3 As shown, first, given the feature vector Flatten it into a one-dimensional vector Copy it N times and concatenate each memory item, then input it into a multi-layer perceptron network MLP to get the final weight Finally, it is normalized by the softmax function, as shown in Formula 8:

[0062] weights=softmax(vtanh(MLP(z,M))), (8)

[0063] Since some anomalies may still have a chance to be well reconstructed through a complex combination of many memory items with small weights, the weights also need to be sparsely processed in this example. The sparse operation is shown in formula (9):

[0064]

[0065] Where max(·,0) is the ReLU activation, ∈ is a very small positive scalar used to prevent the denominator from being 0, and λ is the weight threshold, where w i is the i-th element of weights. In practical applications, setting the threshold λ to a value in the interval [1 / N,3 / N] can achieve ideal results. After sparsification, w is renormalized. Sparse addressing encourages the model to represent an example with fewer but more relevant memory items, thereby learning more information representations of normal patterns in memory.

[0066] The aforementioned multi-scale memory-enhanced generative adversarial network is trained using the palm vein image training set, and the trained network can be used for palm vein image recognition.

Claims

1. A palm vein image anti-counterfeiting method based on a multi-scale memory-enhanced generative adversarial network, including: Step 1: Construct a multi-scale memory-enhanced generative adversarial network according to the following strategy: Given a palm vein image sample Input a layer encoder to get the top-level feature representation Then the top-level feature representation z t Input to the bottom encoder to get the bottom feature representation The underlying feature representation z b After the bottom memory enhancement module, it is mapped to the bottom feature of the normal mode, and then after passing through the bottom decoder, it is combined with the top feature representation z t Fusion obtains new top-level features The new top-level feature z tf After the top-level memory enhancement module, the top-level features of the normal mode can be obtained, and then the top-level features of the normal mode are fused with the bottom-level features of the normal mode to obtain the clean multi-level fusion features. This fused feature z is passed through the top decoder tbf Reconstruct the normal sample mode representation of the original image Step 2: Use the trained multi-scale memory-enhanced generative adversarial network to purify the palm vein image and obtain the normal sample pattern of the original image for vein recognition.

2. The method according to claim 1, characterized in that In step 1, the process of obtaining the bottom-level feature representation and the top-level feature representation is expressed as follows: z t =Encoder t (x), z b =Encoder b (z t ), Among them, Encoder t and Encoder b Represent the top encoder and bottom encoder respectively.

3. The method according to claim 1, characterized in that: In step 1, both the top encoder and the bottom encoder consist of K convolutional layers for downsampling, 1 normal convolutional layer, and 2 residual blocks; For the top encoder, K=2, and for the bottom encoder, K=1; The residual block consists of two convolutional layers.

4. The method according to claim 1, characterized in that: In step 1, we get the new top-level feature z tf The process is expressed as follows: z tf =Concat{z t ,Decoder b [memory b (z b )]}, Among them memory b Decoder represents the underlying memory enhancement model, which is used to purify the attack disturbance of the underlying features; b Represents the bottom-level decoder, which is used to transform the bottom-level features z b Decoded into a vector with the same dimension as the top-level feature, Concat{.}, indicating a concatenation operation.

5. The method according to claim 4, characterized in that In step 1, the fusion feature z is obtained tbf , and reconstructed into the normal sample mode of the original image The process is expressed as follows: z tbf =Concat{deconv[memory b (z b )],memory t (z tf )}, Among them, deconv represents the deconvolution operation, memory t Represents the top-level memory enhancement module, which is used to purify the attack disturbance of multi-scale fusion features, Decoder t Decoder represents the top-level decoder, which is used to reconstruct the fused features into the normal representation of the original image. b and Decoder t is an Encoder t and Encoder b The reverse operation of .

6. The method according to claim 5, characterized in that In the memory enhancement module, a convolution layer is added at the head and tail to achieve channel fusion and amplification of features, that is, to reduce the dimension of features and restore them to the original dimension; The memory enhancement module contains a matrix containing N real-valued vectors of fixed dimension C use represents the i-th memory item, that is, the i-th row of the matrix M, where i∈[0,N-1]; Given a query vector The memory enhancement module relies on a soft addressing weight vector get as follows: Where: the hyperparameter N defines the maximum capacity of the memory enhancement module; w is a row vector with non-negative elements and 1, w i is the i-th element of w; w is obtained by: Given a feature vector Flatten it into a one-dimensional vector Make N copies of it and concatenate them with each memory item in the matrix M; The concatenated matrix is ​​put into a multi-layer perceptron network MLP, and then normalized by the softmax function to obtain the weight as follows: weights=softmax(vtanh(MLP(z,M))), The weights are then sparsely processed and renormalized as follows to obtain each element in the required soft addressing weight vector w Among them, max(·, 0) is the ReLU activation, ∈ is a very small positive scalar used to prevent the denominator from being 0, and λ is the weight threshold. Here w i is the i-th element of weights.

7. The method according to claim 6, characterized in that The preferred value interval of the threshold λ is [1 / N, 3 / N].

Citation Information

Patent Citations

  • Classification loss-based generative adversarial network restored abnormal vein image identification method and device

    CN112364848A

  • Fast unsupervised anomaly detection method for memory-enhanced generative adversarial network

    CN116664908A

  • Video anomaly detection method based on multi-layer memory enhancement and secondary prediction

    CN116665098A

  • Autoregression Image Abnormity Detection Method of Enhancing Latent Space Based on Memory

    US20230154177A1