CN112333129B - Method, device, equipment and storage medium for determining equipment type - Google Patents

Method, device, equipment and storage medium for determining equipment type Download PDF

Info

Publication number
CN112333129B
CN112333129B CN201910717042.XA CN201910717042A CN112333129B CN 112333129 B CN112333129 B CN 112333129B CN 201910717042 A CN201910717042 A CN 201910717042A CN 112333129 B CN112333129 B CN 112333129B
Authority
CN
China
Prior art keywords
device information
historical
target
information
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910717042.XA
Other languages
Chinese (zh)
Other versions
CN112333129A (en
Inventor
邬俊杰
李景中
王文渊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910717042.XA priority Critical patent/CN112333129B/en
Publication of CN112333129A publication Critical patent/CN112333129A/en
Application granted granted Critical
Publication of CN112333129B publication Critical patent/CN112333129B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for determining equipment types, wherein the method comprises the following steps: acquiring first equipment information and target user information which are sent by target equipment when a target operation instruction is detected, and determining a target user which generates the target operation instruction based on the target equipment triggering according to the target user information; acquiring a historical device information set; if the historical device information set comprises one or more pieces of first historical device information of the target user, determining that the target device is a frequently-used device or an unusually-used device of the target user based on the first device information and the one or more pieces of first historical device information; and if the historical device information set does not comprise the first historical device information of the target user, determining that the target device is a frequently-used device of the target user. By adopting the embodiment of the invention, the equipment type of the equipment used by the user can be quickly determined, the accuracy of determining the equipment type can be improved, and the applicability is high.

Description

Method, device, equipment and storage medium for determining equipment type
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for determining a device type.
Background
With the continuous development of computer technology and internet technology, users use various devices more and more frequently, and the types of applications in the devices are more and more. Typically, a user will perform some operation, such as shopping, getting on and off duty for a card, etc., based on an application within a fixed device (referred to as a regular device). For the shopping behavior, once a user uses the non-common equipment to shop, information security problems may exist, and for the work attendance card punching behavior, once an employee uses the non-common equipment to punch a card, the problem of substitute card punching and the like is easily caused, and the employee behavior cannot be effectively normalized.
Therefore, how to quickly determine the type of the device used by the user or the employee becomes an urgent problem to be solved.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for determining a device type, which can quickly determine the device type of a device used by a user, can improve accuracy of determining the device type, and have high applicability.
In a first aspect, an embodiment of the present invention provides a method for determining a device type, where the method includes:
acquiring first device information and target user information which are sent by target equipment when a target operation instruction is detected, and determining a target user which generates the target operation instruction based on the target equipment triggering according to the target user information;
acquiring a historical equipment information set, wherein the historical equipment information set comprises historical equipment information of at least one user;
if the historical device information set comprises one or more pieces of first historical device information of the target user, determining that the target device is a frequently-used device or an unusually-used device of the target user based on the first device information and the one or more pieces of first historical device information;
and if the historical device information set does not include the first historical device information of the target user, determining that the target device is a frequently-used device of the target user.
With reference to the first aspect, in a possible implementation manner, the determining, based on the first device information and the one or more first history device information, that the target device is a frequently-used device or an unusually-used device of the target user includes:
determining second equipment information from the one or more first historical equipment information;
when the first device information is consistent with the second device information, determining that the target device is a frequently-used device of the target user;
when the first device information is inconsistent with the second device information, determining second historical device information from the historical device information set, and determining that the target device is a frequently-used device or an unusually-used device of the target user according to the second historical device information;
the second historical device information is the other historical device information except the one or more first historical device information in the historical device information set.
With reference to the first aspect, in a possible implementation manner, the determining, according to the second historical device information, that the target device is a frequently-used device or an unusually-used device of the target user includes:
determining whether the first device information is included in the second history device information;
if the second historical device information comprises the first device information, determining that the target device is an emergency device of the target user;
and if the second historical device information does not include the first device information and the first historical device information which is consistent with the first device information does not exist in the first historical device information except the second device information in the plurality of pieces of first historical device information, determining that the target device is a frequently-used device of the target user.
With reference to the first aspect, in a possible implementation manner, the determining second device information from the one or more first historical device information includes:
when the historical device information set comprises first historical device information of the target user, determining the first historical device information as second device information;
when the plurality of pieces of first historical device information of the target user are included in the historical device information set, the acquisition time of the first device information and the adding time of each piece of first historical device information to the historical device information set are determined, and the first historical device information with the shortest time interval between the adding time and the acquisition time is determined as the second device information.
With reference to the first aspect, in a possible implementation manner, the historical device information set includes a plurality of pieces of first historical device information of the target user;
the determining, based on the first device information and the one or more pieces of first historical device information, that the target device is a frequently-used device or an unusually-used device of the target user includes:
determining second device information from the plurality of pieces of first historical device information, wherein the second device information is the first historical device information with the shortest time interval between the adding time of the historical device information set and the acquiring time of the first device information from the plurality of pieces of first historical device information;
when the first device information is consistent with the second device information, determining that the target device is a frequently-used device of the target user;
and determining that the target device is an emergency device of the target user when the first device information does not match the second device information and there is first history device information that matches the first device information in each of the plurality of pieces of first history device information except the second device information.
With reference to the first aspect, in a possible implementation manner, after determining that the target device is a device commonly used by the target user, the method further includes:
and adding the first device information to the historical device information set to serve as the historical device information of the target user.
With reference to the first aspect, in a possible implementation manner, after determining that the target device is an emergency device of the target user, the method further includes:
and generating abnormal equipment alarm information based on the first equipment information, and sending the abnormal equipment alarm information to the target equipment so as to alarm the target user for the abnormal equipment based on the target equipment.
In a second aspect, an embodiment of the present invention provides an apparatus for determining a device type, where the apparatus for determining a device type includes:
the information acquisition module is used for acquiring first equipment information and target user information which are sent by target equipment when a target operation instruction is detected, and determining a target user which generates the target operation instruction based on the triggering of the target equipment according to the target user information;
the information acquisition module is further configured to acquire a historical device information set, where the historical device information set includes historical device information of at least one user;
a type determining module, configured to determine, when the historical device information set includes one or more pieces of first historical device information of the target user, that the target device is a frequently-used device or an unusually-used device of the target user based on the first device information and the one or more pieces of first historical device information;
the type determining module is further configured to determine that the target device is a frequently-used device of the target user when the historical device information set does not include the first historical device information of the target user.
With reference to the second aspect, in one possible implementation manner, the type determining module includes:
a first determining unit, configured to determine second device information from the one or more pieces of first history device information;
a second determining unit, configured to determine that the target device is a frequently-used device of the target user when the first device information is consistent with the second device information;
a third determining unit, configured to determine, when the first device information is inconsistent with the second device information, second historical device information from the historical device information set, and determine, according to the second historical device information, that the target device is a frequently-used device or an unusually-used device of the target user;
the second historical device information is the other historical device information except the one or more first historical device information in the historical device information set.
With reference to the second aspect, in one possible implementation, the third determining unit includes:
a first determining subunit, configured to determine whether the first device information is included in the second history device information;
a second determining subunit, configured to determine that the target device is an emergency device of the target user when the first device information is included in the second history device information;
a third determining unit, configured to determine that the target device is a frequently-used device of the target user when the first device information is not included in the second history device information and there is no first history device information that matches the first device information in each of the plurality of pieces of first history device information except the second device information.
With reference to the second aspect, in one possible implementation, the first determining unit includes:
a fourth determining subunit, configured to determine, when the historical apparatus information set includes one piece of first historical apparatus information of the target user, the one piece of first historical apparatus information as the second apparatus information;
a fifth determining subunit, configured to determine, when the plurality of pieces of first history device information of the target user are included in the history device information set, an acquisition time of the first device information and an addition time at which each piece of the first history device information is added to the history device information set, and determine, as the second device information, the first history device information whose time interval between the addition time and the acquisition time is shortest.
With reference to the second aspect, in a possible implementation manner, the historical device information set includes a plurality of pieces of first historical device information of the target user;
the type determining module includes:
a fourth determining unit, configured to determine second device information from the plurality of pieces of first historical device information, where the second device information is the first historical device information in which a time interval between an adding time of the first historical device information set and an obtaining time of the first device information is shortest, from the plurality of pieces of first historical device information;
a fifth determining unit, configured to determine that the target device is a frequently-used device of the target user when the first device information is consistent with the second device information;
a sixth determining unit configured to determine that the target device is an emergency device of the target user when the first device information does not match the second device information and there is first history device information that matches the first device information in each of the plurality of pieces of first history device information except the second device information.
With reference to the second aspect, in a possible implementation manner, the determining apparatus further includes:
and the information adding module is further used for adding the first device information to the historical device information set to serve as the historical device information of the target user.
With reference to the second aspect, in a possible implementation manner, the determining apparatus further includes:
and the device alarm module is further configured to generate unusual device alarm information based on the first device information, and send the unusual device alarm information to the target device to perform unusual device alarm on the target user based on the target device.
In a third aspect, an embodiment of the present invention provides an apparatus, which includes a processor and a memory, where the processor and the memory are connected to each other. The memory is configured to store a computer program that supports the terminal device to execute the method provided by the first aspect and/or any one of the possible implementation manners of the first aspect, where the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method provided by the first aspect and/or any one of the possible implementation manners of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, which stores a computer program, where the computer program is executed by a processor to implement the method provided by the first aspect and/or any one of the possible implementation manners of the first aspect.
In the embodiment of the invention, the target device is determined to be the frequently-used device of the user under the condition that the first historical device information of the user is not included in the historical device information set, a brand-new device used by the user for the first time can be determined to be the frequently-used device of the user, the condition that the brand-new device is determined to be the frequently-used device due to the fact that the user device is replaced with a new device can be avoided, and the situation is more suitable for a real user using scene. In addition, as long as the user uses the commonly used equipment of other users or uses the equipment which is not the commonly used equipment used last time, the equipment used by the user at this time can be determined as the non-commonly used equipment of the user, the range of the equipment type (the commonly used equipment and the non-commonly used equipment) can be further determined, and the accuracy of equipment type determination is improved. In addition, after the device used by the user is determined to be the non-use device, the non-use device warning information can be generated and displayed to the user based on the device used by the user, so that the information safety is improved, the user behavior is further normalized, and the applicability is higher.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic network architecture diagram of a device type determination method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for determining a device type according to an embodiment of the present invention;
FIG. 3a is a diagram of an application scenario for triggering generation of a target operation instruction according to an embodiment of the present invention;
FIG. 3b is a diagram of another application scenario for triggering generation of a target operation instruction according to an embodiment of the present invention;
fig. 4 is another schematic flow chart of a method for determining a device type according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of a method for determining a device type according to an embodiment of the present invention;
FIG. 6 is a diagram of an application scenario showing device types and related information provided by an embodiment of the present invention;
FIG. 7 is a diagram illustrating a scenario of alert of an emergency device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus for determining a type of device provided in an embodiment of the present invention;
fig. 9 is another schematic structural diagram of the apparatus for determining a device type according to the embodiment of the present invention;
fig. 10 is a schematic structural diagram of a device type determining apparatus according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an apparatus provided in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The method for determining the type of the device (for convenience of description, the method provided by the embodiment of the present invention may be abbreviated as "method") provided by the embodiment of the present invention is applicable to any scenario depending on the type of the device, for example, when any application built in the device is logged in, whether the login state is safe or not is determined by determining the type of the device; when a card is punched based on a card punching application built in the device, whether the card punching data is valid or not is determined by judging the device type, and the like, and the determination can be specifically based on an actual application scene, which is not limited herein.
Referring to fig. 1, fig. 1 is a schematic network architecture diagram of a device type determining method according to an embodiment of the present invention. In fig. 1, the device 100, the device 200, and the device 300 may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, or a Mobile Internet Device (MID) in the application scenario, which may be determined according to the actual application scenario, and are not limited herein. The device 400 is a device having data association with the devices 100, 200, and 300 and having a function of acquiring and processing data transmitted by the devices 100, 200, and 300. The device 400 includes, but is not limited to, a server, a computer for processing data generated by other devices, a processor, and an internet device, and the like.
When the device 400 is a server corresponding to the application a (factory-set or download-installed), the device 100, the device 200, and the device 300 may establish data association with the device 400 through the application a built in the device based on a data transmission function of the application a. When the device 100, the device 200, and the device 300 are devices having the same function (independent of the application built in the device), the device 400 may be any device having a function of receiving and processing data, and may be determined based on the actual application scenario, which is not limited herein. When a device (for example, any one of the devices 100, 200, and 300, hereinafter referred to as a target device for convenience of description) detects a user operation instruction generated by a target user based on a function built in the device or a user operation instruction (for convenience of description, hereinafter referred to as a target operation instruction) generated by the target user based on a specific application built in the device, device information of the target device and target user information of the target user may be generated and sent to the device 400. After acquiring the device information and the target user information, the device 400 may determine, according to the target user information, a target user that generates the target operation instruction based on target device triggering.
Meanwhile, the device 400 may acquire the historical device information set, and may determine that the target device is a frequently-used device or an unusually-used device of the target user based on the historical device information set and the acquired device information. The frequently-used device is a device frequently used by the target user (for example, the target user always uses the same device to log in an application) or to be frequently used (for example, after the target user replaces a new device, the new device is used and the original device is not used), and the frequently-used device is a device not frequently used by the target user (for example, the target user occasionally uses devices of other users). In particular, when the target operation command is an operation command generated by the target user based on a function trigger of the target device, the historical device information set may be a historical device information set that has triggered the same function. When the target operation instruction is a target operation instruction generated by the target user based on a specific application built in the target device, the historical device information set is a historical device information set accessing the application, and may be determined based on an actual application scenario, which is not limited herein. When the device 400 determines that the target device is a frequently-used device of the target user, a response message may be sent to the target device to enable the target device (or an application built in the target device) to continue to perform a next function, and when the device 400 determines that the target device is an unusually-used device of the target user, an alert message may be sent to the target device to prompt the target device to be the unusually-used device of the target user.
Referring to fig. 2, fig. 2 is a schematic flow chart of a method for determining a device type according to an embodiment of the present invention. The method for determining the device type according to the embodiment of the present invention may be executed by the device 400 and other devices, and for convenience of description, the device 400 may be taken as an example for explanation. The method provided by the embodiment of the invention can comprise the following steps S101 to S104.
S101, first device information and target user information which are sent by target devices when the target devices detect target operation instructions are obtained, and target users which trigger the target operation instructions based on the target devices are determined according to the target user information.
In some feasible embodiments, the target operation instruction is a user operation instruction generated by the target device when the user triggers a certain function of the target device based on the target device, for example, the user operation instruction generated by the target device when the user triggers a call function, a remote control function, and other functions built in the target device, and may be determined according to an actual application scenario, which is not limited herein. The target operation instruction may also be a user operation instruction triggered by a certain operation performed by the user based on an application built in the target device, for example, an operation instruction generated by the target device when the user punches a card based on a punching application built in the target device.
For convenience of understanding, please refer to fig. 3a, and fig. 3a is an application view diagram for triggering generation of a target operation instruction according to an embodiment of the present invention. As shown in fig. 3a, when the user enters the taxi-taking application based on the target device, the user needs to input a correct account and password. After the user inputs the correct account number and password, the user can click 'login' to login the account number registered in the taxi taking application. Since the user can continue to use the taxi taking function of the taxi taking application after logging in the account registered in the taxi taking application, the user clicking the login operation can trigger the target device (the device where the taxi taking application is located) to generate a user operation instruction, and the user operation instruction can be used for triggering the taxi taking application to log in the account so that the user can use the taxi taking function of the taxi taking application.
In addition, the user operation command generated by the target device may also trigger the target device to send information to the device 400, where the user operation command is the target operation command generated by the user based on the target device trigger. The device 400 can thereby acquire device information and target user information transmitted by the target device upon detection of the target operation instruction. The sending method of the device information and the target user is determined according to an actual data transmission method between the device 400 and the target device, and is not limited herein.
Referring to fig. 3b again, fig. 3b is a diagram of another application scenario for triggering generation of a target operation instruction according to an embodiment of the present invention. In fig. 3b, the target device may provide the user with a work-to-work card punching function through its built-in card punching function or a built-in card punching application. When a user enters a card punching interface through a built-in card punching option of the target equipment or a built-in card punching option of the card punching application, the target equipment or the built-in card punching application can provide the card punching interface for the user, and when the geographic position of the user is within a specified geographic position range, the user can click 'on-duty card punching' to finish attendance card punching.
In the above-mentioned card punching scenario, the operation of clicking "punch card on duty" by the user may trigger the target device to generate a user operation instruction, where the user operation instruction may be used to trigger the card punching application to execute the user's card punching operation, and may also trigger the target device to send device information and user information of the user to the device 400. At this time, the user operation instruction is a target operation instruction generated by the user based on the target device trigger. At this time, the device 400 may acquire device information and target user information transmitted by the target device when the target operation instruction is detected. It should be particularly noted that the above mentioned card punching application and car punching application are only examples, and the specific application may be determined based on an actual application scenario, and is not limited herein. The operations such as "login" and "punch a card on duty" are also only examples of the target operation instruction generated by the user based on the target device trigger, and may be specifically determined in advance based on the actual application scenario, the setting of the actual device, and the application setting of the application built in the actual device, and are not limited herein.
Optionally, the device information provided in the embodiment of the present invention is unique identification information of the device, and includes, but is not limited to, a device name, a device number, and other information that can be used to uniquely mark the device. For example, one device has a unique device number for the device number, and the device numbers of different devices are different from each other, so that the different devices can be distinguished according to the device numbers. For convenience of description, in the embodiment of the present invention, information for uniquely marking a target device may be described by taking first device information as an example, so that when the obtained first device information is a device number, the first device information may be determined as device information of the target device according to the device number. The target user information includes a user identifier, which may be one or more combinations of numbers, characters, and letters, wherein each user corresponds to a unique user identifier in order to distinguish different users based on the user identifier. The target user information may include a user name of the user, user personal information, and the like, and may be determined according to an actual application scenario, which is not limited herein. The specific information content of the device information and the target user information may also be determined according to an actual application scenario, and is not limited herein.
In some possible embodiments, after acquiring that the target device sends the target user information when detecting the target operation instruction, the device 400 may determine, according to the user identifier included in the target user information, the user marked by the user identifier.
For example, when the user identifier included in the obtained target user information is "001", the user corresponding to the user identifier "001" may be determined according to the correspondence between the user identifier and the user, and the user is the user marked by the user identifier "001". When the user identifier included in the obtained target user information is "aa", the user corresponding to the user identifier "aa" can be determined according to the corresponding relationship between the user identifier and the user, and the user is the user marked by the user identifier "aa". After the user corresponding to the target user information is determined, the user may be determined as a target user for generating the target operation instruction based on the target device trigger.
Optionally, the target user triggered and generated by the target device based on the target operation instruction may also be determined according to a user name, user personal information, and the like included in the target user information. For example, the target user generating the target operation instruction based on the target device trigger can be directly determined according to the information such as the name, the identification number and the like in the user personal information. The above examples are only limited implementations, and the specific determination manner of the target user may be determined according to the related settings of the device 400 and the specific information content in the information of the target user, which is not limited herein.
S102, acquiring a historical device information set.
In some possible embodiments, after determining a target user who generates a target operation instruction based on the target device trigger, a historical device information set may be obtained to determine that the target device is a frequently-used device or an unusually-used device of the target user. When a target user triggers the target device to generate the target operation instruction based on a certain function built in the target device, the historical device information set is an information set of historical device (frequently-used device) information of each user in one or more users (namely at least one user) who have triggered the function.
The one or more users who have triggered the function may or may not include the target user, and may be determined according to an actual application scenario, which is not limited herein. In other words, if there are N users that have triggered the function, where N is an integer greater than or equal to 1, the historical device information set may include device information of a common device used by each of the N users when triggering the function. The number of the common devices used by one user for triggering the function can be one or more, and the device information of each common device used by the same user for triggering the function is associated with the user information of the same user. The device information of the frequently-used device used by each of the N users for triggering the function may be stored as the historical device information of the user in the historical device information set.
For example, when the number of times that the user a triggers the device H to generate the target operation instruction based on a certain function (abbreviated as function a) built in the same device (taking the device H as an example) exceeds a certain threshold (for example, 10 times), it may be determined that the device H is a frequently-used device of the user a. At this time, the device 400 may add the device information of the device H to a preset storage space as the historical device information of the user a to construct the historical device information set.
Or, optionally, when the number of times that the user a continuously triggers the device K to generate the target operation instruction based on the function a built in the same device (taking the device K as an example) exceeds a certain threshold (for example, continuously 5 times), it may be determined that the device K is a frequently-used device of the user a. At this time, the device 400 may add the device information of the device K to a preset storage space as the history device information of the user a. After the device L is determined as a common device of the user B based on the above implementation, the device 400 may add the device information of the device L to a preset storage space to serve as the historical device information of the user B, and so on to construct a historical device information set including the historical device information of one or more users. Specifically, when the device 400 adds the device information of the common device of any user to the preset storage space, the user information of any user may also be acquired, and the user information of any user and the device information of the common device are associated to obtain an association relationship between the user information and the historical device information, and then the association relationship is added to the preset storage space together to construct the historical device information set. Therefore, the historical device information of any user can be determined from the historical device information set based on the user information of any user and the association relation between the user information and the historical device information in the historical device information set.
The information content included in the user information of any user may refer to the information content included in the target user information shown in step S101 in fig. 2, and is not described herein again. It should be particularly noted that the preset storage space may be a storage space (e.g., a hard disk) in the device 400, or a storage space (e.g., a mobile hard disk, a cloud disk, etc.) that can be directly read by the device 400 may be specifically determined according to an actual application scenario, which is not limited herein.
Optionally, in some possible embodiments, when a target user triggers the target device to generate the target operation instruction based on a certain operation of a certain application (taking a card punching operation of a card punching application as an example) built in the target device, the historical device information set is an information set of historical device (frequently-used device) information of each user in one or more users (i.e., at least one user) who perform card punching based on the card punching application.
For example, when the number of times of the user C punching the card based on the card punching application built in the same device (taking the device I as an example) exceeds a certain threshold (for example, 20 times), it is indicated that the user C frequently uses the device I to punch the card, and therefore the device I can be determined to be the common device of the user C. At this time, the device 400 may add the device information of the device I to a preset storage space to serve as the historical device information of any one of the users, so as to construct the historical device information set.
Or, optionally, when the number of times that the user C continuously punches the card based on the same device (taking the device J as an example) exceeds a certain threshold (for example, 10 times), it may also be stated that the user C only uses the device J to punch the card within a certain time, so that the device J may be determined to be a frequently-used device of the user C. At this time, the device 400 may still add the device information of the device J to the preset storage space to serve as the historical device information of the user C, and after the device M is determined to be the frequently-used device of the user D based on the above implementation, the device 400 may add the device information of the device M to the preset storage space to serve as the historical device information of the user D, and so on, so as to construct the above historical device information set.
It should be particularly noted that the preset storage space may be an internal storage space of a server (in this case, the device 400) corresponding to the card application, may also be any device and hard disk connected to the server and having a data storage function, and may also be a network cloud storage space, and the like, which may be determined specifically according to an actual application scenario, and is not limited herein.
Similarly, when the device 400 adds the device information of the commonly used device of any user who punches the card based on the card punching application to the preset storage space, the device 400 may also associate the user information of any user with the device information of the commonly used device to obtain an association relationship between the historical device information and the user information, and then add the association relationship together to the preset storage space to construct the historical device information set.
S103, when the first historical device information of the target user is not included in the historical device information set, the target device is determined to be a common device of the target user.
In some possible embodiments, in order to determine the device type of the target device more quickly and conveniently, after the historical device information set is obtained, it may be determined whether the historical device information set includes one or more pieces of historical device information of the target user according to the target user information and an association relationship between the historical device information and the user information in the historical device information set. For convenience of description, in an embodiment of the present invention, the history device information of the target user may be represented by first history device information.
For example, when the historical device information set includes the historical device information of the target user information, the historical device information corresponding to the target user information may be determined as one or more pieces of historical device information of the target user (i.e., one or more pieces of first historical device information of the target user). When the history device information set does not contain the history device information of the target user information, the first history device information of the target user is determined not to be contained in the history information set. Since each piece of historical device information included in the historical device information is device information of a commonly used device of different devices at each stage, when the historical device information set does not include the first historical device information of the target user, it is indicated that the target user does not have a commonly used device which can be used for triggering a function or an application corresponding to the historical device information set.
As can be seen from the above situation, the target device may be a new user corresponding to a function or an application built in the target device, and the target device may be a device commonly used by the target user by default. In general, when a user changes a new device, it may be assumed that the user always uses the changed new device, and therefore, when the historical device information set does not include the first historical device information, the target device is determined as a frequently-used device of the target user.
Optionally, after determining that the target device is a frequently-used device of the target user, the first device information sent by the target device may be associated with the target user information and then added to the historical device information set together, so as to serve as the historical device information of the target user, thereby updating the historical device information included in the historical device information set. That is, after each time any device is determined to be a frequently-used device of the target user, the device information of any device needs to be associated with the target user information and then added to the historical device information set.
S104, when the historical device information set comprises one or more pieces of first historical device information of the target user, determining that the target device is a frequently-used device or an unusually-used device of the target user based on the first device information and the one or more pieces of first historical device information.
In some possible embodiments, when the historical device information set includes one piece of first historical device information of the target user, the piece of device information indicating that the target device is already stored in the historical device information set as the commonly-used device information of the target user, and the device corresponding to the one piece of first historical device information is the only commonly-used device of the target user before using the target device. Since the historical device information set only includes one piece of first historical device information of the target user, when the one piece of first historical device information is consistent with the one piece of first device information, the target device used by the target user at the moment can be determined to be the same as the device used by the target user for triggering the same function or using the same application last time, and therefore the target device can be directly determined to be the common device of the target user in the situation.
In some possible embodiments, since only the frequently-used device information of different users is stored in the historical device information, one or more pieces of historical device information included in the historical device information set are one or more pieces of historical device information of the target user. When the one or more pieces of historical device information do not include the first device information, it is indicated that the target user never uses the target device as a device commonly used by the target user to trigger a certain function or use a certain application before. However, the above situation only indicates that the target device is not a commonly used device of the target user at any stage, and when the target user uses a completely new device to trigger a certain function or uses a certain application, the completely new device can still be used as the commonly used device of the target user. Therefore, when the first device information is included in the other historical device information except the one or more first historical device information in the historical device information set, it can be determined that the target user uses the commonly used devices of other users to trigger a certain function or use a certain application. Since one frequently-used device corresponds to only one user, it can be determined that the target device is an unusually-used device of the target user at this time.
In the embodiment of the invention, after the device information and the target user information sent by the target user when the target user uses the target device are obtained, the target device can be determined to be the frequently-used device of the user under the condition that the historical device information set does not include the first historical device information of the user, so that the condition that a brand-new device is determined to be an unusual device due to the fact that the user device is replaced with a new device can be avoided, and the situation is more suitable for a real user using scene. In the case that the historical device information includes the first historical device information of the user, the target device may be determined to be a frequently-used device or an unusually-used device of the user further according to the device information of the target device and the first historical device information of the user. By the embodiment of the invention, the equipment type of the equipment used by the user can be quickly determined, the accuracy of determining the equipment type can be improved, and the applicability is high.
Referring to fig. 4, fig. 4 is another schematic flow chart of a method for determining a device type according to an embodiment of the present invention. In some possible embodiments, in step S104, after obtaining the historical device information set, a specific determination process for determining that the target device is a frequently-used device or a non-frequently-used device of the target user based on the first device information and the one or more first historical device information may include steps S201 to S205 as follows.
S201, second equipment information is determined from one or more pieces of first historical equipment information.
In some possible embodiments, because the adding time of the historical device information in the historical device information set is different, for a plurality of pieces of historical device information of the same user, each piece of historical device information corresponds to one common device. Therefore, multiple pieces of historical device information of the same user may correspond to multiple pieces of commonly used devices, for example, historical device information added at an earlier time corresponds to a commonly used device of the user at the addition time, and the historical device information finally added to the historical device information set is the current commonly used device of the user.
In order to improve the speed and accuracy of determining the device type of the target device, it is necessary to determine the device commonly used by the target user when the target user generates the target operation instruction based on the trigger of the target device. First historical device information (for convenience of description, hereinafter referred to as second device information) which is finally added to the historical device information set needs to be determined from the historical device information of the target user, so that the target device is determined to be a frequently-used device or an unusually-used device of the target user based on the determined second device information.
In some possible embodiments, when only one piece of historical device information of the target user is included in the historical device information set, it is indicated that the device information of only one frequently-used device of the target user is stored in the historical device information set, that is, when the target user triggers generation of a target operation instruction (using the target device) based on the target device, the frequently-used device of the target user is a device corresponding to the piece of historical device information. In this case, the one piece of history device information may be determined as a common device of the target user, and the first device information may be added to the history device information set together with the target user information after being associated with the target user information.
In some possible embodiments, when the plurality of first historical device information of the target user is included in the historical device information set, in order to determine, from the historical device information set, a common device used by the target user when the target user uses the target device, an acquisition time of the first device information (i.e., a time of acquiring the first device information sent by the target device when the target operation instruction is detected) and an addition time of the plurality of first historical device information included in the historical device information set being added to the historical information set may be determined. At this time, the time interval between each adding time and the acquiring time may be determined, and the first history device information corresponding to the adding time with the shortest time interval may be determined as the second device information, that is, the last first history device information (history device information of the frequently-used device when the user uses the target device) added to the history device information set may be determined as the second device information. The obtaining time may also be replaced by a sending time when the target device sends the first history device information when detecting the target operation instruction, or may also be replaced by another time node with a definite directivity, which may be specifically determined according to an actual application scenario, and is not limited herein.
And S202, when the first device information is consistent with the second device information, determining that the target device is a frequently-used device of the target user.
In some possible embodiments, after determining the second device information from the one or more first historical device information, the first device information may be matched with the second device information. When the first device information matches the second device information, it is described that the target device being used by the target user at this time matches a commonly used device when the target user uses the target device. Therefore, the target device may be determined as a common device of the target user, and the first device information sent by the target device may be associated with the target user information and then added to the historical device information set together to serve as one piece of historical device information of the target user.
S203, when the first device information is inconsistent with the second device information, determining whether the second historical device information in the historical device information set comprises the first device information.
In some possible embodiments, when the first device information is inconsistent with the second device information, it indicates that the target device is not a device frequently used by the target user when the target user uses the target device, and thus indicates that the target device is not a device frequently used by the target user. However, at this time, it is not determined whether the target device is a new device to be replaced by the target user, and therefore, when the first device information does not match the second device information, it is not possible to directly determine that the target device is a frequently-used device or a frequently-used device of the target user. Therefore, when the first device information does not match the second device information, the second history device information may be determined from the history device information set, that is, the history device information corresponding to the user information that does not match the target user information in the history device information set may be determined as the second history device information. The second historical device information is the other historical device information in the historical device information set except the one or more first historical device information (i.e. the historical device information of the target user). In other words, the second historical device information set does not include any historical device information of the target user.
It can be understood that, if only one user included in the historical device information set corresponds to the historical device information and the user is the target user, the second historical device information is null. And if the historical device information corresponding to the plurality of users in the historical device information set is not null, the second historical device information is not null.
In some possible embodiments, after determining the second historical device information, it may be determined whether the first device information is included in the second historical device information to determine that the target device is a frequently-used device or an unusually-used device of the target user, so as to determine whether the target device is a frequently-used device of another user or a new device replaced by the user.
For example, if the historical device information set is divided into a historical device information set a and a historical device information set B, where the historical device information set a is a set composed of a plurality of first historical device information, and the historical device information set B is the historical device information of users other than the target user, at this time, since the user information corresponding to the historical device information of the other users is not consistent with the user information of the target user, the historical device information included in the historical device information set B may be determined as the second historical device information. The step of determining that the target device is a frequently-used device or a non-frequently-used device of the target user based on the second historical device information may refer to the following steps S204 and S205, which will not be described herein.
S204, when the first device information is included in the second historical device information, the target device is determined to be the non-use device of the target user.
In some possible embodiments, after determining the second historical device information, it may be determined that the target device is a frequently-used device or an unusually-used device of the target user by determining whether the first device information is included in the second historical device information. When the second history device information includes the first device information, it is described that the target device is a commonly used device of another user, that is, the target device being used by the target user is a commonly used device of another user. At this time, the target device can be directly determined as the non-use device of the target user.
S205, when the second historical device information does not include the first device information and the first historical device information which is consistent with the first device information does not exist in the first historical device information except the second device information in the plurality of pieces of first historical device information, the target device is determined to be the frequently-used device of the target user.
In some possible embodiments, when the first device information is not included in the second historical device information (for example, the second historical device information is not empty and does not include the first device information, or the second historical device information is empty), it may only be stated that the target user does not use a frequently-used device of another user at this time, and it may not be stated that the target device is a frequently-used device or an unusually-used device of the target user.
For example, the plurality of first historical device information includes historical device information X and historical device information Y, where the historical device information X is historical device information corresponding to the device X, and the historical device information Y is historical device information corresponding to the device Y. If the adding time of the historical device information X is earlier than the historical device information Y, it can be stated that the historical device Y is a frequently-used device of the target user before the time of adding the historical device information X to the historical information set. Since the adding time of the historical device information Y is latest, at this time, the frequently-used device of the target user is the device Y instead of the device X, that is, after the historical device information Y is added to the historical device information set, the device X is no longer the frequently-used device of the target user, and the historical device information X is only stored in the historical device information set as the historical device information of the frequently-used device information of the target user.
As described above, when the first device information is not included in the second history device information, the target device can be described as a new device to be replaced by the target user only when the first history information that matches the first device information does not exist in each of the plurality of pieces of first history device information other than the second device information (as shown in step S203). Therefore, the target device can be directly determined to be the frequently-used device of the target user, and the first device information sent by the target device is added to the historical device information set as the historical device information of the target user.
In the embodiment of the invention, the target device is determined to be the frequently-used device of the user under the condition that the first historical device information of the user is not included in the historical device information set, a brand-new device used by the user for the first time can be determined to be the frequently-used device of the user, the condition that the brand-new device is determined to be the frequently-used device due to the fact that the user device is replaced with a new device can be avoided, and the situation is more suitable for a real user using scene. In addition, as long as the user uses the commonly-used equipment of other users, the equipment used by the user at this time can be determined as the non-commonly-used equipment of the user, the range of the equipment type (the commonly-used equipment and the non-commonly-used equipment) can be further determined, and the accuracy of equipment type determination is improved.
Referring to fig. 5 again, fig. 5 is a schematic flowchart of a method for determining a device type according to an embodiment of the present invention. The method of determining the device type shown in fig. 5 may include the following steps S301 to S305.
S301, first device information and target user information which are sent by target devices when the target devices detect target operation instructions are obtained, and target users which generate the target operation instructions based on the target device triggering are determined according to the target user information.
S302, acquiring a historical device information set.
In some possible embodiments, the steps S301 and S302 can refer to the implementation manner shown in step S101 and step S102 in fig. 2, and are not described herein again.
S303, when the historical device information set comprises a plurality of pieces of first historical device information of the target user, determining second device information from the plurality of pieces of first historical device information.
In some possible embodiments, step S303 may refer to the implementation shown in step S201 in fig. 4, and is not described herein again.
S304, when the first device information is consistent with the second device information, the target device is determined to be a common device of the target user.
In some possible embodiments, step S304 may refer to the implementation shown in step S202 in fig. 4, and is not described herein again.
S305, when the first device information is inconsistent with the second device information and the first historical device information consistent with the first device information exists in each piece of first historical device information except the second device information in the plurality of pieces of first historical device information, determining that the target device is the non-use device of the target user.
In some possible embodiments, when the first device information is inconsistent with the second device information, it indicates that the target device is not a device commonly used by the target user when using the target device. When there is first history device information that matches the first device information in each of the plurality of pieces of first history device information except the second device information, it is described that the target device at this time is a commonly used device that the target user used in the past, and not a commonly used device that the target user used the target device. In this case, the target device may be an emergency device of the target user.
As an example shown in step S205 in fig. 4, if the historical device Y is the second device information, the first historical device information except the second device information in the plurality of first historical device information is the historical device information X. If the historical device information X is consistent with the first device information (there is first historical device information consistent with the first device information in each of the plurality of pieces of first historical device information except the second device information), it is indicated that the target device is a commonly-used device of the target user before the second device information (the historical device information Y) is added to the historical device information set, but not a commonly-used device of the target user (a device corresponding to the historical device information Y) at this time. Therefore, at this time, it is determined that the target device is an emergency device of the target user.
In some possible embodiments, while the first device information and the target user information sent by the target device are obtained, other information of the target device may also be obtained, including but not limited to a device operating system, a device manufacturer, a device use time, a device use place, and the like, which may be determined according to an actual application scenario, and is not limited herein. Therefore, after the target device is determined to be the commonly used device of the target user in any step, the device number of the target device may be displayed to the target user through the target device, so as to prompt the target user of the device number of the commonly used device. The device usage time included in the other information of the target device may also be presented to the target user through the target device. The specific implementation manner for displaying the first device information and/or the other information of the target device based on the target device may be determined based on an actual application scenario, which is not limited herein.
For example, referring to fig. 6, fig. 6 is an application scenario diagram showing device types and related information according to an embodiment of the present invention. Taking a card punching application as an example, after the target device is triggered to send the first device information after the target user performs a card punching operation, the server of the card punching application determines, based on the first device information, that the target device used by the target user during the card punching operation is a frequently-used device of the target user. At this time, the server of the card punching application may send information such as the device name and the device number in the first device information, and/or the device usage time and the device usage location in the other information of the target device to the card punching application, so that the target user may view the related information of the frequently used device (the target device) through the card punching application.
In fig. 6, the target user may select related information to be viewed through the card punching setting of the card punching application. The target user can set the card punching operation in the card punching setting (such as setting up report objects on duty and off duty, report objects out and the like), and can also view information such as common card punching equipment and card punching details sent by a server corresponding to the card punching application. For example, when the target user selects to view "common card punching equipment", the relevant information may be displayed to the target user based on a display interface of the common card punching equipment. For example, based on the display interface of the conventional card punching device, the name of the card punching device (the target device) of the target user is 'iPhone ios 12.2', the device number is 'i-akdjskdjskj 78198888344', and the latest card punching time (the device use time) is '2019/12/2109: 20'. When the target user selects to view the "punching details", the user can be presented with the relevant information presented in the display interface of the common punching device based on the punching details display interface (the name of the punching device is "iPhone ios 12.2", the device number is "i-akdjskdj 78198888344", and the latest punching time is "2019/12/2109: 20"), and the target user can be further presented with a punching location (XX road XX building in shenzhen city, guangdong province) so that the target user knows the specific punching location (the use location of the target device).
In some possible embodiments, after determining that the target device is an emergency device of the target user in any of the steps, emergency device alarm information may be generated according to the device number in the first device information and information such as device use time and device use location in the other information, and the emergency device alarm information may be sent to the target device, so as to perform an emergency device alarm on the target user based on the target device.
For example, the target device may display an unusual device alarm message to the target user to prompt the target user when, where to use an unusual device (the target device), or notify the target user of information such as a device name and a device number of the unusual device used by the target user, and a specific implementation manner may be determined based on an actual application scenario, which is not limited herein.
For example, please refer to fig. 7, fig. 7 is a scene diagram of an alert of an emergency device according to an embodiment of the present invention. As shown in fig. 7, after the device (the target device) for the target user to punch the card is determined as the emergency device of the target user, the server of the card punching application generates emergency device alert information based on the device use location in the other information of the target device. After the emergency device alert message is sent to the device used by the target user, the target user may be prompted based on a card punching application that the target user is within a card punching range, but the target user uses the emergency device to punch a card. Meanwhile, the target user is prompted to shoot to confirm the card punch person when the target user uses the non-common equipment to punch the card, so that a normal card punching process is completed. It should be particularly noted that the application scenario shown in fig. 7 is only an example, and may be determined according to an actual application scenario, and is not limited herein.
In the embodiment of the invention, the target device is determined to be the frequently-used device of the user under the condition that the first historical device information of the user is not included in the historical device information set, a brand-new device used by the user for the first time can be determined to be the frequently-used device of the user, the condition that the brand-new device is determined to be the frequently-used device due to the fact that the user device is replaced with a new device can be avoided, and the situation is more suitable for a real user using scene. In addition, as long as the user uses the commonly used equipment of other users or uses the equipment which is not the commonly used equipment used last time, the equipment used by the user at this time can be determined as the non-commonly used equipment of the user, the range of the equipment type (the commonly used equipment and the non-commonly used equipment) can be further determined, and the accuracy of equipment type determination is improved. In addition, after the device used by the user is determined to be the non-use device, the non-use device warning information can be generated and displayed to the user based on the device used by the user, so that the information safety is improved, the user behavior is further normalized, and the applicability is higher.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an apparatus for determining a type of a device according to an embodiment of the present invention. The device 1 for determining the type of equipment provided by the embodiment of the invention comprises:
the information obtaining module 11 is configured to obtain first device information and target user information that are sent by a target device when a target operation instruction is detected, and determine, according to the target user information, a target user that generates the target operation instruction based on the target device trigger.
The information obtaining module 11 is further configured to obtain a historical device information set, where the historical device information set includes historical device information of at least one user.
A type determining module 12, configured to determine, when the historical device information set includes one or more pieces of first historical device information of the target user, that the target device is a frequently-used device or an unusually-used device of the target user based on the first device information and the one or more pieces of first historical device information.
The type determining module 12 is further configured to determine that the target device is a frequently-used device of the target user when the historical device information set does not include the first historical device information of the target user.
In some possible embodiments, the above determining apparatus 1 further includes:
the information adding module 13 is further configured to add the first device information to the historical device information set as the historical device information of the target user.
In some possible embodiments, the above determining apparatus 1 further includes:
the device alarm module 14 is further configured to generate an unusual device alarm message based on the first device information, and send the unusual device alarm message to the target device to perform an unusual device alarm for the target user based on the target device.
In a specific implementation, the apparatus 1 for determining a device type may execute, through its built-in modules, the implementation manners provided in the steps in fig. 2, which may be specifically referred to the implementation manners provided in the steps, and are not described herein again.
In the embodiment of the invention, after the device information and the target user information sent by the target user when the target user uses the target device are obtained, the target device can be determined to be the frequently-used device of the user under the condition that the historical device information set does not include the first historical device information of the user, a brand-new device used by the user for the first time can be determined to be the frequently-used device of the user, the condition that the brand-new device is determined to be an unusual device due to the fact that the user device is replaced with a new device can be avoided, and the real user use scene is better fitted. In the case that the historical device information includes the first historical device information of the user, the target device may be determined to be a frequently-used device or an unusually-used device of the user further according to the device information of the target device and the first historical device information of the user. By adding a method for determining the type of the equipment (the common equipment and the non-common equipment), the range of the type of the equipment can be further determined, and the accuracy of determining the type of the equipment is improved. In addition, after the target device is determined to be the non-use device of the user, the non-use device warning information can be generated and displayed to the user through the target device, so that the information safety is improved, the user behavior is further normalized, and the applicability is higher.
Referring to fig. 9, fig. 9 is another schematic structural diagram of the apparatus for determining a device type according to the embodiment of the present invention. The device 2 for determining the device type provided by the embodiment of the invention comprises:
the information obtaining module 21 is configured to obtain first device information and target user information that are sent by a target device when a target operation instruction is detected, and determine, according to the target user information, a target user that generates the target operation instruction based on the target device trigger.
The information obtaining module 21 is further configured to obtain a historical device information set, where the historical device information set includes historical device information of at least one user.
A type determining module 22, configured to determine, when the historical device information set includes one or more pieces of first historical device information of the target user, that the target device is a frequently-used device or an unusually-used device of the target user based on the first device information and the one or more pieces of first historical device information.
The type determining module 22 is further configured to determine that the target device is a frequently-used device of the target user when the historical device information set does not include the first historical device information of the target user.
In some possible embodiments, the type determining module 22 includes:
a first determining unit 221, configured to determine second device information from the one or more pieces of first history device information;
a second determining unit 222, configured to determine that the target device is a frequently-used device of the target user when the first device information matches the second device information;
a third determining unit 223, configured to determine, when the first device information is inconsistent with the second device information, second historical device information from the historical device information set, and determine, according to the second historical device information, that the target device is a frequently-used device or an unusually-used device of the target user;
the second historical device information is the other historical device information except the one or more first historical device information in the historical device information set.
With reference to the second aspect, in a possible implementation manner, the third determining unit 223 includes:
a first determining subunit 2231, configured to determine whether the first device information is included in the second historical device information;
a second determining subunit 2232, configured to determine, when the first device information is included in the second history device information, that the target device is an emergency device of the target user;
a third determining subunit 2233, configured to determine that the target device is a frequently-used device of the target user when the first device information is not included in the second historical device information and there is no first historical device information that is identical to the first device information in each of the plurality of pieces of first historical device information except the second device information.
In some possible embodiments, the first determining unit 221 includes:
a fourth determining subunit 2211, configured to determine, when the historical apparatus information set includes one piece of first historical apparatus information of the target user, the one piece of first historical apparatus information as the second apparatus information;
a fifth determining subunit 2212, configured to determine, when the plurality of pieces of first history device information of the target user are included in the history device information set, an obtaining time of the first device information and an adding time at which each piece of first history device information is added to the history device information set, and determine, as the second device information, the first history device information whose time interval between the adding time and the obtaining time is shortest.
In some possible embodiments, the determining device 2 further includes:
the information adding module 23 is further configured to add the first device information to the historical device information set as the historical device information of the target user.
In some possible embodiments, the determining device 2 further includes:
the device alarm module 24 is further configured to generate an unusual device alarm message based on the first device information, and send the unusual device alarm message to the target device, so as to perform an unusual device alarm on the target user based on the target device.
In a specific implementation, the apparatus 2 for determining a device type may execute, through each built-in module and/or unit thereof, the implementation manners provided in each step in fig. 4, which may be referred to specifically for the implementation manners provided in each step, and is not described herein again.
In the embodiment of the invention, the target device is determined to be the frequently-used device of the user under the condition that the first historical device information of the user is not included in the historical device information set, a brand-new device used by the user for the first time can be determined to be the frequently-used device of the user, the condition that the brand-new device is determined to be the frequently-used device due to the fact that the user device is replaced with a new device can be avoided, and the situation is more suitable for a real user using scene. In addition, as long as the user uses the commonly used equipment of other users, the equipment used by the user at this time can be determined as the non-commonly used equipment of the user, the range of the equipment type (the commonly used equipment and the non-commonly used equipment) can be further determined, and the accuracy of equipment type determination is improved. In addition, after the device used by the user is determined to be the non-use device, the non-use device warning information can be generated and displayed to the user based on the device used by the user, so that the information safety is improved, the user behavior is further normalized, and the applicability is higher.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a device type determining apparatus according to an embodiment of the present invention. The device 3 for determining the type of the device provided by the embodiment of the invention comprises:
the information obtaining module 31 is configured to obtain first device information and target user information that are sent by a target device when a target operation instruction is detected, and determine, according to the target user information, a target user that generates the target operation instruction based on the target device trigger.
The information obtaining module 31 is further configured to obtain a historical device information set, where the historical device information set includes historical device information of at least one user.
A type determining module 32, configured to determine, when the historical device information set includes one or more pieces of first historical device information of the target user, that the target device is a frequently-used device or an unusually-used device of the target user based on the first device information and the one or more pieces of first historical device information.
The type determining module 32 is further configured to determine that the target device is a frequently-used device of the target user when the historical device information set does not include the first historical device information of the target user.
In some possible embodiments, the historical device information set includes a plurality of first historical device information of the target user; the type determination module 32 includes:
a fourth determining unit 321 configured to determine, from the plurality of pieces of first historical apparatus information, second apparatus information that is first historical apparatus information in which a time interval between an addition time of the plurality of pieces of first historical apparatus information to the historical apparatus information set and an acquisition time of the first apparatus information is shortest;
a fifth determining unit 322, configured to determine that the target device is a frequently-used device of the target user when the first device information matches the second device information;
a sixth identifying unit 323 configured to identify the target device as an emergency device of the target user when the first device information does not match the second device information and there is first history device information that matches the first device information in each of the plurality of pieces of first history device information except the second device information.
In some possible embodiments, the determining device 3 further includes:
the information adding module 33 is further configured to add the first device information to the historical device information set as the historical device information of the target user.
In some possible embodiments, the determining device 3 further includes:
the device alarm module 34 is further configured to generate an unusual device alarm message based on the first device information, and send the unusual device alarm message to the target device, so as to perform an unusual device alarm for the target user based on the target device.
In a specific implementation, the apparatus for determining a device type 3 may execute, through each built-in module and/or unit thereof, the implementation manners provided in each step in fig. 5, which may be referred to specifically for the implementation manners provided in each step, and are not described herein again.
In the embodiment of the invention, the target device is determined to be the frequently-used device of the user under the condition that the first historical device information of the user is not included in the historical device information set, a brand-new device used by the user for the first time can be determined to be the frequently-used device of the user, the condition that the brand-new device is determined to be the frequently-used device due to the fact that the user device is replaced with a new device can be avoided, and the situation is more suitable for a real user using scene. In addition, as long as the user uses the frequently-used equipment which is not used last time, the equipment used this time by the user can be determined as the non-frequently-used equipment of the user, the range of the equipment type (frequently-used equipment and non-frequently-used equipment) can be further determined, and the accuracy of equipment type determination is improved. In addition, after the device used by the user is determined to be the non-use device, the non-use device warning information can be generated and displayed to the user based on the device used by the user, so that the information safety is improved, the user behavior is further normalized, and the applicability is higher.
Referring to fig. 11, fig. 11 is a schematic structural diagram of an apparatus provided in an embodiment of the present invention. As shown in fig. 11, the apparatus 1000 in the present embodiment may include: the processor 1001, the network interface 1004, and the memory 1005, and the apparatus 1000 may further include: a user interface 1003, and at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 11, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the device 1000 shown in fig. 11, the network interface 1004 may provide network communication functions; the user interface 1003 is an interface for providing a user with input; and the processor 1001 may be used to invoke a device control application stored in the memory 1005 to implement:
acquiring first device information and target user information which are sent by target equipment when a target operation instruction is detected, and determining a target user which generates the target operation instruction based on the target equipment triggering according to the target user information;
acquiring a historical device information set, wherein the historical device information set comprises historical device information of at least one user;
if the historical device information set comprises one or more pieces of first historical device information of the target user, determining that the target device is a frequently-used device or an unusually-used device of the target user based on the first device information and the one or more pieces of first historical device information;
and if the historical device information set does not include the first historical device information of the target user, determining that the target device is a frequently-used device of the target user.
In some possible embodiments, the processor 1001 is configured to:
determining second equipment information from the one or more first historical equipment information;
when the first device information is consistent with the second device information, determining that the target device is a frequently-used device of the target user;
when the first device information is inconsistent with the second device information, determining second historical device information from the historical device information set, and determining that the target device is a frequently-used device or an unusually-used device of the target user according to the second historical device information;
the second historical device information is other historical device information except the one or more first historical device information in the historical device information set. In some possible embodiments, the processor 1001 is configured to:
determining whether the first device information is included in the second history device information;
determining that the target device is an emergency device of the target user when the first device information is included in the second history device information;
and when the second historical device information does not include the first device information and the first historical device information which is consistent with the first device information does not exist in the first historical device information except the second device information in the plurality of pieces of first historical device information, determining that the target device is a frequently-used device of the target user.
In some possible embodiments, the processor 1001 is configured to:
when the historical device information set comprises first historical device information of the target user, determining the first historical device information as second device information;
when the plurality of pieces of first historical device information of the target user are included in the historical device information set, determining the acquisition time of the first device information and the adding time of each piece of first historical device information to the historical device information set, and determining the first historical device information with the shortest time interval between the adding time and the acquisition time as the second device information.
In some possible embodiments, the historical device information set includes a plurality of first historical device information of the target user; the processor 1001 is configured to:
determining second device information from the plurality of pieces of first historical device information, wherein the second device information is the first historical device information with the shortest time interval between the adding time of the historical device information set and the acquiring time of the first device information from the plurality of pieces of first historical device information;
when the first device information is consistent with the second device information, determining that the target device is a frequently-used device of the target user;
and determining that the target device is an emergency device of the target user when the first device information does not match the second device information and there is first history device information that matches the first device information in each of the plurality of pieces of first history device information except the second device information.
In some possible embodiments, the processor 1001 is further configured to:
and adding the first device information to the historical device information set to serve as the historical device information of the target user.
In some possible embodiments, the processor 1001 is further configured to:
and generating abnormal equipment alarm information based on the first equipment information, and sending the abnormal equipment alarm information to the target equipment so as to alarm the target user for the abnormal equipment based on the target equipment.
It should be understood that, in some possible embodiments, the processor 1001 may be a Central Processing Unit (CPU), and the processor may be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The memory may include both read-only memory and random access memory, and provides instructions and data to the processor. The portion of memory may also include non-volatile random access memory. For example, the memory may also store device type information.
In a specific implementation, the device 1000 may execute, through each built-in functional module thereof, the implementation manners provided in each step in fig. 2, fig. 4, and/or fig. 5, which may specifically refer to the implementation manners provided in each step, and details are not described herein again.
In the embodiment of the invention, the target device is determined to be the frequently-used device of the user under the condition that the first historical device information of the user is not included in the historical device information set, a brand-new device used by the user for the first time can be determined to be the frequently-used device of the user, the condition that the brand-new device is determined to be an uncommon device due to the fact that the user device is replaced with a new device can be avoided, and a real user use scene is fitted better. In addition, as long as the user uses the commonly used equipment of other users or uses the equipment which is not the commonly used equipment used last time, the equipment used by the user at this time can be determined as the non-commonly used equipment of the user, the range of the equipment type (the commonly used equipment and the non-commonly used equipment) can be further determined, and the accuracy of equipment type determination is improved. In addition, after the device used by the user is determined to be the non-use device, the non-use device warning information can be generated and displayed to the user based on the device used by the user, so that the information safety is improved, the user behavior is further normalized, and the applicability is higher.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and is executed by a processor to implement the method provided in each step in fig. 2, fig. 4, and/or fig. 5, which may specifically refer to implementation manners provided in each step, and are not described herein again.
The computer readable storage medium may be an internal storage unit of the task processing device provided in any of the foregoing embodiments, for example, a hard disk or a memory of an electronic device. The computer readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash card (flash card), and the like, which are provided on the electronic device. The computer readable storage medium may further include a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), and the like. Further, the computer readable storage medium may also include both an internal storage unit and an external storage device of the electronic device. The computer-readable storage medium is used for storing the computer program and other programs and data required by the electronic device. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
The terms "first", "second", and the like in the claims, in the description and in the drawings of the present invention are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments. The term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. A method for device type determination, the method comprising:
acquiring first equipment information and target user information which are sent by target equipment when a target operation instruction is detected, and determining a target user which generates the target operation instruction based on the target equipment triggering according to the target user information;
acquiring a historical device information set, wherein the historical device information set comprises historical device information of at least one user;
if the historical device information set comprises one or more pieces of first historical device information of the target user, determining second device information from the one or more pieces of first historical device information; when the first device information is consistent with the second device information, determining that the target device is a common device of the target user; when the first device information is inconsistent with the second device information, determining second historical device information from the historical device information set, wherein the second historical device information is other historical device information except the one or more pieces of first historical device information in the historical device information set; if the second historical device information does not include the first device information and the first historical device information consistent with the first device information does not exist in each piece of first historical device information except the second device information in the plurality of pieces of first historical device information, determining that the target device is a frequently-used device of the target user;
if the historical device information set does not include the first historical device information of the target user, determining that the target device is a frequently-used device of the target user.
2. The method of claim 1, further comprising:
and if the second historical device information comprises the first device information, determining that the target device is the non-use device of the target user.
3. The method of claim 1 or 2, wherein the determining second device information from the one or more first historical device information comprises:
when the historical device information set comprises first historical device information of the target user, determining the first historical device information as second device information;
when the historical device information set comprises a plurality of pieces of first historical device information of the target user, determining the acquisition time of the first device information and the adding time of each piece of first historical device information added to the historical device information set, and determining the first historical device information with the shortest time interval between the adding time and the acquisition time as the second device information.
4. The method according to claim 1 or 2, wherein after determining that the target device is a common device of the target user, the method further comprises:
adding the first device information to the set of historical device information as historical device information for the target user.
5. The method of claim 1 or 2, wherein after determining that the target device is an emergency device of the target user, the method further comprises:
generating abnormal equipment alarm information based on the first equipment information, and sending the abnormal equipment alarm information to the target equipment so as to alarm the target user for the abnormal equipment based on the target equipment.
6. A method for device type determination, the method comprising:
acquiring first equipment information and target user information which are sent by target equipment when a target operation instruction is detected, and determining a target user which generates the target operation instruction based on the target equipment triggering according to the target user information;
acquiring a historical device information set, wherein the historical device information set comprises historical device information of at least one user;
if the historical device information set comprises a plurality of pieces of first historical device information of the target user, determining second device information from the plurality of pieces of first historical device information, wherein the second device information is the first historical device information with the shortest time interval between the adding time of the first historical device information added to the historical device information set and the obtaining time of the first device information; when the first device information is consistent with the second device information, determining that the target device is a common device of the target user; when the first device information is inconsistent with the second device information and first historical device information consistent with the first device information exists in each piece of first historical device information except the second device information in the plurality of pieces of first historical device information, determining that the target device is an emergency device of the target user;
if the historical device information set does not include the first historical device information of the target user, determining that the target device is a frequently-used device of the target user.
7. An apparatus for determining a device type, the apparatus comprising:
the information acquisition module is used for acquiring first equipment information and target user information which are sent by target equipment when a target operation instruction is detected, and determining a target user which generates the target operation instruction based on the target equipment triggering according to the target user information;
the information acquisition module is used for acquiring a historical device information set, wherein the historical device information set comprises historical device information of at least one user;
the type determining module is used for determining second equipment information from one or more pieces of first historical equipment information when the historical equipment information set comprises one or more pieces of first historical equipment information of the target user; when the first device information is consistent with the second device information, determining that the target device is a frequently-used device of the target user; when the first device information is inconsistent with the second device information, determining second historical device information from the historical device information set, wherein the second historical device information is other historical device information except the one or more first historical device information in the historical device information set; if the second historical device information does not include the first device information and the first historical device information consistent with the first device information does not exist in each piece of first historical device information except the second device information in the plurality of pieces of first historical device information, determining that the target device is a frequently-used device of the target user;
the type determining module is configured to determine that the target device is a frequently-used device of the target user when the first history device information of the target user is not included in the history device information set.
8. An apparatus for determining a device type, the apparatus comprising:
the information acquisition module is used for acquiring first equipment information and target user information which are sent by target equipment when a target operation instruction is detected, and determining a target user which generates the target operation instruction based on the target equipment triggering according to the target user information;
the information acquisition module is used for acquiring a historical device information set, wherein the historical device information set comprises historical device information of at least one user;
a type determining module, configured to determine, when the historical device information set includes multiple pieces of first historical device information of the target user, second device information from the multiple pieces of first historical device information, where the second device information is the first historical device information with a shortest time interval between adding time of the multiple pieces of first historical device information to the historical device information set and obtaining time of the first device information; when the first device information is consistent with the second device information, determining that the target device is a common device of the target user; when the first device information is inconsistent with the second device information and first historical device information consistent with the first device information exists in each piece of first historical device information except the second device information in the plurality of pieces of first historical device information, determining that the target device is an emergency device of the target user;
the type determining module is configured to determine that the target device is a frequently-used device of the target user when the first history device information of the target user is not included in the history device information set.
9. The device for determining the device type is characterized by comprising a processor and a memory, wherein the processor and the memory are connected with each other;
the memory for storing a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1 to 6.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which is executed by a processor to implement the method of any one of claims 1 to 6.
CN201910717042.XA 2019-08-05 2019-08-05 Method, device, equipment and storage medium for determining equipment type Active CN112333129B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910717042.XA CN112333129B (en) 2019-08-05 2019-08-05 Method, device, equipment and storage medium for determining equipment type

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910717042.XA CN112333129B (en) 2019-08-05 2019-08-05 Method, device, equipment and storage medium for determining equipment type

Publications (2)

Publication Number Publication Date
CN112333129A CN112333129A (en) 2021-02-05
CN112333129B true CN112333129B (en) 2022-06-14

Family

ID=74319594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910717042.XA Active CN112333129B (en) 2019-08-05 2019-08-05 Method, device, equipment and storage medium for determining equipment type

Country Status (1)

Country Link
CN (1) CN112333129B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468102A (en) * 2013-09-12 2015-03-25 深圳市腾讯计算机系统有限公司 Method and device for operation management of network account
CN104980400A (en) * 2014-04-08 2015-10-14 深圳市腾讯计算机系统有限公司 Login access control method and login access control server
CN109711129A (en) * 2018-12-15 2019-05-03 深圳壹账通智能科技有限公司 Login validation method, device, equipment and storage medium based on Application on Voiceprint Recognition
CN110011997A (en) * 2019-03-28 2019-07-12 杭州数梦工场科技有限公司 Intrusion detection method and device and computer readable storage medium
CN110009389A (en) * 2019-02-19 2019-07-12 阿里巴巴集团控股有限公司 A kind of device identification method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9467815B2 (en) * 2014-03-20 2016-10-11 Google Inc. Systems and methods for generating a user location history

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468102A (en) * 2013-09-12 2015-03-25 深圳市腾讯计算机系统有限公司 Method and device for operation management of network account
CN104980400A (en) * 2014-04-08 2015-10-14 深圳市腾讯计算机系统有限公司 Login access control method and login access control server
CN109711129A (en) * 2018-12-15 2019-05-03 深圳壹账通智能科技有限公司 Login validation method, device, equipment and storage medium based on Application on Voiceprint Recognition
CN110009389A (en) * 2019-02-19 2019-07-12 阿里巴巴集团控股有限公司 A kind of device identification method and device
CN110011997A (en) * 2019-03-28 2019-07-12 杭州数梦工场科技有限公司 Intrusion detection method and device and computer readable storage medium

Also Published As

Publication number Publication date
CN112333129A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
US10757102B2 (en) Methods, apparatus, and systems for identity authentication
US8996633B2 (en) Systems for providing emotional tone-based notifications for communications and related methods
CN103327119A (en) Remote control method, device and system
CN112256225A (en) Screen projection method, server, terminal device and computer readable storage medium
CN111541549B (en) Block chain based information transfer method, device, equipment and storage medium
KR20150003430A (en) Secondary terminals located emergency notification services via communication methods
JP6399549B2 (en) Method and system for preventing misuse of electronic ticket
CN107563188B (en) Application security evaluation method and device and computer storage medium
KR101473671B1 (en) Method and apparatus for detection of phishing site by image comparison
CN112333129B (en) Method, device, equipment and storage medium for determining equipment type
WO2017054486A1 (en) Alarm processing method and device
CN104394258A (en) Method and device for processing contact change of communication object
CN106302821B (en) Data request method and equipment thereof
CN114329249A (en) Route planning method and device, electronic equipment and storage medium
JP2014239310A (en) Terminal device, lock state canceling method and lock state cancel program
CN107995150A (en) Auth method and device
CN112866906A (en) Equipment activation method, server, equipment and system
US8504033B2 (en) Emergency message transmission method and electronic device implementing the method
CN109565463B (en) Method, device and terminal for processing short message verification code
KR20170041395A (en) Smart shoes and operating method thereof
CN112785739B (en) Sign-in processing method, computer equipment and readable storage medium
JP6336281B2 (en) Position recording system
CN111526138B (en) Alarm implementation method, device and system
EP3040918A1 (en) System for locating of lost items
CN110572768B (en) Alarm method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant