Identity recognition data processing method and device, electronic equipment and storage medium
By collecting and encrypting screen touch data and sensor data, the continuous identification of user identities in electronic devices is achieved, solving the security problems of explicit identification methods and the limitations of multi-finger data collection technology in the existing technology, and improving application scenarios and data security.
Patent Information
- Application Number
- CN202310232417.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-09
- Publication Date
- 2024-09-10
AI Technical Summary
When using existing electronic devices to identify and authenticate users, the explicit identification method is easily cracked and cannot continuously protect user identity security. Furthermore, multi-finger screen touch data collection technology has limitations and security risks.
By collecting screen touch data and sensor data, encrypting it and saving it to the database, using key information for decryption and storage, it can reflect the behavioral differences between different users and achieve continuous user identification.
It increases the number of application scenarios for identity recognition, enhances data security, is suitable for multi-finger operations in free scenarios, and reduces collection costs and security risks.
Smart Images

Figure CN118627042A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and more specifically, to a method, device, electronic device and storage medium for processing identity recognition data. Background Art
[0002] With the development of science and technology, electronic devices are used more and more widely and have more and more functions. They have become one of the necessities in people's daily life. At present, electronic devices can be used to identify and authenticate user identities. However, when electronic devices identify and authenticate user identities, they generally use explicit identification methods such as passwords, personal identification codes, password patterns, face or fingerprint recognition. This identification method is easy to be cracked, resulting in limited application scenarios. Summary of the invention
[0003] In view of the above problems, the present application proposes a method, device, electronic device and storage medium for processing identity recognition data to solve the above problems.
[0004] In a first aspect, an embodiment of the present application provides a method for processing identity recognition data, which is applied to an electronic device, wherein the electronic device is connected to a server and a database respectively, and the server is connected to the database, and the method comprises: collecting identity recognition data corresponding to the electronic device, wherein the identity recognition data comprises screen touch data and sensor data; encrypting the identity recognition data to obtain encrypted data, and determining key information corresponding to the encrypted data; sending the encrypted data to the database, and sending the key information to the server to instruct the server to obtain the encrypted data from the database, and decrypt the encrypted data based on the key information and store it in the database.
[0005] In a second aspect, an embodiment of the present application provides a method for processing identity recognition data, which is applied to a server, wherein the server is connected to an electronic device and a database respectively, and the electronic device is connected to the database, and the method comprises: receiving key information sent by the electronic device, wherein the key information corresponds to encrypted data, and the encrypted data is obtained by the electronic device by encrypting the collected identity recognition data and then sending it to the database, and the identity recognition data comprises screen touch data and sensor data; obtaining the encrypted data from the database, and decrypting the encrypted data based on the key information and storing it in the database.
[0006] In a third aspect, an embodiment of the present application provides an identity data processing device, which is applied to an electronic device, wherein the electronic device is connected to a server and a database respectively, and the server is connected to the database, and the device comprises: a data acquisition module, for acquiring identity data corresponding to the electronic device, wherein the identity data comprises screen touch data and sensor data; a data encryption module, for encrypting the identity data to obtain encrypted data, and determining key information corresponding to the encrypted data; a data sending module, for sending the encrypted data to the database, and sending the key information to the server, so as to instruct the server to obtain the encrypted data from the database, and decrypt the encrypted data based on the key information and store it in the database.
[0007] In a fourth aspect, an embodiment of the present application provides a device for processing identity recognition data, which is applied to a server, wherein the server is connected to an electronic device and a database, respectively, and the electronic device is connected to the database, and the device comprises: an information receiving module, for receiving key information sent by the electronic device, wherein the key information corresponds to encrypted data, and the encrypted data is obtained by the electronic device by encrypting the collected identity recognition data and then sending it to the database, and the identity recognition data comprises screen touch data and sensor data; a data storage module, for obtaining the encrypted data from the database, and decrypting the encrypted data based on the key information and storing it in the database.
[0008] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.
[0009] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
[0010] The embodiments of the present application provide a method, device, electronic device, and storage medium for processing identity recognition data, which collect identity recognition data corresponding to the electronic device, wherein the identity recognition data includes screen touch data and sensor data, encrypts the identity recognition data to obtain encrypted data, and determines key information corresponding to the encrypted data, sends the encrypted data to a database, and sends the key information to a server to instruct the server to obtain the encrypted data from the database, and decrypts the encrypted data based on the key information and stores it in the database, thereby collecting screen touch data and sensor data as data required for identity recognition and encrypting and saving them in a database, which can reflect the behavioral differences between different users, and then perform continuous user identity recognition, which can increase the number of application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0012] Figure 1 A schematic diagram showing an application environment that can be used for the method for processing identity recognition data provided in an embodiment of the present application;
[0013] Figure 2 A timing diagram showing a method for processing identity recognition data provided by an embodiment of the present application;
[0014] Figure 3 A schematic diagram showing a flow chart of a method for processing identity recognition data provided by an embodiment of the present application;
[0015] Figure 4 A schematic diagram showing a flow chart of a method for processing identity recognition data provided by an embodiment of the present application;
[0016] Figure 5 This application shows Figure 4 The flowchart of step S320 of the method for processing identity recognition data is shown;
[0017] Figure 6 A schematic diagram showing a flow chart of a method for processing identity recognition data provided by an embodiment of the present application;
[0018] Figure 7 This application shows Figure 6 The flowchart of step S420 of the method for processing identity recognition data is shown;
[0019] Figure 8A flow chart of a method for processing identity recognition data provided in an embodiment of the present application is shown.
[0020] Fig. 9 A schematic diagram showing a flow chart of a method for processing identity recognition data provided by an embodiment of the present application;
[0021] Fig.10 A schematic diagram showing a flow chart of a method for processing identity recognition data provided by an embodiment of the present application;
[0022] Fig.11 A schematic diagram showing a flow chart of a method for processing identity recognition data provided by an embodiment of the present application;
[0023] Fig.12 A schematic diagram showing a flow chart of a method for processing identity recognition data provided by an embodiment of the present application;
[0024] Fig.13 A schematic diagram showing a flow chart of a method for processing identity recognition data provided by an embodiment of the present application;
[0025] Fig.14 A module block diagram of an identity recognition data processing device provided by an embodiment of the present application is shown;
[0026] Fig.15 A module block diagram of an identity recognition data processing device provided by an embodiment of the present application is shown;
[0027] Fig.16 A block diagram of an electronic device for executing a method for processing identity recognition data according to an embodiment of the present application is shown;
[0028] Fig.17 A storage unit for storing or carrying program codes for implementing a method for processing identity recognition data according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0030] In the early research on identity authentication of electronic devices (such as mobile smart terminals), the interaction between users and electronic devices was mainly through keystrokes, input commands, single-finger operation of touch screen (such as clicking, sliding) / face / fingerprint / iris interaction to explicitly verify / identify user identities, such as based on passwords / personal identification codes (PINs) / password patterns / face or fingerprint recognition, etc. This type of explicit user identity recognition method has problems such as passwords being difficult to remember, cracked and easily leaked, face recognition being bypassed, and voice being forged. It is difficult to continuously ensure the identity security of users, and none of them directly use the user's own behavior habits as the basis for authentication / identification. As people use electronic devices for longer and longer periods of time, if the implicit information of touch and other behaviors in this type of human-computer interaction can be captured, learned and utilized by users' implicit cognitive habits and behavioral habits, thereby extracting the behavioral pattern characteristics of different users, then continuous implicit identity recognition of users can be achieved.
[0031] At present, the screen touch data of electronic devices mainly relies on the software development of the electronic device and the support of the underlying operating system to collect and store data. At the same time, the current screen touch data collection technology can only collect single-finger screen touch data, and cannot support the collection of multi-finger screen touch data, which makes data collection very limited. In the collection technology of multi-finger screen touch data, the touch posture and operation scenario of the user's multi-finger operation are often restricted according to the research content.
[0032] However, when using electronic devices in daily life, users will switch between single-finger and multi-finger operations arbitrarily in free scenarios. Current methods mainly perform single-finger operations or multi-finger operations with specific gestures in specified scenarios. The actual application scenarios of the data are greatly limited, which makes the portability and scalability of current data collection methods low. Existing data collection methods rarely consider aspects such as data transmission security after data collection is completed and preliminary quality inspection of collected data, which may cause data leakage and secondary collection after collection is completed, bringing security risks and increasing collection costs. For multi-finger touch operations in free scenarios, it is impossible to directly use raw data for training and testing deep learning models.
[0033] In response to the above problems, the inventors have discovered after long-term research and proposed the processing method, device, electronic device and storage medium of identity recognition data provided in the embodiments of the present application. By collecting screen touch data and sensor data as the data required for identity recognition and encrypting and saving them in a database, the behavioral differences between different users can be reflected, and then continuous user identity recognition can be performed, which can increase the number of application scenarios to which it is applied. That is, there is no restriction on the user's finger operation, and the user can freely use any application function in the electronic device. This scenario is consistent with the scenario of the user's daily use of electronic devices, and the method has practical application value. Among them, the specific method for processing identity recognition data is described in detail in the subsequent embodiments.
[0034] The following describes an application environment for the method for processing identity recognition data provided in the embodiments of the present application.
[0035] See also Figure 1 , Figure 1 The following is a schematic diagram showing an application environment for the method for processing identity recognition data provided in the embodiment of the present application. Figure 1 As shown, it includes an electronic device 100, a server 200 and a database 300. The electronic device 100 is connected to the server 200 and the database 300 respectively to realize data interaction between the electronic device 100 and the server 200, and to realize data interaction between the electronic device 100 and the database 300. In addition, the server 200 is connected to the database 300 to realize data interaction between the server 200 and the database 300. Optionally, a data capture service (DCS) is pre-installed in the system application of the electronic device 100 to collect the identity recognition data of the electronic device through the data capture service.
[0036] See also Figure 2 , Figure 2 The timing diagram of the method for processing identity recognition data provided by an embodiment of the present application is shown. The method is used to collect screen touch data and sensor data as the data required for identity recognition and encrypt and save them in a database, which can reflect the behavioral differences between different users, and then perform continuous user identity recognition, which can increase the number of application scenarios. Figure 2 The process shown in FIG. 1 is described in detail, and the method for processing identity recognition data may specifically include the following steps:
[0037] Step S110: the electronic device collects identity recognition data corresponding to the electronic device, wherein the identity recognition data includes screen touch data and sensor data.
[0038] In this embodiment, the identity recognition data corresponding to the electronic device may include screen touch data corresponding to the electronic device and sensor data corresponding to the electronic device. It is understandable that the identity recognition data corresponding to the electronic device may include screen touch data corresponding to the electronic device and sensor data corresponding to the electronic device during the user's touch operation of the electronic device.
[0039] Optionally, the screen touch data corresponding to the electronic device may include a timestamp corresponding to when the user touches the screen of the electronic device. That is, when the user touches the electronic device, the timestamp corresponding to the current specific time of the electronic device can represent the time of the current touch operation.
[0040] Optionally, the screen touch data corresponding to the electronic device may include the touch area size corresponding to when the user touches the screen of the electronic device. That is, when the user touches the electronic device, the size of the contact area between the current user touch operation and the screen of the electronic device is calculated by treating the contact surface between the user's touch operation finger and the screen as an ellipse, and the contact area can be characterized by the contact degree of the current touch operation.
[0041] Optionally, the screen touch data corresponding to the electronic device may include the screen orientation flag screenOrientation corresponding to when the user touches the screen of the electronic device. That is, when the user touches the electronic device, whether the screen orientation of the electronic device and the initial position of the coordinate system ensure that the lower left corner of the screen is always 0 when the screen is horizontal, can indicate whether the screen orientation of the electronic device during the current touch operation is horizontal or vertical.
[0042] Optionally, the screen touch data corresponding to the electronic device may include the coordinates of the horizontal axis of the screen corresponding to the user touching the screen of the electronic device. That is, when the user touches the electronic device, the coordinates corresponding to the current user touch operation on the horizontal axis of the screen can represent the position of the current touch operation.
[0043] Optionally, the screen touch data corresponding to the electronic device may include the coordinates of the vertical axis of the screen corresponding to the user touching the screen of the electronic device. That is, when the user touches the electronic device, the coordinates corresponding to the current user touch operation on the vertical axis of the screen can represent the position of the current touch operation.
[0044] Optionally, the screen touch data corresponding to the electronic device may include the touch action type corresponding to the user touching the screen of the electronic device. That is, when the user touches the electronic device, the specific action type of the touch operation, where 0 is pressing, 1 is sliding, and 2 is lifting, which can represent the relationship between the current touch operation and the complete action.
[0045] Optionally, the screen touch data corresponding to the electronic device may include the touch finger number corresponding to the user touching the screen of the electronic device. That is, when the user touches the electronic device, each finger of the user is numbered in all operations at the same time, and the finger number corresponding to the touch operation can represent the relationship between the current touch operation and other operations. It should be noted that the purpose of finger numbering is to
[0046] It is mainly used to distinguish between multi-finger operation and single-finger operation. It has nothing to do with the order of the user's fingers and is used to represent the number of fingers touching the screen.
[0047] Among them, the screen touch data corresponding to the electronic device may also include other more data, which will not be repeated here.
[0048] Optionally, the sensor data corresponding to the electronic device may include accelerometer data acce[acceX, acceY, acceZ]. That is, when the user touches the electronic device, the values of the accelerometer of the electronic device on the X, Y, and Z axes can represent the speed of spatial change of the electronic device under the current touch operation.
[0049] Optionally, the sensor data corresponding to the electronic device may include gyroscope data gyro[gyroX, gyroY, gyroZ]. That is, when the user touches the electronic device, the values of the gyroscope of the electronic device on the X, Y, and Z axes can represent the posture change of the electronic device under the current touch operation.
[0050] Optionally, the sensor data corresponding to the electronic device may include linear accelerometer data lin[linX, linY, linZ]. That is, when the user touches the electronic device, the values of the linear accelerometer of the electronic device on the X, Y, and Z axes can represent the posture change of the electronic device under the current touch operation.
[0051] Optionally, the sensor data corresponding to the electronic device may include gravimeter data gra[graX, graY, graZ]. When the user touches the electronic device, the values of the gravimeter of the electronic device on the X, Y, and Z axes may represent the posture change of the electronic device under the current touch operation.
[0052] Optionally, the sensor data corresponding to the electronic device may include direction meter data ori[oriX, oriY, oriZ]. When the user operates the electronic device by touch, the values of the direction meter of the electronic device on the X, Y, and Z axes can represent the posture change of the electronic device under the current touch operation.
[0053] Optionally, the sensor data corresponding to the electronic device may include rotation vector meter data ro[roX, roY, roZ]. When the user touches the electronic device, the values of the rotation vector meter of the electronic device on the X, Y, and Z axes can represent the posture change of the electronic device under the current touch operation.
[0054] Optionally, the sensor data corresponding to the electronic device may include magnetometer data mag[magX, magY, magZ]. When a user touches an electronic device, the values of the magnetometer of the electronic device on the X, Y, and Z axes may represent the posture change of the electronic device under the current touch operation.
[0055] The sensor data corresponding to the electronic device may also include other more data, which will not be described in detail here.
[0056] In some embodiments, the identity data corresponding to the electronic device may also include auxiliary data corresponding to the electronic device. Optionally, the auxiliary data corresponding to the electronic device may include a character string randomly generated by the electronic device when the identity data corresponding to the electronic device is first collected, which may represent the identity of the user and ensure the unique correspondence between the electronic device, the user (group), and the user data during the current identity data collection cycle; the auxiliary data corresponding to the electronic device may include the screen resolution screenResolution[length,width] corresponding to the electronic device; the auxiliary data corresponding to the electronic device may include the screen refresh rate screenRefreshRate corresponding to the electronic device, etc., which are not limited here.
[0057] In this embodiment, the identity recognition data corresponding to the electronic device may be collected. Optionally, the electronic device may be pre-installed with a data collection service, and the identity recognition data corresponding to the electronic device may be collected through the data collection service.
[0058] As one approach, a touch operation on the screen of the electronic device may be detected, wherein if a touch operation on the screen of the electronic device is detected, identity recognition data corresponding to the electronic device may be collected.
[0059] As another method, a touch operation on the screen of the electronic device can be detected. If a touch operation on the screen of the electronic device is detected, it can be determined whether the touch operation is a sliding operation. If it is determined that the touch operation is a sliding operation, identity recognition data corresponding to the electronic device can be collected.
[0060] In some embodiments, while a user is touching an electronic device, identity recognition data corresponding to the electronic device may be collected in real time, may be collected at preset time intervals, may be collected at preset time points, may be collected according to other strategies, etc., without limitation herein.
[0061] Step S120: The electronic device encrypts the identity recognition data to obtain encrypted data, and determines key information corresponding to the encrypted data.
[0062] In this embodiment, when the electronic device collects the corresponding identity recognition data, it can encrypt the identity recognition data to obtain encrypted data, and determine the key information corresponding to the encrypted data.
[0063] In some implementations, when the electronic device collects the corresponding identity identification data, it can encrypt the identity identification data with a key to obtain encrypted data, and encrypt the key to obtain key information corresponding to the encrypted data.
[0064] In some implementations, when the electronic device collects its corresponding identity recognition data, the collected identity recognition data of the electronic device may be encrypted in chronological order to obtain encrypted data.
[0065] Step S130: The electronic device sends the encrypted data to the database.
[0066] Step S140: The electronic device sends the key information to the server.
[0067] In this embodiment, when the electronic device obtains the encrypted data, it can send the encrypted data to the database based on the connection with the database. When the electronic device obtains the key information, it can send the key information to the server based on the connection with the server.
[0068] As a method, when the electronic device obtains the encrypted data and the key information corresponding to the encrypted data, it can send the encrypted data to the database and the key information to the server at the same time; it can first send the encrypted data to the database and then send the key information to the server; or it can first send the key information to the server and then send the encrypted information to the database, etc., without limitation here.
[0069] Step S150: The server obtains the encrypted data from the database.
[0070] In this embodiment, when the server receives the key information sent by the electronic device, it can respond to the key information and obtain the encrypted data corresponding to the key information from the database.
[0071] In some embodiments, when the server receives key information sent by an electronic device, it can generate request information based on the key information, and send the request information to the database based on the connection with the database. Accordingly, the database can search for and feedback the corresponding encrypted data in response to the request information. Based on this, the server can obtain the encrypted data from the database.
[0072] Step S160: decrypting the encrypted data based on the key information and storing the decrypted data in the database.
[0073] In this embodiment, when the server obtains the encrypted data, it can decrypt the encrypted data based on the key information and store it in the database.
[0074] In some embodiments, when the server obtains the encrypted data, it can decrypt the encrypted data based on the key information to obtain the identity identification data, and then send the identity identification data to the database based on the connection with the database. Accordingly, when the database receives the identity identification data sent by the server, it can store the identity identification data.
[0075] An embodiment of the present application provides a method for processing identity recognition data, in which an electronic device collects identity recognition data corresponding to the electronic device, wherein the identity recognition data includes screen touch data and sensor data, encrypts the identity recognition data to obtain encrypted data, and determines key information corresponding to the encrypted data, sends the encrypted data to a database, and sends the key information to a server, the server obtains the encrypted data from the database, and decrypts the encrypted data based on the key information and stores it in the database, thereby collecting screen touch data and sensor data as data required for identity recognition and encrypting and saving them in a database, which can reflect the behavioral differences between different users, and then perform continuous user identity recognition, which can increase the number of application scenarios.
[0076] See also Figure 3 , Figure 3 The flowchart of the method for processing identity recognition data provided by an embodiment of the present application is shown. The method is used to collect screen touch data and sensor data as data required for identity recognition and encrypt and save them in a database, which can reflect the behavioral differences between different users, and then perform continuous user identity recognition, which can increase the number of application scenarios and improve data security. In a specific embodiment, the method is applied to Fig.14The apparatus 400 for processing identity recognition data and the electronic device 600 ( Fig.16 ). Figure 3 The process shown in FIG. 1 is described in detail, and the method for processing identity recognition data may specifically include the following steps:
[0077] Step S210: Collecting identity recognition data corresponding to the electronic device, wherein the identity recognition data includes screen touch data and sensor data.
[0078] Step S220: encrypt the identity recognition data to obtain encrypted data, and determine key information corresponding to the encrypted data.
[0079] Step S230: Send the encrypted data to the database, and send the key information to the server to instruct the server to obtain the encrypted data from the database, and decrypt the encrypted data based on the key information and store it in the database.
[0080] For the detailed description of step S210 to step S230 , please refer to step S110 to step S160 , which will not be repeated here.
[0081] An embodiment of the present application provides a method for processing identity recognition data, which collects identity recognition data corresponding to an electronic device, wherein the identity recognition data includes screen touch data and sensor data, encrypts the identity recognition data to obtain encrypted data, and determines key information corresponding to the encrypted data, sends the encrypted data to a database, and sends the key information to a server to instruct the server to obtain the encrypted data from the database, and decrypts the encrypted data based on the key information and stores it in the database, thereby collecting screen touch data and sensor data as data required for identity recognition and encrypting and saving them in a database, which can reflect the behavioral differences between different users, and then perform continuous user identity recognition, which can increase the number of application scenarios.
[0082] See also Figure 4 , Figure 4 The flowchart of the method for processing identity recognition data provided by an embodiment of the present application is shown in FIG. Figure 4 The process shown in FIG. 1 is described in detail, and the method for processing identity recognition data may specifically include the following steps:
[0083] Step S310: Collecting identity recognition data corresponding to the electronic device, wherein the identity recognition data includes screen touch data and sensor data.
[0084] The specific description of step S310 can be found in step S110 , which will not be repeated here.
[0085] Step S320: writing the identity identification data into a file, and compressing the file containing the identity identification data to obtain a compressed file.
[0086] In this embodiment, when the identity identification data of the electronic device is collected, the identity identification data can be written into a file, and the file in which the identity identification data is written can be compressed to obtain a compressed file. Optionally, a file can be pre-created locally on the electronic device, and then, when the identity identification data of the electronic device is collected, the collected identity identification data can be written into the file one by one in order from early to late in the order of the collection time corresponding to the identity identification data, and the file in which the identity identification data is written can be compressed to obtain a compressed file.
[0087] In some embodiments, in the process of writing the collected identity data of the electronic device into a file, it can be detected whether the file into which the identity data is written meets a preset file condition. If so, the file into which the identity data is written can be compressed to obtain a compressed file. If not, the collected identity data of the electronic device can continue to be written into the file until the file into which the identity data is written meets the preset file condition and then compressed to obtain a compressed file. Optionally, the preset file condition can include that the amount of identity data written into the file reaches a quantity threshold, or that the capacity of the identity data written into the file reaches a capacity threshold, etc., which are not limited here.
[0088] See also Figure 5 , Figure 5 This application shows Figure 4 The process diagram of step S320 of the method for processing identity recognition data is shown below. Figure 5 The process shown is described in detail, and the method may specifically include the following steps:
[0089] Step S321: Cache the collected identity recognition data into the memory of the electronic device.
[0090] In some embodiments, when the identity data of the electronic device is collected, the collected identity data can be cached in the memory of the electronic device. Optionally, each time the identity data of the electronic device is collected, the collected identity data can be cached in the memory of the electronic device, that is, the electronic device can collect and cache the identity data at the same time to speed up the processing efficiency of the identity data.
[0091] Step S322: writing the identity recognition data cached in the memory of the electronic device into the file at a preset time interval, and compressing the file into which the identity recognition data is written to obtain the compressed file.
[0092] In some embodiments, in the process of caching the collected identity recognition data in the memory of the electronic device, the identity recognition data cached in the memory of the electronic device can be written into a file at a preset time interval, and the file written with the identity recognition data can be compressed to obtain a compressed file. Optionally, the preset time interval can include 30 seconds, 50 seconds, etc., which is not limited here.
[0093] Step S323: Clear the identity recognition data cached in the memory of the electronic device.
[0094] In some embodiments, when the identity identification data cached in the memory of the electronic device is written to a file, the identity identification data cached in the memory of the electronic device can be cleared, so that the processing of the identity identification data always occupies a lower memory of the electronic device. Optionally, clearing the identity identification data cached in the memory of the electronic device may include: deleting the cached identity identification data from the memory of the electronic device, or migrating the cached identity identification data from the memory of the electronic device to the hard disk of the electronic device, etc., which is not limited here.
[0095] Step S330: encrypt the compressed file to obtain encrypted data, and determine key information corresponding to the encrypted data.
[0096] In this embodiment, when a compressed file is obtained, the compressed file may be encrypted to obtain encrypted data (encrypted file), and key information corresponding to the encrypted data may be determined.
[0097] In some implementations, when a compressed file is obtained, the compressed file may be encrypted using a key to obtain encrypted data, and the key may be encrypted to obtain key information corresponding to the encrypted data.
[0098] Step S340: Send the encrypted data to the database, and send the key information to the server to instruct the server to obtain the encrypted data from the database, and decrypt the encrypted data based on the key information and store it in the database.
[0099] For the detailed description of step S340, please refer to steps S130 to S160, which will not be repeated here.
[0100] Compared with the method for processing identity recognition data provided by an embodiment of the present application, Figure 3The method for processing identity identification data shown in the figure, this embodiment also writes the identity identification data into a file, compresses the file with the identity identification data written into it to obtain a compressed file, and performs reverse encryption processing on the compressed file to obtain encrypted data, so that the amount of data transmitted can be reduced by compressing the identity identification data, thereby reducing the pressure of data transmission and improving the transmission efficiency of the identity identification data.
[0101] See also Figure 6 , Figure 6 The flowchart of the method for processing identity data provided by an embodiment of the present application is shown. The method is applied to the above-mentioned electronic device. In this embodiment, the electronic device is pre-set with a public key of a public-private key pair, and the server is pre-set with a private key of the public-private key pair. Figure 6 The process shown in FIG. 1 is described in detail, and the method for processing identity recognition data may specifically include the following steps:
[0102] Step S410: Collecting identity recognition data corresponding to the electronic device, wherein the identity recognition data includes screen touch data and sensor data.
[0103] For the detailed description of step S410, please refer to step S110, which will not be repeated here.
[0104] Step S420: Encrypt the identity data based on the public key of the public-private key pair to obtain the encrypted data, and determine the key information corresponding to the encrypted data.
[0105] In this embodiment, the electronic device may be pre-installed with a public key of a public-private key pair, and the server may be pre-installed with a private key of a public-private key pair. Optionally, the electronic device may generate a public-private key pair (public key RSAPK, private key RSASK) of an asymmetric encryption algorithm (such as an RSA algorithm), pre-install its public key RSAPK on the electronic device side, and pre-install its private key RSASK on the server side, so as to implement encryption and decryption operations in the network request of the electronic device, the server, and the database.
[0106] In some implementations, when identity identification data of an electronic device is collected, the identity identification data may be encrypted based on the public key of the public-private key pair to obtain encrypted data, and key information corresponding to the encrypted data may be determined.
[0107] See also Figure 7 , Figure 7 This application shows Figure 6 The process diagram of step S420 of the method for processing identity recognition data is shown below. Figure 7 The process shown is described in detail, and the method may specifically include the following steps:
[0108] Step S421: Generate an initial key and an initialization vector.
[0109] In some embodiments, the electronic device may generate an initial key and an initialization vector. Optionally, the electronic device may randomly generate an initial key and an initialization vector, for example, generating an initial key AESKeyi and an initialization vector IVi. The strings encrypted by different vectors are different, and the same vector is required for encryption and decryption. For each block, the key is unchanged, but only the vector of the first block is provided by the user, and the vectors of other blocks are automatically generated.
[0110] Step S422: symmetrically encrypt the identity data based on a symmetric encryption algorithm and the initial key to obtain the encrypted data.
[0111] In some implementations, when the initial key and the identity identification data are determined, the identity identification data may be symmetrically encrypted based on a symmetric encryption algorithm and the initial key to obtain encrypted data. Optionally, the symmetric encryption algorithm may include an AES algorithm.
[0112] As an implementable method, when the identity data of the electronic device is collected, the identity data can be written into a file, and the file written with the identity data is compressed to obtain compressed data, and then the compressed data is symmetrically encrypted based on the symmetric encryption algorithm and the initial key to obtain encrypted data. For example, the collected identity data D is stored in the file Fi, and the file Fi written with the identity data D is compressed to generate compressed data (compressed file) ZipFi, and then the compressed data ZipFi is symmetrically encrypted using a symmetric encryption algorithm to obtain encrypted data (ciphertext file) EncryptedZipFi.
[0113] Step S423: Asymmetrically encrypt the initial key based on an asymmetric encryption algorithm and the public key of the public-private key pair to obtain a ciphertext key.
[0114] In some embodiments, when the initial key is determined, the initial key can be asymmetrically encrypted based on an asymmetric encryption algorithm and a public key of a public-private key pair to obtain a ciphertext key. Optionally, the asymmetric encryption algorithm may include an RSA algorithm. For example, the initial key AESKeyi is asymmetrically encrypted using an asymmetric encryption algorithm RSA and a public key RSAPK of a preset public-private key pair to obtain a ciphertext key EncryptedAESKeyi.
[0115] Step S424: Determine the key information corresponding to the encrypted data based on the ciphertext key and the initialization vector.
[0116] In some implementations, when the ciphertext key and the initialization vector are obtained, the key information corresponding to the encrypted data can be determined based on the ciphertext key and the initialization vector. For example, the ciphertext key EncryptedAESKeyi and the initialization vector IVi are used together as the key information of the encrypted data EncryptedZipFi.
[0117] Step S430: Send the encrypted data to the database, and send the key information to the server to instruct the server to obtain the encrypted data from the database, and decrypt the encrypted data based on the key information and the private key of the public-private key pair and store it in the database.
[0118] In some embodiments, when the electronic device obtains the encrypted data and the key information corresponding to the encrypted data, it can send the encrypted data to a database and send the key information to a server. When the server receives the key information, it can obtain the encrypted information from the database based on the key information, decrypt the encrypted data based on the private key of the public-private key pair to obtain identity identification data, and send the identity identification data to the database for storage.
[0119] As an implementable manner, sending the encrypted data to a database and sending the key information to the server to instruct the server to obtain the encrypted data from the database, and decrypting the encrypted data based on the key information and the private key of the public-private key pair and then storing it in the database may include: sending the encrypted data to the database and sending the key information to the server to instruct the server to obtain the encrypted data from the database, decrypting the ciphertext key based on the private key of the public-private key pair to obtain the initial key, and decrypting the encrypted data based on the initial key and the initialization vector and then storing it in the database.
[0120] Optionally, the electronic device can send the encrypted data EncryptedZipFi to the database and delete the encrypted data EncryptedZipFi stored locally. In addition, the electronic device sends the ciphertext key EncryptedAESKeyi and the initialization vector IVi as the key information of the encrypted data EncryptedZipFi to the server. Based on this, when the server receives the ciphertext key EncryptedAESKeyi and the initialization vector IVi, it can download the corresponding encrypted data EncryptedZipFi from the database, and then use the private key RSASK of the preset public-private key pair to decrypt the ciphertext key EncryptedAESKeyi to obtain the plaintext initial key AESKeyi, and then decrypt the encrypted data EncryptedZipFi in combination with the initialization vector IVi to obtain the plaintext compressed file ZipFi, and then decompress the compressed file ZipFi to obtain the plaintext file Fi, and then obtain the identity identification data, and send the identity identification data to the database for storage.
[0121] Compared with the method for processing identity recognition data provided by an embodiment of the present application, Figure 3 The method for processing identity identification data shown in the figure, this embodiment also pre-sets the public key of the public-private key pair on the electronic device, and pre-sets the private key of the public-private key pair on the server. The electronic device encrypts the identity identification data through the public key, and the server decrypts the encrypted data through the private key, thereby making the data transmission process more secure to improve the security of the data.
[0122] See also Figure 8 , Figure 8 The following is a flow chart of a method for processing identity recognition data provided by an embodiment of the present application. Figure 8 The process shown in FIG. 1 is described in detail, and the method for processing identity recognition data may specifically include the following steps:
[0123] Step S510: Determine status information of the screen of the electronic device.
[0124] Optionally, the electronic device (data collection service of the electronic device) can start its own service when the screen is unlocked by registering screen unlock and screen off broadcast receivers, and can stop collection and close the service after the screen is off.
[0125] In this embodiment, the status information of the screen of the electronic device can be determined. In some implementations, the status information of the screen of the electronic device can be determined in real time, can be determined at preset time intervals, can be determined at preset time points, can be determined according to other preset rules, etc., which are not limited here.
[0126] In some embodiments, the status information of the screen of the electronic device may include screen-off status, screen-on status, unlocked status, locked screen status, etc., which are not limited here.
[0127] Step S520: If it is determined based on the status information of the screen of the electronic device that the screen of the electronic device is unlocked, then start collecting identity recognition data corresponding to the electronic device.
[0128] In some embodiments, when the status information of the screen of the electronic device is determined, it can be determined whether the screen of the electronic device is unlocked based on the status information of the screen of the electronic device. If it is determined that the screen of the electronic device is unlocked based on the status information of the screen of the electronic device, it can be determined that the need for collecting identity recognition data is met, and the service can be launched to start collecting the identity recognition data corresponding to the electronic device. If it is determined that the electronic device is locked or the screen is off based on the status information of the screen of the electronic device, it can be determined that the need for collecting identity recognition data is not met, and the service can be closed and the identity recognition data corresponding to the electronic device is not collected.
[0129] As an implementable method, the current interface of the electronic device can be determined. If the current interface is a lock screen interface, the status information of the screen of the electronic device can be determined as the screen lock screen. If the current interface is a non-lock screen interface, the status information of the screen of the electronic device can be determined as the screen unlocked.
[0130] As another feasible method, the electronic device may output different broadcast messages when switching from screen lock to screen unlock or from screen unlock to screen lock. The electronic device may determine whether the screen of the electronic device is unlocked by monitoring the broadcast messages.
[0131] Step S530: If it is determined based on the status information of the screen of the electronic device that the screen of the electronic device is off, stop collecting the identity recognition data corresponding to the electronic device.
[0132] In some embodiments, when the status information of the screen of the electronic device is determined, it can be determined whether the screen of the electronic device is off based on the status information of the screen of the electronic device. If it is determined that the screen of the electronic device is off based on the status information of the screen of the electronic device, it can be determined that the requirement for stopping the collection of identity recognition data is met, and the service can be closed to stop collecting the identity recognition data corresponding to the electronic device.
[0133] As a way, whether the screen of the electronic device is off can be detected by detecting whether the backlight source in the display module is turned on. It can be understood that when the backlight source in the display module is turned on, the screen is determined to be a bright screen, and when the backlight source in the display module is turned off, the screen is determined to be off. As another way, the detection of whether the screen of the electronic device is off can also be performed by detecting the screen brightness, wherein the electronic device pre-sets and stores a preset brightness, and the preset brightness is used as a basis for judging the screen brightness. When the detected screen brightness is higher than the preset brightness, the screen is characterized as a bright screen, and when the screen brightness is lower than the preset brightness, the screen is characterized as off. Among them, the preset brightness can be configured when the electronic device leaves the factory, can be set according to the user's preferences and needs during use, or can be adjusted and set by the electronic device according to the properties or environment. For example, it can be set according to the current ambient light brightness of the environment in which the electronic device is located. The larger the current ambient light brightness, the larger the preset brightness value can be set, and the smaller the current ambient light brightness, the smaller the preset brightness value can be set. Optionally, in this embodiment, the preset brightness value is 0. When the screen brightness is greater than 0, the screen can be considered to be a bright screen. When the screen status is not greater than 0, the screen can be considered to be an off screen.
[0134] Step S540: encrypt the identity recognition data to obtain encrypted data, and determine key information corresponding to the encrypted data.
[0135] Step S550: Send the encrypted data to the database, and send the key information to the server to instruct the server to obtain the encrypted data from the database, and decrypt the encrypted data based on the key information and store it in the database.
[0136] For the detailed description of step S540 to step S550, please refer to step S120 to step S160, which will not be repeated here.
[0137] Compared with the method for processing identity recognition data provided by an embodiment of the present application, Figure 3The method for processing identity recognition data shown in the figure, this embodiment also starts collecting identity recognition data corresponding to the electronic device when the screen of the electronic device is unlocked, and stops collecting identity recognition data corresponding to the electronic device when the screen of the electronic device is turned off, thereby reducing the power consumption of the electronic device.
[0138] See also Fig. 9 , Fig. 9 The following is a flow chart of a method for processing identity recognition data provided by an embodiment of the present application. Fig. 9 The process shown in FIG. 1 is described in detail, and the method for processing identity recognition data may specifically include the following steps:
[0139] Step S610: Acquire data collection strategy.
[0140] Optionally, the data collection strategy may include the time period for data collection, the number of samples collected in each time period, the number of actions contained in each sample, and / or the frequency of data collection. The data collection strategy may be stored in the form of a table, and the parameters in the table may include: the time period for daily collection is Periodi[PeriodiStart, PeriodiEnd]; the number of samples collected in each time period is iSamples; the number of actions contained in each sample is ActionCount; the frequency of data collection is Frequency, etc., which are not limited here.
[0141] In this embodiment, the electronic device can obtain the data collection strategy. Optionally, when the electronic device needs to apply the data collection strategy, it can obtain the data collection strategy from the server and store the data collection strategy locally in the electronic device for the electronic device to apply the data collection strategy. Alternatively, the electronic device can obtain the data collection strategy from the server in advance and store the data collection strategy locally in the electronic device, and when the data collection strategy needs to be applied, the data collection strategy is obtained from the local device of the electronic device for the electronic device to apply the data collection strategy.
[0142] Among them, the data collection strategy is set according to the actual application scenario, for example, it is determined according to the frequency of user operations on the screen of the electronic device. Because frequent updates of the collection program will disturb the user, by issuing instructions for the collection strategy, it is possible to dynamically adjust when to start the collection service according to the user's usage, so as to collect the samples required for modeling as soon as possible. As an implementable method, the server maintains a dynamic data collection strategy table, which specifies the collection conditions that a qualified data file must meet. The electronic device obtains the data collection strategy based on the connection request with the server, and stores it locally after obtaining the data collection strategy.
[0143] Step S620: Based on the data collection strategy, collect identity recognition data corresponding to the electronic device.
[0144] In this embodiment, when the data collection strategy is determined, the identity recognition data corresponding to the electronic device can be collected based on the data collection strategy. Optionally, the electronic device collects identity recognition data within the specified collection time period Periodi, and needs to register a touch event listener with the system service to obtain touch events in all scenarios, and obtain screen touch data and sensor data by calling the system interface. The identity recognition data obtained by the data collection service must meet the collection frequency (Frequency), click or slide action number (nActionCount) and other requirements agreed in the collection strategy.
[0145] For example, if the screen unlock time of the current electronic device is within the specified time period Periodi, and the number of samples in the current time period is less than niSamples, the agreed Frequency will be used to represent the frequency of collection, and the collected actions (ActionCount) will reach n ActionCount. If the requirements of the time period Periodi and the number of samples numiSamples are not met, or the collected actions reach nActionCount, or the electronic device is off, the data collection service will be closed.
[0146] Step S630: encrypt the identity recognition data to obtain encrypted data, and determine key information corresponding to the encrypted data.
[0147] Step S640: Send the encrypted data to the database, and send the key information to the server to instruct the server to obtain the encrypted data from the database, and decrypt the encrypted data based on the key information and store it in the database.
[0148] For the detailed description of step S630 to step S640, please refer to step S120 to step S150, which will not be repeated here.
[0149] Compared with the method for processing identity recognition data provided by an embodiment of the present application, Figure 3 The identity recognition data is processed as shown. This embodiment also obtains a data collection strategy and collects identity recognition data corresponding to the electronic device based on the data collection strategy, so that the electronic device can be instructed to collect identity recognition data through the data collection strategy, thereby improving the effect of identity recognition data collection.
[0150] See also Fig.10 , Fig.10The following is a flow chart of a method for processing identity recognition data provided by an embodiment of the present application. Fig.10 The process shown in FIG. 1 is described in detail, and the method for processing identity recognition data may specifically include the following steps:
[0151] Step S710: Collecting identity recognition data corresponding to the electronic device, wherein the identity recognition data includes screen touch data and sensor data.
[0152] For the detailed description of step S710, please refer to step S110, which will not be repeated here.
[0153] Step S720: Determine the data type corresponding to the identity recognition data.
[0154] In this embodiment, when the identity recognition data corresponding to the electronic device is collected, the data type corresponding to the collected identity recognition data can be determined. Optionally, the data type corresponding to the identity recognition data can include a numeric type or a character type.
[0155] In some implementations, when identity recognition data corresponding to an electronic device is collected, a type analysis may be performed on the identity recognition data to determine whether the data type corresponding to the identity recognition data is a numeric type or a character type.
[0156] In some embodiments, the electronic device may be pre-set and store a first mapping relationship, which may include a correspondence between multiple identity recognition data and multiple data types. Based on this, when the identity recognition data corresponding to the electronic device is collected, the data type corresponding to the identity recognition data may be determined based on the first mapping relationship.
[0157] Step S730: Based on the data type, determine the storage format corresponding to the identity recognition data.
[0158] Among them, because the screen touch data in the collected identification data contains direction; the screen refresh rate in the identification data is Hz; the acceleration data of the sensor data in the identification data is the rated value range of the maximum acceleration in the positive and negative directions that the accelerometer can measure, and is signed, given that the number of bytes and value ranges of numeric and character data in programming are different, these three parameters can be considered as character types and can be stored in string format to prevent errors such as array overflow. Other data that do not contain numeric types such as direction and sign can be stored in numeric array format.
[0159] In this embodiment, when the data type corresponding to the identity identification data is obtained, the storage format corresponding to the identity identification data can be determined based on the data type, that is, whether the storage format corresponding to the identity identification data is a numerical array format or a string format. As a way, the electronic device can pre-set and store a second mapping relationship, and the second mapping relationship can include a correspondence relationship between multiple data types and multiple storage formats. Therefore, in this embodiment, when the data type corresponding to the identity identification data is determined, the storage format corresponding to the data type can be determined based on the second mapping relationship as the storage format corresponding to the identity identification data.
[0160] Step S740: storing the identity identification data locally in the electronic device in the storage format.
[0161] In some implementations, when the storage format corresponding to the identity identification data is determined, the identity identification data may be stored locally in the electronic device according to the storage format.
[0162] Optionally, the collected identification data can be stored in a file of the electronic device in json format. The screen touch data tapX, tapY, size, action_type, finger_num and screen resolution screenResolution can be stored in numeric array format; the screen refresh rate screenRefreshRate and sensor data acceX, acceY can be stored in string format.
[0163] Step S750: encrypt the identity recognition data to obtain encrypted data, and determine key information corresponding to the encrypted data.
[0164] Step S760: Send the encrypted data to the database, and send the key information to the server to instruct the server to obtain the encrypted data from the database, and decrypt the encrypted data based on the key information and store it in the database.
[0165] For the detailed description of steps S750 to S760, please refer to steps S120 to S160, which will not be repeated here.
[0166] Compared with the method for processing identity recognition data provided by an embodiment of the present application, Figure 3 The method for processing identity identification data shown in the figure, this embodiment also determines the data type corresponding to the identity identification data, determines the storage format corresponding to the identity identification data based on the data type, and stores the identity identification data locally in the electronic device according to the data format, thereby improving the storage effect of identity identification data of different data types.
[0167] See also Fig.11 , Fig.11 The following is a flow chart of a method for processing identity recognition data provided by an embodiment of the present application. Fig.11 The process shown in FIG. 1 is described in detail, and the method for processing identity recognition data may specifically include the following steps:
[0168] Step S810: Collecting identity recognition data corresponding to the electronic device, wherein the identity recognition data includes screen touch data and sensor data.
[0169] The specific description of step S810 can be found in step S110 and will not be repeated here.
[0170] Step S820: Determine the number of touching fingers corresponding to the screen touch data included in the identity recognition data.
[0171] Among them, the screen touch data is generated by the user touching the screen of the electronic device with his fingers, and the screen touch data can be generated by the user touching the screen of the electronic device with a single finger (one finger), or by the user touching the screen of the electronic device with multiple fingers (two fingers, three fingers, four fingers, five fingers).
[0172] In this embodiment, the number of touch fingers corresponding to the screen touch data included in the identification data can be determined. Optionally, if the screen touch data is generated by a click operation on the electronic device, then the number of click positions / number of clicks corresponding to the click operation at the same time can be determined, and the number of touch fingers corresponding to the click operation can be determined based on the number of click positions / number of clicks; if the screen touch data is generated by a sliding operation on the electronic device, then the number of slide tracks corresponding to the sliding operation at the same time can be determined to determine the number of touch fingers corresponding to the sliding operation.
[0173] Taking the example of determining the corresponding number of touching fingers based on the number of sliding tracks corresponding to the sliding operations at the same time, if it is determined that the number of sliding tracks corresponding to the sliding operations at the same time is one, then the number of touching fingers can be determined to be one. If it is determined that the number of sliding tracks corresponding to the sliding operations at the same time is three, then the number of touching fingers can be determined to be three, and so on. I will not go into details here.
[0174] Step S830: Based on the number of touching fingers, the screen touch data included in the identity recognition data is stored locally in the electronic device.
[0175] In this embodiment, when the number of the touching fingers is determined, the screen touch data included in the identity recognition data can be stored locally in the electronic device based on the number of the touching fingers.
[0176] In some embodiments, the electronic device may be pre-set and store a first storage method and a second storage method, wherein the first storage method is associated with the number of a single finger, and the second storage method is associated with the number of multiple fingers. Based on this, when the number of the touching fingers is determined, if the number of the touching fingers is one, the screen touch data included in the identity recognition data may be stored locally in the electronic device through the first storage method, and if the number of the touching fingers is multiple, the screen touch data included in the identity recognition data may be stored locally in the electronic device through the second storage method.
[0177] As an implementable method, if the number of touching fingers is one, the screen touch data included in the identification data can be stored locally in the electronic device in the form of a single finger number; if the number of touching fingers is multiple, the screen touch data included in the identification data can be divided into screen touch data corresponding to multiple single fingers, and the screen touch data corresponding to multiple single fingers can be stored locally in the electronic device in the form of multiple finger numbers. Based on this, in the stored screen touch data, the same position of all arrays can represent the relevant information of the same finger. Since the multi-finger action needs to be divided into single fingers during the subsequent deep learning model training, this storage method can meet the needs of subsequent finger segmentation work for multi-finger operations.
[0178] For example, please refer to Table 1 and Table 2, where Table 1 represents the storage format of single-finger operation acquisition data, and Table 2 represents the storage format of multi-finger operation acquisition data. The touch data tapX, tapY, size, action_type, and finger_num are distinguished from single-finger touch data and multi-finger touch data by different storage forms shown in the following table. The length of the finger_num array represents the number of touch fingers performing screen touch operations at the current timestamp; the data length of the remaining touch data is consistent with finger_num, so that single-finger touch operations and multi-finger touch operations are compatible.
[0179] Table 1
[0180] Parameter name Storage Format size [finger1_size] tapX [finger1_tapX] tapY [finger1_tapY] action_type [finger1_action_type] finger_num [finger1]
[0181] Table 2
[0182] Parameter name Storage Format size [finger1_size,finger2_size,…] tapX [finger1_tapX,finger2_tapX,…] tapY [finger1_tapY,finger2_tapY,…] action_type [finger1_action_type,finger2_action_type,…] finger_num [finger1,finger2,…]
[0183] Step S840: encrypt the identity recognition data to obtain encrypted data, and determine key information corresponding to the encrypted data.
[0184] Step S850: Send the encrypted data to the database, and send the key information to the server to instruct the server to obtain the encrypted data from the database, and decrypt the encrypted data based on the key information and store it in the database.
[0185] For the detailed description of step S840 to step S850, please refer to step S120 to step S160, which will not be repeated here.
[0186] Compared with the method for processing identity recognition data provided by an embodiment of the present application, Figure 3 The method for processing identity recognition data shown in the figure, this embodiment also determines the number of touch fingers corresponding to the screen touch data included in the identity recognition data, and based on the number of touch fingers, stores the screen touch data included in the identity recognition data locally on the electronic device, so that the touch mode with different numbers of fingers can be adapted to meet the working requirements with different numbers of fingers, thereby improving the adaptability of identity recognition.
[0187] See also Fig.12 , Fig.12 The flowchart of the method for processing identity recognition data provided by an embodiment of the present application is shown. The method is used to collect screen touch data and sensor data as data required for identity recognition and encrypt and save them in a database, which can reflect the behavioral differences between different users, and then perform continuous user identity recognition, which can increase the number of application scenarios and improve data security. In a specific embodiment, the method is applied to Fig.14 The identity data processing device 500 and the server 600 ( Fig.16 ). Fig.12 The process shown in FIG. 1 is described in detail, and the method for processing identity recognition data may specifically include the following steps:
[0188] Step S910: receiving key information sent by the electronic device, wherein the key information corresponds to encrypted data, the encrypted data is obtained by the electronic device by encrypting the collected identity recognition data and then sending it to the database, the identity recognition data includes screen touch data and sensor data.
[0189] Step S920: Obtain the encrypted data from the database, decrypt the encrypted data based on the key information, and store the decrypted data in the database.
[0190] For the detailed description of step S910 to step S920, please refer to step S110 to step S160, which will not be repeated here.
[0191] An embodiment of the present application provides a method for processing identity identification data, which receives key information sent by an electronic device, wherein the key information corresponds to encrypted data, and the encrypted data is obtained by the electronic device by encrypting the collected identity identification data and then sending it to a database, and the identity identification data includes screen touch data and sensor data, the encrypted data is obtained from the database, and the encrypted data is decrypted based on the key information and then stored in the database, thereby collecting screen touch data and sensor data as data required for identity identification and encrypting and saving them in the database, which can reflect the behavioral differences between different users, and then perform continuous user identity identification, which can increase the number of application scenarios.
[0192] See also Fig.13 , Fig.13 The flowchart of the method for processing identity recognition data provided by an embodiment of the present application is shown in FIG. Fig.13 The process shown is described in detail, and the identity recognition method may specifically include the following steps:
[0193] Step S1010: receiving key information sent by the electronic device, wherein the key information corresponds to encrypted data, the encrypted data is obtained by the electronic device by encrypting the collected identity recognition data and then sending it to the database, the identity recognition data includes screen touch data and sensor data.
[0194] Step S1020: Acquire the encrypted data from the database, and decrypt the encrypted data based on the key information to obtain the identity recognition data.
[0195] For the detailed description of step S1010 to step S1020, please refer to step S110 to step S160, which will not be repeated here.
[0196] Step S1030: Screening the identity recognition data to obtain target identity recognition data.
[0197] In this embodiment, when the server obtains the identity identification data, it can filter the identity identification data to obtain the target identity identification data. Optionally, when the server obtains the identity identification data, it can delete duplicate identity identification data, erroneous identity identification data, etc. in the identity identification data to filter the identity identification data and obtain the target identity identification data.
[0198] In some embodiments, when the server obtains the identity identification data, in order to prevent duplication of the downloaded identity identification data, the server may calculate an MD5 (Message Digest Algorithm 5, a cryptographic hash function commonly used in the field of computer security) value for the identity identification data (screen touch data and sensor data), and compare it with the value in the MD5 file. If it is repeated, it is determined that duplicate identity identification data has been sent by mistake, and the identity identification data (or the file containing the identity identification data) is unavailable, so it is deleted. If it is not repeated, it is determined that duplicate identity identification data has not been sent by mistake, and the MD5 value is added to the MD5 file, and other processing continues.
[0199] In some embodiments, when the server obtains the identity recognition data, it can delete the data rows that obviously contain errors in the identity recognition data. For example, if there are more than 4 fingers at the same time, it can delete the data rows with missing variable fields, out-of-bounds coordinates, incorrect storage format, etc., which are not limited here.
[0200] Step S1040: storing the target identity identification data in the database.
[0201] In this embodiment, when the target identity recognition data is screened to obtain the target identity recognition data, the target identity data may be stored in the database.
[0202] Compared with the method for processing identity recognition data provided by an embodiment of the present application, Fig.12 The method for processing identity identification data shown in the figure, this embodiment also screens the identity identification data obtained by decryption, obtains target identity identification data, and stores the target identity identification data in a database, thereby eliminating invalid data, reducing the scale of data storage and providing high-quality data assurance for subsequent applications and research.
[0203] Based on the above method, this application standardizes the data collection field standards and formats, and data collection services, and uses the service to collect the user's touch operation data on the electronic device and encrypts it for transmission to the database. The server downloads the data and decrypts and inspects the data for quality. The inspected high-quality data is stored in the database, thereby realizing the standardized and procedural collection of screen touch data and sensor data and providing high-quality data that can be used for various research. This method has a complete and standardized process, strong portability and scalability, is suitable for multi-finger (including single-finger) operation data collection, and has high data security.
[0204] Furthermore, by designing a data collection service and adding it to the system application of electronic devices, identity recognition data collection can be easily implemented in various electronic devices (including mobile phones, tablets, watches, etc.), with strong portability.
[0205] Furthermore, data collection is carried out in a free scenario, and there are no regulations on application selection and operation gestures when users operate electronic devices. By designing a data collection format and corresponding collection services for multi-finger and single-finger screen touch data and sensor data, various usage scenarios of electronic devices are covered, so that data collection can meet different usage needs and is highly scalable.
[0206] Furthermore, the data collection service only collects data under the conditions specified by the dynamic collection strategy. When the collection conditions are not met, the service is in a closed state to reduce device power consumption. The data collected by the data collection service is stored in the cache, and the data in the cache is written to a file at regular intervals, and the cache is cleared to ensure that the memory usage of the data collection service remains low. Data is compressed before uploading to reduce memory usage during local short-term storage and data traffic during upload, and local storage is deleted after the upload is complete, so as not to occupy device storage space.
[0207] Furthermore, by using transport layer encryption and content encryption between the data collection service on the electronic terminal device and the server, and using HTTPS and digital envelopes, the security of the data transmission process can be guaranteed. Even if the data is intercepted, the plaintext information cannot be obtained, and the data security is high.
[0208] Furthermore, the server performs data preprocessing to eliminate invalid data and retain high-quality data, thereby reducing the data size while providing high-quality data guarantees for subsequent applications and research. It also avoids problems such as secondary collection due to insufficient high-quality data after data collection is completed, avoids unnecessary increases in collection costs, and ensures a rigorous and standardized process.
[0209] See also Fig.14 , Fig.14 The module block diagram of the device for processing identity recognition data provided by an embodiment of the present application is shown. The device for processing identity recognition data 400 is applied to the above electronic device. Fig.14 The block diagram shown in the figure is used to illustrate that the identity recognition data processing device 400 includes: a data acquisition module 410, a data encryption module 420 and a data sending module 430, wherein:
[0210] The data collection module 410 is used to collect identity recognition data corresponding to the electronic device, wherein the identity recognition data includes screen touch data and sensor data.
[0211] Furthermore, the data acquisition module 410 includes: a state information determination submodule, a start submodule and a stop submodule, wherein:
[0212] The status information determination submodule is used to determine the status information of the screen of the electronic device.
[0213] The start submodule is used to start collecting identity recognition data corresponding to the electronic device if it is determined that the screen of the electronic device is unlocked based on the status information of the screen of the electronic device.
[0214] The stop submodule is used to stop collecting the identity recognition data corresponding to the electronic device if it is determined that the screen of the electronic device is off based on the status information of the screen of the electronic device.
[0215] Furthermore, the data acquisition module 410 includes: a data acquisition strategy acquisition submodule and a data acquisition submodule, wherein:
[0216] The data collection strategy acquisition submodule is used to obtain the data collection strategy.
[0217] Furthermore, the data acquisition vehicle acquisition submodule includes: a data acquisition strategy acquisition unit, wherein:
[0218] The data collection strategy acquisition unit is used to acquire the data collection strategy from the server and store the data collection strategy locally.
[0219] The data collection submodule is used to collect the identity recognition data corresponding to the electronic device based on the data collection strategy.
[0220] The data encryption module 420 is used to encrypt the identity recognition data to obtain encrypted data, and determine the key information corresponding to the encrypted data.
[0221] Furthermore, the data encryption module 420 includes: a data compression submodule and a first data encryption submodule, wherein:
[0222] The data compression submodule is used to write the identity recognition data into a file, and compress the file into which the identity recognition data is written to obtain a compressed file.
[0223] Furthermore, the data compression submodule includes: a data cache unit, a data compression unit and a data clearing unit, wherein:
[0224] The data cache unit is used to cache the collected identity recognition data into the memory of the electronic device.
[0225] The data compression unit is used to compress the identity recognition data cached in the memory of the electronic device at a preset time interval and write it into the file, and compress the file in which the identity recognition data is written to obtain the compressed file.
[0226] The data clearing unit is used to clear the identity recognition data cached in the memory of the electronic device.
[0227] The first data encryption submodule is used to encrypt the compressed file to obtain encrypted data, and determine key information corresponding to the encrypted data.
[0228] Further, the electronic device is pre-installed with a public key of a public-private key pair, the server is pre-installed with a private key of the public-private key pair, and the data encryption module 420 includes:
[0229] The second data encryption submodule is used to encrypt the identity recognition data based on the public key of the public-private key pair to obtain the encrypted data, and determine the key information corresponding to the encrypted data.
[0230] Furthermore, the data encryption module 420 includes: a data generation unit, an encrypted data acquisition unit, a ciphertext key acquisition unit and a key information determination unit, wherein:
[0231] The data generation unit is used to generate an initial key and an initialization vector.
[0232] The encrypted data obtaining unit is used to symmetrically encrypt the identity recognition data based on a symmetric encryption algorithm and the initial key to obtain the encrypted data.
[0233] The ciphertext key obtaining unit is used to asymmetrically encrypt the initial key based on an asymmetric encryption algorithm and the public key of the public-private key pair to obtain a ciphertext key.
[0234] A key information determination unit is used to determine the key information corresponding to the encrypted data based on the ciphertext key and the initialization vector.
[0235] The data sending module 430 is used to send the encrypted data to the database and send the key information to the server to instruct the server to obtain the encrypted data from the database and decrypt the encrypted data based on the key information and store it in the database.
[0236] Further, the electronic device is pre-installed with a public key of a public-private key pair, the server is pre-installed with a private key of the public-private key pair, and the data sending module 430 includes: a first data sending submodule, wherein:
[0237] The first data sending submodule is used to send the encrypted data to the database and send the key information to the server to instruct the server to obtain the encrypted data from the database, and decrypt the encrypted data based on the key information and the private key of the public-private key pair and store it in the database.
[0238] Further, the data sending module 430 includes: a second data sending submodule, wherein:
[0239] The second data sending submodule is used to send the encrypted data to the database and send the key information to the server to instruct the server to obtain the encrypted data from the database, decrypt the ciphertext key based on the private key of the public-private key pair to obtain the initial key, and decrypt the encrypted data based on the initial key and the initialization vector and store it in the database.
[0240] Furthermore, the identity data processing device 400 further includes: a data type determination module, a storage format determination module and a first data storage module, wherein:
[0241] The data type determination module is used to determine the data type corresponding to the identity recognition data.
[0242] A storage format determination module is used to determine the storage format corresponding to the identity recognition data based on the data type.
[0243] The first data storage module is used to store the identity recognition data locally in the electronic device according to the storage format.
[0244] Furthermore, the identity recognition data processing device 400 further includes: a finger number determination module and a second data storage module, wherein:
[0245] The finger quantity determination module is used to determine the number of touching fingers corresponding to the screen touch data included in the identity recognition data.
[0246] The second data storage module is used to store the screen touch data included in the identity recognition data locally in the electronic device based on the number of touching fingers.
[0247] Furthermore, the second data storage module includes: a first data storage submodule and a second data storage submodule, wherein:
[0248] The first data storage submodule is used for storing the screen touch data included in the identity recognition data in the local area of the electronic device in the form of a single finger number if the number of the touching finger is one.
[0249] The second data storage submodule is used to divide the screen touch data included in the identity recognition data into screen touch data corresponding to multiple single fingers if the number of the touching fingers is greater than one, and store the screen touch data corresponding to the multiple single fingers locally in the electronic device in the form of multiple finger numbers.
[0250] See also Fig.15 , Fig.15The module block diagram of the identity recognition data processing device provided by an embodiment of the present application is shown. The identity recognition data processing device 500 is applied to a server. Fig.15 The block diagram shown in the figure is used to illustrate that the identity data processing device 500 includes: an information receiving module 510 and a data storage module 520, wherein:
[0251] The information receiving module 510 is used to receive key information sent by the electronic device, wherein the key information corresponds to encrypted data, and the encrypted data is obtained by the electronic device by encrypting the collected identity recognition data and then sending it to the database, and the identity recognition data includes screen touch data and sensor data.
[0252] The data storage module 520 is used to obtain the encrypted data from the database, decrypt the encrypted data based on the key information, and store the decrypted data in the database.
[0253] Furthermore, the data storage module 520 includes: an identity data acquisition submodule, an identity data screening submodule and an identity data storage submodule, wherein:
[0254] The identity recognition data acquisition submodule is used to obtain the encrypted data from the database and decrypt the encrypted data based on the key information to obtain the identity recognition data.
[0255] The identity recognition data screening submodule is used to screen the identity recognition data to obtain target identity recognition data.
[0256] The identity data storage submodule is used to store the target identity data in the database.
[0257] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0258] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0259] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0260] See also Fig.16, which shows a structural block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 600 may include the above-mentioned electronic device 100, and may also include the above-mentioned server 200, which is not limited here. The electronic device 600 in the present application may include one or more of the following components: a processor 610, a memory 620, and one or more application programs, wherein one or more application programs may be stored in the memory 620 and configured to be executed by one or more processors 610, and one or more programs are configured to execute the method described in the aforementioned method embodiment.
[0261] Among them, the processor 610 may include one or more processing cores. The processor 610 uses various interfaces and lines to connect various parts within the entire electronic device 600, and executes various functions and processes data of the electronic device 600 by running or executing instructions, programs, code sets or instruction sets stored in the memory 620, and calling data stored in the memory 620. Optionally, the processor 610 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 610 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 610, but may be implemented separately through a communication chip.
[0262] The memory 620 may include a random access memory (RAM) or a read-only memory (ROM). The memory 620 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 620 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing functions (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 600 during use.
[0263] See also Fig.17 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 700 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0264] The computer readable storage medium 700 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 700 includes a non-transitory computer-readable storage medium. The computer readable storage medium 700 has storage space for program code 710 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 710 can be compressed, for example, in an appropriate form.
[0265] In summary, the identity recognition data processing method, device, electronic device and storage medium provided in the embodiments of the present application collect identity recognition data corresponding to the electronic device, wherein the identity recognition data includes screen touch data and sensor data, encrypts the identity recognition data to obtain encrypted data, and determines the key information corresponding to the encrypted data, sends the encrypted data to a database, and sends the key information to a server to instruct the server to obtain the encrypted data from the database, and decrypts the encrypted data based on the key information and stores it in the database, thereby collecting screen touch data and sensor data as the data required for identity recognition and encrypting and saving them in a database, which can reflect the behavioral differences between different users, and then perform continuous user identity recognition, which can increase the number of application scenarios.
[0266] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for processing identity recognition data, characterized in that: Applied to an electronic device, the electronic device is connected to a server and a database respectively, the server is connected to the database, and the method includes: Collecting identity recognition data corresponding to the electronic device, wherein the identity recognition data includes screen touch data and sensor data; Encrypting the identity identification data to obtain encrypted data, and determining key information corresponding to the encrypted data; The encrypted data is sent to the database, and the key information is sent to the server to instruct the server to obtain the encrypted data from the database, and decrypt the encrypted data based on the key information and store it in the database.
2. The method according to claim 1, characterized in that The step of encrypting the identity data to obtain encrypted data and determining key information corresponding to the encrypted data includes: Writing the identity recognition data into a file, and compressing the file into which the identity recognition data is written to obtain a compressed file; The compressed file is encrypted to obtain encrypted data, and key information corresponding to the encrypted data is determined.
3. The method according to claim 2, characterized in that The step of writing the identity identification data into a file and compressing the file into which the identity identification data is written to obtain a compressed file comprises: Cache the collected identity data in the memory of the electronic device; Writing the identity recognition data cached in the memory of the electronic device into the file at a preset time interval, and compressing the file into which the identity recognition data is written to obtain the compressed file; Clear the identity data cached in the memory of the electronic device.
4. The method according to claim 1, characterized in that: The electronic device is pre-installed with a public key of a public-private key pair, the server is pre-installed with a private key of the public-private key pair, the identity identification data is encrypted to obtain encrypted data, and key information corresponding to the encrypted data is determined, including: Encrypting the identity data based on the public key of the public-private key pair to obtain the encrypted data, and determining key information corresponding to the encrypted data; The step of sending the encrypted data to the database and sending the key information to the server to instruct the server to obtain the encrypted data from the database, and decrypting the encrypted data based on the key information and storing the decrypted data in the database comprises: The encrypted data is sent to the database, and the key information is sent to the server to instruct the server to obtain the encrypted data from the database, and decrypt the encrypted data based on the key information and the private key of the public-private key pair and store it in the database.
5. The method according to claim 4, characterized in that The encrypting the identity data based on the public key of the public-private key pair to obtain the encrypted data, and determining the key information corresponding to the encrypted data, includes: Generate initial key and initialization vector; Symmetrically encrypt the identity data based on a symmetric encryption algorithm and the initial key to obtain the encrypted data; Asymmetrically encrypt the initial key based on an asymmetric encryption algorithm and the public key of the public-private key pair to obtain a ciphertext key; Based on the ciphertext key and the initialization vector, key information corresponding to the encrypted data is determined.
6. The method according to claim 5, characterized in that The step of sending the encrypted data to the database and sending the key information to the server to instruct the server to obtain the encrypted data from the database, and decrypting the encrypted data based on the key information and the private key of the public-private key pair and storing the decrypted data in the database comprises: The encrypted data is sent to the database, and the key information is sent to the server to instruct the server to obtain the encrypted data from the database, decrypt the ciphertext key based on the private key of the public-private key pair to obtain the initial key, and decrypt the encrypted data based on the initial key and the initialization vector and store it in the database.
7. The method according to claim 1, characterized in that The collecting of identity recognition data corresponding to the electronic device includes: Determining status information of a screen of the electronic device; If it is determined based on the status information of the screen of the electronic device that the screen of the electronic device is unlocked, then start collecting identity recognition data corresponding to the electronic device; or If it is determined based on the status information of the screen of the electronic device that the screen of the electronic device is off, then the collection of the identity recognition data corresponding to the electronic device is stopped.
8. The method according to claim 1, characterized in that The collecting of identity recognition data corresponding to the electronic device includes: Obtain data collection strategies; Based on the data collection strategy, identity recognition data corresponding to the electronic device is collected.
9. The method according to claim 8, characterized in that The data acquisition strategy includes: The data collection strategy is obtained from the server and stored locally.
10. The method according to claim 8, characterized in that The data collection strategy includes: The time period for data collection; The number of samples collected in each time period; The number of actions contained in each sample; and / or Frequency of data collection.
11. The method according to any one of claims 1 to 10, characterized in that: After collecting the identity recognition data corresponding to the electronic device, the method further includes: Determine the data type corresponding to the identity identification data; Based on the data type, determining a storage format corresponding to the identity recognition data; The identity identification data is stored locally in the electronic device in the storage format.
12. The method according to any one of claims 1 to 10, characterized in that: After collecting the identity recognition data corresponding to the electronic device, the method further includes: Determining the number of touching fingers corresponding to the screen touch data included in the identity recognition data; Based on the number of touching fingers, the screen touch data included in the identity recognition data is stored locally in the electronic device.
13. The method according to claim 12, characterized in that Based on the number of touching fingers, storing the screen touch data included in the identity recognition data locally on the electronic device includes: If the number of the touching finger is one, the screen touch data included in the identity recognition data is stored locally in the electronic device in the form of a single finger number; or If the number of touching fingers is greater than one, the screen touch data included in the identity recognition data is divided into screen touch data corresponding to multiple single fingers, and the screen touch data corresponding to the multiple single fingers are stored locally in the electronic device in the form of multiple finger numbers.
14. A method for processing identity recognition data, characterized in that: Applied to a server, the server is connected to an electronic device and a database respectively, the electronic device is connected to the database, and the method includes: Receiving key information sent by the electronic device, wherein the key information corresponds to encrypted data, the encrypted data is obtained by the electronic device by encrypting the collected identity recognition data and then sent to the database, the identity recognition data includes screen touch data and sensor data; The encrypted data is obtained from the database, and the encrypted data is decrypted based on the key information and then stored in the database.
15. The method according to claim 14, characterized in that The step of obtaining the encrypted data from the database, decrypting the encrypted data based on the key information, and storing the decrypted data in the database includes: Acquire the encrypted data from the database, and decrypt the encrypted data based on the key information to obtain the identity recognition data; Screening the identity recognition data to obtain target identity recognition data; The target identification data is stored in the database.
16. A device for processing identity recognition data, characterized in that: Applied to electronic equipment, the electronic equipment is connected to a server and a database respectively, the server is connected to the database, and the device comprises: A data acquisition module, used to acquire identity recognition data corresponding to the electronic device, wherein the identity recognition data includes screen touch data and sensor data; A data encryption module, used to encrypt the identity data to obtain encrypted data, and determine key information corresponding to the encrypted data; The data sending module is used to send the encrypted data to the database and send the key information to the server to instruct the server to obtain the encrypted data from the database and decrypt the encrypted data based on the key information and store it in the database.
17. A device for processing identity recognition data, characterized in that: Applied to a server, the server is connected to an electronic device and a database respectively, the electronic device is connected to the database, and the device comprises: An information receiving module, used to receive key information sent by the electronic device, wherein the key information corresponds to encrypted data, the encrypted data is obtained by the electronic device by encrypting the collected identity recognition data and then sent to the database, the identity recognition data includes screen touch data and sensor data; A data storage module is used to obtain the encrypted data from the database, decrypt the encrypted data based on the key information, and store the decrypted data in the database.
18. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 15.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, and the program codes can be called by a processor to execute the method according to any one of claims 1 to 15.
