Abnormal activity identification method and electronic equipment

By running the target model on the terminal device for semantic analysis and identification of abnormal activities, the problem that users cannot receive abnormal recognition results in time is solved, and fast and accurate abnormal detection and loss avoidance are achieved.

CN118898066APending Publication Date: 2024-11-05VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410920694.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

When an end user encounters an abnormal situation, he is unable to receive the abnormal identification results in a timely manner, resulting in the inability to avoid losses in a timely manner.

Method used

By running the target model on the terminal device, semantic analysis is performed to obtain the target activity record, output the probability of abnormal activity, and identify it as abnormal activity when the probability is higher than the threshold, avoiding sending data to the cloud for judgment.

Benefits of technology

It realizes rapid identification of abnormal activities on terminal devices, avoids user losses caused by inability to receive cloud identification results in a timely manner, and can deal with zero-day attacks, improving the accuracy and timeliness of abnormal detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118898066A_ABST
    Figure CN118898066A_ABST
Patent Text Reader

Abstract

The invention discloses an abnormal activity identification method and electronic equipment, and belongs to the field of data processing, and the method comprises the steps: obtaining a target activity record corresponding to a target activity of a terminal; performing semantic analysis on the target activity record through a target model running in the terminal, and outputting a probability that the target activity belongs to an abnormal activity; and when the probability is higher than a target threshold value, identifying the target activity as an abnormal activity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing, and specifically relates to a method and electronic device for identifying abnormal activities. Background Art

[0002] At present, during the operation process of terminal users, some abnormal situations may be encountered, such as communication behavior for the purpose of deception, malicious operations of malicious applications through the AB side, etc. These abnormal situations may lead to the theft of user data or property.

[0003] In the process of implementing the present application, the inventor of the present application discovered that abnormality identification on the terminal side generally requires users to upload their own data. The cloud uses the data uploaded by the user to perform abnormality identification, and then sends the abnormality identification results to the user terminal. The user may not receive the abnormality identification results sent by the cloud until he suffers losses due to abnormal attacks, and cannot receive the abnormality identification results in time to avoid losses. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method for identifying abnormal activities and an electronic device, which can solve the problem of not being able to receive abnormal identification results in time to avoid losses.

[0005] In order to solve the above technical problems, this application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a method for identifying abnormal activities, the method comprising: obtaining a target activity record corresponding to a target activity of a terminal; performing semantic analysis on the target activity record through a target model running in the terminal, and outputting a probability that the target activity belongs to an abnormal activity; when the probability is higher than a target threshold, identifying the target activity as an abnormal activity.

[0007] In a second aspect, an embodiment of the present application provides a device for identifying abnormal activities, including: an acquisition module, used to acquire a target activity record corresponding to a target activity of a terminal; an analysis module, used to perform semantic analysis on the target activity record through a target model running in the terminal, and output the probability that the target activity belongs to an abnormal activity; a determination module, used to identify the target activity as an abnormal activity when the probability is higher than a target threshold.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0012] In an embodiment of the present application, by obtaining the target activity record corresponding to the target activity of the terminal, a semantic analysis is performed on the target activity record through the target model running in the terminal, and the probability that the target activity belongs to an abnormal activity is output. When the probability is higher than the target threshold, the target activity is identified as an abnormal activity. The user terminal can perform abnormal identification based on the semantic analysis capability of the target model to solve the problem of user losses caused by the inability to receive the abnormal identification results sent from the cloud in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is a flowchart of a method for identifying abnormal activities provided in an embodiment of the present application;

[0014] Figure 2 It is a schematic diagram of a logical structure of a terminal provided in an embodiment of the present application;

[0015] Figure 3 is a schematic diagram of the structure of an abnormal activity identification device provided in an embodiment of the present application;

[0016] Figure 4 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0018] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.

[0019] The following is a detailed description of the abnormal activity identification method provided by the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0020] Figure 1 : is a flow chart of a method for identifying abnormal activities provided in an embodiment of the present application, the method is executed by a terminal device, and the method includes:

[0021] S1: Obtain a target activity record corresponding to a target activity of a terminal.

[0022] The terminal records the target activity, which includes various activities performed on the software or hardware of the terminal. The software of the terminal includes the application programs (Application, App) that the terminal has when it leaves the factory, such as text messages, emails, photo albums and address books, and the Apps provided by the application software store and downloaded by the user. The target activity record includes the record formed by the terminal performing the target activity, and the target activity record includes at least one item related to the target activity, such as at least one of the items such as the execution time, location, subject, event content, execution trigger condition, execution process, execution result, calling interface, and execution number of the target activity.

[0023] In this step, the target activity record corresponding to the target activity of the terminal can be obtained. For example, to obtain the operation of the terminal application reading text messages, the value of the target field can be defined, such as public static final int ACTION_QUERY_SMS=1010; then the number of 1010 events and the corresponding occurrence time are recorded in the target model.

[0024] S2: Perform semantic analysis on the target activity record through the target model running in the terminal, and output the probability that the target activity is an abnormal activity.

[0025] The target activity record is input into the target model running in the terminal. The target model is a natural language processing tool driven by artificial intelligence technology, which can perform semantic analysis on the input content and understand the meaning of the input content. Optionally, the target model may include a Chat Generative Pre-trained Transformer (ChatGPT) model. The target activity record is semantically analyzed, the probability that the target activity belongs to an abnormal activity is determined based on the meaning of the target activity record, and the probability that the target activity belongs to an abnormal activity is output. For example, if the target activity record indicates that user data is output to the outside, it may cause user data leakage, and a higher probability can be output, indicating that the probability that the target activity belongs to an abnormal activity is high. For another example, if the target activity record indicates that the user performs a routine operation on the terminal, such as checking the weather forecast, a lower probability can be output, indicating that the probability that the target activity belongs to an abnormal activity is low.

[0026] In this step, semantic analysis is performed on the target activity record, and the probability that the target activity belongs to an abnormal activity is determined based on the semantics of the target activity record, rather than character analysis of the target activity record, and the target activity is determined to be an abnormal activity only when the character belongs to the blacklist. In a related scheme, character analysis may be performed on the target activity record. For example, if the character abcd belongs to the blacklist, the target activity is determined to be an abnormal activity. In actual applications, the related scheme may be bypassed. For example, a meaningless placeholder x is added to the abcd character to generate axbxcxd, and axbxcxd does not belong to the blacklist, resulting in the inability to detect the abnormality. In this step, it can be analyzed that the semantics expressed by axbxcxd is abcd, and abcd belongs to the blacklist, thereby avoiding the bypass of anomaly detection and achieving accurate anomaly detection.

[0027] S3: When the probability is higher than a target threshold, identifying the target activity as an abnormal activity.

[0028] For example, when the probability that the target activity is an abnormal activity is higher than 60%, the target activity is identified as an abnormal activity. For example, if the target activity record indicates that user data is output to the outside, it may cause user data leakage, and a higher probability of 70% may be output, indicating that the probability that the target activity is an abnormal activity is high. In this step, because 70% is higher than the target threshold, the target activity is identified as an abnormal activity. Optionally, when the target activity is identified as an abnormal activity, an alarm may be output to the user to prompt the user, and the alarm may include the probability that the target activity is an abnormal activity.

[0029] For another example, if the target activity record indicates that the user performs routine operations on the terminal, such as checking the weather forecast, a lower probability can be output, indicating that the probability that the target activity is an abnormal activity is low, for example 1%. In this step, because the probability is lower than the target threshold, the target activity will not be identified as an abnormal activity, and no information will be sent to the user, thereby not disturbing the user's normal operation.

[0030] Therefore, in the embodiment of the present application, when the terminal executes the target activity, it can automatically identify whether the target activity is an abnormal activity without the user having to perform additional operations and without disturbing the user's normal use of the terminal.

[0031] In related schemes, users need to send data to the cloud for abnormality judgment, and the cloud may not receive the abnormality identification results from the cloud until after the user suffers losses. However, the embodiment of the present application utilizes the semantic analysis capability of the target model running in the terminal to perform semantic analysis on the target activity records to identify abnormalities. There is no need to send data to the cloud for abnormality judgment, which can solve the problem of user losses caused by the inability to receive the abnormality identification results sent by the cloud in a timely manner.

[0032] In another related solution, it is necessary to form specific rules in the cloud and send them to the user's mobile terminal for judgment. For example, the cloud sends a known application list blacklist to the user terminal, and when the user installs an application in the malicious application list, the user is warned. However, this alarm method requires the cloud to know all kinds of malicious behaviors, and convert the malicious behaviors into rules that the terminal can understand, and match them when the terminal is running, so this solution can only deal with common malicious behavior attacks, and cannot judge zero-day, that is, unknown attacks that have not been identified before. In the embodiment of the present application, the semantic analysis capability of the target model running in the terminal is used to perform semantic analysis on the target activity record for abnormal identification. When the semantic representation of the target activity record may have abnormal operations, it can be identified and can deal with zero-day attacks. For example, the semantic representation of the target activity record will send the user's private data to the outside. Even if the activity has not been defined as an abnormal activity before, it can be recognized through its semantics that there is a high probability of abnormality in sending the user's private data to the outside, and it can be identified as an abnormal activity through the embodiment of the present application.

[0033] In one implementation, S2 may specifically include: performing semantic analysis on the target activity record through a target model running in the terminal to determine target content included in the target activity record; performing semantic analysis on the target content to determine synonymous content having the same meaning as the target content; replacing the target content in the target activity record with the synonymous content to obtain a replacement activity record; and outputting a first probability when the content in the replacement activity record belongs to a blacklist, where the first probability is higher than the target threshold.

[0034] For example, if it is determined that the target content included in the target activity record "a0000atxx.com" is a and at, then the synonymous content 1 and @ having the same meaning as the target content are determined, and the target content a and at included in "a0000atxx.com" in the target activity record are replaced with the synonymous content 1 and @ to obtain a replacement activity record 10000@xx.com. When the content in the replacement activity record belongs to a blacklist, a first probability is output, and the first probability is higher than the target threshold.

[0035] In one implementation, S2 may specifically include: performing semantic analysis on the target activity record through a target model running in the terminal to determine placeholders included in the target activity record; deleting the placeholders in the target activity record, and outputting a probability higher than the target threshold when the target activity record after deleting the placeholders belongs to a blacklist. For example, if it is determined that the target activity record axbxcxd includes a placeholder x, and x is deleted to generate abcd, and abcd belongs to a blacklist, then a probability higher than the target threshold is output. This can avoid bypassing anomaly detection and achieve accurate anomaly detection.

[0036] Performing semantic analysis on the target activity record through a target model running in the terminal to determine the meaning of a long string of numbers or a string, for example, 11 - digit numbers are mobile phone numbers; strings with the xxx.xxx.xxx format are website addresses; strings with the xxx.xxx.xxx.xxx format are IP addresses; strings with the xxx@xxx.xxx format are email addresses, etc., and finally converting the data into the corresponding format for comparison with the blacklist to avoid being bypassed.

[0037] Thus, through the target model running in the terminal in the embodiments of the present application, semantic analysis is performed on the target activity record, the language meaning of the target activity record is understood and compared with the blacklist, which can avoid bypassing the blacklist and accurately achieve anomaly recognition.

[0038] In another implementation, S2 may specifically include: performing semantic analysis on the historical activity records corresponding to the historical activities of the terminal and the target activity records through the target model running in the terminal, and outputting the probability that the target activity is an abnormal activity, and the historical activity occurred before the target activity.

[0039] Therefore, the embodiment of the present application not only performs anomaly identification based on a single target activity, but also performs rationality judgment based on the contextual logical relationship between multiple target activities, ultimately achieving accurate anomaly identification.

[0040] In one implementation, the implementation can read the historical probability corresponding to the historical activity record, the historical probability indicating the probability that the historical activity is an abnormal activity, perform semantic analysis on the target activity record through the target model running in the terminal, and obtain a second probability that the target activity is an abnormal activity; sum the second probability and the historical probability to obtain a third probability; and output the third probability. The historical activity occurs before the target activity, and the historical activity can be one or more.

[0041] For example, in voice communication, semantic analysis is performed on the target activity record to determine that the semantics is "payment", and the historical probability corresponding to the historical activity record is read. For example, the historical probability of the historical activity "download App" is 10%, and the historical probability of the historical activity "provide information" is 5%. Then the historical probability is 15%, and the second probability obtained based on the target activity "payment" is 50%. The second probability 50% and the historical probability 15% are summed to obtain a third probability of 65%. If the third probability 65% ​​exceeds the target threshold, the target activity is identified as an abnormal activity in S3.

[0042] In one implementation, the above implementation can be applied to instant messaging scenarios, including voice communication, video communication, telephone and other scenarios. For example, in voice communication, the target model recognizes the semantic download app, and determines that the probability that the target activity downloading the app is an abnormal activity is 10%. At this time, the target activity will not be identified as an abnormal activity. The voice continues, the target model recognizes the semantic provision of information, and determines that the probability that the target activity providing information is an abnormal activity is 5%. At this time, the third probability is determined to be 15%, which is the sum of the probability of 10% that the download app is an abnormal activity and the probability of 5% that the information provided is an abnormal activity. At this time, the target activity will not be identified as an abnormal activity. The voice continues, and the target model recognizes the probability that the semantic payment is an abnormal activity of 50%. At this time, the third probability is determined to be 65%, which exceeds the target threshold, and the target activity is identified as an abnormal activity.

[0043] Therefore, the embodiment of the present application, by performing semantic analysis on multiple target activity records, can not only perform anomaly identification based on a single target activity, but also perform rationality judgment based on the contextual logical relationship between multiple target activities, and finally achieve accurate anomaly identification. This is an effect that cannot be achieved by related solutions for anomaly identification in the cloud, because the terminal cannot upload a large number of instant communication records to the cloud in a timely manner, and the cloud cannot analyze and feedback a large amount of data in real time.

[0044] In another implementation, the implementation may further include determining a record sequence, wherein the record sequence includes the historical activity records of the terminal and the target activity records; and when it is determined that the record sequence matches a predetermined exception sequence, outputting a fourth probability, wherein the fourth probability is higher than the target threshold.

[0045] For example, determine the record sequence, "all application installation events, 2024 / 01 / 14 21:27:16; read the address book, 2024 / 01 / 14 21:27:19; read text messages, 2024 / 01 / 14 21:27:19; turn on the front camera event, 2024 / 01 / 15 21:25:20; payment, 2024 / 01 / 15 21:35:05", etc. If the target model determines that the record sequence matches the predetermined abnormal sequence, the fourth probability is output, wherein the fourth probability is higher than the target threshold. In the case where the record sequence does not completely match the predetermined abnormal sequence, the fourth probability can represent the degree of match between the record sequence and the predetermined abnormal sequence, and the higher the degree of match, the higher the fourth probability.

[0046] Some abnormal behaviors have features similar to scripts. The embodiment of the present application determines the script features as a predetermined abnormal sequence, and compares the record sequence composed of terminal activities with the predetermined abnormal sequence to accurately identify abnormal activities.

[0047] In some scenarios, some applications use different aspects of AB to bypass anomaly identification, that is, when downloading, they claim to be attribute A to bypass anomaly identification, but in fact they are attribute B, which may have anomalies. In another implementation, the embodiment of the present application may also include determining the expected attributes of the target activity based on the historical activity attributes included in the historical activity record; determining the actual attributes of the target activity based on the target activity record; and outputting a fifth probability when the actual attribute does not match the expected attribute, wherein the fifth probability is higher than the target threshold.

[0048] For example, according to the historical activity attribute "watching category" included in the historical activity record of downloading video apps, the expected attribute of the target activity is determined to be "watching category", and according to the target activity record, it is determined that the user frequently interacts with the terminal when using the app, then the actual attribute of the target activity is determined to be "interaction category", and if there is a mismatch between the actual attribute and the expected attribute of the app, the fifth probability is output, wherein the fifth probability is higher than the target threshold. Thus, the embodiment of the present application can prevent some applications from bypassing abnormal identification by using different AB surfaces.

[0049] In one implementation, the correspondence between the target activity record and the probability can also be recorded after S2. Specifically, the correspondence between the target activity record and the probability can be recorded after S2 to form a historical activity record in the subsequent steps. After the first target activity is executed, the terminal may execute the second target activity, and the first target activity is updated as a historical activity. The first target activity and its corresponding probability can be recorded in the historical activity record as a historical activity and a historical probability, and can be called when necessary. For example, in S2, the target model recognizes the semantic download App, determines that the probability that the first target activity download App belongs to an abnormal activity is 10%, and after S2, the correspondence between the first target activity download App and the probability 10% can be recorded. When S2 is executed again, it is recognized that the probability that the second target activity "payment" belongs to an abnormal activity is 50%, and the correspondence between the second target activity "payment" and the probability 50% can be recorded after S2. And call the previously recorded correspondence between the first target activity download App and the probability 10% to calculate the third probability, that is, sum 50% and 10%.

[0050] In one implementation, the terminal records the target activity record corresponding to the target activity. In S1, the target activity record corresponding to the target activity of the terminal is obtained. Figure 2 is a schematic diagram of a logical structure of a terminal provided in an embodiment of the present application, such as Figure 2 As shown, the terminal includes: a processor, a kernel, a framework, an application and a large language model middle layer.

[0051] Among them, the processor includes: a hardware layer such as a graphics processing unit (GPU) or a neural processing unit (NPU) to perform artificial intelligence tasks. The kernel contains the drivers required to use the hardware. Applications may include applications that the terminal carries when it leaves the factory, such as calls, text messages, etc., and may also include other apps downloaded by users. The activities of the application are recorded by calling different interfaces of the framework to form a target activity record. A target model with semantic analysis capabilities, such as a large language model middle layer, can obtain the target activity records recorded by calling different interfaces of the framework in S1 to enable steps S2-S3.

[0052] Therefore, the embodiment of the present application records the activities of the application by calling different interfaces of the framework to form a target activity record, and obtains the target activity record through the target model to enable the target model to identify terminal abnormalities.

[0053] It should be noted that the execution subject of the abnormal activity identification method provided in the embodiment of the present application may be an abnormal activity identification device, or, or a control module in the abnormal activity identification device for executing the loading abnormal activity identification method. In the embodiment of the present application, the abnormal activity identification method provided in the embodiment of the present application is explained by taking the abnormal activity identification device executing the loading abnormal activity identification method as an example.

[0054] Figure 3 3 is a schematic diagram of the structure of an abnormal activity identification device provided in an embodiment of the present application. The device 30 includes: an acquisition module 31, an analysis module 32 and a determination module 33.

[0055] The acquisition module 31 is used to obtain the target activity record corresponding to the target activity of the terminal; the analysis module 32 is used to perform semantic analysis on the target activity record through the target model running in the terminal, and output the probability that the target activity belongs to an abnormal activity; the determination module 33 is used to identify the target activity as an abnormal activity when the probability is higher than the target threshold.

[0056] In one implementation, the analysis module 32 is used to perform semantic analysis on the target activity record through the target model running in the terminal to determine the target content included in the target activity record; perform semantic analysis on the target content to determine synonymous content having the same meaning as the target content; replace the target content in the target activity record with the synonymous content to obtain a replaced activity record; and when the content in the replaced activity record belongs to the blacklist, output a first probability, and the first probability is higher than the target threshold.

[0057] In one implementation, the analysis module 32 is used to perform semantic analysis on the historical activity records corresponding to the historical activities of the terminal and the target activity records through the target model running in the terminal, and output the probability that the target activity is an abnormal activity, and the historical activity occurred before the target activity.

[0058] In one implementation, the analysis module 32 is used to read the historical probability corresponding to the historical activity record, where the historical probability indicates the probability that the historical activity is an abnormal activity, perform semantic analysis on the target activity record through the target model running in the terminal, and obtain a second probability that the target activity is an abnormal activity; sum the second probability and the historical probability to obtain a third probability; and output the third probability.

[0059] In one implementation, the analysis module 32 is used to determine a record sequence, which includes the historical activity records of the terminal and the target activity records; when it is determined that the record sequence matches the predetermined abnormal sequence, output a fourth probability, wherein the fourth probability is higher than the target threshold.

[0060] In one implementation, the analysis module 32 is used to determine the expected attributes of the target activity based on the historical activity attributes included in the historical activity record; determine the actual attributes of the target activity based on the target activity record; and when the actual attributes do not match the expected attributes, output a fifth probability, wherein the fifth probability is higher than the target threshold.

[0061] In one implementation, the determination module 33 is used to perform semantic analysis on the target activity record through the target model running in the terminal, and after outputting the probability that the target activity belongs to an abnormal activity, record the corresponding relationship between the target activity record and the probability to form the historical activity record.

[0062] The recognition device for abnormal activity in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0063] The abnormal activity recognition device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0064] The abnormal activity identification device provided in the embodiment of the present application can achieve Figure 1 The various processes in the method embodiment achieve the same effect and will not be described again here to avoid repetition.

[0065] Optionally, an embodiment of the present application also provides an electronic device, including a processor 1010, a memory 1009, and a program or instruction stored in the memory 1009 and executable on the processor 1010. When the program or instruction is executed by the processor 1010, each process of the above-mentioned abnormal activity identification method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0066] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0067] Figure 4 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0068] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

[0069] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 4 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0070] Among them, the processor 1010 is used to obtain the target activity record corresponding to the target activity of the terminal; perform semantic analysis on the target activity record through the target model running in the terminal, and output the probability that the target activity belongs to an abnormal activity; when the probability is higher than the target threshold, identify the target activity as an abnormal activity.

[0071] In one implementation, the target activity record is semantically analyzed through the target model running in the terminal, and the probability that the target activity belongs to an abnormal activity is output, including: performing semantic analysis on the target activity record through the target model running in the terminal to determine the target content included in the target activity record; performing semantic analysis on the target content to determine synonymous content with the same meaning as the target content; replacing the target content in the target activity record with the synonymous content to obtain a replaced activity record; and when the content in the replaced activity record belongs to a blacklist, outputting a first probability, the first probability being higher than the target threshold.

[0072] In one implementation, the target model running in the terminal is used to perform semantic analysis on the target activity record, and outputting the probability that the target activity is an abnormal activity, including: performing semantic analysis on the historical activity records corresponding to the historical activities of the terminal and the target activity records through the target model running in the terminal, and outputting the probability that the target activity is an abnormal activity, wherein the historical activity occurs before the target activity.

[0073] In one implementation, a semantic analysis is performed on the historical activity records of the terminal and the target activity records through the target model running in the terminal, and the probability that the target activity belongs to an abnormal activity is output, including: reading the historical probability corresponding to the historical activity record, the historical probability indicating the probability that the historical activity belongs to an abnormal activity, performing a semantic analysis on the target activity record through the target model running in the terminal, and obtaining a second probability that the target activity belongs to an abnormal activity; summing the second probability and the historical probability to obtain a third probability; and outputting the third probability.

[0074] In one implementation, a target model running in the terminal is used to perform semantic analysis on the historical activity records of the terminal and the target activity records, and a probability that the target activity belongs to an abnormal activity is output, including: determining a record sequence, the record sequence including the historical activity records of the terminal and the target activity records; and when it is determined that the record sequence matches a predetermined abnormal sequence, outputting a fourth probability, wherein the fourth probability is higher than the target threshold.

[0075] In one implementation, a target model running in the terminal performs semantic analysis on the historical activity records of the terminal and the target activity records, and outputs a probability that the target activity is an abnormal activity, including: determining expected attributes of the target activity based on historical activity attributes included in the historical activity records; determining actual attributes of the target activity based on the target activity records; and in the event that the actual attributes do not match the expected attributes, outputting a fifth probability, wherein the fifth probability is higher than the target threshold.

[0076] In one implementation, after the target model running in the terminal performs semantic analysis on the target activity record and outputs the probability that the target activity belongs to an abnormal activity, it also includes: recording the corresponding relationship between the target activity record and the probability to form the historical activity record.

[0077] When executed, each process of the embodiment of the method for identifying abnormal activities described above is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0078] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned abnormal activity identification method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0079] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0080] An embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned abnormal activity identification method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0081] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the various processes of the above-mentioned abnormal activity identification method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0082] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0083] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0084] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0085] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for identifying abnormal activities, characterized in that: The method comprises: Obtain target activity records corresponding to the target activity of the terminal; Performing semantic analysis on the target activity record through the target model running in the terminal, and outputting the probability that the target activity is an abnormal activity; When the probability is higher than a target threshold, the target activity is identified as an abnormal activity.

2. The identification method according to claim 1, characterized in that: The performing semantic analysis on the target activity record by using the target model running in the terminal and outputting the probability that the target activity belongs to an abnormal activity includes: Performing semantic analysis on the target activity record through a target model running in the terminal to determine target content included in the target activity record; Performing semantic analysis on the target content to determine synonymous content having the same meaning as the target content; Replacing the target content in the target activity record with the synonymous content to obtain a replacement activity record; In the case that the content in the replacement activity record belongs to the blacklist, a first probability is output, and the first probability is higher than the target threshold.

3. The identification method according to claim 1, characterized in that: The performing semantic analysis on the target activity record by using the target model running in the terminal and outputting the probability that the target activity belongs to an abnormal activity includes: Acquire a historical activity record corresponding to a historical activity of the terminal, where the historical activity occurs before the target activity; The target model running in the terminal performs semantic analysis on the historical activity records and the target activity records, and outputs the probability that the target activity is an abnormal activity.

4. The identification method according to claim 3, characterized in that: By using the target model running in the terminal, semantic analysis is performed on the historical activity records of the terminal and the target activity records, and the probability that the target activity belongs to an abnormal activity is output, including: Reading a historical probability corresponding to the historical activity record, wherein the historical probability indicates a probability that the historical activity is an abnormal activity; Performing semantic analysis on the target activity record by using the target model running in the terminal, and obtaining a second probability that the target activity is an abnormal activity; Summing the second probability and the historical probability to obtain a third probability; The third probability is output.

5. The identification method according to claim 3, characterized in that: By using the target model running in the terminal, semantic analysis is performed on the historical activity records of the terminal and the target activity records, and the probability that the target activity belongs to an abnormal activity is output, including: Determine a record sequence, the record sequence including the historical activity record of the terminal and the target activity record; In the case where it is determined that the record sequence matches the predetermined abnormal sequence, a fourth probability is output, wherein the fourth probability is higher than the target threshold.

6. The identification method according to claim 3, characterized in that: By using the target model running in the terminal, semantic analysis is performed on the historical activity records of the terminal and the target activity records, and the probability that the target activity belongs to an abnormal activity is output, including: Determining expected attributes of the target activity according to the historical activity attributes included in the historical activity record; Determining actual attributes of the target activity according to the target activity record; In the case that the actual attribute and the expected attribute do not match, a fifth probability is output, wherein the fifth probability is higher than the target threshold.

7. The identification method according to claim 3, characterized in that: After the target model running in the terminal performs semantic analysis on the target activity record and outputs the probability that the target activity belongs to an abnormal activity, the method further includes: recording the corresponding relationship between the target activity record and the probability to form the historical activity record.

8. A device for identifying abnormal activities, characterized in that: include: An acquisition module, used to acquire a target activity record corresponding to a target activity of a terminal; An analysis module, configured to perform semantic analysis on the target activity record through a target model running in the terminal, and output a probability that the target activity is an abnormal activity; The determination module is configured to identify the target activity as an abnormal activity when the probability is higher than a target threshold.

9. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method for identifying abnormal activities as described in any one of claims 1 to 7.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method for identifying abnormal activities according to any one of claims 1 to 7 are implemented.