Contact fingerprint and non-contact fingerprint matching method and related device
Through the minutiae point attention sampling mechanism, minutiae points of contact and non-contact fingerprints are extracted and high-dimensional feature vectors are generated to achieve high-precision matching of contact and non-contact fingerprints and solve the poor matching effect in the existing technology. problem, improving the performance of the fingerprint matching model.
Patent Information
- Application Number
- CN202210326440.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-03-30
AI Technical Summary
Existing fingerprint matching technology is difficult to effectively distinguish and match contact fingerprints and non-contact fingerprints, resulting in poor matching results due to differences in collection.
Using an attention sampling mechanism based on minutiae points, the minutiae points of contact and non-contact fingerprints are extracted to generate an attention distribution matrix, sample it, and input it into the preset fingerprint matching neural network model to generate a high-dimensional feature vector. Compute similarity to achieve a match.
It improves the matching accuracy of contact and non-contact fingerprints, overcomes the difficulties of small distances between classes and large variances within classes, improves the performance of the matching model, is suitable for practical application scenarios, and saves computing resources.
Smart Images

Figure CN114677714B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of biometric authentication, and relates to a contact fingerprint and a contactless fingerprint matching method and a related device. Background Art
[0002] Contactless fingerprints are not easily contaminated, easy to collect, and do not come into contact with other people during the collection process. In addition, compared with the collection process of contact fingerprints, the collection of contactless fingerprints is less likely to transmit viruses. Therefore, contactless fingerprints have been increasingly attracting attention from academia and industry in recent years. However, most of the existing fingerprint databases are contact fingerprints. It is time-consuming and laborious to re-collect new contactless fingerprints as fingerprint databases. Therefore, it is particularly important to study the matching method of contactless fingerprints and contact fingerprints that is different from the traditional method.
[0003] Traditional fingerprint matching technology is mostly based on the method based on minutiae. This method has been confirmed to be effective in previous traditional fingerprint matching. However, due to the different collection distributions of non-contact fingerprint collection sensors and contact fingerprint collection sensors, there will be some differences between the fingerprints collected by the two. These differences make the results obtained by using traditional methods unsatisfactory. The traditional way to solve this difference is to use image degradation correction algorithms to eliminate the collection differences between the two sensors, but the effect is not good. Summary of the invention
[0004] The purpose of the present invention is to overcome the above-mentioned shortcomings of the prior art and provide a contact fingerprint and a contactless fingerprint matching method and a related device.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] In a first aspect of the present invention, a method for matching a contact fingerprint with a contactless fingerprint comprises:
[0007] Acquire the contact fingerprint and contactless fingerprint to be matched;
[0008] Extracting minutiae points of the contact fingerprint and the contactless fingerprint, sampling according to the minutiae points of the contact fingerprint and the contactless fingerprint, and obtaining sampled fingerprints of the contact fingerprint and the contactless fingerprint;
[0009] Input the contact fingerprint, the sampled fingerprint of the contact fingerprint, the contactless fingerprint and the sampled fingerprint of the contactless fingerprint into a preset fingerprint matching neural network model to obtain high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint;
[0010] According to the similarity between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint, the matching result of the contact fingerprint and the contactless fingerprint is obtained.
[0011] Optionally, before extracting the minutiae of the contact fingerprint and the contactless fingerprint, the method further includes:
[0012] The contact fingerprint and the contactless fingerprint are preprocessed; the preprocessing includes: performing histogram equalization on both the contact fingerprint and the contactless fingerprint, and filtering them with a Garbor filter.
[0013] Optionally, extracting minutiae points of the contact fingerprint and the contactless fingerprint, sampling according to the minutiae points of the contact fingerprint and the contactless fingerprint, and obtaining sampled fingerprints of the contact fingerprint and the contactless fingerprint includes:
[0014] Use fingerprint minutiae extraction algorithm to extract minutiae points of contact fingerprint and contactless fingerprint;
[0015] For both contact fingerprint and contactless fingerprint, perform the following operations:
[0016] Initialize an initial attention matrix with the same dimension as the fingerprint size, and perform the following operations on each detail point: take the position of the current detail point as the center, generate a Gaussian distribution matrix under the dimension of the initial attention matrix according to the preset standard deviation, multiply the Gaussian distribution matrix by the mass of the current detail point as the attention distribution of the current detail point, and superimpose the attention distribution of the current detail point on the initial attention matrix;
[0017] After the traversal of each detail point is completed, the attention matrix is obtained; the edge distribution is calculated for the horizontal axis and the vertical axis of the attention matrix respectively, and the integral of the edge distribution is calculated respectively to obtain the integral distribution of the edge distribution; the integral distribution of the edge distribution is interpolated using the B-spline curve to obtain the sampling matrix;
[0018] Sampling is performed according to the coordinates of each sampling coordinate in the sampling matrix corresponding to the coordinates of the fingerprint to obtain a sampled fingerprint; wherein, when the sampling coordinates are non-integer coordinate points, bilinear interpolation is used for interpolation.
[0019] Optionally, the preset fingerprint matching neural network model includes a contact fingerprint branch and a contactless fingerprint branch with consistent network structures and shared parameters;
[0020] Among them, both the contact fingerprint branch and the contactless fingerprint branch are convolutional neural networks; the input of the contact fingerprint branch is the contact fingerprint and the sampled fingerprint of the contact fingerprint, and the output is the high-dimensional feature vector of the contact fingerprint; the input of the contactless fingerprint branch is the contactless fingerprint and the sampled fingerprint of the contactless fingerprint, and the output is the high-dimensional feature vector of the contactless fingerprint.
[0021] Optionally, the preset fingerprint matching neural network model is constructed in the following manner:
[0022] Acquire contact fingerprint samples and contactless fingerprint samples of several fingers;
[0023] Extracting minutiae points of the contact fingerprint sample and the contactless fingerprint sample, and performing sampling according to the minutiae points of the contact fingerprint sample and the contactless fingerprint sample to obtain sampled fingerprint samples of the contact fingerprint sample and the contactless fingerprint sample;
[0024] Generate a data set based on the contact fingerprint samples, the contactless fingerprint samples, the sampled fingerprint samples of the contact fingerprint samples and the sampled fingerprint samples of the contactless fingerprint samples; wherein the data set includes paired samples and unpaired samples in a preset ratio, the paired samples include the contact fingerprint samples, the contactless fingerprint samples, the sampled fingerprint samples of the contact fingerprint samples and the sampled fingerprint samples of the contactless fingerprint samples of the same finger, and the unpaired samples include the contact fingerprint samples and the sampled fingerprint samples of the contact fingerprint samples of one finger, and the contactless fingerprint samples and the sampled fingerprint samples of the contactless fingerprint samples of another finger;
[0025] Construct an initial fingerprint matching neural network model, and train the initial fingerprint matching neural network model through the data set according to the loss function L of the following formula to obtain a preset fingerprint matching neural network model;
[0026] L=(1-Y)max((dM 1 ),0) 2 +Ymax((M 2 -d),0) 2
[0027] Among them, Y = 0 is a paired sample, Y = 1 is an unpaired sample, M 1 and M 2 is the preset boundary value.
[0028] Optionally, when acquiring contact fingerprint samples and contactless fingerprint samples of several fingers, when the number of contact fingerprint samples and contactless fingerprint samples collected is less than a preset value, an image rotation method is used to enhance the number of contact fingerprint samples and contactless fingerprint samples; when constructing the initial fingerprint matching neural network model, the convolutional neural networks of the contact fingerprint branch and the contactless fingerprint branch both use convolutional neural networks that have been pre-trained with an existing image data set.
[0029] Optionally, obtaining the matching result of the contact fingerprint and the contactless fingerprint according to the similarity between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint includes:
[0030] Calculate the Euclidean distance between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint;
[0031] When the Euclidean distance between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint is less than a preset Euclidean distance threshold, the matching result of the contact fingerprint and the contactless fingerprint is a match; otherwise, the matching result of the contact fingerprint and the contactless fingerprint is a mismatch.
[0032] In a second aspect of the present invention, a device for matching a contact fingerprint with a contactless fingerprint comprises:
[0033] A data acquisition module, used to acquire the contact fingerprint and the contactless fingerprint to be matched;
[0034] The sampling module is used to extract the minutiae points of the contact fingerprint and the contactless fingerprint, and to perform sampling according to the minutiae points of the contact fingerprint and the contactless fingerprint to obtain the sampled fingerprints of the contact fingerprint and the contactless fingerprint;
[0035] The model calling module is used to input the contact fingerprint, the sampled fingerprint of the contact fingerprint, the contactless fingerprint and the sampled fingerprint of the contactless fingerprint into the preset fingerprint matching neural network model to obtain the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint;
[0036] The matching module is used to obtain the matching result of the contact fingerprint and the contactless fingerprint according to the similarity between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint.
[0037] In a third aspect of the present invention, a computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method for matching contact fingerprints with contactless fingerprints when executing the computer program.
[0038] A fourth aspect of the present invention is a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned method for matching contact fingerprints with contactless fingerprints are implemented.
[0039] Compared with the prior art, the present invention has the following beneficial effects:
[0040] The contact fingerprint and contactless fingerprint matching method of the present invention achieves the purpose of enhancing the fingerprint matching neural network model's ability to identify the contact fingerprint and the contactless fingerprint by sampling according to the detail points of the contact fingerprint and the contactless fingerprint and adopting an attention sampling method based on the detail points. Compared with the current contact fingerprint and contactless fingerprint matching method based on the neural network, the recognition efficiency is improved by adding an attention sampling branch based on the detail points, and the recognition efficiency can be more focused on the area around the detail points, the area around the detail points is enlarged, and the unimportant area is reduced, which is the area with the richest details of the fingerprint. The model pays more attention to the information of the area with a greater impact on the classification, thereby overcoming the difficulties of small inter-class distance and large intra-class variance in the scenario, so that the fingerprint matching neural network model has better indicators (such as error rate) under the same data set, so that the matching ability of the fingerprint matching neural network model is improved, and the matching accuracy of the contact fingerprint and the contactless fingerprint is improved, and it can be effectively used in actual application scenarios.
[0041] Furthermore, the fine-tuning method used in the model construction process can also be used in other similar biometric recognition scenarios, thereby saving computing resources and making the model converge more quickly; the sampling method based on the attention distribution of feature points proposed by this method can also be applied to other biometric recognition scenarios, thereby better combining the results of traditional methods with the powerful capabilities of neural networks, providing new solutions for similar problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A flow chart of a contact fingerprint and a contactless fingerprint matching method according to an embodiment of the present invention;
[0043] Figure 2 This is a flow chart of performing attention sampling according to detail points according to an embodiment of the present invention;
[0044] Figure 3 A schematic diagram of the structure of a fingerprint matching neural network model according to an embodiment of the present invention;
[0045] Figure 4 The structure block diagram of the contact fingerprint and contactless fingerprint matching system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0046] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0047] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0048] In actual work, the applicant found that deep learning technology represented by neural networks has made great breakthroughs in various fields, especially in the field of pattern recognition and biometric recognition. The recognition indicators of face recognition and palm print recognition have made new breakthroughs due to the use of deep learning algorithms. This provides a feasibility guarantee for us to use neural networks to solve the fingerprint matching problem. Some related studies have also confirmed the feasibility of this idea. At the same time, fingerprint matching can be regarded as a fine-grained recognition task. The research on fine-grained recognition is achieved by trying to make the model focus on areas with significant inter-class differences, which can be used to solve fingerprint recognition.
[0049] See also Figure 1 In one embodiment of the present invention, a method for matching contact fingerprints and contactless fingerprints is provided, specifically, a method for matching contact fingerprints and contactless fingerprints based on an attention sampling mechanism, which achieves high-precision matching between contact fingerprints and contactless fingerprints.
[0050] Specifically, the contact fingerprint and contactless fingerprint matching method includes the following steps:
[0051] S1: Obtain the contact fingerprint and contactless fingerprint to be matched.
[0052] S2: extracting minutiae points of the contact fingerprint and the contactless fingerprint, sampling according to the minutiae points of the contact fingerprint and the contactless fingerprint, and obtaining sampled fingerprints of the contact fingerprint and the contactless fingerprint.
[0053] S3: Input the contact fingerprint, the sampled fingerprint of the contact fingerprint, the contactless fingerprint, and the sampled fingerprint of the contactless fingerprint into a preset fingerprint matching neural network model to obtain high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint.
[0054] S4: According to the similarity between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint, a matching result of the contact fingerprint and the contactless fingerprint is obtained.
[0055] Wherein, in step S1, the contactless fingerprint can be collected by a contactless sensor, the contact fingerprint can be collected by a contact sensor, or can be each contact fingerprint in an existing contact fingerprint library, so as to achieve matching between the currently collected contactless fingerprint and the existing contact fingerprint.
[0056] In the step S2, the extraction of detail points of the contact fingerprint and the contactless fingerprint, sampling according to the detail points of the contact fingerprint and the contactless fingerprint, and obtaining the sampled fingerprints of the contact fingerprint and the contactless fingerprint include: using a fingerprint detail point extraction algorithm to extract the detail points of the contact fingerprint and the contactless fingerprint; for the contact fingerprint and the contactless fingerprint, the following operations are performed: an initial attention matrix with the same dimension as the fingerprint size is initialized, and the following operations are performed on each detail point: with the position of the current detail point as the center, a Gaussian distribution matrix is generated under the dimension of the initial attention matrix according to a preset standard deviation, the Gaussian distribution matrix is multiplied by the mass of the current detail point as the attention distribution of the current detail point, and the attention distribution of the current detail point is superimposed on the initial attention matrix; when the traversal of each detail point is completed, the attention matrix is obtained; the edge distribution of the horizontal axis and the vertical axis of the attention matrix are respectively calculated, and the integral of the edge distribution is respectively calculated to obtain the integral distribution of the edge distribution; the integral distribution of the edge distribution is interpolated using a B-spline curve to obtain a sampling matrix; sampling is performed according to the coordinates of each sampling coordinate in the sampling matrix corresponding to the coordinates of the fingerprint to obtain a sampled fingerprint. The attributes of a detail point include the x-coordinate of the detail point, the y-coordinate of the detail point, the quality of the detail point, and the type of the detail point. In addition, when the sampling coordinates are non-integer coordinates, bilinear interpolation is used to interpolate to make the final image clearer.
[0057] For details, see Figure 2 , shows the basic attention sampling process, where each link is the original fingerprint, including contact fingerprint and contactless fingerprint, attention distribution of detail points, edge distribution of attention matrix, integral distribution of edge distribution, and sampled fingerprint.
[0058] In a possible implementation manner, the contact fingerprint and contactless fingerprint matching method of the present invention, before extracting the minutiae of the contact fingerprint and the contactless fingerprint, further includes: preprocessing the contact fingerprint and the contactless fingerprint; the preprocessing includes: performing histogram equalization on both the contact fingerprint and the contactless fingerprint, and filtering with a Garbor filter to maximize the contrast of the image.
[0059] See also Figure 3 In step S3, the preset fingerprint matching neural network model includes a contact fingerprint branch and a contactless fingerprint branch with consistent network structures and shared parameters; the contact fingerprint branch and the contactless fingerprint branch are both convolutional neural networks; the input of the contact fingerprint branch is the contact fingerprint and the sampled fingerprint of the contact fingerprint, and the output is the high-dimensional feature vector of the contact fingerprint; the input of the contactless fingerprint branch is the sampled fingerprint of the contactless fingerprint and the contactless fingerprint, and the output is the high-dimensional feature vector of the contactless fingerprint.
[0060] In a possible implementation, the fingerprint matching neural network model preset in step S3 can be constructed in the following manner:
[0061] S301: Acquire contact fingerprint samples and non-contact fingerprint samples of several fingers.
[0062] Specifically, a contact sensor and a contactless sensor are used to collect fingerprint images for each finger, and each user collects multiple times to obtain sufficient fingerprint images, thereby obtaining contact fingerprint samples and contactless fingerprint samples of several fingers.
[0063] In a possible implementation, the obtained raw data is preprocessed, the contact fingerprint samples obtained by the contact sensor are histogram equalized, the non-contact fingerprint samples obtained by the non-contact sensor are histogram equalized, and the contrast of the fingerprint samples is enhanced by using a Garbor filter.
[0064] In a possible implementation, when the contact fingerprint samples and non-contact fingerprint samples of several fingers are obtained, when the number of contact fingerprint samples and non-contact fingerprint samples collected is less than a preset value, the number of contact fingerprint samples and non-contact fingerprint samples is enhanced by image rotation. Specifically, for each contact fingerprint sample and non-contact fingerprint sample, the image rotation method is used for data enhancement. Because there is edge filling during the rotation process, there will be a change in image size, and the rotated image is scaled to the same size as the image before rotation. Different data enhancement ratios N can be set for different situations in different scenarios, and the optimal parameter N can be selected through multiple experiments.
[0065] For example, for each contact fingerprint sample, it is rotated by four angles of 8°, -8°, 15° and -15° respectively; for each non-contact fingerprint sample, it is rotated by four angles of 10°, -10°, 20° and -20° respectively, thereby expanding the fingerprint sample to six times the original fingerprint sample.
[0066] S302: extracting minutiae points of the contact fingerprint sample and the contactless fingerprint sample, and performing sampling according to the minutiae points of the contact fingerprint sample and the contactless fingerprint sample to obtain sampled fingerprint samples of the contact fingerprint sample and the contactless fingerprint sample. Specifically, the following steps are included:
[0067] S3021: Use the fingerprint minutiae extraction algorithm to extract minutiae points of all contact fingerprint samples and contactless fingerprint samples. The attributes of a minutiae point should include: the x-coordinate of the minutiae point, the y-coordinate of the minutiae point, the quality of the minutiae point, and the type of the minutiae point.
[0068] S3022: For each fingerprint sample, initialize an attention matrix whose dimension should be consistent with the size of the fingerprint sample image, traverse all the detail points of the fingerprint sample, and perform the following operations on each detail point: with the current detail point position as the center, the specified parameter σ as the standard deviation, optionally, σ = 10, generate a Gaussian distribution matrix under the dimension of the attention matrix; multiply the generated Gaussian distribution matrix by the mass of the detail point as the attention distribution of the detail point at that location; superimpose the attention distribution on the attention matrix to generate a new attention matrix.
[0069] S3023: For each fingerprint sample, according to the attention matrix obtained in S3022, perform the following operations: calculate the marginal distribution for the horizontal and vertical axes of the attention matrix respectively; for the marginal distribution of each axis, calculate the integral of the marginal distribution respectively, and the calculated integral result is the integral distribution of the marginal distribution; for the integral distribution of each marginal distribution, use the B-spline curve to interpolate, divide the dependent variable evenly according to the size of the fingerprint image, set the corresponding independent variable as the horizontal (vertical) coordinate of the sampling, and obtain the sampling matrix.
[0070] S3024: For each fingerprint, according to the sampling matrix obtained in S3023, the following steps are performed: sampling is performed according to the coordinates of each sampling coordinate in the sampling matrix corresponding to the coordinates of the fingerprint sample. When the sampling coordinates are located at non-integer coordinate points, bilinear interpolation is used to interpolate to make the sampled image clearer, and finally the contact fingerprint samples and the contactless fingerprint samples are obtained.
[0071] S303: Generate a data set based on the contact fingerprint samples, the contactless fingerprint samples, the sampled fingerprint samples of the contact fingerprint samples and the sampled fingerprint samples of the contactless fingerprint samples; the data set includes paired samples and unpaired samples in a preset ratio, the paired samples include the contact fingerprint samples, the contactless fingerprint samples, the sampled fingerprint samples of the contact fingerprint samples and the sampled fingerprint samples of the contactless fingerprint samples of the same finger, and the unpaired samples include the contact fingerprint samples and the sampled fingerprint samples of the contact fingerprint samples of one finger, and the contactless fingerprint samples and the sampled fingerprint samples of the contactless fingerprint samples of another finger.
[0072] Specifically, the following steps are included:
[0073] S3031: For the contact fingerprint sample set Cb and the contactless fingerprint sample Cl, as well as the contact fingerprint sample sample set Cb-A and the contactless fingerprint sample sample set Cl-A; let the finger index be n, set two initial sets A and B, set A = (a 1 , a 2 ……a n ) stores the finger ID corresponding to each contact fingerprint sample; set B = (b 1 , b 2 ……b n ) stores the finger ID corresponding to each contactless fingerprint sample; find the Cartesian product of set A and set B as C, and convert each element (a i , b j ) corresponds to a set of fingerprint pairs As an element of the data set, thus forming a data set; if this pair of fingerprints belongs to the same finger, that is, a i =b j , then the label of this fingerprint pair is set to be matched, otherwise it is set to be unmatched.
[0074] S3032: In the obtained data set, since the number of matched fingerprint pairs is much smaller than the number of unmatched fingerprint pairs, for all the unmatched fingerprint pairs obtained, unmatched fingerprint pairs equal to the number of matched fingerprint pairs are randomly selected, and the remaining unmatched fingerprint pairs are discarded to obtain the final data set.
[0075] S3033: Divide the obtained data set into a training set, a test set and a validation set according to a certain ratio.
[0076] S304: construct an initial fingerprint matching neural network model, and train the initial fingerprint matching neural network model through the data set according to the loss function L of the following formula to obtain a preset fingerprint matching neural network model:
[0077] L=(1-Y)max((d-M1 ),0) 2 +Ymax((M 2 -d), 0) 2
[0078] Among them, Y = 0 is a paired sample, Y = 1 is an unpaired sample, M 1 and M 2 is the preset boundary value.
[0079] Specifically, the following steps are included:
[0080] S3041: Construct an initial fingerprint matching neural network model. The fingerprint matching neural network model consists of two branches, one branch is a contact fingerprint branch, and the other branch is a contactless fingerprint branch. The two have the same network structure and shared parameters.
[0081] S3042: Each branch of the fingerprint matching neural network model is divided into two sub-branches, the input of one sub-branch is the fingerprint sample, and the input of the other sub-branch is the sampled fingerprint sample of the fingerprint sample.
[0082] S3043: Set the structure of each sub-branch to a convolutional neural network pre-trained on a large image dataset, optionally, to an inception-v3 network pre-trained on the Imagenet dataset, with its convolution parameters remaining the pre-trained parameters, and remove the final fully connected classification layer of the convolutional neural network. For each branch, add the high-level features extracted by the convolutional neural network of each sub-branch, and pass through a fully connected layer, optionally through a fully connected layer with a dimension of 512, to obtain the final result of this branch.
[0083] S3044: When the fingerprint matching neural network model is forward propagated, for each element in the data set Will and After passing through two corresponding branches in turn, different high-dimensional feature vectors are obtained; and the Euclidean distance d between the two high-dimensional feature vectors is calculated and used as an indicator for evaluating similarity.
[0084] S3045: When training the fingerprint matching neural network model, the fingerprint matching neural network model is trained using the training set based on the given training rounds. The training method is: the learning rate is set to one tenth of the original learning rate of the convolutional neural network, and the training is performed within a preset number of iterations. The training optimizer is Adam.
[0085] Specifically, in step S4, obtaining the matching result of the contact fingerprint and the contactless fingerprint according to the similarity between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint includes: calculating the Euclidean distance between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint; when the Euclidean distance between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint is less than a preset Euclidean distance threshold, the matching result of the contact fingerprint and the contactless fingerprint is a match; otherwise, the matching result of the contact fingerprint and the contactless fingerprint is a mismatch.
[0086] The Euclidean distance threshold can be determined based on the Euclidean distance of the paired samples obtained during model training. For example, a paired sample is selected from the test set, and the Euclidean distance d generated by the paired sample is used as a benchmark, and the appropriate Euclidean distance threshold is set to 2. If the current Euclidean distance > 2, it is considered that the contact fingerprint to be matched does not match the contactless fingerprint; otherwise, it is considered to match, and a fingerprint matching process is completed.
[0087] The contact fingerprint and contactless fingerprint matching method of the present invention designs a method for generating attention distribution through detail points and using the attention distribution to perform attention sampling, so as to realize attention branches based on detail points, and enhance the matching ability of the neural network to identify the contact fingerprint and the contactless fingerprint. Compared with the current contact fingerprint and contactless fingerprint matching method based on neural network, the constructed fingerprint matching neural network model improves the efficiency of the model by adding attention mechanism branches, and can focus more on the areas around the detail points, which are the areas with the richest details of the fingerprint, so that the indicators of the model under the same data set (such as equal error rate) are more excellent, so that the matching ability of the model is improved, and it can be more effectively applied to actual application scenarios.
[0088] In addition, the fine-tuning method used in the model in this method can also be used in other similar biometric recognition scenarios, thereby saving computing resources and making the model converge more quickly; the sampling method based on the attention distribution of feature points proposed by this method can also be applied to other biometric recognition scenarios, thereby better combining the results of traditional methods with the powerful capabilities of neural networks, providing new solutions for similar problems.
[0089] Among them, the attention sampling mechanism based on fingerprint feature points can make the sampled graphics enlarge the area around the feature points and shrink the unimportant areas without very obvious deformation, so that the attention mechanism can be more accurately embedded in the model training. In addition, the design of the attention branch enables the model to not only extract more general information from the global level during the training process, but also enable the model to pay more attention to the information of the areas that have a greater impact on classification, thereby overcoming the difficulties of small inter-class distance and large intra-class variance in this scenario. At the same time, the fine-tuning and retraining methods used in the model training process greatly reduced the model training time, and successfully retained the knowledge information extracted by the model on large-scale image recognition datasets, and realized the transfer of general knowledge in different scenarios.
[0090] The following are device embodiments of the present invention, which can be used to implement the method embodiments of the present invention. For details not disclosed in the device embodiments, please refer to the method embodiments of the present invention.
[0091] See also Figure 4 In another embodiment of the present invention, a contact fingerprint and a contactless fingerprint matching device is provided, which can be used to implement the above-mentioned contact fingerprint and contactless fingerprint matching method. Specifically, the contact fingerprint and contactless fingerprint matching device includes a data acquisition module, a sampling module, a model calling module and a matching module.
[0092] Among them, the data acquisition module is used to obtain the contact fingerprint and contactless fingerprint to be matched; the sampling module is used to extract the detail points of the contact fingerprint and the contactless fingerprint, and sample according to the detail points of the contact fingerprint and the contactless fingerprint to obtain the sampled fingerprints of the contact fingerprint and the contactless fingerprint; the model calling module is used to input the contact fingerprint, the sampled fingerprint of the contact fingerprint, the contactless fingerprint and the sampled fingerprint of the contactless fingerprint into the preset fingerprint matching neural network model to obtain the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint; the matching module is used to obtain the matching result of the contact fingerprint and the contactless fingerprint according to the similarity between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint.
[0093] In a possible implementation, before extracting the minutiae of the contact fingerprint and the contactless fingerprint, the method further includes: preprocessing the contact fingerprint and the contactless fingerprint; the preprocessing includes: performing histogram equalization on both the contact fingerprint and the contactless fingerprint, and filtering with a Garbor filter.
[0094] In a possible implementation, the extraction of detail points of contact fingerprints and contactless fingerprints, sampling according to the detail points of contact fingerprints and contactless fingerprints, and obtaining sampled fingerprints of contact fingerprints and contactless fingerprints include: using a fingerprint detail point extraction algorithm to extract detail points of contact fingerprints and contactless fingerprints; for contact fingerprints and contactless fingerprints, the following operations are performed: initializing an initial attention matrix with the same dimension as the fingerprint size, and performing the following operations on each detail point: taking the position of the current detail point as the center, generating a Gaussian distribution matrix under the dimension of the initial attention matrix according to a preset standard deviation, multiplying the Gaussian distribution matrix by the mass of the current detail point as the attention distribution of the current detail point, and superimposing the attention distribution of the current detail point on the initial attention matrix; when the traversal of each detail point is completed, an attention matrix is obtained; the edge distribution of the horizontal axis and the vertical axis of the attention matrix are respectively calculated, and the integral of the edge distribution is respectively calculated to obtain the integral distribution of the edge distribution; for the integral distribution of the edge distribution, use B The spline curve is interpolated to obtain a sampling matrix; sampling is performed according to the coordinates of each sampling coordinate in the sampling matrix corresponding to the coordinates of the fingerprint to obtain a sampled fingerprint; wherein, when the sampling coordinates are non-integer coordinate points, bilinear interpolation is used for interpolation.
[0095] In a possible implementation, the preset fingerprint matching neural network model includes a contact fingerprint branch and a contactless fingerprint branch with consistent network structures and shared parameters; wherein the contact fingerprint branch and the contactless fingerprint branch are both convolutional neural networks; the input of the contact fingerprint branch is the contact fingerprint and the sampled fingerprint of the contact fingerprint, and the output is the high-dimensional feature vector of the contact fingerprint; the input of the contactless fingerprint branch is the contactless fingerprint and the sampled fingerprint of the contact fingerprint, and the output is the high-dimensional feature vector of the contactless fingerprint.
[0096] In a possible implementation, the preset fingerprint matching neural network model is constructed by: obtaining contact fingerprint samples and contactless fingerprint samples of several fingers; extracting detail points of the contact fingerprint samples and the contactless fingerprint samples, and sampling according to the detail points of the contact fingerprint samples and the contactless fingerprint samples to obtain sampled fingerprint samples of the contact fingerprint samples and the contactless fingerprint samples; generating a data set based on the contact fingerprint samples, the contactless fingerprint samples, the sampled fingerprint samples of the contact fingerprint samples, and the sampled fingerprint samples of the contactless fingerprint samples; wherein the data set includes paired samples and unpaired samples in a preset ratio, the paired samples include the contact fingerprint samples, the contactless fingerprint samples, the sampled fingerprint samples of the contact fingerprint samples, and the sampled fingerprint samples of the contactless fingerprint samples of the same finger, and the unpaired samples include the contact fingerprint samples and the sampled fingerprint samples of the contact fingerprint samples of one finger, and the contactless fingerprint samples and the sampled fingerprint samples of the contactless fingerprint samples of another finger; constructing an initial fingerprint matching neural network model, and training the initial fingerprint matching neural network model through the data set according to the loss function L of the following formula to obtain the preset fingerprint matching neural network model;
[0097] L=(1-Y)max((dM 1 ),0) 2 +Ymax((M 2 -d),0) 2
[0098] Among them, Y = 0 is a paired sample, Y = 1 is an unpaired sample, M 1 and M 2 is the preset boundary value.
[0099] In a possible implementation, when acquiring contact fingerprint samples and contactless fingerprint samples of several fingers, when the number of contact fingerprint samples and contactless fingerprint samples collected is less than a preset value, an image rotation method is used to enhance the number of contact fingerprint samples and contactless fingerprint samples; when constructing the initial fingerprint matching neural network model, the convolutional neural networks of the contact fingerprint branch and the contactless fingerprint branch both use convolutional neural networks that have been pre-trained with an existing image data set.
[0100] In a possible implementation, obtaining the matching result of the contact fingerprint and the contactless fingerprint according to the similarity between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint includes: calculating the Euclidean distance between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint; when the Euclidean distance between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint is less than a preset Euclidean distance threshold, the matching result of the contact fingerprint and the contactless fingerprint is a match; otherwise, the matching result of the contact fingerprint and the contactless fingerprint is a mismatch.
[0101] All relevant contents of each step involved in the embodiment of the contact fingerprint and contactless fingerprint matching method can be referred to the functional description of the functional modules corresponding to the contact fingerprint and contactless fingerprint matching device in the embodiment of the present invention, and will not be repeated here.
[0102] The division of modules in the embodiments of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present invention may be integrated into one processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0103] In another embodiment of the present invention, a computer device is provided, the computer device includes a processor and a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc., which are the computing core and control core of the terminal, which are suitable for implementing one or more instructions, and are specifically suitable for loading and executing one or more instructions in the computer storage medium to implement the corresponding method flow or corresponding function; the processor described in the embodiment of the present invention can be used for the operation of the matching method of contact fingerprint and contactless fingerprint.
[0104] In another embodiment of the present invention, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both the built-in storage medium in the computer device and the extended storage medium supported by the computer device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the matching method of contact fingerprint and contactless fingerprint in the above embodiment.
[0105] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0106] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0107] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0108] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0109] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for matching contact fingerprints with contactless fingerprints. It is characterized in that include: Acquire the contact fingerprint and contactless fingerprint to be matched; Extracting minutiae points of the contact fingerprint and the contactless fingerprint, sampling according to the minutiae points of the contact fingerprint and the contactless fingerprint, and obtaining sampled fingerprints of the contact fingerprint and the contactless fingerprint; Input the contact fingerprint, the sampled fingerprint of the contact fingerprint, the contactless fingerprint and the sampled fingerprint of the contactless fingerprint into a preset fingerprint matching neural network model to obtain high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint; According to the similarity between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint, the matching result of the contact fingerprint and the contactless fingerprint is obtained; The extracting of minutiae points of the contact fingerprint and the contactless fingerprint, sampling according to the minutiae points of the contact fingerprint and the contactless fingerprint, and obtaining the sampled fingerprints of the contact fingerprint and the contactless fingerprint comprises: Use fingerprint minutiae extraction algorithm to extract minutiae points of contact fingerprints and contactless fingerprints; For both contact fingerprint and contactless fingerprint, perform the following operations: Initialize an initial attention matrix with the same dimension as the fingerprint size, and perform the following operations on each detail point: take the position of the current detail point as the center, generate a Gaussian distribution matrix under the dimension of the initial attention matrix according to the preset standard deviation, multiply the Gaussian distribution matrix by the mass of the current detail point as the attention distribution of the current detail point, and superimpose the attention distribution of the current detail point on the initial attention matrix; After the traversal of each detail point is completed, the attention matrix is obtained; the edge distribution is calculated for the horizontal axis and the vertical axis of the attention matrix respectively, and the integral of the edge distribution is calculated respectively to obtain the integral distribution of the edge distribution; the integral distribution of the edge distribution is interpolated using the B-spline curve to obtain the sampling matrix; Sampling is performed according to the coordinates of each sampling coordinate in the sampling matrix corresponding to the coordinates of the fingerprint to obtain a sampled fingerprint; wherein, when the sampling coordinates are non-integer coordinate points, bilinear interpolation is used for interpolation.
2. The method for matching contact fingerprints with contactless fingerprints according to claim 1, It is characterized in that Before extracting the minutiae of the contact fingerprint and the contactless fingerprint, the method further includes: The contact fingerprint and the contactless fingerprint are preprocessed; the preprocessing includes: performing histogram equalization on both the contact fingerprint and the contactless fingerprint, and filtering with a Garbor filter.
3. The method for matching contact fingerprints with contactless fingerprints according to claim 1, It is characterized in that The preset fingerprint matching neural network model includes a contact fingerprint branch and a non-contact fingerprint branch with consistent network structure and shared parameters; Among them, both the contact fingerprint branch and the contactless fingerprint branch are convolutional neural networks; the input of the contact fingerprint branch is the contact fingerprint and the sampled fingerprint of the contact fingerprint, and the output is the high-dimensional feature vector of the contact fingerprint; the input of the contactless fingerprint branch is the contactless fingerprint and the sampled fingerprint of the contactless fingerprint, and the output is the high-dimensional feature vector of the contactless fingerprint.
4. The method for matching contact fingerprints with contactless fingerprints according to claim 3, It is characterized in that The preset fingerprint matching neural network model is constructed in the following way: Acquire contact fingerprint samples and contactless fingerprint samples of several fingers; Extracting minutiae points of the contact fingerprint sample and the contactless fingerprint sample, and performing sampling according to the minutiae points of the contact fingerprint sample and the contactless fingerprint sample to obtain sampled fingerprint samples of the contact fingerprint sample and the contactless fingerprint sample; Generate a data set based on the contact fingerprint samples, the contactless fingerprint samples, the sampled fingerprint samples of the contact fingerprint samples and the sampled fingerprint samples of the contactless fingerprint samples; wherein the data set includes paired samples and unpaired samples in a preset ratio, the paired samples include the contact fingerprint samples, the contactless fingerprint samples, the sampled fingerprint samples of the contact fingerprint samples and the sampled fingerprint samples of the contactless fingerprint samples of the same finger, and the unpaired samples include the contact fingerprint samples and the sampled fingerprint samples of the contact fingerprint samples of one finger, and the contactless fingerprint samples and the sampled fingerprint samples of the contactless fingerprint samples of another finger; Construct an initial fingerprint matching neural network model, and train the initial fingerprint matching neural network model through the data set according to the loss function L of the following formula to obtain a preset fingerprint matching neural network model; L=(1-Y)max((dM 1 ),0) 2 +Ymax((M 2 -d),0) 2 Among them, Y = 0 is a paired sample, Y = 1 is an unpaired sample, M 1 and M 2 is the preset boundary value.
5. The method for matching contact fingerprints with contactless fingerprints according to claim 4, It is characterized in that When acquiring contact fingerprint samples and contactless fingerprint samples of several fingers, when the number of contact fingerprint samples and contactless fingerprint samples collected is less than a preset value, an image rotation method is used to enhance the number of contact fingerprint samples and contactless fingerprint samples; when constructing the initial fingerprint matching neural network model, the convolutional neural networks of the contact fingerprint branch and the contactless fingerprint branch both use convolutional neural networks pre-trained with existing image data sets.
6. The method for matching contact fingerprints and contactless fingerprints according to claim 1, It is characterized in that The step of obtaining the matching result between the contact fingerprint and the contactless fingerprint according to the similarity between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint includes: Calculate the Euclidean distance between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint; When the Euclidean distance between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint is less than a preset Euclidean distance threshold, the matching result of the contact fingerprint and the contactless fingerprint is a match; otherwise, the matching result of the contact fingerprint and the contactless fingerprint is a mismatch.
7. A contact fingerprint and a contactless fingerprint matching device, It is characterized in that include: A data acquisition module, used to acquire the contact fingerprint and the contactless fingerprint to be matched; The sampling module is used to extract the minutiae points of the contact fingerprint and the contactless fingerprint, and to perform sampling according to the minutiae points of the contact fingerprint and the contactless fingerprint to obtain the sampled fingerprints of the contact fingerprint and the contactless fingerprint; The model calling module is used to input the contact fingerprint, the sampled fingerprint of the contact fingerprint, the contactless fingerprint and the sampled fingerprint of the contactless fingerprint into the preset fingerprint matching neural network model to obtain the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint; A matching module, used to obtain a matching result between the contact fingerprint and the contactless fingerprint according to the similarity between the high-dimensional feature vectors of the contact fingerprint and the contactless fingerprint; The extracting of minutiae points of the contact fingerprint and the contactless fingerprint, sampling according to the minutiae points of the contact fingerprint and the contactless fingerprint, and obtaining the sampled fingerprints of the contact fingerprint and the contactless fingerprint comprises: Use fingerprint minutiae extraction algorithm to extract minutiae points of contact fingerprints and contactless fingerprints; For both contact fingerprint and contactless fingerprint, perform the following operations: Initialize an initial attention matrix with the same dimension as the fingerprint size, and perform the following operations on each detail point: take the position of the current detail point as the center, generate a Gaussian distribution matrix under the dimension of the initial attention matrix according to the preset standard deviation, multiply the Gaussian distribution matrix by the mass of the current detail point as the attention distribution of the current detail point, and superimpose the attention distribution of the current detail point on the initial attention matrix; After the traversal of each detail point is completed, the attention matrix is obtained; the edge distribution is calculated for the horizontal axis and the vertical axis of the attention matrix respectively, and the integral of the edge distribution is calculated respectively to obtain the integral distribution of the edge distribution; the integral distribution of the edge distribution is interpolated using the B-spline curve to obtain the sampling matrix; Sampling is performed according to the coordinates of each sampling coordinate in the sampling matrix corresponding to the coordinates of the fingerprint to obtain a sampled fingerprint; wherein, when the sampling coordinates are non-integer coordinate points, bilinear interpolation is used for interpolation.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method for matching a contact fingerprint with a contactless fingerprint are implemented as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the method for matching a contact fingerprint with a contactless fingerprint are implemented as claimed in any one of claims 1 to 6.
Citation Information
Patent Citations
Fingerprint detection method based on intelligent mobile information equipment
CN104751040A
Fingerprint minutiae detection method, device, apparatus, system and storage medium
CN109145810A
Cross-matching contactless fingerprints against legacy contact-based fingerprints
WO2020247494A1
