Online handwritten signature authentication method based on meta-learning

Through the meta-learning method and feature quality screening technology, the problem of low efficiency of online handwritten signature authentication with a small number of samples is solved, and fast convergence and high-accuracy authentication effects are achieved.

CN114882600BActive Publication Date: 2024-09-06XIDIAN UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210658286.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-10
Publication Date
2024-09-06
Estimated Expiration
2042-06-10

AI Technical Summary

Technical Problem

Existing online handwritten signature authentication methods have low authentication efficiency in the case of a small number of samples, resulting in low accuracy. In particular, the randomly initialized weight parameters of the triplet pre-training model lead to slow training speed.

Method used

The meta-learning method is used to train the online handwritten signature authentication network model. Through multiple iterations of the training support set and query set, the optimal weight parameters are found to avoid random initialization, improve the convergence speed and authentication efficiency, and filter through feature quality scores. features to reduce the impact of irrelevant features on training.

Benefits of technology

It significantly improves the efficiency of online handwritten signature authentication, reduces training time, improves authentication accuracy, avoids overfitting, and enhances authentication capabilities with a small number of samples.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114882600B
    Figure CN114882600B
Patent Text Reader

Abstract

The present invention proposes an online handwritten signature authentication method based on meta-learning, and the implementation steps are: obtaining a training data set and a test data set; constructing an online handwritten signature authentication network model; training the online handwritten signature authentication network model based on meta-learning; and obtaining an online handwritten signature authentication result. The present invention trains the online handwritten signature authentication network based on meta-learning, obtains a set of optimal weight parameters by training the online handwritten signature authentication network with a training support set, and then iteratively trains the online handwritten signature authentication network based on the set of weight parameters, thereby avoiding the time-consuming defect of using random weight parameters for training, and improving the authentication efficiency in the case of a small number of handwritten signatures while ensuring the authentication accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of identity authentication and relates to an online handwritten signature authentication method, which can be used for signature authentication in the financial field. Background Art

[0002] Online handwritten signature authentication has been applied in the field of finance. Handwritten signature verification is divided into two methods: online handwritten signature and offline handwritten signature. Unlike offline handwritten signature, online handwritten signature is collected through a signature board, mainly collecting dynamic behavior elements, such as stroke order, speed and pressure, which helps to enhance the robustness of the verification system. Generally, online handwritten signature authentication first extracts the handwritten signature features, preprocesses them, and uses matching methods such as DTW dynamic path matching or deep learning methods to input the preprocessed online handwritten signature into the trained network model to finally obtain the authentication result.

[0003] With the continuous development of deep learning, more and more signature authentication methods are implemented based on deep learning models, but this method requires authentication based on a large number of signatures. When the amount of data is insufficient, overfitting often occurs, resulting in low authentication accuracy, and in real life, it is often impossible to obtain a large number of signatures for training.

[0004] In order to ensure high authentication accuracy with a small number of samples, R&D personnel have done a lot of exploration. For example, Bank of China Co., Ltd. proposed a signature authentication method based on a small number of samples in its patent application "A method and device for identifying the authenticity of handwritten signatures based on a small number of samples" (application publication number: CN114005184A, patent application number: CN202111294914.X). The method first obtains the user's reserved signature sample; builds and trains a triple network pre-training model; determines the real signature embedding vector based on the user's reserved signature sample and the triple network pre-training model; collects the user's real-time signature picture and inputs it into the triple network pre-training model to determine the real-time signature embedding vector; finally identifies the authenticity of the user's real-time signature information based on the real signature embedding vector and the real-time signature embedding vector. The disadvantage of this method is that the method pre-trains the network model based on the randomly initialized weight parameters of the triple pre-training model, and the training speed is slow, resulting in low authentication efficiency.

[0005] Meta-learning is a type of deep learning that can be used to solve task classification problems with a small number of samples. In addition, unlike traditional deep learning methods, meta-learning can find the optimal weight parameters of the network model and train and iterate them, without having to iterate the network model from randomly initialized weight parameters, ultimately achieving faster convergence speed and better prediction results. Summary of the invention

[0006] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and propose an online handwritten signature authentication method based on meta-learning, which aims to solve the technical problem of low authentication efficiency in the case of a small number of handwritten signatures in the prior art while ensuring the authentication accuracy.

[0007] To achieve the above object, the technical solution adopted by the present invention includes the following steps:

[0008] (1) Obtain training and test datasets:

[0009] (1a) For R users U = {U1, U2, ..., U r ,...,U R} for each user U r D online handwritten signature Preprocessing is performed to obtain U r A collection of preprocessed online handwritten signatures Among them, R ≥ 5, U r represents the rth user, D ≥ 5, Respectively represent U r The d-th online handwritten signature, the preprocessed online handwritten signature;

[0010] (1b) Extract each user U r Each pre-processed online handwritten signature M features of And through H r The intra-class difference scores N(r,m) and H r Compare with other users' pre-processed online handwritten signatures H r' The inter-class difference score J(r,m), r≠r', calculate each feature The characteristic quality score Q(r,m):

[0011]

[0012]

[0013]

[0014] Among them, M ≥ 12, express The mth feature of g represents the logarithm operation, ∑ represents the sum operation, and dist(·) represents the Manhattan distance operation. Indicates H r , H r' The mean of the mth feature in ;

[0015] (1c) Select each user U r Each feature set of The first N features with the largest feature quality scores constitute the online handwritten signature P r d , we obtain a dataset B containing R×D online handwritten signatures of all users, where N<M, and we use more than half of the online handwritten signatures and their corresponding user labels to form the training dataset B tr , the remaining online handwritten signatures and their corresponding user labels form the test data set B te , then B tr The online handwritten signatures and their corresponding user labels constitute the training support set The remaining J online handwritten signatures and their corresponding user labels form a training query set At the same time, B te A online handwritten signatures and their corresponding user labels constitute the test support set The remaining C online handwritten signatures and their corresponding user labels form a test query set Where I>J, Indicates B str The i-th online handwritten signature and its user label in Indicates B qtr The jth online handwritten signature and its user label in , A>C, Indicates B ste The ath online handwritten signature and its user label in Indicates B qte The cth online handwritten signature and its user label in ;

[0016] (2) Constructing online handwritten signature authentication network model O:

[0017] Build an online handwritten signature authentication network model O including multiple convolution blocks connected in sequence and a fully connected layer, where each convolution block includes a convolution layer, a normalization layer, an activation layer, and a pooling layer connected in sequence;

[0018] (3) Training the online handwritten signature authentication network model based on meta-learning:

[0019] (3a) Initialize the weight parameter of the online handwritten signature authentication network model O to θ, the number of iterations to k, the maximum number of iterations to K, K ≥ 1000, and the kth iteration of the online handwritten signature authentication network model O k The weight parameter is θ k , and let k = 1;

[0020] (3b) The training support set B str As the input of the online handwritten signature authentication network model O,str Each online handwritten signature in Make predictions and use the cross entropy loss function, through The prediction result calculates the loss value L of O, and then uses the gradient descent method to calculate the gradient of L to θ Update θ to obtain each online handwritten signature of the online handwritten signature authentication network model The weight parameter θ i ;

[0021] (3c) The training query set B qtr As the input of the online handwritten signature authentication network model O, multiple convolutional blocks are used to qtr Each online handwritten signature in Perform convolution operation, and then Perform normalization operation, then activate the normalized result, and finally perform pooling operation on the activated result to obtain The online handwritten signature feature vector is obtained by performing a full connection operation on the signature feature vector. The prediction score of

[0022] (3d) adopts the cross entropy loss function and passes The prediction score of O is calculated as the loss value L k , then pass L k For θ k ,θ i Gradient For θ k Update, the update formula is:

[0023]

[0024] Among them, β represents the learning rate;

[0025] (3e) Determine whether k=K. If so, obtain the pre-trained online handwritten signature authentication network O' and execute step (3f). Otherwise, set k=k+1 and execute step (3c).

[0026] (3f) The test support set B ste As the input of the pre-trained online handwritten signature authentication network O', forward propagation is performed to obtain B ste Each online handwritten signature The prediction result is obtained by using the cross entropy loss function. The prediction result is used to calculate the loss value L' of O', and then the gradient descent method is used to calculate the gradient of L' to θ' Update θ' to get the trained online handwritten signature authentication model O * ;

[0027] (4) Obtain online handwritten signature authentication results:

[0028] The test query set B qte As the trained online handwritten signature authentication model O * The input is forward propagated to obtain The prediction score q c , and judge q c Does the preset threshold σ satisfy q? c >σ, if so, then It is a genuine signature, otherwise it is a forged signature.

[0029] Compared with the prior art, the present invention has the following advantages:

[0030] First, in the process of training the online handwritten signature authentication network, the present invention uses a meta-learning method to train the online handwritten signature authentication network through a training support set to obtain a set of optimal weight parameters, and then trains the online handwritten signature authentication network based on this set of weight parameters through a training query set, thereby avoiding the defect of slow convergence speed of the prior art and effectively improving the authentication efficiency.

[0031] Secondly, the present invention selects the partial features with the largest feature quality score in each feature set of each user to form an online handwritten signature, and re-acquires the online handwritten signatures of all screened users to form a data set, thereby reducing the time consumed by irrelevant features in the training process of the online handwritten signature authentication network and further improving the authentication efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is an implementation flow chart of the present invention.

[0033] Figure 2 It is a flow chart of the training of online handwritten signature authentication network based on meta-learning in the present invention. DETAILED DESCRIPTION

[0034] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0035] Reference Figure 1 , the present invention comprises the following steps:

[0036] Step 1) Get the training and test datasets:

[0037] Step 1a) For R users U = {U1, U2, ..., U r ,...,U R} for each user U r D online handwritten signature Pre-process each online handwritten signature The five-point cubic smoothing method is used to perform a smoothing operation to remove interference noise and bad pixels, and the position of the smoothed online handwritten signature is normalized, and then the position normalization result is normalized, and then the size normalization result is normalized, and then the size normalization result is normalized to reduce the influence of irrelevant factors on each online handwritten signature, and U is obtained. r A collection of preprocessed online handwritten signatures Among them, R ≥ 5, U r represents the rth user, D ≥ 5, Respectively represent U r The d-th online handwritten signature and the preprocessed online handwritten signature, in this embodiment, R=10, D=20;

[0038] Step 1b) Extract each user U r Online handwritten signature The coordinate values, pressure values, angles, angular velocity and time characteristics of the coordinate value, pressure value, angle, angular velocity and time characteristics are calculated respectively, and a feature set consisting of M statistical features is obtained. And through H r The intra-class difference scores N(r,m) and H r Compare with other users' pre-processed online handwritten signatures H r' The inter-class difference score J(r,m), r≠r', calculate each feature The characteristic quality score Q(r,m):

[0039]

[0040]

[0041]

[0042] Among them, M ≥ 12, express The mth feature of , lg represents the logarithm operation, ∑ represents the sum operation, and dist(·) represents the Manhattan distance operation. Indicates H r , H r' The mean value of the mth feature in , in this embodiment, M=15;

[0043] H r The intra-class difference score N(r,m) represents the mth feature With H r The difference degree of the mean of the mth feature in the H. The lower the intra-class difference score, the better the stability of the feature. The inter-class difference score indicates that H rThe mth feature mean and H r' The difference degree of the mth feature mean in H r Compare with other users' pre-processed online handwritten signatures H r' The higher the inter-class difference score J(r,m), the better the distinguishability of the feature. The feature quality score indicates that the mth feature The higher the feature quality score, the better the quality of the feature.

[0044] Step 1c) Select each user U r Each feature set of The first N features with the largest feature quality scores constitute the online handwritten signature P r d , we obtain a dataset B containing R×D online handwritten signatures of all users, where N<M, and we use more than half of the online handwritten signatures and their corresponding user labels to form the training dataset B tr , the remaining online handwritten signatures and their corresponding user labels form the test data set B te , then B tr The online handwritten signatures and their corresponding user labels constitute the training support set The remaining J online handwritten signatures and their corresponding user labels form a training query set At the same time, B te A online handwritten signatures and their corresponding user labels constitute the test support set The remaining C online handwritten signatures and their corresponding user labels form a test query set Where I>J, Indicates B str The i-th online handwritten signature and its user label in Indicates B qtr The jth online handwritten signature and its user label in , A>C, Indicates B ste The ath online handwritten signature and its user label in Indicates B qte The cth online handwritten signature and its user label in the embodiment, in which N=10, I=98, J=42, A=42, C=18;

[0045] According to each online handwritten signature feature The feature quality score Q(r,m) is used to screen out effective features, which avoids the influence of irrelevant features on the training of the online handwritten signature authentication network, reduces the training time, and further improves the authentication efficiency.

[0046] Step 2) Construct online handwritten signature authentication network model O:

[0047] An online handwritten signature authentication network model O is constructed, which includes a plurality of sequentially connected convolution blocks and a fully connected layer. The number of convolution blocks contained in the model is 4, and each convolution block includes a sequentially connected convolution layer, a normalization layer, an activation layer, and a pooling layer, wherein the number of input channels of the first convolution layer in the first convolution block is set to 1, the number of output channels is 64, the convolution kernel size is 3×3, and the convolution step is set to 2; the number of input channels of the convolution layer in the second to fourth convolution blocks is set to 64, the number of output channels is set to 64, the convolution kernel size is 3×3, the convolution step of the second convolution layer is set to 2, and the step of the third and fourth convolution layers is set to 1; the activation layers are all set to the ReLU function, and the pooling layers are all set to the maximum pooling;

[0048] Step 3) Train the online handwritten signature authentication network model based on meta-learning. The implementation process is as follows: Figure 2 As shown:

[0049] Step 3a) Initialize the weight parameter of the online handwritten signature authentication network model O as θ, the number of iterations as k, the maximum number of iterations as K, K ≥ 1000, and the online handwritten signature authentication network model O is initialized at the kth iteration. k The weight parameter is θ k , and let k = 1. In this embodiment, K = 1100;

[0050] Step 3b) Set the training support set B str As the input of the online handwritten signature authentication network model O, str Each online handwritten signature in Make predictions and use the cross entropy loss function, through The prediction result calculates the loss value L of O, and then uses the gradient descent method to calculate the gradient of L to θ Update θ to obtain each online handwritten signature of the online handwritten signature authentication network model The weight parameter θ i , the update formula is:

[0051]

[0052] Wherein, α represents the meta-learning rate, and in this embodiment, α=0.01;

[0053] Step 3c) Set the training query set B qtr As the input of the online handwritten signature authentication network model O, multiple convolutional blocks are used to qtr Each online handwritten signature in Perform convolution operation, and then Perform normalization operation, then activate the normalized result, and finally perform pooling operation on the activated result to obtain The online handwritten signature feature vector is obtained by performing a full connection operation on the signature feature vector. The prediction score of

[0054] Step 3d) adopts the cross entropy loss function and passes The prediction score of O is calculated as the loss value L k , then pass L k For θ k ,θ i Gradient For θ k Update, the update formula is:

[0055]

[0056] Wherein, β represents the learning rate. In this embodiment, β=0.0001;

[0057] Step 3e) Determine whether k=K holds true. If so, obtain the pre-trained online handwritten signature authentication network O' and execute step (3f). Otherwise, set k=k+1 and execute step (3c);

[0058] Step 3f) Set the test support set B ste As the input of the pre-trained online handwritten signature authentication network O', forward propagation is performed to obtain B ste Each online handwritten signature The prediction result is obtained by using the cross entropy loss function. The prediction result is used to calculate the loss value L' of O', and then the gradient descent method is used to calculate the gradient of L' to θ' Update θ' to get the trained online handwritten signature authentication model O * ;

[0059] By training support set B str Train the online handwritten signature authentication network O to obtain a set of optimal weight parameters θ i , and then based on this set of weight parameters θ i Through the training query set B qtr The online handwritten signature authentication network O is trained to reduce the training time and improve the authentication efficiency;

[0060] Step 4) Get the online handwritten signature authentication result:

[0061] The test query set B qte As the trained online handwritten signature authentication model O * The input is forward propagated to obtain The prediction score q c , and judge q cDoes the preset threshold σ satisfy q? c >σ, if so, then is a genuine signature, otherwise it is a forged signature. In this embodiment, σ=0.9.

Claims

1. An online handwritten signature authentication method based on meta-learning, characterized in that: The following steps are involved: (1) Obtain training and test datasets: (1a) For R users U = {U1, U2, ..., U r ,...,U R } for each user U r D online handwritten signature Preprocessing is performed to obtain U r A collection of preprocessed online handwritten signatures Among them, R ≥ 5, U r represents the rth user, D ≥ 5, Respectively represent U r The d-th online handwritten signature, the preprocessed online handwritten signature; (1b) Extract each user U r Each pre-processed online handwritten signature M features of And through H r The intra-class difference scores N(r,m) and H r Compare with other users' pre-processed online handwritten signatures H r' The inter-class difference score J(r,m), r≠r', calculate each feature The characteristic quality score Q(r,m): Among them, M ≥ 12, express The mth feature of , lg represents the logarithm operation, ∑ represents the sum operation, and dist(·) represents the Manhattan distance operation. Indicates H r , H r' The mean of the mth feature in ; (1c) Select each user U r Each feature set The first N features with the largest feature quality scores constitute the online handwritten signature Get a dataset B containing R×D online handwritten signatures of all users, where N<M, and use more than half of the online handwritten signatures and their corresponding user labels to form a training dataset B tr , the remaining online handwritten signatures and their corresponding user labels form the test data set B te , then B tr The online handwritten signatures and their corresponding user labels constitute the training support set The remaining J online handwritten signatures and their corresponding user labels form a training query set At the same time, B te A online handwritten signatures and their corresponding user labels constitute the test support set The remaining C online handwritten signatures and their corresponding user labels form a test query set Where I>J, Indicates B str The i-th online handwritten signature and its user label in Indicates B qtr The jth online handwritten signature and its user label in , A>C, Indicates B ste The ath online handwritten signature and its user label in Indicates B qte The cth online handwritten signature and its user label in ; (2) Constructing online handwritten signature authentication network model O: Build an online handwritten signature authentication network model O including multiple convolution blocks connected in sequence and a fully connected layer, where each convolution block includes a convolution layer, a normalization layer, an activation layer, and a pooling layer connected in sequence; (3) Training the online handwritten signature authentication network model based on meta-learning: (3a) Initialize the weight parameter of the online handwritten signature authentication network model O to θ, the number of iterations to k, the maximum number of iterations to K, K ≥ 1000, and the kth iteration of the online handwritten signature authentication network model O k The weight parameter is θ k , and let k = 1; (3b) The training support set B str As the input of the online handwritten signature authentication network model O, str Each online handwritten signature in Make predictions and use the cross entropy loss function, through The prediction result calculates the loss value L of O, and then uses the gradient descent method to calculate the gradient of L to θ Update θ to obtain each online handwritten signature of the online handwritten signature authentication network model The weight parameter θ i ; (3c) The training query set B qtr As the input of the online handwritten signature authentication network model O, multiple convolutional blocks are used to qtr Each online handwritten signature in Perform convolution operation, and then Perform normalization operation, then activate the normalized result, and finally perform pooling operation on the activated result to obtain The online handwritten signature feature vector is obtained by performing a full connection operation on the signature feature vector. The prediction score of (3d) adopts the cross entropy loss function and passes The prediction score of O is calculated as the loss value L k , then pass L k For θ k ,θ i Gradient For θ k Update, the update formula is: Among them, β represents the learning rate; (3e) Determine whether k=K. If so, obtain the pre-trained online handwritten signature authentication network O' and execute step (3f). Otherwise, set k=k+1 and execute step (3c). (3f) Test support set B ste As the input of the pre-trained online handwritten signature authentication network O', forward propagation is performed to obtain B ste Each online handwritten signature The prediction result is obtained by using the cross entropy loss function. The prediction result is used to calculate the loss value L' of O', and then the gradient descent method is used to calculate the gradient of L' to θ' Update θ' to get the trained online handwritten signature authentication model O * ; (4) Obtain online handwritten signature authentication results: The test query set B qte As the trained online handwritten signature authentication model O * The input is forward propagated to obtain The prediction score q c , and judge q c Does the preset threshold σ satisfy q? c >σ, if so, then It is a genuine signature, otherwise it is a forged signature.

2. The online handwritten signature authentication method based on meta-learning according to claim 1 is characterized in that: The R users U={U1,U2,...,U r ,...,U R D online handwritten signatures of each user in For preprocessing, the implementation steps are: For each online handwritten signature Smoothing is performed, and the position of the smoothed online handwritten signature is normalized. Then, the position normalization result is normalized, and then the size normalization result is normalized. Finally, U r A collection of preprocessed online handwritten signatures 3. The online handwritten signature authentication method based on meta-learning according to claim 1 is characterized in that: The extraction of each user U described in step (1b) r Each pre-processed online handwritten signature The M features of the online handwritten signature are extracted as follows: The coordinate values, pressure values, angles, angular velocity and time characteristics of the coordinate value, pressure value, angle, angular velocity and time characteristics are calculated respectively, and a feature set consisting of M statistical features is obtained.

4. The online handwritten signature authentication method based on meta-learning according to claim 1 is characterized in that: The online handwritten signature authentication network model O described in step (2) comprises 4 convolution blocks, wherein the number of input channels of the first convolution layer in the first convolution block is set to 1, the number of output channels is 64, the convolution kernel size is 3×3, and the convolution step is set to 2; the number of input channels of the convolution layers in the second to fourth convolution blocks is set to 64, the number of output channels is set to 64, the convolution kernel size is 3×3, the convolution step of the second convolution layer is set to 2, and the step of the third and fourth convolution layers is set to 1; the activation layers are all set to ReLU functions, and the pooling layers are all set to maximum pooling.

5. The online handwritten signature authentication method based on meta-learning according to claim 1 is characterized in that: The update formula for θ described in step (3b) is: Here, α represents the meta-learning rate.

Citation Information

Patent Citations

  • Handwritten signature authenticity identification method and device based on small number of samples

    CN114005184A

  • Online handwritten signature verification method based on dynamic feature subareas

    CN106934362A

  • Signature recognition apparatus which can be trained with a reduced amount of sample data

    US5553156A