Target abnormal app identification system
By identifying the characteristic information of seed abnormal apps in the system and identifying target abnormal apps from the database based on device characteristic records, the problem of low identification efficiency among a large number of apps is solved, and efficient and accurate identification of target abnormal apps is achieved.
Patent Information
- Application Number
- CN202210265087.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-17
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-03-17
AI Technical Summary
Accurately and quickly identifying abnormal apps among a massive number of apps is inefficient, and existing technologies consume a huge amount of computation.
By obtaining the names of seed abnormal apps of known categories, the database is traversed to determine candidate device IDs, and the target abnormal app is identified based on the similarity of device feature information, including device ID, installed app package name, workplace information, and frequently connected Wi-Fi information.
It improves the efficiency and accuracy of acquiring target abnormal apps, reduces the amount of computation, and improves the efficiency and accuracy of identification.
Smart Images

Figure CN114595264B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a target abnormal app identification system. Background Art
[0002] With the rapid development of the mobile application market, a large number of apps (applications) have emerged. Various normal apps have brought great convenience to people's lives, but at the same time, a large number of abnormal apps have also appeared. The emergence of abnormal apps may bring various losses to people. Therefore, some abnormal apps need to be identified in many application scenarios. However, due to the large number of apps and the small number of abnormal apps that can be directly identified, if we directly search for target abnormal apps with similar features based on the features of a certain abnormal app, it will take a huge amount of computing and the recognition efficiency will be very low. Therefore, how to accurately and quickly identify the target abnormal app from the massive apps has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The purpose of the present invention is to provide a target abnormal app identification system to improve the accuracy and efficiency of target abnormal app identification.
[0004] According to a first aspect of the present invention, a target abnormal app identification system is provided, comprising a database, a processor and a memory storing a computer program, wherein the database stores a device feature record reported by the device, wherein the device feature record includes a device ID, an installed app package name, work location information, frequently connected wifi information and a reporting time field, and each app package name is unique. When the processor executes the computer program, the processor implements the following steps:
[0005] Step S1, obtaining a preset seed abnormal app package name, wherein the seed abnormal app is an abnormal app of a known app category;
[0006] Step S2, traversing the database based on the seed abnormal app package name and a preset first time period, and determining the device ID that has installed the seed abnormal app within the first time period as a candidate device ID;
[0007] Step S3, determining a candidate app based on the characteristics of the app package name installed by the candidate device ID within the first time period;
[0008] Step S4: based on the database, respectively obtain preset feature information corresponding to the seed abnormal app and the candidate app, and determine the target abnormal app from the candidate apps based on the similarity of the preset feature information of the seed abnormal app and the candidate app.
[0009] Compared with the prior art, the present invention has obvious advantages and beneficial effects. By means of the above technical solution, the target abnormal app identification system provided by the present invention can achieve considerable technical advancement and practicality, and has wide industrial utilization value, and has at least the following advantages:
[0010] The present invention first determines the candidate device ID from the massive data in the database based on the seed abnormal app of known categories, then determines the candidate app based on the candidate device ID, and then determines the target abnormal app based on the preset feature information of the seed abnormal app and the candidate app, thereby improving the acquisition efficiency and accuracy of the target abnormal app.
[0011] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following specifically cites a preferred embodiment and describes it in detail with the accompanying drawings as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 A schematic diagram of a target abnormal app identification system provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0013] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation method and effects of a target abnormal app identification system proposed by the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments.
[0014] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0015] The embodiment of the present invention provides a system for identifying abnormal target apps, such as Figure 1As shown, it includes a database, a processor and a memory storing a computer program. The database stores device feature records reported by the device. The device feature records include device ID, installed app package name, work location information, frequently connected wifi information and reporting time field. Each app package name is unique and can be used as a unique primary key to identify the app in the database. It can be understood that the device can be physically implemented as a mobile device such as a smart phone, PAD, etc. that can install apps. It should be noted that apps can be divided into popular apps and niche apps. The installation volume of popular apps and niche apps and niche apps is at different orders of magnitude. Niche apps are usually apps with an installation volume less than a preset installation volume threshold. For example, the preset installation volume can be set to 100,000. Abnormal apps are usually niche apps. In order to improve the recognition efficiency of target abnormal apps, all apps involved in the present invention are niche apps. When the processor executes the computer program, it implements the following steps:
[0016] Step S1, obtaining a preset seed abnormal app package name, wherein the seed abnormal app is an abnormal app of a known app category;
[0017] Step S2, traversing the database based on the seed abnormal app package name and a preset first time period, and determining the device ID that has installed the seed abnormal app within the first time period as a candidate device ID;
[0018] Step S3, determining a candidate app based on the characteristics of the app package name installed by the candidate device ID within the first time period;
[0019] Step S4: based on the database, respectively obtain preset feature information corresponding to the seed abnormal app and the candidate app, and determine the target abnormal app from the candidate apps based on the similarity of the preset feature information of the seed abnormal app and the candidate app.
[0020] It should be noted that the target abnormal app refers to an abnormal app that has an association relationship with the seed abnormality. The specific association relationship may be the same development team, the same development location, similar development time, etc., which corresponds to the feature information of the app and is reflected in the similarity between the features. Therefore, the preset feature information can be selected, and the target abnormal app is determined from the candidate apps based on the similarity of the preset feature information of the seed abnormal app and the candidate app.
[0021] The embodiment of the present invention first determines the candidate device ID from the massive data in the database based on the seed abnormal app of known categories, then determines the candidate app based on the candidate device ID, and then determines the target abnormal app based on the preset feature information of the seed abnormal app and the candidate app, thereby improving the efficiency and accuracy of obtaining the target abnormal app.
[0022] As an embodiment, step S3 may specifically include:
[0023] Step S31, construct all candidate device IDs into a negative sample device ID set, {id1, id2, ... idM}, M represents the total number of negative sample IDs, idm represents the mth negative sample device ID, m ranges from 1 to M, the set of app package names installed by all candidate device IDs in the first time period is {app1, app2, ... appJ}, J represents the total number of app package names installed by all candidate device IDs in the first time period, appj represents the xth app in the set of app package names, and j ranges from 1 to J;
[0024] Step S32: randomly select non-candidate device IDs from the database that are the same in number as the candidate device IDs, and construct a positive sample device ID set {id-1, id-2, ... id-N}, where N represents the total number of positive sample IDs, id-n represents the nth positive sample device ID, and the value of n ranges from 1 to N;
[0025] Step S33: Based on the database, {id1, id2, ... idM} and {id-1, id-2, ... id-N}, obtain the target parameter value T corresponding to appj j :
[0026]
[0027] Among them, y j0 represents the number of device IDs that install appj in the negative sample device ID set, x j0 Indicates the number of device IDs that install appj in the positive sample device ID set, y j1 represents the number of device IDs that do not install appj in the negative sample device ID set, x j1 Indicates the number of device IDs that do not have appj installed in the positive sample device ID set;
[0028] Step S34: determine the apps whose target parameter values are greater than the preset target parameter threshold as candidate apps.
[0029] It is understandable that since the number of apps is very large, the number of apps in the set of app package names installed based on all candidate device IDs within the first time period is also very large. Therefore, a layer of screening can be performed first through step S34 to select candidate apps, reduce subsequent calculations, and thus improve the recognition efficiency of target abnormal apps.
[0030] The preset characteristic information includes one or more of: the earliest app appearance time, the earliest app gathering location, the app operation location list, and the app survival period. The characteristic information or combination method can be selected according to different application scenarios and usage requirements. The following is a detailed description through several specific embodiments.
[0031] Embodiment 1
[0032] The step S4 may specifically include:
[0033] Step S41, obtaining the earliest appearance time of each candidate app and the seed abnormal app, and determining a first similarity based on the earliest appearance time interval of each candidate app and the seed abnormal app;
[0034] Specifically, the database may be searched based on the app package name, and the earliest reporting time of the app package name may be determined as the earliest appearance time of the app, based on which the earliest appearance time of the seed abnormal app and each candidate app may be determined.
[0035] Step S42, obtaining the earliest app clustering position of the seed abnormal app and each candidate app, and determining a second similarity based on the earliest app clustering position of each candidate app and the seed abnormal app;
[0036] Furthermore, the system further includes a wifi mapping table for storing a mapping relationship between wifi and wifi locations. The earliest app aggregation location obtained in step S42 may specifically include:
[0037] Step S01, searching the database based on the app package name, obtaining the preset workplace information and / or the wifi locations corresponding to the frequently connected wifi of the first G device IDs that report the app package name, wherein the workplace information and the wifi locations are both set to 8-bit geohash location information, and the workplace information and / or the wifi locations corresponding to the frequently connected wifi of the first G device IDs that report the app package name are aggregated;
[0038] The number of G is selected according to the specific application requirements and accuracy requirements. As an example, G can be 1000. Specifically, you can select the work location information of the device ID that reports the app package name, or select the wifi location corresponding to the frequently connected wifi, or select both at the same time, and then set different weights for consideration.
[0039] Step S02: setting a first position accuracy and a first confidence level, determining whether there is a position cluster point with the first position accuracy and a first confidence level higher than a first confidence level threshold; if so, determining the position cluster point as the earliest app cluster position; otherwise, executing step S03;
[0040] Step S03, setting a second position accuracy and a second confidence, determining whether there is a position cluster point with the first position accuracy and a second confidence higher than a second confidence threshold, if so, determining the position cluster point as the earliest app cluster position, otherwise executing step S04;
[0041] …
[0042] Step S0(w+1), set the wth position accuracy and the wth confidence, determine whether there is a position cluster point with the wth position accuracy and the wth confidence higher than the wth confidence threshold; if so, determine the position cluster point as the earliest cluster position of the app, wherein, 4-bit geohash ≤ wth position accuracy <…< second position accuracy < first position accuracy ≤ 8-bit geohash, first confidence < second confidence <…< wth confidence.
[0043] It should be noted that the value of each confidence level and position accuracy is determined according to the specific application scenario. The specific calculation method of the confidence level is an existing algorithm and will not be described in detail here.
[0044] Step S43: obtaining a list of app operation locations of the seed abnormal app and each candidate app, and determining a third similarity based on the list of app operation locations of the seed abnormal app and each candidate app;
[0045] The system further includes a wifi mapping table for storing a mapping relationship between wifi and wifi locations. In step S43 and step S403, obtaining the app operating location list includes:
[0046] Step S001: Acquire the frequently connected Wi-Fi information of the device ID to which the app is installed within a preset first time period based on the database as the frequently connected Wi-Fi to be selected;
[0047] Step S002: Obtain the number of device IDs connected to the app installed by each of the selected frequently connected WiFi within the first time period, determine the WiFi locations corresponding to the frequently connected WiFis greater than the preset connection number threshold as WiFi locations, and generate the app operation location list based on all WiFi locations corresponding to the app.
[0048] Step S44: multiply the first similarity and the second similarity by preset weights respectively and then sum them to obtain the similarity between the candidate app and the seed abnormal app. If the similarity between the candidate app and the seed abnormal app is greater than the preset first similarity threshold, the candidate app is determined as the target abnormal app.
[0049] For scenarios where the relationship between the target abnormal app and the seed abnormal app to be obtained is unclear, the method described in Example 1 can be preferentially used. Example 1 comprehensively determines whether the candidate app is the target abnormal app through multiple feature dimensions of the app, thereby improving the accuracy of target abnormal app identification. It can be understood that the category of the identified target abnormal app is the same as the category of the seed abnormal app.
[0050] Embodiment 2
[0051] The step S4 may specifically include:
[0052] Step S401, obtaining the earliest appearance time of each candidate app and the seed abnormal app, and determining whether the interval between the earliest appearance time of each candidate app and the earliest appearance time of the seed abnormal app is less than a preset time interval threshold. If so, determining the candidate app as a target candidate app;
[0053] It is understandable that, through step S402, a target candidate app that is closely related to the earliest appearance time of the seed abnormal app can be selected from the candidate apps. It should be noted that the earliest appearance time algorithm of the app is the same as that described in the first embodiment, and will not be repeated here.
[0054] Step S402, obtaining the earliest app clustering position of the seed abnormal app and each target candidate app, and determining a second similarity based on the earliest app clustering position of each target candidate app and the seed abnormal app;
[0055] Among them, the algorithm for the earliest aggregation position of apps is the same as step S01 to step S0(w+1) in the first embodiment, and will not be repeated here.
[0056] Step S403: Obtain a list of app operation locations of the seed abnormal app and each target candidate app, and determine a third similarity based on the list of app operation locations of the seed abnormal app and each target candidate app;
[0057] Among them, the app operation location algorithm of the app is the same as step S001-step S002 in Example 1, and will not be repeated here.
[0058] Step S404: multiply the second similarity and the third similarity by preset weights respectively and then sum them to obtain the similarity between the target candidate app and the seed abnormal app. If the similarity between the target candidate app and the seed abnormal app is greater than the preset second similarity threshold, the target candidate app is determined as the target abnormal app.
[0059] For the scenario where the target abnormal app to be acquired is developed at a similar time to the seed abnormal app, the method described in Example 2 may be used preferentially. Example 2 first selects the target candidate app from the candidate apps by the app development time, and then comprehensively determines whether the candidate app is the target abnormal app based on the two feature dimensions of the earliest app aggregation location and the app operation location, thereby improving the efficiency and accuracy of target abnormal app identification.
[0060] Embodiment 3
[0061] Since the life cycle of some abnormal apps is very short, for example, some of them are only a few days, if the abnormal app has disappeared during the identification process, the accuracy of identifying the target abnormal app based on the app operation location list will be reduced. For such application scenarios, the step S4 may further include:
[0062] Step S041, determine whether the seed abnormal app has died, if so, obtain the survival period of the seed abnormal app, obtain the survival period of each candidate app, and determine whether the difference between the survival period of the candidate app and the survival period of the seed abnormal app is less than the period difference threshold, if less, execute step S042 or step S043;
[0063] Wherein, judging whether the abnormal seed app has disappeared includes:
[0064] Step S10, traversing the database, obtaining an installation volume curve of abnormal seed apps within a preset second time period before the current moment, and dividing the installation volume curve into a first curve segment and a second curve segment;
[0065] Step S20, obtaining the amplitude attenuation slope of the first curve segment and the total installation amount corresponding to the second curve segment, the amplitude attenuation slope is less than the preset amplitude attenuation slope threshold, and the total installation amount corresponding to the second curve segment is less than the preset installation amount threshold, then it is determined that the abnormal seed app has disappeared.
[0066] In addition, the extinction time of the app can be specifically determined from the second curve segment, and the survival period of the app can be determined by subtracting the earliest appearance time of the app from the extinction time of the app.
[0067] Step S042, executing step S41 to step S42, multiplying the second similarity and the third similarity by the preset weights respectively and then summing them to obtain the similarity between the candidate app and the seed abnormal app; if the similarity between the candidate app and the seed abnormal app is greater than the preset third similarity threshold, the candidate app is determined as the target abnormal app, and the process ends;
[0068] Step S043, executing step S401 to step S402, if the second similarity is greater than the preset fourth similarity threshold, the target candidate app is determined as the target abnormal app, and the process ends.
[0069] For the application scenario of abnormal apps with a short survival period of the target abnormal apps to be acquired, the method described in Example 3 can be preferentially used. Example 3 first selects candidate apps whose survival period meets the requirements through the app survival period, and then performs subsequent target abnormal app identification operations. The efficiency and accuracy of target abnormal app identification are improved.
[0070] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this profession can make some changes or modifications to equivalent embodiments of equivalent changes using the technical contents disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of the technical solution of the present invention.
Claims
1. A target abnormal app identification system, It is characterized in that The invention comprises a database, a processor and a memory storing a computer program, wherein the database stores a device feature record reported by the device, wherein the device feature record includes a device ID, an installed app package name, work location information, frequently connected wifi information and a reporting time field, and each app package name is unique. When the processor executes the computer program, the following steps are implemented: Step S1, obtaining a preset seed abnormal app package name, wherein the seed abnormal app is an abnormal app of a known app category; Step S2, traversing the database based on the seed abnormal app package name and a preset first time period, and determining the device ID that has installed the seed abnormal app within the first time period as a candidate device ID; Step S3, determining a candidate app based on the characteristics of the app package name installed by the candidate device ID within the first time period; Step S4: based on the database, respectively obtain preset feature information corresponding to the seed abnormal app and the candidate app, and determine the target abnormal app from the candidate apps based on the similarity of the preset feature information of the seed abnormal app and the candidate app.
2. The system according to claim 1, It is characterized in that The step S3 comprises: Step S31, construct all candidate device IDs into a negative sample device ID set, {id1, id2, ... idM}, M represents the total number of negative sample IDs, idm represents the mth negative sample device ID, m ranges from 1 to M, the set of app package names installed by all candidate device IDs in the first time period is {app1, app2, ... appJ}, J represents the total number of app package names installed by all candidate device IDs in the first time period, appj represents the xth app in the set of app package names, and j ranges from 1 to J; Step S32: randomly select non-candidate device IDs from the database that are the same in number as the candidate device IDs, and construct a positive sample device ID set {id-1, id-2, ... id-N}, where N represents the total number of positive sample IDs, id-n represents the nth positive sample device ID, and the value of n ranges from 1 to N; Step S33: Based on the database, {id1, id2, ... idM} and {id-1, id-2, ... id-N}, obtain the target parameter value T corresponding to appj j : Among them, y j0 represents the number of device IDs that install appj in the negative sample device ID set, x j0 Indicates the number of device IDs that install appj in the positive sample device ID set, y j1 represents the number of device IDs that do not install appj in the negative sample device ID set, x j1 Indicates the number of device IDs that do not have appj installed in the positive sample device ID set; Step S34: determine the apps whose target parameter values are greater than the preset target parameter threshold as candidate apps.
3. The system according to claim 1, It is characterized in that The preset characteristic information includes: one or more of the earliest appearance time of the app, the earliest gathering location of the app, the app operation location list and the app survival cycle.
4. The system according to claim 3, It is characterized in that The step S4 comprises: Step S41, obtaining the earliest appearance time of each candidate app and the seed abnormal app, and determining a first similarity based on the earliest appearance time interval of each candidate app and the seed abnormal app; Step S42, obtaining the earliest app clustering position of the seed abnormal app and each candidate app, and determining a second similarity based on the earliest app clustering position of each candidate app and the seed abnormal app; Step S43: obtaining a list of app operation locations of the seed abnormal app and each candidate app, and determining a third similarity based on the list of app operation locations of the seed abnormal app and each candidate app; Step S44: multiply the first similarity and the second similarity by preset weights respectively and then sum them to obtain the similarity between the candidate app and the seed abnormal app. If the similarity between the candidate app and the seed abnormal app is greater than the preset first similarity threshold, the candidate app is determined as the target abnormal app.
5. The system according to claim 3, It is characterized in that The step S4 comprises: Step S401, obtaining the earliest appearance time of each candidate app and the seed abnormal app, and determining whether the interval between the earliest appearance time of each candidate app and the earliest appearance time of the seed abnormal app is less than a preset time interval threshold. If so, determining the candidate app as a target candidate app; Step S402, obtaining the earliest app clustering position of the seed abnormal app and each target candidate app, and determining a second similarity based on the earliest app clustering position of each target candidate app and the seed abnormal app; Step S403: Obtain a list of app operation locations of the seed abnormal app and each target candidate app, and determine a third similarity based on the list of app operation locations of the seed abnormal app and each target candidate app; Step S404: multiply the second similarity and the third similarity by preset weights respectively and then sum them to obtain the similarity between the target candidate app and the seed abnormal app. If the similarity between the target candidate app and the seed abnormal app is greater than the preset second similarity threshold, the target candidate app is determined as the target abnormal app.
6. The system according to claim 4 or 5, It is characterized in that The step S4 further comprises: Step S041, determine whether the seed abnormal app has died, if so, obtain the survival period of the seed abnormal app, obtain the survival period of each candidate app, and determine whether the difference between the survival period of the candidate app and the survival period of the seed abnormal app is less than the period difference threshold, if less, execute step S042 or step S043; Step S042, executing step S41 to step S42, multiplying the second similarity and the third similarity by the preset weights respectively and then summing them to obtain the similarity between the candidate app and the seed abnormal app; if the similarity between the candidate app and the seed abnormal app is greater than the preset third similarity threshold, the candidate app is determined as the target abnormal app, and the process ends; Step S043, executing step S401 to step S402, if the second similarity is greater than the preset fourth similarity threshold, the target candidate app is determined as the target abnormal app, and the process ends.
7. The system according to claim 4 or 5, It is characterized in that The system further includes a wifi mapping table for storing a mapping relationship between wifi and wifi locations. The step S42 or step S402 of obtaining the earliest app aggregation location includes: Step S01, searching the database based on the app package name, obtaining the preset workplace information and / or the wifi locations corresponding to the frequently connected wifi of the first G device IDs that report the app package name, wherein the workplace information and the wifi locations are both set to 8-bit geohash location information, and the workplace information and / or the wifi locations corresponding to the frequently connected wifi of the first G device IDs that report the app package name are aggregated; Step S02: setting a first position accuracy and a first confidence level, determining whether there is a position cluster point with the first position accuracy and a first confidence level higher than a first confidence level threshold; if so, determining the position cluster point as the earliest app cluster position; otherwise, executing step S03; Step S03, setting a second position accuracy and a second confidence, determining whether there is a position cluster point with the first position accuracy and a second confidence higher than a second confidence threshold, if so, determining the position cluster point as the earliest app cluster position, otherwise executing step S04; … Step S0(w+1), set the wth position accuracy and the wth confidence, determine whether there is a position cluster point with the wth position accuracy and the wth confidence higher than the wth confidence threshold; if so, determine the position cluster point as the earliest cluster position of the app, wherein, 4-bit geohash ≤ wth position accuracy <…< second position accuracy < first position accuracy ≤ 8-bit geohash, first confidence < second confidence <…< wth confidence.
8. The system according to claim 4 or 5, It is characterized in that The system further includes a wifi mapping table for storing a mapping relationship between wifi and wifi locations. In step S43 and step S403, obtaining the app operation location list includes: Step S001: Acquire the frequently connected Wi-Fi information of the device ID to which the app is installed within a preset first time period based on the database as the frequently connected Wi-Fi to be selected; Step S002: Obtain the number of device IDs connected to the app installed by each of the selected frequently connected WiFi within the first time period, determine the WiFi locations corresponding to the frequently connected WiFis greater than the preset connection number threshold as WiFi locations, and generate the app operation location list based on all WiFi locations corresponding to the app.
Citation Information
Patent Citations
Data processing system for determining public wifi category
CN113486055A
Abnormal terminal equipment identification method and device, electronic equipment and storage medium
CN113568828A
Telecommunications call augmentation system
GB201320598D0
Intelligent customer service response method, device, and apparatus, and storage medium
WO2019242090A1
