A Finger Vein Image Quality Assessment Method Based on Metric Learning

Through twin network training and fine-tuning methods based on metric learning, low-quality images of finger vein images are generated and evaluated, which solves the problem of inaccurate image quality evaluation in the existing technology and achieves more robust and accurate image quality evaluation. .

CN114998940BActive Publication Date: 2024-10-22UNIV OF ELECTRONICS SCI & TECH OF CHINA ZHONGSHAN INST
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210567763.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-24
Publication Date
2024-10-22
Estimated Expiration
2042-05-24

AI Technical Summary

Technical Problem

The existing technology lacks robustness and unified standards in finger vein image quality assessment. It is affected by external environmental factors and human annotation data, resulting in inaccurate image quality assessment and affecting vein feature extraction and matching.

Method used

Using a method based on metric learning, the Siamese network trains the sorting relationship of image pairs, generates low-quality images of varying degrees, and performs fine-tuning on a small amount of data sets to obtain a convolutional network that can evaluate a single image, using the sigmoid function and cross-entropy loss function to optimize the network to achieve image quality assessment.

Benefits of technology

It is possible to train a network model that can effectively evaluate the quality of finger vein images at a lower learning rate, improve the accuracy and robustness of image evaluation, and reduce the dependence on human annotation data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114998940B_ABST
    Figure CN114998940B_ABST
Patent Text Reader

Abstract

The present invention provides a finger vein image quality assessment method based on metric learning, comprising the following steps: synthesizing low-quality images of different degrees based on finger vein images of known quality; training a twin network according to graded images with contrast relationships, allowing the network to learn the sorting relationship of image pairs; taking a branch of the twin network for fine-tuning on a small amount of data sets to obtain a convolutional network that can evaluate a single image. Compared with the prior art, the present invention has the following beneficial effects: with a lower learning rate, the branch network is trained on a small amount of real data sets to obtain a network model that can evaluate a single image, thereby performing image assessment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of finger vein image processing, and in particular relates to a finger vein image quality assessment method based on metric learning. Background Art

[0002] Image quality assessment is to check the collected finger vein images to confirm whether there is a need for subsequent processing. Due to differences in the structure and lighting methods of finger vein acquisition equipment, and the collection process is easily disturbed by external environmental factors, there will be some problems with the quality of finger vein imaging, such as overexposure, underexposure, or blurred edges due to changes in light intensity, and sensor noise from the capture system.

[0003] These low-quality finger vein images will affect vein feature extraction and matching. Generally speaking, high-quality images contain more feature information, with clearer vein texture, more complete structure, and richer details, making it easier for computers to extract features and easier for the human eye to perceive. Low-quality images may be blurry and have low contrast, resulting in unclear features of finger vein images, which can be easily misidentified by computers. There is no unified standard for the image quality assessment of finger veins, but most of them are related to the methods of feature extraction and matching. Research in this area can actually be regarded as a binary classification task, that is, to distinguish images into high-quality images and low-quality images. Therefore, the core goal of quality assessment is to filter low-quality images to ensure the reliability and accuracy of the finger vein verification system.

[0004] The goal of traditional finger vein image quality assessment is to establish an image assessment model that is consistent with human eye perception. Image quality is measured by selecting different image feature parameters (such as contrast, clarity, effective area, information entropy, etc.). These methods require complex analysis and design, lack robustness, and are not very applicable. There are few studies on finger vein image quality assessment based on deep learning, and most of them are trained on human-annotated datasets. The effectiveness of the algorithm depends on the quality of the annotated data. When people score the quality of an image, it is inevitable that it will be interfered by some subjective factors. Based on such a dataset, it is difficult to fit the actual image quality distribution. Summary of the invention

[0005] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a finger vein image quality assessment method based on metric learning to solve the problems raised in the above background technology.

[0006] The present invention is implemented through the following technical scheme: a finger vein image quality assessment method based on metric learning, comprising the following steps: synthesizing low-quality images of varying degrees based on finger vein images of known quality; training a twin network based on graded images with contrast relationships to allow the network to learn the sorting relationship of image pairs; taking a branch of the twin network and performing fine-tuning on a small amount of data sets to obtain a convolutional network that can evaluate a single image.

[0007] As a preferred embodiment, synthesizing low-quality images of different degrees based on a finger vein image of known quality includes the following steps: selecting a correctly matched high-quality image as the original image, then generating different types of distorted images according to different intensities, and ensuring that the similarity between the distorted image and the original image is less than a discrimination threshold.

[0008] As a preferred implementation, a twin network is trained based on hierarchical images with contrast relationships, so that the network learns the ordering relationship of image pairs; a branch of the twin network is fine-tuned on a small amount of data sets to obtain a convolutional network that can evaluate a single image. The specific steps are as follows: a twin network that learns the relative relationship between image qualities is proposed. First, the contrast relationship between high and low image quality is modeled by the sigmoid function. Then, the optimization target of the network is designed in combination with the cross entropy loss. Finally, the twin network parameters are optimized based on the gradient descent algorithm, and a branch of the network is fine-tuned to obtain a finger vein image quality evaluation network.

[0009] After adopting the above technical solution, the beneficial effect of the present invention is: with a lower learning rate, the branch network is trained on a small amount of real data set to obtain a network model that can evaluate a single image, thereby performing image evaluation. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0011] Figure 1 This is the overall framework diagram of the finger vein image quality assessment algorithm based on metric learning.

[0012] Figure 2 Schematic diagram of the algorithm framework for generating low-quality images.

[0013] Figure 3 Schematic diagram of identifying error samples.

[0014] Figure 4 Schematic diagram of generated images with different distortion levels.

[0015] Figure 5 Schematic diagram of the twin network structure.

[0016] Figure 6 A schematic diagram of a lightweight network structure. DETAILED DESCRIPTION

[0017] 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.

[0018] See also Figure 1 The present invention provides a technical solution: a finger vein image quality assessment method based on metric learning, comprising the following steps: first, synthesizing low-quality images of varying degrees based on finger vein images of known quality; second, training a twin network based on graded images with contrast relationships, allowing the network to learn the sorting relationship of image pairs; finally, taking a branch of the twin network and performing fine-tuning on a small amount of data sets to obtain a convolutional network that can evaluate a single image.

[0019] As an embodiment of the present invention:

[0020] The specific steps of synthesizing different degrees of low-quality images based on finger vein images of known quality are as follows:

[0021] Before generating low-quality images, it is necessary to determine high-quality finger vein images. Because high-quality finger vein images have significant feature information and are easily recognized by computers, the proposed feature extraction and matching algorithm selects high-quality images from the successful matching results. The specific steps are as follows:

[0022] (1) Count the average similarity of each image in each finger. The similarity calculation is shown in formula 4-1

[0023]

[0024] Among them, j represents different images of the same category as i, f(i,j) is the similarity between the two images, and N is the number of different images of the same category.

[0025] (2) Select the image with the lowest average similarity for each finger. Inspired by the difficult sample mining strategy, we select high-quality images that can be recognized for subsequent operations. The closer such samples are to the decision boundary of the recognition network, the more conducive they are to the learning of the quality assessment network.

[0026] Because the number of false matches in the finger vein recognition algorithm on the data set is small, it is difficult to support the training of the quality assessment network. A low-quality image generation algorithm is proposed. First, a high-quality image in the data set is selected as the original image, and then different types of distorted images are generated according to different intensities, and the similarity between the distorted image and the original image is guaranteed to be less than the discrimination threshold. Figure 2 The overall process is described in .

[0027] A large number of samples of finger vein recognition algorithm mismatch and false rejection were analyzed, and it was determined that the main causes of finger vein mismatch include poor image contrast, blurred acquired images, etc. Figure 3 As shown, Figure 3 In the figure, (a) false match; (b) false rejection.

[0028] Therefore, three types of distortion, Gaussian blur, impulse noise and contrast attenuation, are selected, and four levels of attenuation are set, namely N = 4. The similarity threshold T is the average intra-class similarity Si of the original image. The specific settings are as follows:

[0029] (a) Gaussian blur: The distortion parameter is the standard deviation σ, the initial value is set to 1.5, and the level difference Δ = 5. First, the following formula is used

[0030]

[0031] Calculate the Gaussian kernel, and then perform a convolution operation on the image based on the Gaussian kernel to obtain a blurred image.

[0032] (b) Impulse noise: The distortion parameter is the noise ratio p, the initial value is 0.001, and the level difference Δ = 0.001. A new gray value is calculated for each pixel of the image. If the random number p≤rand()≤1-p, the pixel value takes the gray value of the original image, otherwise it takes 0. The gray value is calculated as follows:

[0033]

[0034] (c) Contrast attenuation: The distortion parameter is the gain coefficient α, the initial value is 1.0, the level difference Δ = -0.02, and the bias parameter β is -30. Multiply the original image by the gain coefficient and add the bias to get a new image. The contrast attenuation formula is

[0035]

[0036] The final composite image is shown in Figure 4. The leftmost column in the figure is the original image, and from left to right are images with gradually increasing distortion levels, that is, the more rightward the image is, the higher the degree of distortion. Each row in the figure corresponds to a type of distortion, from top to bottom, Gaussian blur, impulse noise, and contrast attenuation.

[0037] The specific steps of training the twin network based on hierarchical images with contrasting relationships and letting the network learn the sorting relationship of image pairs are as follows:

[0038] A twin network is a network with two identical network branches and loss functions, with a structure like Figure 5 As shown. The two branches share weights during training. The input of the network is a pair of images and labels, and the two outputs are passed to the loss function module. The loss function calculates the gradient of all model parameters through back propagation and updates the parameters using gradient descent. More specifically, the two finger vein images are denoted as xi and xj, which are used as the input of the network. s=f(x;w) is the output of the network, where w is the network parameter. This output is a scalar obtained by the logistic layer of the network, which is expected to indicate the quality score of the image.

[0039] In image quality assessment, the original image is larger than the low-level distorted image, and the low-level distorted image is larger than the high-level distorted image. The relative order of the sample pairs can be known. When the network is input, the relative order of the samples is divided into three levels, denoted as S ij ∈{+1,-1,0}, which respectively means that the quality of the i-th sample is higher than that of the j-th sample, the quality of the i-th sample is lower than that of the j-th sample, and the quality of the two samples is the same. Let us assume that x i Quality higher than x j , so there is s i =f(x i ;w)>s j =f(x j ; w). Here we use the sigmoid function to define the sample x i Quality higher than x j Probability:

[0040]

[0041] Where σ is the parameter to be learned. If the sample x i Mass ratio x j Higher, then P ij >0.5; otherwise, P ij <0.5. In this way, the ordering relationship of sample pairs can be modeled from a probability perspective, making it easier to solve using the idea of ​​classification.

[0042] Since the category label of the sample pair is S ij∈{+1,-1,0}, in order to facilitate the solution, the label S ij The true probability To map:

[0043]

[0044] Let set I represent the set of sample pairs, any sample pair {i,j}∈I. Since {i,j} and {j,i} are equivalent, such sample pairs are not helpful for network learning. In order to speed up training and avoid redundant calculations, the set For training, all sample pairs {i, j} in set A satisfy that sample i is of higher quality than sample j, that is, all sample pairs {i, j} satisfy S ij =1. Therefore, the specific form of the cross entropy loss function is as follows:

[0045]

[0046] It is worth noting that formula (4-7) is different from the general cross entropy loss function. The difference lies in the values ​​of the subscripts i and j. The method only forward propagates each sample once during training, which will greatly improve the training speed. The specific analysis is as follows.

[0047] There is redundant calculation in the training process of the twin network: suppose there are three images a, b, c, which will form sample pairs ab, ac, bc, which means that each image will be passed to the network twice, and the two branches of the twin network are the same, so such a transfer is actually unnecessary. The optimization goal is to pass each image to the network only once, so each update of the network parameters is decomposed into a single sample. Use the stochastic gradient descent method to optimize the network parameters, as shown in formula (4-8), where η represents the learning rate:

[0048]

[0049] Here we use L ij Represents the cross entropy loss of a sample pair {i, j}, and substituting 4-5 and 4-6 into it, we can get:

[0050]

[0051] We can further obtain L ij For i and j The partial derivative of :

[0052] Here we use γ ij Indicates L ij For i Partial derivative of:

[0053] The total loss function is:

[0054] L=∑ {i,j}∈A L ij (4-12)

[0055] Integrating the above formulas, we can get

[0056] in

[0057] γ i =∑ j:{i,j}∈A γ ij -∑ j:{j,i}∈A γ ij (4-14)

[0058] γ i The meaning is: for sample i, first find all samples j whose quality scores rank behind it, forming a sample pair {i, j}, and find sample k whose quality scores rank before sample i, forming a sample pair {k, i}; accumulate all γ ij , forming the first term of formula (4-14), after accumulating all γ ki , forming the second term. Since the summation signs of the first and second terms are unrelated, all k in the second term can be changed to j.

[0059] In formula (4-15), we can review the gradient descent algorithm. The partial derivative of the loss function L with respect to the parameter w has been split into the partial derivative of each sample with respect to the parameter w. This method updates the weights after traversing all samples in a set A in one iteration, which will greatly shorten the training time.

[0060]

[0061] The specific steps to fine-tune a branch of the twin network on a small dataset to obtain a convolutional network that can evaluate a single image are:

[0062] Based on the basic module of MoblieNet (bneck), a lightweight network is constructed such as Figure 6. The network head is a 3×3 ordinary convolution, and the main part of the network is stacked with a large number of bnecks. exp size is the number of up-convolutions of the inverted residual in bneck, out is the dimension of each layer of feature maps, SE represents whether to combine the SE module, NL is the type of nonlinear activation function used, where HS is the h-swish activation function, RE is the ReLU6 activation function, SG is the sigmoid function, and the last column s represents the step size of the convolution. In addition, each layer needs to be supplemented with padding of 1. The end of the network is a simple convolution and average pooling, and the final output needs to be mapped to the quality score of the network through the sigmoid function.

[0063] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A finger vein image quality assessment method based on metric learning, It is characterized in that The method includes the following steps: synthesizing low-quality images of varying degrees based on finger vein images of known quality; training a twin network based on graded images with contrast relationships to allow the network to learn the ordering relationship of image pairs; taking a branch of the twin network and performing fine-tuning on a small number of data sets to obtain a convolutional network that can evaluate a single image; The specific steps of synthesizing different degrees of low-quality images based on finger vein images of known quality are as follows: Before generating low-quality images, it is necessary to determine high-quality finger vein images. Because high-quality finger vein images have significant feature information and are easily recognized by computers, the proposed feature extraction and matching algorithm selects high-quality images from the matching results. The specific steps are as follows: (1) Count the average similarity of each image in each finger; the similarity calculation is shown in formula 4-1 Where j represents different images of the same category as i, f(i,j) is the similarity between the two images, and N is the number of different images of a category; (2) Select the image with the lowest average similarity for each finger; inspired by the hard-to-distinguish sample mining strategy, select high-quality images that can be recognized for subsequent operations. The closer such samples are to the decision boundary of the recognition network, the more conducive they are to the learning of the quality assessment network. Because the number of false matches in the finger vein recognition algorithm on the data set is small and it is difficult to support the training of the quality assessment network, a low-quality image generation algorithm is proposed; first, a high-quality image in the data set is selected as the original image, and then different types of distorted images are generated according to different intensities, and the similarity between the distorted image and the original image is guaranteed to be less than the discrimination threshold; The twin network is trained according to graded images with contrast relationships, so that the network can learn the sorting relationship of image pairs; a branch of the twin network is fine-tuned on a small number of data sets to obtain a convolutional network that can evaluate a single image. The specific steps are as follows: a twin network that learns the relative relationship between image quality is proposed. First, the contrast relationship between high and low image quality is modeled by the sigmoid function. Then, the optimization target of the network is designed in combination with the cross entropy loss. Finally, the twin network parameters are optimized based on the gradient descent algorithm, and a branch of the network is fine-tuned to obtain a finger vein image quality assessment network.

Citation Information

Patent Citations

  • A contrast learning image quality evaluation method based on a twin network

    CN109727246A

  • CNN blind image quality evaluation method based on significance

    CN111028203A

  • Image restoration quality evaluation method based on sorting learning and twin neural network

    CN113269680A

  • Analyzing digital images based on criteria

    US10013639B1

  • Image quality evaluation method and apparatus

    WO2021135391A1