Method and device for verifying authenticity of handwritten electronic signature

By combining Transformer encoder and depth separable convolution technology to extract and fuse multimodal data of handwritten electronic signatures, the problem of inaccurate authenticity verification results in handwritten electronic signatures in the existing technology is solved, and more accurate Forged signature recognition.

CN118887689APending Publication Date: 2024-11-01CHINA TELECOM CORP LTD

Patent Information

Application Number
CN202410867542.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The authenticity verification method of handwritten electronic signatures in the cloud collaboration mode mainly only analyzes static signed images, resulting in inaccurate authenticity verification results and ineffective prevention of forgery and impersonation.

Method used

The feature extraction module based on Transformer encoder and the multi-scale feature fusion module with depth separation convolution are used to extract the multimodal data (signed image and signature board data) of handwritten electronic signatures, and the extraction is performed using the signature feature verification module. Comparing the characteristics of the genre with the real signature features to generate accurate authenticity verification results.

Benefits of technology

By combining the multi-scale feature fusion of signed images and signature board data, the authenticity verification accuracy of handwritten electronic signatures is significantly improved, and the forged signatures can be effectively identified, solving the problem of inaccurate verification results caused by static signature image analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887689A_ABST
    Figure CN118887689A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for verifying the authenticity of a handwritten electronic signature. The method comprises the following steps: acquiring a first signature image and first signature board data of a first handwritten electronic signature of a first object; generating a first pressure diagram based on the first signature board data; performing feature extraction on the first signature image and the first pressure graph by using a feature extraction module in the target verification model to obtain a plurality of first signature features, and performing feature fusion on the plurality of first signature features by using a multi-scale feature fusion module to obtain a plurality of first multi-scale signature features, and performing feature comparison on each first multi-scale signature feature and a preset first object real signature feature by using a signature feature verification module to obtain a first authenticity verification result of the first handwritten electronic signature. According to the method and the device, the technical problem that the authenticity verification result is inaccurate due to the fact that the authenticity verification technology of the related handwritten electronic signature only analyzes the static signature image is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and more specifically, to a method and device for verifying the authenticity of a handwritten electronic signature. Background Art

[0002] In the traditional cloud collaboration model, people need to send files to relevant persons who need to sign via email or online documents, and ask them to sign in person or use electronic signature tools to sign to obtain handwritten electronic signatures. Therefore, handwritten electronic signatures can be understood as recording signatures in a digital way. Generally, handwritten electronic signatures can be divided into two types: static signatures and dynamic signatures. Among them, static signatures refer to the signature images generated by the electronic board, which reflect the spatial information of the signature, such as shape, thickness, texture, etc.; while dynamic signatures are actually physical data collected by the electronic board during the handwriting process, such as coordinates, pressure, speed, etc. at different times, which reflect the time information of the signature.

[0003] However, handwritten electronic signatures face a series of attack threats in practical applications, the most common of which is signature forgery, that is, copying, rubbing, and duplicating other people's signatures to impersonate. Therefore, there is an urgent need for a solution that can verify the authenticity of handwritten electronic signatures in the cloud.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a method and device for verifying the authenticity of a handwritten electronic signature, so as to at least solve the technical problem that the authenticity verification technology of related handwritten electronic signatures only analyzes static signature images, resulting in inaccurate authenticity verification results.

[0006] According to one aspect of an embodiment of the present application, a method for verifying the authenticity of a handwritten electronic signature is provided, comprising: obtaining a first signature image and first signature board data of a first handwritten electronic signature of a first object, wherein the first signature board data is physical data generated in response to a writing operation detected by the signature board for the first handwritten electronic signature; generating a first pressure map based on the first signature board data; performing feature extraction on the first signature image and the first pressure map using a feature extraction module in a pre-trained target verification model to obtain a plurality of first signature features, and performing feature fusion on the plurality of first signature features using a multi-scale feature fusion module in the target verification model to obtain a plurality of first multi-scale signature features; performing feature comparison between each first multi-scale signature feature and a preset first object real signature feature using a signature feature verification module in the target verification model to obtain a first authenticity verification result of the first handwritten electronic signature; wherein the first authenticity verification result is used to characterize whether the first handwritten electronic signature is a forged handwritten signature of the first object, and the first object real signature feature is obtained by performing feature extraction on the signature image of the first object's real handwritten signature and the pressure map generated based on the signature board data of the real handwritten signature.

[0007] Optionally, the training process of the target verification model includes: obtaining a training sample set and a sample label set, wherein the training sample set includes multiple second signature images and second pressure maps of a second handwritten electronic signature of a second object as training samples, and the sample label set includes multiple second authenticity verification results of a second handwritten electronic signature of a second object as sample labels; constructing an initial verification model, wherein the initial verification model includes at least: a feature extraction module based on a Transformer encoder, a multi-scale feature fusion module based on deep separable convolution, and a signature feature verification module; and iteratively training the initial verification model using the training sample set and the sample label set to obtain the target verification model.

[0008] Optionally, obtaining a training sample set and a sample label set includes: obtaining initial signature images and initial signature plate data of second handwritten electronic signatures of multiple second objects, wherein the initial signature plate data includes at least one of the following: the horizontal coordinate, the vertical coordinate, and the pressure of the handwritten electronic signature; performing a first preprocessing operation on the initial signature plate data of each second handwritten electronic signature, and generating a corresponding second pressure map based on the preprocessed initial signature plate data, wherein the first preprocessing operation includes at least one of the following: data cleaning, data standardization, and time series alignment; performing a second preprocessing operation on the initial signature image of each second handwritten electronic signature to obtain a corresponding second signature image, wherein the second preprocessing operation includes at least one of the following: scaling, cropping, padding, format unification, histogram equalization, and noise removal; using the second pressure map and the preprocessed second signature image of the second handwritten electronic signature of each second object as training samples, and forming a training sample set from multiple training samples; determining a second authenticity verification result of each second handwritten electronic signature, and using the second authenticity verification result as a sample label, and forming a sample label set from multiple sample labels.

[0009] Optionally, the initial verification model is iteratively trained using a training sample set and a sample label set, including: for each training batch in the iterative training process, using a feature extraction module to extract features from each training sample in the training batch to obtain multiple second signature features corresponding to each training sample; using a multi-scale feature fusion module to fuse multiple second signature features corresponding to each training sample to obtain multiple second multi-scale signature features corresponding to each training sample; using a signature feature verification module to compare the multiple second multi-scale signature features corresponding to each training sample with the real signature features of the second object to obtain a predicted authenticity verification result corresponding to each training sample; constructing a target loss function based on the sample labels corresponding to each training sample and the predicted authenticity verification results, and adjusting the model parameters of the initial verification model according to the target loss function.

[0010] Optionally, the feature extraction module includes: an image processing layer, an embedding layer, and a Transformer encoder, wherein the feature extraction module is used to extract features from each training sample in a training batch to obtain multiple second signature features corresponding to each training sample, including: for each training sample, using the image processing layer to perform block processing on the second signature image and the second pressure map to obtain multiple first image blocks and multiple second image blocks, and mapping the multiple first image blocks and the multiple second image blocks to a one-dimensional vector space through linear mapping to obtain corresponding first image block sequences and second image block sequences; using the embedding layer to embed the first image block sequence and the second image block sequence respectively to obtain corresponding first image block embedded sequence and second image block embedded sequence; using the Transformer encoder to extract features from the first image block embedded sequence and the second image block embedded sequence to obtain multiple second signature features.

[0011] Optionally, a multi-scale feature fusion module is used to perform feature fusion on multiple second signature features corresponding to each training sample to obtain multiple second multi-scale signature features corresponding to each training sample, including: for each training sample, a feature selection algorithm is used to perform feature screening on multiple second signature features corresponding to the training sample to obtain multiple second key signature features corresponding to the training sample, wherein the influence of the second key signature feature on the final predicted authenticity result is not less than a preset influence threshold, and the feature selection technology includes at least one of the following: a recursive feature elimination algorithm, a feature importance evaluation algorithm; standardizing and normalizing the multiple second key signature features corresponding to each training sample; and using the multi-scale feature fusion module to perform feature fusion on the processed multiple second key signature features corresponding to each training sample to obtain multiple second multi-scale signature features corresponding to each training sample.

[0012] Optionally, a signature feature verification module is used to perform feature comparison between multiple second multi-scale signature features corresponding to each training sample and the real signature features of the second object to obtain a predicted authenticity verification result corresponding to each training sample, including: for each training sample, calculating the similarity between each second multi-scale signature feature corresponding to the training sample and a preset real signature feature of the second object; judging whether the similarity is less than a preset similarity threshold comparison result; when the similarity is not less than the similarity threshold, determining that the predicted authenticity verification result is that the second handwritten electronic signature is not a handwritten signature forged by the second object; when the similarity is less than the similarity threshold, determining that the predicted authenticity verification result is that the second handwritten electronic signature is a handwritten signature forged by the second object.

[0013] According to another aspect of an embodiment of the present application, a device for verifying the authenticity of a handwritten electronic signature is also provided, including: an acquisition module, used to obtain a first signature image and first signature board data of a first handwritten electronic signature of a first object, wherein the first signature board data is physical data generated in response to a writing operation detected by the signature board when the first object handwrites the first handwritten electronic signature on the signature board; a determination module, used to generate a first pressure map based on the first signature board data; a feature processing module, used to extract features from the first signature image and the first pressure map using a feature extraction module in a pre-trained target verification model to obtain multiple first signature features, and then use the target verification model to extract features from the first signature image and the first pressure map. The multi-scale feature fusion module in the target verification model performs feature fusion on multiple first signature features to obtain multiple first multi-scale signature features; the authenticity verification module is used to use the signature feature verification module in the target verification model to compare the features of each first multi-scale signature feature with the preset first object real signature feature to obtain a first authenticity verification result of the first handwritten electronic signature; wherein the first authenticity verification result is used to characterize whether the first handwritten electronic signature is a forged handwritten signature of the first object, and the first object real signature feature is obtained by extracting features from the signature image of the first object's handwritten real signature and the pressure map generated based on the signature plate data of the handwritten real signature.

[0014] According to another aspect of an embodiment of the present application, a non-volatile storage medium is also provided, which includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the above-mentioned method for verifying the authenticity of a handwritten electronic signature by running the computer program.

[0015] According to another aspect of an embodiment of the present application, a computer program product is further provided, which includes a stored computer program, wherein the computer program implements the above-mentioned method for verifying the authenticity of a handwritten electronic signature when executed by a processor.

[0016] In an embodiment of the present application, a feature extraction module based on a Transformer encoder and a multi-scale feature fusion module based on deep separable convolution are used to extract features from multiple modal data (signature board data and signature image) of a user's handwritten electronic signature, and a signature feature verification module is used to compare the extracted features with the user's real signature features to accurately obtain the authenticity determination result of the user's handwritten electronic signature, thereby solving the technical problem that the authenticity verification technology of related handwritten electronic signatures only analyzes static signature images, resulting in inaccurate authenticity verification results. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 It is a hardware structure block diagram of a computer terminal for implementing an optional method for verifying the authenticity of a handwritten electronic signature according to an embodiment of the present application;

[0019] Figure 2 It is a flowchart of an optional method for verifying the authenticity of a handwritten electronic signature according to an embodiment of the present application;

[0020] Figure 3 is a schematic structural diagram of an optional initial verification model according to an embodiment of the present application;

[0021] Figure 4 is a schematic diagram of an optional initial handwritten signature image according to an embodiment of the present application;

[0022] Figure 5 is a schematic structural diagram of an optional device for verifying the authenticity of a handwritten electronic signature according to an embodiment of the present application;

[0023] Figure 6 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application 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 interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] In addition, the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set up between this system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.

[0027] Example 1

[0028] According to an embodiment of the present application, a method embodiment of a method for verifying the authenticity of a handwritten electronic signature is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0029] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing a method for verifying the authenticity of a handwritten electronic signature is shown. Figure 1 As shown, the computer terminal 10 (or mobile device 10) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0030] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0031] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the authenticity verification method of the handwritten electronic signature in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the authenticity verification method of the handwritten electronic signature of the above-mentioned application is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0032] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0033] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).

[0034] In the above operating environment, Figure 2 is a flow chart of an optional method for verifying the authenticity of a handwritten electronic signature according to an embodiment of the present application, such as Figure 2 As shown, the method at least includes steps S202-S208, wherein:

[0035] Step S202: Acquire a first signature image and first signature plate data of a first handwritten electronic signature of a first object.

[0036] In the technical solution provided in step S202, the first signature image of the first handwritten electronic signature of the first object can be understood as a static signature image, which can reflect the spatial information of the handwritten electronic signature, such as shape, thickness, texture, etc. The first signature board data is the physical data generated by the first signature board data in response to the writing operation detected by the signature board for the first handwritten electronic signature, which can reflect the physical data collected by the electronic board during the handwriting process, such as time information such as coordinates, pressure, speed, angular velocity, etc. at different times.

[0037] Step S204: generating a first pressure map based on the first signature pad data.

[0038] In the technical solution provided in step S204, the first signature board data obtained above is used to generate a corresponding first pressure map, wherein the pressure map can be represented as a two-dimensional pixel matrix of size y*x, and the value of the matrix in the y row and x column is p, and the remaining values ​​are 0. Therefore, the first pressure map can represent the change in pressure during the writing operation of the first handwritten electronic signature detected by the response signature board as the signature coordinate position changes.

[0039] Step S206, using the feature extraction module in the pre-trained target verification model to extract features from the first signature image and the first pressure map to obtain multiple first signature features, and using the multi-scale feature fusion module in the target verification model to fuse the multiple first signature features to obtain multiple first multi-scale signature features.

[0040] In the technical solution provided in step S206, the target verification model can process the first signature image (reflecting the spatial information of the handwritten electronic signature) obtained in step S202 and the first pressure map (reflecting the temporal information of the handwritten electronic signature) obtained in step S204 according to the following process: first, a feature extraction module is used to extract features from the first signature image and the first pressure map to obtain a plurality of first signature features; then, a multi-scale feature fusion module is used to fuse the plurality of first signature features to obtain a plurality of first multi-scale signature features;

[0041] Step S208: using the signature feature verification module in the target verification model, each first multi-scale signature feature is compared with a preset first object real signature feature to obtain a first authenticity verification result of the first handwritten electronic signature.

[0042] In the technical solution provided in step S208, the above-mentioned trained target verification model uses a signature feature verification module to compare the features of each first multi-scale signature with the preset first object real signature feature to obtain a first authenticity verification result of the first handwritten electronic signature, wherein the above-mentioned first authenticity verification result is used to characterize whether the first handwritten electronic signature is a forged handwritten signature of the first object (that is, the first handwritten electronic signature is the signature of the first object impersonating someone else), and the first object real signature feature is obtained by extracting features from the signature image of the first object's real handwritten (that is, the person's) signature and the pressure map generated based on the signature plate data of the real handwritten signature.

[0043] The above method of this embodiment is further introduced below.

[0044] As an optional implementation, the training process of the target verification model may include the following steps S1-S3:

[0045] Step S1, obtaining a training sample set and a sample label set.

[0046] Among them, the above-mentioned training sample set includes multiple second signature images and second pressure maps of the second handwritten electronic signature of the second object as training samples, and the sample label set includes multiple second authenticity verification results of the second handwritten electronic signature of the second object as sample labels. The above-mentioned training sample set and sample label set can be combined to form positive samples and negative samples for training the model.

[0047] Step S2: construct an initial verification model.

[0048] Figure 3 is a schematic diagram of the structure of an optional initial verification model according to an embodiment of the present application, such as Figure 3 The initial verification model at least includes: a feature extraction module based on Transformer Encoder, a multi-scale feature fusion module based on deep separable convolution, and a signature feature verification module.

[0049] Specifically, the above Transformer Encoder mainly includes the following features: 1) The self-attention mechanism is used to process the input image block sequence, where self-attention allows the model to consider the relevant information of other image blocks when processing each image block in the image block sequence, thereby better capturing the long-distance dependencies in the image block sequence; 2) Transformer Encoder can process the entire image block sequence in parallel, which greatly improves the training speed of the model; 3) Since the Transformer model has no loop or convolution structure, it cannot directly capture the position information of the image blocks in the image block sequence. To solve this problem, Transformer Encoder adds positional encoding to the image block sequence so that the model can recognize image blocks at different positions.

[0050] Depthwise Separable Convolution is a convolution technique that aims to reduce the amount of computation and the number of parameters while maintaining model performance. It usually includes two steps: depthwise convolution and pointwise convolution.

[0051] Step S3, iteratively train the initial verification model using the training sample set and the sample label set to obtain the target verification model.

[0052] Specifically, in the technical solution provided in the above step S1, the method may include the following steps S11-S14:

[0053] Step S11, obtaining initial signature images and initial signature plate data of second handwritten electronic signatures of multiple second objects.

[0054] Specifically, the camera may be used to capture the initial signature image of each second subject when writing the second handwritten electronic signature on the signature plate, such as Figure 4 At the same time, the initial signature plate data when the second handwritten electronic signature is handwritten is obtained, wherein the initial signature plate data can be understood as a signature sequence composed of a triplet of the horizontal coordinate x, the vertical coordinate y, and the pressure p of the handwritten electronic signature.

[0055] Step S12, performing a first preprocessing operation on the initial signature plate data of each second handwritten electronic signature, and generating a corresponding second pressure map based on each preprocessed initial signature plate data.

[0056] For each second handwritten electronic signature, due to the signature error of the second subject or the abnormal data collection of the signature board, the collected signature board data may contain invalid, erroneous, or missing data. Therefore, the embodiment of the present application can remove these invalid or erroneous data through data cleaning and fill in the missing data. At the same time, since each second subject (which can be understood as the signer) has different writing habits, the time series used for their signatures is also different, resulting in different signature sequences. Therefore, in the embodiment of the present application, time series alignment can be used to pre-process the signature sequence.

[0057] Step S13, performing a second preprocessing operation on the initial signature image of each second handwritten electronic signature to obtain a corresponding second signature image.

[0058] The second preprocessing operation includes but is not limited to: scaling, cropping, padding, histogram equalization, noise removal, etc. The specific preprocessing operation content can be set according to the actual application scenario.

[0059] Step S14: taking the second pressure map of the second handwritten electronic signature of each second object and the preprocessed second signature image as training samples, and forming a training sample set from the plurality of training samples.

[0060] Step S15, determining the second authenticity verification result of each second handwritten electronic signature, and using the second authenticity verification result as a sample label, and forming a sample label set from a plurality of sample labels.

[0061] The training sample set and sample label set obtained through the above steps S11-S15 can be used to form a training sample set (including positive samples and negative samples) which can be expressed as {(x1, y1), (x2 y2), ...,}, where x i represents the i-th training sample, including the second signature image and the second pressure map of the second handwritten electronic signature, y i represents the sample label of the i-th training sample, which is used to characterize whether the second handwritten electronic signature is the authentic signature of the second subject. i =1, it means that the second handwritten electronic signature is the authentic signature of the second object; if y i =0, it indicates that the second handwritten electronic signature is a forged signature of the second object.

[0062] Furthermore, the technical solution provided in the above step S3 may include the following steps:

[0063] Step S31, for each training batch in the iterative training process, the feature extraction module is used to extract features from each training sample in the training batch to obtain a plurality of second signature features corresponding to each training sample (i.e., the second handwritten electronic signature of the training sample); the multi-scale feature fusion module is used to fuse the plurality of second signature features corresponding to each training sample to obtain a plurality of second multi-scale signature features corresponding to each training sample; the signature feature verification module is used to compare the plurality of second multi-scale signature features corresponding to each training sample with the second object real signature features to obtain the prediction authenticity verification result corresponding to each training sample;

[0064] Step S32, constructing a target loss function based on the sample labels corresponding to each training sample (ie, the second authenticity verification result) and the predicted authenticity verification result, and adjusting the model parameters of the initial verification model according to the target loss function to obtain a target verification model.

[0065] The feature extraction module in step S31 may extract features from each training sample through the following steps, including:

[0066] Firstly, the second signature image and the second pressure map are processed in blocks by using an image processing layer to obtain a plurality of first image blocks and a plurality of second image blocks, and the plurality of first image blocks and the plurality of second image blocks are mapped into a one-dimensional vector space by linear mapping to obtain a corresponding first image block sequence and a second image block sequence;

[0067] Then, the first image block sequence and the second image block sequence are respectively embedded using an embedding layer to obtain a corresponding first image block embedded sequence and a second image block embedded sequence;

[0068] Finally, the Transformer encoder is used to extract features from the first image block embedding sequence and the second image block embedding sequence to obtain multiple second signature features.

[0069] Among them, the types of the above-mentioned second signature features include but are not limited to: geometric features (such as the length, width, area, shape, etc. of the signature), pressure features (such as the maximum pressure, minimum pressure, pressure distribution, etc. applied when signing), stroke features (such as the order, number, length, angle, curvature, etc. of the strokes), topological features (such as the connectivity, loop, intersection, etc. of the signature), texture features (such as signature roughness, uniformity, directionality, etc.), local features (such as size-invariant feature transform SIFT, accelerated robust features, etc.), global features (such as image histogram, mean, variance, etc.), etc. The types and specific contents of signature features are no longer described one by one here.

[0070] Specifically, the above feature extraction steps can be understood as:

[0071] Step 1: Input an image of size h*w*c;

[0072] Step 2: Divide the image into p*p*c image blocks to obtain n image blocks (n=(h*w) / (p*p));

[0073] Step 3: Flatten the image blocks, that is, convert each image block (p*p*c) into a one-dimensional vector, and concatenate the converted one-dimensional vectors to form a two-dimensional vector of n*(p*p*c), and then use a fully connected layer to reduce the dimension of the two-dimensional vector to obtain a two-dimensional feature a of n*d (where d can be set according to the actual application scenario, such as 1024, 2048, etc.);

[0074] Step 4: Add position coding to the two-dimensional features, where the position coding is used to identify the relative position of each image block;

[0075] Step 5: Use Transformer Encoder to extract the two-dimensional features after adding position encoding to obtain interactive features. Among them, Transformer Encoder can be understood as repeatedly stacking Encoder Block L times, and each Encoder Block consists of Layer Norm, Multi-Head Attention, Dropout and MLP Block. The most important one is the multi-head self-attention layer, which can divide the input feature (n*d) into m heads and obtain m different features (a1, a2, ..., a m ), perform self-attention calculation on m different features respectively, and obtain weighted features (b1, b2, ..., b m ), concatenate the obtained weighted features to get z(n*d), and through nonlinear transformation w, finally get the interaction feature f(n*d) of the same size as the input feature.

[0076] In addition, before the multi-scale feature fusion module in the above step S31 performs feature fusion on the second signature features of multiple different scales, it is considered that the number of features extracted by the feature extraction module is large, and the influence of different signature features on the final verification result is different. Therefore, in order to remove irrelevant or redundant features and reduce the calculation amount and complexity of the model, the embodiment of the present application proposes that the multiple second signature features extracted by the feature extraction module can be analyzed to identify the features that are most helpful to the final verification result, and then these features are further subjected to feature fusion processing, so as to effectively avoid overfitting of the model and improve the generalization ability of the model.

[0077] Specifically, the multi-scale feature fusion module in the above step S31 can perform feature fusion on each training sample through the following steps, including:

[0078] Step 1: Use a feature selection algorithm to perform feature screening on multiple second signature features corresponding to the training samples to obtain multiple second key signature features corresponding to the training samples.

[0079] Among them, the influence of the above-mentioned second key signature feature on the final prediction authenticity result is not less than a preset influence threshold.

[0080] Step 2: Standardize and normalize each second key feature.

[0081] Among them, the above-mentioned standardization (Z-score Normalization) processing is to make the feature mean 0 and the standard deviation 1 to eliminate the scale differences between the second key features; and the normalization processing is to perform unit norm normalization on each second key feature to ensure that the feature vector lengths of different training samples are consistent.

[0082] Step 3: Use the multi-scale feature fusion module to perform feature fusion on the processed multiple second key signature features to obtain multiple second multi-scale signature features corresponding to the training samples.

[0083] Among them, the above-mentioned feature selection techniques include but are not limited to: recursive feature elimination algorithm, feature importance evaluation algorithm, etc. Among them, the recursive feature elimination (REF) algorithm is a commonly used feature selection method, which is usually used for regression and classification problems. It is based on the idea of ​​recursively deleting features in continuous iterations until the preset number of features is reached. The working principle of REF is as follows: Repeat the following two steps until the number of features reaches the preset value: first, use all the features to train a model and calculate the weight or coefficient of each feature, then sort the weights or coefficients of these features, and delete the features with the smallest weight or coefficient. The feature importance evaluation algorithm is used to determine the contribution of a feature to the model output, including but not limited to: 1) decision tree algorithms (such as random forests and gradient boosting trees), which evaluate the importance of features by calculating the information gain brought by each feature in the node separation in the tree; 2) linear models (such as linear regression, logistic regression, etc.), in which the coefficient of a feature can be used to evaluate its importance. A larger coefficient indicates that the feature has a greater impact on the model output; 3) model-based feature selection methods, which automatically select features by regularizing the features, or by optimizing the model's loss function while constraining the size of the feature coefficients, thereby selecting features that have a greater impact on the model output.

[0084] Finally, the signature feature verification module in the above step S31 can obtain the prediction authenticity verification results of each training sample in the following manner, including:

[0085] Step 1: Calculate the similarity between each second multi-scale signature feature corresponding to the training sample and the preset second object real signature feature;

[0086] Step 2: Determine whether the similarity is less than the comparison result of the preset similarity threshold;

[0087] In the case where the similarity is not less than the similarity threshold, determining that the predicted authenticity verification result is that the second handwritten electronic signature is not a handwritten signature forged by the second subject;

[0088] When the similarity is less than the similarity threshold, it is determined that the predicted authenticity verification result is that the second handwritten electronic signature is a forged handwritten signature of the second object.

[0089] The above-mentioned real signature feature of the second object can be obtained by extracting features from a signature image of the real handwritten (personal) signature of the second object and a pressure map generated based on signature plate data of the real handwritten signature.

[0090] In addition, in the technical solution provided in the above step S32, the target loss function in the embodiment of the present application may include an L1 norm loss function and an L2 regularization loss function.

[0091] In an embodiment of the present application, a feature extraction module based on a Transformer encoder and a multi-scale feature fusion module based on deep separable convolution are used to extract features from multiple modal data (signature board data and signature image) of a user's handwritten electronic signature, and a signature feature verification module is used to compare the extracted features with the user's real signature features to accurately obtain the authenticity determination result of the user's handwritten electronic signature, thereby avoiding the problem of inaccurate final authenticity verification results due to analysis of only a single static image.

[0092] Example 2

[0093] Based on Embodiment 1 of the present application, an embodiment of a handwritten electronic signature authenticity verification device is also provided. When the device is running, the handwritten electronic signature authenticity verification method of the above embodiment is executed. Figure 4 FIG. 1 is a schematic diagram of a structure of an optional device for verifying the authenticity of a handwritten electronic signature according to an embodiment of the present application. Figure 5 As shown, the authenticity verification device for handwritten electronic signature at least includes an acquisition module 51, a determination module 52, a feature processing module 53 and an authenticity verification module 54, wherein:

[0094] The acquisition module 51 is used to acquire a first signature image and first signature plate data of a first handwritten electronic signature of a first object.

[0095] The first signature image of the first handwritten electronic signature of the first object can be understood as a static signature image, which can reflect the spatial information of the handwritten electronic signature, such as shape, thickness, texture, etc. The first signature board data is the physical data generated in response to the writing operation detected by the signature board for the first handwritten electronic signature, which can reflect the physical data collected by the electronic board during the handwriting process, such as time information such as coordinates, pressure, speed, angular velocity, etc. at different times.

[0096] The determination module 52 is configured to generate a first pressure map based on the first signature pad data.

[0097] Specifically, the first signature plate data obtained above is used to generate a corresponding first pressure map, wherein the pressure map can be represented as a two-dimensional pixel matrix of size y*x, and the value of the matrix in row y and column x is p, and the remaining values ​​are 0.

[0098] The feature processing module 53 is used to use the feature extraction module in the pre-trained target verification model to extract features from the first signature image and the first pressure map to obtain multiple first signature features, and use the multi-scale feature fusion module in the target verification model to fuse the multiple first signature features to obtain multiple first multi-scale signature features.

[0099] The authenticity verification module 54 is used to compare the first multi-scale signature features with the preset first object real signature features by using the signature feature verification module in the target verification model to obtain a first authenticity verification result of the first handwritten electronic signature.

[0100] Among them, the above-mentioned first authenticity verification result is used to characterize whether the first handwritten electronic signature is a handwritten signature forged by the first subject (that is, the first handwritten electronic signature is a signature of the first subject impersonating another person), and the first object's real signature feature is obtained by extracting features from the signature image of the first object's real handwritten (that is, the first subject's own) signature and the pressure map generated based on the signature plate data of the real handwritten signature.

[0101] The functions of each module of the device for verifying the authenticity of a handwritten electronic signature are described below in conjunction with a specific implementation process.

[0102] As an optional implementation, the training process of the target verification model may include:

[0103] First, obtain the training sample set and sample label set.

[0104] Among them, the above-mentioned training sample set includes multiple second signature images and second pressure maps of the second handwritten electronic signature of the second object as training samples, and the sample label set includes multiple second authenticity verification results of the second handwritten electronic signature of the second object as sample labels. The above-mentioned training sample set and sample label set can be combined to form positive samples and negative samples for training the model.

[0105] Then, an initial validation model was constructed.

[0106] Among them, the above-mentioned initial verification model at least includes: a feature extraction module based on Transformer Encoder, a multi-scale feature fusion module based on deep separable convolution, and a signature feature verification module.

[0107] Finally, the initial verification model is iteratively trained using the training sample set and the sample label set to obtain the target verification model.

[0108] Optionally, the training sample set and the sample label set can be obtained in the following manner: obtain the initial signature images and initial signature plate data of the second handwritten electronic signatures of multiple second objects; perform a first preprocessing operation on the initial signature plate data of each second handwritten electronic signature, and generate a corresponding second pressure map based on the preprocessed initial signature plate data; perform a second preprocessing operation on the initial signature image of each second handwritten electronic signature to obtain a corresponding second signature image; use the second pressure map and the preprocessed second signature image of the second handwritten electronic signature of each second object as training samples, and form a training sample set from multiple training samples; determine the second authenticity verification result of each second handwritten electronic signature, and use the second authenticity verification result as a sample label, and form a sample label set from multiple sample labels.

[0109] As an optional implementation, the initial verification model can be iteratively trained through the following process, including: for each training batch in the iterative training process, using a feature extraction module to extract features from each training sample in the training batch to obtain multiple second signature features corresponding to each training sample (i.e., the second handwritten electronic signature of the training sample); using a multi-scale feature fusion module to fuse multiple second signature features corresponding to each training sample to obtain multiple second multi-scale signature features corresponding to each training sample; using a signature feature verification module to compare the multiple second multi-scale signature features corresponding to each training sample with the real signature features of the second object to obtain the predicted authenticity verification results corresponding to each training sample; constructing a target loss function based on the sample labels corresponding to each training sample (i.e., the second authenticity verification results) and the predicted authenticity verification results, and adjusting the model parameters of the initial verification model according to the target loss function to obtain the target verification model.

[0110] The feature extraction module can extract features from each training sample through the following steps, including:

[0111] Firstly, the second signature image and the second pressure map are processed in blocks by using an image processing layer to obtain a plurality of first image blocks and a plurality of second image blocks, and the plurality of first image blocks and the plurality of second image blocks are mapped into a one-dimensional vector space by linear mapping to obtain a corresponding first image block sequence and a second image block sequence;

[0112] Then, the first image block sequence and the second image block sequence are respectively embedded using an embedding layer to obtain a corresponding first image block embedded sequence and a second image block embedded sequence;

[0113] Finally, the Transformer encoder is used to extract features from the first image block embedding sequence and the second image block embedding sequence to obtain multiple second signature features.

[0114] Among them, the types of the above-mentioned second signature features include but are not limited to: geometric features (such as the length, width, area, shape, etc. of the signature), pressure features (such as the maximum pressure, minimum pressure, pressure distribution, etc. applied when signing), stroke features (such as the order, number, length, angle, curvature, etc. of the strokes), topological features (such as the connectivity, loop, intersection, etc. of the signature), texture features (such as signature roughness, uniformity, directionality, etc.), local features (such as size-invariant feature transform SIFT, accelerated robust features, etc.), global features (such as image histogram, mean, variance, etc.), etc. The types and specific contents of signature features are no longer described one by one here.

[0115] In addition, before the multi-scale feature fusion module performs feature fusion on the second signature features of multiple different scales, it is considered that the number of features extracted by the feature extraction module is large, and different signature features have different degrees of influence on the final verification result. Therefore, in order to remove irrelevant or redundant features and reduce the amount of calculation and complexity of the model, the embodiment of the present application proposes that the multiple second signature features extracted by the feature extraction module can be analyzed to identify the features that are most helpful to the final verification result, and then these features are further subjected to feature fusion processing, so as to effectively avoid overfitting of the model and improve the generalization ability of the model.

[0116] Specifically, the multi-scale feature fusion module can perform feature fusion on each training sample through the following steps, including:

[0117] Step 1: Use a feature selection algorithm to perform feature screening on multiple second signature features corresponding to the training samples to obtain multiple second key signature features corresponding to the training samples.

[0118] Among them, the influence of the above-mentioned second key signature feature on the final prediction authenticity result is not less than a preset influence threshold, and the above-mentioned feature selection technology includes but is not limited to: recursive feature elimination algorithm, feature importance evaluation algorithm, etc.

[0119] Step 2: Standardize and normalize each second key feature.

[0120] Step 3: Use the multi-scale feature fusion module to perform feature fusion on the processed multiple second key signature features to obtain multiple second multi-scale signature features corresponding to the training samples.

[0121] Finally, the above-mentioned signature feature verification module can obtain the prediction authenticity verification results of each training sample in the following ways, including:

[0122] Step 1: Calculate the similarity between each second multi-scale signature feature corresponding to the training sample and the preset second object real signature feature;

[0123] Step 2: Determine whether the similarity is less than the comparison result of the preset similarity threshold;

[0124] In the case where the similarity is not less than the similarity threshold, determining that the predicted authenticity verification result is that the second handwritten electronic signature is not a handwritten signature forged by the second subject;

[0125] When the similarity is less than the similarity threshold, it is determined that the predicted authenticity verification result is that the second handwritten electronic signature is a forged handwritten signature of the second object.

[0126] The above-mentioned real signature feature of the second object can be obtained by extracting features from a signature image of the real handwritten (personal) signature of the second object and a pressure map generated based on signature plate data of the real handwritten signature.

[0127] In addition, the objective loss function in the embodiment of the present application may include an L1 norm loss function and an L2 regularization loss function.

[0128] It should be noted that the various modules in the above-mentioned handwritten electronic signature authenticity verification device can be program modules (for example, a set of program instructions that implement a certain specific function) or hardware modules. For the latter, it can be expressed in the following forms, but is not limited to this: the expression form of each of the above-mentioned modules is a processor, or the functions of each of the above-mentioned modules are implemented by a processor.

[0129] Example 3

[0130] According to an embodiment of the present application, a non-volatile storage medium is also provided, in which a program is stored, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the authenticity verification method of the handwritten electronic signature in Example 1.

[0131] Optionally, the device where the non-volatile storage medium is located implements the following steps by running the program: obtaining a first signature image and first signature board data of a first handwritten electronic signature of a first object, wherein the first signature board data is physical data generated in response to a writing operation on the first handwritten electronic signature detected by the signature board; generating a first pressure map based on the first signature board data; performing feature extraction on the first signature image and the first pressure map shown by a feature extraction module in a pre-trained target verification model to obtain a plurality of first signature features, and performing feature fusion on the plurality of first signature features by a multi-scale feature fusion module in the target verification model to obtain a plurality of first multi-scale signature features; performing feature comparison between each first multi-scale signature feature and a preset first object real signature feature by a signature feature verification module in the target verification model to obtain a first authenticity verification result of the first handwritten electronic signature; wherein the first authenticity verification result is used to characterize whether the first handwritten electronic signature is a forged handwritten signature of the first object, and the first object real signature feature is obtained by performing feature extraction on the signature image of the first object's real handwritten signature and a pressure map generated based on the signature board data of the real handwritten signature.

[0132] According to an embodiment of the present application, a computer program product is also provided, which includes a stored computer program, wherein when the computer program is executed by a processor, the authenticity verification method of the handwritten electronic signature in Example 1 is implemented.

[0133] Optionally, the computer program executes the following steps: obtaining a first signature image and first signature board data of a first handwritten electronic signature of a first object, wherein the first signature board data is physical data generated in response to a writing operation detected by the signature board for the first handwritten electronic signature; generating a first pressure map based on the first signature board data; performing feature extraction on the first signature image and the first pressure map shown by a feature extraction module in a pre-trained target verification model to obtain a plurality of first signature features, and performing feature fusion on the plurality of first signature features by a multi-scale feature fusion module in the target verification model to obtain a plurality of first multi-scale signature features; performing feature comparison between each first multi-scale signature feature and a preset first object real signature feature by a signature feature verification module in the target verification model to obtain a first authenticity verification result of the first handwritten electronic signature; wherein the first authenticity verification result is used to characterize whether the first handwritten electronic signature is a forged handwritten signature of the first object, and the first object real signature feature is obtained by performing feature extraction on the signature image of the first object's real handwritten signature and a pressure map generated based on the signature board data of the real handwritten signature.

[0134] According to an embodiment of the present application, a processor is also provided, which is used to run a program, wherein the authenticity verification method of the handwritten electronic signature in Example 1 is executed when the program is running.

[0135] Optionally, when the program is running, the following steps are executed: obtaining a first signature image and first signature board data of a first handwritten electronic signature of a first object, wherein the first signature board data is physical data generated in response to a writing operation detected by the signature board for the first handwritten electronic signature; generating a first pressure map based on the first signature board data; extracting features from the first signature image and the first pressure map using a feature extraction module in a pre-trained target verification model to obtain a plurality of first signature features, and fusion-fusing the plurality of first signature features using a multi-scale feature fusion module in the target verification model to obtain a plurality of first multi-scale signature features; comparing each first multi-scale signature feature with a preset first object real signature feature using a signature feature verification module in the target verification model to obtain a first authenticity verification result of the first handwritten electronic signature; wherein the first authenticity verification result is used to characterize whether the first handwritten electronic signature is a forged handwritten signature of the first object, and the first object real signature feature is obtained by extracting features from a signature image of the first object's real handwritten signature and a pressure map generated based on the signature board data of the real handwritten signature.

[0136] According to an embodiment of the present application, an electronic device is also provided, wherein: Figure 6 is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application, such as Figure 6As shown, the electronic device includes one or more processors; a memory for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to run the programs, wherein the programs are configured to execute the authenticity verification method of the handwritten electronic signature in the above-mentioned embodiment 1 when running.

[0137] Optionally, the processor is configured to execute the following steps through a computer program: obtaining a first signature image and first signature board data of a first handwritten electronic signature of a first object, wherein the first signature board data is physical data generated in response to a writing operation detected by the signature board for the first handwritten electronic signature; generating a first pressure map based on the first signature board data; performing feature extraction on the first signature image and the first pressure map shown by a feature extraction module in a pre-trained target verification model to obtain a plurality of first signature features, and performing feature fusion on the plurality of first signature features by a multi-scale feature fusion module in the target verification model to obtain a plurality of first multi-scale signature features; performing feature comparison between each first multi-scale signature feature and a preset first object real signature feature by a signature feature verification module in the target verification model to obtain a first authenticity verification result of the first handwritten electronic signature; wherein the first authenticity verification result is used to characterize whether the first handwritten electronic signature is a forged handwritten signature of the first object, and the first object real signature feature is obtained by performing feature extraction on the signature image of the first object's real handwritten signature and a pressure map generated based on the signature board data of the real handwritten signature.

[0138] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0139] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0140] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0141] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0142] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0143] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.

[0144] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for verifying the authenticity of a handwritten electronic signature, characterized in that: include: Acquire a first signature image and first signature pad data of a first handwritten electronic signature of a first object, wherein the first signature pad data is physical data generated in response to a writing operation of the first handwritten electronic signature detected by the signature pad; generating a first pressure map based on the first signature pad data; Using a feature extraction module in a pre-trained target verification model to extract features from the first signature image and the first pressure map to obtain a plurality of first signature features, and using a multi-scale feature fusion module in the target verification model to fuse the plurality of first signature features to obtain a plurality of first multi-scale signature features; Using the signature feature verification module in the target verification model, each of the first multi-scale signature features is compared with a preset first object real signature feature to obtain a first authenticity verification result of the first handwritten electronic signature; Among them, the first authenticity verification result is used to characterize whether the first handwritten electronic signature is a forged handwritten signature of the first object, and the first object's real signature feature is obtained by extracting features from the signature image of the first object's real handwritten signature and the pressure map generated based on the signature plate data of the real handwritten signature.

2. The method according to claim 1, characterized in that The training process of the target verification model includes: Acquire a training sample set and a sample label set, wherein the training sample set includes a plurality of second signature images and a second pressure map of a second handwritten electronic signature of a second object as training samples, and the sample label set includes a plurality of second authenticity verification results of a second handwritten electronic signature of a second object as sample labels; Constructing an initial verification model, wherein the initial verification model at least includes: a feature extraction module based on a Transformer encoder, a multi-scale feature fusion module based on deep separable convolution, and a signature feature verification module; The initial verification model is iteratively trained using the training sample set and the sample label set to obtain the target verification model.

3. The method according to claim 2, characterized in that Get the training sample set and sample label set, including: Acquire a plurality of initial signature images and initial signature plate data of the second handwritten electronic signature of the second object, wherein the initial signature plate data includes at least one of the following: a horizontal coordinate, a vertical coordinate, and a pressure of the handwritten electronic signature; Performing a first preprocessing operation on the initial signature plate data of each of the second handwritten electronic signatures, and generating a corresponding second pressure map based on each of the preprocessed initial signature plate data, wherein the first preprocessing operation includes at least one of the following: data cleaning, data standardization, and time series alignment; Performing a second preprocessing operation on the initial signature image of each second handwritten electronic signature to obtain a corresponding second signature image, wherein the second preprocessing operation includes at least one of the following: scaling, cropping, padding, format unification, histogram equalization, and noise removal; Using the second pressure map and the preprocessed second signature image of each second object as training samples, and forming the training sample set from a plurality of the training samples; A second authenticity verification result of each of the second handwritten electronic signatures is determined, and the second authenticity verification result is used as a sample label, and a plurality of the sample labels form the sample label set.

4. The method according to claim 2, characterized in that: Iteratively training the initial verification model using the training sample set and the sample label set includes: For each training batch in the iterative training process, the feature extraction module is used to extract features from each of the training samples in the training batch to obtain a plurality of second signature features corresponding to each of the training samples; the multi-scale feature fusion module is used to fuse the plurality of second signature features corresponding to each of the training samples to obtain a plurality of second multi-scale signature features corresponding to each of the training samples; the signature feature verification module is used to compare the plurality of second multi-scale signature features corresponding to each of the training samples with the real signature features of the second object to obtain a prediction authenticity verification result corresponding to each of the training samples; A target loss function is constructed based on the sample labels corresponding to each of the training samples and the prediction authenticity verification results, and the model parameters of the initial verification model are adjusted according to the target loss function.

5. The method according to claim 4, characterized in that The feature extraction module includes: an image processing layer, an embedding layer, and a Transformer encoder, wherein the feature extraction module is used to extract features from each of the training samples in the training batch to obtain a plurality of second signature features corresponding to each of the training samples, including: For each of the training samples, the second signature image and the second pressure map are processed in blocks by using the image processing layer to obtain a plurality of first image blocks and a plurality of second image blocks, and the plurality of first image blocks and the plurality of second image blocks are mapped into a one-dimensional vector space by linear mapping to obtain a corresponding first image block sequence and a second image block sequence; Using an embedding layer to embed the first image block sequence and the second image block sequence respectively, to obtain a corresponding first image block embedding sequence and a second image block embedding sequence; A Transformer encoder is used to perform feature extraction on the first image block embedding sequence and the second image block embedding sequence to obtain a plurality of second signature features.

6. The method according to claim 4, characterized in that Using the multi-scale feature fusion module to perform feature fusion on the multiple second signature features corresponding to each of the training samples to obtain the multiple second multi-scale signature features corresponding to each of the training samples, including: For each of the training samples, a feature selection algorithm is used to perform feature screening on a plurality of second signature features corresponding to the training sample to obtain a plurality of second key signature features corresponding to the training sample, wherein the influence of the second key signature features on the final prediction authenticity result is not less than a preset influence threshold, and the feature selection technology includes at least one of the following: a recursive feature elimination algorithm, a feature importance evaluation algorithm; Standardizing and normalizing the plurality of second key signature features corresponding to each of the training samples; The multi-scale feature fusion module is used to perform feature fusion on the processed multiple second key signature features corresponding to each of the training samples to obtain multiple second multi-scale signature features corresponding to each of the training samples.

7. The method according to claim 6, characterized in that The signature feature verification module is used to compare the plurality of second multi-scale signature features corresponding to each of the training samples with the second object real signature feature, Obtaining prediction authenticity verification results corresponding to each of the training samples, including: For each of the training samples, calculating the similarity between each of the second multi-scale signature features corresponding to the training sample and a preset second object real signature feature; Determine whether the similarity is less than a preset similarity threshold value of the comparison result; In a case where the similarity is not less than the similarity threshold, determining that the predicted authenticity verification result is that the second handwritten electronic signature is not a handwritten signature forged by the second subject; In a case where the similarity is less than the similarity threshold, it is determined that the predicted authenticity verification result is that the second handwritten electronic signature is a handwritten signature forged by the second object.

8. A device for verifying the authenticity of a handwritten electronic signature, characterized in that: include: An acquisition module, configured to acquire a first signature image and first signature plate data of a first handwritten electronic signature of a first object, wherein the first signature plate data is physical data generated in response to a writing operation detected by the signature plate for the first handwritten electronic signature; a determination module, configured to generate a first pressure map based on the first signature pad data; a feature processing module, configured to extract features from the first signature image and the first pressure map using a feature extraction module in a pre-trained target verification model to obtain a plurality of first signature features, and to fuse features from the plurality of first signature features using a multi-scale feature fusion module in the target verification model to obtain a plurality of first multi-scale signature features; an authenticity verification module, configured to compare the first multi-scale signature features with the preset first object real signature features by using the signature feature verification module in the target verification model, and obtain a first authenticity verification result of the first handwritten electronic signature; Among them, the first authenticity verification result is used to characterize whether the first handwritten electronic signature is a forged handwritten signature of the first object, and the first object's real signature feature is obtained by extracting features from the signature image of the first object's real handwritten signature and the pressure map generated based on the signature plate data of the real handwritten signature.

9. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, wherein the device where the non-volatile storage medium is located executes the authenticity verification method of the handwritten electronic signature described in any one of claims 1 to 7 by running the computer program.

10. A computer program product, characterized in that include: A computer program, wherein when the computer program is executed by a processor, the method for verifying the authenticity of a handwritten electronic signature as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Electronic signature authentication method and device for improving identification accuracy of electronic signature

    CN113158887A

  • Signature identification method and system based on twinborn vision Transform network

    CN114898472A

  • Handwritten electronic signature anti-counterfeiting method

    CN117935375A

Cited By

  • Signature information acquisition device for signature electronization

    CN119785440A

  • An electronic signature information collection device for electronic signature

    CN119785440B