WO2021217944A1 - Method and apparatus for verifying electronic signature, and computer device and storage medium - Google Patents

Method and apparatus for verifying electronic signature, and computer device and storage medium Download PDF

Info

Publication number
WO2021217944A1
WO2021217944A1 PCT/CN2020/106071 CN2020106071W WO2021217944A1 WO 2021217944 A1 WO2021217944 A1 WO 2021217944A1 CN 2020106071 W CN2020106071 W CN 2020106071W WO 2021217944 A1 WO2021217944 A1 WO 2021217944A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic signature
time series
series data
signature
feature
Prior art date
Application number
PCT/CN2020/106071
Other languages
French (fr)
Chinese (zh)
Inventor
陈东亮
Original Assignee
深圳壹账通智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2021217944A1 publication Critical patent/WO2021217944A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Definitions

  • This application relates to the field of artificial intelligence technology, in particular to an electronic signature verification method, device, computer equipment and storage medium.
  • the authentication method for electronic signatures is generally to collect the picture information of the electronic signature, extract the characteristics from the picture information of the electronic signature, and then analyze these characteristics to obtain the verification result of the electronic signature.
  • the picture information of the electronic signature only involves the static information of the electronic signature, which can easily cause misidentification or omission of the electronic signature, which in turn leads to a lower verification accuracy rate of the electronic signature.
  • an electronic signature verification method is provided.
  • An electronic signature verification method includes:
  • the time series data of the electronic signature carries the signature identification of the electronic signature
  • the verification result of the electronic signature is determined.
  • An electronic signature verification device includes:
  • the data collection module is used to collect the time series data of the electronic signature on the touch screen input device; the time series data of the electronic signature carries the signature identification of the electronic signature;
  • a data acquisition module for acquiring the time series data of the certified electronic signature of the signature identification
  • the similarity determination module is configured to determine the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature;
  • the verification result determination module is configured to determine the verification result of the electronic signature according to the feature similarity between the electronic signature and the certified electronic signature.
  • a computer device including a memory and one or more processors, the memory stores computer readable instructions, and when the computer readable instructions are executed by the processor, the one or more processors execute The following steps:
  • the time series data of the electronic signature carries the signature identification of the electronic signature
  • the verification result of the electronic signature is determined.
  • One or more computer-readable storage media storing computer-readable instructions.
  • the one or more processors perform the following steps:
  • the time series data of the electronic signature carries the signature identification of the electronic signature
  • the verification result of the electronic signature is determined.
  • the above-mentioned verification method, device, computer equipment and storage medium of the electronic signature, the time series data of the electronic signature identified by the same signature on the touch screen input device and the time series data of the certified electronic signature are used to determine the distance between the electronic signature and the certified electronic signature. According to the feature similarity between the electronic signature and the certified electronic signature, the verification result of the electronic signature is determined; it is realized that the electronic signature is determined in real time according to the time series data of the electronic signature and the time series data of the certified electronic signature.
  • the purpose of the verification result of the signature is to comprehensively consider the time series data of the electronic signature and the time series data of the authentication electronic signature, which is conducive to obtaining the dynamic information of the electronic signature in the time dimension, thereby making the verification of the electronic signature more accurate and avoiding just considering
  • the static information of the electronic signature leads to the defect that the verification accuracy of the electronic signature is low, which further improves the verification accuracy of the electronic signature.
  • the verification result of the electronic signature is determined, which is conducive to the accurate verification of the electronic signature, thereby improving the verification accuracy of the electronic signature.
  • Fig. 1 is an application environment diagram of an electronic signature verification method according to one or more embodiments
  • Fig. 2 is a schematic flow chart of a verification method for an electronic signature according to one or more embodiments
  • Fig. 3 is a schematic diagram of an electronic pen and a touch screen input device according to one or more embodiments
  • FIG. 4 is a schematic flowchart of the steps of determining the feature similarity between an electronic signature and a certified electronic signature according to one or more embodiments
  • FIG. 5 is a schematic diagram of the feature similarity between the output electronic signature and the certified electronic signature according to one or more embodiments
  • FIG. 6 is a schematic flowchart of a method for verifying an electronic signature in another embodiment
  • Fig. 7 is a block diagram of an electronic signature verification device according to one or more embodiments.
  • Figure 8 is a block diagram of a computer device according to one or more embodiments.
  • the electronic signature verification method provided in this application can be applied to the application environment as shown in FIG. 1.
  • the touch screen input device 110 communicates with the server 120 through a network.
  • the touch screen input device 110 collects the time series data of the electronic signature of the current signer, and sends the time series data of the electronic signature to the server 120, and the time series data of the electronic signature carries the signature identifier.
  • the server 120 obtains the time series data of the corresponding certified electronic signature according to the signature identifier of the electronic signature; determines the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature; According to the feature similarity between the electronic signature and the certified electronic signature, the verification result of the electronic signature is determined.
  • the touch screen input device 110 refers to a touch screen device with an electronic signature function, which can be, but is not limited to, various smart phones, tablets, and electronic signature devices.
  • the server 120 can be an independent server or a server composed of multiple servers. Cluster to achieve.
  • the electronic signature verification method provided in this application can also be applied to touch screen input devices, and can also be applied to a server, which is not specifically limited by this application.
  • an electronic signature verification method is provided. Taking the method applied to the server in FIG. 1 as an example for description, the method includes the following steps:
  • Step S201 Collect the time series data of the electronic signature on the touch screen input device; the time series data of the electronic signature carries the signature identifier of the electronic signature.
  • the touch screen input device refers to the device with electronic signature function, such as Apple iPad, which can allow users to perform electronic signatures and collect the time series data of electronic signatures; electronic signatures refer to the electronic pen (such as Apple Pencil). ) The name written on a touch screen input device (such as Apple iPad).
  • the time series data of the electronic signature refers to the data of multiple dimensions of the electronic pen collected under different timestamps in chronological order, which can characterize the signature characteristics of the user; for example, under different timestamps, the electronic pen’s
  • the position coordinates of the pen tip on the touch screen input device including the horizontal and vertical coordinates
  • the pressure value of the electronic pen on the touch screen input device and the projection line of the electronic pen on the surface of the touch screen input device and the horizontal line of the surface of the touch screen input device
  • the radian (as shown in Figure 3a), the arc between the height of the electronic pen and the surface of the touch screen input device (as shown in Figure 3b), and so on.
  • the signature identification of the electronic signature refers to the unique identification of the electronic signature, such as the name corresponding to the electronic signature, the electronic signature number, etc.; for example, if the electronic signature is "Li San", the signature identification of the electronic signature is also As "Li San”.
  • the touch screen input device responds to the current electronic signature operation, obtains the time series data of the electronic signature, and sends the time series data of the electronic signature to the corresponding server; the server reads the time series data of the electronic signature
  • the signature identifier of the electronic signature carried in it is convenient to subsequently obtain the corresponding time-series data of the authenticated electronic signature based on the signature identifier.
  • a user writes an electronic signature on a touch screen input device through an electronic pen to trigger the electronic signature operation; the touch screen input device responds to the electronic signature operation and collects data of multiple dimensions of the electronic pen under different time stamps in chronological order , As the time series data of the corresponding electronic signature, and send the time series data of the electronic signature to the corresponding server.
  • the touch screen input device can also take the data of multiple dimensions of the electronic pen collected under each time stamp as a row of data and write it into a pre-established form (such as a CSV form) as the time sequence of the corresponding electronic signature Data table (as shown in Table 1), and send the entire electronic signature time series data table to the corresponding server.
  • ID represents the number corresponding to each row of time series data
  • X represents the abscissa of the pen tip of the electronic pen on the touch screen input device
  • Y represents the ordinate of the pen tip of the electronic pen on the touch screen input device
  • Force represents the electronic pen pair
  • Altitude represents the arc between the height of the electronic pen and the surface of the touch screen input device
  • Azimuth represents the arc between the projection line of the electronic pen on the surface of the touch screen input device and the horizontal line of the touch screen input device.
  • Timestamp stands for timestamp. It should be noted that due to the system of the touch screen input device, the interval between different timestamps is different, and the approximate range is between 0.005 and 0.013.
  • the server can also receive the electronic signature verification request of the touch screen input device, analyze the electronic signature verification request, and obtain the time series data of the electronic signature and the signature identification corresponding to the electronic signature; for example, the touch screen input device responds to the current
  • the electronic signature operation obtains the time series data of the electronic signature, generates an electronic signature verification request according to the time series data of the electronic signature, and sends the electronic signature verification request to the corresponding server to request the server to verify the electronic signature.
  • Step S202 Obtain the time series data of the authenticated electronic signature identified by the signature.
  • the authenticated electronic signature refers to the name written by the user on the touch screen input device through the electronic pen in the real-name authentication link.
  • the time-series data for authenticating electronic signatures also refers to the data of multiple dimensions of the electronic pen collected under different timestamps in chronological order, such as the position of the pen tip of the electronic pen on the touch screen input device under different timestamps Coordinates, the pressure value of the electronic pen on the touch screen input device, etc.
  • the server queries the local database storing the time series data of the certified electronic signatures corresponding to multiple signatures according to the signature identification, and obtains the time series data of the certified electronic signatures corresponding to the signature identification from the local database, so as to facilitate the follow-up according to
  • the time series data of the electronic signature and the time series data of the authentication electronic signature can accurately identify the electronic signature, thereby improving the verification accuracy of the electronic signature.
  • the server collects the time series of the certified electronic signatures on the multiple touch screen input devices based on the big data technology in advance. Data, so as to obtain the time series data of multiple certified electronic signatures; store the time series data of multiple certified electronic signatures in the local database according to the signature identification classification of the certified electronic signature, so as to store the certification of multiple signature identifications through the local database The time series data of the electronic signature; in this way, it is helpful to query the local database later to obtain the time series data of the certified electronic signature identified by the signature.
  • the server may also query the correspondence between the preset signature identifier and the time-series data of the certified electronic signature based on the signature identifier to obtain the time-series data of the certified electronic signature corresponding to the signature identifier.
  • Step S203 Determine the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature.
  • the feature similarity between the electronic signature and the certified electronic signature is used to measure the degree of similarity between the signature feature corresponding to the electronic signature and the signature feature corresponding to the certified electronic signature; the higher the feature similarity, the greater the electronic signature and the certified electronic signature.
  • the more similar the signature it means that the electronic signature is a true signature, and the lower the feature similarity is, the less similar the electronic signature and the certified electronic signature are, indicating that the electronic signature is a fake signature.
  • the server determines the feature code of the electronic signature and the feature code of the certification electronic signature according to the time series data of the electronic signature and the time series data of the certification electronic signature; according to the feature code of the electronic signature and the feature code of the certification electronic signature, count the electronic The feature similarity between the signature and the certified electronic signature; in this way, it is helpful to determine the verification result of the electronic signature according to the feature similarity between the electronic signature and the certified electronic signature, so as to achieve the accurate verification of the electronic signature, thereby improving The verification accuracy rate of the electronic signature.
  • the feature code of an electronic signature refers to the low-dimensional feature vector used to represent the low-level semantics of the electronic signature after compression encoding
  • the feature code of the certified electronic signature also refers to the low-level semantics of the certified electronic signature after compression encoding.
  • the server inputs the time series data of the electronic signature and the time series data of the authentication electronic signature into the feature extraction network, and extracts the time series features in the time series data of the electronic signature and the time series data of the authentication electronic signature through the feature extraction network.
  • Time sequence features and determine the feature code of the electronic signature and the feature code of the authenticated electronic signature according to the time sequence feature in the time series data of the electronic signature and the time sequence feature in the time series data of the certified electronic signature; count the feature code and certification of the electronic signature
  • the feature distance between the feature codes of the electronic signature, and the feature similarity between the electronic signature and the certified electronic signature is determined according to the feature distance.
  • the server may also obtain a preset data preprocessing instruction, and according to the preset The data preprocessing instruction of the electronic signature preprocesses the time series data of the electronic signature and the time series data of the certified electronic signature to obtain the preprocessed time series data of the electronic signature and the preprocessed time series data of the certified electronic signature.
  • the feature similarity between the electronic signature and the certified electronic signature is more accurate.
  • the server calculates the difference between the abscissa X and the ordinate Y corresponding to each time stamp and the abscissa X and the ordinate Y corresponding to the previous time stamp to obtain The difference between the abscissa dX and the ordinate dY; then keep the two decimal places of each timestamp, for example, 311881.499 becomes 31188149; in this way, the time series data corresponding to each timestamp becomes dX, dY , Force, Altitude, and Azimuth; then, merge the time series data with the same timestamp, and calculate the average values of dX, dY, Force, Altitude, and Azimuth respectively; in this way, the time series data corresponding to each timestamp becomes dX', dY', Force', Altitude' and Azimuth', as shown in Table 2. It should be noted that the time series data for authenticating electronic signatures is also pre
  • Step S204 Determine the verification result of the electronic signature according to the feature similarity between the electronic signature and the certified electronic signature.
  • the verification result of the electronic signature means that the electronic signature verification passes or the electronic signature verification fails.
  • the server compares the feature similarity between the electronic signature and the certified electronic signature with the preset similarity to obtain a comparison result; according to the comparison result, it determines whether the electronic signature and the certified electronic signature belong to the same user's true signature, and then obtains The verification result of the electronic signature. For example, if the electronic signature and the certified electronic signature belong to the true signature of the same user, the electronic signature verification passed; if the electronic signature and the certified electronic signature do not belong to the true signature of the same user, the electronic signature verification failed.
  • the verification result of the electronic signature is determined, which is conducive to the accurate verification of the electronic signature, and avoids only considering the static information of the electronic signature, resulting in the verification accuracy of the electronic signature Lower defects further improve the verification accuracy of electronic signatures.
  • the time series data of the electronic signature identified by the same signature on the touch screen input device and the time series data of the certified electronic signature are used to determine the feature similarity between the electronic signature and the certified electronic signature;
  • the feature similarity between the electronic signature and the certified electronic signature determines the verification result of the electronic signature; realizes the purpose of determining the verification result of the electronic signature in real time based on the time series data of the electronic signature and the time series data of the certified electronic signature.
  • step S203 according to the time series data of the electronic signature and the time series data of the certified electronic signature, determine the feature similarity between the electronic signature and the certified electronic signature, which specifically includes the following step:
  • Step S401 According to the time series data of the electronic signature and the time series data of the authentication electronic signature, the characteristic code of the electronic signature and the characteristic code of the authentication electronic signature are determined.
  • the server extracts the time series characteristics in the time series data of the electronic signature and the time series characteristics in the time series data of the authentication electronic signature, and according to the time series characteristics in the time series data of the electronic signature and the time series data in the time series data of the authentication electronic signature Time sequence feature, determine the feature code of the electronic signature and the feature code of the authenticated electronic signature,
  • Step S402 Determine the characteristic distance between the characteristic code of the electronic signature and the characteristic code of the authenticated electronic signature.
  • the feature distance between the feature code of the electronic signature and the feature code of the certified electronic signature refers to the Euclidean distance between the feature code of the electronic signature and the feature code of the certified electronic signature, which is used to measure the difference between the electronic signature and the certified electronic signature.
  • the feature similarity between the two the larger the feature distance, the greater the feature similarity between the electronic signature and the certified electronic signature; the smaller the feature distance, the smaller the feature similarity between the electronic signature and the certified electronic signature.
  • the server uses the Euclidean distance algorithm to calculate the Euclidean distance between the feature code of the electronic signature and the feature code of the authentication electronic signature as the feature distance between the feature code of the electronic signature and the feature code of the authentication electronic signature.
  • the electronic signature For example, if the feature code of the electronic signature is X(x 1 , x 2 , x 3 ...x n ), and the feature code of the certified electronic signature is Y(y 1 , y 2 , y 3 ...y n ), then the electronic signature
  • the feature distance between the feature code of and the feature code of the certified electronic signature is:
  • step S403 the feature distance is subjected to a mapping process, and the feature distance after the mapping process is obtained as the feature similarity between the electronic signature and the authenticated electronic signature.
  • the server maps the characteristic distance to a value belonging to [0, 1], and uses the value as the characteristic similarity between the electronic signature and the authenticated electronic signature.
  • the server uses the sigmoid function to map the feature distance.
  • the feature distance is used as the input of the sigmoid function, and the feature distance after the mapping process is output through the sigmoid function as the feature similarity between the electronic signature and the authenticated electronic signature.
  • the server may also determine the feature similarity corresponding to the obtained feature distance according to the preset correspondence between the feature distance and the feature similarity, as the feature similarity between the electronic signature and the authenticated electronic signature.
  • the above step S401 according to the time series data of the electronic signature and the time series data of the authentication electronic signature, determine the characteristic code of the electronic signature and the characteristic code of the authentication electronic signature, which specifically includes: Serial data and certified electronic signature time series data undergo batch standardization processing to obtain electronic signature standard time series data and certified electronic signature standard time series data; extract the time series features and certified electronic signatures of electronic signature standard time series data respectively According to the time series characteristics in the standard time series data of the electronic signature and the time series characteristics in the standard time series data of the certified electronic signature, the signature code of the electronic signature and the signature code of the certified electronic signature are determined.
  • the standard time series data of the electronic signature and the time series data of the certified electronic signature both refer to the time series data whose data distribution is normally distributed; the time series characteristics refer to the characteristics of the electronic signature in the time dimension.
  • the server performs batch standardization processing on the time series data of the electronic signature and the time series data of the certified electronic signature respectively, and obtains the time series data of the electronic signature whose data distribution is a normal distribution and the certified electronic signature whose data distribution is a normal distribution.
  • the time series data corresponding to the standard time series data of the electronic signature and the standard time series data of the certified electronic signature respectively input the time series data of the electronic signature and the time series data of the certified electronic signature into the feature extraction network, and pass the feature extraction network Extract the time series features in the time series data of the electronic signature and the time series features in the time series data of the authenticated electronic signature; respectively characterize the time series features in the time series data of the electronic signature and the time series data of the authenticated electronic signature
  • the encoding process obtains the feature code of the electronic signature and the feature code of the authenticated electronic signature.
  • the characteristic code of the electronic signature and the characteristic code of the authentication electronic signature are determined, which is beneficial to follow-up according to the characteristics between the electronic signature and the authentication electronic signature.
  • the similarity determines the verification result of the electronic signature, so as to realize the accurate verification of the electronic signature, thereby improving the verification accuracy of the electronic signature.
  • the above step S203, determining the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature further includes: The sequence data and the time-series data of the certified electronic signature are input into the pre-trained signature verification model to obtain the feature similarity between the electronic signature and the certified electronic signature; the pre-trained signature verification model is used according to the time-series data of the electronic signature and the certified electronic signature.
  • Signature time series data determine the feature code of the electronic signature and the feature code of the certified electronic signature; determine the feature distance between the feature code of the electronic signature and the feature code of the certified electronic signature; map the feature distance to obtain the mapping process The feature distance of is used as the feature similarity between the electronic signature and the certified electronic signature.
  • the pre-trained signature verification model refers to a neural network model that can verify whether two electronic signatures belong to the true signature of the same user.
  • LSTM Long Short-Term Memory
  • feature coding layer feature coding layer
  • feature comparison layer logistic regression layer
  • the server inputs the time series data of the electronic signature and the time series data of the authentication electronic signature into the BN layer in the twin deep network model, and the input time series data of the electronic signature and the authentication electronic
  • the signed time series data is processed for batch standardization, and the output data distribution is normally distributed electronic signature time series data, as the standard time series data of electronic signature, and the output data distribution is normal distribution certified electronic signature time series data
  • As the standard time series data for authenticating electronic signatures respectively input the standard time series data for electronic signatures and the standard time series data for authenticating electronic signatures into the corresponding double-layer two-way LSTM layer, and extract the time series of electronic signatures through the double-layer two-way LSTM layer
  • the time series characteristics in the data and the time series characteristics in the time series data of the authentication electronic signature, and the time series characteristics in the time series data of the electronic signature and the time series characteristics in the time series data of the authentication electronic signature are respectively input into the corresponding feature encoding layer;
  • the feature encoding layer performs feature
  • the pre-trained signature verification model combined with the time series data of the electronic signature and the time series data of the certified electronic signature, it is beneficial to improve the accuracy of the feature similarity between the obtained electronic signature and the certified electronic signature. Therefore, the subsequent electronic signature verification is more accurate, and the verification accuracy rate of the electronic signature is further improved.
  • the pre-trained signature verification model is obtained by training in the following way: collecting the time series data of two sample electronic signatures of the same signature and the actual feature similarity of the two sample electronic signatures;
  • the sample time series data of the two sample electronic signatures identified by the signature are input into the signature verification model to be trained, and the feature similarity of the two sample electronic signatures is obtained; the feature similarity of the two sample electronic signatures and the corresponding actual feature similarity are calculated
  • the network parameters of the signature verification model to be trained are adjusted according to the error to obtain the adjusted signature verification model, and the adjusted signature verification model is repeatedly trained until it is trained according to the The error obtained by the subsequent signature verification model is less than the preset threshold.
  • the error between the feature similarity of the two sample electronic signatures and the corresponding actual feature similarity is used to measure that the feature similarity of the two sample electronic signatures output by the signature verification model to be trained is similar to the corresponding actual feature The degree of deviation between degrees.
  • the server collects the time series data of two sample electronic signatures corresponding to multiple identical signatures and the actual feature similarity of the two sample electronic signatures, and identifies the two samples corresponding to multiple identical signatures
  • the time series data of electronic signatures are trained on the signature verification model to be trained, and the trained signature verification model is obtained, and the feature similarity of the two sample electronic signatures output by the trained signature verification model is calculated between the feature similarity of the two samples and the corresponding actual feature similarity.
  • the network parameters in the signature verification model are continuously adjusted, and the signature verification model is repeatedly trained until the error obtained according to the trained signature verification model is less than the preset threshold.
  • the current signature verification model is used as a pre-trained signature verification model.
  • the server repeatedly trains the signature verification model through the time series data of two sample electronic signatures identified by the same signature, which can improve the feature similarity between the electronic signature output by the signature verification model and the certified electronic signature.
  • the accuracy rate further improves the verification accuracy rate of the electronic signature.
  • the above step S204, determining the verification result of the electronic signature according to the feature similarity between the electronic signature and the certified electronic signature includes: if the feature similarity between the electronic signature and the certified electronic signature is greater than or If it is equal to the preset similarity, it is confirmed that the electronic signature verification is passed; if the feature similarity between the electronic signature and the certified electronic signature is less than the preset similarity, it is confirmed that the electronic signature verification fails.
  • the feature similarity between the electronic signature and the certified electronic signature is greater than or equal to 0.7, it means that the electronic signature and the certified electronic signature belong to the same user's true signature, and the electronic signature verification is confirmed; if the electronic signature and the certified electronic signature are both The feature similarity between the two is less than 0.7, indicating that the electronic signature and the certified electronic signature do not belong to the true signature of the same user, and the verification of the electronic signature is confirmed to fail.
  • the verification result of the electronic signature is determined based on the feature similarity between the electronic signature and the certified electronic signature, which is conducive to the accurate verification of the electronic signature, and avoids only considering the static information of the electronic signature, which leads to the electronic signature.
  • the shortcomings of low verification accuracy rate further improve the verification accuracy rate of the electronic signature; at the same time, by verifying the electronic signature, it is beneficial to improve the security of the electronic signature process.
  • the method further includes: generating an electronic signature verification passed message; The verification is sent to the touch screen input device via a message.
  • the server After confirming that the electronic signature verification is passed, the server generates an electronic signature verification passed message according to the preset message template, and sends the electronic signature verification passed message to the corresponding touch screen input device, and then the signature interface of the touch screen input device Display the electronic signature verification passed message to remind the user that the signature is successful without repeating the signature.
  • the method further includes: generating an electronic signature verification failure message, and adding the electronic signature
  • the verification failure message is sent to the touch screen input device, and the electronic signature verification failure message is displayed through the signature interface of the touch screen input device to remind the user that the signature is successful; at this time, the user can re-enter the signature.
  • FIG. 6 another method for verifying an electronic signature is provided. Taking the method applied to the server in FIG. 1 as an example for description, the method includes the following steps:
  • Step S601 Collect the time series data of the electronic signature on the touch screen input device; the time series data of the electronic signature carries the signature identifier of the electronic signature.
  • Step S602 Obtain the time series data of the authenticated electronic signature identified by the signature.
  • Step S603 Perform batch standardization processing on the time series data of the electronic signature and the time series data of the certified electronic signature, respectively, to obtain the standard time series data of the electronic signature and the standard time series data of the certified electronic signature.
  • Step S604 extracting the time series features in the standard time series data of the electronic signature and the time series features in the standard time series data of the authentication electronic signature respectively.
  • Step S605 Determine the feature code of the electronic signature and the feature code of the certification electronic signature according to the time sequence feature in the standard time series data of the electronic signature and the time sequence feature in the standard time series data of the certified electronic signature.
  • Step S606 Determine the characteristic distance between the characteristic code of the electronic signature and the characteristic code of the authenticated electronic signature.
  • step S607 the feature distance is subjected to a mapping process, and the feature distance after the mapping process is obtained as the feature similarity between the electronic signature and the authenticated electronic signature.
  • step S608 if the feature similarity between the electronic signature and the certified electronic signature is greater than or equal to the preset similarity, it is confirmed that the electronic signature has passed the verification.
  • step S609 an electronic signature verification passed message is generated, and the electronic signature verification passed message is uploaded to the blockchain.
  • the corresponding digest information is obtained through the message.
  • the digest information is obtained by the electronic signature verification through the hash processing of the message, for example, obtained by the sha256s algorithm.
  • Uploading summary information to the blockchain can ensure its security and fairness and transparency to users.
  • the user equipment can download the summary information from the blockchain in order to verify whether the electronic signature verification information has been tampered with.
  • the electronic signature verification can be sent to the touch screen input device through a message.
  • comprehensive consideration of the time series data of the electronic signature and the time series data of the authentication electronic signature is conducive to obtaining the dynamic information of the electronic signature in the time dimension, thereby making the verification of the electronic signature more accurate and avoiding only considering the electronic signature.
  • the static information of the signature leads to the defect that the verification accuracy rate of the electronic signature is low, and the verification accuracy rate of the electronic signature is further improved.
  • an electronic signature verification device which includes: a data acquisition module, a data acquisition module, a similarity determination module, and a verification result determination module, wherein:
  • the data collection module 710 is used to collect the time series data of the electronic signature on the touch screen input device; the time series data of the electronic signature carries the signature identification of the electronic signature.
  • the data acquisition module 720 is configured to acquire the time series data of the authenticated electronic signature of the signature identification.
  • the similarity determination module 730 is configured to determine the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature.
  • the verification result determination module 740 is configured to determine the verification result of the electronic signature according to the feature similarity between the electronic signature and the certified electronic signature.
  • the similarity determination module 730 is also used to determine the feature code of the electronic signature and the feature code of the certification electronic signature according to the time series data of the electronic signature and the time series data of the certification electronic signature; determine the characteristics of the electronic signature The feature distance between the code and the feature code of the authenticated electronic signature; the feature distance is mapped to obtain the feature distance after the mapping process, which is used as the feature similarity between the electronic signature and the authenticated electronic signature.
  • the similarity determination module 730 is further configured to perform batch standardization processing on the time series data of the electronic signature and the time series data of the authentication electronic signature, respectively, to obtain the standard time series data of the electronic signature and the standard time series of the authentication electronic signature.
  • Time series data respectively extract the time series features in the standard time series data of the electronic signature and the time series features in the standard time series data of the authentication electronic signature; according to the time series characteristics in the standard time series data of the electronic signature and the standard time of the authentication electronic signature
  • the sequence features in the sequence data determine the feature code of the electronic signature and the feature code of the authenticated electronic signature.
  • the similarity determination module 730 is also used to separately input the time series data of the electronic signature and the time series data of the authentication electronic signature into the pre-trained signature verification model to obtain the characteristics between the electronic signature and the authentication electronic signature. Similarity; the pre-trained signature verification model is used to determine the feature code of the electronic signature and the feature code of the authentication electronic signature according to the time series data of the electronic signature and the time series data of the authentication electronic signature; determine the feature code of the electronic signature and the authentication electronic The feature distance between the feature codes of the signature; the feature distance is mapped to obtain the feature distance after the mapping process, which is used as the feature similarity between the electronic signature and the authenticated electronic signature.
  • the electronic signature verification device further includes a model training module, which is used to collect the time series data of the two sample electronic signatures of the same signature and the actual feature similarity of the two sample electronic signatures;
  • the sample time series data of the two sample electronic signatures identified by the signature are input into the signature verification model to be trained, and the feature similarity of the two sample electronic signatures is obtained; the feature similarity of the two sample electronic signatures and the corresponding actual feature similarity are calculated
  • the network parameters of the signature verification model to be trained are adjusted according to the error to obtain the adjusted signature verification model, and the adjusted signature verification model is repeatedly trained until it is trained according to the The error obtained by the subsequent signature verification model is less than the preset threshold.
  • the verification result determination module 740 is further configured to confirm that the electronic signature verification has passed if the feature similarity between the electronic signature and the certified electronic signature is greater than or equal to the preset similarity; If the feature similarity between the two is less than the preset similarity, it is confirmed that the electronic signature verification fails.
  • the electronic signature verification device further includes a message sending module for generating an electronic signature verification pass message after the verification result determination module 740 confirms that the electronic signature verification is passed; sending the electronic signature verification passed message to the touch screen input equipment.
  • the electronic signature verification device realizes the purpose of determining the verification result of the electronic signature in real time according to the time series data of the electronic signature and the time series data of the authentication electronic signature, and comprehensively considers the time series data and the time series data of the electronic signature.
  • Authenticating the time series data of an electronic signature is conducive to obtaining the dynamic information of the electronic signature in the time dimension, thereby making the verification of the electronic signature more accurate, avoiding only considering the static information of the electronic signature, resulting in a lower verification accuracy rate of the electronic signature
  • the defect further improves the verification accuracy of the electronic signature.
  • Each module in the above-mentioned electronic signature verification device can be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 8.
  • the computer equipment includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile or volatile storage medium and internal memory.
  • the non-volatile or volatile storage medium stores an operating system, computer readable instructions, and a database.
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile or volatile storage medium.
  • the database of the computer equipment is used to store the time series data of the electronic signature, the time series data of the authentication electronic signature, and so on.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer-readable instruction is executed by the processor to realize an electronic signature verification method.
  • FIG. 8 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
  • the specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
  • a computer device including a memory and one or more processors, and computer-readable instructions are stored in the memory.
  • the steps of the method for verifying an electronic signature provided in any one of the embodiments of the present application are implemented .
  • One or more computer-readable storage media storing computer-readable instructions.
  • the computer-readable storage media may be non-volatile or volatile.
  • the computer-readable instructions are executed by one or more processors , Enabling one or more processors to implement the steps of the electronic signature verification method provided in any embodiment of the present application.
  • the blockchain referred to in this application is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
  • Blockchain essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information for verification. The validity of the information (anti-counterfeiting) and the generation of the next block.
  • the blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
  • any reference to memory, storage, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory.
  • Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, or optical storage.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM may be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Health & Medical Sciences (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Computation (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Collating Specific Patterns (AREA)

Abstract

A method for verifying an electronic signature, which method relates to the technical field of artificial intelligence, and can be applied to an intelligent security and protection scenario. The method comprises: collecting time series data of an electronic signature on a touch-screen input device, wherein the time series data of the electronic signature carries a signature identifier of the electronic signature; acquiring time series data of an authentication electronic signature of the signature identifier; according to the time series data of the electronic signature and the time series data of the authentication electronic signature, determining the feature similarity between the electronic signature and the authentication electronic signature; and according to the feature similarity between the electronic signature and the authentication electronic signature, determining a verification result for the electronic signature.

Description

电子签名的验证方法、装置、计算机设备和存储介质Electronic signature verification method, device, computer equipment and storage medium
本申请要求于2020年04月27日提交中国专利局,申请号为2020103445591,申请名称为“电子签名的验证方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on April 27, 2020. The application number is 2020103445591, and the application name is "Verification Method, Device, Computer Equipment and Storage Medium of Electronic Signature". The reference is incorporated in this application.
技术领域Technical field
本申请涉及人工智能技术领域,特别是涉及一种电子签名的验证方法、装置、计算机设备和存储介质。This application relates to the field of artificial intelligence technology, in particular to an electronic signature verification method, device, computer equipment and storage medium.
背景技术Background technique
随着互联网技术的快速发展,电子签名在很多领域得到了广泛应用,比如网上银行、实体银行、电子政务、电子合同的签署等;为了保障电子签名的安全性,需要对电子签名进行验证。With the rapid development of Internet technology, electronic signatures have been widely used in many fields, such as online banking, physical banking, e-government, and the signing of electronic contracts. In order to ensure the security of electronic signatures, electronic signatures need to be verified.
目前,对电子签名的鉴定方式,一般是采集电子签名的图片信息,从电子签名的图片信息中提取出特征,再对这些特征进行分析,从而得到电子签名的验证结果。然而,发明人意识到,电子签名的图片信息仅仅涉及电子签名的静态信息,很容易造成对电子签名的误识别或者漏识别,进而导致电子签名的验证准确率较低。At present, the authentication method for electronic signatures is generally to collect the picture information of the electronic signature, extract the characteristics from the picture information of the electronic signature, and then analyze these characteristics to obtain the verification result of the electronic signature. However, the inventor realizes that the picture information of the electronic signature only involves the static information of the electronic signature, which can easily cause misidentification or omission of the electronic signature, which in turn leads to a lower verification accuracy rate of the electronic signature.
发明内容Summary of the invention
根据本申请公开的各种实施例,提供一种电子签名的验证方法、装置、计算机设备和存储介质。According to various embodiments disclosed in the present application, an electronic signature verification method, device, computer equipment, and storage medium are provided.
一种电子签名的验证方法包括:An electronic signature verification method includes:
采集触屏输入设备上的电子签名的时间序列数据;所述电子签名的时间序列数据中携带有所述电子签名的签名标识;Collecting the time series data of the electronic signature on the touch screen input device; the time series data of the electronic signature carries the signature identification of the electronic signature;
获取所述签名标识的认证电子签名的时间序列数据;Acquiring the time series data of the authenticated electronic signature of the signature identification;
根据所述电子签名的时间序列数据和所述认证电子签名的时间序列数据,确定所述电子签名与所述认证电子签名之间的特征相似度;及Determine the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature; and
根据所述电子签名与所述认证电子签名之间的特征相似度,确定对所述电子签名的验证结果。According to the feature similarity between the electronic signature and the certified electronic signature, the verification result of the electronic signature is determined.
一种电子签名的验证装置包括:An electronic signature verification device includes:
数据采集模块,用于采集触屏输入设备上的电子签名的时间序列数据;所述电子签名的时间序列数据中携带有所述电子签名的签名标识;The data collection module is used to collect the time series data of the electronic signature on the touch screen input device; the time series data of the electronic signature carries the signature identification of the electronic signature;
数据获取模块,用于获取所述签名标识的认证电子签名的时间序列数据;A data acquisition module for acquiring the time series data of the certified electronic signature of the signature identification;
相似度确定模块,用于根据所述电子签名的时间序列数据和所述认证电子签名的时间序列数据,确定所述电子签名与所述认证电子签名之间的特征相似度;及The similarity determination module is configured to determine the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature; and
验证结果确定模块,用于根据所述电子签名与所述认证电子签名之间的特征相似度,确定对所述电子签名的验证结果。The verification result determination module is configured to determine the verification result of the electronic signature according to the feature similarity between the electronic signature and the certified electronic signature.
一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device, including a memory and one or more processors, the memory stores computer readable instructions, and when the computer readable instructions are executed by the processor, the one or more processors execute The following steps:
采集触屏输入设备上的电子签名的时间序列数据;所述电子签名的时间序列数据中携带有所述电子签名的签名标识;Collecting the time series data of the electronic signature on the touch screen input device; the time series data of the electronic signature carries the signature identification of the electronic signature;
获取所述签名标识的认证电子签名的时间序列数据;Acquiring the time series data of the authenticated electronic signature of the signature identification;
根据所述电子签名的时间序列数据和所述认证电子签名的时间序列数据,确定所述电子签名与所述认证电子签名之间的特征相似度;及Determine the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature; and
根据所述电子签名与所述认证电子签名之间的特征相似度,确定对所述电子签名的验证结果。According to the feature similarity between the electronic signature and the certified electronic signature, the verification result of the electronic signature is determined.
一个或多个存储有计算机可读指令的计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:One or more computer-readable storage media storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors perform the following steps:
采集触屏输入设备上的电子签名的时间序列数据;所述电子签名的时间序列数据中携带有所述电子签名的签名标识;Collecting the time series data of the electronic signature on the touch screen input device; the time series data of the electronic signature carries the signature identification of the electronic signature;
获取所述签名标识的认证电子签名的时间序列数据;Acquiring the time series data of the authenticated electronic signature of the signature identification;
根据所述电子签名的时间序列数据和所述认证电子签名的时间序列数据,确定所述电子签名与所述认证电子签名之间的特征相似度;及Determine the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature; and
根据所述电子签名与所述认证电子签名之间的特征相似度,确定对所述电子签名的验证结果。According to the feature similarity between the electronic signature and the certified electronic signature, the verification result of the electronic signature is determined.
上述电子签名的验证方法、装置、计算机设备和存储介质,通过触屏输入设备上的同一签名标识的电子签名的时间序列数据和认证电子签名的时间序列数据,确定电子签名与认证电子签名之间的特征相似度;进而根据电子签名与认证电子签名之间的特征相似度,确定对电子签名的验证结果;实现了根据电子签名的时间序列数据和认证电子签名的时间序列数据,实时确定对电子签名的验证结果的目的,综合考虑电子签名的时间序列数据和认证电子签名的时间序列数据,有利于获取电子签名在时间维度上的动态信息,从而使得电子签名的验证更加准确,避免了仅仅考虑电子签名的静态信息,导致电子签名的验证准确率较低的缺陷,进一步提高了电子签名的验证准确率。同时,通过电子签名与认证电子签名之间的特征相似度,确定对电子签名的验证结果,有利于实现电子签名的精准验证,从而提高了电子签名的验证准确率。The above-mentioned verification method, device, computer equipment and storage medium of the electronic signature, the time series data of the electronic signature identified by the same signature on the touch screen input device and the time series data of the certified electronic signature are used to determine the distance between the electronic signature and the certified electronic signature. According to the feature similarity between the electronic signature and the certified electronic signature, the verification result of the electronic signature is determined; it is realized that the electronic signature is determined in real time according to the time series data of the electronic signature and the time series data of the certified electronic signature. The purpose of the verification result of the signature is to comprehensively consider the time series data of the electronic signature and the time series data of the authentication electronic signature, which is conducive to obtaining the dynamic information of the electronic signature in the time dimension, thereby making the verification of the electronic signature more accurate and avoiding just considering The static information of the electronic signature leads to the defect that the verification accuracy of the electronic signature is low, which further improves the verification accuracy of the electronic signature. At the same time, through the feature similarity between the electronic signature and the certified electronic signature, the verification result of the electronic signature is determined, which is conducive to the accurate verification of the electronic signature, thereby improving the verification accuracy of the electronic signature.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the present application are set forth in the following drawings and description. Other features and advantages of this application will become apparent from the description, drawings and claims.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. A person of ordinary skill in the art can obtain other drawings based on these drawings without creative work.
图1为根据一个或多个实施例中电子签名的验证方法的应用环境图;Fig. 1 is an application environment diagram of an electronic signature verification method according to one or more embodiments;
图2为根据一个或多个实施例中电子签名的验证方法的流程示意图;Fig. 2 is a schematic flow chart of a verification method for an electronic signature according to one or more embodiments;
图3为根据一个或多个实施例中电子笔和触屏输入设备的示意图;Fig. 3 is a schematic diagram of an electronic pen and a touch screen input device according to one or more embodiments;
图4为根据一个或多个实施例中确定电子签名与认证电子签名之间的特征相似度的步骤的流程示意图;4 is a schematic flowchart of the steps of determining the feature similarity between an electronic signature and a certified electronic signature according to one or more embodiments;
图5为根据一个或多个实施例中输出电子签名与认证电子签名之间的特征相似度的示意图;FIG. 5 is a schematic diagram of the feature similarity between the output electronic signature and the certified electronic signature according to one or more embodiments;
图6为另一个实施例中电子签名的验证方法的流程示意图;FIG. 6 is a schematic flowchart of a method for verifying an electronic signature in another embodiment;
图7为根据一个或多个实施例中电子签名的验证装置的框图;Fig. 7 is a block diagram of an electronic signature verification device according to one or more embodiments;
图8为根据一个或多个实施例中计算机设备的框图。Figure 8 is a block diagram of a computer device according to one or more embodiments.
具体实施方式Detailed ways
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the technical solutions and advantages of the present application clearer, the following further describes the present application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
本申请提供的电子签名的验证方法,可以应用于如图1所示的应用环境中。其中,触屏输入设备110与服务器120通过网络进行通信。触屏输入设备110采集当前签名者的电子签名的时间序列数据,并将电子签名的时间序列数据发送至服务器120,电子签名的时间序列数据中携带有签名标识。服务器120根据电子签名的签名标识,获取对应的认证电子签名的时间序列数据;根据电子签名的时间序列数据和认证电子签名的时间序列数据,确定电子签名与认证电子签名之间的特征相似度;根据电子签名与认证电子签名之间的特征相似度,确定对电子签名的验证结果。其中,触屏输入设备110是指具有电子签名功能的触屏设备,可以但不限于是各种智能手机、平板电脑和电子签名设备,服务器120可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The electronic signature verification method provided in this application can be applied to the application environment as shown in FIG. 1. Wherein, the touch screen input device 110 communicates with the server 120 through a network. The touch screen input device 110 collects the time series data of the electronic signature of the current signer, and sends the time series data of the electronic signature to the server 120, and the time series data of the electronic signature carries the signature identifier. The server 120 obtains the time series data of the corresponding certified electronic signature according to the signature identifier of the electronic signature; determines the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature; According to the feature similarity between the electronic signature and the certified electronic signature, the verification result of the electronic signature is determined. Among them, the touch screen input device 110 refers to a touch screen device with an electronic signature function, which can be, but is not limited to, various smart phones, tablets, and electronic signature devices. The server 120 can be an independent server or a server composed of multiple servers. Cluster to achieve.
需要说明的是,本申请提供的电子签名的验证方法,也可以应用于触屏输入设备,还可以应用于服务器,具体本申请不做限定。It should be noted that the electronic signature verification method provided in this application can also be applied to touch screen input devices, and can also be applied to a server, which is not specifically limited by this application.
在其中一个实施例中,如图2所示,提供了一种电子签名的验证方法,以该方法应用于图1中的服务器为例进行说明,包括以下步骤:In one of the embodiments, as shown in FIG. 2, an electronic signature verification method is provided. Taking the method applied to the server in FIG. 1 as an example for description, the method includes the following steps:
步骤S201,采集触屏输入设备上的电子签名的时间序列数据;电子签名的时间序列数据中携带有电子签名的签名标识。Step S201: Collect the time series data of the electronic signature on the touch screen input device; the time series data of the electronic signature carries the signature identifier of the electronic signature.
在本步骤中,触屏输入设备是指具有电子签名功能的设备,比如Apple iPad,能够供用户进行电子签名,并收集电子签名的时间序列数据;电子签名是指用户通过电子笔(比如Apple Pencil)在触屏输入设备上(比如Apple iPad)写下的名字。In this step, the touch screen input device refers to the device with electronic signature function, such as Apple iPad, which can allow users to perform electronic signatures and collect the time series data of electronic signatures; electronic signatures refer to the electronic pen (such as Apple Pencil). ) The name written on a touch screen input device (such as Apple iPad).
在本步骤中,电子签名的时间序列数据是指按照时间顺序,在不同时间戳下采集到的电子笔的多个维度的数据,能够表征用户的签名特征;比如不同时间戳下,电子笔的笔头在触屏输入设备上的位置坐标(包括横坐标和纵坐标)、电子笔对触屏输入设备的压力值、电子笔在触屏输入设备表面的投影线与触屏输入设备表面水平线之间的弧度(如图3a所示)、电子笔的高度与触屏输入设备表面之间的弧度(如图3b所示)等等。在本步骤中,电子签名的签名标识是指电子签名的唯一标识,比如电子签名所对应的姓名、电子签名编号等;举例说明,若电子签名为“李三”,则电子签名的签名标识也为“李三”。In this step, the time series data of the electronic signature refers to the data of multiple dimensions of the electronic pen collected under different timestamps in chronological order, which can characterize the signature characteristics of the user; for example, under different timestamps, the electronic pen’s The position coordinates of the pen tip on the touch screen input device (including the horizontal and vertical coordinates), the pressure value of the electronic pen on the touch screen input device, and the projection line of the electronic pen on the surface of the touch screen input device and the horizontal line of the surface of the touch screen input device The radian (as shown in Figure 3a), the arc between the height of the electronic pen and the surface of the touch screen input device (as shown in Figure 3b), and so on. In this step, the signature identification of the electronic signature refers to the unique identification of the electronic signature, such as the name corresponding to the electronic signature, the electronic signature number, etc.; for example, if the electronic signature is "Li San", the signature identification of the electronic signature is also As "Li San".
具体实现中,触屏输入设备响应当前的电子签名操作,获取电子签名的时间序列数据,并将电子签名的时间签名的时间序列数据发送至对应的服务器;由服务器读取电子签名的时间序列数据中所携带的电子签名的签名标识,便于后续根据该签名标识,获取对应的认证电子签名的时间序列数据。In specific implementation, the touch screen input device responds to the current electronic signature operation, obtains the time series data of the electronic signature, and sends the time series data of the electronic signature to the corresponding server; the server reads the time series data of the electronic signature The signature identifier of the electronic signature carried in it is convenient to subsequently obtain the corresponding time-series data of the authenticated electronic signature based on the signature identifier.
举例说明,用户通过电子笔在触屏输入设备上写下电子签名,触发电子签名操作;触屏输入设备响应电子签名操作,按照时间顺序,在不同时间戳下采集电子笔的多个维度的数据,作为对应的电子签名的时间序列数据,并将电子签名的时间序列数据发送至对应的服务器。其中,触屏输入设备还可以将每个时间戳下采集的电子笔的多个维度的数据作为一行数据,写入到预先建立的表格(如CSV表格)中,作为对应的电子签名的时间序列数据表(如表1所示),并将整个电子签名的时间序列数据表发送至对应的服务器。For example, a user writes an electronic signature on a touch screen input device through an electronic pen to trigger the electronic signature operation; the touch screen input device responds to the electronic signature operation and collects data of multiple dimensions of the electronic pen under different time stamps in chronological order , As the time series data of the corresponding electronic signature, and send the time series data of the electronic signature to the corresponding server. Among them, the touch screen input device can also take the data of multiple dimensions of the electronic pen collected under each time stamp as a row of data and write it into a pre-established form (such as a CSV form) as the time sequence of the corresponding electronic signature Data table (as shown in Table 1), and send the entire electronic signature time series data table to the corresponding server.
IDID XX YY ForceForce AltitudeAltitude AzimuthAzimuth TimestampTimestamp
S0-0S0-0 212.9297212.9297 218.7813218.7813 0.4244790.424479 1.108151.10815 0.5089110.508911 311881.499311881.499
S0-1S0-1 212.8477212.8477 218.7813218.7813 0.3370490.337049 1.108151.10815 0.5089110.508911 311881.507311881.507
S0-2S0-2 212.4375212.4375 218.7813218.7813 0.2098960.209896 1.108151.10815 0.5089110.508911 311881.512311881.512
S0-3S0-3 212.1094212.1094 218.7813218.7813 0.2484170.248417 1.108151.10815 0.5089110.508911 311881.515311881.515
S0-4S0-4 211.7813211.7813 218.8594218.8594 0.3126180.312618 1.108151.10815 0.5089110.508911 311881.520311881.520
S0-5S0-5 211.6172211.6172 219.0313219.0313 0.3271370.327137 1.108151.10815 0.5089110.508911 311881.524311881.524
S0-6S0-6 211.4531211.4531 219.3594219.3594 0.3371370.337137 1.108151.10815 0.5089110.508911 311881.528311881.528
S0-7S0-7 211.3711211.3711 219.5938219.5938 0.339040.33904 1.108151.10815 0.5089110.508911 311881.532311881.532
S0-8S0-8 211.3711211.3711 219.9219219.9219 0.3417440.341744 1.108151.10815 0.5089110.508911 311881.537311881.537
S0-9S0-9 211.3711211.3711 220.4219220.4219 0.3469290.346929 1.108151.10815 0.5089110.508911 311881.540311881.540
表1Table 1
其中,ID表示每一行时间序列数据对应的编号,X表示电子笔的笔头在触屏输入设备上的横坐标,Y表示电子笔的笔头在触屏输入设备上的纵坐标,Force表示电子笔对触屏输入设备的压力值,Altitude表示电子笔的高度与触屏输入设备表面之间的弧度,Azimuth表示电子笔在触屏输入设备表面的投影线与触屏输入设备表面水平线之间的弧度,Timestamp表示时间戳。需要说明的是,由于触屏输入设备的系统原因,不同时间戳之间的间隔不一样,大致范围在0.005到0.013之间。Among them, ID represents the number corresponding to each row of time series data, X represents the abscissa of the pen tip of the electronic pen on the touch screen input device, Y represents the ordinate of the pen tip of the electronic pen on the touch screen input device, and Force represents the electronic pen pair The pressure value of the touch screen input device, Altitude represents the arc between the height of the electronic pen and the surface of the touch screen input device, and Azimuth represents the arc between the projection line of the electronic pen on the surface of the touch screen input device and the horizontal line of the touch screen input device. Timestamp stands for timestamp. It should be noted that due to the system of the touch screen input device, the interval between different timestamps is different, and the approximate range is between 0.005 and 0.013.
进一步地,服务器还可以接收触屏输入设备的电子签名验证请求,对电子签名验证请求进行解析,得到电子签名的时间序列数据和该电子签名对应的签名标识;例如,触屏输入设备响应当前的电子签名操作,获取电子签名的时间序列数据,根据电子签名的时间序列数据,生成电子签名验证请求,并将电子签名验证请求发送至对应的服务器,以请求服务器对该电子签名进行验证。Further, the server can also receive the electronic signature verification request of the touch screen input device, analyze the electronic signature verification request, and obtain the time series data of the electronic signature and the signature identification corresponding to the electronic signature; for example, the touch screen input device responds to the current The electronic signature operation obtains the time series data of the electronic signature, generates an electronic signature verification request according to the time series data of the electronic signature, and sends the electronic signature verification request to the corresponding server to request the server to verify the electronic signature.
步骤S202,获取签名标识的认证电子签名的时间序列数据。Step S202: Obtain the time series data of the authenticated electronic signature identified by the signature.
在本步骤中,认证电子签名是指在实名认证环节中,用户通过电子笔在触屏输入设备上写下的名字。认证电子签名的时间序列数据,同样是指按照时间顺序,在不同时间戳下采集到的电子笔的多个维度的数据,比如不同时间戳下,电子笔的笔头在触屏输入设备上的位置坐标、电子笔对触屏输入设备的压力值等等。In this step, the authenticated electronic signature refers to the name written by the user on the touch screen input device through the electronic pen in the real-name authentication link. The time-series data for authenticating electronic signatures also refers to the data of multiple dimensions of the electronic pen collected under different timestamps in chronological order, such as the position of the pen tip of the electronic pen on the touch screen input device under different timestamps Coordinates, the pressure value of the electronic pen on the touch screen input device, etc.
具体实现中,服务器根据签名标识查询存储有多个签名标识对应的认证电子签名的时间序列数据的本地数据库,从本地数据库中获取与该签名标识对应的认证电子签名的时间序列数据,便于后续根据电子签名的时间序列数据和认证电子签名的时间序列数据,对电子签名进行精准识别,从而提高了电子签名的验证准确率。In specific implementation, the server queries the local database storing the time series data of the certified electronic signatures corresponding to multiple signatures according to the signature identification, and obtains the time series data of the certified electronic signatures corresponding to the signature identification from the local database, so as to facilitate the follow-up according to The time series data of the electronic signature and the time series data of the authentication electronic signature can accurately identify the electronic signature, thereby improving the verification accuracy of the electronic signature.
进一步地,在根据签名标识查询存储有多个签名标识对应的认证电子签名的时间序列数据的本地数据库之前,服务器预先基于大数据技术,采集多个触屏输入设备上的认证电子签名的时间序列数据,从而得到多个认证电子签名的时间序列数据;将多个认证电子签名的时间序列数据,按照认证电子签名的签名标识分类存储至本地数据库中,以通过本地数据库存储多个签名标识的认证电子签名的时间序列数据;这样,有利于后续查询本地数据库,得到签名标识的认证电子签名的时间序列数据。Further, before querying the local database storing the time series data of the certified electronic signatures corresponding to the multiple signature identities according to the signature identification, the server collects the time series of the certified electronic signatures on the multiple touch screen input devices based on the big data technology in advance. Data, so as to obtain the time series data of multiple certified electronic signatures; store the time series data of multiple certified electronic signatures in the local database according to the signature identification classification of the certified electronic signature, so as to store the certification of multiple signature identifications through the local database The time series data of the electronic signature; in this way, it is helpful to query the local database later to obtain the time series data of the certified electronic signature identified by the signature.
在其中一个实施例中,服务器还可以根据签名标识,查询预设的签名标识与认证电子签名的时间序列数据的对应关系,得到与该签名标识对应的认证电子签名的时间序列数据。In one of the embodiments, the server may also query the correspondence between the preset signature identifier and the time-series data of the certified electronic signature based on the signature identifier to obtain the time-series data of the certified electronic signature corresponding to the signature identifier.
步骤S203,根据电子签名的时间序列数据和认证电子签名的时间序列数据,确定电子签名与认证电子签名之间的特征相似度。Step S203: Determine the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature.
其中,电子签名与认证电子签名之间的特征相似度,用于衡量电子签名对应的签名特征与认证电子签名对应的签名特征之间的相似程度;特征相似度越高,表示电子签名与认证电子签名越相似,说明该电子签名是真签名,特征相似度越低,表示电子签名与认证电子签名越不相似,说明该电子签名是伪签名。Among them, the feature similarity between the electronic signature and the certified electronic signature is used to measure the degree of similarity between the signature feature corresponding to the electronic signature and the signature feature corresponding to the certified electronic signature; the higher the feature similarity, the greater the electronic signature and the certified electronic signature. The more similar the signature, it means that the electronic signature is a true signature, and the lower the feature similarity is, the less similar the electronic signature and the certified electronic signature are, indicating that the electronic signature is a fake signature.
具体地,服务器根据电子签名的时间序列数据和认证电子签名的时间序列数据,确定电子签名的特征编码和认证电子签名的特征编码;根据电子签名的特征编码和认证电子签名的特征编码,统计电子签名与认证电子签名之间的特征相似度;这样,有利于后续根据电子签名与认证电子签名之间的特征相似度,确定对电子签名的验证结果,从而实现电子签名的精准验证,进而提高了电子签名的验证准确率。其中,电子签名的特征编码是指经过压缩编码后的用于表示电子签名的低层语义的低维度特征向量,认证电子签名的特征编码也是指经过压缩编码后的用于表示认证电子签名的低层语义的低维度特征向量。Specifically, the server determines the feature code of the electronic signature and the feature code of the certification electronic signature according to the time series data of the electronic signature and the time series data of the certification electronic signature; according to the feature code of the electronic signature and the feature code of the certification electronic signature, count the electronic The feature similarity between the signature and the certified electronic signature; in this way, it is helpful to determine the verification result of the electronic signature according to the feature similarity between the electronic signature and the certified electronic signature, so as to achieve the accurate verification of the electronic signature, thereby improving The verification accuracy rate of the electronic signature. Among them, the feature code of an electronic signature refers to the low-dimensional feature vector used to represent the low-level semantics of the electronic signature after compression encoding, and the feature code of the certified electronic signature also refers to the low-level semantics of the certified electronic signature after compression encoding. The low-dimensional feature vector of.
举例说明,服务器将电子签名的时间序列数据和认证电子签名的时间序列数据输入特征提取网络中,通过特征提取网络提取电子签名的时间序列数据中的时序特征和认证电子签名的时间序列数据中的时序特征,并根据电子签名的时间序列数据中的时序特征和认证电子签名的时间序列数据中的时序特征,确定电子签名的特征编码和认证电子签名的特征编码;统计电子签名的特征编码和认证电子签名的特征编码之间的特征距离,根据特征距离确定电子签名与认证电子签名之间的特征相似度。For example, the server inputs the time series data of the electronic signature and the time series data of the authentication electronic signature into the feature extraction network, and extracts the time series features in the time series data of the electronic signature and the time series data of the authentication electronic signature through the feature extraction network. Time sequence features, and determine the feature code of the electronic signature and the feature code of the authenticated electronic signature according to the time sequence feature in the time series data of the electronic signature and the time sequence feature in the time series data of the certified electronic signature; count the feature code and certification of the electronic signature The feature distance between the feature codes of the electronic signature, and the feature similarity between the electronic signature and the certified electronic signature is determined according to the feature distance.
进一步地,在根据电子签名的时间序列数据和认证电子签名的时间序列数据,确定电子签名与认证电子签名之间的特征相似度之前,服务器还可以获取预设的数据预处理指令,根据预设的数据预处理指令,对电子签名的时间序列数据和认证电子签名的时间序列数据进行预处理,得到预处理后的电子签名的时间序列数据和预处理后的认证电子签名的时间序列数据。这样,通过对电子签名的时间序列数据和认证电子签名的时间序列数据进行预处理,使得后续根据预处理后的电子签名的时间序列数据和预处理后的认证电子签名的时间序列数据,确定出的电子签名与认证电子签名之间的特征相似度更加准确。Further, before determining the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature, the server may also obtain a preset data preprocessing instruction, and according to the preset The data preprocessing instruction of the electronic signature preprocesses the time series data of the electronic signature and the time series data of the certified electronic signature to obtain the preprocessed time series data of the electronic signature and the preprocessed time series data of the certified electronic signature. In this way, by preprocessing the time series data of the electronic signature and the time series data of the authentication electronic signature, the subsequent determination is made based on the time series data of the preprocessed electronic signature and the time series data of the authentication electronic signature after preprocessing. The feature similarity between the electronic signature and the certified electronic signature is more accurate.
举例说明,参考表1,针对电子签名的时间序列数据,服务器计算每一个时间戳对应的横坐标X、纵坐标Y与前一个时间戳对应的横坐标X、纵坐标Y之间的差,得到横坐标的差值dX和纵坐标的差值dY;然后保留每一个时间戳的小数点后两位,比如311881.499就变成了31188149;这样,每个时间戳对应的时间序列数据变成dX、dY、Force、Altitude和Azimuth;然后,合并时间戳相同的时间序列数据,并分别计算dX、dY、Force、Altitude和Azimuth的平均值;这样,每个时间戳对应的时间序列数据变成dX’、dY’、Force’、Altitude’和Azimuth’,如表2所示。需要说明的是,针对认证电子签名的时间序列数据,也是通过上述方式进行预处理,具体本申请不再赘述。For example, referring to Table 1, for the time series data of the electronic signature, the server calculates the difference between the abscissa X and the ordinate Y corresponding to each time stamp and the abscissa X and the ordinate Y corresponding to the previous time stamp to obtain The difference between the abscissa dX and the ordinate dY; then keep the two decimal places of each timestamp, for example, 311881.499 becomes 31188149; in this way, the time series data corresponding to each timestamp becomes dX, dY , Force, Altitude, and Azimuth; then, merge the time series data with the same timestamp, and calculate the average values of dX, dY, Force, Altitude, and Azimuth respectively; in this way, the time series data corresponding to each timestamp becomes dX', dY', Force', Altitude' and Azimuth', as shown in Table 2. It should be noted that the time series data for authenticating electronic signatures is also preprocessed in the above-mentioned manner, and the details are not repeated in this application.
TimestampTimestamp Force’Force’ Altitude’Altitude’ Azimuth’Azimuth’ dX’dX’ dY’dY’
3118814931188149 0.4244790.424479 1.108151.10815 0.5089110.508911 00 00
3118815031188150 0.3370490.337049 1.108151.10815 0.5089110.508911 -0.08203-0.08203 00
3118815131188151 0.2291560.229156 1.108151.10815 0.5089110.508911 -0.36914-0.36914 00
3118815231188152 0.325630.32563 1.108151.10815 0.5089110.508911 -0.21875-0.21875 0.1927080.192708
3118815331188153 0.3403920.340392 1.108151.10815 0.5089110.508911 -0.04102-0.04102 0.281250.28125
3118815431188154 0.3517540.351754 1.108151.10815 0.5089110.508911 00 0.4114580.411458
3118815531188155 0.3564070.356407 1.108151.10815 0.5089110.508911 0.2460940.246094 0.3671880.367188
3118815631188156 0.3633950.363395 1.108151.10815 0.5089110.508911 0.3691410.369141 0.2421880.242188
3118815731188157 0.3903250.390325 1.108151.10815 0.5089110.508911 0.3281250.328125 0.1093750.109375
3118815831188158 0.4476720.447672 1.108151.10815 0.5089110.508911 0.2050780.205078 00
表2Table 2
步骤S204,根据电子签名与认证电子签名之间的特征相似度,确定对电子签名的验证结果。Step S204: Determine the verification result of the electronic signature according to the feature similarity between the electronic signature and the certified electronic signature.
其中,电子签名的验证结果是指电子签名验证通过,或者电子签名验证不通过。Among them, the verification result of the electronic signature means that the electronic signature verification passes or the electronic signature verification fails.
具体地,服务器将电子签名与认证电子签名之间的特征相似度和预设相似度进行比较,得到比较结果;根据比较结果,确定电子签名与认证电子签名是否属于同一用户的真签名,进而得到对电子签名的验证结果。例如,若电子签名与认证电子签名属于同一用户的真签名,说明电子签名验证通过;若电子签名与认证电子签名不属于同一用户的真签名,说明电子签名验证不通过。这样,通过电子签名与认证电子签名之间的特征相似度,确定对电子签名的验证结果,有利于实现电子签名的精准验证,避免了仅仅考虑电子签名的静态信息,导致电子签名的验证准确率较低的缺陷,进一步提高了电子签名的验证准确率。Specifically, the server compares the feature similarity between the electronic signature and the certified electronic signature with the preset similarity to obtain a comparison result; according to the comparison result, it determines whether the electronic signature and the certified electronic signature belong to the same user's true signature, and then obtains The verification result of the electronic signature. For example, if the electronic signature and the certified electronic signature belong to the true signature of the same user, the electronic signature verification passed; if the electronic signature and the certified electronic signature do not belong to the true signature of the same user, the electronic signature verification failed. In this way, through the feature similarity between the electronic signature and the certified electronic signature, the verification result of the electronic signature is determined, which is conducive to the accurate verification of the electronic signature, and avoids only considering the static information of the electronic signature, resulting in the verification accuracy of the electronic signature Lower defects further improve the verification accuracy of electronic signatures.
上述电子签名的验证方法中,通过触屏输入设备上的同一签名标识的电子签名的时间序列数据和认证电子签名的时间序列数据,确定电子签名与认证电子签名之间的特征相似度;进而根据电子签名与认证电子签名之间的特征相似度,确定对电子签名的验证结果;实现了根据电子签名的时间序列数据和认证电子签名的时间序列数据,实时确定对电子签名的验证结果的目的,综合考虑电子签名的时间序列数据和认证电子签名的时间序列数据,有利于获取电子签名在时间维度上的动态信息,从而使得电子签名的验证更加准确,避免了仅仅考虑电子签名的静态信息,导致电子签名的验证准确率较低的缺陷,进一步提高了电子签名的验证准确率。同时,通过电子签名与认证电子签名之间的特征相似度,确定对电子签名的验证结果,有利于实现电子签名的精准验证,从而提高了电子签名的验证准确率。本申请方案可以应用在智慧安防如安全监控等场景中,从而推动智慧城市的建设。In the verification method of the above electronic signature, the time series data of the electronic signature identified by the same signature on the touch screen input device and the time series data of the certified electronic signature are used to determine the feature similarity between the electronic signature and the certified electronic signature; The feature similarity between the electronic signature and the certified electronic signature determines the verification result of the electronic signature; realizes the purpose of determining the verification result of the electronic signature in real time based on the time series data of the electronic signature and the time series data of the certified electronic signature. Comprehensive consideration of the time series data of the electronic signature and the time series data of the authentication electronic signature is conducive to obtaining the dynamic information of the electronic signature in the time dimension, thus making the verification of the electronic signature more accurate, avoiding only considering the static information of the electronic signature, resulting in The shortcoming of low verification accuracy of electronic signatures further improves the verification accuracy of electronic signatures. At the same time, through the feature similarity between the electronic signature and the certified electronic signature, the verification result of the electronic signature is determined, which is conducive to the accurate verification of the electronic signature, thereby improving the verification accuracy of the electronic signature. The proposed solution can be applied to scenarios such as smart security, such as security monitoring, so as to promote the construction of smart cities.
在其中一个实施例中,如图4所示,上述步骤S203,根据电子签名的时间序列数据和认证电子签名的时间序列数据,确定电子签名与认证电子签名之间的特征相似度,具体包括如下步骤:In one of the embodiments, as shown in FIG. 4, the above step S203, according to the time series data of the electronic signature and the time series data of the certified electronic signature, determine the feature similarity between the electronic signature and the certified electronic signature, which specifically includes the following step:
步骤S401,根据电子签名的时间序列数据和认证电子签名的时间序列数据,确定电子签名的特征编码和认证电子签名的特征编码。Step S401: According to the time series data of the electronic signature and the time series data of the authentication electronic signature, the characteristic code of the electronic signature and the characteristic code of the authentication electronic signature are determined.
具体地,服务器提取电子签名的时间序列数据中的时序特征和认证电子签名的时间序列数据中的时序特征,并根据电子签名的时间序列数据中的时序特征和认证电子签名的时间序列数据中的时序特征,确定电子签名的特征编码和认证电子签名的特征编码,Specifically, the server extracts the time series characteristics in the time series data of the electronic signature and the time series characteristics in the time series data of the authentication electronic signature, and according to the time series characteristics in the time series data of the electronic signature and the time series data in the time series data of the authentication electronic signature Time sequence feature, determine the feature code of the electronic signature and the feature code of the authenticated electronic signature,
步骤S402,确定电子签名的特征编码与认证电子签名的特征编码之间的特征距离。Step S402: Determine the characteristic distance between the characteristic code of the electronic signature and the characteristic code of the authenticated electronic signature.
其中,电子签名的特征编码与认证电子签名的特征编码之间的特征距离,是指电子签名的特征编码与认证电子签名的特征编码之间的欧式距离,用于衡量电子签名与认证电子签名之间的特征相似度;特征距离越大,表示电子签名与认证电子签名之间的特征相似度越大;特征距离越小,表示电子签名与认证电子签名之间的特征相似度越小。Among them, the feature distance between the feature code of the electronic signature and the feature code of the certified electronic signature refers to the Euclidean distance between the feature code of the electronic signature and the feature code of the certified electronic signature, which is used to measure the difference between the electronic signature and the certified electronic signature. The feature similarity between the two; the larger the feature distance, the greater the feature similarity between the electronic signature and the certified electronic signature; the smaller the feature distance, the smaller the feature similarity between the electronic signature and the certified electronic signature.
具体地,服务器利用欧氏距离算法,计算电子签名的特征编码与认证电子签名的特征编码之间的欧式距离,作为电子签名的特征编码与认证电子签名的特征编码之间的特征距离。Specifically, the server uses the Euclidean distance algorithm to calculate the Euclidean distance between the feature code of the electronic signature and the feature code of the authentication electronic signature as the feature distance between the feature code of the electronic signature and the feature code of the authentication electronic signature.
举例说明,若电子签名的特征编码为X(x 1,x 2,x 3…x n),认证电子签名的特征编码为Y(y 1,y 2,y 3…y n),那么电子签名的特征编码与认证电子签名的特征编码之间的特征距离为: For example, if the feature code of the electronic signature is X(x 1 , x 2 , x 3 …x n ), and the feature code of the certified electronic signature is Y(y 1 , y 2 , y 3 …y n ), then the electronic signature The feature distance between the feature code of and the feature code of the certified electronic signature is:
Figure PCTCN2020106071-appb-000001
Figure PCTCN2020106071-appb-000001
步骤S403,将特征距离进行映射处理,得到映射处理后的特征距离,作为电子签名与认证电子签名之间的特征相似度。In step S403, the feature distance is subjected to a mapping process, and the feature distance after the mapping process is obtained as the feature similarity between the electronic signature and the authenticated electronic signature.
具体地,服务器将特征距离映射到属于[0,1]的数值,并将该数值作为电子签名与认证电子签名之间的特征相似度。Specifically, the server maps the characteristic distance to a value belonging to [0, 1], and uses the value as the characteristic similarity between the electronic signature and the authenticated electronic signature.
举例说明,服务器利用sigmoid函数对特征距离进行映射处理,比如将特征距离作为sigmoid函数的输入,通过sigmoid函数输出映射处理后的特征距离,作为电子签名与认证电子签名之间的特征相似度。For example, the server uses the sigmoid function to map the feature distance. For example, the feature distance is used as the input of the sigmoid function, and the feature distance after the mapping process is output through the sigmoid function as the feature similarity between the electronic signature and the authenticated electronic signature.
进一步地,服务器还可以根据预设的特征距离与特征相似度的对应关系,确定与得到的特征距离对应的特征相似度,作为电子签名与认证电子签名之间的特征相似度。Further, the server may also determine the feature similarity corresponding to the obtained feature distance according to the preset correspondence between the feature distance and the feature similarity, as the feature similarity between the electronic signature and the authenticated electronic signature.
在本实施例中,综合考虑电子签名的时间序列数据和认证电子签名的时间序列数据,有利于获取电子签名和认证电子签名在时间维度上的动态信息,从而使得确定出的电子签名与认证电子签名之间的特征相似度更加准确,进而使得电子签名的验证更加准确,避免了仅仅考虑电子签名的静态信息,导致电子签名的验证准确率较低的缺陷。In this embodiment, comprehensively considering the time series data of the electronic signature and the time series data of the authentication electronic signature, it is beneficial to obtain the dynamic information of the electronic signature and the authentication electronic signature in the time dimension, so that the determined electronic signature and the authentication electronic The feature similarity between the signatures is more accurate, which in turn makes the verification of the electronic signature more accurate, avoiding the defect that only the static information of the electronic signature is considered, which leads to the low accuracy of the verification of the electronic signature.
在其中一个实施例中,上述步骤S401,根据电子签名的时间序列数据和认证电子签名的时间序列数据,确定电子签名的特征编码和认证电子签名的特征编码,具体包括:分别将电子签名的时间序列数据和认证电子签名的时间序列数据进行批量标准化处理,得到电子签名的标准时间序列数据和认证电子签名的标准时间序列数据;分别提取电子签名的标准时间序列数据中的时序特征和认证电子签名的标准时间序列数据中的时序特征;根据电子签名的标准时间序列数据中的时序特征和认证电子签名的标准时间序列数据中的时 序特征,确定电子签名的特征编码和认证电子签名的特征编码。In one of the embodiments, the above step S401, according to the time series data of the electronic signature and the time series data of the authentication electronic signature, determine the characteristic code of the electronic signature and the characteristic code of the authentication electronic signature, which specifically includes: Serial data and certified electronic signature time series data undergo batch standardization processing to obtain electronic signature standard time series data and certified electronic signature standard time series data; extract the time series features and certified electronic signatures of electronic signature standard time series data respectively According to the time series characteristics in the standard time series data of the electronic signature and the time series characteristics in the standard time series data of the certified electronic signature, the signature code of the electronic signature and the signature code of the certified electronic signature are determined.
其中,电子签名的标准时间序列数据和认证电子签名的时间序列数据均是指数据分布呈正态分布的时间序列数据;时序特征是指电子签名在时间维度上的特征。Among them, the standard time series data of the electronic signature and the time series data of the certified electronic signature both refer to the time series data whose data distribution is normally distributed; the time series characteristics refer to the characteristics of the electronic signature in the time dimension.
具体地,服务器分别对电子签名的时间序列数据和认证电子签名的时间序列数据进行批量标准化处理,得到数据分布呈正态分布的电子签名的时间序列数据和数据分布呈正态分布的认证电子签名的时间序列数据,对应作为电子签名的标准时间序列数据和认证电子签名的标准时间序列数据;分别将电子签名的时间序列数据和认证电子签名的时间序列数据输入特征提取网络中,通过特征提取网络提取电子签名的时间序列数据中的时序特征和认证电子签名的时间序列数据中的时序特征;分别对电子签名的时间序列数据中的时序特征和认证电子签名的时间序列数据中的时序特征进行特征编码处理,得到电子签名的特征编码和认证电子签名的特征编码。Specifically, the server performs batch standardization processing on the time series data of the electronic signature and the time series data of the certified electronic signature respectively, and obtains the time series data of the electronic signature whose data distribution is a normal distribution and the certified electronic signature whose data distribution is a normal distribution. The time series data corresponding to the standard time series data of the electronic signature and the standard time series data of the certified electronic signature; respectively input the time series data of the electronic signature and the time series data of the certified electronic signature into the feature extraction network, and pass the feature extraction network Extract the time series features in the time series data of the electronic signature and the time series features in the time series data of the authenticated electronic signature; respectively characterize the time series features in the time series data of the electronic signature and the time series data of the authenticated electronic signature The encoding process obtains the feature code of the electronic signature and the feature code of the authenticated electronic signature.
在本实施例中,根据电子签名的时间序列数据和认证电子签名的时间序列数据,确定电子签名的特征编码和认证电子签名的特征编码,有利于后续根据电子签名与认证电子签名之间的特征相似度,确定对电子签名的验证结果,从而实现电子签名的精准验证,进而提高了电子签名的验证准确率。In this embodiment, according to the time series data of the electronic signature and the time series data of the authentication electronic signature, the characteristic code of the electronic signature and the characteristic code of the authentication electronic signature are determined, which is beneficial to follow-up according to the characteristics between the electronic signature and the authentication electronic signature. The similarity determines the verification result of the electronic signature, so as to realize the accurate verification of the electronic signature, thereby improving the verification accuracy of the electronic signature.
在其中一个实施例中,上述步骤S203,根据电子签名的时间序列数据和认证电子签名的时间序列数据,确定电子签名与认证电子签名之间的特征相似度,还包括:分别将电子签名的时间序列数据和认证电子签名的时间序列数据输入预先训练的签名验证模型,得到电子签名与认证电子签名之间的特征相似度;预先训练的签名验证模型用于根据电子签名的时间序列数据和认证电子签名的时间序列数据,确定电子签名的特征编码和认证电子签名的特征编码;确定电子签名的特征编码与认证电子签名的特征编码之间的特征距离;将特征距离进行映射处理,得到映射处理后的特征距离,作为电子签名与认证电子签名之间的特征相似度。In one of the embodiments, the above step S203, determining the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature, further includes: The sequence data and the time-series data of the certified electronic signature are input into the pre-trained signature verification model to obtain the feature similarity between the electronic signature and the certified electronic signature; the pre-trained signature verification model is used according to the time-series data of the electronic signature and the certified electronic signature. Signature time series data, determine the feature code of the electronic signature and the feature code of the certified electronic signature; determine the feature distance between the feature code of the electronic signature and the feature code of the certified electronic signature; map the feature distance to obtain the mapping process The feature distance of is used as the feature similarity between the electronic signature and the certified electronic signature.
其中,预先训练的签名验证模型是指能够验证两个电子签名是否属于同一个用户的真签名的神经网络模型,比如孪生深度网络模型,具体包括BN(Batch Normalization,批量标准化)层、双层双向LSTM(Long Short-Term Memory,长短期记忆网络)层、特征编码层、特征对比层、逻辑回归层。Among them, the pre-trained signature verification model refers to a neural network model that can verify whether two electronic signatures belong to the true signature of the same user. LSTM (Long Short-Term Memory) layer, feature coding layer, feature comparison layer, logistic regression layer.
具体地,参考图5,服务器分别将电子签名的时间序列数据和认证电子签名的时间序列数据输入孪生深度网络模型中的BN层,分别通过BN层对输入的电子签名的时间序列数据和认证电子签名的时间序列数据进行批量标准化处理,输出数据分布呈正态分布的电子签名的时间序列数据,作为电子签名的标准时间序列数据,以及输出数据分布呈正态分布的认证电子签名的时间序列数据,作为认证电子签名的标准时间序列数据;分别将电子签名的标准时间序列数据和认证电子签名的标准时间序列数据输入对应的双层双向LSTM层,通过双层双向LSTM层提取电子签名的时间序列数据中的时序特征和认证电子签名的时间序列数据中的时序特征,并分别将电子签名的时间序列数据中的时序特征和认证电子 签名的时间序列数据中的时序特征输入对应的特征编码层;通过特征编码层对输入的电子签名的时间序列数据中的时序特征和认证电子签名的时间序列数据中的时序特征进行特征编码处理,得到一个多维度(比如64维)的电子签名的特征编码和一个多维度(比如64维)的认证电子签名的特征编码,并将电子签名的特征编码和认证电子签名的特征编码均输入到特征对比层;通过特征对比层计算电子签名的特征编码与认证电子签名的特征编码之间的欧式距离,作为电子签名的特征编码与认证电子签名的特征编码之间的特征距离,并将该特征距离输入到逻辑回归层;通过逻辑回归层基于sigmoid函数,将特征距离映射到属于[0,1]的数值,作为电子签名与认证电子签名之间的特征相似度,并输出电子签名与认证电子签名之间的特征相似度。Specifically, referring to Figure 5, the server inputs the time series data of the electronic signature and the time series data of the authentication electronic signature into the BN layer in the twin deep network model, and the input time series data of the electronic signature and the authentication electronic The signed time series data is processed for batch standardization, and the output data distribution is normally distributed electronic signature time series data, as the standard time series data of electronic signature, and the output data distribution is normal distribution certified electronic signature time series data , As the standard time series data for authenticating electronic signatures; respectively input the standard time series data for electronic signatures and the standard time series data for authenticating electronic signatures into the corresponding double-layer two-way LSTM layer, and extract the time series of electronic signatures through the double-layer two-way LSTM layer The time series characteristics in the data and the time series characteristics in the time series data of the authentication electronic signature, and the time series characteristics in the time series data of the electronic signature and the time series characteristics in the time series data of the authentication electronic signature are respectively input into the corresponding feature encoding layer; The feature encoding layer performs feature encoding processing on the timing features in the time series data of the input electronic signature and the timing features in the time series data for authenticating the electronic signature to obtain a multi-dimensional (such as 64-dimensional) electronic signature feature encoding and A multi-dimensional (such as 64-dimensional) authentication electronic signature feature code, and input the feature code of the electronic signature and the feature code of the authentication electronic signature to the feature comparison layer; calculate the feature code of the electronic signature and the authentication electronic through the feature comparison layer The Euclidean distance between the feature codes of the signature is used as the feature distance between the feature code of the electronic signature and the feature code of the certified electronic signature, and the feature distance is input to the logistic regression layer; the logistic regression layer is based on the sigmoid function, and the feature The distance is mapped to a value belonging to [0,1] as the feature similarity between the electronic signature and the certified electronic signature, and the feature similarity between the electronic signature and the certified electronic signature is output.
在本实施例中,通过预先训练的签名验证模型,并结合电子签名的时间序列数据和认证电子签名的时间序列数据,有利于提高得到的电子签名与认证电子签名之间的特征相似度的准确率,使得后续的电子签名的验证更加准确,进一步提高了电子签名的验证准确率。In this embodiment, through the pre-trained signature verification model, combined with the time series data of the electronic signature and the time series data of the certified electronic signature, it is beneficial to improve the accuracy of the feature similarity between the obtained electronic signature and the certified electronic signature. Therefore, the subsequent electronic signature verification is more accurate, and the verification accuracy rate of the electronic signature is further improved.
在其中一个实施例中,预先训练的签名验证模型通过下述方式训练得到:采集同一个签名标识的两个样本电子签名的时间序列数据和两个样本电子签名的实际特征相似度;将同一个签名标识的两个样本电子签名的样本时间序列数据输入待训练的签名验证模型,得到两个样本电子签名的特征相似度;统计两个样本电子签名的特征相似度与对应的实际特征相似度之间的误差;当误差大于或等于预设阈值时,根据误差调整待训练的签名验证模型的网络参数,得到调整后的签名验证模型,并对调整后的签名验证模型进行反复训练,直至根据训练后的签名验证模型得到的误差小于预设阈值。In one of the embodiments, the pre-trained signature verification model is obtained by training in the following way: collecting the time series data of two sample electronic signatures of the same signature and the actual feature similarity of the two sample electronic signatures; The sample time series data of the two sample electronic signatures identified by the signature are input into the signature verification model to be trained, and the feature similarity of the two sample electronic signatures is obtained; the feature similarity of the two sample electronic signatures and the corresponding actual feature similarity are calculated When the error is greater than or equal to the preset threshold, the network parameters of the signature verification model to be trained are adjusted according to the error to obtain the adjusted signature verification model, and the adjusted signature verification model is repeatedly trained until it is trained according to the The error obtained by the subsequent signature verification model is less than the preset threshold.
其中,两个样本电子签名的特征相似度与对应的实际特征相似度之间的误差,用于衡量通过待训练的签名验证模型输出的两个样本电子签名的特征相似度与对应的实际特征相似度之间的偏差程度。Among them, the error between the feature similarity of the two sample electronic signatures and the corresponding actual feature similarity is used to measure that the feature similarity of the two sample electronic signatures output by the signature verification model to be trained is similar to the corresponding actual feature The degree of deviation between degrees.
具体地,服务器基于大数据技术,采集多个同一签名标识对应的两个样本电子签名的时间序列数据和两个样本电子签名的实际特征相似度,并根据多个同一签名标识对应的两个样本电子签名的时间序列数据对待训练的签名验证模型进行训练,得到训练后的签名验证模型,统计训练后的签名验证模型输出的两个样本电子签名的特征相似度与对应的实际特征相似度之间的误差;在误差大于或等于预设阈值的情况下,不断调整签名验证模型中的网络参数,并对签名验证模型进行反复训练,直至根据训练后的签名验证模型得到的误差小于预设阈值,将当前的签名验证模型作为预先训练的签名验证模型。Specifically, based on big data technology, the server collects the time series data of two sample electronic signatures corresponding to multiple identical signatures and the actual feature similarity of the two sample electronic signatures, and identifies the two samples corresponding to multiple identical signatures The time series data of electronic signatures are trained on the signature verification model to be trained, and the trained signature verification model is obtained, and the feature similarity of the two sample electronic signatures output by the trained signature verification model is calculated between the feature similarity of the two samples and the corresponding actual feature similarity. When the error is greater than or equal to the preset threshold, the network parameters in the signature verification model are continuously adjusted, and the signature verification model is repeatedly trained until the error obtained according to the trained signature verification model is less than the preset threshold. The current signature verification model is used as a pre-trained signature verification model.
在本实施例中,服务器通过同一个签名标识的两个样本电子签名的时间序列数据对签名验证模型进行反复训练,可以提高签名验证模型输出的电子签名与认证电子签名之间的特征相似度的准确率,进一步提高了电子签名的验证准确率。In this embodiment, the server repeatedly trains the signature verification model through the time series data of two sample electronic signatures identified by the same signature, which can improve the feature similarity between the electronic signature output by the signature verification model and the certified electronic signature. The accuracy rate further improves the verification accuracy rate of the electronic signature.
在其中一个实施例中,上述步骤S204,根据电子签名与认证电子签名之间的特征相似度,确定对电子签名的验证结果,包括:若电子签名与认证电子签名之间的特征相似度大于或者等于预设相似度,则确认电子签名验证通过;若电子签名与认证电子签名之间的 特征相似度小于预设相似度,则确认电子签名验证不通过。In one of the embodiments, the above step S204, determining the verification result of the electronic signature according to the feature similarity between the electronic signature and the certified electronic signature, includes: if the feature similarity between the electronic signature and the certified electronic signature is greater than or If it is equal to the preset similarity, it is confirmed that the electronic signature verification is passed; if the feature similarity between the electronic signature and the certified electronic signature is less than the preset similarity, it is confirmed that the electronic signature verification fails.
举例说明,若电子签名与认证电子签名之间的特征相似度大于或者等于0.7,说明电子签名与认证电子签名属于同一用户的真签名,则确认电子签名验证通过;若电子签名与认证电子签名之间的特征相似度小于0.7,说明电子签名与认证电子签名不属于同一用户的真签名,则确认电子签名验证不通过。For example, if the feature similarity between the electronic signature and the certified electronic signature is greater than or equal to 0.7, it means that the electronic signature and the certified electronic signature belong to the same user's true signature, and the electronic signature verification is confirmed; if the electronic signature and the certified electronic signature are both The feature similarity between the two is less than 0.7, indicating that the electronic signature and the certified electronic signature do not belong to the true signature of the same user, and the verification of the electronic signature is confirmed to fail.
在本实施例中,通过电子签名与认证电子签名之间的特征相似度,确定对电子签名的验证结果,有利于实现电子签名的精准验证,避免了仅仅考虑电子签名的静态信息,导致电子签名的验证准确率较低的缺陷,进一步提高了电子签名的验证准确率;同时,通过对电子签名进行验证,有利于提高电子签名过程的安全性。In this embodiment, the verification result of the electronic signature is determined based on the feature similarity between the electronic signature and the certified electronic signature, which is conducive to the accurate verification of the electronic signature, and avoids only considering the static information of the electronic signature, which leads to the electronic signature. The shortcomings of low verification accuracy rate further improve the verification accuracy rate of the electronic signature; at the same time, by verifying the electronic signature, it is beneficial to improve the security of the electronic signature process.
在其中一个实施例中,在若电子签名与认证电子签名之间的特征相似度大于或者等于预设相似度,则确认电子签名验证通过之后,还包括:生成电子签名验证通过消息;将电子签名验证通过消息发送至触屏输入设备。In one of the embodiments, if the feature similarity between the electronic signature and the certified electronic signature is greater than or equal to the preset similarity, after confirming that the electronic signature verification is passed, the method further includes: generating an electronic signature verification passed message; The verification is sent to the touch screen input device via a message.
具体地,在确认电子签名验证通过之后,服务器根据预设的消息模板,生成电子签名验证通过消息,并将电子签名验证通过消息发送至对应的触屏输入设备,通过触屏输入设备的签名界面显示电子签名验证通过消息,以提醒用户签名成功,无需重复签名。Specifically, after confirming that the electronic signature verification is passed, the server generates an electronic signature verification passed message according to the preset message template, and sends the electronic signature verification passed message to the corresponding touch screen input device, and then the signature interface of the touch screen input device Display the electronic signature verification passed message to remind the user that the signature is successful without repeating the signature.
在另一个实施例中,在若电子签名与认证电子签名之间的特征相似度小于预设相似度,则确认电子签名验证不通过之后,还包括:生成电子签名验证失败消息,并将电子签名验证失败消息发送至触屏输入设备,通过触屏输入设备的签名界面显示电子签名验证失败消息,以提醒用户签名成功;这个时候,用户可以重新输入签名。In another embodiment, if the feature similarity between the electronic signature and the certified electronic signature is less than the preset similarity, after confirming that the electronic signature verification fails, the method further includes: generating an electronic signature verification failure message, and adding the electronic signature The verification failure message is sent to the touch screen input device, and the electronic signature verification failure message is displayed through the signature interface of the touch screen input device to remind the user that the signature is successful; at this time, the user can re-enter the signature.
在其中一个实施例中,如图6所示,提供了另一种电子签名的验证方法,以该方法应用于图1中的服务器为例进行说明,包括以下步骤:In one of the embodiments, as shown in FIG. 6, another method for verifying an electronic signature is provided. Taking the method applied to the server in FIG. 1 as an example for description, the method includes the following steps:
步骤S601,采集触屏输入设备上的电子签名的时间序列数据;电子签名的时间序列数据中携带有电子签名的签名标识。Step S601: Collect the time series data of the electronic signature on the touch screen input device; the time series data of the electronic signature carries the signature identifier of the electronic signature.
步骤S602,获取签名标识的认证电子签名的时间序列数据。Step S602: Obtain the time series data of the authenticated electronic signature identified by the signature.
步骤S603,分别将电子签名的时间序列数据和认证电子签名的时间序列数据进行批量标准化处理,得到电子签名的标准时间序列数据和认证电子签名的标准时间序列数据。Step S603: Perform batch standardization processing on the time series data of the electronic signature and the time series data of the certified electronic signature, respectively, to obtain the standard time series data of the electronic signature and the standard time series data of the certified electronic signature.
步骤S604,分别提取电子签名的标准时间序列数据中的时序特征和认证电子签名的标准时间序列数据中的时序特征。Step S604, extracting the time series features in the standard time series data of the electronic signature and the time series features in the standard time series data of the authentication electronic signature respectively.
步骤S605,根据电子签名的标准时间序列数据中的时序特征和认证电子签名的标准时间序列数据中的时序特征,确定电子签名的特征编码和认证电子签名的特征编码。Step S605: Determine the feature code of the electronic signature and the feature code of the certification electronic signature according to the time sequence feature in the standard time series data of the electronic signature and the time sequence feature in the standard time series data of the certified electronic signature.
步骤S606,确定电子签名的特征编码与认证电子签名的特征编码之间的特征距离。Step S606: Determine the characteristic distance between the characteristic code of the electronic signature and the characteristic code of the authenticated electronic signature.
步骤S607,将特征距离进行映射处理,得到映射处理后的特征距离,作为电子签名与认证电子签名之间的特征相似度。In step S607, the feature distance is subjected to a mapping process, and the feature distance after the mapping process is obtained as the feature similarity between the electronic signature and the authenticated electronic signature.
步骤S608,若电子签名与认证电子签名之间的特征相似度大于或者等于预设相似度,则确认电子签名验证通过。步骤S609,生成电子签名验证通过消息,将电子签名验证通 过消息上传至区块链中。In step S608, if the feature similarity between the electronic signature and the certified electronic signature is greater than or equal to the preset similarity, it is confirmed that the electronic signature has passed the verification. In step S609, an electronic signature verification passed message is generated, and the electronic signature verification passed message is uploaded to the blockchain.
基于电子签名验证通过消息得到对应的摘要信息,具体来说,摘要信息由电子签名验证通过消息进行散列处理得到,比如利用sha256s算法处理得到。将摘要信息上传至区块链可保证其安全性和对用户的公正透明性。用户设备可以从区块链中下载得该摘要信息,以便查证电子签名验证通过信息是否被篡改。Based on the electronic signature verification, the corresponding digest information is obtained through the message. Specifically, the digest information is obtained by the electronic signature verification through the hash processing of the message, for example, obtained by the sha256s algorithm. Uploading summary information to the blockchain can ensure its security and fairness and transparency to users. The user equipment can download the summary information from the blockchain in order to verify whether the electronic signature verification information has been tampered with.
在其中一个实施例中,可以将电子签名验证通过消息发送至触屏输入设备。In one of the embodiments, the electronic signature verification can be sent to the touch screen input device through a message.
在本实施例中,综合考虑电子签名的时间序列数据和认证电子签名的时间序列数据,有利于获取电子签名在时间维度上的动态信息,从而使得电子签名的验证更加准确,避免了仅仅考虑电子签名的静态信息,导致电子签名的验证准确率较低的缺陷,进一步提高了电子签名的验证准确率。In this embodiment, comprehensive consideration of the time series data of the electronic signature and the time series data of the authentication electronic signature is conducive to obtaining the dynamic information of the electronic signature in the time dimension, thereby making the verification of the electronic signature more accurate and avoiding only considering the electronic signature. The static information of the signature leads to the defect that the verification accuracy rate of the electronic signature is low, and the verification accuracy rate of the electronic signature is further improved.
应该理解的是,虽然图2、4、6的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2、4、6中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowcharts of FIGS. 2, 4, and 6 are displayed in sequence as indicated by the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless specifically stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least part of the steps in Figures 2, 4, and 6 may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. These steps or stages The execution order of is not necessarily performed sequentially, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
在其中一个实施例中,如图7所示,提供了一种电子签名的验证装置,包括:数据采集模块、数据获取模块、相似度确定模块和验证结果确定模块,其中:In one of the embodiments, as shown in FIG. 7, an electronic signature verification device is provided, which includes: a data acquisition module, a data acquisition module, a similarity determination module, and a verification result determination module, wherein:
数据采集模块710,用于采集触屏输入设备上的电子签名的时间序列数据;电子签名的时间序列数据中携带有电子签名的签名标识。The data collection module 710 is used to collect the time series data of the electronic signature on the touch screen input device; the time series data of the electronic signature carries the signature identification of the electronic signature.
数据获取模块720,用于获取签名标识的认证电子签名的时间序列数据。The data acquisition module 720 is configured to acquire the time series data of the authenticated electronic signature of the signature identification.
相似度确定模块730,用于根据电子签名的时间序列数据和认证电子签名的时间序列数据,确定电子签名与认证电子签名之间的特征相似度。The similarity determination module 730 is configured to determine the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature.
验证结果确定模块740,用于根据电子签名与认证电子签名之间的特征相似度,确定对电子签名的验证结果。The verification result determination module 740 is configured to determine the verification result of the electronic signature according to the feature similarity between the electronic signature and the certified electronic signature.
在其中一个实施例中,相似度确定模块730还用于根据电子签名的时间序列数据和认证电子签名的时间序列数据,确定电子签名的特征编码和认证电子签名的特征编码;确定电子签名的特征编码与认证电子签名的特征编码之间的特征距离;将特征距离进行映射处理,得到映射处理后的特征距离,作为电子签名与认证电子签名之间的特征相似度。In one of the embodiments, the similarity determination module 730 is also used to determine the feature code of the electronic signature and the feature code of the certification electronic signature according to the time series data of the electronic signature and the time series data of the certification electronic signature; determine the characteristics of the electronic signature The feature distance between the code and the feature code of the authenticated electronic signature; the feature distance is mapped to obtain the feature distance after the mapping process, which is used as the feature similarity between the electronic signature and the authenticated electronic signature.
在其中一个实施例中,相似度确定模块730还用于分别将电子签名的时间序列数据和认证电子签名的时间序列数据进行批量标准化处理,得到电子签名的标准时间序列数据和认证电子签名的标准时间序列数据;分别提取电子签名的标准时间序列数据中的时序特征和认证电子签名的标准时间序列数据中的时序特征;根据电子签名的标准时间序列数据中 的时序特征和认证电子签名的标准时间序列数据中的时序特征,确定电子签名的特征编码和认证电子签名的特征编码。In one of the embodiments, the similarity determination module 730 is further configured to perform batch standardization processing on the time series data of the electronic signature and the time series data of the authentication electronic signature, respectively, to obtain the standard time series data of the electronic signature and the standard time series of the authentication electronic signature. Time series data; respectively extract the time series features in the standard time series data of the electronic signature and the time series features in the standard time series data of the authentication electronic signature; according to the time series characteristics in the standard time series data of the electronic signature and the standard time of the authentication electronic signature The sequence features in the sequence data determine the feature code of the electronic signature and the feature code of the authenticated electronic signature.
在其中一个实施例中,相似度确定模块730还用于分别将电子签名的时间序列数据和认证电子签名的时间序列数据输入预先训练的签名验证模型,得到电子签名与认证电子签名之间的特征相似度;预先训练的签名验证模型用于根据电子签名的时间序列数据和认证电子签名的时间序列数据,确定电子签名的特征编码和认证电子签名的特征编码;确定电子签名的特征编码与认证电子签名的特征编码之间的特征距离;将特征距离进行映射处理,得到映射处理后的特征距离,作为电子签名与认证电子签名之间的特征相似度。In one of the embodiments, the similarity determination module 730 is also used to separately input the time series data of the electronic signature and the time series data of the authentication electronic signature into the pre-trained signature verification model to obtain the characteristics between the electronic signature and the authentication electronic signature. Similarity; the pre-trained signature verification model is used to determine the feature code of the electronic signature and the feature code of the authentication electronic signature according to the time series data of the electronic signature and the time series data of the authentication electronic signature; determine the feature code of the electronic signature and the authentication electronic The feature distance between the feature codes of the signature; the feature distance is mapped to obtain the feature distance after the mapping process, which is used as the feature similarity between the electronic signature and the authenticated electronic signature.
在其中一个实施例中,电子签名的验证装置还包括模型训练模块,用于采集同一个签名标识的两个样本电子签名的时间序列数据和两个样本电子签名的实际特征相似度;将同一个签名标识的两个样本电子签名的样本时间序列数据输入待训练的签名验证模型,得到两个样本电子签名的特征相似度;统计两个样本电子签名的特征相似度与对应的实际特征相似度之间的误差;当误差大于或等于预设阈值时,根据误差调整待训练的签名验证模型的网络参数,得到调整后的签名验证模型,并对调整后的签名验证模型进行反复训练,直至根据训练后的签名验证模型得到的误差小于预设阈值。In one of the embodiments, the electronic signature verification device further includes a model training module, which is used to collect the time series data of the two sample electronic signatures of the same signature and the actual feature similarity of the two sample electronic signatures; The sample time series data of the two sample electronic signatures identified by the signature are input into the signature verification model to be trained, and the feature similarity of the two sample electronic signatures is obtained; the feature similarity of the two sample electronic signatures and the corresponding actual feature similarity are calculated When the error is greater than or equal to the preset threshold, the network parameters of the signature verification model to be trained are adjusted according to the error to obtain the adjusted signature verification model, and the adjusted signature verification model is repeatedly trained until it is trained according to the The error obtained by the subsequent signature verification model is less than the preset threshold.
在其中一个实施例中,验证结果确定模块740还用于若电子签名与认证电子签名之间的特征相似度大于或者等于预设相似度,则确认电子签名验证通过;若电子签名与认证电子签名之间的特征相似度小于预设相似度,则确认电子签名验证不通过。In one of the embodiments, the verification result determination module 740 is further configured to confirm that the electronic signature verification has passed if the feature similarity between the electronic signature and the certified electronic signature is greater than or equal to the preset similarity; If the feature similarity between the two is less than the preset similarity, it is confirmed that the electronic signature verification fails.
在其中一个实施例中,电子签名的验证装置还包括消息发送模块,用于验证结果确定模块740确认电子签名验证通过之后,生成电子签名验证通过消息;将电子签名验证通过消息发送至触屏输入设备。In one of the embodiments, the electronic signature verification device further includes a message sending module for generating an electronic signature verification pass message after the verification result determination module 740 confirms that the electronic signature verification is passed; sending the electronic signature verification passed message to the touch screen input equipment.
上述各个实施例,通过电子签名的验证装置,实现了根据电子签名的时间序列数据和认证电子签名的时间序列数据,实时确定对电子签名的验证结果的目的,综合考虑电子签名的时间序列数据和认证电子签名的时间序列数据,有利于获取电子签名在时间维度上的动态信息,从而使得电子签名的验证更加准确,避免了仅仅考虑电子签名的静态信息,导致电子签名的验证准确率较低的缺陷,进一步提高了电子签名的验证准确率。In each of the above embodiments, the electronic signature verification device realizes the purpose of determining the verification result of the electronic signature in real time according to the time series data of the electronic signature and the time series data of the authentication electronic signature, and comprehensively considers the time series data and the time series data of the electronic signature. Authenticating the time series data of an electronic signature is conducive to obtaining the dynamic information of the electronic signature in the time dimension, thereby making the verification of the electronic signature more accurate, avoiding only considering the static information of the electronic signature, resulting in a lower verification accuracy rate of the electronic signature The defect further improves the verification accuracy of the electronic signature.
关于电子签名的验证装置的具体限定可以参见上文中对于电子签名的验证方法的限定,在此不再赘述。上述电子签名的验证装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Regarding the specific limitation of the verification device of the electronic signature, please refer to the above limitation of the verification method of the electronic signature, which will not be repeated here. Each module in the above-mentioned electronic signature verification device can be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
在其中一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图8所示。该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性或易失性存储介质、内存储器。该非易失性或易失性存储介质存储有操作系统、 计算机可读指令和数据库。该内存储器为非易失性或易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储电子签名的时间序列数据、认证电子签名的时间序列数据等。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种电子签名的验证方法。In one of the embodiments, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. 8. The computer equipment includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile or volatile storage medium and internal memory. The non-volatile or volatile storage medium stores an operating system, computer readable instructions, and a database. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile or volatile storage medium. The database of the computer equipment is used to store the time series data of the electronic signature, the time series data of the authentication electronic signature, and so on. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer-readable instruction is executed by the processor to realize an electronic signature verification method.
本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 8 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
一种计算机设备,包括存储器和一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被处理器执行时实现本申请任意一个实施例中提供的电子签名的验证方法的步骤。A computer device including a memory and one or more processors, and computer-readable instructions are stored in the memory. When the computer-readable instructions are executed by the processor, the steps of the method for verifying an electronic signature provided in any one of the embodiments of the present application are implemented .
一个或多个存储有计算机可读指令的计算机可读存储介质,所述计算机可读存储介质可以是非易失性,也可以是易失性,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的电子签名的验证方法的步骤。One or more computer-readable storage media storing computer-readable instructions. The computer-readable storage media may be non-volatile or volatile. When the computer-readable instructions are executed by one or more processors , Enabling one or more processors to implement the steps of the electronic signature verification method provided in any embodiment of the present application.
本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。The blockchain referred to in this application is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain, essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information for verification. The validity of the information (anti-counterfeiting) and the generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述计算机可读指令可存储于一计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through computer-readable instructions, which can be stored in a computer-readable storage medium. Here, when the computer-readable instructions are executed, they may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, or optical storage. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM may be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered as the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of the present application, and the description is relatively specific and detailed, but it should not be understood as a limitation on the scope of the invention patent. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can be made, and these all fall within the protection scope of this application. Therefore, the scope of protection of the patent of this application shall be subject to the appended claims.

Claims (20)

  1. 一种电子签名的验证方法,包括:An electronic signature verification method, including:
    采集触屏输入设备上的电子签名的时间序列数据;所述电子签名的时间序列数据中携带有所述电子签名的签名标识;Collecting the time series data of the electronic signature on the touch screen input device; the time series data of the electronic signature carries the signature identification of the electronic signature;
    获取所述签名标识的认证电子签名的时间序列数据;Acquiring the time series data of the authenticated electronic signature of the signature identification;
    根据所述电子签名的时间序列数据和所述认证电子签名的时间序列数据,确定所述电子签名与所述认证电子签名之间的特征相似度;及Determine the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature; and
    根据所述电子签名与所述认证电子签名之间的特征相似度,确定对所述电子签名的验证结果。According to the feature similarity between the electronic signature and the certified electronic signature, the verification result of the electronic signature is determined.
  2. 根据权利要求1所述的方法,其中,所述根据所述电子签名的时间序列数据和所述认证电子签名的时间序列数据,确定所述电子签名与所述认证电子签名之间的特征相似度,包括:The method according to claim 1, wherein said determining the feature similarity between said electronic signature and said certified electronic signature based on the time series data of the electronic signature and the time series data of the certified electronic signature ,include:
    根据所述电子签名的时间序列数据和所述认证电子签名的时间序列数据,确定所述电子签名的特征编码和所述认证电子签名的特征编码;Determining the feature code of the electronic signature and the feature code of the certification electronic signature according to the time series data of the electronic signature and the time series data of the certification electronic signature;
    确定所述电子签名的特征编码与所述认证电子签名的特征编码之间的特征距离;及Determining the characteristic distance between the characteristic code of the electronic signature and the characteristic code of the authentication electronic signature; and
    将所述特征距离进行映射处理,得到映射处理后的特征距离,作为所述电子签名与所述认证电子签名之间的特征相似度。The feature distance is subjected to a mapping process, and the feature distance after the mapping process is obtained as the feature similarity between the electronic signature and the authenticated electronic signature.
  3. 根据权利要求2所述的方法,其中,所述根据所述电子签名的时间序列数据和所述认证电子签名的时间序列数据,确定所述电子签名的特征编码和所述认证电子签名的特征编码,包括:The method according to claim 2, wherein said determining the feature code of the electronic signature and the feature code of the certification electronic signature based on the time series data of the electronic signature and the time series data of the certification electronic signature ,include:
    分别将所述电子签名的时间序列数据和所述认证电子签名的时间序列数据进行批量标准化处理,得到所述电子签名的标准时间序列数据和所述认证电子签名的标准时间序列数据;Performing batch standardization processing on the time series data of the electronic signature and the time series data of the authentication electronic signature respectively to obtain the standard time series data of the electronic signature and the standard time series data of the authentication electronic signature;
    分别提取所述电子签名的标准时间序列数据中的时序特征和所述认证电子签名的标准时间序列数据中的时序特征;及Extracting the time series features in the standard time series data of the electronic signature and the time series features in the standard time series data of the authentication electronic signature respectively; and
    根据所述电子签名的标准时间序列数据中的时序特征和所述认证电子签名的标准时间序列数据中的时序特征,确定所述电子签名的特征编码和所述认证电子签名的特征编码。Determine the feature code of the electronic signature and the feature code of the certified electronic signature according to the time sequence feature in the standard time series data of the electronic signature and the time sequence feature in the standard time series data of the certified electronic signature.
  4. 根据权利要求1所述的方法,其中,所述根据所述电子签名的时间序列数据和所述认证电子签名的时间序列数据,确定所述电子签名与所述认证电子签名之间的特征相似度,还包括:The method according to claim 1, wherein said determining the feature similarity between said electronic signature and said certified electronic signature based on the time series data of the electronic signature and the time series data of the certified electronic signature ,Also includes:
    分别将所述电子签名的时间序列数据和所述认证电子签名的时间序列数据输入预先训练的签名验证模型,得到所述电子签名与所述认证电子签名之间的特征相似度;Respectively input the time series data of the electronic signature and the time series data of the certified electronic signature into a pre-trained signature verification model to obtain the feature similarity between the electronic signature and the certified electronic signature;
    其中,所述预先训练的签名验证模型用于根据所述电子签名的时间序列数据和所述认证电子签名的时间序列数据,确定所述电子签名的特征编码和所述认证电子签名的特征编 码;确定所述电子签名的特征编码与所述认证电子签名的特征编码之间的特征距离;将所述特征距离进行映射处理,得到映射处理后的特征距离,作为所述电子签名与所述认证电子签名之间的特征相似度。Wherein, the pre-trained signature verification model is used to determine the feature code of the electronic signature and the feature code of the certification electronic signature according to the time series data of the electronic signature and the time series data of the certification electronic signature; Determine the feature distance between the feature code of the electronic signature and the feature code of the authentication electronic signature; perform a mapping process on the feature distance to obtain the feature distance after the mapping process, as the electronic signature and the authentication electronic signature The feature similarity between signatures.
  5. 根据权利要求4所述的方法,其中,所述预先训练的签名验证模型通过下述方式训练得到:The method according to claim 4, wherein the pre-trained signature verification model is obtained by training in the following manner:
    采集同一个签名标识的两个样本电子签名的时间序列数据和所述两个样本电子签名的实际特征相似度;Collecting the time series data of the two sample electronic signatures with the same signature and the similarity of the actual features of the two sample electronic signatures;
    将所述同一个签名标识的两个样本电子签名的样本时间序列数据输入待训练的签名验证模型,得到所述两个样本电子签名的特征相似度;Input the sample time series data of the two sample electronic signatures identified by the same signature into the signature verification model to be trained to obtain the feature similarity of the two sample electronic signatures;
    统计所述两个样本电子签名的特征相似度与对应的实际特征相似度之间的误差;及Count the error between the feature similarity of the two sample electronic signatures and the corresponding actual feature similarity; and
    当所述误差大于或等于预设阈值时,根据所述误差调整所述待训练的签名验证模型的网络参数,得到调整后的签名验证模型,并对所述调整后的签名验证模型进行反复训练,直至根据训练后的签名验证模型得到的所述误差小于所述预设阈值。When the error is greater than or equal to a preset threshold, adjust the network parameters of the signature verification model to be trained according to the error to obtain an adjusted signature verification model, and perform repeated training on the adjusted signature verification model , Until the error obtained according to the trained signature verification model is less than the preset threshold.
  6. 根据权利要求1至5任一项所述的方法,其中,所述根据所述电子签名与所述认证电子签名之间的特征相似度,确定对所述电子签名的验证结果,包括:The method according to any one of claims 1 to 5, wherein the determining the verification result of the electronic signature according to the feature similarity between the electronic signature and the certified electronic signature comprises:
    若所述电子签名与所述认证电子签名之间的特征相似度大于或者等于预设相似度,则确认所述电子签名验证通过;及If the feature similarity between the electronic signature and the certified electronic signature is greater than or equal to the preset similarity, confirm that the electronic signature has passed the verification; and
    若所述电子签名与所述认证电子签名之间的特征相似度小于所述预设相似度,则确认所述电子签名验证不通过。If the feature similarity between the electronic signature and the certified electronic signature is less than the preset similarity, it is confirmed that the electronic signature verification fails.
  7. 根据权利要求6所述的方法,其特征在于,在若所述电子签名与所述认证电子签名之间的特征相似度大于或者等于预设相似度,则确认所述电子签名验证通过之后,所述方法还包括:The method according to claim 6, wherein if the feature similarity between the electronic signature and the certified electronic signature is greater than or equal to a preset similarity, then it is confirmed that the electronic signature verification is passed, The method also includes:
    生成电子签名验证通过消息,将所述电子签名验证通过消息上传至区块链中。An electronic signature verification passed message is generated, and the electronic signature verification passed message is uploaded to the blockchain.
  8. 一种电子签名的验证装置,包括:An electronic signature verification device, including:
    数据采集模块,用于采集触屏输入设备上的电子签名的时间序列数据;所述电子签名的时间序列数据中携带有所述电子签名的签名标识;The data collection module is used to collect the time series data of the electronic signature on the touch screen input device; the time series data of the electronic signature carries the signature identification of the electronic signature;
    数据获取模块,用于获取所述签名标识的认证电子签名的时间序列数据;A data acquisition module for acquiring the time series data of the certified electronic signature of the signature identification;
    相似度确定模块,用于根据所述电子签名的时间序列数据和所述认证电子签名的时间序列数据,确定所述电子签名与所述认证电子签名之间的特征相似度;及The similarity determination module is configured to determine the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature; and
    验证结果确定模块,用于根据所述电子签名与所述认证电子签名之间的特征相似度,确定对所述电子签名的验证结果。The verification result determination module is configured to determine the verification result of the electronic signature according to the feature similarity between the electronic signature and the certified electronic signature.
  9. 一种计算机设备,包括存储器及一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device includes a memory and one or more processors. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the one or more processors, the one or more Each processor performs the following steps:
    采集触屏输入设备上的电子签名的时间序列数据;所述电子签名的时间序列数据中携 带有所述电子签名的签名标识;Collect the time series data of the electronic signature on the touch screen input device; the time series data of the electronic signature carries the signature identification of the electronic signature;
    获取所述签名标识的认证电子签名的时间序列数据;Acquiring the time series data of the authenticated electronic signature of the signature identification;
    根据所述电子签名的时间序列数据和所述认证电子签名的时间序列数据,确定所述电子签名与所述认证电子签名之间的特征相似度;及Determine the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature; and
    根据所述电子签名与所述认证电子签名之间的特征相似度,确定对所述电子签名的验证结果。According to the feature similarity between the electronic signature and the certified electronic signature, the verification result of the electronic signature is determined.
  10. 根据权利要求9所述的计算机设备,其中,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 9, wherein the processor further executes the following steps when executing the computer readable instruction:
    根据所述电子签名的时间序列数据和所述认证电子签名的时间序列数据,确定所述电子签名的特征编码和所述认证电子签名的特征编码;Determining the feature code of the electronic signature and the feature code of the certification electronic signature according to the time series data of the electronic signature and the time series data of the certification electronic signature;
    确定所述电子签名的特征编码与所述认证电子签名的特征编码之间的特征距离;及Determining the characteristic distance between the characteristic code of the electronic signature and the characteristic code of the authentication electronic signature; and
    将所述特征距离进行映射处理,得到映射处理后的特征距离,作为所述电子签名与所述认证电子签名之间的特征相似度。The feature distance is subjected to a mapping process, and the feature distance after the mapping process is obtained as the feature similarity between the electronic signature and the authenticated electronic signature.
  11. 根据权利要求10所述的计算机设备,其中,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 10, wherein the processor further executes the following steps when executing the computer-readable instructions:
    分别将所述电子签名的时间序列数据和所述认证电子签名的时间序列数据进行批量标准化处理,得到所述电子签名的标准时间序列数据和所述认证电子签名的标准时间序列数据;Performing batch standardization processing on the time series data of the electronic signature and the time series data of the authentication electronic signature respectively to obtain the standard time series data of the electronic signature and the standard time series data of the authentication electronic signature;
    分别提取所述电子签名的标准时间序列数据中的时序特征和所述认证电子签名的标准时间序列数据中的时序特征;及Extracting the time series features in the standard time series data of the electronic signature and the time series features in the standard time series data of the authentication electronic signature respectively; and
    根据所述电子签名的标准时间序列数据中的时序特征和所述认证电子签名的标准时间序列数据中的时序特征,确定所述电子签名的特征编码和所述认证电子签名的特征编码。Determine the feature code of the electronic signature and the feature code of the certified electronic signature according to the time sequence feature in the standard time series data of the electronic signature and the time sequence feature in the standard time series data of the certified electronic signature.
  12. 根据权利要求9所述的计算机设备,其中,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 9, wherein the processor further executes the following steps when executing the computer readable instruction:
    分别将所述电子签名的时间序列数据和所述认证电子签名的时间序列数据输入预先训练的签名验证模型,得到所述电子签名与所述认证电子签名之间的特征相似度;Respectively input the time series data of the electronic signature and the time series data of the certified electronic signature into a pre-trained signature verification model to obtain the feature similarity between the electronic signature and the certified electronic signature;
    其中,所述预先训练的签名验证模型用于根据所述电子签名的时间序列数据和所述认证电子签名的时间序列数据,确定所述电子签名的特征编码和所述认证电子签名的特征编码;确定所述电子签名的特征编码与所述认证电子签名的特征编码之间的特征距离;将所述特征距离进行映射处理,得到映射处理后的特征距离,作为所述电子签名与所述认证电子签名之间的特征相似度。Wherein, the pre-trained signature verification model is used to determine the feature code of the electronic signature and the feature code of the certification electronic signature according to the time series data of the electronic signature and the time series data of the certification electronic signature; Determine the feature distance between the feature code of the electronic signature and the feature code of the authentication electronic signature; perform a mapping process on the feature distance to obtain the feature distance after the mapping process, as the electronic signature and the authentication electronic signature The feature similarity between signatures.
  13. 根据权利要求12所述的计算机设备,其中,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 12, wherein the processor further executes the following steps when executing the computer readable instruction:
    采集同一个签名标识的两个样本电子签名的时间序列数据和所述两个样本电子签名 的实际特征相似度;Collecting the time series data of the two sample electronic signatures with the same signature mark and the similarity of the actual features of the two sample electronic signatures;
    将所述同一个签名标识的两个样本电子签名的样本时间序列数据输入待训练的签名验证模型,得到所述两个样本电子签名的特征相似度;Input the sample time series data of the two sample electronic signatures identified by the same signature into the signature verification model to be trained to obtain the feature similarity of the two sample electronic signatures;
    统计所述两个样本电子签名的特征相似度与对应的实际特征相似度之间的误差;及Count the error between the feature similarity of the two sample electronic signatures and the corresponding actual feature similarity; and
    当所述误差大于或等于预设阈值时,根据所述误差调整所述待训练的签名验证模型的网络参数,得到调整后的签名验证模型,并对所述调整后的签名验证模型进行反复训练,直至根据训练后的签名验证模型得到的所述误差小于所述预设阈值。When the error is greater than or equal to a preset threshold, adjust the network parameters of the signature verification model to be trained according to the error to obtain an adjusted signature verification model, and perform repeated training on the adjusted signature verification model , Until the error obtained according to the trained signature verification model is less than the preset threshold.
  14. 根据权利要求9至13任一项所述的计算机设备,其中,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to any one of claims 9 to 13, wherein the processor further executes the following steps when executing the computer readable instruction:
    若所述电子签名与所述认证电子签名之间的特征相似度大于或者等于预设相似度,则确认所述电子签名验证通过;及If the feature similarity between the electronic signature and the certified electronic signature is greater than or equal to the preset similarity, confirm that the electronic signature has passed the verification; and
    若所述电子签名与所述认证电子签名之间的特征相似度小于所述预设相似度,则确认所述电子签名验证不通过。If the feature similarity between the electronic signature and the certified electronic signature is less than the preset similarity, it is confirmed that the electronic signature verification fails.
  15. 一个或多个存储有计算机可读指令的计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:One or more computer-readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the following steps:
    采集触屏输入设备上的电子签名的时间序列数据;所述电子签名的时间序列数据中携带有所述电子签名的签名标识;Collecting the time series data of the electronic signature on the touch screen input device; the time series data of the electronic signature carries the signature identification of the electronic signature;
    获取所述签名标识的认证电子签名的时间序列数据;Acquiring the time series data of the authenticated electronic signature of the signature identification;
    根据所述电子签名的时间序列数据和所述认证电子签名的时间序列数据,确定所述电子签名与所述认证电子签名之间的特征相似度;及Determine the feature similarity between the electronic signature and the certified electronic signature according to the time series data of the electronic signature and the time series data of the certified electronic signature; and
    根据所述电子签名与所述认证电子签名之间的特征相似度,确定对所述电子签名的验证结果。According to the feature similarity between the electronic signature and the certified electronic signature, the verification result of the electronic signature is determined.
  16. 根据权利要求15所述的存储介质,其中,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 15, wherein the following steps are further performed when the computer-readable instructions are executed by the processor:
    根据所述电子签名的时间序列数据和所述认证电子签名的时间序列数据,确定所述电子签名的特征编码和所述认证电子签名的特征编码;Determining the feature code of the electronic signature and the feature code of the certification electronic signature according to the time series data of the electronic signature and the time series data of the certification electronic signature;
    确定所述电子签名的特征编码与所述认证电子签名的特征编码之间的特征距离;及Determining the characteristic distance between the characteristic code of the electronic signature and the characteristic code of the authentication electronic signature; and
    将所述特征距离进行映射处理,得到映射处理后的特征距离,作为所述电子签名与所述认证电子签名之间的特征相似度。The feature distance is subjected to a mapping process, and the feature distance after the mapping process is obtained as the feature similarity between the electronic signature and the authenticated electronic signature.
  17. 根据权利要求16所述的存储介质,其中,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 16, wherein the following steps are further performed when the computer-readable instructions are executed by the processor:
    分别将所述电子签名的时间序列数据和所述认证电子签名的时间序列数据进行批量标准化处理,得到所述电子签名的标准时间序列数据和所述认证电子签名的标准时间序列数据;Performing batch standardization processing on the time series data of the electronic signature and the time series data of the authentication electronic signature respectively to obtain the standard time series data of the electronic signature and the standard time series data of the authentication electronic signature;
    分别提取所述电子签名的标准时间序列数据中的时序特征和所述认证电子签名的标 准时间序列数据中的时序特征;及Extracting the time series features in the standard time series data of the electronic signature and the time series features in the standard time series data of the authentication electronic signature respectively; and
    根据所述电子签名的标准时间序列数据中的时序特征和所述认证电子签名的标准时间序列数据中的时序特征,确定所述电子签名的特征编码和所述认证电子签名的特征编码。Determine the feature code of the electronic signature and the feature code of the certified electronic signature according to the time sequence feature in the standard time series data of the electronic signature and the time sequence feature in the standard time series data of the certified electronic signature.
  18. 根据权利要求15所述的存储介质,其中,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 15, wherein the following steps are further performed when the computer-readable instructions are executed by the processor:
    分别将所述电子签名的时间序列数据和所述认证电子签名的时间序列数据输入预先训练的签名验证模型,得到所述电子签名与所述认证电子签名之间的特征相似度;Respectively input the time series data of the electronic signature and the time series data of the certified electronic signature into a pre-trained signature verification model to obtain the feature similarity between the electronic signature and the certified electronic signature;
    其中,所述预先训练的签名验证模型用于根据所述电子签名的时间序列数据和所述认证电子签名的时间序列数据,确定所述电子签名的特征编码和所述认证电子签名的特征编码;确定所述电子签名的特征编码与所述认证电子签名的特征编码之间的特征距离;将所述特征距离进行映射处理,得到映射处理后的特征距离,作为所述电子签名与所述认证电子签名之间的特征相似度。Wherein, the pre-trained signature verification model is used to determine the feature code of the electronic signature and the feature code of the certification electronic signature according to the time series data of the electronic signature and the time series data of the certification electronic signature; Determine the feature distance between the feature code of the electronic signature and the feature code of the authentication electronic signature; perform a mapping process on the feature distance to obtain the feature distance after the mapping process, which is used as the electronic signature and the authentication electronic signature The feature similarity between signatures.
  19. 根据权利要求18所述的存储介质,其中,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 18, wherein the following steps are further performed when the computer-readable instructions are executed by the processor:
    采集同一个签名标识的两个样本电子签名的时间序列数据和所述两个样本电子签名的实际特征相似度;Collecting the time series data of the two sample electronic signatures with the same signature and the similarity of the actual features of the two sample electronic signatures;
    将所述同一个签名标识的两个样本电子签名的样本时间序列数据输入待训练的签名验证模型,得到所述两个样本电子签名的特征相似度;Input the sample time series data of the two sample electronic signatures identified by the same signature into the signature verification model to be trained to obtain the feature similarity of the two sample electronic signatures;
    统计所述两个样本电子签名的特征相似度与对应的实际特征相似度之间的误差;及Count the error between the feature similarity of the two sample electronic signatures and the corresponding actual feature similarity; and
    当所述误差大于或等于预设阈值时,根据所述误差调整所述待训练的签名验证模型的网络参数,得到调整后的签名验证模型,并对所述调整后的签名验证模型进行反复训练,直至根据训练后的签名验证模型得到的所述误差小于所述预设阈值。When the error is greater than or equal to a preset threshold, adjust the network parameters of the signature verification model to be trained according to the error to obtain an adjusted signature verification model, and perform repeated training on the adjusted signature verification model , Until the error obtained according to the trained signature verification model is less than the preset threshold.
  20. 根据权利要求15至19任一项所述的存储介质,其中,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to any one of claims 15 to 19, wherein the following steps are further executed when the computer-readable instructions are executed by the processor:
    若所述电子签名与所述认证电子签名之间的特征相似度大于或者等于预设相似度,则确认所述电子签名验证通过;及If the feature similarity between the electronic signature and the certified electronic signature is greater than or equal to the preset similarity, confirm that the electronic signature has passed the verification; and
    若所述电子签名与所述认证电子签名之间的特征相似度小于所述预设相似度,则确认所述电子签名验证不通过。If the feature similarity between the electronic signature and the certified electronic signature is less than the preset similarity, it is confirmed that the electronic signature verification fails.
PCT/CN2020/106071 2020-04-27 2020-07-31 Method and apparatus for verifying electronic signature, and computer device and storage medium WO2021217944A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010344559.1A CN111555889A (en) 2020-04-27 2020-04-27 Electronic signature verification method and device, computer equipment and storage medium
CN202010344559.1 2020-04-27

Publications (1)

Publication Number Publication Date
WO2021217944A1 true WO2021217944A1 (en) 2021-11-04

Family

ID=72007726

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/106071 WO2021217944A1 (en) 2020-04-27 2020-07-31 Method and apparatus for verifying electronic signature, and computer device and storage medium

Country Status (2)

Country Link
CN (1) CN111555889A (en)
WO (1) WO2021217944A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115374422B (en) * 2022-10-26 2022-12-23 四川蜀天信息技术有限公司 Anti-disclosure electronic signature verification method based on block chain

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241544A (en) * 2007-02-09 2008-08-13 陈其良 Signture dynamic discrimination method
CN101526992A (en) * 2008-03-03 2009-09-09 汉王科技股份有限公司 Method and device for recognizing handwritten signature and starting system by handwritten signature
CN103780391A (en) * 2013-12-10 2014-05-07 北京数字认证股份有限公司 Hand-written electronic signature data protection method based on signature content
WO2015162607A1 (en) * 2014-04-23 2015-10-29 Signpass Ltd. Methods and systems for signature analysis and authentication
CN107657241A (en) * 2017-10-09 2018-02-02 河海大学常州校区 A kind of signature true or false identification system towards signature pen
US20180068280A1 (en) * 2015-02-17 2018-03-08 Silvio Micali Verifying electronic transactions
CN109446905A (en) * 2018-09-26 2019-03-08 深圳壹账通智能科技有限公司 Sign electronically checking method, device, computer equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008046781A (en) * 2006-08-11 2008-02-28 National Institute Of Advanced Industrial & Technology Handwritten signature personal authentication system with time series data of contact force
CN105095709A (en) * 2015-09-09 2015-11-25 西南大学 On-line signature identification method and on-line signature identification system
WO2018040009A1 (en) * 2016-08-31 2018-03-08 华为技术有限公司 Method, terminal, handwriting stylus, and system for signature verification
JP6199470B1 (en) * 2016-10-28 2017-09-20 株式会社エヌ・ティ・ティ・データ Signature authentication system
CN108197532B (en) * 2017-12-18 2019-08-16 深圳励飞科技有限公司 The method, apparatus and computer installation of recognition of face
CN208188805U (en) * 2018-06-04 2018-12-04 河海大学常州校区 A kind of intelligence signature plate

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241544A (en) * 2007-02-09 2008-08-13 陈其良 Signture dynamic discrimination method
CN101526992A (en) * 2008-03-03 2009-09-09 汉王科技股份有限公司 Method and device for recognizing handwritten signature and starting system by handwritten signature
CN103780391A (en) * 2013-12-10 2014-05-07 北京数字认证股份有限公司 Hand-written electronic signature data protection method based on signature content
WO2015162607A1 (en) * 2014-04-23 2015-10-29 Signpass Ltd. Methods and systems for signature analysis and authentication
US20180068280A1 (en) * 2015-02-17 2018-03-08 Silvio Micali Verifying electronic transactions
CN107657241A (en) * 2017-10-09 2018-02-02 河海大学常州校区 A kind of signature true or false identification system towards signature pen
CN109446905A (en) * 2018-09-26 2019-03-08 深圳壹账通智能科技有限公司 Sign electronically checking method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111555889A (en) 2020-08-18

Similar Documents

Publication Publication Date Title
AU2019101579A4 (en) User identity verification method, apparatus and system
US11256801B2 (en) Artificial intelligence-based generation of anthropomorphic signatures and use thereof
CN107888557B (en) Method and system for generating protocol file
WO2019071738A1 (en) Examinee identity authentication method and apparatus, readable storage medium and terminal device
US10685008B1 (en) Feature embeddings with relative locality for fast profiling of users on streaming data
US11409789B2 (en) Determining identity in an image that has multiple people
WO2022105179A1 (en) Biological feature image recognition method and apparatus, and electronic device and readable storage medium
WO2020073503A1 (en) Contract signing method and apparatus, and computer device
WO2021151313A1 (en) Method and apparatus for document forgery detection, electronic device, and storage medium
CN112464117A (en) Request processing method and device, computer equipment and storage medium
CN113887408B (en) Method, device, equipment and storage medium for detecting activated face video
CN114676444B (en) Storage system based on block chain
CN116305076B (en) Signature-based identity information registration sample online updating method, system and storage medium
CN109766678B (en) Fingerprint identification authentication method, system, medium and equipment for mobile terminal equipment
CN112580108B (en) Signature and seal integrity verification method and computer equipment
CN111767192B (en) Business data detection method, device, equipment and medium based on artificial intelligence
WO2019056496A1 (en) Method for generating picture review probability interval and method for picture review determination
WO2021217944A1 (en) Method and apparatus for verifying electronic signature, and computer device and storage medium
WO2021142072A1 (en) Peceptual video fingerprinting
CN116681045A (en) Report generation method, report generation device, computer equipment and storage medium
CN112053058A (en) Index model generation method and device
CN113177543B (en) Certificate identification method, device, equipment and storage medium
CN114360732B (en) Medical data analysis method, device, electronic equipment and storage medium
CN112100604A (en) Terminal equipment information processing method and device
CN113378619B (en) Insurance business data processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20933313

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16/02/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20933313

Country of ref document: EP

Kind code of ref document: A1