A detection method, device, electronic device and storage medium

By receiving operation instructions on the mobile device and obtaining sensor data, the source of the operation is identified, which solves the problem of inaccurate operation identification in the simulated environment and improves security and data protection.

CN110569183BActive Publication Date: 2025-01-21BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201810574765.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-06-06
Publication Date
2025-01-21
Estimated Expiration
2038-06-06

AI Technical Summary

Technical Problem

When running mobile device applications in simulated environments, it is difficult to accurately identify the source of operations, resulting in data and security losses.

Method used

By receiving operation instructions and obtaining relevant sensor data, the sensor change information is determined, and the source information of the operation instructions is identified based on this information to generate recognition results.

Benefits of technology

It improves the accuracy of the detection program running environment, effectively distinguishes between user operations and machine simulation operations, and enhances security and data protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110569183B_ABST
    Figure CN110569183B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a detection method, device, electronic device and storage medium to improve the accuracy of detecting the program running environment. The method comprises: receiving an operation instruction and obtaining sensor data corresponding to the operation instruction; determining sensor change information based on the sensor data; identifying the source information of the operation instruction based on the sensor change information, and generating a corresponding recognition result. Combining the operation and the sensor to detect the program running environment and performing recognition based on the difference between user operation and machine simulation operation can effectively improve the recognition accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a detection method, a detection device, an electronic device, and a storage medium. Background Art

[0002] In order to facilitate the development and testing of applications (Application, APP) of mobile devices, the operating system of the mobile device can be simulated on a PC (Personal Computer) through a virtual machine, simulator, etc., so as to run the APP of the mobile device.

[0003] Although this method of running APP in a simulated environment can facilitate program testing, it also leads to some problems. For example, running APP in a simulated environment pretends to be a normal user's operation, which leads to data and security losses, such as pretending to be a normal user to grab gift packages of game, financial and other APPs, pretending to be a normal user to steal user information, etc.

[0004] Therefore, the operations on the APP must also be identified to filter out the interference of the corresponding operations in the simulated environment. The usual identification method is to detect the system built-in information, network request header information, etc., but this information may be modified, resulting in inaccurate identification and detection results. Summary of the invention

[0005] The technical problem to be solved by the embodiments of the present invention is to provide a detection method to improve the accuracy of detecting the program running environment.

[0006] Correspondingly, an embodiment of the present invention further provides a detection device, an electronic device and a storage medium to ensure the implementation and application of the above method.

[0007] In order to solve the above problems, an embodiment of the present invention discloses a detection method, which includes: receiving an operation instruction and obtaining sensor data corresponding to the operation instruction; determining sensor change information based on the sensor data; identifying source information of the operation instruction based on the sensor change information, and generating a corresponding identification result.

[0008] Optionally, the acquiring sensor data corresponding to the operation instruction includes: calling a sensor related to the operation instruction to acquire corresponding sensor data.

[0009] Optionally, receiving an operation instruction and obtaining sensor data corresponding to the operation instruction includes: receiving an operation instruction on an interface and determining position information corresponding to the operation instruction; calling a sensor related to the operation instruction to obtain sensor data corresponding to the position information.

[0010] Optionally, the receiving of the operation instruction and obtaining the sensor data corresponding to the operation instruction includes: receiving the operation instruction on an interface and determining the time information corresponding to the operation instruction; calling a sensor related to the operation instruction to obtain the sensor data corresponding to the time information.

[0011] Optionally, the sensor data includes at least one of the following: acceleration data, temperature data, light intensity data, and pressure data.

[0012] Optionally, the sensor change information includes at least one of the following: operation change information and environment change information; the operation change information includes at least one of the following: acceleration change information and pressure change information; the environment change information includes at least one of the following: temperature change information and light intensity change information.

[0013] Optionally, identifying the source information of the operation instruction based on the sensor change information includes: determining whether the sensor change information reaches a change threshold; if the sensor change information reaches the change threshold, determining that the source information is a user operation; if the sensor change information does not reach the change threshold, determining that the source information is a machine simulation operation.

[0014] Optionally, the judging whether the sensor change information reaches the change threshold includes: judging whether the operation change information reaches the operation change threshold; if the operation change information reaches the operation change threshold, confirming that the sensor change information reaches the change threshold; if the operation change information does not reach the operation change threshold, judging whether the environment change information reaches the environment change threshold; if the environment change information reaches the environment change threshold, confirming that the sensor change information reaches the change threshold; if the environment change information does not reach the environment change threshold, confirming that the sensor change information does not reach the change threshold.

[0015] An embodiment of the present invention also discloses a detection device, including: an acquisition module, used to receive an operation instruction and acquire sensor data corresponding to the operation instruction; a determination module, used to determine sensor change information based on the sensor data; an identification module, used to identify source information of the operation instruction based on the sensor change information and generate a corresponding identification result.

[0016] Optionally, the acquisition module includes: a sensor data acquisition submodule, which is used to call a sensor related to the operation instruction to acquire corresponding sensor data.

[0017] Optionally, the acquisition module includes: an operation receiving submodule, used to receive operation instructions on the interface and determine the position information corresponding to the operation instructions; and a sensor data acquisition submodule, used to call the sensor related to the operation instructions and acquire the sensor data corresponding to the position information.

[0018] Optionally, the acquisition module includes: an operation receiving submodule, used to receive operation instructions on the interface and determine time information corresponding to the operation instructions; and a sensor data acquisition submodule, used to call sensors related to the operation instructions and acquire sensor data corresponding to the time information.

[0019] Optionally, the sensor data includes at least one of the following: acceleration data, temperature data, light intensity data, and pressure data.

[0020] Optionally, the sensor change information includes at least one of the following: operation change information and environment change information; the operation change information includes at least one of the following: acceleration change information and pressure change information; the environment change information includes at least one of the following: temperature change information and light intensity change information.

[0021] Optionally, the identification module is used to determine whether the sensor change information reaches a change threshold; if the sensor change information reaches the change threshold, the source information is determined to be a user operation; if the sensor change information does not reach the change threshold, the source information is determined to be a machine simulation operation.

[0022] Optionally, the identification module is used to determine whether the operation change information reaches the operation change threshold; if the operation change information reaches the operation change threshold, confirm that the sensor change information reaches the change threshold; if the operation change information does not reach the operation change threshold, determine whether the environment change information reaches the environment change threshold; if the environment change information reaches the environment change threshold, confirm that the sensor change information reaches the change threshold; if the environment change information does not reach the environment change threshold, confirm that the sensor change information does not reach the change threshold.

[0023] The embodiment of the present invention also discloses an electronic device, characterized in that it includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: receiving an operation instruction and obtaining sensor data corresponding to the operation instruction; determining sensor change information based on the sensor data; identifying source information of the operation instruction based on the sensor change information, and generating a corresponding recognition result.

[0024] Optionally, the acquiring sensor data corresponding to the operation instruction includes: calling a sensor related to the operation instruction to acquire corresponding sensor data.

[0025] Optionally, receiving an operation instruction and obtaining sensor data corresponding to the operation instruction includes: receiving an operation instruction on an interface and determining position information corresponding to the operation instruction; calling a sensor related to the operation instruction to obtain sensor data corresponding to the position information.

[0026] Optionally, the receiving of the operation instruction and obtaining the sensor data corresponding to the operation instruction includes: receiving the operation instruction on an interface and determining the time information corresponding to the operation instruction; calling a sensor related to the operation instruction to obtain the sensor data corresponding to the time information.

[0027] Optionally, the sensor data includes at least one of the following: acceleration data, temperature data, light intensity data, and pressure data.

[0028] Optionally, the sensor change information includes at least one of the following: operation change information and environment change information; the operation change information includes at least one of the following: acceleration change information and pressure change information; the environment change information includes at least one of the following: temperature change information and light intensity change information.

[0029] Optionally, identifying the source information of the operation instruction based on the sensor change information includes: determining whether the sensor change information reaches a change threshold; if the sensor change information reaches the change threshold, determining that the source information is a user operation; if the sensor change information does not reach the change threshold, determining that the source information is a machine simulation operation.

[0030] Optionally, the judging whether the sensor change information reaches the change threshold includes: judging whether the operation change information reaches the operation change threshold; if the operation change information reaches the operation change threshold, confirming that the sensor change information reaches the change threshold; if the operation change information does not reach the operation change threshold, judging whether the environment change information reaches the environment change threshold; if the environment change information reaches the environment change threshold, confirming that the sensor change information reaches the change threshold; if the environment change information does not reach the environment change threshold, confirming that the sensor change information does not reach the change threshold.

[0031] An embodiment of the present invention further discloses a readable storage medium, characterized in that when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the detection method as described in the embodiment of the present invention.

[0032] The embodiments of the present invention include the following advantages:

[0033] The embodiments of the present invention can receive operation instructions and obtain sensor data corresponding to the operation instructions, thereby combining the operation and the sensor to detect the program running environment. Sensor change information can be determined based on the sensor data, and source information of the operation instruction can be identified based on the sensor change information, and a corresponding recognition result can be generated. Recognition can be performed by distinguishing between user operation and machine simulation operation, which can effectively improve the accuracy of recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 is a flow chart of steps of an embodiment of a detection method of the present invention;

[0035] Figure 2 is a flow chart of steps of another detection method embodiment of the present invention;

[0036] Figure 3 is a flow chart of steps of another detection method embodiment of the present invention;

[0037] Figure 4 is a structural block diagram of an embodiment of a detection device of the present invention;

[0038] Figure 5 is a structural block diagram of another detection device embodiment of the present invention;

[0039] Figure 6 is a structural block diagram of an electronic device for detection according to an exemplary embodiment;

[0040] Figure 7 It is a schematic diagram of the structure of the server in the embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0042] In an embodiment of the present invention, the embodiment of the present invention can perform the operation of the application and the identification of the operating environment based on the difference between machine simulation operation and manual operation. Among them, the environment in which the application runs on the operating system of a physical mobile device can be called a general environment; the environment in which the application runs on the operating system simulated by a virtual machine or a simulator is called a simulated environment. Applications running in a general environment are usually manually operated, such as real users operating through fingers, styluses, etc., such as clicking on the interface, sliding, etc. During the manual operation, the force, speed, etc. are uneven, and the external environment is constantly changing. Applications running in a virtual environment are usually also program simulation operations, so they usually do not have uneven changes in force, speed, etc. like manual operations. Because it is a virtual environment, it will not collect data on the external environment like a physical mobile device. Therefore, based on the difference between machine simulation operation and manual operation, the operation and sensor data can be combined to identify the operating environment.

[0043] Among them, a virtual machine refers to a complete computer system with complete hardware system functions that runs in a completely isolated environment and is simulated by software. An emulator refers to software that simulates the Android operating system on a PC or other computer and can install, use, and uninstall applications, so that you can experience the operating system of mobile devices, such as Android and iOS, on your computer.

[0044] Reference Figure 1 , shows a flow chart of the steps of a detection method embodiment of the present invention, which may specifically include the following steps:

[0045] Step 102: Receive an operation instruction and obtain sensor data corresponding to the operation instruction.

[0046] After running the application on the operating system, the interface of the application can be displayed, and then corresponding operations can be performed, such as clicking on the interface, sliding on the interface, pressing, etc., corresponding to receiving operation instructions. In addition, the sensor can be called according to the operation instruction to obtain the corresponding sensor data. Among them, the called sensor can be set according to the needs, such as operation-related sensors, external environment-related sensors, etc. Sensor data refers to data obtained by the sensor, and its data category can be determined according to the sensor, such as acceleration data, pressure data, light intensity data, temperature data, etc. One or more sensor data can be obtained for each operation instruction.

[0047] Step 104: Determine sensor change information based on the sensor data.

[0048] During manual operation, the force, speed, etc. are uneven, and the external environment is constantly changing. Therefore, sensor change information can be determined based on sensor data. The sensor change information refers to the change in sensor data corresponding to the operation instruction, such as acceleration and pressure changes during clicking and sliding, and data such as changes in the surrounding environment. In this way, the change in operation can be perceived based on the sensor data, which is convenient for identification.

[0049] Step 106, identifying the source information of the operation instruction according to the sensor change information, and generating a corresponding identification result.

[0050] The source of the operation instruction can be determined by analyzing the changes in sensor data. Therefore, the source of the operation instruction can be identified based on the sensor change information. For example, it can be determined whether the sensor change information is 0, or whether it reaches a threshold, etc., to obtain the corresponding source information, and then generate the corresponding identification result based on the source information, such as whether it is a general environment or a simulated environment.

[0051] The source information may be determined based on one or more operation instructions, such as determining sensor change information through sensor data corresponding to one or more operation instructions, thereby determining the source to obtain an identification result.

[0052] In summary, by receiving operation instructions and acquiring sensor data corresponding to the operation instructions, the operation and sensor are combined to detect the program running environment. The sensor change information can be determined based on the sensor data, and the source information of the operation instruction can be identified based on the sensor change information. A corresponding recognition result can be generated, and recognition can be performed by distinguishing between user operations and machine simulation operations, which can effectively improve the recognition accuracy.

[0053] The embodiment of the present invention can be applied to various types of mobile devices, and can be used to call corresponding sensor data for identification based on the sensors of the mobile devices, and has high versatility. The sensor data includes at least one of the following: acceleration data, temperature data, light intensity data, and pressure data; acceleration data refers to data of acceleration sensors, such as accelerometers, gyroscopes, motion sensors, etc.; temperature data refers to data of temperature sensors; light intensity data refers to data of light sensors; and pressure data refers to data of pressure sensors.

[0054] In an optional embodiment, the obtaining of sensor data corresponding to the operation instruction includes: calling a sensor related to the operation instruction to obtain corresponding sensor data. For sensor data, the sensor related to the operation instruction can be called to obtain sensor data corresponding to the sensor. Among them, the selection of the sensor can be determined based on factors such as the device and the operation instruction. For example, for an instruction of a click operation, an acceleration sensor can be called to obtain acceleration data. For an instruction of a sliding operation, an acceleration sensor and / or a pressure sensor can be called to obtain corresponding acceleration data and / or pressure data. If the mobile device does not have an acceleration sensor, only the pressure data of the pressure sensor can be obtained. Therefore, the sensor can be selected flexibly based on the operation instruction and the built-in sensors in the device to obtain the corresponding sensor data.

[0055] In another optional embodiment of the present invention, receiving an operation instruction includes: receiving an operation instruction on an interface, and determining parameter information corresponding to the operation instruction. The parameter information may be various attributes corresponding to the operation instruction, such as location information, time information, etc., so that the required sensor can be determined based on the parameter information, and the sensor data corresponding to the parameter information can be obtained. During the operation of the application, a corresponding interface is displayed, and operations can be performed on the interface to receive the corresponding operation instruction, and parameter information corresponding to the operation instruction can be obtained, such as the location information of the point or area where the operation instruction is located, the location information of the trajectory or area passed by the operation instruction, and the time information such as the time point or time period of receiving the operation instruction, so as to facilitate the subsequent acquisition of sensor data.

[0056] The sensor change information includes at least one of the following: environment change information and operation change information. Environment change information refers to data of changes in the external environment of the mobile device, such as temperature, light intensity, etc. Operation change information refers to change data corresponding to the applied operation, such as acceleration, pressure, etc. The environment change information includes at least one of the following: temperature change information and light intensity change information. The temperature change information refers to changes corresponding to temperature data collected by the temperature sensor, such as changes in temperature data, which can be changes in the temperature data of the device itself or changes in external temperature data. The light intensity change information refers to changes in light intensity, such as changes in light intensity in the external environment, such as the angle at which the user holds the mobile device, the position of the face and the mobile device, etc., which may affect the light intensity; for example, the light sensor of the mobile device can be used to determine whether the user is indoors or under natural light conditions, and the value of light intensity will also change. If it is a virtual machine, the value of light intensity may always be 0 or unchanged. The operation change information includes at least one of the following: acceleration change information and pressure change information. The acceleration change information refers to changes in acceleration corresponding to the operation during the operation, such as changes in acceleration during the pressing process corresponding to the click operation, and changes in acceleration during the sliding operation corresponding to the sliding operation. The pressure change information refers to the pressure change data corresponding to the operation during the operation, such as the pressure change data corresponding to the pressing process of the click operation, the pressure change data corresponding to the sliding process of the sliding operation, etc.

[0057] Usually, when a mobile device such as a mobile phone goes from being still to being pressed by a user with a finger, acceleration will be generated, and the acceleration of the click can be determined by the acceleration sensor of the mobile device. For a virtual machine, the value of this acceleration is usually 0, or unchanged. For example, based on the difference in acceleration generated by each click of the user on the screen, the result is that the acceleration value generated by each screen click is in the range of 0 to 1000. The value of a machine-simulated click is usually 0 or remains unchanged. Therefore, sensor data can be collected to determine sensor change information, and based on the difference between user operation and machine-simulated operation, a corresponding change threshold can be set to determine whether it is a user operation or a machine-simulated operation.

[0058] Reference Figure 2 , shows a flow chart of another detection method embodiment of the present invention, which may specifically include the following steps:

[0059] Step 202: Receive an operation instruction and obtain sensor data corresponding to the operation instruction.

[0060] After running the application on the operating system, the interface of the application can be displayed, and then corresponding operations can be performed, such as clicking the interface, sliding on the interface, pressing, etc., and corresponding operation instructions are received. In addition, the sensor can be called according to the operation instruction to obtain the corresponding sensor data.

[0061] In an optional embodiment, the receiving of the operation instruction and the acquisition of the sensor data corresponding to the operation instruction include: receiving the operation instruction on the interface and determining the position information corresponding to the operation instruction; calling the sensor related to the operation instruction and acquiring the sensor data corresponding to the position information. The interface of the application is displayed, and the operation instruction can be received on the interface, such as the instruction of clicking on the interface, sliding on the interface, pressing, etc., and the position information corresponding to the operation instruction is acquired, such as the position or area of ​​the click or press, the sliding trajectory, etc. The sensor related to the operation instruction is then called, and the corresponding sensor data is acquired according to the position information.

[0062] In another optional embodiment, the receiving of the operation instruction and obtaining the sensor data corresponding to the operation instruction include: receiving the operation instruction on the interface and determining the time information corresponding to the operation instruction; calling the sensor related to the operation instruction and obtaining the sensor data corresponding to the time information. The interface of the application is displayed, and the operation instruction can be received on the interface, such as the instruction of clicking on the interface, sliding on the interface, pressing, etc., and the event information corresponding to the operation instruction is obtained, such as the event of clicking or pressing, the duration of sliding, etc. The sensor related to the operation instruction is called again, and the corresponding sensor data is obtained according to the position information.

[0063] Step 204: Determine sensor change information based on the sensor data.

[0064] During the manual operation of a real user, the force, speed, etc. are uneven, and the external environment is constantly changing. Therefore, sensor change information can be determined based on sensor data. The sensor change information refers to the change in sensor data corresponding to the operation instruction, such as acceleration and pressure changes during clicking and sliding, and data such as changes in the surrounding environment. In this way, the change in operation can be perceived based on the sensor data, which is convenient for identification.

[0065] Step 206: determine whether the sensor change information reaches a change threshold.

[0066] After obtaining the sensor change information, it is possible to detect whether the sensor change information reaches the change threshold, and different thresholds can be set for different types of sensors. The setting of the change threshold can also be based on various parameters, such as demand, experience, statistics, etc., so as to obtain a threshold that can judge the difference between user manual operation and machine simulation operation. For example, the change law or range of the sensor data corresponding to the user operation or machine simulation operation can be counted, so as to obtain the corresponding change threshold. For example, based on experience, it is determined that the machine simulation click operation usually sends a message through the interface without an actual click action, so its corresponding acceleration, pressure, etc. are all 0, then the acceleration change threshold can be set to non-0 (any value not 0), then if the acceleration change information is 0, it does not reach the change threshold, and if the acceleration change information is not 0, it reaches the change threshold.

[0067] If so, that is, the sensor change information reaches the change threshold, step 208 is executed; if not, that is, the sensor change information does not reach the change threshold, step 210 is executed.

[0068] Step 208: Determine that the source information is a user operation.

[0069] If the sensor change information reaches the change threshold, the change of the sensor data meets the condition of user operation, and its source information can be determined to be a user operation.

[0070] Step 210, determining that the source information is a machine simulation operation.

[0071] If the sensor change information does not reach the change threshold, the change of the sensor data does not meet the condition of the user operation, and the source information thereof can be determined to be the user operation.

[0072] Step 212: Generate corresponding recognition results.

[0073] Then, the corresponding recognition result can be generated based on the source information of the operation instruction. For example, the recognition result is that the operation instruction comes from user operation or machine simulation operation. The recognition result can also be generated based on the operating environment, such as the application being operated, the operation required to be performed by the instruction, etc. For example, for security, financial and other applications involving sensitive information, financial information, etc., when the user operation is detected, the recognition result of allowing the operation is generated, and the application can be operated normally. After the machine simulation operation is detected, the recognition result of rejecting the operation can be generated, and the operation instruction is rejected to prevent security and financial losses. Ensure the security of user equipment and reduce user losses.

[0074] In an embodiment of the present invention, the judgment of the source information can also be determined through multiple steps of judgment. In an optional embodiment, the judgment of whether the sensor change information reaches the change threshold includes: judging whether the operation change information reaches the operation change threshold; if the operation change information reaches the operation change threshold, confirming that the sensor change information reaches the change threshold; if the operation change information does not reach the operation change threshold, judging whether the environment change information reaches the environment change threshold; if the environment change information reaches the environment change threshold, confirming that the sensor change information reaches the change threshold; if the environment change information does not reach the environment change threshold, confirming that the sensor change information does not reach the change threshold. The operation change information can be judged first, and then the environment change information can be judged. Of course, the environment change information can also be judged first, and then the operation change information can be judged, according to the needs.

[0075] Taking the example of first determining the operation change information and then determining the environment change information, the recognition and detection methods of operation instructions are discussed.

[0076] Reference Figure 3 , shows a flow chart of steps of another detection method embodiment of the present invention, which may specifically include the following steps:

[0077] Step 302: receiving an operation instruction on the interface, and determining parameter information corresponding to the operation instruction.

[0078] The interface of the application is displayed, and then the operation instruction can be received on the interface, and parameter information corresponding to the operation instruction can be obtained, such as the location information of the point or area where the operation instruction is located, the location information of the track or area passed by the operation instruction, and time information such as the time point or time period of receiving the operation instruction.

[0079] Step 304: call a sensor related to the operation instruction to obtain sensor data corresponding to the parameter information.

[0080] Determine the sensor related to the operation instruction, such as acceleration sensor, temperature sensor, light sensor, pressure sensor, etc. Then, obtain the sensor data corresponding to the sensor according to the parameter information, including sensor data corresponding to the position information and / or sensor data corresponding to the time information. For example, pressure information corresponding to the point or area where the operation instruction is located; acceleration information of the track or area passed by the operation instruction; light intensity and temperature data during clicking or sliding, etc.

[0081] Step 306: Determine sensor change information based on the sensor data.

[0082] During the manual operation of a real user, the force and speed are uneven, and the external environment is constantly changing. Therefore, sensor change information can be determined based on sensor data. The sensor change information refers to the change in sensor data corresponding to the operation instruction, such as the acceleration and pressure changes during the click and slide process, and the data of the surrounding environment changes. Therefore, the change of the operation can be perceived based on the sensor data, which is convenient for identification.

[0083] Step 308: Determine whether the operation change information reaches an operation change threshold.

[0084] After acquiring the sensor change information, it is possible to detect whether the operation change information reaches an operation change threshold, such as detecting whether the acceleration change information reaches an acceleration change threshold, or detecting whether the pressure change information reaches a pressure change threshold.

[0085] If so, that is, the operation change information reaches the operation change threshold, step 312 is executed; if not, that is, the operation change information does not reach the operation change threshold, step 310 is executed.

[0086] Step 310: determine whether the environmental change information reaches an environmental change threshold.

[0087] After determining that the operation change information does not reach the operation change threshold, it can be determined whether the environment change information reaches the environment change threshold, such as whether the change in light intensity reaches the light intensity change threshold, or whether the temperature change reaches the temperature change threshold.

[0088] If so, that is, the environment change information reaches the environment change threshold, step 312 is executed; if not, that is, the environment change information does not reach the environment change threshold, step 314 is executed.

[0089] Step 312, determining that the source information is a user operation.

[0090] If the sensor change information reaches the change threshold, the change of the sensor data meets the condition of user operation, and its source information can be determined to be a user operation.

[0091] Step 314, determining that the source information is a machine simulation operation.

[0092] If the sensor change information does not reach the change threshold, the change of the sensor data does not meet the condition of the user operation, and the source information thereof can be determined to be the user operation.

[0093] Step 316, generating corresponding recognition results.

[0094] Then, the corresponding recognition result can be generated based on the source information of the operation instruction. For example, the recognition result is that the operation instruction comes from user operation or machine simulation operation. The recognition result can also be generated based on the operating environment, such as the application being operated, the operation required to be performed by the instruction, etc. For example, for security, financial and other applications involving sensitive information, financial information, etc., when the user operation is detected, the recognition result of allowing the operation is generated, and the application can be operated normally. After the machine simulation operation is detected, the recognition result of rejecting the operation can be generated, and the operation instruction is rejected to prevent security and financial losses. Ensure the security of user equipment and reduce user losses.

[0095] The embodiment of the present invention innovatively tracks the user's operations on the interface and related environmental information by using sensors, and verifies them through built-in sensors. It can be applied to various mobile devices without increasing hardware costs, and can realize the recognition of various existing simulators and virtual machines.

[0096] The embodiments of the present invention can be applied to the inspection of various types of applications, such as Internet financial APPs, payment APPs, security APPs, communication APPs, etc., with a wide range of applications and high scalability. By analyzing the sensor data corresponding to the user's operation in the application interface, the credibility of the user's operation is identified, thereby improving the accuracy of the inspection results.

[0097] The embodiment of the present invention also has high flexibility, can be turned on and off in required scenarios, and has fast detection and high efficiency.

[0098] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0099] The embodiment of the present invention further provides a detection device, which is applied to electronic devices such as mobile phones and tablet computers.

[0100] Reference Figure 4 , shows a structural block diagram of an embodiment of a detection device of the present invention, which may specifically include the following modules:

[0101] The acquisition module 402 is used to receive an operation instruction and acquire sensor data corresponding to the operation instruction.

[0102] The determination module 404 is configured to determine sensor change information according to the sensor data.

[0103] The identification module 406 is used to identify the source information of the operation instruction according to the sensor change information and generate a corresponding identification result.

[0104] In summary, the operation instruction is received and the sensor data corresponding to the operation instruction is obtained, so that the operation and the sensor are combined to detect the program running environment, the sensor change information can be determined according to the sensor data, the source information of the operation instruction can be identified according to the sensor change information, and the corresponding recognition result can be generated. The recognition can be performed by the difference between the user operation and the machine simulation operation, which can effectively improve the recognition accuracy. Improve the security of mobile phones.

[0105] Reference Figure 5 , shows a structural block diagram of another detection device embodiment of the present invention, which may specifically include the following modules:

[0106] The acquisition module 402 is used to receive an operation instruction and acquire sensor data corresponding to the operation instruction.

[0107] The determination module 404 is configured to determine sensor change information according to the sensor data.

[0108] The identification module 406 is used to identify the source information of the operation instruction according to the sensor change information and generate a corresponding identification result.

[0109] The acquisition module 402 includes an operation receiving submodule 4022 and a sensor data acquisition submodule 4024, wherein:

[0110] The operation receiving submodule 4022 is used to receive an operation instruction on the interface and determine parameter information corresponding to the operation instruction, wherein the parameter information includes time information and / or location information;

[0111] The sensor data acquisition submodule 4024 is used to call the sensor related to the operation instruction to obtain corresponding sensor data.

[0112] In an optional embodiment, the operation receiving submodule 4022 is used to receive an operation instruction on the interface and determine the position information corresponding to the operation instruction; the sensor data acquisition submodule 4024 is used to call the sensor related to the operation instruction and obtain the sensor data corresponding to the position information.

[0113] In another optional embodiment, the operation receiving submodule 4022 is used to receive operation instructions on the interface and determine the time information corresponding to the operation instructions; the sensor data acquisition submodule 4024 is used to call the sensor related to the operation instructions and obtain the sensor data corresponding to the time information.

[0114] Optionally, the sensor data includes at least one of the following: acceleration data, temperature data, light intensity data, and pressure data. The sensor change information includes at least one of the following: operation change information and environment change information; the operation change information includes at least one of the following: acceleration change information and pressure change information; the environment change information includes at least one of the following: temperature change information and light intensity change information.

[0115] The identification module 406 is used to determine whether the sensor change information reaches the change threshold; if the sensor change information reaches the change threshold, the source information is determined to be a user operation; if the sensor change information does not reach the change threshold, the source information is determined to be a machine simulation operation.

[0116] The identification module 406 is used to determine whether the operation change information reaches the operation change threshold; if the operation change information reaches the operation change threshold, it is confirmed that the sensor change information reaches the change threshold; if the operation change information does not reach the operation change threshold, it is determined whether the environment change information reaches the environment change threshold; if the environment change information reaches the environment change threshold, it is confirmed that the sensor change information reaches the change threshold; if the environment change information does not reach the environment change threshold, it is confirmed that the sensor change information does not reach the change threshold.

[0117] The corresponding recognition result can be generated based on the source information of the operation instruction. For example, the recognition result is that the operation instruction comes from user operation or machine simulation operation. The recognition result can also be generated based on the operating environment, such as the application being operated, the operation required to be performed by the instruction, etc. For example, for security, financial and other applications involving sensitive information, financial information, etc., when the user operation is detected, the recognition result of allowing the operation is generated, and the application can be operated normally. After the machine simulation operation is detected, the recognition result of rejecting the operation can be generated, and the operation instruction is rejected to prevent security and financial losses. Ensure the security of user devices and reduce user losses.

[0118] The embodiment of the present invention innovatively tracks the user's operations on the interface and related environmental information by using sensors, and verifies them through built-in sensors. It can be applied to various mobile devices without increasing hardware costs, and can realize the recognition of various existing simulators and virtual machines.

[0119] The embodiments of the present invention can be applied to the inspection of various types of applications, such as Internet financial APPs, payment APPs, security APPs, communication APPs, etc., with a wide range of applications and high scalability. By analyzing the sensor data corresponding to the user's operation in the application interface, the credibility of the user's operation is identified, thereby improving the accuracy of the inspection results.

[0120] The embodiment of the present invention also has high flexibility, can be turned on and off in required scenarios, and has fast detection and high efficiency.

[0121] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0122] Figure 6 6 is a block diagram of an electronic device 600 for detection according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0123] Reference Figure 6 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0124] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0125] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0126] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.

[0127] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0128] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0129] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0130] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0131] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0132] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0133] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0134] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute an input method, the method comprising: receiving an operation instruction and obtaining sensor data corresponding to the operation instruction; determining sensor change information based on the sensor data; identifying source information of the operation instruction based on the sensor change information, and generating a corresponding recognition result.

[0135] Optionally, the acquiring sensor data corresponding to the operation instruction includes: calling a sensor related to the operation instruction to acquire corresponding sensor data.

[0136] Optionally, receiving an operation instruction and obtaining sensor data corresponding to the operation instruction includes: receiving an operation instruction on an interface and determining position information corresponding to the operation instruction; calling a sensor related to the operation instruction to obtain sensor data corresponding to the position information.

[0137] Optionally, the receiving of the operation instruction and obtaining the sensor data corresponding to the operation instruction includes: receiving the operation instruction on an interface and determining the time information corresponding to the operation instruction; calling a sensor related to the operation instruction to obtain the sensor data corresponding to the time information.

[0138] Optionally, the sensor data includes at least one of the following: acceleration data, temperature data, light intensity data, and pressure data.

[0139] Optionally, the sensor change information includes at least one of the following: operation change information and environment change information; the operation change information includes at least one of the following: acceleration change information and pressure change information; the environment change information includes at least one of the following: temperature change information and light intensity change information.

[0140] Optionally, identifying the source information of the operation instruction based on the sensor change information includes: determining whether the sensor change information reaches a change threshold; if the sensor change information reaches the change threshold, determining that the source information is a user operation; if the sensor change information does not reach the change threshold, determining that the source information is a machine simulation operation.

[0141] Optionally, the judging whether the sensor change information reaches the change threshold includes: judging whether the operation change information reaches the operation change threshold; if the operation change information reaches the operation change threshold, confirming that the sensor change information reaches the change threshold; if the operation change information does not reach the operation change threshold, judging whether the environment change information reaches the environment change threshold; if the environment change information reaches the environment change threshold, confirming that the sensor change information reaches the change threshold; if the environment change information does not reach the environment change threshold, confirming that the sensor change information does not reach the change threshold.

[0142] Figure 77 is a schematic diagram of the structure of the server in an embodiment of the present invention. The server 700 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 722 (for example, one or more processors) and a memory 732, and one or more storage media 730 (for example, one or more mass storage devices) storing application programs 742 or data 744. Among them, the memory 732 and the storage medium 730 can be temporary storage or permanent storage. The program stored in the storage medium 730 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 722 can be configured to communicate with the storage medium 730 and execute a series of instruction operations in the storage medium 730 on the server 800.

[0143] The server 700 may also include one or more power supplies 726, one or more wired or wireless network interfaces 750, one or more input and output interfaces 758, one or more keyboards 756, and / or one or more operating systems 741, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0144] An embodiment of the present invention also discloses an electronic device, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: receiving an operation instruction and obtaining sensor data corresponding to the operation instruction; determining sensor change information based on the sensor data; identifying source information of the operation instruction based on the sensor change information, and generating a corresponding identification result.

[0145] Optionally, the acquiring sensor data corresponding to the operation instruction includes: calling a sensor related to the operation instruction to acquire corresponding sensor data.

[0146] Optionally, receiving an operation instruction and obtaining sensor data corresponding to the operation instruction includes: receiving an operation instruction on an interface and determining position information corresponding to the operation instruction; calling a sensor related to the operation instruction to obtain sensor data corresponding to the position information.

[0147] Optionally, the receiving of the operation instruction and obtaining the sensor data corresponding to the operation instruction includes: receiving the operation instruction on an interface and determining the time information corresponding to the operation instruction; calling a sensor related to the operation instruction to obtain the sensor data corresponding to the time information.

[0148] Optionally, the sensor data includes at least one of the following: acceleration data, temperature data, light intensity data, and pressure data.

[0149] Optionally, the sensor change information includes at least one of the following: operation change information and environment change information; the operation change information includes at least one of the following: acceleration change information and pressure change information; the environment change information includes at least one of the following: temperature change information and light intensity change information.

[0150] Optionally, identifying the source information of the operation instruction based on the sensor change information includes: determining whether the sensor change information reaches a change threshold; if the sensor change information reaches the change threshold, determining that the source information is a user operation; if the sensor change information does not reach the change threshold, determining that the source information is a machine simulation operation.

[0151] Optionally, the judging whether the sensor change information reaches the change threshold includes: judging whether the operation change information reaches the operation change threshold; if the operation change information reaches the operation change threshold, confirming that the sensor change information reaches the change threshold; if the operation change information does not reach the operation change threshold, judging whether the environment change information reaches the environment change threshold; if the environment change information reaches the environment change threshold, confirming that the sensor change information reaches the change threshold; if the environment change information does not reach the environment change threshold, confirming that the sensor change information does not reach the change threshold.

[0152] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0153] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0154] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0155] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0156] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0157] The above is a detailed introduction to a detection method and device, an electronic device and a storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for a general technician in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A detection method, characterized in that: The method includes: Receive an operation instruction and obtain sensor data corresponding to the operation instruction; Determine sensor change information according to the sensor data; the sensor change information includes: operation change information and environment change information; the operation change information includes: acceleration change information and pressure change information; the environment change information includes: temperature change information and light intensity change information; Determining whether the operation change information reaches an operation change threshold; If the acceleration change information in the operation change information reaches the acceleration change threshold, and / or the pressure change information in the operation change information reaches the pressure change threshold, confirming that the operation change information reaches the operation change threshold, and confirming that the sensor change information reaches the change threshold; If the operation change information does not reach the operation change threshold, determining whether the environment change information reaches the environment change threshold; If the temperature change information in the environment change information reaches the temperature change threshold, and / or the light intensity change information in the environment change information reaches the light intensity change threshold, then confirming that the environment change information reaches the environment change threshold, and confirming that the sensor change information reaches the change threshold; If the environment change information does not reach the environment change threshold, confirming that the sensor change information does not reach the change threshold; When the sensor change information reaches the change threshold, the source information of the operation instruction is determined to be a user operation, or, when the sensor change information does not reach the change threshold, the source information of the operation instruction is determined to be a machine simulation operation, and a corresponding recognition result is generated.

2. The method according to claim 1, characterized in that The acquiring sensor data corresponding to the operation instruction includes: The sensor related to the operation instruction is called to obtain corresponding sensor data.

3. The method according to claim 1, characterized in that The receiving the operation instruction and acquiring the sensor data corresponding to the operation instruction includes: Receiving an operation instruction on the interface, and determining the position information corresponding to the operation instruction; A sensor related to the operation instruction is called to obtain sensor data corresponding to the position information.

4. The method according to claim 1, characterized in that The receiving the operation instruction and acquiring the sensor data corresponding to the operation instruction includes: Receiving an operation instruction on the interface, and determining time information corresponding to the operation instruction; A sensor related to the operation instruction is called to obtain sensor data corresponding to the time information.

5. The method according to any one of claims 1 to 4, characterized in that: The sensor data includes: acceleration data, temperature data, light intensity data, and pressure data.

6. A detection device, characterized in that: include: An acquisition module, used for receiving an operation instruction and acquiring sensor data corresponding to the operation instruction; A determination module, used to determine sensor change information based on the sensor data; The sensor change information includes: operation change information and environment change information; the operation change information includes: acceleration change information and pressure change information; the environment change information includes: temperature change information and light intensity change information; an identification module is used to identify the source information of the operation instruction according to the sensor change information and generate a corresponding identification result; The sensor change information includes: operation change information and environment change information; the operation change information includes: acceleration change information and pressure change information; the environment change information includes: temperature change information and light intensity change information; The identification module is used to determine whether the sensor change information reaches a change threshold; if the sensor change information reaches the change threshold, the source information is determined to be a user operation; if the sensor change information does not reach the change threshold, the source information is determined to be a machine simulation operation; The identification module is used to determine whether the operation change information reaches the operation change threshold; if the acceleration change information in the operation change information reaches the acceleration change threshold, and / or the pressure change information in the operation change information reaches the pressure change threshold, then confirm that the operation change information reaches the operation change threshold, and confirm that the sensor change information reaches the change threshold; if the operation change information does not reach the operation change threshold, then determine whether the environment change information reaches the environment change threshold; if the temperature change information in the environment change information reaches the temperature change threshold, and / or the light intensity change information in the environment change information reaches the light intensity change threshold, then confirm that the environment change information reaches the environment change threshold, and confirm that the sensor change information reaches the change threshold; if the environment change information does not reach the environment change threshold, then confirm that the sensor change information does not reach the change threshold.

7. The device according to claim 6, characterized in that The acquisition module comprises: The sensor data acquisition submodule is used to call the sensor related to the operation instruction to obtain the corresponding sensor data.

8. The device according to claim 6, characterized in that The acquisition module comprises: An operation receiving submodule, used to receive an operation instruction on the interface and determine the position information corresponding to the operation instruction; The sensor data acquisition submodule is used to call the sensor related to the operation instruction to obtain the sensor data corresponding to the position information.

9. The device according to claim 6, characterized in that The acquisition module comprises: The operation receiving submodule is used to receive the operation instruction on the interface and determine the time information corresponding to the operation instruction; The sensor data acquisition submodule is used to call the sensor related to the operation instruction to obtain the sensor data corresponding to the time information.

10. The device according to any one of claims 6 to 9, characterized in that: The sensor data includes: acceleration data, temperature data, light intensity data, and pressure data.

11. An electronic device, characterized in that: The system comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: Receive an operation instruction and obtain sensor data corresponding to the operation instruction; determining sensor change information based on the sensor data; The sensor change information includes: operation change information and environment change information; the operation change information includes: acceleration change information and pressure change information; the environment change information includes: temperature change information and light intensity change information; Determining whether the operation change information reaches an operation change threshold; If the acceleration change information in the operation change information reaches the acceleration change threshold, and / or the pressure change information in the operation change information reaches the pressure change threshold, confirming that the operation change information reaches the operation change threshold, and confirming that the sensor change information reaches the change threshold; If the operation change information does not reach the operation change threshold, determining whether the environment change information reaches the environment change threshold; If the temperature change information in the environment change information reaches the temperature change threshold, and / or the light intensity change information in the environment change information reaches the light intensity change threshold, then confirming that the environment change information reaches the environment change threshold, and confirming that the sensor change information reaches the change threshold; If the environment change information does not reach the environment change threshold, confirming that the sensor change information does not reach the change threshold; When the sensor change information reaches the change threshold, the source information of the operation instruction is determined to be a user operation, or, when the sensor change information does not reach the change threshold, the source information of the operation instruction is determined to be a machine simulation operation, and a corresponding recognition result is generated.

12. The electronic device according to claim 11, characterized in that: The acquiring sensor data corresponding to the operation instruction includes: The sensor related to the operation instruction is called to obtain corresponding sensor data.

13. The electronic device according to claim 11, characterized in that: The receiving the operation instruction and acquiring the sensor data corresponding to the operation instruction includes: Receiving an operation instruction on the interface, and determining the position information corresponding to the operation instruction; A sensor related to the operation instruction is called to obtain sensor data corresponding to the position information.

14. The electronic device according to claim 11, characterized in that: The receiving the operation instruction and acquiring the sensor data corresponding to the operation instruction includes: Receiving an operation instruction on the interface, and determining time information corresponding to the operation instruction; A sensor related to the operation instruction is called to obtain sensor data corresponding to the time information.

15. The electronic device according to any one of claims 11 to 14, characterized in that: The sensor data includes: acceleration data, temperature data, light intensity data, and pressure data.

16. A readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the detection method as described in any one of method claims 1-5.

Citation Information

Patent Citations

  • Equipment recognition method and device

    CN107091940A