Identity authentication system and method based on user behaviors
By analyzing the time series of the user's mouse behavior and using a neural network model to generate multi-scale semantic encoding feature vectors, it solves the problems of existing biometric identity authentication hardware dependence and privacy leakage, and achieves convenient and highly accurate identity verification.
Patent Information
- Application Number
- CN202410680777.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing biometric-based identity authentication methods are dependent on hardware devices and have risks of privacy leakage, making them difficult to apply to the Internet environment.
An identity authentication system based on user behavior is adopted. By obtaining and analyzing the time series of user mouse behavior, the Transformer structure and the two-way long short-term memory neural network model are used for semantic encoding, combined with the semantic position-by-position granular interactive fusion module to generate multi-scale semantic encoding features. Vector to determine whether the user's operation is his or her own.
No additional hardware equipment is required, which improves the convenience and accuracy of identity verification, avoids the risk of privacy leakage, and is suitable for the Internet environment.
Smart Images

Figure CN118568694A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of identity authentication, and in particular to an identity authentication system and method based on user behavior. Background Art
[0002] User identity authentication is one of the important security measures for computer and network systems. Current identity authentication technologies are mainly divided into three categories: password authentication, possession authentication and biometric authentication. Password authentication has the risk of leakage and cracking, while possession authentication is easy to be lost or forged. In contrast, user identity authentication based on biometrics provides higher security and effectively avoids problems such as information leakage, cracking, loss and counterfeiting.
[0003] At present, biometric-based identity authentication methods usually use the user's physiological characteristics for identity recognition. Common recognition technologies based on physiological characteristics include fingerprint recognition, palm print recognition, face recognition, and iris recognition. However, this recognition technology based on the user's physiological characteristics not only requires additional hardware recognition equipment, but is also likely to leak the user's privacy information. Therefore, the identity authentication method based on the user's physiological characteristics is not suitable for the current Internet environment.
[0004] Therefore, an optimized identity authentication scheme is desired. Summary of the invention
[0005] The present disclosure is made in view of the above problems. One object of the present disclosure is to provide an identity authentication system and method based on user behavior.
[0006] The embodiment of the present disclosure provides an identity authentication method based on user behavior, which includes:
[0007] Acquire a time series of a user's mouse behavior, wherein the user's mouse behavior includes a mouse movement event, a left mouse button pressed, a right mouse button pressed, a left mouse button released, and a right mouse button released;
[0008] Performing one-hot encoding on each user mouse behavior in the time series of the user mouse behavior to obtain a time series of one-hot encoding embedding representation vectors of the user mouse behavior;
[0009] Perform semantic coding of the user mouse behavior based on different scales on the time series of the one-hot encoding embedding representation vector of the user mouse behavior to obtain a first user mouse behavior semantic coding feature vector and a second user mouse behavior semantic coding feature vector;
[0010] Using a semantic position-by-position granularity interaction fusion module, processing the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector to obtain a user mouse behavior multi-scale semantic coding feature vector; and
[0011] Based on the multi-scale semantic coding feature vector of the user's mouse behavior, it is determined whether the user's mouse behavior is operated by the user himself.
[0012] For example, according to the user behavior-based identity authentication method of an embodiment of the present disclosure, the time series of the one-hot encoding of the user mouse behavior is embedded in the representation vector and semantic encoding of the user mouse behavior based on different scales is performed to obtain a first user mouse behavior semantic encoding feature vector and a second user mouse behavior semantic encoding feature vector, including:
[0013] Passing the time series of the one-hot encoding embedding representation vector of the user mouse behavior through a first mouse behavior context semantic encoder based on a Transformer structure to obtain the first user mouse behavior semantic encoding feature vector; and
[0014] The time series of the one-hot encoding embedding representation vector of the user mouse behavior is passed through a second mouse behavior context semantic encoder based on a bidirectional long short-term memory neural network model to obtain the second user mouse behavior semantic encoding feature vector.
[0015] For example, according to the user behavior-based identity authentication method of an embodiment of the present disclosure, the semantic position-by-position granularity interaction fusion module is used to process the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector to obtain a user mouse behavior multi-scale semantic coding feature vector, including:
[0016] Cascading the first user mouse behavior semantic encoding feature vector and the second user mouse behavior semantic encoding feature vector to obtain a user mouse behavior multi-scale semantic cascade feature vector;
[0017] Using a transformation matrix and a bias vector to linearly transform the multi-scale semantic cascade feature vector of the user mouse behavior to obtain a linearly transformed multi-scale semantic cascade feature vector of the user mouse behavior;
[0018] Using a sigmoid activation function to activate the linearly transformed user mouse behavior multi-scale semantic cascade feature vector to obtain an activated linearly transformed user mouse behavior multi-scale semantic feature vector; and
[0019] Using each position feature value in the activated linear transformation user mouse behavior multi-scale semantic feature vector as a threshold value, a weighted sum of the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector is calculated to obtain the user mouse behavior multi-scale semantic coding feature vector.
[0020] For example, according to the user behavior-based identity authentication method of an embodiment of the present disclosure, the multi-scale semantic cascade feature vector of the user mouse behavior is linearly transformed using a transformation matrix and a bias vector to obtain a linearly transformed multi-scale semantic cascade feature vector of the user mouse behavior, including:
[0021] After calculating the matrix multiplication of the multi-scale semantic cascade feature vector of the user mouse behavior and the transformation matrix, the obtained feature vector is added to the bias vector by position to obtain the linearly transformed multi-scale semantic cascade feature vector of the user mouse behavior.
[0022] For example, according to the user behavior-based identity authentication method of an embodiment of the present disclosure, wherein each position feature value in the activated linear transformation user mouse behavior multi-scale semantic feature vector is used as a threshold value, and a weighted sum of the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector is calculated to obtain the user mouse behavior multi-scale semantic coding feature vector, including:
[0023] Calculating an exponential function of the semantic coding feature vector of the first user's mouse behavior with a natural constant as the base to obtain a semantic class support feature vector of the first user's mouse behavior;
[0024] Calculating an exponential function of the second user mouse behavior semantic encoding feature vector with a natural constant as the base to obtain a second user mouse behavior semantic class support feature vector;
[0025] Calculate the product of the feature value of each position in the first user mouse behavior semantic class support feature vector and the threshold value to obtain a weighted first user mouse behavior semantic class support feature vector;
[0026] Calculating the product of the feature value of each position in the second user mouse behavior semantic class support feature vector and one minus a threshold value to obtain a weighted second user mouse behavior semantic class support feature vector; and
[0027] The weighted item first user mouse behavior semantic class support feature vector and the weighted item second user mouse behavior semantic class support feature vector are processed according to the position points to obtain the user mouse behavior multi-scale semantic coding feature vector.
[0028] For example, according to the user behavior-based identity authentication method of an embodiment of the present disclosure, determining whether the user's mouse behavior is operated by the user himself based on the multi-scale semantic coding feature vector of the user's mouse behavior includes:
[0029] The multi-scale semantic encoding feature vector of the user's mouse behavior is passed through a classifier-based decision maker to obtain a decision result, and the decision result is used to indicate whether the user's mouse behavior is operated by the user himself.
[0030] For example, according to the user behavior-based identity authentication method of an embodiment of the present disclosure, it also includes a training step: for training the first mouse behavior context semantic encoder based on the Transformer structure, the second mouse behavior context semantic encoder based on the bidirectional long short-term memory neural network model, the semantic position-by-position granularity interaction fusion module and the classifier-based decision maker.
[0031] For example, according to the user behavior-based identity authentication method of an embodiment of the present disclosure, the training step includes:
[0032] Acquire training data, wherein the training data includes a time series of a training user's mouse behavior;
[0033] Performing one-hot encoding on each training user mouse behavior in the time series of the training user mouse behavior to obtain a time series of one-hot encoding embedding representation vectors of the training user mouse behavior;
[0034] Pass the time series of the one-hot encoding embedding representation vector of the training user mouse behavior through the first mouse behavior context semantic encoder based on the Transformer structure to obtain a first training user mouse behavior semantic encoding feature vector;
[0035] Passing the time series of the one-hot encoding embedding representation vector of the training user's mouse behavior through the second mouse behavior context semantic encoder based on the bidirectional long short-term memory neural network model to obtain a second training user's mouse behavior semantic encoding feature vector;
[0036] Using the semantic position-by-position granularity interaction fusion module, the first training user mouse behavior semantic coding feature vector and the second training user mouse behavior semantic coding feature vector are processed to obtain a training user mouse behavior multi-scale semantic coding feature vector;
[0037] Performing feature optimization on the multi-scale semantic coding feature vector of the training user's mouse behavior to obtain an optimized multi-scale semantic coding feature vector of the training user's mouse behavior;
[0038] Passing the optimized multi-scale semantic encoding feature vector of the training user's mouse behavior through the classifier-based decision maker to obtain a classification loss function value; and
[0039] Based on the classification loss function value, the first mouse behavior context semantic encoder based on the Transformer structure, the second mouse behavior context semantic encoder based on the bidirectional long short-term memory neural network model, the semantic position-by-position granularity interaction fusion module and the classifier-based decision maker are trained.
[0040] The embodiment of the present disclosure also provides an identity authentication system based on user behavior, which includes:
[0041] A behavior acquisition module, used to acquire a time series of a user's mouse behavior, wherein the user's mouse behavior includes mouse movement events, left mouse button press, right mouse button press, left mouse button pop-up, and right mouse button pop-up;
[0042] A one-hot encoding module, used for performing one-hot encoding on each user mouse behavior in the time series of the user mouse behavior to obtain a time series of one-hot encoding embedding representation vectors of the user mouse behavior;
[0043] A multi-scale semantic coding module, used for embedding the one-hot coding of the user mouse behavior into the time series of the representation vector to perform semantic coding of the user mouse behavior based on different scales to obtain a first user mouse behavior semantic coding feature vector and a second user mouse behavior semantic coding feature vector;
[0044] an interactive fusion module, configured to process the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector using a semantic position-by-position granularity interactive fusion module to obtain a user mouse behavior multi-scale semantic coding feature vector; and
[0045] The identity authentication module is used to determine whether the user's mouse behavior is operated by the user himself based on the multi-scale semantic coding feature vector of the user's mouse behavior.
[0046] For example, according to the user behavior-based identity authentication system of an embodiment of the present disclosure, the multi-scale semantic encoding module includes:
[0047] A first semantic encoding unit, configured to embed the one-hot encoding of the user mouse behavior into a time series of a representation vector through a first mouse behavior context semantic encoder based on a Transformer structure to obtain the first user mouse behavior semantic encoding feature vector; and
[0048] The second semantic encoding unit is used to embed the one-hot encoding of the user mouse behavior into the time series of the representation vector through a second mouse behavior context semantic encoder based on a bidirectional long short-term memory neural network model to obtain the second user mouse behavior semantic encoding feature vector.
[0049] According to the user behavior-based identity authentication system and method of the embodiment of the present disclosure, it collects the user's mouse behavior in real time, including mouse movement events, left mouse button press, right mouse button press, left mouse button pop-up and right mouse button pop-up, and introduces data processing and semantic understanding algorithms based on artificial intelligence and machine learning technology in the back end to analyze and understand these user mouse behavior time series data, so as to make a decision to determine whether the user's mouse behavior is the user's own operation. In this way, the user's identity can be determined based on the user's mouse behavior time series semantics, without the need to deploy additional hardware equipment, thereby improving the convenience and accuracy of user identity authentication. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings of the embodiments of the present disclosure. Obviously, the drawings described below only relate to some embodiments of the present disclosure, and are not intended to limit the present disclosure.
[0051] Figure 1 A schematic diagram of the application architecture of the identity authentication method based on user behavior in an embodiment of the present disclosure is shown;
[0052] Figure 2 A flow chart of an identity authentication method based on user behavior in an embodiment of the present disclosure is shown;
[0053] Figure 3 A flowchart of sub-step S530 of the identity authentication method based on user behavior in an embodiment of the present disclosure is shown;
[0054] Figure 4 A flowchart of sub-step S540 of the identity authentication method based on user behavior in an embodiment of the present disclosure is shown;
[0055] Figure 5 A schematic diagram of the structure of the identity authentication system based on user behavior in an embodiment of the present disclosure is shown;
[0056] Figure 6 An application scenario diagram of the identity authentication method based on user behavior in an embodiment of the present disclosure is shown;
[0057] Figure 7 An identity authentication model based on user mouse behavior in an embodiment of the present disclosure is shown;
[0058] Figure 8 The user identity authentication process based on the classification decision model in the embodiment of the present disclosure is shown; and
[0059] Fig. 9 A schematic diagram of a storage medium according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0060] The technical solutions in the embodiments of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present disclosure, rather than all embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work also fall within the scope of protection of the present disclosure.
[0061] The terms used in this specification are those general terms currently widely used in the art in consideration of the functions of the present disclosure, but these terms may vary according to the intention of a person of ordinary skill in the art, precedents, or new technologies in the art. In addition, specific terms may be selected by the applicant, and in this case, their detailed meanings will be described in the detailed description of the present disclosure. Therefore, the terms used in the specification should not be understood as simple names, but rather as an overall description based on the meaning of the terms and the present disclosure.
[0062] Although the present disclosure makes various references to certain modules in the system according to embodiments of the present disclosure, any number of different modules can be used and run on a user terminal and / or server. The modules are illustrative only, and different aspects of the systems and methods can use different modules.
[0063] Flowcharts are used in this disclosure to illustrate the operations performed by the system according to the embodiments of the present disclosure. It should be understood that the preceding or following operations are not necessarily performed precisely in order. On the contrary, various steps may be processed in reverse order or simultaneously as required. At the same time, other operations may also be added to these processes, or one or more operations may be removed from these processes.
[0064] Figure 1 A schematic diagram of the application architecture of the user behavior-based identity authentication method in an embodiment of the present disclosure is shown, including a server 100 and a terminal device 200.
[0065] The terminal device 200 and the server 100 can be connected via the Internet to achieve mutual communication. Optionally, the above-mentioned Internet uses standard communication technology and / or protocol. The Internet is usually the Internet, but it can also be any network, including but not limited to any combination of a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or a virtual private network. In some embodiments, the data exchanged through the network is represented by technologies and / or formats including Hyper Text Markup Language (HTML), Extensible Markup Language (XML), etc. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec) can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above-mentioned data communication technologies.
[0066] The server 100 can provide various network services for the terminal device 200, wherein the server 100 can be a single server, a server cluster consisting of several servers, or a cloud computing center. Specifically, the server 100 may include a processor 110 (Center Processing Unit, CPU), a memory 120, an input device 130, and an output device 140, etc. The input device 130 may include a keyboard, a mouse, a touch screen, etc., and the output device 140 may include a display device, such as a liquid crystal display (Liquid Crystal Display, LCD), a cathode ray tube (Cathode Ray Tube, CRT), etc.
[0067] The memory 120 may include a read-only memory (ROM) and a random access memory (RAM), and provides the processor 110 with program instructions and data stored in the memory 120. In the embodiment of the present disclosure, the memory 120 may be used to store the program of the user behavior-based identity authentication method in the embodiment of the present disclosure.
[0068] The processor 110 calls the program instructions stored in the memory 120, and the processor 110 is used to execute the steps of any one of the user behavior-based identity authentication methods in the embodiments of the present disclosure according to the obtained program instructions.
[0069] In addition, the application architecture diagram in the embodiment of the present disclosure is intended to more clearly illustrate the technical solution in the embodiment of the present disclosure, and does not constitute a limitation on the technical solution provided in the embodiment of the present disclosure. Of course, for other application architectures and business applications, the technical solution provided in the embodiment of the present disclosure is also applicable to similar problems.
[0070] The following is a non-restrictive description of the user behavior-based identity authentication method provided according to at least one embodiment of the present disclosure through several examples or embodiments. As described below, different features in these specific examples or embodiments can be combined with each other without conflicting with each other to obtain new examples or embodiments, and these new examples or embodiments also fall within the scope of protection of the present disclosure.
[0071] As the Internet becomes more and more popular, websites are becoming an important way for people to obtain information and handle various businesses. When browsing websites, the mouse is an indispensable tool. Most people are accustomed to using the mouse to click on web page content, jump to web pages, browse pages, focus on input boxes, and so on. It is difficult for current web automated attack tools to imitate real user behavior, which is one direction to identify such tool-based attack methods. Therefore, the user's identity can be determined by analyzing the user's mouse behavior.
[0072] Specifically, the identity authentication method based on user mouse behavior characteristics utilizes human-computer interaction devices to collect user behavior data. It does not require additional hardware equipment. At the same time, the data collection process does not affect the user's normal operation and can be directly deployed in most current computer systems. Therefore, it is gradually widely used in identity recognition and authentication.
[0073] Based on this, in the technical solution of this application, a user behavior-based identity authentication solution is proposed, which can collect user mouse behaviors in real time, including mouse movement events, left mouse button press, right mouse button press, left mouse button pop-up, and right mouse button pop-up, and introduce data processing and semantic understanding algorithms based on artificial intelligence and machine learning technologies in the back end to analyze and understand these user mouse behavior time series data, so as to make decisions to determine whether the user's mouse behavior is the user's own operation. In this way, the user's identity can be determined based on the user's mouse behavior time series semantics, without the need to deploy additional hardware devices, thereby improving the convenience and accuracy of user identity authentication.
[0074] Figure 2The flowchart of the identity authentication method based on user behavior in the embodiment of the present disclosure is shown. For example, the identity authentication method based on user behavior can be executed by a server, which can be Figure 1 The server 100 shown in FIG. Figure 2 As shown, according to the user behavior-based identity authentication method of the embodiment of the present disclosure, the steps include: S510, obtaining the time series of user mouse behavior, wherein the user mouse behavior includes mouse movement events, left mouse button pressed, right mouse button pressed, left mouse button popped up and right mouse button popped up; S520, performing one-hot encoding on each user mouse behavior in the time series of the user mouse behavior to obtain a time series of one-hot encoded embedded representation vectors of the user mouse behavior; S530, performing semantic encoding of user mouse behaviors based on different scales on the time series of the one-hot encoded embedded representation vectors of the user mouse behavior to obtain a first user mouse behavior semantic encoding feature vector and a second user mouse behavior semantic encoding feature vector; S540, using a semantic position-by-position granularity interactive fusion module to process the first user mouse behavior semantic encoding feature vector and the second user mouse behavior semantic encoding feature vector to obtain a multi-scale semantic encoding feature vector of the user mouse behavior; and, S550, based on the multi-scale semantic encoding feature vector of the user mouse behavior, determining whether the user's mouse behavior is operated by the user himself.
[0075] Specifically, in the technical solution of the present application, first, the time series of the user's mouse behavior is obtained, wherein the user's mouse behavior includes mouse movement events, mouse left button press, mouse right button press, mouse left button pop-up and mouse right button pop-up. It should be understood that all high-level mouse behaviors are composed of low-level mouse behaviors according to certain rules, that is, all mouse behaviors can be split into independent basic mouse event sequences. Therefore, by performing temporal semantic analysis and correlation parsing on the mouse movement events, mouse left button press, mouse right button press, mouse left button pop-up and mouse right button pop-up in the mouse behavior, the behavior semantics of the mouse can be effectively captured and described. This behavior semantics includes the mouse left button click, right click, left button drag, right button drag and mouse movement behaviors, which are used for user identity authentication. For example, different users may have unique click frequency, movement speed, click order and other characteristics when performing mouse operations. These characteristics can be extracted and used to distinguish different users to identify and verify user identities.
[0076] Next, considering that each user mouse behavior includes mouse movement events, left mouse button pressed, right mouse button pressed, left mouse button popped up, and right mouse button popped up, these different mouse behavior items have two different values of 0 or 1. Therefore, in order to be able to analyze the mouse behavior at different time points, so as to be able to better understand and process these mouse behavior data and provide a basis for subsequent user identity authentication, in the technical solution of the present application, each user mouse behavior in the time series of the user mouse behavior is further one-hot encoded to obtain a time series of the user mouse behavior one-hot encoding embedded representation vector. Through the one-hot encoding process, different user mouse behavior items can be encoded in the form of 0 or 1, so as to eliminate the size relationship between different mouse behavior categories, making the data easier to process, which is helpful for the subsequent extraction of user behavior features and corresponding analysis and user identity recognition.
[0077] Then, considering that each user mouse behavior one-hot encoding embedding representation vector in the time series of the user mouse behavior one-hot encoding embedding representation vector respectively represents the semantic one-hot encoding features of the user mouse behavior in different aspects at one time point, the behavior semantics of these user mice have a temporal correlation and mutual influence in the time dimension. The temporal characteristics of user mouse behavior often contain important information. Specifically, this association semantics reflects the user's unique mouse behavior, such as unique click frequency, movement speed, drag frequency and click sequence, which can be helpful in identifying the user's identity. Based on this, in order to better understand and utilize the user's mouse behavior data, in the technical solution of the present application, the time series of the user mouse behavior one-hot encoding embedding representation vector is semantically encoded through the first mouse behavior context semantic encoder based on the Transformer structure to extract the contextual association semantic feature information based on the temporal global between the one-hot encoding features of the user mouse behavior at each time point, thereby obtaining the first user mouse behavior semantic encoding feature vector. Through the processing of the first mouse behavior context semantic encoder based on the Transformer structure, the temporal contextual relationship and characteristics between the user's mouse behavior semantics can be effectively captured, so as to better reflect the characteristics and patterns of user behavior and provide more useful information for subsequent mouse behavior semantic analysis and user identity authentication.
[0078] It should be understood that although the Transformer structure can well capture the contextual association semantic feature information based on the global time series between the unique hot encoding features of the user mouse behavior at each time point, its perception ability of the medium and short distance dependent association features of the user's mouse behavior in the local time period is weak, and it is difficult to effectively extract the local time series association semantics and intermittent behavior semantics of the user's mouse behavior, such as the time of mouse dragging and the moving speed during the dragging process. Based on this, in order to further improve the feature expression ability of the user's mouse behavior semantics, so as to improve the accuracy of user identity recognition, in the technical solution of the present application, the user's mouse behavior unique hot encoding is further embedded in the time series of the representation vector through the second mouse behavior context semantic encoder based on the bidirectional long short-term memory neural network model to obtain the second user mouse behavior semantic encoding feature vector. It should be understood that the bidirectional long short-term memory neural network model has the ability to capture the medium and short-term dependency relationship of the sequence. Through the bidirectional structure, the bidirectional long short-term memory neural network model can simultaneously consider the information of the current moment and the context information in the sequence data, so as to better understand the semantics and patterns of the local medium and short-term associations in the sequence data, which is conducive to better understanding and utilizing the user's mouse behavior data.
[0079] Accordingly, in step S530, if Figure 3 As shown, the time series of the one-hot encoding of the user mouse behavior is embedded in the representation vector and semantic encoding of the user mouse behavior based on different scales is performed to obtain a first user mouse behavior semantic encoding feature vector and a second user mouse behavior semantic encoding feature vector, including: S531, passing the time series of the one-hot encoding of the user mouse behavior into the representation vector through a first mouse behavior context semantic encoder based on a Transformer structure to obtain the first user mouse behavior semantic encoding feature vector; and, S532, passing the time series of the one-hot encoding of the user mouse behavior into the representation vector through a second mouse behavior context semantic encoder based on a bidirectional long short-term memory neural network model to obtain the second user mouse behavior semantic encoding feature vector.
[0080] Furthermore, since the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector capture the correlation semantic information of different scales of the user's mouse behavior semantics in the time dimension, these two different scales of user mouse behavior semantic temporal correlation features are of great significance for user behavior analysis and identity authentication. Based on this, in the technical solution of the present application, a semantic position-by-position granularity interaction fusion module is further used to process the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector to obtain a multi-scale semantic coding feature vector of user mouse behavior. Through the processing of the semantic position-by-position granularity interaction fusion module, fine-grained position-by-position interaction can be performed at each position of the feature vector, which helps to integrate and fuse the information of the two feature vectors at different positions, thereby better capturing the semantic information in the user mouse behavior time series, so as to obtain a more comprehensive and integrated user behavior feature representation, and provide more sufficient and accurate data basis for subsequent user identity recognition tasks.
[0081] Accordingly, in step S540, if Figure 4 As shown, the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector are processed using a semantic position-by-position granularity interactive fusion module to obtain a user mouse behavior multi-scale semantic coding feature vector, including: S541, cascading the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector to obtain a user mouse behavior multi-scale semantic cascade feature vector; S542, linearly transforming the user mouse behavior multi-scale semantic cascade feature vector using a transformation matrix and a bias vector to obtain a linearly transformed user mouse behavior multi-scale semantic cascade feature vector; S543, activating the linearly transformed user mouse behavior multi-scale semantic cascade feature vector using a sigmoid activation function to obtain an activated linearly transformed user mouse behavior multi-scale semantic feature vector; and, S544, using each position feature value in the activated linearly transformed user mouse behavior multi-scale semantic feature vector as a threshold value, calculating the weighted sum of the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector to obtain the user mouse behavior multi-scale semantic coding feature vector.
[0082] Among them, in step S542, the multi-scale semantic cascade feature vector of the user mouse behavior is linearly transformed using a transformation matrix and a bias vector to obtain a linearly transformed multi-scale semantic cascade feature vector of the user mouse behavior, including: calculating the matrix multiplication of the multi-scale semantic cascade feature vector of the user mouse behavior and the transformation matrix, and then adding the obtained feature vector to the bias vector by position to obtain the linearly transformed multi-scale semantic cascade feature vector of the user mouse behavior.
[0083] Among them, in step S544, each position feature value in the activated linear transformation user mouse behavior multi-scale semantic feature vector is used as a threshold value, and a weighted sum of the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector is calculated to obtain the user mouse behavior multi-scale semantic coding feature vector, including: calculating an exponential function of the first user mouse behavior semantic coding feature vector with a natural constant as the base to obtain the first user mouse behavior semantic class support feature vector; calculating an exponential function of the second user mouse behavior semantic coding feature vector with a natural constant as the base to obtain the second user mouse behavior semantic class support feature vector. behavior semantic class support feature vector; calculating the product of the feature value of each position in the first user mouse behavior semantic class support feature vector and the threshold value to obtain a weighted item first user mouse behavior semantic class support feature vector; calculating the product of the feature value of each position in the second user mouse behavior semantic class support feature vector and one minus the threshold value to obtain a weighted item second user mouse behavior semantic class support feature vector; and, adding the weighted item first user mouse behavior semantic class support feature vector and the weighted item second user mouse behavior semantic class support feature vector according to the position point to obtain the user mouse behavior multi-scale semantic coding feature vector.
[0084] Specifically, in one example, the semantic position-by-position granularity interaction fusion module is used to process the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector to obtain a multi-scale semantic coding feature vector of the user mouse behavior, including: using the semantic position-by-position granularity interaction fusion module to process the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector using the following semantic position-by-position granularity interaction formula to obtain the multi-scale semantic coding feature vector of the user mouse behavior; wherein the semantic position-by-position granularity interaction formula is:
[0085]
[0086] Among them, v1 and v2 are the eigenvalues of each position in the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector, v is the eigenvalue of each position in the user mouse behavior multi-scale semantic coding feature vector, V1 and V2 are the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector, concat(·,·) represents the concatenation of vectors, W is the transformation matrix, b is the bias vector, T is the activation linear transformation user mouse behavior multi-scale semantic feature vector, t is the threshold value of each position in the activation linear transformation user mouse behavior multi-scale semantic feature vector, t∈[0,1], and sigmoid(·) represents the sigmoid activation function.
[0087] Then, the multi-scale semantic encoding feature vector of the user's mouse behavior is passed through a classifier-based decision maker to obtain a decision result, and the decision result is used to indicate whether the user's mouse behavior is operated by the user himself. In other words, the multi-scale temporal correlation feature information of the user's mouse behavior semantics is used for classification processing, so as to make a decision to determine whether the user's mouse behavior is operated by the user himself. In this way, the user's identity can be determined based on the user's mouse behavior temporal semantics without deploying additional hardware devices, thereby improving the convenience and accuracy of user identity authentication.
[0088] Accordingly, in step S550, based on the multi-scale semantic coding feature vector of the user's mouse behavior, it is determined whether the user's mouse behavior is operated by the user himself, including: passing the multi-scale semantic coding feature vector of the user's mouse behavior through a classifier-based decision maker to obtain a decision result, and the decision result is used to indicate whether the user's mouse behavior is operated by the user himself.
[0089] It should be understood that the role of the classifier is to use the given categories and known training data to learn classification rules and classifiers, and then classify (or predict) unknown data. Logistic regression and SVM are often used to solve binary classification problems. For multi-class classification problems, logistic regression or SVM can also be used, but multiple binary classifications are required to form a multi-classification. However, this is prone to errors and is not efficient. Commonly used multi-classification methods include the Softmax classification function.
[0090] Furthermore, in the technical solution of the present invention, the user behavior-based identity authentication method also includes a training step: for training the first mouse behavior context semantic encoder based on the Transformer structure, the second mouse behavior context semantic encoder based on the bidirectional long short-term memory neural network model, the semantic position-by-position granularity interaction fusion module and the classifier-based decision maker.
[0091] The training step includes: obtaining training data, wherein the training data includes a time series of training user mouse behaviors; performing one-hot encoding on each training user mouse behavior in the time series of training user mouse behaviors to obtain a time series of training user mouse behaviors one-hot encoding embedded representation vectors; passing the time series of training user mouse behaviors one-hot encoding embedded representation vectors through the first mouse behavior context semantic encoder based on the Transformer structure to obtain a first training user mouse behavior semantic encoding feature vector; passing the time series of training user mouse behaviors one-hot encoding embedded representation vectors through the second mouse behavior context semantic encoder based on the bidirectional long short-term memory neural network model to obtain a second training user mouse behavior semantic encoding feature vector; using the semantic position-by-position granularity interactive fusion model The block processes the first training user mouse behavior semantic encoding feature vector and the second training user mouse behavior semantic encoding feature vector to obtain a training user mouse behavior multi-scale semantic encoding feature vector; performs feature optimization on the training user mouse behavior multi-scale semantic encoding feature vector to obtain an optimized training user mouse behavior multi-scale semantic encoding feature vector; passes the optimized training user mouse behavior multi-scale semantic encoding feature vector through the classifier-based decision maker to obtain a classification loss function value; and, based on the classification loss function value, trains the first mouse behavior context semantic encoder based on the Transformer structure, the second mouse behavior context semantic encoder based on the bidirectional long short-term memory neural network model, the semantic position-by-position granularity interaction fusion module and the classifier-based decision maker.
[0092] In a preferred example, feature optimization is performed on the multi-scale semantic coding feature vector of training user mouse behavior to obtain an optimized multi-scale semantic coding feature vector of training user mouse behavior, including the following steps: calculating the point sum of the multi-scale semantic coding feature vector of training user mouse behavior and the square root of the length of the multi-scale semantic coding feature vector of training user mouse behavior and the inverse of the square root of the two-norm of the multi-scale semantic coding feature vector of training user mouse behavior to obtain a multi-scale semantic coding offset feature vector of training user mouse behavior; calculating the exponential function of the multi-scale semantic coding offset feature vector of training user mouse behavior with a natural constant as the base to obtain a multi-scale semantic coding offset prediction feature vector of training user mouse behavior; calculating the point product of the multi-scale semantic coding feature vector of training user mouse behavior and the one-norm and weight hyperparameter of the multi-scale semantic coding feature vector of training user mouse behavior to obtain a multi-scale semantic coding constraint feature vector of training user mouse behavior; and, calculating the point sum of the multi-scale semantic coding offset prediction feature vector of training user mouse behavior and the multi-scale semantic coding constraint feature vector of training user mouse behavior to obtain an optimized multi-scale semantic coding feature vector of training user mouse behavior.
[0093] Specifically, taking into account the semantic position-by-position granularity interactive fusion feature distribution of the multi-scale semantic encoding feature vector of the training user mouse behavior for the global contextual semantic association features represented by the one-hot encoding of the training user mouse behavior and the long-range-short-range contextual semantic association features represented by the one-hot encoding of the user mouse behavior, based on the overall distribution regression constraint of the decision maker of the classifier, in the above-mentioned preferred example, the structured norm representation of the multi-scale semantic encoding feature vector of the training user mouse behavior is used as the local canonical coordinates for each eigenvalue of the multi-scale semantic encoding feature vector of the training user mouse behavior to determine the class rotation offset of the vector overall distribution representation of the multi-scale semantic encoding feature vector of the training user mouse behavior relative to the eigenvalue for the class offset prediction direction of each eigenvalue of the multi-scale semantic encoding feature vector of the training user mouse behavior as the center, and the bounding box of the vector eigenvalue distribution of the multi-scale semantic encoding feature vector of the training user mouse behavior is used to perform eigenvalue constraints to improve the constraint of the multi-scale semantic encoding feature vector of the training user mouse behavior under the overall regression distribution, thereby improving the training speed of the model and the accuracy of the decision result obtained by the multi-scale semantic encoding feature vector of the training user mouse behavior through the decision maker based on the classifier. In this way, a more accurate decision can be made based on the temporal semantics of the user's mouse behavior to determine whether the user's mouse behavior is operated by the user himself, thereby improving the convenience and accuracy of user identity authentication.
[0094] Based on the above embodiments, see Figure 5, which is a schematic diagram of the structure of an identity authentication system 800 based on user behavior in an embodiment of the present disclosure. The identity authentication system 800 based on user behavior includes: a behavior acquisition module 810, which is used to acquire the time series of user mouse behavior, wherein the user mouse behavior includes mouse movement events, left mouse button press, right mouse button press, left mouse button pop-up and right mouse button pop-up; a one-hot encoding module 820, which is used to perform one-hot encoding on each user mouse behavior in the time series of the user mouse behavior to obtain a time series of one-hot encoding embedded representation vectors of the user mouse behavior; a multi-scale semantic encoding module 830, which is used to perform semantic encoding of user mouse behavior based on different scales on the time series of one-hot encoding embedded representation vectors of the user mouse behavior to obtain a first user mouse behavior semantic encoding feature vector and a second user mouse behavior semantic encoding feature vector; an interactive fusion module 840, which is used to process the first user mouse behavior semantic encoding feature vector and the second user mouse behavior semantic encoding feature vector using a semantic position-by-position granularity interactive fusion module to obtain a multi-scale semantic encoding feature vector of the user mouse behavior; and an identity authentication module 850, which is used to determine whether the user's mouse behavior is operated by the user himself based on the multi-scale semantic encoding feature vector of the user mouse behavior.
[0095] In one example, in the above-mentioned user behavior-based identity authentication system 800, the multi-scale semantic encoding module 830 includes: a first semantic encoding unit, used to embed the one-hot encoding of the user mouse behavior into the time series of the representation vector through a first mouse behavior context semantic encoder based on a Transformer structure to obtain the first user mouse behavior semantic encoding feature vector; and, a second semantic encoding unit, used to embed the one-hot encoding of the user mouse behavior into the time series of the representation vector through a second mouse behavior context semantic encoder based on a bidirectional long short-term memory neural network model to obtain the second user mouse behavior semantic encoding feature vector.
[0096] Here, those skilled in the art will appreciate that the specific functions and operations of each module in the above-mentioned user behavior-based identity authentication system 800 have been described in detail above. Figures 2 to 4 The description of the user behavior-based authentication method has been introduced in detail, and therefore, its repeated description will be omitted.
[0097] Figure 6 FIG. 1 is an application scenario diagram of the user behavior-based identity authentication method according to an embodiment of the present disclosure. Figure 6 As shown, in this application scenario, first, the time series of the user's mouse behavior is obtained (for example, Figure 6D), then, the time series of the user's mouse behavior is input to a server (e.g., Figure 6 In S) shown in , the server can use the user behavior-based identity authentication algorithm to process the time series of the user's mouse behavior to obtain a decision result indicating whether the user's mouse behavior is operated by the user himself.
[0098] Furthermore, if Figure 7 As shown, the identity authentication model based on user mouse behavior provided by the present disclosure mainly includes four parts: mouse behavior preprocessing, mouse behavior feature value extraction, classification model construction and classification decision.
[0099] Among them, the mouse behavior preprocessing process includes the collection of basic mouse events and the combination of mouse behaviors. In this process, the captured basic mouse events are combined into mouse behaviors that can be used for feature value calculation through certain rules; mouse feature value extraction is to extract the corresponding feature values of the captured behaviors of different mouse types, and these feature values will be used to train the classification model after discretization, or as the input of the classification decision model to authenticate the user identity; training modeling uses the collected behavioral feature values of different users to build a classification model, which makes classification predictions on the belonging relationship of a set of monitored mouse feature value data; classification decision is to authenticate the user identity through the monitored mouse feature value data. This process is divided into two layers: classification layer and decision layer.
[0100] In order to effectively describe the user's mouse behavior, the mouse behavior is divided into layers. All high-level mouse behaviors are composed of low-level mouse behaviors according to certain rules, and all mouse behaviors can be divided into independent basic mouse event sequences.
[0101] All mouse behaviors can be broken down into a sequence of basic mouse events. The following is a description of the basic mouse events. Mouse move event (m): This event is triggered when the mouse moves from one point to another. Mouse press event (down): This event is triggered when the mouse button is pressed. This article only considers the left mouse button press (1d) and the right mouse button press (rd). Mouse pop-up event (up): This event is triggered when the mouse button is popped up. This article only considers the left mouse button pop-up (1u) and the right mouse button pop-up (ru). The mouse events in this article are represented in the form of a quadruple.<type,time,(x,y)> Type indicates the type, time indicates the capture time, x indicates the horizontal coordinate of the mouse event capture position, and y indicates the vertical coordinate of the mouse event capture position.
[0102] This paper divides mouse behaviors into three levels. The low-level (level I) mouse behaviors are composed of a series of basic mouse events (including mouse movement, pressing and releasing), and the high-level (level II and III) mouse behaviors are composed of low-level mouse behaviors linked according to certain rules. The mouse behaviors of the first level include left-click (LC), right-click (RC), left-drag (LDD), right-drag (RDD) and mouse movement sequence (MMS). The mouse behaviors of the second level include left-double-click (DC) and mouse movement (MM). The mouse behaviors of the third level are some mouse behaviors completed on the basis of mouse movement, including mouse movement plus left-click behavior (MM_LC), movement plus right-click behavior (MM_RC), movement plus left-drag behavior (MM_LDD), movement plus right-drag behavior (MM_RDD) and movement plus double-click behavior (MM_DC).
[0103] Furthermore, the mouse feature values used in the present disclosure are continuous variables in terms of their value range. Therefore, in order to use these feature values to train a classification model, these feature values need to be processed.
[0104] Method 1: Distance discretization. In a simple double-click or single-click behavior, the mouse position generally does not change. Therefore, this article only considers whether the mouse position has changed when considering this feature value, regardless of how much the mouse position has changed. Discretization is performed according to the following rules. If there is a change in position during a single-click or double-click behavior, it is recorded as 1; if there is no change in position, it is recorded as 2. This discretization rule is applied to feature values such as TDC, FCD, ID, SCD, and DC.
[0105] Method 2: Interval division. Some other feature values, such as moving time, are continuous and cannot be directly applied to the training of classification models. Therefore, these feature values need to be divided to a certain extent. Divide the data into several intervals, and use interval labels to mark the data that fall within the same interval. The data in the same interval no longer has feature distinction. In this paper, a partitioning method based on the maximum information gain standard is used for a continuous feature attribute. This method consists of two parts. The first part is to calculate the interval to be divided, and the second part is to find the segmentation point set.
[0106] The first part is based on the Gaussian distribution (μ,σ) of each user on the feature attribute. 2) Calculate the approximate distribution of user feature data. The use of Gaussian distribution to measure the approximate distribution of user data is based on two considerations. From the perspective of probability statistics, a large number of random variables in practice obey or approximately obey Gaussian distribution, and at the same time, the characteristics of behavioral authentication are comprehensively considered. The data range set in this article is (μ-1.96*σ,μ+1.96*σ). According to Gaussian distribution, theoretically, the data within this interval accounts for 95.449974% of all data. Finally, the union of all legal user intervals is calculated, and this interval is the interval to be divided. This method can effectively reduce the impact of abnormal points in the data on the discretized data.
[0107] The second part is to divide the interval based on the interval obtained in the first part with the maximum information gain as the standard, and finally obtain the set of segmentation points in the interval. The division standard of this article is to maximize the information gain of the interval after the division. The method used is to sort all the data points in the interval in ascending order and obtain the sequence (x1, x2, x3, ..., x n ), take the midpoint of every two adjacent points in this sequence as the partition point to be selected, select the point that can make the information gain of the partitioned interval the largest as the partition point, and then select the part with larger entropy in the two parts after the partition to continue the partition until the set stop partition condition is met. The stop condition set in this paper is that the set number of intervals is reached (the number of intervals cannot be greater than the number of existing legal users) or the interval cannot be further divided.
[0108] Furthermore, the present disclosure utilizes a random forest-based method to construct a classifier, thereby achieving the purpose of classifying and judging the user mouse behaviors collected during the training phase. Specifically, each type of mouse behavior corresponds to a random forest classifier, and each type of mouse behavior data is expressed in the form of a matrix. Each column of the matrix corresponds to a characteristic type of the mouse behavior, and each row of the matrix corresponds to an instance of the type of user behavior, i.e., an eigenvalue vector, and each row of data is identified by a user ID. For an N*M behavior matrix, N represents the number of row vectors of the matrix, which represents the number of instances of the behavior type, and these instances come from legitimate users of the system; M represents the number of column vectors, which represents the number of eigenvalues of this behavior type.
[0109] The classification decision model proposed in this paper consists of two layers: the first layer is the classifier judgment layer, and the second layer is the decision layer. The user identity authentication process based on the classification decision model is as follows: Figure 8 As shown. User ID is the user ID value that establishes a legal connection with the server through the user name and password. a1,a2,…,a m Here, it refers to the mouse behavior data obtained from monitoring at the point where the connection is established, that is, the feature vector representing each mouse behavior.
[0110] Based on the above embodiments, another exemplary embodiment of an electronic device is also provided in the embodiments of the present disclosure. In some possible implementations, the electronic device in the embodiments of the present disclosure may include a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor can implement the steps of the user behavior-based identity authentication method in the above embodiments when executing the program.
[0111] For example, the electronic device is disclosed in the present invention Figure 1 Taking the server 100 in the example as an example, the processor in the electronic device is the processor 110 in the server 100, and the memory in the electronic device is the memory 120 in the server 100.
[0112] An embodiment of the present disclosure also provides a computer-readable storage medium. Fig. 9 FIG. 1 is a schematic diagram of a computer-readable storage medium 1000 according to an embodiment of the present disclosure. Fig. 9 As shown, the computer-readable storage medium 1000 stores computer-executable instructions 1001. When the computer-executable instructions 1001 are executed by the processor, the user behavior-based identity authentication method according to the embodiment of the present disclosure described with reference to the above figures can be executed. The computer-readable storage medium includes, but is not limited to, for example, volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc.
[0113] The embodiments of the present disclosure also provide a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs the user behavior-based identity authentication method according to the embodiments of the present disclosure.
[0114] Those skilled in the art will appreciate that the contents disclosed in this disclosure may be subject to various variations and improvements. For example, the various devices or components described above may be implemented by hardware, or by software, firmware, or a combination of some or all of the three.
[0115] In addition, although the present disclosure makes various references to certain units in the system according to embodiments of the present disclosure, any number of different units may be used and run on the client and / or server. The units are illustrative only, and different aspects of the systems and methods may use different units.
[0116] Those skilled in the art will appreciate that all or part of the steps in the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk. Optionally, all or part of the steps in the above embodiment can also be implemented using one or more integrated circuits. Accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of a software functional module. The present disclosure is not limited to any particular form of combination of hardware and software.
[0117] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present disclosure belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology and should not be interpreted in an idealized or highly formal sense, unless explicitly defined as such herein.
[0118] The above is an explanation of the present disclosure and should not be considered as a limitation thereof. Although several exemplary embodiments of the present disclosure have been described, it will be readily understood by those skilled in the art that many modifications may be made to the exemplary embodiments without departing from the novel teachings and advantages of the present disclosure. Therefore, all such modifications are intended to be included within the scope of the present disclosure as defined in the claims. It should be understood that the above is an explanation of the present disclosure and should not be considered as being limited to the specific embodiments disclosed, and modifications to the disclosed embodiments and other embodiments are intended to be included within the scope of the appended claims. The present disclosure is defined by the claims and their equivalents.
Claims
1. An identity authentication method based on user behavior, It is characterized in that include: Acquire a time series of a user's mouse behavior, wherein the user's mouse behavior includes a mouse movement event, a left mouse button pressed, a right mouse button pressed, a left mouse button released, and a right mouse button released; Performing one-hot encoding on each user mouse behavior in the time series of the user mouse behavior to obtain a time series of one-hot encoding embedding representation vectors of the user mouse behavior; Perform semantic coding of the user mouse behavior based on different scales on the time series of the one-hot encoding embedding representation vector of the user mouse behavior to obtain a first user mouse behavior semantic coding feature vector and a second user mouse behavior semantic coding feature vector; Using a semantic position-by-position granularity interaction fusion module, processing the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector to obtain a user mouse behavior multi-scale semantic coding feature vector; and Based on the multi-scale semantic coding feature vector of the user's mouse behavior, it is determined whether the user's mouse behavior is operated by the user himself.
2. The user behavior-based identity authentication method according to claim 1, It is characterized in that The time series of the one-hot encoding of the user mouse behavior is embedded in the representation vector and semantic encoding of the user mouse behavior based on different scales is performed to obtain a first user mouse behavior semantic encoding feature vector and a second user mouse behavior semantic encoding feature vector, including: Passing the time series of the one-hot encoding embedding representation vector of the user mouse behavior through a first mouse behavior context semantic encoder based on a Transformer structure to obtain the first user mouse behavior semantic encoding feature vector; and The time series of the one-hot encoding embedding representation vector of the user mouse behavior is passed through a second mouse behavior context semantic encoder based on a bidirectional long short-term memory neural network model to obtain the second user mouse behavior semantic encoding feature vector.
3. The user behavior-based identity authentication method according to claim 2, It is characterized in that The first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector are processed using a semantic position-by-position granularity interaction fusion module to obtain a user mouse behavior multi-scale semantic coding feature vector, including: Cascading the first user mouse behavior semantic encoding feature vector and the second user mouse behavior semantic encoding feature vector to obtain a user mouse behavior multi-scale semantic cascade feature vector; Using a transformation matrix and a bias vector to linearly transform the multi-scale semantic cascade feature vector of the user mouse behavior to obtain a linearly transformed multi-scale semantic cascade feature vector of the user mouse behavior; Using a sigmoid activation function to activate the linearly transformed user mouse behavior multi-scale semantic cascade feature vector to obtain an activated linearly transformed user mouse behavior multi-scale semantic feature vector; and Taking each position feature value in the activated linear transformation user mouse behavior multi-scale semantic feature vector as a threshold value, a weighted sum of the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector is calculated to obtain the user mouse behavior multi-scale semantic coding feature vector.
4. The user behavior-based identity authentication method according to claim 3, It is characterized in that Using a transformation matrix and a bias vector to linearly transform the multi-scale semantic cascade feature vector of the user mouse behavior to obtain a linearly transformed multi-scale semantic cascade feature vector of the user mouse behavior, including: After calculating the matrix multiplication of the multi-scale semantic cascade feature vector of the user mouse behavior and the transformation matrix, the obtained feature vector is added to the bias vector by position to obtain the linearly transformed multi-scale semantic cascade feature vector of the user mouse behavior.
5. The user behavior-based identity authentication method according to claim 4, It is characterized in that Taking each position feature value in the activated linear transformation user mouse behavior multi-scale semantic feature vector as a threshold value, calculating a weighted sum of the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector to obtain the user mouse behavior multi-scale semantic coding feature vector, including: Calculating an exponential function of the semantic coding feature vector of the first user's mouse behavior with a natural constant as the base to obtain a semantic class support feature vector of the first user's mouse behavior; Calculating an exponential function of the second user mouse behavior semantic encoding feature vector with a natural constant as the base to obtain a second user mouse behavior semantic class support feature vector; Calculate the product of the feature value of each position in the first user mouse behavior semantic class support feature vector and the threshold value to obtain a weighted first user mouse behavior semantic class support feature vector; Calculating the product of the feature value of each position in the second user mouse behavior semantic class support feature vector and one minus a threshold value to obtain a weighted second user mouse behavior semantic class support feature vector; and The weighted item first user mouse behavior semantic class support feature vector and the weighted item second user mouse behavior semantic class support feature vector are processed according to the position points to obtain the user mouse behavior multi-scale semantic coding feature vector.
6. The user behavior-based identity authentication method according to claim 5, It is characterized in that Determining whether the user's mouse behavior is operated by the user himself based on the multi-scale semantic coding feature vector of the user's mouse behavior includes: The multi-scale semantic encoding feature vector of the user's mouse behavior is passed through a classifier-based decision maker to obtain a decision result, and the decision result is used to indicate whether the user's mouse behavior is operated by the user himself.
7. The user behavior-based identity authentication method according to claim 6, It is characterized in that It also includes a training step: for training the first mouse behavior context semantic encoder based on the Transformer structure, the second mouse behavior context semantic encoder based on the bidirectional long short-term memory neural network model, the semantic position-by-position granularity interaction fusion module and the classifier-based decision maker.
8. The user behavior-based identity authentication method according to claim 7, It is characterized in that The training step comprises: Acquire training data, wherein the training data includes a time series of a training user's mouse behavior; Performing one-hot encoding on each training user mouse behavior in the time series of the training user mouse behavior to obtain a time series of one-hot encoding embedding representation vectors of the training user mouse behavior; Pass the time series of the one-hot encoding embedding representation vector of the training user mouse behavior through the first mouse behavior context semantic encoder based on the Transformer structure to obtain a first training user mouse behavior semantic encoding feature vector; Passing the time series of the one-hot encoding embedding representation vector of the training user's mouse behavior through the second mouse behavior context semantic encoder based on the bidirectional long short-term memory neural network model to obtain a second training user's mouse behavior semantic encoding feature vector; Using the semantic position-by-position granularity interaction fusion module, the first training user mouse behavior semantic coding feature vector and the second training user mouse behavior semantic coding feature vector are processed to obtain a training user mouse behavior multi-scale semantic coding feature vector; Performing feature optimization on the multi-scale semantic coding feature vector of the training user's mouse behavior to obtain an optimized multi-scale semantic coding feature vector of the training user's mouse behavior; Passing the optimized multi-scale semantic encoding feature vector of the training user's mouse behavior through the classifier-based decision maker to obtain a classification loss function value; and Based on the classification loss function value, the first mouse behavior context semantic encoder based on the Transformer structure, the second mouse behavior context semantic encoder based on the bidirectional long short-term memory neural network model, the semantic position-by-position granularity interaction fusion module and the classifier-based decision maker are trained.
9. An identity authentication system based on user behavior, It is characterized in that include: A behavior acquisition module, used to acquire a time series of a user's mouse behavior, wherein the user's mouse behavior includes mouse movement events, left mouse button press, right mouse button press, left mouse button pop-up, and right mouse button pop-up; A one-hot encoding module, used for performing one-hot encoding on each user mouse behavior in the time series of the user mouse behavior to obtain a time series of one-hot encoding embedding representation vectors of the user mouse behavior; A multi-scale semantic coding module, used for embedding the one-hot coding of the user mouse behavior into the time series of the representation vector to perform semantic coding of the user mouse behavior based on different scales to obtain a first user mouse behavior semantic coding feature vector and a second user mouse behavior semantic coding feature vector; an interactive fusion module, configured to process the first user mouse behavior semantic coding feature vector and the second user mouse behavior semantic coding feature vector using a semantic position-by-position granularity interactive fusion module to obtain a user mouse behavior multi-scale semantic coding feature vector; and The identity authentication module is used to determine whether the user's mouse behavior is operated by the user himself based on the multi-scale semantic coding feature vector of the user's mouse behavior.
10. The user behavior-based identity authentication system according to claim 9, It is characterized in that The multi-scale semantic encoding module comprises: A first semantic encoding unit, configured to embed the one-hot encoding of the user mouse behavior into a time series of a representation vector through a first mouse behavior context semantic encoder based on a Transformer structure to obtain the first user mouse behavior semantic encoding feature vector; and The second semantic encoding unit is used to embed the one-hot encoding of the user mouse behavior into the time series of the representation vector through a second mouse behavior context semantic encoder based on a bidirectional long short-term memory neural network model to obtain the second user mouse behavior semantic encoding feature vector.
