A palm vein recognition method and system based on NEPVR

By introducing normalization and cascade attention mechanisms into the EfficientViT backbone network, combined with cross-entropy and triplet loss functions, the NEPVR palm vein recognition model was constructed, which solved the problems of low recognition accuracy and low computational efficiency in the existing technology. , achieving efficient and high-precision palm vein recognition.

CN118279940BActive Publication Date: 2024-08-27FOSHAN UNIVERSITY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410698093.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-27
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

Existing palm vein recognition technology has problems such as low recognition accuracy, low computational efficiency, and high model complexity. In particular, methods based on geometric features, texture analysis, and deep learning have deficiencies in rotation, scaling, noise, and computational cost.

Method used

The NEPVR method based on the EfficientViT backbone network is adopted, the normalized attention mechanism and the cascade attention mechanism are introduced, and through the overlapping block embedding layer, the improved EfficientViT module and the subsampling module, combined with the cross-entropy loss and triplet loss function, an efficient Palm vein recognition model.

Benefits of technology

It improves the palm vein recognition model's attention to important information, reduces model parameter redundancy, improves recognition accuracy and calculation efficiency, and achieves high-precision and efficient palm vein recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118279940B
    Figure CN118279940B
Patent Text Reader

Abstract

The present invention discloses a palm vein recognition method and system based on NEPVR, the method comprising: acquiring a palm vein image and performing ROI extraction processing to obtain a palm vein ROI area; based on the EfficientViT backbone network, introducing a normalized attention mechanism module and a cascade attention mechanism module to construct a palm vein recognition model (NEPVR); based on the palm vein recognition model, performing palm vein recognition processing on the palm vein ROI area to obtain a palm vein recognition result. The embodiment of the present invention can improve the image recognition computational efficiency and image recognition accuracy of the palm vein recognition model by increasing the attention of the palm vein recognition model to important image information and reducing the redundancy of model parameters. As a palm vein recognition method and system based on NEPVR, the present invention can be widely used in the field of image recognition technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image recognition, and in particular to a palm vein recognition method and system based on NEPVR. Background Art

[0002] Palm vein recognition uses near-infrared light to illuminate the palm, and relies on the absorption characteristics of hemoglobin in the blood to make the palm veins appear dark, thereby achieving identity recognition. At present, the feature extraction methods used for palm vein recognition are divided into four categories: methods based on geometric features, methods based on texture analysis, methods based on space transformation, and methods based on deep learning. Among them, for the method based on geometric features, it uses geometric elements such as points, lines or curves to extract the feature information of the palm vein image, but the discrimination ability is low and it is easily affected by rotation, scaling and translation. For the method based on texture analysis, it converts the palm vein image to another domain through some kind of mapping to extract the palm vein texture features, but it is easily affected by image noise, so the recognition performance is not high. For the method based on space transformation, it extracts features by projecting the palm vein image from high-dimensional space to low-dimensional space, but this type of method is sensitive to data transformation and requires high computational costs. At present, the method based on deep learning has the problem that the model structure is too complex, which leads to a large amount of calculation, and the feature extraction process is cumbersome and inefficient, and it is difficult to capture sufficiently effective features, which leads to low accuracy of existing palm vein recognition. Summary of the invention

[0003] In order to solve the above technical problems, the purpose of the present invention is to provide a palm vein recognition method and system based on NEPVR, which can improve the image recognition calculation efficiency and image recognition accuracy of the palm vein recognition model by increasing the attention of the palm vein recognition model to important image information and reducing the redundancy of model parameters.

[0004] The first technical solution adopted by the present invention is: a palm vein recognition method based on NEPVR, comprising the following steps:

[0005] Acquire the palm vein image and perform ROI extraction processing to obtain the palm vein ROI area;

[0006] Based on the EfficientViT backbone network, the normalized attention mechanism module and the cascade attention mechanism module are introduced to build a palm vein recognition model (NEPVR);

[0007] Based on the palm vein recognition model, palm vein recognition processing is performed on the palm vein ROI area to obtain the palm vein recognition result.

[0008] Furthermore, the step of acquiring the palm vein image and performing ROI extraction processing to obtain the palm vein ROI area specifically includes:

[0009] Acquire palm vein images;

[0010] The palm vein image is segmented by a global single threshold segmentation algorithm to obtain a palm vein binary image.

[0011] The palm key point positioning processing of the palm vein binary image is performed by distance transformation and boundary tracking algorithm to obtain the key point coordinates of the palm vein binary image;

[0012] Perform posture correction and ROI interception processing on the key point coordinates of the palm vein binary image to obtain a preliminary palm vein ROI area;

[0013] The preliminary palm vein ROI area is subjected to image enhancement processing to obtain the palm vein ROI area.

[0014] Furthermore, the palm vein recognition model specifically includes an overlapping block embedding layer, a first improved EfficientViT module, a first EfficientViT subsampling module, a second improved EfficientViT module, a second EfficientViT subsampling module, a third improved EfficientViT module, an average pooling layer, a batch normalization layer, an L2 normalization layer, a feature embedding layer and a comprehensive loss layer, wherein:

[0015] The first improved EfficientViT module, the second improved EfficientViT module and the third improved EfficientViT module each include a first token interaction layer, a first feedforward neural network, a cascaded attention module, a second token interaction layer, a second feedforward neural network and a normalized attention module;

[0016] The cascaded attention module includes several multi-head attention modules and a connection projection layer;

[0017] The normalized attention module includes a channel attention module and a spatial attention module.

[0018] Furthermore, the step of performing palm vein recognition processing on the palm vein ROI area based on the palm vein recognition model to obtain the palm vein recognition result specifically includes:

[0019] Input the palm vein ROI area into the palm vein recognition model;

[0020] Based on the overlapping block embedding layer of the palm vein recognition model, the palm vein ROI area is decomposed and transformed to obtain the vector format data of the palm vein ROI area;

[0021] Based on the first improved EfficientViT module of the palm vein recognition model, feature extraction processing is performed on the vector format data of the palm vein ROI area to obtain first palm vein ROI area feature data;

[0022] Based on the first EfficientViT sub-sampling module of the palm vein recognition model, the first palm vein ROI regional feature data is subjected to dimensionality reduction processing to obtain the first palm vein ROI regional feature data after dimensionality reduction;

[0023] Based on the second improved EfficientViT module of the palm vein recognition model, feature extraction processing is performed on the first palm vein ROI region feature data after dimension reduction to obtain the second palm vein ROI region feature data;

[0024] Based on the second EfficientViT sub-sampling module of the palm vein recognition model, the second palm vein ROI regional feature data is subjected to dimensionality reduction processing to obtain the second palm vein ROI regional feature data after dimensionality reduction;

[0025] Based on the third improved EfficientViT module of the palm vein recognition model, feature extraction processing is performed on the second palm vein ROI region feature data after dimension reduction to obtain third palm vein ROI region feature data;

[0026] Based on the average pooling layer of the palm vein recognition model, average pooling is performed on the third palm vein ROI region feature data to obtain a palm vein ROI region feature data set;

[0027] Based on the batch normalization layer of the palm vein recognition model, the palm vein ROI regional feature dataset is normalized to obtain a normalized palm vein ROI regional feature dataset;

[0028] Based on the L2 normalization layer of the palm vein recognition model, the normalized palm vein ROI regional feature dataset is normalized to obtain a standardized palm vein ROI regional feature dataset;

[0029] Based on the feature embedding layer and the comprehensive loss layer of the palm vein recognition model, the standardized palm vein ROI area feature dataset is subjected to feature weight embedding processing to obtain the palm vein recognition result.

[0030] Furthermore, the first improved EfficientViT module based on the palm vein recognition model performs feature extraction processing on the vector format data of the palm vein ROI region to obtain the first palm vein ROI region feature data, which specifically includes:

[0031] Inputting the vector format data of the palm vein ROI region into the first improved EfficientViT module of the palm vein recognition model;

[0032] Based on the first token interaction layer of the first improved EfficientViT module, local feature extraction processing is performed on the vector format data of the palm vein ROI area to obtain local feature data of the first palm vein ROI area;

[0033] Based on the first feedforward neural network of the first improved EfficientViT module, a nonlinear transformation and mapping process is performed on the local feature data of the first palm vein ROI region to obtain the mapped local feature data of the first palm vein ROI region;

[0034] Based on the cascade attention module of the first improved EfficientViT module, attention calculation is performed on the local feature data of the mapped first palm vein ROI area to obtain the attention feature value of the palm vein ROI area;

[0035] Based on the second token interaction layer of the first improved EfficientViT module, local feature extraction processing is performed on the attention feature value of the palm vein ROI area to obtain local feature data of the second palm vein ROI area;

[0036] Based on the second feedforward neural network of the first improved EfficientViT module, a nonlinear transformation and mapping process is performed on the local feature data of the second palm vein ROI region to obtain the mapped local feature data of the second palm vein ROI region;

[0037] Based on the normalized attention module of the first improved EfficientViT module, global feature extraction processing is performed on the local feature data of the mapped second palm vein ROI area to obtain feature data of the first palm vein ROI area.

[0038] Furthermore, the loss function of the comprehensive loss layer of the palm vein recognition model includes a cross entropy loss function and a triplet loss function. The expression of the loss function of the comprehensive loss layer is specifically as follows:

[0039] ;

[0040] ;

[0041] ;

[0042] In the above formula, represents the loss function of the comprehensive loss layer, represents the cross entropy loss function, represents the triplet loss function, represents the weight parameter of the cross entropy loss function, represents the weight parameter of the triplet loss function, represents the training batch size, represents the weight of the fully connected layer, Represents the input feature data, Indicates The probability of the class, and Indicates the serial number of samples in each batch, represents the anchor point sample, represents a positive sample, represents negative samples, Represents the boundary parameter.

[0043] Furthermore, the cascade attention module based on the first improved EfficientViT module performs attention calculation on the local feature data of the mapped first palm vein ROI region to obtain the attention feature value of the palm vein ROI region, which specifically includes:

[0044] Inputting the mapped local feature data of the first palm vein ROI region into the cascade attention module of the first improved EfficientViT module;

[0045] Based on several multi-head attention modules of the cascade attention module, feature splitting and attention calculation processing are performed on the local feature data of the mapped first palm vein ROI area to obtain several local feature maps of the first palm vein ROI area;

[0046] Based on the connection projection layer of the cascade attention module, the local feature maps of several first palm vein ROI regions are connected and projected to obtain the attention feature value of the palm vein ROI region.

[0047] Furthermore, the normalized attention module based on the first improved EfficientViT module performs global feature extraction processing on the local feature data of the mapped second palm vein ROI region to obtain the feature data of the first palm vein ROI region, which specifically includes:

[0048] Inputting the mapped local feature data of the second palm vein ROI area into the normalized attention module of the first improved EfficientViT module;

[0049] Based on the channel attention module of the normalized attention module, channel attention feature extraction processing is performed on the local feature data of the mapped second palm vein ROI area to obtain channel feature data of the first palm vein ROI area;

[0050] Based on the spatial attention module of the normalized attention module, a spatial attention feature extraction process is performed on the local feature data of the mapped second palm vein ROI area to obtain the spatial feature data of the first palm vein ROI area;

[0051] The first palm vein ROI region channel feature data and the first palm vein ROI region spatial feature data are integrated to obtain the first palm vein ROI region feature data.

[0052] The second technical solution adopted by the present invention is: a palm vein recognition system based on NEPVR, comprising:

[0053] An acquisition module is used to acquire a palm vein image and perform ROI extraction processing to obtain a palm vein ROI area;

[0054] A construction module is used to build a palm vein recognition model (NEPVR) based on the EfficientViT backbone network by introducing the normalized attention mechanism module and the cascaded attention mechanism module;

[0055] The recognition module is used to perform palm vein recognition processing on the palm vein ROI area based on the palm vein recognition model to obtain the palm vein recognition result.

[0056] The beneficial effects of the method and system of the present invention are as follows: the present invention obtains a palm vein ROI area by acquiring a palm vein image and performing ROI extraction processing, and then introduces a normalized attention mechanism module and a cascaded attention mechanism module based on the EfficientViT backbone network to construct a palm vein recognition model (NEPVR), and finally performs palm vein recognition processing based on the constructed palm vein recognition model, and uses the normalized attention mechanism module to reflect the variance and importance of each image channel and space, so as to extract more fine-grained features of the image, improve the attention of the palm vein recognition model to important information, thereby improving the recognition performance, and introducing the cascaded attention mechanism module can reduce the redundancy of model parameters, and while maintaining the model performance, improve the effective utilization rate of parameters, thereby improving the model's computational efficiency for images, and ultimately achieving high-precision and high-efficiency palm vein recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 It is a flowchart of the steps of a palm vein recognition method based on NEPVR of the present invention;

[0058] Figure 2 It is a structural block diagram of a palm vein recognition system based on NEPVR of the present invention;

[0059] Figure 3 It is a schematic diagram of the process steps of palm vein recognition provided by a specific implementation of the present invention;

[0060] Figure 4 It is a schematic diagram of the structure of the NAM-EfficientViT palm vein recognition model provided by the specific implementation of the present invention;

[0061] Figure 5 is a schematic diagram of the structure of the improved EfficientViT module provided by the specific implementation of the present invention;

[0062] Figure 6 It is a structural diagram of the cascaded attention mechanism module provided by the specific implementation of the present invention;

[0063] Figure 7 It is a schematic diagram of the channel attention mechanism structure in the NAM module provided by the specific implementation of the present invention;

[0064] Figure 8 It is a schematic diagram of the spatial attention mechanism structure in the NAM module provided by the specific implementation of the present invention. DETAILED DESCRIPTION

[0065] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only provided for the convenience of explanation and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0066] Reference Figure 1 The present invention provides a palm vein recognition method based on NEPVR, which comprises the following steps:

[0067] S1, obtaining a palm vein image and performing ROI extraction processing to obtain a palm vein ROI area;

[0068] Specifically, ROI extraction is a prerequisite for subsequent feature extraction and matching of palm vein images. ROI extraction includes three steps: palm contour segmentation, palm key point positioning and palm ROI interception. The embodiment of the present invention first performs global single threshold segmentation, then uses open or closed operations to process edge noise, and finally obtains a binary image. Secondly, the palm key points are determined by distance transformation and boundary tracking. Finally, the palm is corrected to the standard posture by calculating the angle between the line connecting the two key points and the vertical direction, and the square area of ​​the palm core is intercepted as the extracted palm vein ROI area.

[0069] Deep neural networks require a large amount of data for training, but due to the variety of changes in palms in actual application scenarios, it is difficult for common data sets to cover these changes. The embodiment of the present invention uses image enhancement to improve the generalization performance of the network. Image enhancement is to perform quality processing and amplification processing on the image. The quality processing includes contrast limited adaptive histogram equalization (CLAHE) and median filtering, and the amplification processing includes translation, rotation, cropping and gamma transformation.

[0070] S2. Based on the EfficientViT backbone network, the normalized attention mechanism module and the cascade attention mechanism module are introduced to build a palm vein recognition model (NEPVR);

[0071] Specifically, the palm vein recognition model specifically includes an overlapping block embedding layer, a first improved EfficientViT module, a first EfficientViT subsampling module, a second improved EfficientViT module, a second EfficientViT subsampling module, a third improved EfficientViT module, an average pooling layer, a batch normalization layer, an L2 normalization layer, a feature embedding layer and a comprehensive loss layer, wherein the first improved EfficientViT module, the second improved EfficientViT module and the third improved EfficientViT module all include a first token interaction layer, a first feedforward neural network, a cascaded attention module, a second token interaction layer, a second feedforward neural network and a normalized attention module, the cascaded attention module includes several multi-head attention modules and a connection projection layer, and the normalized attention module includes a channel attention module and a spatial attention module.

[0072] In a specific embodiment of the present invention, Figure 4Shown is a schematic diagram of the structure of a palm vein recognition model constructed according to an embodiment of the present invention, wherein the introduced NAM-EfficientViT architecture adopts an overlapping image block embedding method to enhance the model's ability in visual representation learning. The model includes three stages, each of which is stacked with an improved EfficientViT Block. Batch normalization (BN) is used instead of layer normalization (LN) throughout the model because BN can be merged with the previous convolutional or linear layer, which has advantages at runtime. In the choice of activation function, the ReLU activation function is used because the commonly used GELU or HardSwish is slow and poorly supported on some inference deployment platforms. The EfficientViT network has six different width and depth scales, and sets a different number of attention heads for each stage. The details of the network architecture are shown in Table 1. , and Respectively represent The width, depth, and number of attention heads of each stage. In summary, the overall architecture of EfficientViT aims to improve the operating efficiency of the model without sacrificing performance through reasonable design and optimization.

[0073] Table 1. Architecture details of EfficientViT model variants

[0074]

[0075] The specific design of the improved EfficientViT Block is as follows: Figure 5 As shown in the figure, it introduces the NAM (Normalization-based Attention Module) attention module based on the original EfficientViTBlock to enhance the network's extraction of subtle differences in palm vein features, thereby more effectively distinguishing different categories. EfficientViTBlock is a sandwich layout, with the middle layer being a cascaded group attention mechanism, and the front and back layers consisting of token interactions and feed forward networks (FFN). The advantage of this construction method is that it can improve the efficiency of model memory, computing, and parameters.

[0076] The structure of the cascade attention mechanism is as follows Figure 6As shown in the figure. It has two advantages: First, it splits the input features and interacts each attention head with a different subset of features. This method can effectively reduce repeated calculations between attention heads, thereby improving computational efficiency. In the multi-head self-attention mechanism (MHSA), redundancy of attention heads leads to low computational efficiency. The idea of ​​cascaded attention to solve the redundancy of attention heads in MHSA is inspired by the idea of ​​group convolution in efficient convolutional neural networks (CNNs). The calculation of attention heads is distributed on different feature subsets, avoiding computational redundancy and thus optimizing the performance of the model. Secondly, the attention map of each attention head is calculated in a cascade manner, and the output of each head is gradually added to the input of the subsequent head to gradually optimize the feature representation. The application of this method can increase the depth of the network, thereby further improving the capacity of the model without introducing additional parameters.

[0077] Furthermore, the loss function of the palm vein recognition model (NEPVR) of the present invention is described. The loss function designed in the embodiment of the present invention combines the characteristics of the cross entropy loss function and the triplet loss function to give full play to their respective advantages in the palm vein recognition task.

[0078] In palm vein recognition, each palm vein sample is divided into different categories, and the cross-entropy loss is used to supervise the model. The center of samples of different categories can be pulled apart by optimizing the global classification accuracy to ensure that the model correctly classifies the samples into the corresponding categories. The cross-entropy loss function expression is as follows:

[0079] ;

[0080] In the above formula, Represents the training batch size and the weight of the fully connected layer , input features , No. Class Probability and the serial number of the samples within each batch and .

[0081] Triplet Loss is a loss function used to train deep learning models. Its main idea is to train the model by dividing the sample into three parts: anchor, positive sample, and negative sample. The goal of triplet loss is to make the model minimize the distance between the anchor and the positive sample in the feature space, and maximize the distance between the anchor and the negative sample. Its expression is as follows:

[0082] ;

[0083] In the above formula, represents the anchor point sample, represents the positive sample, represents negative samples, Represents the boundary parameter.

[0084] The comprehensive loss function proposed in the embodiment of the present invention is as follows:

[0085] ;

[0086] in and is a weight parameter used to balance the triplet loss and the cross entropy loss. This combination of comprehensive losses allows the model to consider similarity learning and classification tasks simultaneously, resulting in better performance and training stability.

[0087] By integrating these two loss functions, the model takes into account the needs of similarity optimization and global classification performance during training, thereby improving the feature representation and generalization ability of the deep metric learning model, while effectively addressing the convergence problem in training.

[0088] S3. Based on the palm vein recognition model, palm vein recognition processing is performed on the palm vein ROI area to obtain a palm vein recognition result.

[0089] Specifically, the palm vein ROI area is input into the palm vein recognition model; based on the overlapping block embedding layer of the palm vein recognition model, the palm vein ROI area is decomposed and converted to obtain vector format data of the palm vein ROI area; based on the first improved EfficientViT module of the palm vein recognition model, the vector format data of the palm vein ROI area is subjected to feature extraction processing to obtain first palm vein ROI area feature data; based on the first EfficientViT sub-sampling module of the palm vein recognition model, the first palm vein ROI area feature data is subjected to dimensionality reduction processing to obtain first palm vein ROI area feature data after dimensionality reduction; based on the second improved EfficientViT module of the palm vein recognition model, the feature extraction processing is performed on the first palm vein ROI area feature data after dimensionality reduction to obtain second palm vein ROI area feature data; based on the second EfficientViT sub-sampling module of the palm vein recognition model, the second palm vein ROI area feature data is subjected to dimensionality reduction processing to obtain the second palm vein ROI regional feature data after dimension reduction; based on the third improved EfficientViT module of the palm vein recognition model, feature extraction processing is performed on the second palm vein ROI regional feature data after dimension reduction to obtain the third palm vein ROI regional feature data; based on the average pooling layer of the palm vein recognition model, average pooling processing is performed on the third palm vein ROI regional feature data to obtain a palm vein ROI regional feature data set; based on the batch normalization layer of the palm vein recognition model, the palm vein ROI regional feature data set is normalized to obtain a normalized palm vein ROI regional feature data set; based on the L2 normalization layer of the palm vein recognition model, the normalized palm vein ROI regional feature data set is standardized to obtain a standardized palm vein ROI regional feature data set; based on the feature embedding layer of the palm vein recognition model and the comprehensive loss layer of the palm vein recognition model, feature weight embedding processing is performed on the standardized palm vein ROI regional feature data set to obtain the palm vein recognition result.

[0090] Among them, the feature extraction processing of the first improved EfficientViT module is explained, and the process is as follows: inputting the vector format data of the palm vein ROI area into the first improved EfficientViT module of the palm vein recognition model; based on the first token interaction layer of the first improved EfficientViT module, performing local feature extraction processing on the vector format data of the palm vein ROI area to obtain the local feature data of the first palm vein ROI area; based on the first feedforward neural network of the first improved EfficientViT module, performing nonlinear transformation and mapping processing on the local feature data of the first palm vein ROI area to obtain the local feature data of the mapped first palm vein ROI area; based on the cascade attention module of the first improved EfficientViT module, performing nonlinear transformation and mapping processing on the local feature data of the first palm vein ROI area to obtain the local feature data of the mapped first palm vein ROI area. Attention calculation is performed on the local feature data of the palm vein ROI area to obtain the attention feature value of the palm vein ROI area; based on the second token interaction layer of the first improved EfficientViT module, local feature extraction processing is performed on the attention feature value of the palm vein ROI area to obtain local feature data of the second palm vein ROI area; based on the second feedforward neural network of the first improved EfficientViT module, nonlinear transformation and mapping processing is performed on the local feature data of the second palm vein ROI area to obtain the mapped local feature data of the second palm vein ROI area; based on the normalized attention module of the first improved EfficientViT module, global feature extraction processing is performed on the local feature data of the mapped second palm vein ROI area to obtain the feature data of the first palm vein ROI area.

[0091] It should also be noted that the first improved EfficientViT module, the second improved EfficientViT module and the third improved EfficientViT module in the embodiment of the present application all have the same data processing process, so only the data processing process of the first improved EfficientViT module is explained.

[0092] Furthermore, the process of the cascaded attention module performing attention calculation on the local feature data of the mapped first palm vein ROI area is as follows: inputting the local feature data of the mapped first palm vein ROI area into the cascaded attention module of the first improved EfficientViT module; performing feature splitting and attention calculation processing on the local feature data of the mapped first palm vein ROI area based on several multi-head attention modules of the cascaded attention module to obtain several local feature maps of the first palm vein ROI area; and performing connection and projection processing on the local feature maps of the several first palm vein ROI areas based on the connection projection layer of the cascaded attention module to obtain the attention feature value of the palm vein ROI area.

[0093] Furthermore, the normalized attention module performs global feature extraction processing on the local feature data of the mapped second palm vein ROI area in the process of inputting the local feature data of the mapped second palm vein ROI area into the normalized attention module of the first improved EfficientViT module; based on the channel attention module of the normalized attention module, performs channel attention feature extraction processing on the local feature data of the mapped second palm vein ROI area to obtain the channel feature data of the first palm vein ROI area; based on the spatial attention module of the normalized attention module, performs spatial attention feature extraction processing on the local feature data of the mapped second palm vein ROI area to obtain the spatial feature data of the first palm vein ROI area; and integrates the channel feature data of the first palm vein ROI area with the spatial feature data of the first palm vein ROI area to obtain the feature data of the first palm vein ROI area.

[0094] In the specific embodiments of the present application, it is first necessary to explain that Figure 3 As shown, the NEPVR palm vein recognition algorithm proposed in the embodiment of the present invention is as follows Figure 1 As shown, the core is the NAM-EfficientViT network, and the process consists of three parts: preprocessing, training and evaluation. The NAM-EfficientViT network is an improved EfficientViT network proposed in an embodiment of the present invention. The preprocessing part of NEPVR first extracts the region of interest (ROI) to be identified from the palm vein image, and then performs image enhancement processing on the ROI area for use in the classification training and evaluation stages. In the classification training stage, the preprocessed ROI area is sent to the NAM-EfficientViT network, and the network weights are continuously optimized by calculating the loss value and back propagation. In the evaluation stage, the NAM-EfficientViT network extracts feature vectors by using the weights saved during the training process, and then matches the newly extracted features with the feature vectors stored in the database for similarity, and finally outputs the recognition results.

[0095] The accuracy of palm vein recognition depends on the network's accurate extraction and differentiation of various features in palm vein images, including tiny textures and blood vessel distribution. By introducing the attention mechanism, the network's extraction of tiny differences in palm vein features can be enhanced, thereby distinguishing different categories more effectively.

[0096] In order to further enhance the network's attention to important channels and spatially useful features, the embodiment of the present invention improves the EfficientViT Block, such as Figure 4 As shown, a Normalization-based Attention Module (NAM) is added at the end. NAM uses the scale factor of batch normalization BN to reflect the variance and importance of each channel and space. The BN calculation formula is as follows:

[0097] ;

[0098] In the above formula, and Respectively represent the mean and variance of the small batch, and Represents a trainable parameter.

[0099] The attention module NAM has good fine-grained feature extraction capabilities, which can increase the network's attention to important information, thereby improving recognition performance and is a powerful tool for biometric recognition tasks. Figure 7 and Figure 8 As shown in Figure 1, NAM combines channel attention and spatial attention, taking into account channel and spatial information. Channel attention determines the importance of the channel by calculating the variance of each channel, strengthens the attention to channels containing rich information, and reduces the attention to channels with single information. The calculation formula of the channel attention mechanism is as follows:

[0100] ;

[0101] Spatial attention uses pixel normalization to adjust the importance of each pixel in the spatial dimension so that the network can focus more on pixels containing rich information and pay less attention to pixels with single information. The calculation formula of the spatial attention mechanism is as follows:

[0102] ;

[0103] In the above formula, and Represent the weight of each channel and spatial pixel respectively, and is the scaling factor, and Represent the input feature maps of channel attention and spatial attention respectively, and Represent the output feature maps of channel attention and spatial attention respectively.

[0104] In addition, the introduction of regularization penalty terms can help the network better handle insignificant features. Its expression is as follows:

[0105] ;

[0106] In the above formula, and represents input and output, represents the network weight, represents the loss function, represents the L1 norm penalty function, Indicates for balance and punishment.

[0107] Furthermore, a simulation experiment was conducted on the palm vein recognition method proposed in the present invention. First, a pre-training data set was obtained. The embodiments of the present invention were experimentally verified on three public data sets, including the multi-spectral palm print database CASIA of the Institute of Automation, Chinese Academy of Sciences, the multi-spectral palm print database PolyU of the Hong Kong Polytechnic University in the Hong Kong Special Administrative Region of my country, and the contactless palm print and palm vein database TongjiU of Tongji University. The specific attributes of the experimental data are shown in Table 2.

[0108] Table 2 Experimental data attribute table

[0109]

[0110] The three data sets are further explained. First, the multispectral palmprint database of the Institute of Automation, Chinese Academy of Sciences, CASIA-MSPalmprintV1 (CASIA), is a large palm biometric database established by the institute using self-designed multispectral palm texture imaging equipment for data collection. The database covers palm texture images at six different wavelengths, including 460nm, 630nm, 700nm, 850nm, 940nm and white light. The data collection is divided into two cycles, each with a one-month interval. In each collection cycle, there were 100 subjects, and a total of 200 grayscale images of the palms were collected. Each palm was collected 3 times at each wavelength, and the image resolution was 768×675 ​​pixels. Since the main focus of the embodiment of the present invention is on palm vein images, only the data collected at a wavelength of 850nm was selected for the experiment.

[0111] The contact palm vein database of the Hong Kong Polytechnic University in the Hong Kong Special Administrative Region of my country, PolyU Multispectral Palmvein Database (PolyU). The database contains four different wavelength versions of palm texture images, namely blue, green, near infrared (NIR) and red. The data collection process is divided into two cycles, each cycle is 9 days apart. In each collection cycle, there are 250 subjects, and a total of 500 grayscale images of the palms are collected. Each palm is collected 6 times at each wavelength, and the image resolution is 352×288 pixels. Since the embodiment of the present invention focuses on palm vein images, only data collection under near infrared light is selected for experimental research.

[0112] Tongji University's non-contact palm print and palm vein database, TongjiU Palmvein Databasebas (TongjiU), is an important palm biometric database created by collecting data using non-contact palm print and palm vein imaging equipment independently designed by Tongji University. The database contains two key palm biometric modalities, namely palm prints and palm veins, and the collection equipment is relatively large. Data collection is divided into two complete cycles, each separated by two months. In each collection cycle, a total of 300 subjects were recruited, and a total of 600 palm print and palm vein images were collected, with 10 images collected for each modality, and the image resolution was 800×600 pixels. Since the focus of the embodiment of the present invention is on palm vein images, only palm vein data is used in subsequent experimental studies.

[0113] The configuration of the simulation experiment of the embodiment of the present invention is further explained. The experiment of the embodiment of the present invention is based on the Ubuntu 20.04 operating system, the GPU model is NVIDIA GeForce RTX 3090, and the deep learning framework is PyTorch. The optimizer is set to the Adam adaptive learning rate optimization algorithm, using the momentum parameter, the parameter is set to 0.9 by default, and the learning rate adjustment strategy adopts the cosine annealing algorithm. The data set division of the experiment of the embodiment of the present invention adopts closed set recognition, 80% of each class is randomly selected as the training set, and the remaining 20% ​​is used as the test set.

[0114] Then, the evaluation index standard is set. A method slightly different from the usual accuracy or error rate index is adopted in the palm vein recognition task, and the recognition errors are subdivided into two specific types: false acceptance and false rejection. False rejection refers to the situation where a legitimate user is mistakenly denied access by the system when attempting authentication, while false acceptance means that an illegal user is mistakenly allowed access by the system when attempting authentication. In order to evaluate the performance of the algorithm model, two indicators are used: False Rejection Rate (FRR) and False Acceptance Rate (FAR). Intra-class comparison is to compare two different pictures of the same palm, while inter-class comparison is to compare two palm pictures from different categories. The expressions of false rejection rate and false acceptance rate are as follows:

[0115] ;

[0116] ;

[0117] In the above formula, represents the false rejection rate, The false acceptance rate, represents the number of samples that were falsely rejected, represents the number of samples that are correctly accepted, Represents the total number of all legal samples, represents the number of samples that were incorrectly accepted, represents the number of samples that were correctly rejected, Represents the total number of all illegal samples. According to the above definition, a high false rejection rate means that the authentication system is more secure but has low fault tolerance, while a high false acceptance rate means that the security is lower but the fault tolerance is higher. These two indicators are usually contradictory, so the equal error rate (EER) is used as a consistency performance metric to evaluate the performance of the vein authentication algorithm. The equal error rate (EER) is calculated by taking the average value when the absolute difference between the false rejection rate and the false acceptance rate is the smallest, which is usually equal to the horizontal and vertical coordinate values ​​of the intersection of the ROC curve and the straight line with a slope of 1, that is, .

[0118] Further, based on the comparative analysis of different recognition models at this stage and the recognition model constructed by the embodiment of the present invention, it should be noted that on resource-constrained devices, such as mobile devices or edge computing devices, it is necessary to minimize the computational burden and storage requirements of the model while maintaining good performance. The number of parameters (Params) of the model directly affects the complexity and storage requirements of the model. More parameters will take up more memory space, which makes it difficult to deploy the model on resource-constrained devices. Therefore, an excellent lightweight model should have a low number of parameters while maintaining sufficient performance, so that it can run efficiently in resource-constrained scenarios such as mobile devices. The EfficientViT-M0 and EfficientViT-M5 models can be used for low-resource and high-resource use cases respectively. As can be seen from Table 3, the number of parameters of EfficientViT-M0 is lower than that of lightweight convolutional networks such as MobileNetV3-Small, GhostNet, and EfficientNet-B0, so it is suitable for application deployment on resource-constrained devices. In contrast, EfficientViT-M5 has more parameters, enabling it to handle tasks with high resource requirements.

[0119] Table 3 Comparison of parameters of different backbone network models

[0120]

[0121] In the evaluation stage, L2 normalization is required before obtaining the feature vector, and then the processed feature vector is matched using cosine similarity, and finally the image is encoded into feature vectors of different dimensions. In order to determine the optimal feature dimension, this paper designs a series of control experiments, and the experimental results are shown in Table 4. The embodiment of the present invention uses two models with smaller parameters, EfficientViT-M0 and EfficientViT-M5, to conduct control experiments on error rates in different dimensions on three data sets. The best recognition results appear in 512 dimensions and 1024 dimensions. Further comparison shows that the difference in recognition performance between 512 dimensions and 1024 dimensions is the smallest. The 512-dimensional feature vector is sufficient to express the identity information contained in the palm vein image. Therefore, the subsequent experiments of the embodiment of the present invention will be carried out on the basis of 512 dimensions.

[0122] Table 4 Data analysis of the impact of different feature dimensions on the error rate

[0123]

[0124] Subsequent comparative experiments were conducted on three public data sets, using EfficientViT-M5 as the backbone model, weighted combined cross entropy and triple loss functions as loss functions in the experiment, and the feature vector dimension was selected as 512. As shown in Table 5, Group 1 used EfficientViT-M5 to conduct a benchmark evaluation experiment on a 512-dimensional feature vector, and the EER indicators on these three data sets were 0.224%, 0.200% and 0.233% respectively. Group 2 used the NAM-EfficientViT-M5 network proposed in the embodiment of the present invention, and the EER was reduced to 0.150%, 0.067% and 0.085% respectively.

[0125] Table 5 Comparative experimental results data table

[0126]

[0127] Table 5 shows the comparison of the recognition performance between the improved NAM-EfficientViT proposed in the embodiment of the present invention and the unimproved model. On the three data sets used in the laboratory, the equal error rate has been reduced to varying degrees after the improvement. As for the reduction in the equal error rate, the PolyU and TongjiU data sets are collected with fixed postures and have a lower recognition difficulty, so the reduction in the equal error rate is larger; while the CASIA data set uses non-contact recognition, and because the palm posture is not fixed and the degree of freedom is high, its recognition difficulty is also higher than that of the other two data sets, so the reduction in the equal error rate is smaller. In summary, the final results of the experiment show that the performance of the palm vein recognition algorithm proposed in this article is improved after adding the attention mechanism NAM.

[0128] Finally, the embodiment of the present invention compares the performance index of equal error rate (EER) with the following algorithms in recent years on three data sets, and the comparison results are shown in Table 6. On the CASIA data set, the residual U-Net segmentation model and ECA-ResNet recognition model combined with attention gate proposed by Htet achieved an equal error rate of 1.8%, and the feature extraction through lightweight convolutional neural network proposed by Chen achieved an equal error rate of 0.529%; on the PolyU data set, the multimodal biometric learning algorithm combining palm veins and palm prints proposed by Zhang achieved an equal error rate of 0.2226%, and the palm vein feature extraction from RGB images based on MPSNet network proposed by Horng achieved an equal error rate of 0.47%; on the TongjiU data set, the wavelet denoising-based ResNet network proposed by Wu for extracting palm vein features achieved an equal error rate of 0.41%, and the multi-scale transformer based on label enhancement proposed by Qin for palm vein recognition achieved an equal error rate of 1.21%. By analyzing the experimental results of the above algorithms, it is found that the equal error rate achieved by the recognition algorithm proposed in the embodiment of the present invention in the palm vein recognition task is better than that of other algorithms.

[0129] Table 6 Comparison of error rates with other algorithms

[0130]

[0131] In summary, the palm vein recognition algorithm of NEPVR proposed in the embodiment of the present invention adopts EfficientViT as an efficient and lightweight network for deep learning to reduce the scale of parameters, and combines the normalized attention mechanism to strengthen the extraction of important detail features of the image in the channel and spatial dimensions, thereby maintaining good recognition performance. In addition, NEPVR also integrates the cross entropy and triple loss functions as the overall loss function in network training to improve the recognition performance and the stability of model convergence. The experimental results show that the method of encoding palm vein information into a 512-dimensional feature vector has the best recognition performance; in the evaluation on the PolyU, CASIA and TongjiU datasets, the equal error rate EER reached 0.067%, 0.150% and 0.085% respectively, which fully proves the effectiveness of the algorithm of the present invention.

[0132] Reference Figure 2 , a palm vein recognition system based on NEPVR, comprising:

[0133] An acquisition module is used to acquire a palm vein image and perform ROI extraction processing to obtain a palm vein ROI area;

[0134] A construction module is used to build a palm vein recognition model (NEPVR) based on the EfficientViT backbone network by introducing the normalized attention mechanism module and the cascaded attention mechanism module;

[0135] The recognition module is used to perform palm vein recognition processing on the palm vein ROI area based on the palm vein recognition model to obtain the palm vein recognition result.

[0136] The contents of the above method embodiments are all applicable to the present system embodiments. The functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0137] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A palm vein recognition method based on NEPVR, characterized in that: The following steps are involved: Acquire the palm vein image and perform ROI extraction processing to obtain the palm vein ROI area; Based on the EfficientViT backbone network, the normalized attention module and the cascaded attention module are introduced to build a palm vein recognition model (NEPVR); The palm vein recognition model specifically includes an overlapping block embedding layer, a first improved EfficientViT module, a first EfficientViT subsampling module, a second improved EfficientViT module, a second EfficientViT subsampling module, a third improved EfficientViT module, an average pooling layer, a batch normalization layer, an L2 normalization layer, a feature embedding layer and a comprehensive loss layer, wherein: The first improved EfficientViT module, the second improved EfficientViT module and the third improved EfficientViT module each include a first token interaction layer, a first feedforward neural network, a cascaded attention module, a second token interaction layer, a second feedforward neural network and a normalized attention module; The cascaded attention module includes several multi-head attention modules and a connection projection layer; The normalized attention module includes a channel attention module and a spatial attention module; Input the palm vein ROI area into the palm vein recognition model; Based on the overlapping block embedding layer of the palm vein recognition model, the palm vein ROI area is decomposed and transformed to obtain the vector format data of the palm vein ROI area; Inputting the vector format data of the palm vein ROI region into the first improved EfficientViT module of the palm vein recognition model; Based on the first token interaction layer of the first improved EfficientViT module, local feature extraction processing is performed on the vector format data of the palm vein ROI area to obtain local feature data of the first palm vein ROI area; Based on the first feedforward neural network of the first improved EfficientViT module, a nonlinear transformation and mapping process is performed on the local feature data of the first palm vein ROI region to obtain the mapped local feature data of the first palm vein ROI region; Inputting the mapped local feature data of the first palm vein ROI region into the cascade attention module of the first improved EfficientViT module; Based on several multi-head attention modules of the cascaded attention module, feature splitting and attention calculation processing are performed on the local feature data of the mapped first palm vein ROI area to obtain several local feature maps of the first palm vein ROI area; Based on the connection projection layer of the cascade attention module, the local feature maps of the first palm vein ROI region are connected and projected to obtain the attention feature value of the palm vein ROI region; Based on the second token interaction layer of the first improved EfficientViT module, local feature extraction processing is performed on the attention feature value of the palm vein ROI area to obtain local feature data of the second palm vein ROI area; Based on the second feedforward neural network of the first improved EfficientViT module, a nonlinear transformation and mapping process is performed on the local feature data of the second palm vein ROI region to obtain the mapped local feature data of the second palm vein ROI region; Inputting the mapped local feature data of the second palm vein ROI area into the normalized attention module of the first improved EfficientViT module; Based on the channel attention module of the normalized attention module, channel attention feature extraction processing is performed on the local feature data of the mapped second palm vein ROI area to obtain channel feature data of the first palm vein ROI area; Based on the spatial attention module of the normalized attention module, a spatial attention feature extraction process is performed on the local feature data of the mapped second palm vein ROI area to obtain the spatial feature data of the first palm vein ROI area; Integrate the first palm vein ROI region channel feature data and the first palm vein ROI region spatial feature data to obtain the first palm vein ROI region feature data; Based on the first EfficientViT sub-sampling module of the palm vein recognition model, the first palm vein ROI regional feature data is subjected to dimensionality reduction processing to obtain the first palm vein ROI regional feature data after dimensionality reduction; Based on the second improved EfficientViT module of the palm vein recognition model, feature extraction processing is performed on the first palm vein ROI region feature data after dimension reduction to obtain the second palm vein ROI region feature data; Based on the second EfficientViT sub-sampling module of the palm vein recognition model, the second palm vein ROI regional feature data is subjected to dimensionality reduction processing to obtain the second palm vein ROI regional feature data after dimensionality reduction; Based on the third improved EfficientViT module of the palm vein recognition model, feature extraction processing is performed on the second palm vein ROI region feature data after dimension reduction to obtain third palm vein ROI region feature data; Based on the average pooling layer of the palm vein recognition model, average pooling is performed on the third palm vein ROI region feature data to obtain a palm vein ROI region feature data set; Based on the batch normalization layer of the palm vein recognition model, the palm vein ROI regional feature dataset is normalized to obtain a normalized palm vein ROI regional feature dataset; Based on the L2 normalization layer of the palm vein recognition model, the normalized palm vein ROI regional feature dataset is normalized to obtain a standardized palm vein ROI regional feature dataset; Based on the feature embedding layer and the comprehensive loss layer of the palm vein recognition model, the standardized palm vein ROI regional feature dataset is processed by feature weight embedding to obtain the palm vein recognition result. The loss function of the comprehensive loss layer of the palm vein recognition model includes a cross entropy loss function and a triplet loss function. The expression of the loss function of the comprehensive loss layer is specifically as follows: ; In the above formula, represents the loss function of the comprehensive loss layer, represents the cross entropy loss function, represents the triplet loss function, represents the weight parameter of the cross entropy loss function, represents the weight parameter of the triplet loss function, represents the training batch size, represents the weight of the fully connected layer, Represents the input feature data, Indicates The probability of the class, and Indicates the serial number of samples in each batch, represents the anchor point sample, represents a positive sample, represents negative samples, Represents the boundary parameter.

2. According to claim 1, a palm vein recognition method based on NEPVR is characterized in that: The step of acquiring a palm vein image and performing ROI extraction processing to obtain a palm vein ROI region specifically includes: Acquire palm vein images; The palm vein image is segmented by a global single threshold segmentation algorithm to obtain a palm vein binary image. The palm key point positioning processing of the palm vein binary image is performed by distance transformation and boundary tracking algorithm to obtain the key point coordinates of the palm vein binary image; Perform posture correction and ROI interception processing on the key point coordinates of the palm vein binary image to obtain a preliminary palm vein ROI area; The preliminary palm vein ROI area is subjected to image enhancement processing to obtain the palm vein ROI area.

3. A palm vein recognition system based on NEPVR, characterized in that: Includes the following modules: An acquisition module is used to acquire a palm vein image and perform ROI extraction processing to obtain a palm vein ROI area; A construction module is used to build a palm vein recognition model (NEPVR) based on the EfficientViT backbone network by introducing the normalized attention mechanism module and the cascaded attention mechanism module; The palm vein recognition model specifically includes an overlapping block embedding layer, a first improved EfficientViT module, a first EfficientViT subsampling module, a second improved EfficientViT module, a second EfficientViT subsampling module, a third improved EfficientViT module, an average pooling layer, a batch normalization layer, an L2 normalization layer, a feature embedding layer and a comprehensive loss layer, wherein: The first improved EfficientViT module, the second improved EfficientViT module and the third improved EfficientViT module each include a first token interaction layer, a first feedforward neural network, a cascaded attention module, a second token interaction layer, a second feedforward neural network and a normalized attention module; The cascaded attention module includes several multi-head attention modules and a connection projection layer; The normalized attention module includes a channel attention module and a spatial attention module; A recognition module, used for inputting the palm vein ROI area into the palm vein recognition model; Based on the overlapping block embedding layer of the palm vein recognition model, the palm vein ROI area is decomposed and transformed to obtain the vector format data of the palm vein ROI area; Inputting the vector format data of the palm vein ROI region into the first improved EfficientViT module of the palm vein recognition model; Based on the first token interaction layer of the first improved EfficientViT module, local feature extraction processing is performed on the vector format data of the palm vein ROI area to obtain local feature data of the first palm vein ROI area; Based on the first feedforward neural network of the first improved EfficientViT module, a nonlinear transformation and mapping process is performed on the local feature data of the first palm vein ROI region to obtain the mapped local feature data of the first palm vein ROI region; Inputting the mapped local feature data of the first palm vein ROI region into the cascade attention module of the first improved EfficientViT module; Based on several multi-head attention modules of the cascaded attention module, feature splitting and attention calculation processing are performed on the local feature data of the mapped first palm vein ROI area to obtain several local feature maps of the first palm vein ROI area; Based on the connection projection layer of the cascade attention module, the local feature maps of the first palm vein ROI region are connected and projected to obtain the attention feature value of the palm vein ROI region; Based on the second token interaction layer of the first improved EfficientViT module, local feature extraction processing is performed on the attention feature value of the palm vein ROI area to obtain local feature data of the second palm vein ROI area; Based on the second feedforward neural network of the first improved EfficientViT module, a nonlinear transformation and mapping process is performed on the local feature data of the second palm vein ROI region to obtain the mapped local feature data of the second palm vein ROI region; Inputting the mapped local feature data of the second palm vein ROI area into the normalized attention module of the first improved EfficientViT module; Based on the channel attention module of the normalized attention module, channel attention feature extraction processing is performed on the local feature data of the mapped second palm vein ROI area to obtain channel feature data of the first palm vein ROI area; Based on the spatial attention module of the normalized attention module, a spatial attention feature extraction process is performed on the local feature data of the mapped second palm vein ROI area to obtain the spatial feature data of the first palm vein ROI area; Integrate the first palm vein ROI region channel feature data and the first palm vein ROI region spatial feature data to obtain the first palm vein ROI region feature data; Based on the first EfficientViT sub-sampling module of the palm vein recognition model, the first palm vein ROI regional feature data is subjected to dimensionality reduction processing to obtain the first palm vein ROI regional feature data after dimensionality reduction; Based on the second improved EfficientViT module of the palm vein recognition model, feature extraction processing is performed on the first palm vein ROI region feature data after dimension reduction to obtain the second palm vein ROI region feature data; Based on the second EfficientViT sub-sampling module of the palm vein recognition model, the second palm vein ROI regional feature data is subjected to dimensionality reduction processing to obtain the second palm vein ROI regional feature data after dimensionality reduction; Based on the third improved EfficientViT module of the palm vein recognition model, feature extraction processing is performed on the second palm vein ROI region feature data after dimension reduction to obtain third palm vein ROI region feature data; Based on the average pooling layer of the palm vein recognition model, average pooling is performed on the third palm vein ROI region feature data to obtain a palm vein ROI region feature data set; Based on the batch normalization layer of the palm vein recognition model, the palm vein ROI regional feature dataset is normalized to obtain a normalized palm vein ROI regional feature dataset; Based on the L2 normalization layer of the palm vein recognition model, the normalized palm vein ROI regional feature dataset is normalized to obtain a standardized palm vein ROI regional feature dataset; Based on the feature embedding layer and the comprehensive loss layer of the palm vein recognition model, the standardized palm vein ROI regional feature dataset is processed by feature weight embedding to obtain the palm vein recognition result. The loss function of the comprehensive loss layer of the palm vein recognition model includes a cross entropy loss function and a triplet loss function. The expression of the loss function of the comprehensive loss layer is specifically as follows: ; In the above formula, represents the loss function of the comprehensive loss layer, represents the cross entropy loss function, represents the triplet loss function, represents the weight parameter of the cross entropy loss function, represents the weight parameter of the triplet loss function, represents the training batch size, represents the weight of the fully connected layer, Represents the input feature data, Indicates The probability of the class, and Indicates the serial number of samples in each batch, represents the anchor point sample, represents a positive sample, represents negative samples, Represents the boundary parameter.