Deep learning based multi-level palm vein image generation method and system

By combining a lightweight probabilistic model with a multi-level hybrid loss function, the problem of loss function convergence in palm vein image generation is solved, and the generation of realistic and diverse palm vein images is achieved efficiently.

CN117636092BActive Publication Date: 2026-11-27SHENZHEN MAXVISION TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311545189.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-17
Publication Date
2026-11-27
Estimated Expiration
2043-11-17

AI Technical Summary

Technical Problem

In existing technologies, the loss function is difficult to converge during the generation of palm vein images, resulting in unrealistic palm vein features. Furthermore, existing neural networks suffer from gradient vanishing during batch generation, leading to insufficient diversity in the generated data.

Method used

A lightweight probabilistic model is used for training. Gaussian noise is added through the forward diffusion process and noise is removed through the backward diffusion process. The training process is supervised by a multi-level hybrid loss function. When the lightweight probabilistic model has difficulty converging, it returns to the initial state for retraining until the multi-level hybrid loss function converges, generating high-quality palm vein images.

Benefits of technology

By enriching the diversity of palm vein image samples, the realism of generated vein features and training efficiency are improved, the problem of loss function convergence is solved, and the generated palm vein images are more realistic and diverse.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117636092B_ABST
    Figure CN117636092B_ABST
Patent Text Reader

Abstract

The application provides a deep learning-based multi-level palm vein image generation method and system. The deep learning-based multi-level palm vein image generation method comprises the following steps: inputting a palm vein image training set into a lightweight probability model; the lightweight probability model gradually adds Gaussian noise to the palm vein image through a forward diffusion process, and generates a palm vein image sample through a backward diffusion process; a multi-level hybrid loss function is used to supervise the training process of each level of the lightweight probability model to complete the generation of the palm vein image sample; when the multi-level hybrid loss function is greater than the global minimum average loss of each generation, the lightweight probability model returns to the initial state for retraining until the multi-level hybrid loss function converges, and a trained output model is obtained. The deep learning-based multi-level palm vein image generation method and system can obtain more realistic vein features and solve the convergence problem.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of deep learning technology, and more specifically, relates to a method and system for generating multi-level palm vein images based on deep learning. Background Technology

[0002] Palm vein recognition technology is a type of biometric technology within artificial intelligence. It utilizes the strong absorption of infrared light by the capillaries in our palms, causing the palm image to appear as darker lines at the subcutaneous veins when illuminated by near-infrared light. This technology is then used to identify individuals.

[0003] Palm vein recognition technology relies on deep learning target recognition models. Training these models requires a large amount of palm vein image data, which is considered private. While existing, publicly available but limited amounts of palm vein image data can be used to train a generative model to generate a large number of palm vein images, unlike images used in common face recognition, palm vein images contain both background and foreground, with the foreground also containing palm print interference. This makes it difficult to capture palm vein features. Consequently, existing neural networks often struggle to generate sufficiently diverse data during batch palm vein image generation training due to the influence of various parameters on the model. This leads to gradient vanishing in adversarial training, causing problems such as difficulty in loss function convergence and inaccurate generated palm vein features. Summary of the Invention

[0004] The purpose of this application is to provide a multi-level palm vein image generation method and system based on deep learning, so as to solve the technical problems of the loss function being difficult to converge and the generated palm vein features being unrealistic in the process of generating palm vein images in the prior art.

[0005] To achieve the above objectives, the technical solution adopted in this application is: to provide a multi-level palm vein image generation method based on deep learning, including the following steps:

[0006] Input the training set of palm vein images into a lightweight probabilistic model;

[0007] The lightweight probabilistic model gradually adds Gaussian noise to the palm vein image through a forward diffusion process and generates palm vein image samples by denoising through a backward diffusion process.

[0008] The training process for generating palm vein image samples is completed by supervising each level of the lightweight probabilistic model using a multi-level hybrid loss function. When the multi-level hybrid loss function is greater than the global minimum average loss of each generation, the lightweight probabilistic model returns to the initial state for retraining until the multi-level hybrid loss function converges, and the trained output model is obtained.

[0009] The trained output model is set to a large-scale seed and then batch-outputted palm vein images.

[0010] Preferably, after inputting the palm vein image training set into the lightweight probabilistic model, the following steps are included:

[0011] The lightweight probabilistic model includes a downsampling block, a ViT encoder, a bottleneck layer, and an upsampling block.

[0012] The downsampling block uses group normalization and Gaussian error linear units to normalize and activate the input palm vein image x;

[0013] The downsampling block uses a max pooling layer and two convolutional blocks to downgrade the palm vein image x;

[0014] Using SiLU activation diffusion step size t, the generated temporal embedding vector is added to the palm vein image x and processed by a ViT encoder with local self-attention, repeating the downsampling and ViT encoder processing process.

[0015] The bottleneck layer consists of three consecutive convolutional blocks, which are combined with an upsampling block to perform an amplification operation.

[0016] Downsampling was performed twice with a factor of 4, and during the up-expanded palm vein image x, the temporal embedding vector obtained from the diffusion step size t was added in the same manner as the downsampling.

[0017] The palm vein image x is fed into the last convolution in the downsampling block with a kernel size of 1.

[0018] Preferably, during the forward diffusion process, x is obtained from the data distribution q(x). t Sampling was performed using the variance table β. t Add noise to the input variable x t-1 In the middle, obtain q(x) t |x t-1 ) of x t Use the following formula:

[0019]

[0020] Where x t The sampled values ​​are the input values ​​at a diffusion step size t, where N is a Gaussian distribution and μ is the input value. t It is the average value during the forward diffusion process, ∑ t It is the mean square error during forward diffusion, β t The values ​​are a diagonal matrix, because I is the identity matrix.

[0021] Preferably, during the backdiffusion process, the model learns the distribution p θ (x t-1 |x tThe process is based on the original distribution q(x). t-1 |x t The approximate value of ) is obtained by gradually removing noise in each backdiffusion step and learning the distribution p. θ (x t-1 |x t The process is defined as follows:

[0022] p θ (x t-1 |x t )=N(x t-1 μ θ (x t ,t),∑ θ (x t ,t)),

[0023] Where μ θ It is the average value during the backward diffusion process, ∑ θ It is the mean square error during the backward diffusion process.

[0024] Preferably, the multi-level hybrid loss function is obtained by weighted summation of the function loss of each layer, and the function loss of each layer is obtained by weighted summation of the edge loss function and the connected region loss function. The edge loss function focuses on the target edge, and the connected region loss function focuses on connected regions formed by pixels of the same category having similar intensity values.

[0025] Preferably, the edge loss function is the IOU loss function.

[0026] Preferably, the connected component loss function adopts a hybrid loss function that combines the structural similarity loss function and the cross-entropy loss function.

[0027] Preferably, after the number of times the lightweight probabilistic model returns to the initial state for retraining reaches the maximum repetition threshold, the palm vein image training set is replaced.

[0028] This application also provides a deep learning-based multi-level palm vein image generation system, which is used to run the deep learning-based multi-level palm vein image generation method described above.

[0029] The beneficial effects of the deep learning-based multi-level palm vein image generation method and system provided in this application are as follows: Compared with the prior art, while introducing a large amount of noise through the forward diffusion process, the randomness of the noise is also increased through the backward diffusion process, enriching the diversity of palm vein image samples. This application uses a multi-level hybrid loss function to supervise the training process of palm vein image sample generation for each level of the lightweight probabilistic model, which provides more accurate supervision of the training process of precise image segmentation at each level. It combines the foreground and background of different scenes to generate more realistic vein features and solves the convergence problem by combining the back-to-initial training mode. Attached Figure Description

[0030] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0031] Figure 1 A flowchart illustrating the deep learning-based multi-level palm vein image generation method provided in this application embodiment;

[0032] Figure 2 A schematic flowchart of another form of the deep learning-based multi-level palm vein image generation method provided in the embodiments of this application;

[0033] Figure 3 Based on Figure 1 This is a partial illustration of the effect of generating palm vein images using the method. Detailed Implementation

[0034] To make the technical problems, technical solutions, and beneficial effects to be solved by this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and are not intended to limit the scope of this application.

[0035] It should be noted that when a component is referred to as being "fixed to" or "set on" another component, it can be directly on or indirectly on that other component. When a component is referred to as being "connected to" another component, it can be directly connected to or indirectly connected to that other component.

[0036] It should be understood that the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.

[0037] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0038] Please refer to the following: Figures 1 to 3 The method for generating multi-level palm vein images based on deep learning, as provided in the embodiments of this application, will now be described. The method for generating multi-level palm vein images based on deep learning includes:

[0039] Step S1: Input the palm vein image training set into the lightweight probabilistic model;

[0040] Step S2: The lightweight probabilistic model gradually adds Gaussian noise to the palm vein image through a forward diffusion process and generates palm vein image samples by denoising through a backward diffusion process.

[0041] Step S3: The training process of generating palm vein image samples is completed by supervising each level of the lightweight probabilistic model using a multi-level hybrid loss function. When the multi-level hybrid loss function is greater than the global minimum average loss of each generation, the lightweight probabilistic model returns to the initial state for retraining until the multi-level hybrid loss function converges, and the trained output model is obtained.

[0042] Step S4: Set the trained output model to generate palm vein images in batches using a large-scale seed.

[0043] It is understood that in step S1, the palm vein image training set is the input image for training the palm vein recognition model. The input image is a palm image acquired under infrared light and preprocessed, such as cropping, brightness adjustment, and interference removal, to better display vein features.

[0044] Unlike conventional training sets, the palm vein image training set only needs to retain the palm vein features of the palm center, and the interference from background factors is small. Therefore, this application adopts a lightweight probabilistic model architecture. The lightweight probabilistic model converges faster. This architecture has high computational efficiency, consumes fewer resources, reduces computational costs, and reduces memory complexity.

[0045] In step S2, the forward diffusion process introduces a large amount of noise, while the backward diffusion process amplifies the randomness of the noise. This enriches the diversity of palm vein image samples, resulting in more palm vein image samples compared to existing technologies, based on the same number of palm vein image training sets. However, when the forward diffusion process introduces outlier noise, the backward diffusion process may produce unrealistic results, leading to convergence difficulties in lightweight probabilistic models.

[0046] Thus, in step S3, the convergence problem is addressed in two ways. First, since palm vein images contain background and foreground components, and the vein features in the foreground are subtle, while palm prints also interfere, this application employs a multi-level hybrid loss function to supervise the training process of palm vein image sample generation at each level of the lightweight probabilistic model. This multi-level hybrid loss function provides more precise supervision of the training process for accurate image segmentation at each level, helping the network converge better during training, reducing the number of iterations, and facilitating efficient generation by quickly combining foreground and background from different scenes to obtain more realistic vein features. Second, when faced with outlier noise and unrealistic results, by calculating the multi-level hybrid loss function and the global minimum average loss of each generation, the lightweight probabilistic model can be returned to its initial state for retraining, enhancing its robustness to randomness and outliers.

[0047] In step S4, after the multi-level hybrid loss function converges, the trained output model is obtained. The trained output model is then set with a large-scale seed to batch output palm vein generation images. For example, to generate palm veins with 100wID, the seed range can be set to 1-1000001.

[0048] The deep learning-based multi-level palm vein image generation method provided in this application, compared with the prior art, can introduce a large amount of noise through the forward diffusion process, and also amplify the randomness of the noise through the backward diffusion process, thus enriching the diversity of palm vein image samples. This application uses a multi-level hybrid loss function to supervise the training process of palm vein image sample generation for each level of the lightweight probabilistic model, and the training process of precise image segmentation at each level is more accurately supervised. It combines the foreground and background of different scenes to generate more realistic vein features, and combines the back-to-initial training mode to solve the convergence problem.

[0049] In another embodiment of this application, after inputting the palm vein image training set into a lightweight probabilistic model, the steps include:

[0050] The lightweight probabilistic model includes a downsampling block, a ViT encoder, a bottleneck layer, and an upsampling block.

[0051] The downsampling block uses group normalization and Gaussian error linear units to normalize and activate the input palm vein image x;

[0052] The downsampling block uses a max pooling layer and two convolutional blocks to downgrade the palm vein image x;

[0053] Using SiLU activation diffusion step size t, the generated temporal embedding vector is added to the palm vein image x and processed by a ViT encoder with local self-attention, repeating the downsampling and ViT encoder processing process.

[0054] The bottleneck layer consists of three consecutive convolutional blocks, which are combined with an upsampling block to perform an amplification operation.

[0055] Downsampling was performed twice with a factor of 4, and during the up-expanded palm vein image x, the temporal embedding vector obtained from the diffusion step size t was added in the same manner as the downsampling.

[0056] The palm vein image x is fed into the last convolution in the downsampling block with a kernel size of 1.

[0057] Understandably, the initial downsampling block has 128 channels, a kernel size, and padding equal to 3 and 1 respectively in a 2D convolution. The downsampling block uses a max-pooling layer with a window size of 4 and two convolutional blocks to downgrade the palm vein image x. Downsampling, visual transformation, magnification, and upsampling are implemented based on a lightweight probabilistic model.

[0058] Specifically, during the forward diffusion process, x is obtained from the data distribution q(x). t Sampling was performed using the variance table β. t Add noise to the input variable x t-1 In the middle, obtain q(x) t |x t-1 ) of x t Use the following formula:

[0059]

[0060] Where x t The input sample value is given by the diffusion step size t, where N is a Gaussian distribution and μ is the input sample value. t It is the average value during the forward diffusion process, ∑ t It is the mean square error during forward diffusion, βt The values ​​are a diagonal matrix, because I is the identity matrix.

[0061] It is understandable that noise is applied to x0 at a time ratio of 1:T to obtain x. t Its probability is defined as:

[0062]

[0063] For x t Perform sampling and reuse q(x) 1:T |x0) is sampled a total of T times, using the reparameterization technique at any time step t, defined as follows:

[0064]

[0065] Where α t =1-β t , Noise ∈ 0, ..., ∈ t-2 ,∈ t-1 ~N(0,I).

[0066] The reparameterization technique in this invention pre-calculates α for any diffusion step t in a single operation. t and With respect to x t Perform sampling and output x using the following formula. t :

[0067]

[0068] Wherein, β1 and β t The values ​​are 0.0001 and 0.02 respectively, and the cosine noise scheduler makes the network converge faster.

[0069] Specifically, during the backdiffusion process, the model learns the distribution p θ (x t-1 |x t The process is based on the original distribution q(x). t-1 |x t The approximate value of ) is obtained by gradually removing noise in each backdiffusion step and learning the distribution p. θ (x t-1 |x t The process is defined as follows:

[0070] p θ (x t-1 |x t )=N(x t-1 μ θ (x t ,t),∑ θ (x t,t)),

[0071] Where μ θ It is the average value during the backward diffusion process, ∑ θ It is the mean square error during the backward diffusion process.

[0072] Understandably, applying this inverse formula to all diffusion steps involves taking the noisy image as input and predicting the noise, further transforming the model from the complete noise input x... t The image is sampled and repeated T times from t=T to t=1 to obtain x0.

[0073] Specifically, the multi-level hybrid loss function is obtained by weighted summation of the function loss of each layer, and the function loss of each layer is obtained by weighted summation of the edge loss function and the connected region loss function. The edge loss function focuses on the target edge, and the connected region loss function focuses on the connected regions formed by pixels of the same category with similar intensity values.

[0074] Understandably, the edge loss function can be used to measure the difference between the predicted result and the true label at the target edge. During the continuous learning and iteration process of training, the loss of each pixel is related to the local patch near that point. By continuously strengthening the loss weight at the target edge, i.e., the palm edge, non-edge regions can be effectively suppressed, making it highly sensitive to local regions. Conversely, the connected component loss function focuses on the features of connected regions, i.e., the palm region in the foreground. By continuously strengthening the loss function for connected regions, more realistic vein features can be generated. Thus, combining the edge loss function and the connected component loss function to supervise the training process of palm vein image sample generation can accelerate the convergence effect and promote the output model to generate high-quality palm vein images.

[0075] Specifically, the edge loss function adopts the IOU loss function.

[0076] It is understandable that the IOU loss function l iou The formula for expressing it is: in Let G(r,c) represent the intersection of the predicted bounding box and the ground truth bounding box within a range of length H and width W. Let G(r,c) represent the ground truth value at the r-th row and c-th column, and S(r,c) represent the predicted value at the r-th row and c-th column.

[0077] Specifically, the connected component loss function adopts a hybrid loss function that combines the structural similarity loss function and the cross-entropy loss function.

[0078] Understandably, the structural similarity loss function is used for pixel similarity comparison, the cross-entropy loss function is used to maintain the smooth gradient of all pixels, and when combined with the IOU loss function, it can take into account global features, edge features, and local features.

[0079] Furthermore, since the input palm vein image training set inevitably contains palm print interference, a multi-level hybrid loss function is used to supervise the training process of palm vein image sample generation. By adjusting the weight of the function loss of each layer, the function loss weight of the layer sensitive to palm vein features is increased, while the function loss weight of the layer sensitive to palm print features is decreased. This ensures accurate image segmentation during the training process and outputs clear and interference-resistant palm vein generated images.

[0080] It is worth noting that the formulas for the structural similarity loss function and the cross-entropy loss function are already available and will not be detailed here.

[0081] In another embodiment of this application, in step S3, after the number of times the lightweight probabilistic model returns to the initial state for retraining reaches the maximum repetition threshold, the palm vein image training set is replaced.

[0082] Understandably, when the multi-level mixed loss function exceeds the global minimum average loss of each generation, the lightweight probabilistic model returns to its initial state and is retrained using the current palm vein image training set. To further enhance the robustness of the lightweight probabilistic model to randomness and outliers, the maximum number of repetitions threshold is set to 10. This approach can effectively reduce the number of iterations and the total training time, while ensuring a reduction in the generation of fake images and avoiding low FID scores.

[0083] This application also provides a deep learning-based multi-level palm vein image generation system, which is used to run the deep learning-based multi-level palm vein image generation method described above.

[0084] It is understood that, since the deep learning-based multi-level palm vein image generation system is used to run the deep learning-based multi-level palm vein image generation method described above, it also has the same beneficial effects as the deep learning-based multi-level palm vein image generation method.

[0085] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A multi-level palm vein image generation method based on deep learning, characterized in that, include: Input the training set of palm vein images into a lightweight probabilistic model; The lightweight probabilistic model gradually adds Gaussian noise to the palm vein image through a forward diffusion process and generates palm vein image samples by denoising through a backward diffusion process. The training process for generating palm vein image samples is completed by supervising each level of the lightweight probabilistic model using a multi-level hybrid loss function. When the multi-level hybrid loss function is greater than the global minimum average loss of each generation, the lightweight probabilistic model returns to the initial state for retraining until the multi-level hybrid loss function converges, and the trained output model is obtained. The trained output model is set to a large-scale seed and batch-output palm vein images; After inputting the palm vein image training set into the lightweight probabilistic model, the following steps are included: The lightweight probabilistic model includes a downsampling block, a ViT encoder, a bottleneck layer, and an upsampling block. The downsampling block uses group normalization and Gaussian error linear units to normalize and activate the input palm vein image x; The downsampling block uses a max pooling layer and two convolutional blocks to downgrade the palm vein image x; Using SiLU activation diffusion step size t, the generated temporal embedding vector is added to the palm vein image x and processed by a ViT encoder with local self-attention, repeating the downsampling and ViT encoder processing process. The bottleneck layer consists of three consecutive convolutional blocks, which are combined with an upsampling block to perform an amplification operation. Downsampling was performed twice with a factor of 4, and during the up-expanded palm vein image x, the temporal embedding vector obtained from the diffusion step size t was added in the same manner as the downsampling. The palm vein image x is fed into the last convolution in the downsampling block with a kernel size of 1; During the forward diffusion process, data is extracted from the data distribution q(x). Sampling was performed using a variance table. Add noise to the input variable In the middle, obtain with of Use the following formula: in The sampled values ​​are the input values ​​at a diffusion step size t, where N is a Gaussian distribution. It is the average value during the forward diffusion process. It is the mean square error during forward diffusion. The diagonal matrix of values, because It is the identity matrix; During the backdiffusion process, the model learns the distribution. The process is the original distribution. An approximation of the value is obtained by gradually removing noise in each backdiffusion step and learning the distribution. The process is defined as follows: , Where μ θ It is the average value during the backward diffusion process. It is the mean square error during the backward diffusion process.

2. The method for generating multi-level palm vein images based on deep learning as described in claim 1, characterized in that, The multi-level hybrid loss function is obtained by weighted summation of the function loss of each layer. The function loss of each layer is obtained by weighted summation of the edge loss function and the connected region loss function. The edge loss function focuses on the target edge, and the connected region loss function focuses on connected regions formed by pixels of the same category with similar intensity values.

3. The method for generating multi-level palm vein images based on deep learning as described in claim 2, characterized in that, The edge loss function adopts the IOU loss function.

4. The method for generating multi-level palm vein images based on deep learning as described in claim 3, characterized in that, The connected component loss function adopts a hybrid loss function that combines the structural similarity loss function and the cross-entropy loss function.

5. The method for generating multi-level palm vein images based on deep learning as described in claim 1, characterized in that, After the number of times the lightweight probabilistic model returns to the initial state for retraining reaches the maximum repetition threshold, the training set of palm vein images is changed.

6. A multi-level palm vein image generation system based on deep learning, characterized in that, The deep learning-based multi-level palm vein image generation system is used to run the deep learning-based multi-level palm vein image generation method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Eyeball segmentation method and device based on convolutional neural network and mixed loss function

    CN113706542A