Human-machine identification method and device
By collecting touch screen press information and using a human-machine recognition model to initially determine the operator's identity, combined with secondary human-machine verification, the problem of poor recognition of existing verification codes is solved, the recognition accuracy and user experience are improved, and data security is enhanced. .
Patent Information
- Application Number
- CN201911184852.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-27
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2039-11-27
AI Technical Summary
Existing website verification codes increase the difficulty of being cracked by increasing the difficulty of recognition. However, the algorithm model based on deep learning has surpassed normal people, resulting in the ineffective way of identifying human-machine verification codes.
By collecting the operator's pressing information on the touch screen, a pre-trained human-machine recognition model is used to initially determine whether the operator is a human or a machine. If the operator is initially identified as a robot, a secondary human-machine verification is performed to improve the recognition accuracy and the verification code is Recognition is converted into background recognition.
It improves the accuracy of human-machine recognition, improves user experience and data security, and avoids the risk of verification codes being cracked.
Smart Images

Figure CN112861094B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a human-machine identification method and device. Background Art
[0002] With the rapid development of the Internet, network security issues have become increasingly prominent. As an authentication technology, verification code can meet the current network environment's demand for identity authentication security and has been widely used in a variety of human-machine verification products. This method is not only convenient for users, but also attracts the attention of attackers.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0004] Today's website verification codes increase the difficulty of cracking by increasing the difficulty of recognition. However, the current algorithm models based on deep learning have surpassed normal people in image recognition. Therefore, the method of identifying humans and machines through verification codes is not very effective. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a human-machine identification method and device, which can preliminarily determine whether the operator is a human or a machine based on the behavioral characteristics of the operator applied to the touch screen. When it is preliminarily determined that the current operator is a robot, a secondary identification will be performed, which improves the identification accuracy and converts the verification code recognition in the prior art into background recognition that is invisible to the operator, thereby improving the user experience and increasing data security.
[0006] To achieve the above object, according to one aspect of an embodiment of the present invention, a human-machine identification method is provided, comprising:
[0007] Collect the pressing information applied by the current operator on the terminal touch screen;
[0008] The pressing information is used as input data and input into a pre-trained human-machine recognition model to preliminarily determine whether the current operator is a natural person or a robot;
[0009] When the human-machine identification model preliminarily determines that the current operator is a robot, initiate human-machine verification to ultimately determine whether the current operator is a natural person or a robot; wherein the human-machine verification can only be completed by a natural person;
[0010] If the current operator passes the human-machine verification, it is finally determined that the current operator is a natural person.
[0011] In an optional embodiment, the method further includes: when the human-machine recognition model preliminarily determines that the current operator is a natural person, then finally determining that the current operator is a natural person.
[0012] In an optional embodiment, collecting the pressing information applied by the current operator on the terminal touch screen includes:
[0013] Collecting the pressing information applied by the current operator on the terminal touch screen within a preset time period, where the preset time period is calculated from the first collection of the pressing information applied by the current operator on the terminal touch screen; or
[0014] Collect N times of pressing information applied by the current operator on the terminal touch screen, where N is an integer greater than or equal to 1;
[0015] Using the pressing information as input data and inputting it into a pre-trained human-machine recognition model includes:
[0016] respectively using the collected pressing information within the preset time as input data and inputting it into a pre-trained human-machine recognition model; or
[0017] The collected N times of pressing information are respectively used as input data and input into the pre-trained human-machine recognition model.
[0018] In an optional embodiment, the human-machine identification model preliminarily determines that the current operator is a robot including:
[0019] If the result of recognition by the human-machine recognition model based on the pressing information collected within the preset time period is that the proportion of the current operators being robots is greater than or equal to a first threshold, the human-machine recognition model preliminarily determines that the current operator is a robot; or
[0020] If the result of the human-machine identification model's identification based on the N times of pressing information is that the proportion of the current operators being robots is greater than or equal to a second threshold, the human-machine identification model preliminarily determines that the current operator is a robot.
[0021] In an optional embodiment, the method further includes: storing the pressing information according to the pixel size of the button currently pressed by the operator.
[0022] In an optional embodiment, initiating human-machine verification includes:
[0023] Instructing the current operator to perform a specified action or speak a specified text, and calculating a first hash value of video data generated by the current operator performing the specified action or a second hash value of audio data generated by the current operator speaking the specified text;
[0024] again specifying that the current operator performs a specified action or speaks a specified word, and calculating a third hash value of the video data generated by the current operator performing the specified action or a fourth hash value of the audio data generated by the current operator speaking the specified word;
[0025] determining whether the first Hash value is the same as the third Hash value, or determining whether the second Hash value is the same as the fourth Hash value;
[0026] The current operator passing the human-machine verification includes: when the first Hash value is different from the third Hash value, or the second Hash value is different from the fourth Hash value, the current operator passing the human-machine verification.
[0027] To achieve the above object, according to another aspect of an embodiment of the present invention, a human-machine identification device is provided, comprising:
[0028] The acquisition module is used to acquire the pressing information applied by the current operator on the terminal touch screen;
[0029] A preliminary judgment module, used to input the pressing information as input data into a pre-trained human-machine recognition model to preliminarily determine whether the current operator is a natural person or a robot;
[0030] The final determination module is used to initiate human-machine verification when the human-machine recognition model preliminarily determines that the current operator is a robot, so as to finally determine whether the current operator is a natural person or a robot; if the current operator passes the human-machine verification, it is finally determined that the current operator is a natural person, wherein the human-machine verification can only be completed by a natural person.
[0031] In an optional embodiment, the final determination module is further used to:
[0032] When the human-machine recognition model preliminarily determines that the current operator is a natural person, it finally determines that the current operator is a natural person.
[0033] In an optional embodiment, the acquisition module is further used for:
[0034] Collecting the pressing information applied by the current operator on the terminal touch screen within a preset time period, where the preset time period is calculated from the first collection of the pressing information applied by the current operator on the terminal touch screen; or collecting the pressing information applied by the current operator on the terminal touch screen N times, where N is an integer greater than or equal to 1;
[0035] The preliminary judgment module is also used to: use the collected pressing information within the preset time as input data to a pre-trained human-machine recognition model; or use the collected N times of pressing information as input data to a pre-trained human-machine recognition model.
[0036] In an optional embodiment, the preliminary determination module is further used to:
[0037] If the result of recognition by the human-machine recognition model based on the pressing information collected within the preset time period is that the proportion of the current operators being robots is greater than or equal to a first threshold, the human-machine recognition model preliminarily determines that the current operator is a robot; or
[0038] If the result of the human-machine identification model's identification based on the N times of pressing information is that the proportion of the current operators being robots is greater than or equal to a second threshold, the human-machine identification model preliminarily determines that the current operator is a robot.
[0039] In an optional embodiment, the acquisition module is further used for:
[0040] The pressing information is stored according to the pixel size of the button currently pressed by the operator.
[0041] In an optional embodiment, the final judgment module is further used to:
[0042] Instructing the current operator to perform a specified action or speak a specified text, and calculating a first hash value of video data generated by the current operator performing the specified action or a second hash value of audio data generated by the current operator speaking the specified text;
[0043] again specifying that the current operator performs a specified action or speaks a specified word, and calculating a third hash value of the video data generated by the current operator performing the specified action or a fourth hash value of the audio data generated by the current operator speaking the specified word;
[0044] determining whether the first Hash value is the same as the third Hash value, or determining whether the second Hash value is the same as the fourth Hash value;
[0045] If the first hash value is different from the third hash value, or the second hash value is different from the fourth hash value, it is finally determined that the current operator has passed the human-machine verification.
[0046] To achieve the above-mentioned purpose, according to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the human-computer identification method of an embodiment of the present invention.
[0047] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the human-computer identification method of the embodiment of the present invention is implemented.
[0048] An embodiment of the above invention has the following advantages or beneficial effects: it can preliminarily determine whether the operator is a human or a machine based on the behavioral characteristics applied by the operator to the touch screen, and when it is preliminarily determined that the current operator is a robot, a secondary identification will be performed, thereby improving the recognition accuracy, and converting the verification code recognition in the prior art into a background recognition that is invisible to the operator, thereby improving the user experience and increasing data security.
[0049] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0051] Figure 1 is a schematic diagram of the main process of the human-machine identification method according to an embodiment of the present invention;
[0052] Figure 2 Schematic diagram of main modules of a human-machine identification device according to an embodiment of the present invention;
[0053] Figure 3 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0054] Figure 4 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0056] Figure 1 Schematic diagram of the main process of the human-machine identification method of the embodiment of the present invention. Figure 1 As shown, the method includes:
[0057] Step S101: collecting the pressing information applied by the current operator on the terminal touch screen;
[0058] Step S102: using the pressing information as input data and inputting it into a pre-trained human-machine recognition model to preliminarily determine whether the current operator is a natural person or a robot;
[0059] Step S103: When the human-machine identification model preliminarily determines that the current operator is a robot, initiate human-machine verification to ultimately determine whether the current operator is a natural person or a robot; wherein the human-machine verification can only be completed by a natural person;
[0060] Step S104: If the current operator passes the human-machine verification, it is finally determined that the current operator is a natural person.
[0061] For step S101, the pressing information is the information fed back by the touch screen when the operator presses the touch screen. The pressing information may include pressure information and duration information when the operator presses the touch screen.
[0062] In this embodiment, the collected pressing information can be stored according to the pixel size of the button pressed by the operator, that is, the image generated when the operator presses the button is stored according to the pixel size of the button. For example, when the operator logs in to a website, the pressing information generated when the operator clicks the login button is stored according to the pixel size of the login button. Assuming that the pixel size of the login button is 210×30, the pressing information is stored as:
[0063] data_set=[[0 0 0 … … 0 0 0],……,[0 0 0 … … 0 0 0]], where data_set represents pressing information.
[0064] In this step, storing the collected pressing information according to the pixel size of the button pressed by the operator can shield invalid pressing, reduce the amount of noise data, and improve recognition accuracy. In other optional embodiments, the storage format of the pressing information can also be set manually, and the present invention is not limited here.
[0065] In actual scenarios, there may be multiple pixels of the button clicked by the operator. In an embodiment of the present invention, one pixel can be selected as the storage format of the press information. After the press information is collected, the press information is regularized according to the specified pixel size; it can also be stored directly according to the actual pixel size of the button.
[0066] For step S102, the training process of the human-machine recognition model may include: obtaining a large amount of pressing information generated by real people pressing the touch screen and pressing information forged by a robot, and marking them respectively to generate a training data set; training and optimizing the training data set based on an existing deep learning model to obtain a human-machine recognition model.
[0067] Among them, when training the human-machine identification model, it can be divided into the following categories: the human-machine identification model trained based on the pressing information generated by the same user pressing different buttons; the human-machine identification model trained based on the pressing information generated by different users pressing the same button; the human-machine identification model trained based on the pressing information generated by different users pressing different buttons. Then further, when using the human-machine identification model to preliminarily determine whether the current operator is a human or a machine, one of the human-machine identification models can be used for identification, or a combination of two or three of the human-machine identification models can be used for identification. The specific combination method is not limited by the present invention.
[0068] It is worth noting that, since the embodiment of the present invention stores the collected pressing information according to the pixel size of the button pressed by the operator, the pressing information is stored as a two-dimensional array, such as a[i][j], i represents the width of the pixel, and j represents the height of the pixel. Then, a three-dimensional array is used to represent multiple presses of the same button, such as b[m][i][j], where m represents the number of presses. A four-dimensional array is used to represent multiple presses of different buttons by the same user, such as c[p][m][i][j], where p is used to represent different pictures. A five-dimensional array is used to represent multiple presses of different buttons by different users, such as d[q][p][m][i][j], where q is used to represent different users. Storing the pressing information in this way can better retain the characteristics of the pressing information, so that the accuracy of the trained human-machine recognition model is higher. In other optional embodiments, the collected pressing information can also be directly stored as a one-dimensional array.
[0069] For step S103, when the human-machine identification model preliminarily determines that the current operator is a robot, further confirmation is required, and human-machine verification needs to be initiated to finally determine whether the current operator is a natural person or a robot, wherein the human-machine verification is a verification that can only be completed by a natural person. As an example, the process of initiating human-machine verification includes:
[0070] Instructing the current operator to perform a specified action or speak a specified text, and calculating a first hash value of video data generated by the current operator performing the specified action or a second hash value of audio data generated by the current operator speaking the specified text;
[0071] again specifying that the current operator performs a specified action or speaks a specified word, and calculating a third hash value of the video data generated by the current operator performing the specified action or a fourth hash value of the audio data generated by the current operator speaking the specified word;
[0072] determining whether the first Hash value is the same as the third Hash value, or determining whether the second Hash value is the same as the fourth Hash value;
[0073] When the first Hash value is different from the third Hash value, or the second Hash value is different from the fourth Hash value, it is determined that the current operator passes the human-machine authentication.
[0074] In the above embodiment, the hash values of the previous and subsequent specified actions or the previous and subsequent voices are compared once to determine whether the current operator has passed the human-machine verification. In other optional embodiments, the number of comparisons or the length of comparison can also be set. If the current operator is determined to be a robot for more than a predetermined number of times or the specified action or voice made by the operator is not received for more than a predetermined time, it is considered that the current operator has not passed the human-machine verification, otherwise it is determined that the current operator has passed the human-machine verification.
[0075] For step S104, if the current operator passes the human-machine verification, it can be finally determined that the current operator is a natural person. If the current operator does not pass the human-machine verification, it can be finally determined that the current operator is a robot.
[0076] When the human-machine recognition model preliminarily determines that the current operator is a natural person, the human-machine verification step can be skipped and the current operator can be directly determined to be a natural person.
[0077] The human-machine verification method of the embodiment of the present invention can preliminarily determine whether the operator is a human or a machine based on the behavioral characteristics of the operator applied to the touch screen. When it is preliminarily determined that the current operator is a robot, a secondary identification will be performed, thereby improving the identification accuracy. The verification code recognition in the prior art is converted into a background recognition that is invisible to the operator, thereby improving the user experience and increasing data security.
[0078] In an optional embodiment, step S101 of collecting the pressing information currently applied by the operator on the terminal touch screen includes:
[0079] Collecting the pressing information applied by the current operator on the terminal touch screen within a preset time period, where the preset time period is calculated from the first collection of the pressing information applied by the current operator on the terminal touch screen; or
[0080] Collect N times of pressing information applied by the current operator on the terminal touch screen, where N is an integer greater than or equal to 1.
[0081] Step S102 uses the pressing information as input data and inputs it into a pre-trained human-machine recognition model, including:
[0082] respectively using the collected pressing information within the preset time as input data and inputting it into a pre-trained human-machine recognition model; or
[0083] The collected N times of pressing information are respectively used as input data and input into the pre-trained human-machine recognition model.
[0084] If the result of recognition by the human-machine recognition model based on the pressing information collected within the preset time period is that the proportion of the current operators being robots is greater than or equal to a first threshold, the human-machine recognition model preliminarily determines that the current operator is a robot; or
[0085] If the result of the human-machine identification model's identification based on the N times of pressing information is that the proportion of the current operators being robots is greater than or equal to a second threshold, the human-machine identification model preliminarily determines that the current operator is a robot.
[0086] Since it is impossible to know how many times the current operator will press in actual applications, that is, it is impossible to know how many times the pressing information can be collected, the embodiments of the present invention avoid the above problems by setting a timer from the first collection to the pressing information, collecting pressing information within a preset time, and no longer collecting pressing information after the preset time, or specifying the number of collections. If the collected pressing information does not reach the collection number, human-machine recognition is not performed.
[0087] Figure 2 is a schematic diagram of the main modules of the human-machine identification device 200 according to an embodiment of the present invention. Figure 2 As shown, the device 200 includes:
[0088] The acquisition module 201 is used to acquire the pressing information applied by the current operator on the terminal touch screen;
[0089] A preliminary determination module 202 is used to input the pressing information as input data into a pre-trained human-machine recognition model to preliminarily determine whether the current operator is a natural person or a robot;
[0090] The final determination module 203 is used to initiate human-machine verification when the human-machine recognition model preliminarily determines that the current operator is a robot, so as to finally determine whether the current operator is a natural person or a robot; if the current operator passes the human-machine verification, it is finally determined that the current operator is a natural person, wherein the human-machine verification can only be completed by a natural person.
[0091] Optionally, the final determination module 203 is further used to: when the human-machine recognition model preliminarily determines that the current operator is a natural person, then finally determine that the current operator is a natural person.
[0092] Optionally, the acquisition module 201 is further used for:
[0093] Collecting the pressing information applied by the current operator on the terminal touch screen within a preset time period, where the preset time period is calculated from the first collection of the pressing information applied by the current operator on the terminal touch screen; or collecting the pressing information applied by the current operator on the terminal touch screen N times, where N is an integer greater than or equal to 1;
[0094] The preliminary determination module 202 is also used for:
[0095] The collected pressing information within the preset time period is respectively used as input data and input into a pre-trained human-machine recognition model; or the collected N times of pressing information is respectively used as input data and input into a pre-trained human-machine recognition model.
[0096] Optionally, the preliminary determination module 202 is further configured to:
[0097] If the result of recognition by the human-machine recognition model based on the pressing information collected within the preset time period is that the proportion of the current operators being robots is greater than or equal to a first threshold, the human-machine recognition model preliminarily determines that the current operator is a robot; or
[0098] If the result of the human-machine identification model's identification based on the N times of pressing information is that the proportion of the current operators being robots is greater than or equal to a second threshold, the human-machine identification model preliminarily determines that the current operator is a robot.
[0099] Optionally, the acquisition module 201 is further configured to store the pressing information according to the pixel size of the button currently pressed by the operator.
[0100] Optionally, the final judgment module 203 is further used to:
[0101] Instructing the current operator to perform a specified action or speak a specified text, and calculating a first hash value of video data generated by the current operator performing the specified action or a second hash value of audio data generated by the current operator speaking the specified text;
[0102] again specifying that the current operator performs a specified action or speaks a specified word, and calculating a third hash value of the video data generated by the current operator performing the specified action or a fourth hash value of the audio data generated by the current operator speaking the specified word;
[0103] determining whether the first Hash value is the same as the third Hash value, or determining whether the second Hash value is the same as the fourth Hash value;
[0104] If the first hash value is different from the third hash value, or the second hash value is different from the fourth hash value, it is finally determined that the current operator has passed the human-machine verification.
[0105] The human-machine identification device of the embodiment of the present invention can preliminarily determine whether the operator is a human or a machine based on the behavioral characteristics of the operator applied to the touch screen. When it is preliminarily determined that the current operator is a robot, a secondary identification will be performed, thereby improving the identification accuracy. The verification code recognition in the prior art is converted into a background recognition that is invisible to the operator, thereby improving the user experience and increasing data security.
[0106] The above device can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.
[0107] Figure 3 An exemplary system architecture 300 is shown to which the human-machine identification method or human-machine identification apparatus according to the embodiment of the present invention can be applied.
[0108] like Figure 3 As shown, the system architecture 300 may include terminal devices 301, 302, 303, a network 304 and a server 305. The network 304 is used to provide a medium for communication links between the terminal devices 301, 302, 303 and the server 305. The network 304 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0109] Users can use terminal devices 301, 302, 303 to interact with server 305 through network 304 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 301, 302, 303, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0110] The terminal devices 301 , 302 , and 303 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0111] The server 305 may be a server that provides various services, such as a backend management server that provides support for shopping websites browsed by users using the terminal devices 301, 302, and 303. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information and product information) to the terminal device.
[0112] It should be noted that the human-machine identification method provided in the embodiment of the present invention is generally executed by the server 305 , and accordingly, the human-machine identification device is generally arranged in the server 305 .
[0113] It should be understood that Figure 3The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0114] Reference below Figure 4 , which shows a schematic diagram of the structure of a computer system 400 of a terminal device suitable for implementing an embodiment of the present invention. Figure 4 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0115] like Figure 4 As shown, the computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage part 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the system 400 are also stored. The CPU 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0116] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
[0117] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 409, and / or installed from the removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, the above-mentioned functions defined in the system of the present invention are executed.
[0118] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0119] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0120] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a sending module, an acquisition module, a determination module, and a first processing module. The names of these modules do not, in some cases, constitute a limitation on the unit itself. For example, the sending module may also be described as a "module for sending a picture acquisition request to the connected server."
[0121] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:
[0122] Collect the pressing information applied by the current operator on the terminal touch screen;
[0123] The pressing information is used as input data and input into a pre-trained human-machine recognition model to preliminarily determine whether the current operator is a natural person or a robot;
[0124] When the human-machine identification model preliminarily determines that the current operator is a robot, initiate human-machine verification to ultimately determine whether the current operator is a natural person or a robot; wherein the human-machine verification can only be completed by a natural person;
[0125] If the current operator passes the human-machine verification, it is finally determined that the current operator is a natural person.
[0126] The technical solution of the embodiment of the present invention can preliminarily determine whether the operator is a human or a machine based on the behavioral characteristics of the operator applied to the touch screen. When it is preliminarily determined that the current operator is a robot, a secondary identification will be performed, thereby improving the recognition accuracy. The verification code recognition in the prior art is converted into a background recognition that is invisible to the operator, thereby improving the user experience and increasing data security.
[0127] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A human-machine identification method, characterized in that: include: Collecting the pressing information applied by the current operator on the terminal touch screen and storing the pressing information, wherein the manner of storing the pressing information includes: using a three-dimensional array to represent multiple pressings on the same button, using a four-dimensional array to represent multiple pressings on different buttons by the same user, and using a five-dimensional array to represent multiple pressings on different buttons by different users; The pressing information is used as input data and input into a pre-trained human-machine recognition model to preliminarily determine whether the current operator is a natural person or a robot; When the human-machine identification model preliminarily determines that the current operator is a robot, initiate human-machine verification to ultimately determine whether the current operator is a natural person or a robot; wherein the human-machine verification can only be completed by a natural person; If the current operator passes the human-machine verification, it is finally determined that the current operator is a natural person.
2. The method according to claim 1, characterized in that: The method further comprises: When the human-machine recognition model preliminarily determines that the current operator is a natural person, it finally determines that the current operator is a natural person.
3. The method according to claim 1, characterized in that The information collected about the pressure applied by the current operator on the terminal touch screen includes: Collecting the pressing information applied by the current operator on the terminal touch screen within a preset time period, where the preset time period is calculated from the first collection of the pressing information applied by the current operator on the terminal touch screen; or Collecting N times of pressing information applied by the current operator on the terminal touch screen, where N is an integer greater than or equal to 1; using the pressing information as input data and inputting it into a pre-trained human-machine recognition model includes: respectively using the collected pressing information within the preset time as input data and inputting it into a pre-trained human-machine recognition model; or The collected N times of pressing information are respectively used as input data and input into the pre-trained human-machine recognition model.
4. The method according to claim 3, characterized in that The human-machine identification model preliminarily determines that the current operator is a robot including: If the result of recognition by the human-machine recognition model based on the pressing information collected within the preset time period is that the proportion of the current operators being robots is greater than or equal to a first threshold, the human-machine recognition model preliminarily determines that the current operator is a robot; or If the result of the human-machine identification model's identification based on the N times of pressing information is that the proportion of the current operators being robots is greater than or equal to a second threshold, the human-machine identification model preliminarily determines that the current operator is a robot.
5. The method according to claim 1, characterized in that The method further comprises: The pressing information is stored according to the pixel size of the button currently pressed by the operator.
6. The method according to claim 1, characterized in that Initiating human-machine verification includes: Instructing the current operator to perform a specified action or speak a specified text, and calculating a first hash value of video data generated by the current operator performing the specified action or a second hash value of audio data generated by the current operator speaking the specified text; again specifying that the current operator performs a specified action or speaks a specified word, and calculating a third hash value of the video data generated by the current operator performing the specified action or a fourth hash value of the audio data generated by the current operator speaking the specified word; determining whether the first Hash value is the same as the third Hash value, or determining whether the second Hash value is the same as the fourth Hash value; The current operator passing the human-machine verification includes: when the first Hash value is different from the third Hash value, or the second Hash value is different from the fourth Hash value, the current operator passing the human-machine verification.
7. A human-machine identification device, characterized in that: include: A collection module, used to collect the pressing information applied by the current operator on the terminal touch screen, and store the pressing information, wherein the manner of storing the pressing information includes: using a three-dimensional array to represent multiple pressings on the same button, using a four-dimensional array to represent multiple pressings on different buttons by the same user, and using a five-dimensional array to represent multiple pressings on different buttons by different users; A preliminary judgment module, used to input the pressing information as input data into a pre-trained human-machine recognition model to preliminarily determine whether the current operator is a natural person or a robot; The final determination module is used to initiate human-machine verification when the human-machine recognition model preliminarily determines that the current operator is a robot, so as to finally determine whether the current operator is a natural person or a robot; if the current operator passes the human-machine verification, it is finally determined that the current operator is a natural person, wherein the human-machine verification can only be completed by a natural person.
8. The device according to claim 7, characterized in that The final determination module is also used for: When the human-machine recognition model preliminarily determines that the current operator is a natural person, it finally determines that the current operator is a natural person.
9. The device according to claim 7, characterized in that The acquisition module is also used for: Collecting the pressing information applied by the current operator on the terminal touch screen within a preset time period, where the preset time period is calculated from the first collection of the pressing information applied by the current operator on the terminal touch screen; or collecting the pressing information applied by the current operator on the terminal touch screen N times, where N is an integer greater than or equal to 1; The preliminary judgment module is also used for: respectively using the collected pressing information within the preset time as input data and inputting it into a pre-trained human-machine recognition model; or The collected N times of pressing information are respectively used as input data and input into the pre-trained human-machine recognition model.
10. The device according to claim 9, characterized in that The preliminary judgment module is also used for: If the result of recognition by the human-machine recognition model based on the pressing information collected within the preset time period is that the proportion of the current operators being robots is greater than or equal to a first threshold, the human-machine recognition model preliminarily determines that the current operator is a robot; or If the result of the human-machine identification model's identification based on the N times of pressing information is that the proportion of the current operators being robots is greater than or equal to a second threshold, the human-machine identification model preliminarily determines that the current operator is a robot.
11. The device according to claim 7, characterized in that The acquisition module is also used for: The pressing information is stored according to the pixel size of the button currently pressed by the operator.
12. The device according to claim 7, characterized in that The final determination module is also used for: Instructing the current operator to perform a specified action or speak a specified text, and calculating a first hash value of video data generated by the current operator performing the specified action or a second hash value of audio data generated by the current operator speaking the specified text; again specifying that the current operator performs a specified action or speaks a specified word, and calculating a third hash value of the video data generated by the current operator performing the specified action or a fourth hash value of the audio data generated by the current operator speaking the specified word; determining whether the first Hash value is the same as the third Hash value, or determining whether the second Hash value is the same as the fourth Hash value; If the first hash value is different from the third hash value, or the second hash value is different from the fourth hash value, it is finally determined that the current operator has passed the human-machine verification.
13. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
14. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
