Palm vein recognition method

By using adaptive histogram equalization and local contrast adjustment methods to enhance vein information on embedded devices, and combining knowledge distillation and quantization methods to compress the model, the problem of biometric performance degradation on resource-limited devices is solved and efficient vein information is achieved Extraction and performance optimization.

CN118116040BActive Publication Date: 2024-10-29ZHUHAI YISHENG ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311668284.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-06
Publication Date
2024-10-29
Estimated Expiration
2043-12-06

AI Technical Summary

Technical Problem

On embedded devices with limited computing and storage resources, there are difficulties in how to effectively obtain vein information from input images to achieve high-performance biometric identification, especially when faced with the influence of external factors such as illumination changes and rotation.

Method used

Adaptive histogram equalization (CLAHE) and local contrast adjustment combined with global contrast correction (LAGCCH) methods are used for normalization processing to enhance vein information and suppress the influence of noise and external factors, while using knowledge distillation algorithms and quantization methods to compress the model , reduce computing and storage costs.

Benefits of technology

It achieves efficient extraction of vein information on devices with limited resources, suppresses the influence of external factors, reduces the decline in recognition performance, and successfully runs a high-performance palm vein recognition algorithm on a low-level main control chip.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118116040B_ABST
    Figure CN118116040B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of biometric technology, and specifically to a palm vein recognition method. The method comprises the following steps: S1, obtaining a palm vein image from a camera, S2, normalizing the input image, S3, determining the palm area, S4, extracting features using a model generated by knowledge distillation and quantification methods, and S5, palm vein comparison. The palm vein recognition technology of the present invention utilizes normalization processing technology to enhance biological information and a lightweight, more optimized network model to achieve better performance, thereby further improving the palm vein recognition technology with security, concealment, accuracy, reliability, and hygienic safety, and is more perfectly applicable to all biometric technology fields, especially the field of smart locks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of biometric identification technology, and in particular to a palm vein identification method. Background Art

[0002] With the rapid development of input information normalization technology and deep neural networks, the performance of biometrics has reached a high level, and this technology is widely used in various fields. However, how to obtain more effective vein information for identification from the input image, and how to achieve better performance under limited computing and storage resources, this is the biggest pain point encountered and difficult problem to be solved when implementing biometrics on embedded devices. Summary of the invention

[0003] To achieve the above objectives, the present invention creates a technical solution: a palm vein recognition method, the method comprising the following steps:

[0004] Step 1: Obtain palm vein images from the camera.

[0005] Step 2: normalize the input image. The normalization process enhances the vein information including the basic factors required for biometrics and suppresses the adverse effects caused by external factors. The normalization process adopts adaptive histogram equalization (CLAHE) and LAGCCH methods. The steps of adaptive histogram equalization (CLAHE) are to enhance the shallow vein image information by calculating the histogram of the original image and transforming the image of the equalized histogram; then, the threshold is used to limit the increase of image noise, enhance the vein information, and suppress the changes of some redundant information such as shadows. Specifically, the following steps are included:

[0006] S1, decompose the image into multiple local areas, and calculate the histogram of each local area;

[0007] S2. In order to effectively adjust the contrast of the image, a threshold is set to limit excessive contrast enhancement effects;

[0008] S3. According to the histogram integral value of each field, calculate the normalized histogram transformation function:

[0009] g=[g max -g min ]*P(f)+g min

[0010] In the above formula, g is the newly calculated pixel value, g max is the maximum pixel value, g min is the minimum pixel value, and P(f) is the distribution function.

[0011] The LAGCCH method is to first divide the whole domain into subdomains, then perform an AGC method based on a histogram integral function in each subdomain, and then combine the images in the overlapping areas using the bilinear interpolation principle, and finally obtain a safety image with enhanced whole domain contrast; specifically, the following steps are included:

[0012] S1, the input image is divided into N sub-domains;

[0013] S2. Calculate the histogram integral in each subdomain. The specific formula is as follows:

[0014]

[0015] Among them, H n (p) is the histogram integral function, n is 1~N, R n For the nth field, I n (x,y) is the pixel value of (x,y);

[0016] S3. Obtain the adaptive gamma correction function based on the histogram integral value:

[0017] G n (p) = F(H n )(p)

[0018] Among them, G n (p): gamma correction function, F: transformation function;

[0019] S4. Perform a gamma correction function on each pixel in the sub-domain:

[0020]

[0021] in, is the pixel value calculated in the nth subdomain;

[0022] S5. Generate the global image from the calculated subdomain using bilinear interpolation method. The specific formula is as follows:

[0023]

[0024] in, is the updated pixel value.

[0025] Step 3: Determine the palm area.

[0026] Step 4: Use the knowledge distillation algorithm and quantification method to generate a model to extract features. The knowledge distillation algorithm and quantification method can reduce the storage capacity and computing cost to a few tenths of the initial model. The knowledge distillation algorithm includes the following steps:

[0027] S1. Initialization: Prepare labeled and unlabeled training data, prepare the teacher model, and initialize the weights of the student model.

[0028] S2, generating input data from training data;

[0029] S3, further calculate the weights of all layers in the student model (Student);

[0030] S4. Loss calculation:

[0031]

[0032] S5. Update the weight of the student model (Student) according to Loss L.

[0033] If L≥e, jump to S2.

[0034] The quantization method described above can reduce the model capacity to 1 / 4 and the computational cost to more than half. This method converts all floating-point operations into integer operations, which can minimize the performance degradation. Because quantization itself reduces the computational cost and weight capacity by converting floating-point operations into integer operations, the operation with the highest computational cost in deep neural networks is the convolution operation. Therefore, the quantization method is used to reduce the computational cost of the convolution operation, which is the main purpose of quantization. The specific steps are as follows:

[0035] S1. The convolution operation is implemented according to the following formula:

[0036]

[0037] Here, I k is the input of the convolution, O m is the output of the convolution, W km are the weight coefficients of the convolution, which are all floating point numbers, and floating point operations will be performed from now on.

[0038] S2. Convert the floating point number to an integer using the following formula:

[0039]

[0040] S3, according to integer operation:

[0041]

[0042] S4. Calculate O m :

[0043] C=A·B

[0044] Here, A and B are quantization coefficients for input data and weight coefficients, respectively, N=256, and round() is a rounding function; as a result, all floating-point operations are converted to integer operations, reducing the computational cost; in addition, after converting the floating-point weights to int8 integers, the weight capacity is reduced to 1 / 4.

[0045] Step 5: Implement palm vein comparison and recognition on the product.

[0046] Furthermore, in order to achieve superior palm vein recognition performance, the method described herein introduces a compression method of a deep neural network, and the method described herein compresses a high-performance large model into a lightweight new model while minimizing the performance degradation.

[0047] Furthermore, the new model is applied in the field of palm vein recognition, and finally a palm vein recognition algorithm that can maintain high performance is obtained. The palm vein recognition algorithm can run on a low-level main control chip with limited resources.

[0048] The beneficial effects of the present invention are:

[0049] 1) The present invention adopts optimized normalization processing technology, which can limit the unnecessary factors brought by external changes such as image noise, and enhance each person's inherent biometric information - palm vein information, laying the foundation for improving recognition performance in the preprocessing stage.

[0050] 2) The present invention realizes an efficient model compression method, which can obtain a model that minimizes the performance degradation and reduces the storage capacity and computing cost to one tenth from a computer-level high-performance palm vein recognition algorithm, and finally runs on an artificial intelligence main control chip with limited resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is the overall framework diagram of the present invention.

[0052] Figure 2 It is the overall flow chart of the present invention.

[0053] Figure 3 This is a flow chart of the knowledge distillation algorithm of the present invention. DETAILED DESCRIPTION

[0054] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings. The description in this part is only exemplary and explanatory and should not have any limiting effect on the protection scope of the present invention.

[0055] So far, there are many solutions to implement palm vein recognition technology on embedded devices. And there are many normalization processing technologies used in palm vein recognition, such as brightness and contrast adjustments, histogram equalization, limited contrast adaptive histogram equalization (CLAHE), blur processing, median filter, dilation and corrosion.

[0056] Although the above preprocessing methods are helpful in enhancing the details of vein images, they still have negative effects. For example, they affect the performance by enhancing the shadows and redundant information caused by light intensity changes. In order to fully guarantee the performance of palm vein recognition, it is necessary to suppress the factors caused by various external changes and solve the problem of enhancing obvious vein information and subtle vein information.

[0057] In order to fully enhance the palm vein information in the input image, a new normalization processing technology is used to solve the above problems. The normalization processing technology used in the present invention not only suppresses the redundant factors caused by external factors such as illumination changes and rotation, but also emphasizes the detail information of shallow veins.

[0058] like Figure 1 - Figure 3 As shown, a palm vein recognition method introduces a compression method of a deep neural network to achieve palm vein recognition with superior performance, which includes the following steps:

[0059] S1. Obtain a palm vein image from a camera.

[0060] S2. Normalize the input image. Normalization enhances the vein information including the basic factors required for biometrics and suppresses the adverse effects caused by external factors.

[0061] S3. Determine the palm area.

[0062] S4. Extract features using the model generated by the knowledge distillation algorithm and quantization method.

[0063] S5. Implement palm vein comparison and recognition on the product.

[0064] The main purpose of the present invention to perform normalization processing on palm vein recognition is to enhance the vein information including the basic factors required for biometric recognition and to suppress the adverse effects caused by external factors.

[0065] To achieve this goal, we use adaptive histogram equalization (CLAHE) and LAGCCH methods.

[0066] After acquiring the image from the camera, the CLAHE method is used to suppress redundant factors and enhance both clear and subtle vein information. Then the LAGCCH method is used to effectively emphasize the global contrast, and finally a vein image suitable for recognition is obtained.

[0067] The general histogram equalization (HE) method is a method that enhances the shallow vein image information by calculating the histogram of the original image and transforming the image of the equalized histogram. Although this method can enhance the contrast of the image, it will also enhance the noise. In order to solve this problem, the present invention proposes a self-adaptive histogram equalization (CLAHE) method. After adopting the CLAHE method, the phenomenon of increasing image noise can be limited by the threshold, the vein information can be enhanced, and the changes of some redundant information such as shadows can be suppressed. Specifically, the following steps are included:

[0068] S1. Decompose the image into multiple local areas and calculate the histogram of each local area.

[0069] S2. In order to effectively adjust the contrast of the image, a threshold is set to limit excessive contrast enhancement effects.

[0070] S3. According to the histogram integral value of each field, calculate the normalized histogram transformation function:

[0071] g=[g max -g min ]*P(f)+g min

[0072] In the above formula, g is the newly calculated pixel value, g max is the maximum pixel value, g min is the minimum pixel value, and P(f) is the distribution function.

[0073] At the same time, the AGC (Adaptive Gamma Correction) method is superimposed on the adaptive histogram equalization (CLAHE) method. The AGC (Adaptive Gamma Correction) method is based on the histogram of the input image for transformation, which can enhance the contrast while maintaining the image brightness. Conventional gamma correction plays an effective role in transforming each pixel value of the image through a transformation function and emphasizing the contrast information to a certain extent. However, this method is based on the global image brightness for transformation processing. Due to the different brightness distribution in local areas, according to the brightness of the input image, it is difficult to avoid the resulting image becoming too bright or too dark.

[0074] In order to solve this problem, the present invention first divides the entire domain into subdomains, and then executes an AGC method based on a histogram integral function for calculation in each subdomain. In the overlapping area, the bilinear interpolation principle is used in combination with the image, and finally a secure image with enhanced global contrast is obtained. That is, the LAGCCH method mentioned above, the present LAGCCH method is to first divide the entire domain into subdomains, and then execute an AGC method based on a histogram integral function for calculation in each subdomain, and then in the overlapping area, the bilinear interpolation principle is used in combination with the image, and finally a secure image with enhanced global contrast is obtained; the performance advantages of the solution adopted by the present invention can be compared with Table 1, and the present method specifically includes the following steps:

[0075] S1. The input image is divided into N sub-domains.

[0076] S2. Calculate the histogram integral in each subdomain. The specific formula is as follows:

[0077]

[0078] Among them, H n (p) is the histogram integral function, n is 1~N, R n For the nth field, I n (x,y) is the pixel value at (x,y).

[0079] S3. Obtain the adaptive gamma correction function based on the histogram integral value:

[0080] G n (p) = F(H n )(p)

[0081] Among them, G n (p): gamma correction function, F: transformation function.

[0082] S4. Perform a gamma correction function on each pixel in the sub-domain:

[0083]

[0084] in, is the pixel value calculated in the nth subfield.

[0085] S5. Generate the global image from the calculated subdomain using bilinear interpolation method. The specific formula is as follows:

[0086]

[0087] in, is the updated pixel value.

[0088] The above two methods enhance key information such as palm vein information and suppress other variable information caused by environmental changes such as noise when realizing palm vein recognition, laying a foundation for improving recognition performance, as shown in Table 1.

[0089] Table 1. Comparison of recognition rates after using various normalization methods

[0090]

[0091] Some algorithms can perform efficiently on devices with sufficient computing resources, but there are many difficulties in porting them to smart locks, such as limited computing and storage resources.

[0092] The main problem faced by the palm vein recognition method in this article is how to apply computer-level high-performance palm vein recognition algorithm to artificial intelligence main control chips with limited resources.

[0093] Therefore, in order to solve the problem of computing and storage resource limitations, the network model must be reduced in size in the direction of improving computing efficiency. Solutions to reduce network models include training the reduced network model from scratch, pruning large models, and quantization methods that convert floating-point operations to fixed-point operations. These methods have played a certain effective role in reducing the performance degradation caused by model compression. However, the absolute performance degradation caused by compressing ordinary models is not small, and introducing it into security products such as smart locks will be accompanied by huge risks.

[0094] In order to achieve superior palm vein recognition performance on smart lock products, the present invention introduces a compression method of a deep neural network. When compressing the model, performance degradation is inevitable. How to reduce performance degradation is a crucial issue. To solve this problem, the present invention adopts a knowledge distillation algorithm and a quantization method.

[0095] Generally speaking, lightweight models have fewer weights. Therefore, when a large amount of data is used to train a small model, the typical training method cannot fully reflect the variability and diversity of the training data, resulting in the performance of the small model being far inferior to that of the large model. Knowledge distillation is different from the typical training method. It treats the high-performance network model as the teacher model and the newly established small model as the student model, and then trains them with the training data. In the intermediate layers of each stage, the student model is also trained to make its calculation results the same as those of the teacher model. As a result, both the total output of the student model and the output of the intermediate layer will be very similar to that of the teacher model. In other words, after using the knowledge distillation method, in addition to the output, a student model that is almost similar to the teacher model can be obtained in the internal intermediate layer, and its performance can be maintained.

[0096] Knowledge distillation is a feature extraction and training method based on knowledge. This paper adopts this method to achieve a model compression method that reduces computing and storage requirements while maintaining excellent network model performance. The knowledge distillation algorithm of the present invention includes the following steps:

[0097] S1. Initialization: Prepare labeled and unlabeled training data, prepare the teacher model (Teacher), and initialize the weights of the student model (Student).

[0098] S2. Generate input data from training data.

[0099] S3. Further calculate the weights of all layers in the student model (Student).

[0100] S4. Loss calculation:

[0101]

[0102] S5. Backward: Update the weight of the student model according to Loss L.

[0103] If L≥e, jump to S2.

[0104] In addition, quantization technology is used to convert floating-point operations into integer operations, which is the most commonly used method to reduce model capacity and computational cost. This quantization method converts all floating-point operations into integer operations. The calculation error is not large, which can minimize the performance degradation. It can also reduce the model capacity to 1 / 4 and the computational cost to more than half. Quantization itself is to reduce the computational cost and weight capacity by converting floating-point operations into integer operations. The operation with the highest computational cost in deep neural networks is the convolution operation. Therefore, the quantization method is used to reduce the computational cost of the convolution operation, which is the main purpose of quantization.

[0105] S1. The convolution operation is implemented according to the following formula:

[0106]

[0107] Here, I k is the input of the convolution, O m is the output of the convolution, W km are the weight coefficients of the convolution, which are all floating point numbers, and floating point operations will be performed from now on.

[0108] S2. Then convert the floating point number to an integer using the following formula:

[0109]

[0110] S3, then according to integer operation:

[0111]

[0112] S4. Calculate O m :

[0113] C=A·B

[0114] Here, A and B are quantization coefficients for input data and weight coefficients, respectively, N = 256, and round() is a rounding function. As a result, all floating point operations are converted to integer operations, reducing the computational cost. In addition, after converting the floating point weights to int8 integers, the weight capacity is reduced to 1 / 4.

[0115] Finally, we used knowledge distillation and quantization methods to reduce the storage capacity and computing cost to a few tenths of the initial model. The performance comparison between the large model and the small model obtained by various compression methods is shown in Table 2. Finally, this high-performance model was run on a main control chip with a computing power of 0.3 to 1 Tops, reaching a speed of 5 fps.

[0116] Table 2. Comparison between large models and small models obtained by various compression methods

[0117]

[0118]

[0119] In order to achieve better performance, the palm vein recognition technology of the present invention utilizes the normalization processing technology of enhanced biometric information and a lightweight, more optimized network model, which further improves the palm vein recognition technology with security, concealment, accuracy, reliability and security, and is more suitable for all biometric technology fields, especially the smart lock field.

[0120] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the method of the present invention and its core idea. The above is only a preferred implementation method of the present invention. It should be pointed out that due to the limitations of textual expression, there are objectively infinite specific structures. For ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements, modifications or changes can be made, and the above technical features can be combined in an appropriate manner; these improvements, modifications, changes or combinations, or the direct application of the concept and technical solution of the invention to other occasions without improvement, should be regarded as the scope of protection of the present invention.

Claims

1. A palm vein recognition method, wherein the method introduces a compression method of a deep neural network to achieve palm vein recognition with superior performance, characterized in that: The method comprises the following steps: S1, obtaining a palm vein image from a camera; S2. Normalizing the input image, wherein the normalization enhances the vein information including the basic factors required for biometrics and suppresses the adverse effects caused by external factors; the normalization adopts the adaptive histogram equalization (CLAHE) and LAGCCH method. The steps of the adaptive histogram equalization (CLAHE) are to enhance the shallow vein image information by calculating the histogram of the original image and transforming the image of the equalized histogram; then, the phenomenon of increasing image noise is limited by a threshold, the vein information is enhanced, and the changes of some redundant information such as shadows are suppressed. Specifically, the following steps are included: S1, decompose the image into multiple local areas, and calculate the histogram of each local area; S2. In order to effectively adjust the contrast of the image, a threshold is set to limit excessive contrast enhancement effects; S3. According to the histogram integral value of each field, calculate the normalized histogram transformation function: g=[g max -g min ]*P(f)+g min In the above formula, g is the newly calculated pixel value, g max is the maximum pixel value, g min is the minimum pixel value, P(f) is the distribution function; The LAGCCH method is to first divide the whole domain into subdomains, then perform an AGC method based on a histogram integral function in each subdomain, and then combine the images in the overlapping areas using the bilinear interpolation principle, and finally obtain a safety image with enhanced whole domain contrast; specifically, the following steps are included: S1, the input image is divided into N sub-domains; S2. Calculate the histogram integral in each subdomain. The specific formula is as follows: Among them, H n (p) is the histogram integral function, n is 1 to N, R n For the nth field, I n (x, y) is the pixel value of (x, y); S3. Obtain the adaptive gamma correction function based on the histogram integral value: G n (p)=F(H n )(p) Among them, G n (p): gamma correction function, F: transformation function; S4. Perform a gamma correction function on each pixel in the sub-domain: in, is the pixel value calculated in the nth subdomain; S5. Generate the global image from the calculated subdomain using bilinear interpolation method. The specific formula is as follows: in, is the updated pixel value; S3, determine the palm area; S4, extract features using the model generated by the knowledge distillation algorithm and quantization method; S5. Implement palm vein comparison and recognition on the product.

2. A palm vein recognition method according to claim 1, characterized in that: The knowledge distillation algorithm comprises the following steps: S1. Initialization: Prepare labeled and unlabeled training data, prepare the teacher model, and initialize the weights of the student model. S2, generating input data from training data; S3, further calculate the weights of all layers in the student model (Student); S4. Loss calculation: S5. Update the weight of the student model (Student) according to Loss L. If L≥e, jump to S2.

3. A palm vein recognition method according to claim 1, characterized in that: The quantization method described above can reduce the model capacity to 1 / 4 and the computational cost to more than half. This method converts all floating-point operations into integer operations, which can minimize the performance degradation. This is because quantization itself reduces the computational cost and weight capacity by converting floating-point operations into integer operations. The operation with the highest computational cost in deep neural networks is the convolution operation. Therefore, the quantization method is used to reduce the computational cost of the convolution operation. This is the main purpose of quantization. The specific steps are as follows: S1. The convolution operation is implemented according to the following formula: Here, I k is the input of the convolution, O m is the output of the convolution, W km is the weight coefficient of the convolution, which is a floating point number, and floating point operations will be performed from now on; S2. Convert the floating point number to an integer using the following formula: S3, according to integer operation: S4. Calculate O m : Here, A and B are quantization coefficients for input data and weight coefficients, respectively, N=256, and round() is a rounding function; as a result, all floating-point operations are converted to integer operations, reducing the computational cost; in addition, after converting the floating-point weights to int8 integers, the weight capacity is reduced to 1 / 4.