Fingerprint activity detection method based on improved Convnext network
By introducing the bottleneck feature attention module and the dual-channel feature processing module into the Convnext network, the problems of difficult network level control and insufficient feature extraction in the existing technology are solved, achieving more efficient fingerprint activity detection and enhancing the system's robustness. Stickiness and adaptability.
Patent Information
- Application Number
- CN202410859801.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-10
AI Technical Summary
The existing deep learning fingerprint activity detection method is difficult to control the network level, resulting in poor gradient flow, and lacks a large receptive field feature extraction module, which cannot fully extract the global feature information of the fingerprint image, increasing network overhead and insufficient feature extraction.
It adopts the improved Convnext network architecture, introduces the bottleneck feature attention module (BFA) and the dual-channel feature processing module (DC), and enhances the network's ability to perceive different receptive fields and features through parallel subnetworks and depth-separable convolution, and dynamically Adjust the receptive field size of feature information to improve generalization performance.
It improves the classification accuracy of fingerprint activity detection tasks, can more accurately capture the subtle differences between live fingerprints and forged fingerprints, enhances the robustness and adaptability of the system, and shows better generalization performance and classification effects.
Smart Images

Figure CN118629071A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, in particular to a fingerprint activity detection technology based on a neural network, and specifically to a fingerprint activity detection method based on an improved Convnext network. Background Art
[0002] The growing reliance on biometrics in everyday applications such as unlocking phones and building authorizations has highlighted the vulnerabilities of such security systems. As fingerprints are the most well-known type of biometric features, they have been widely used in security and forensic applications over the past few years. Biometric methods employ fingerprint recognition to determine the unique personality of a person. Automatic fingerprint recognition is a biometric technology that has been widely used in authentication systems over the past few decades and has gained popularity due to its ease of operation. Fingerprint spoofing attacks occur and representation attacks. These attacks can be carried out through a variety of methods, but are not limited to, fabricating finger-like objects from everyday materials and 3D printed models of fingerprint targets. Fake forgeries are defined as techniques that circumvent biometric systems by using a fake identity of another user. Failure to prevent such forgeries can have devastating effects on users or organizations that have devices with built-in biometric security systems, such as leaking confidential data or money, deleting important information, or performing identity theft on social media platforms. Representation attacks can be defined as attacks that occur at the biometric sensor level due to vulnerabilities in the biometric sensor or in the biometric recognition process. ISO published a standard on biometric attacks in 2016 and defined presentation attacks as "the presentation of artifacts or human characteristics to the biometric capture subsystem in a way that could interfere with the intended strategy of the biometric system." One category of this attack is biometric spoofing attacks. Biometric spoofing attacks involve the use of artificial artifacts to manipulate the system to provide false positive results.
[0003] In addition, in recent years, deep learning has become a powerful tool for a range of pattern recognition applications, including classification, detection, segmentation, and control problems. Due to its data-driven nature and the availability of massively parallel computing, deep neural networks have achieved state-of-the-art results in most areas. Researchers have made many efforts to improve performance. In the past decade, deep learning has developed rapidly, and various network models have emerged in an endless stream, from the introduction of AlexNet, which pioneered the era of computer vision, to ResNet, which continuously expanded its functions and improved its efficiency. Therefore, it is no coincidence that ConvNets are completely dominant in computer vision: in many application scenarios, the "sliding window" strategy is inherent in visual processing, especially when processing high-resolution images. ConvNets have several built-in inductive biases that make them very suitable for a variety of computer vision applications.
[0004] Defects and shortcomings of existing technology:
[0005] 1. Existing deep learning fingerprint activity detection methods have difficulty controlling the network layer and cannot control the gradient flow well, resulting in poor training results.
[0006] 2. Existing methods lack a feature extraction module with a larger receptive field and cannot fully extract the global feature information of fingerprint images based on deep learning methods. Summary of the invention
[0007] The purpose of the present invention is to solve the technical problems in the prior art that the amount of convolution operations is large, the network overhead is increased, and the extraction of single-channel features and convolution kernel size is insufficient, and a fingerprint activity detection method based on an improved Convnext network is provided.
[0008] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0009] A fingerprint liveness detection method based on an improved Convnext network comprises the following steps:
[0010] Step 1: Divide the data set into training set and test set for preprocessing;
[0011] Step 2: Preprocess the training set and test set, including ROI extraction, cropping, flipping, and normalization;
[0012] Step 3: Build the bottleneck feature attention module BFA and build the DC module;
[0013] Step 4: Based on the modules built in step 3, build an improved Convnext network architecture;
[0014] Step 5: Input the fingerprint image into the improved network and get the classification result.
[0015] In step 1, the data set is divided into a training set and a test set, and placed in different folders. The ROI of the fingerprint image is extracted, and the ROI area of each fingerprint image is selected by manual annotation. Then the fingerprint image is center-cropped. Based on the center of the image, an image of 224 pixels around it is obtained. For example, if the coordinate point of the fingerprint center pixel is (x, y), the coordinate points of the upper left, lower left, upper right and lower right of the new image are (x-112, y-112), (x+112, y-112), (x-112, y+112), and (x+112, y+112). The cropped image is then normalized.
[0016] In step 2, the fingerprint image is preprocessed. First, the fingerprint ROI area is extracted. The ROI extraction adopts the method of manually annotating the data set to manually screen the fingerprint area of each picture and generate a new picture to obtain the ROI fingerprint image. Then the fingerprint image is center-cropped. Based on the center of the image, an image of 224 pixels around is obtained. For example, if the coordinate point of the fingerprint center pixel is (x, y), the coordinate points of the upper left, lower left, upper right and lower right of the new image are (x-112, y-112), (x+112, y-112), (x-112, y+112), (x+112, y+112), and then the cropped image is normalized.
[0017] In step 3, the bottleneck feature attention module BFA is specifically:
[0018] First, the input enters the first convolution layer for a convolution. The output of the first convolution layer enters the first depthwise separable convolution layer for a depthwise separable convolution. The output of the first depthwise separable convolution layer enters the maximum pooling layer for a maximum pooling operation. The output of the maximum pooling layer enters the second convolution layer for another convolution. The output of the second convolution layer enters the second depthwise separable convolution layer for a depthwise separable convolution. The output of the second depthwise separable convolution layer is added to the output of the second convolution layer to obtain New output; the output after addition enters the average pooling layer for average pooling, and the output after average pooling enters the third convolution layer for convolution. The output of the third convolution layer is added to the output of the first depth-separable convolution layer to obtain a new output; the output after addition enters the third depth-separable convolution layer for depth-separable convolution. The output of the third depth-separable convolution layer is added to the output of the first convolution layer to obtain a new output, which is the output result of a BFA module.
[0019] In step 3, the DC module is specifically:
[0020] The module inputs dual channels for feature processing. The dual channels include a left channel and a right channel. In the left channel, the input first enters the first convolution layer for convolution. The output of the first convolution layer enters the second convolution layer for convolution. The output of the second convolution layer enters the EMA module for processing. The output of the EMA module is dot-multiplied with the output of the second fully connected layer of the second channel. The output obtained by the dot product enters the third convolution layer for convolution. The convolution obtained by the third convolution layer enters the fourth convolution layer for convolution to obtain the output of the first channel.
[0021] In the right channel, the input first enters the average pooling layer for average pooling. The output of the average pooling layer enters the first partial convolution layer for partial convolution. The output of the first partial convolution enters the first fully connected layer for processing. The output of the first fully connected layer enters the second fully connected layer for processing. The output of the second fully connected layer is dot-multiplied with the output of the fourth convolution in the first channel to obtain the output of the second channel. The output of the first channel and the output of the second channel are added together, and the added output enters the Softmax layer for processing. The output of the Softmax layer is the output of the DC module.
[0022] In step 4, the improved Convnext network constructed is specifically:
[0023] The input first enters the Macro Design layer, and the output enters ResNeXt. The output of the ResNeXt layer enters the Inverted Bottleneck. The output of the InvertedBottleneck layer enters the DC module. The output of the DC module enters the Large Kernel layer. The output of the Large Kernel layer enters the Micro Design layer. The output of Micro Design is the output of the entire algorithm.
[0024] When the DC module is used, for a given input feature map F∈R C×H×W , the DC module infers a 3D attention map M(F)∈R C×H×W ; The calculation method of the refined feature map f is:
[0025] f = softmax(F1+F2)
[0026] Among them, softmax is the classification function, F1 is the output of the left channel, and F2 is the output of the right channel;
[0027] The way to obtain F1 and F2 is as follows:
[0028] F1=Conv(Conv(E1×E2))
[0029] F2=F1×E2
[0030] Where E1 represents the output of the EMA module of the left channel, E2 represents the output of the second fully connected layer of the right channel, and Conv represents convolution, batch normalization, and ReLU activation function;
[0031] The method for obtaining E1 is as follows:
[0032] E1=EMA(Conv(Conv(F)))
[0033] Where EMA represents the EMA attention mechanism;
[0034] The method for obtaining E2 is as follows:
[0035] E2=FC(FC(PConv(Avgpool(F))))
[0036] Among them, FC stands for fully connected layer, PConv stands for partial convolution, and Avgpool stands for average pooling;
[0037] The calculation process of the EMA module is as follows:
[0038] In traditional network modules, the use of multiple convolutions will lead to stacking more deep convolution objects, which will not only lose some of the original image features, but also consume a lot of memory and computing resources. To solve this problem, this paper optimizes the structure of the EMA module [4] to replace the repeated stacking convolution calculations in the original EfficientNetV2-S network. This module processes the fingerprint feature mapping domain. By using parallel subnets, each subnet can focus on different receptive fields and enhance the network's ability to perceive features.
[0039] Using the parallel subnetwork approach, the features of different subnetworks need to be divided first. For any given input feature map EMA is divided into G sub-features according to the cross-channel dimension X, which is used to learn different semantic features, where X = [X0, X1, X2, ..., X G-1 ], Usually the value of G should be smaller than the number of channels. In this paper, G is set to 8.
[0040] The huge local receptive field allows the module to collect multi-scale information, so EMA uses three parallel routes to extract the attention weight descriptor of the grouped feature map. Two paths are 1×1 paths and one path is 3×3 path. On the 1×1 path, no convolution is used, only 1D global average pooling is used to process the information in the H and W directions. This pooling can better pay attention to local information. On the 3×3 path, a convolution operation with a convolution kernel of 3 is used to capture more features. In the 1×1 and 3×3 convolutions, the C / / G form is used to replace the original number of channels. Similar to CA attention, the results of the two 1D global average pooling processes are spliced together in the height direction, and then decomposed into two vectors using a 1×1 convolution. The sigmoid function is used to fit the two-dimensional binomial distribution after convolution. The information of the two 1×1 channels is aggregated using conventional multiplication, and the 3×3 channel is used to expand the feature space. In this way, the module can encode the information between channels, adjust the importance of the channels, and save the spatial structure information in the channels.
[0041] The cross-spatial information aggregation method enables the module to extract richer local receptive field information. The output of the 1×1 branch is encoded with global spatial information using two-dimensional global average pooling, and then converted into its corresponding dimensional shape, as shown in formula (7).
[0042]
[0043] In the 3×3 branch, two-dimensional global average pooling is also used to encode global spatial information, and its output is fitted with a linear transformation using a two-dimensional Gaussian map of the nonlinear function Softmax. In order to capture the pixel-level relationship of the fingerprint image, the Sigmoid function is used to calculate the output feature map after multiplication, and the final output size is the same as the input.
[0044] PConv comes from the paper "Run, Don't Walk: Chasing Higher FLOPS for Faster Neural Networks". It is a new type of convolution method. It applies regular Conv to a part of the input channel for spatial extraction and keeps the remaining channels unchanged. For continuous or regular memory access, the first or last continuous channel is regarded as the representative of the entire feature map for calculation. Without losing generality, the input and output feature maps are considered to have the same number of channels. Therefore, the FLOPs of PConv is 1 / 16 of that of regular convolution, and the calculation formula is as follows:
[0045] h×w×(k 2 ×c p ×c+c×(cc p ))
[0046] In addition, PConv has a smaller memory access volume, which is 1 / 4 of the conventional convolution. This structure can well reduce computational redundancy and memory access. The calculation formula is as follows:
[0047]
[0048] Among them, h represents the height of the image, w represents the width of the image, k is the size of the convolution kernel, and c is the total number of channels of the entire image. p It is the number of channels for convolution operation. Reducing the amount of convolution calculation can save computing resources, improve system operation speed, and reduce the computing burden of hardware.
[0049] In the bottleneck feature attention module BFA, the maximum pooling layer calculation formula is as follows:
[0050] out(Ni,Cj,h,w)=input(Ni,Cj,stride[0]×h, stride[1]×w)
[0051] Where Ni represents the number of batches input, Cj represents the number of input channels, h represents the height of the output, w represents the width of the output, and Stride is a 1×2 array. The parameters are set by yourself. Stride[0] refers to the value of the first stride setting; stride[1] refers to the value of the second stride setting;
[0052] The average pooling calculation formula is as follows:
[0053]
[0054] Where Ni represents the number of batches input, Cj represents the number of input channels, h represents the height of the output, w represents the width of the output, Stride is a 1×2 array, the parameters are set by yourself, stride[0] refers to the value of the first stride setting; stride[1] refers to the value of the second stride setting, and k is the kernel size, which is used to control the pooling multiple;
[0055] Compared with the prior art, the present invention has the following technical effects:
[0056] 1) The present invention introduces the DC (Dual channel feature processing) module into the original Convnext network to further improve the classification accuracy of the fingerprint liveness detection task. This module can effectively extract feature information of different receptive field sizes of the fingerprint image, and designs an interactive learning structure to make the network. Through the DC module, the network can dynamically adjust the size of the receptive field of the feature information extracted by each channel to improve the generalization of the network. In this way, the subtle differences between live fingerprints and forged fingerprints can be captured more accurately. Compared with traditional methods, the module proposed in this study shows better performance in the fingerprint liveness detection task.
[0057] 2) This study improved the structure of the original Convnext network structure and proposed a new BFA module to extract image features through residual connections. This improved structure can better capture information at different levels of the image and further improve the generalization performance of the system. The improved BFA of the present invention, through three-level residual connections, combined with the traditional convolution method, the network can more fully perceive image information of different depths and sizes, improve the characteristic of losing lower-dimensional information after extracting deep-level features, thereby extracting image features. This helps to enhance the system's understanding and expression capabilities of the overall image structure. Through this improvement, we have further improved the generalization performance of the system. The system can better adapt to different detection scenarios and sample changes, and has stronger robustness and adaptability.
[0058] 3) The present invention has excellent classification effect on test samples and can be used for fingerprint activity detection tasks. The experimental results are better than existing methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] The present invention will be further described below in conjunction with the accompanying drawings and embodiments:
[0060] Figure 1 It is a flow chart of the present invention.
[0061] Figure 2 This is a schematic diagram of the improved Convnext network structure provided by the present invention.
[0062] Figure 3 This is a schematic diagram of the BFA module structure used in the present invention.
[0063] Figure 4 This is a schematic diagram of the improved DC module of the present invention. DETAILED DESCRIPTION
[0064] like Figure 1 As shown, a fingerprint liveness detection method based on an improved Convnext network includes the following steps:
[0065] Step 1: Divide the dataset into training set and test set for preprocessing.
[0066] Step 2: Preprocess the training set and test set, including ROI extraction, cropping, flipping, and normalization.
[0067] Step 3: Build the BFA (Bottleneck feature attention) module and the DC (Dual channel feature processing) module.
[0068] Step 4: Based on the modules in step 3, build an improved Convnext network architecture, including Macro Design, ResNeXt, InvertedBottleneck, DC, Large Kernel, and Micro Design.
[0069] Step 5: Input the fingerprint image into the improved network and get the classification result.
[0070] The experiment of the network architecture of the present invention was carried out on CentOS7, and the GPU was a single-card NVIDIAGTX 2080Ti. The training round epoch was 400, and the image data was trained in batches of 12. The learning rate adjuster used by the model was the learning rate decay scheduler ReduceLROnPlateau, the learning rate reduction factor was 0.1, the waiting index round was 15 rounds, and the rest were set by default. The optimizer used the adaptive moment estimation optimizer Adam. When the network was tested using the test set, all network parameters stopped changing, and the parameters obtained in the last round of training were used as the standard.
[0071] like Figure 4 As shown in Figure 1, the improved Convnext network consists of Macro Design, ResNeXt, InvertedBottleneck, DC, Large Kernel, and Micro Design. The structural details of the DC module spliced in the improved Convnext network are shown in Figure 1. Figure 4 As shown, for a given input feature map F∈R C×H×W , the DC module infers a 3D attention map M(F)∈R C×H×W ; The calculation method of the refined feature map f is:
[0072] f = softmax(F1+F2)
[0073] Among them, softmax is the classification function, F1 is the output of the left channel, and F2 is the output of the right channel;
[0074] The way to obtain F1 and F2 is as follows:
[0075] F1=Conv(Conv(E1×E2))
[0076] F2=F1×E2
[0077] Where E1 represents the output of the EMA module of the left channel, E2 represents the output of the second fully connected layer of the right channel, and Conv represents convolution, batch normalization, and ReLU activation function;
[0078] The method for obtaining E1 is as follows:
[0079] E1=EMA(Conv(Conv(F)))
[0080] Where EMA represents the EMA attention mechanism;
[0081] The method for obtaining E2 is as follows:
[0082] E2=FC(FC(PConv(Avgpool(F))))
[0083] Among them, FC stands for fully connected layer, PConv stands for partial convolution, and Avgpool stands for average pooling;
[0084] The calculation process of the EMA module is as follows:
[0085] In traditional network modules, the use of multiple convolutions will lead to stacking more deep convolution objects, which will not only lose some of the original image features, but also consume a lot of memory and computing resources. To solve this problem, this paper optimizes the structure of the EMA module [4] to replace the repeated stacking convolution calculations in the original EfficientNetV2-S network. This module processes the fingerprint feature mapping domain. By using parallel subnets, each subnet can focus on different receptive fields and enhance the network's ability to perceive features.
[0086] Using the parallel subnetwork approach, the features of different subnetworks need to be divided first. For any given input feature map EMA is divided into G sub-features according to the cross-channel dimension X, which is used to learn different semantic features, where X = [X0, X1, X2, ..., X G-1 ], Usually the value of G should be smaller than the number of channels. In this paper, G is set to 8.
[0087] The huge local receptive field allows the module to collect multi-scale information, so EMA uses three parallel routes to extract the attention weight descriptor of the grouped feature map. Two paths are 1×1 paths and one path is 3×3 path. On the 1×1 path, no convolution is used, only 1D global average pooling is used to process the information in the H and W directions. This pooling can better pay attention to local information. On the 3×3 path, a convolution operation with a convolution kernel of 3 is used to capture more features. In the 1×1 and 3×3 convolutions, the C / / G form is used to replace the original number of channels. Similar to CA attention, the results of the two 1D global average pooling processes are spliced together in the height direction, and then decomposed into two vectors using a 1×1 convolution. The sigmoid function is used to fit the two-dimensional binomial distribution after convolution. The information of the two 1×1 channels is aggregated using conventional multiplication, and the 3×3 channel is used to expand the feature space. In this way, the module can encode the information between channels, adjust the importance of the channels, and save the spatial structure information in the channels.
[0088] The cross-spatial information aggregation method enables the module to extract richer local receptive field information. The output of the 1×1 branch is encoded with global spatial information using two-dimensional global average pooling, and then converted into its corresponding dimensional shape, as shown in formula (7).
[0089]
[0090] In the 3×3 branch, two-dimensional global average pooling is also used to encode global spatial information, and its output is fitted with a linear transformation using a two-dimensional Gaussian map of the nonlinear function Softmax. In order to capture the pixel-level relationship of the fingerprint image, the Sigmoid function is used to calculate the output feature map after multiplication, and the final output size is the same as the input.
[0091] PConv comes from the paper "Run, Don't Walk: Chasing Higher FLOPS for Faster Neural Networks". It is a new type of convolution method. It applies regular Conv to a part of the input channel for spatial extraction and keeps the remaining channels unchanged. For continuous or regular memory access, the first or last continuous channel is regarded as the representative of the entire feature map for calculation. Without losing generality, the input and output feature maps are considered to have the same number of channels. Therefore, the FLOPs of PConv is 1 / 16 of that of regular convolution, and the calculation formula is as follows:
[0092] h×w×(k 2 ×c p ×c+c×(cc p ))
[0093] In addition, PConv has a smaller memory access volume, which is 1 / 4 of the conventional convolution. This structure can well reduce computational redundancy and memory access. The calculation formula is as follows:
[0094]
[0095] Among them, h represents the height of the image, w represents the width of the image, k is the size of the convolution kernel, and c is the total number of channels of the entire image. p It is the number of channels for convolution operation. Reducing the amount of convolution calculation can save computing resources, improve system operation speed, and reduce the computing burden of hardware.
[0096] The BFA module uses convolution stacking to fuse shallow features and deep features, and uses an additive method to fuse features. The basic principle of feature fusion is to fuse small receptive fields with large receptive fields. While fusing different feature depths, different feature block sizes are added to achieve the fusion of large-block regional features and small-block regional features, thereby realizing the fusion of information features of different regional block sizes.
[0097] Each layer of feature extraction uses a cross-method of ordinary convolution and depth-wise convolution to extract features. The first feature extraction uses ordinary convolution, the second feature extraction uses depth-wise convolution, and so on, until the last feature extraction.
[0098] The calculation formula of the maximum pooling layer is as follows:
[0099] out(Ni,Cj,h,w)=input(Ni,Cj,stride[0]×h, stride[1]×w)
[0100] Where Ni represents the number of batches input, Cj represents the number of input channels, h represents the height of the output, w represents the width of the output, and Stride is a 1×2 array. The parameters are set by yourself. Stride[0] refers to the value of the first stride setting; stride[1] refers to the value of the second stride setting;
[0101] The average pooling calculation formula is as follows:
[0102]
[0103] Where Ni represents the number of batches input, Cj represents the number of input channels, h represents the height of the output, w represents the width of the output, Stride is a 1×2 array, the parameters are set by yourself, stride[0] refers to the value of the first stride setting; stride[1] refers to the value of the second stride setting, and k is the kernel size, which is used to control the pooling multiple;
[0104] Example:
[0105] The improved Mobilevit network was experimented on LivDet2011, LivDet2013 and LivDet2015. The comparison with the existing convolutional neural network is shown in the following table, where Table 1 shows the experimental results of LivDet2011, Table 2 shows the experimental results of LivDet2013, Table 3 shows the experimental results of LivDet2015, Table 4 shows the cross-material experimental results, and Table 5 shows the cross-dataset experimental results. Bio stands for Biometrika, Dig stands for Digital, Ita stands for Itaklata, Sag stands for Sagem, Cro stands for Crossmatch, Gre stands for Greenbit, and His stands for Biometrika. All of the above are the names of sensors. The experimental evaluation index uses ACE, that is, the average classification error rate. The smaller the result, the better the experimental result.
[0106] Table 1
[0107]
[0108]
[0109] Table 2
[0110]
[0111] Table 3
[0112]
[0113] Table 4
[0114]
[0115] Table 5
[0116]
[0117]
[0118] It can be seen from the above table that the improved Convnext network proposed in the present invention performs well in the fingerprint activity detection task, outperforming the traditional deep learning network, and achieves better results in cross-material and cross-dataset scenarios, proving that the present invention improves the generalization of the FLD system.
[0119] The present invention proposes a fingerprint activity detection scheme based on a multi-layer residual connection module structure fused with dual-channel feature extraction, and uses deep separable convolution to calculate the features, which effectively reduces the network computational complexity, and designs a fingerprint feature analysis scheme with dual-channel receptive fields of different sizes, which further effectively improves the classification efficiency.
Claims
1. A fingerprint activity detection method based on an improved Convnext network, characterized in that: The following steps are involved: Step 1: Divide the data set into training set and test set for preprocessing; Step 2: Preprocess the training set and test set, including ROI extraction, cropping, flipping, and normalization; Step 3: Build the bottleneck feature attention module BFA and build the DC module; Step 4: Based on the modules built in step 3, build an improved Convnext network architecture; Step 5: Input the fingerprint image into the improved network and get the classification result.
2. The method according to claim 1, characterized in that In step 1, the data set is divided into a training set and a test set, and placed in different folders. The ROI of the fingerprint image is extracted, and the ROI area of each fingerprint image is selected by manual annotation. Then, the fingerprint image is center-cropped, and an image of a certain pixel size around the center of the image is obtained.
3. The method according to claim 1, characterized in that In step 2, the fingerprint image is preprocessed. First, the fingerprint ROI area is extracted. The ROI extraction adopts the method of manually annotating the data set to manually screen the fingerprint area of each picture and generate a new picture to obtain the ROI fingerprint image. The fingerprint image is then center-cropped, and an image of several pixels around the center of the image is obtained.
4. The method according to claim 3, characterized in that In step 3, the bottleneck feature attention module BFA is specifically: First, the input enters the first convolution layer for a convolution. The output of the first convolution layer enters the first depthwise separable convolution layer for a depthwise separable convolution. The output of the first depthwise separable convolution layer enters the maximum pooling layer for a maximum pooling operation. The output of the maximum pooling layer enters the second convolution layer for another convolution. The output of the second convolution layer enters the second depthwise separable convolution layer for a depthwise separable convolution. The output of the second depthwise separable convolution layer is added to the output of the second convolution layer to obtain New output; the output after addition enters the average pooling layer for average pooling, and the output after average pooling enters the third convolution layer for convolution. The output of the third convolution layer is added to the output of the first depth-separable convolution layer to obtain a new output; the output after addition enters the third depth-separable convolution layer for depth-separable convolution. The output of the third depth-separable convolution layer is added to the output of the first convolution layer to obtain a new output, which is the output result of a BFA module.
5. The method according to claim 3, characterized in that: In step 3, the DC module is specifically: The module inputs dual channels for feature processing. The dual channels include a left channel and a right channel. In the left channel, the input first enters the first convolution layer for convolution. The output of the first convolution layer enters the second convolution layer for convolution. The output of the second convolution layer enters the EMA module for processing. The output of the EMA module is dot-multiplied with the output of the second fully connected layer of the second channel. The output obtained by the dot product enters the third convolution layer for convolution. The convolution obtained by the third convolution layer enters the fourth convolution layer for convolution to obtain the output of the first channel. In the right channel, the input first enters the average pooling layer for average pooling. The output of the average pooling layer enters the first partial convolution layer for partial convolution. The output of the first partial convolution enters the first fully connected layer for processing. The output of the first fully connected layer enters the second fully connected layer for processing. The output of the second fully connected layer is dot-multiplied with the output of the fourth convolution in the first channel to obtain the output of the second channel. The output of the first channel and the output of the second channel are added together, and the added output enters the Softmax layer for processing. The output of the Softmax layer is the output of the DC module.
6. The method according to any one of claims 1 to 5, characterized in that: In step 4, the improved Convnext network constructed is specifically: The input first enters the Macro Design layer, and the output enters ResNeXt. The output of the ResNeXt layer enters the Inverted Bottleneck. The output of the Inverted Bottleneck layer enters the DC module. The output of the DC module enters the Large Kernel layer. The output of the Large Kernel layer enters the Micro Design layer. The output of Micro Design is the output of the entire algorithm.
7. The method according to claim 5, characterized in that When the DC module is used, for a given input feature map F∈R C×H×W , the DC module infers a 3D attention map M(F)∈R C×H×W ; The calculation method of the refined feature map f is: f = softmax(F1+F2) Among them, softmax is the classification function, F1 is the output of the left channel, and F2 is the output of the right channel; The way to obtain F1 and F2 is as follows: F1=Conv(Conv(E1×E2)) F2=F1×E2 Where E1 represents the output of the EMA module of the left channel, E2 represents the output of the second fully connected layer of the right channel, and Conv represents convolution, batch normalization, and ReLU activation function; The method for obtaining E1 is as follows: E1=EMA(Conv(Conv(F))) Where EMA represents the EMA attention mechanism; The method for obtaining E2 is as follows: E2=FC(FC(PConv(Avgpool(F)))) Among them, FC stands for fully connected layer, PConv stands for partial convolution, and Avgpool stands for average pooling.
8. The method according to claim 4, characterized in that In the bottleneck feature attention module BFA, the maximum pooling layer calculation formula is as follows: out(Ni,Cj,h,w)=input(Ni,Cj,stride[0]×h, stride[1]×w) Where Ni represents the number of batches input, Cj represents the number of input channels, h represents the height of the output, w represents the width of the output, Stride is a 1×2 array, stride[0] refers to the value of the first stride setting; stride[1] refers to the value of the second stride setting; The average pooling calculation formula is as follows: Where Ni represents the number of batches input, Cj represents the number of input channels, h represents the height of the output, w represents the width of the output, Stride is a 1×2 array, stride[0] refers to the value of the first stride setting; stride[1] refers to the value of the second stride setting, and k is the kernel size, which is used to control the pooling multiple.
