Advertisement click farm detection method, system, terminal and medium
Through machine learning and graph algorithms, we build device score prediction models and interest correlation diagrams to identify and eliminate advertising click farms, solving the problem of fraudulent advertising display in advertising click farms, achieving efficient detection and elimination in advertising transactions, and reducing advertising costs. Economic losses to the host and advertising platform.
Patent Information
- Application Number
- CN202110852092.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-27
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-07-27
AI Technical Summary
Existing technologies are difficult to effectively detect and prevent fraudulent ad displays caused by ad click farms, causing advertisers to suffer huge economic losses.
Using methods based on machine learning and graph algorithms, fraudulent advertising click farms are identified and eliminated by constructing log-device mapping, extracting representative features, building device score prediction models, constructing device interest correlation graphs, and performing group detection.
It achieves accurate detection and elimination of advertising click farms, reduces invalid traffic in advertising transactions, reduces economic losses for advertisers and advertising platforms, and has the ability to automatically update and improve prediction accuracy.
Smart Images

Figure CN113610569B
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of machine learning classification technology and graph algorithm technology, and in particular, to an advertisement click farm detection method, system, terminal and medium based on machine learning and graph algorithm. Background Art
[0002] With the development and rise of programmatic advertising technology, the market share of Internet advertising has continued to grow in recent years. Technologies represented by real-time bidding provide the market with a buyer-seller platform similar to the stock market, on which website and application developers can sell advertising space on websites or applications to advertisers through real-time auctions. In the past 10 years, mobile in-app advertising has become the main way to increase advertising revenue. It is reported that the global real-time bidding market size is likely to grow from US$6.6 billion in 2019 to US$27.2 billion in 2024.
[0003] The growing revenue has attracted the attention of fraudulent ad space sellers (app developers), who increase their revenue by forging fake ad requests, tasks that are often outsourced to click farms, which can control thousands of simulated or real mobile devices, mimicking normal app usage to deceive advertisers into believing that their ads are being seen by actual interested users. In the ad transaction process, advertisers usually pay for each thousand ad impressions (CPM) rather than clicks. In general, the main form of fraud in the advertising system has gradually evolved from click fraud to generating invalid traffic. According to estimates, the number of ad impressions generated by fraudulent activities in reality is as high as trillions each year, causing advertisers to lose tens of billions of dollars. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides an advertisement click farm detection method, system, terminal and medium based on machine learning and graph algorithm.
[0005] According to one aspect of the present invention, a method for detecting an advertisement click farm is provided, comprising:
[0006] Determine the mobile device that uniquely corresponds to each advertisement log according to the device ID in the advertisement log, and construct a log-device mapping;
[0007] Extracting representative features for reflecting the fraudulent nature of the corresponding mobile device from each advertisement log according to the advertisement log corresponding to the mobile device in each log-device mapping to form a feature vector;
[0008] Inputting the feature vector into a pre-trained machine learning classification model, and outputting a prediction score that the corresponding mobile device is a fraudulent device, thereby constructing a device score prediction model;
[0009] According to each advertisement log corresponding to the mobile device in the log-device mapping, obtaining the application package name and the corresponding log number in each advertisement log, and constructing a device interest association graph;
[0010] dividing the mobile devices in the device interest association graph into groups;
[0011] The device score prediction model is used to perform group voting on the obtained groups to complete the detection of the advertisement click farm.
[0012] Preferably, the step of determining the mobile device uniquely corresponding to each advertisement log according to the device ID in each advertisement log and constructing a log-device mapping includes:
[0013] For each advertisement log in the advertisement platform, the international mobile equipment identity code and the device ID are combined to form a device ID, and a corresponding mobile device is uniquely identified to obtain a log-device mapping.
[0014] Preferably, the representative features used to reflect the fraudulent nature of the corresponding mobile device include:
[0015] Statistical features, including: number of logs, number of IP addresses, and number of ad slots;
[0016] Entropy features, including: log distribution entropy over days, IP entropy, and ad space entropy;
[0017] Spatiotemporal characteristics, including: number of active hours and maximum speed;
[0018] Inconsistency features include: number of brands, proportion of fake brands, and proportion of non-browser user agents.
[0019] Preferably, the step of inputting the feature vector into a pre-trained machine learning classification model and outputting a prediction score that the corresponding mobile device is a fraudulent device, and constructing a device score prediction model comprises:
[0020] Acquire device numbers with labels to build a data set, where the labels include normal devices and fraudulent devices;
[0021] Extracting advertisement logs corresponding to some device numbers in the data set, and performing feature extraction to form a set of feature and label pairs;
[0022] Using the set to train a machine learning classification model to obtain a pre-trained machine learning classification model;
[0023] Inputting the feature vector into the pre-trained machine learning classification model, and outputting a prediction score corresponding to the mobile device being a fraudulent device; wherein the prediction score is between 0 and 1, 0 indicates that the mobile device is a normal device, and 1 indicates that the mobile device is a fraudulent device;
[0024] Through the above steps, a device score prediction model is constructed;
[0025] Preferably, the step of obtaining the application package name and the corresponding log number in each advertisement log according to the advertisement log corresponding to the mobile device in each log-device mapping to construct the device interest association graph includes:
[0026] According to each advertisement log corresponding to the mobile device in the log-device mapping, count the application package name and the corresponding log number in the advertisement log corresponding to each mobile device, select one or more applications that generate the most logs and their corresponding log numbers to form a key-value pair, and obtain the Top-App feature;
[0027] Mobile devices with the same Top-App features are merged into nodes, and the cosine similarity between each pair of nodes is calculated as the edge weight of the node pair. If the edge weight is greater than the set threshold, the edge is added, thereby forming a device interest association graph.
[0028] Preferably, dividing the mobile devices in the interest association graph into groups comprises:
[0029] The Louvain group detection algorithm is used to obtain the mobile device groups that are closely connected to each other in the device interest association graph to complete the group allocation; wherein:
[0030] The Louvain group detection algorithm comprises:
[0031] The modularity Q is defined as an evaluation index of the group detection result; initially, each node in the interest association graph is regarded as a group. In each iteration, each node is tried to be added to the group of its adjacent nodes to maximize the modularity Q. At the end of each round of iteration, each group is regarded as a node, its internal edges are eliminated, and the next round of iteration is continued. When the modularity Q reaches the maximum, the iteration is stopped;
[0032] The modularity Q is defined as follows:
[0033]
[0034] in:
[0035] A ij Represents the edge weight between node i and node j;
[0036] k iand k j Represents the sum of all edge weights of node i and node j respectively;
[0037] m represents the sum of all edge weights in the graph;
[0038] c i and c j They are the two groups in the picture;
[0039] δ is the Delta function, that is, when x=y, δ(x,y)=1, when x≠y, δ(x,y)=0;
[0040] After the Louvain group detection algorithm, the mobile devices in the same first-level group are regarded as a group of mobile devices closely connected to each other, and the group allocation is completed.
[0041] Preferably, the using the device score prediction model to perform group voting on the obtained group includes:
[0042] Inputting the feature vector of each mobile device in the group into the device score prediction model to obtain a prediction score of each mobile device being a fraudulent device;
[0043] The arithmetic mean of all predicted scores is calculated as the predicted score of the group. If the score is higher than the set threshold, the group is considered to be a fraudulent group, otherwise the group is a normal group, and the group voting result is obtained.
[0044] Preferably, the method further comprises:
[0045] Using the group voting results, the mobile devices within each group are relabeled;
[0046] The device score prediction model is retrained using the relabeled dataset.
[0047] According to another aspect of the present invention, there is provided an advertisement click farm detection system, comprising:
[0048] A log-device mapping module, which determines the mobile device uniquely corresponding to each advertisement log according to the device ID in the advertisement log, and constructs a log-device mapping;
[0049] a device feature extraction module, which extracts representative features for reflecting the fraudulent nature of the corresponding mobile device from each advertisement log corresponding to the mobile device in each log-device mapping to form a feature vector;
[0050] a device score prediction module, which inputs the feature vector into a pre-trained machine learning classification model and outputs a prediction score that the corresponding mobile device is a fraudulent device, thereby constructing a device score prediction model;
[0051] A device interest association graph module, which obtains the application package name and the corresponding log number in each advertisement log according to the advertisement log corresponding to the mobile device in each log-device mapping, and constructs a device interest association graph;
[0052] a group detection module, which divides the mobile devices in the device interest association graph into groups;
[0053] A click farm detection module utilizes the device score prediction model to perform group voting on the obtained groups to complete the detection of the advertisement click farm.
[0054] Preferably, the system further comprises:
[0055] A model updating module uses the group voting results to relabel the mobile devices within each group, and uses the relabeled data set to retrain the device score prediction model, thereby improving the prediction accuracy of the device score prediction model.
[0056] According to a third aspect of the present invention, there is provided a terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor can be used to execute any of the methods described above, or to run any of the systems described above when executing the program.
[0057] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, can be used to execute any of the methods described above, or to run any of the systems described above.
[0058] Due to the adoption of the above technical solution, the present invention has at least one of the following beneficial effects compared with the prior art:
[0059] The advertisement click farm detection method, system, terminal and medium provided by the present invention are based on machine learning and graph algorithms, take the mobile devices recorded in the advertisement platform logs as the target, calculate the features with high device distinction from the logs, use the machine learning classifier to identify the suspected fraudulent devices, further define the similarity between the devices and construct a graph based on the correlation of interests between the fraudulent devices, use the large-scale graph algorithm to aggregate the suspected fraudulent devices, and achieve the purpose of detecting advertisement fraud groups.
[0060] The advertisement click farm detection method, system, terminal and medium provided by the present invention can continuously run on the advertisement platform. By combining machine learning and graph algorithms, it is possible to accurately and efficiently identify collective fraud devices that generate invalid traffic, namely click farms, from the real-time bidding traffic of the advertisement platform. By eliminating such invalid traffic from the advertisement settlement cycle, it is possible to effectively help advertisers and advertisement platforms reduce losses in the advertisement transaction process.
[0061] The advertisement click farm detection method, system, terminal and medium provided by the present invention can automatically process the bidding logs on the advertisement platform by combining machine learning and graph-related algorithms, identify fraudulent mobile devices therefrom, and eliminate the invalid traffic generated by such devices from the advertisement transaction process, so as to reduce the economic losses suffered by advertisers and advertisement platforms. In addition, the system has an automatic update function, and can deal with more unknown fraud methods by regularly providing samples of some devices carrying labels.
[0062] The advertisement click farm detection method, system, terminal and medium provided by the present invention retrain the device score prediction model by using a re-labeled data set to correct possible misjudgments of the device score prediction model and improve classification accuracy, recall rate, etc.
[0063] The advertisement click farm detection method, system, terminal and medium provided by the present invention provide a detection technology with the advantages of being fully automated, highly accurate and having high operating efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0065] Figure 1 This is a flow chart of an advertisement click farm detection method in one embodiment of the present invention.
[0066] Figure 2 This is a flow chart of an advertisement click farm detection method in a preferred embodiment of the present invention.
[0067] Figure 3 It is a schematic diagram of the device interest association diagram in a preferred embodiment of the present invention.
[0068] Figure 4 Schematic diagram of the components of the advertisement click farm detection system in one embodiment of the present invention. DETAILED DESCRIPTION
[0069] The following is a detailed description of the embodiments of the present invention: This embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation method and a specific operation process are given. It should be pointed out that for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
[0070] Figure 1 A flow chart of an advertisement click farm detection method provided by an embodiment of the present invention.
[0071] like Figure 1 As shown, the advertisement click farm detection method provided by this embodiment may include the following steps:
[0072] S100, determining the mobile device uniquely corresponding to each advertisement log according to the device ID in the advertisement log, and constructing a log-device mapping;
[0073] S200, extracting representative features for reflecting the fraudulent nature of the corresponding mobile device from each advertisement log according to the advertisement log corresponding to the mobile device in each log-device mapping, and forming a feature vector;
[0074] S300, inputting the feature vector into a pre-trained machine learning classification model, and outputting a prediction score that the corresponding mobile device is a fraudulent device, and constructing a device score prediction model;
[0075] S400, according to each advertisement log corresponding to the mobile device in the log-device mapping, obtaining the application package name and the corresponding log number in each advertisement log, and constructing a device interest association graph;
[0076] S500, dividing the mobile devices in the device interest association graph into groups;
[0077] S600, using the device score prediction model, performing group voting on the obtained groups to complete the detection of the advertisement click farm.
[0078] In S100 of this embodiment, as a preferred embodiment, determining the mobile device uniquely corresponding to each advertisement log according to the device ID in each advertisement log, and constructing a log-device mapping may include the following steps:
[0079] For each advertisement log in the advertisement platform, the international mobile equipment identity code and the device ID are combined to form a device ID, and a corresponding mobile device is uniquely identified to obtain a log-device mapping.
[0080] In S200 of this embodiment, as a preferred embodiment, representative features for reflecting the fraudulent nature of the mobile device may include:
[0081] Statistical features, including: number of logs, number of IP addresses, and number of ad slots;
[0082] Entropy features, including: log distribution entropy over days, IP entropy, and ad space entropy;
[0083] Spatiotemporal characteristics, including: number of active hours and maximum speed;
[0084] Inconsistency features include: number of brands, proportion of fake brands, and proportion of non-browser user agents.
[0085] In S300 of this embodiment, as a preferred embodiment, the feature vector is input into a pre-trained machine learning classification model, and a prediction score of the corresponding mobile device being a fraudulent device is output, and a device score prediction model is constructed, which may include the following steps:
[0086] S301, obtaining device numbers with labels to build a data set, where the labels include normal devices and fraudulent devices;
[0087] S302, extracting advertisement logs corresponding to some device numbers in the data set, and performing feature extraction to form a set of feature and label pairs;
[0088] S303, using the set to train the machine learning classification model to obtain a pre-trained machine learning classification model;
[0089] S304, inputting the feature vector into a pre-trained machine learning classification model, and outputting a prediction score corresponding to the mobile device being a fraudulent device; wherein the prediction score is between 0 and 1, 0 indicating that the mobile device is a normal device, and 1 indicating that the mobile device is a fraudulent device;
[0090] Through the above steps, a device score prediction model is constructed.
[0091] In S400 of this embodiment, as a preferred embodiment, according to the advertisement log corresponding to the mobile device in each log-device mapping, the application package name and the corresponding log number in each advertisement log are obtained, and the device interest association graph is constructed, which may include the following steps:
[0092] S401, according to each advertisement log corresponding to the mobile device in the log-device mapping, counting the application package name and the corresponding log number in the advertisement log corresponding to each mobile device, selecting one or more applications generating the most log numbers and their corresponding log numbers to form a key-value pair, and obtaining a Top-App feature;
[0093] S402, merge mobile devices with the same Top-App features into nodes, and calculate the cosine similarity between each pair of nodes as the edge weight of the node pair. If the edge weight is greater than a set threshold, add the edge, thereby forming a device interest association graph.
[0094] In S500 of this embodiment, as a preferred embodiment, dividing the mobile devices in the interest association graph into groups may include the following steps:
[0095] S501, using the Louvain group detection algorithm, obtaining the mobile device groups that are closely connected to each other in the device interest association graph, and completing the group allocation;
[0096] S502, the group of closely connected mobile devices refers to mobile devices that are classified into the same first-level group after the Louvain group detection algorithm.
[0097] In S501 of this embodiment, as a preferred embodiment, the Louvain community detection algorithm may include the following steps:
[0098] The modularity Q is defined as an evaluation index of the group detection result; initially, each node in the interest association graph is regarded as a group. In each iteration, each node is tried to be added to the group of its adjacent nodes to maximize the modularity Q. At the end of each round of iteration, each group is regarded as a node, its internal edges are eliminated, and the next round of iteration is continued. When the modularity Q reaches the maximum, the iteration is stopped;
[0099] The modularity Q is defined as follows:
[0100]
[0101] in:
[0102] A ij Represents the edge weight between node i and node j;
[0103] k i and k j Represents the sum of all edge weights of node i and node j respectively;
[0104] m represents the sum of all edge weights in the graph;
[0105] c i and c j They are the two groups in the picture;
[0106] δ is the Delta function, that is, when x=y, δ(x,y)=1, when x≠y, δ(x,y)=0;
[0107] After the Louvain group detection algorithm, the mobile devices in the same first-level group are regarded as a group of mobile devices closely connected to each other, and the group allocation is completed.
[0108] In S600 of this embodiment, as a preferred embodiment, using the device score prediction model to perform group voting on the obtained groups may include the following steps:
[0109] S601, inputting the feature vector of each mobile device in the group into the device score prediction model to obtain a prediction score of each mobile device being a fraudulent device;
[0110] S602, calculating the arithmetic mean of all predicted scores as the predicted score of the group. If the score is higher than the set threshold, the group is considered to be a fraudulent group, otherwise the group is a normal group, and the group voting result is obtained.
[0111] In this embodiment, as a preferred embodiment, the method may further include the following steps:
[0112] S701, using the group voting result, re-label the mobile devices within each group;
[0113] S702, retraining the device score prediction model using the relabeled data set, thereby improving the prediction accuracy of the device score prediction model.
[0114] Figure 2 A flow chart of an advertisement click farm detection method provided for a preferred embodiment of the present invention.
[0115] The ad click farm detection method provided by the preferred embodiment identifies fraudulent device groups by the consistency of usage characteristics of fraudulent cluster-level devices of click farm nature, rather than identifying fraudulent devices by abnormal characteristics of a single device. Therefore, the main goal of the ad click farm detection method provided by the preferred embodiment, in addition to identifying fraudulent devices, is to detect fraudulent device clusters, i.e., click farms.
[0116] like Figure 2 As shown, the advertisement click farm detection method provided by the preferred embodiment may include the following three stages:
[0117] 1) In the classification stage, based on the feature analysis of labeled devices in the labeled device number dataset, a binary classifier is constructed to distinguish fraudulent devices from normal devices by utilizing the features extracted from the advertising bidding logs.
[0118] 2) Clustering stage, based on the Top-App clustering algorithm, which builds a device graph based on the consistent features between devices and then identifies closely connected device clusters.
[0119] 3) In the aggregation phase, a majority vote is taken based on the device labels within the cluster to classify each cluster, and then the devices are relabeled based on the classification results of the cluster, that is, all devices within the fraudulent cluster will be labeled as fraudulent devices, and vice versa. The final output is an output of the form ([device number], label) pairs, indicating which devices are grouped into clusters and whether these clusters are fraudulent or normal.
[0120] Furthermore, the above three stages include the following steps respectively:
[0121] Classification stage:
[0122] Step 1, build log-device mapping: determine the mobile device unique identifier based on the field (device ID) in the platform advertisement log;
[0123] Step 2, device feature extraction: extract the distinguishing features of each device based on its advertising log;
[0124] Step 3: Building a device score prediction model: Input the features into the machine learning classifier and build a device score prediction model through training;
[0125] Cluster stage:
[0126] Step 4, constructing a device interest association graph: Calculate the interest similarity between devices based on the APP package name and corresponding quantity distribution in the device log, and construct an edge into a device interest association graph based on the similarity;
[0127] Step 5, group detection: using a group detection algorithm to divide the devices in the interest association graph into groups;
[0128] Aggregation phase:
[0129] Step 6: Group voting and label correction: Group voting and label correction are performed based on the classification results of step 3 and the group detection results of step 5.
[0130] The first stage is the classification stage, which can be divided into three components. The classification stage is a classic machine learning classification process. The input of the classification model (i.e., the device score prediction model) is the advertising bidding log, and the output is the predicted score s for each device. dev , the range is 0-1. 0 means the device is normal, the closer to 0, the higher the probability of the device being normal, while 1 means the device is fraudulent, the closer to 1, the higher the probability of the device being fraudulent. This stage mainly consists of three parts: log device mapping part, device feature extraction part and device score prediction part.
[0131] The log device mapping part builds a log device mapping based on the ad bidding log. Then, the ad bidding log is used as input and outputs a device log mapping M, which maps each device ID to the corresponding log generated by the device. In the case of a given device (such as an Android device), to determine the unique ID of each device, the preferred embodiment uses the MD5 combination value of IMEI and Android ID. Since both IMEI and Android ID may be empty values due to strict permission control, they are used in combination to cover more devices in the ecosystem.
[0132] The device feature extraction part extracts representative features that can reflect the fraudulent nature of the device. To this end, the preferred embodiment defines 11 features to capture the nature of fraudulent devices, which cover all fields of the advertising bidding log and can be divided into four categories, as shown in Table 1. These features are extracted as follows.
[0133] Table 1
[0134]
[0135]
[0136] The device score prediction part contains a series of machine learning models for training and testing features. In particular, any feature-based classifier (e.g., logistic regression, decision tree, kNN, SVM, and neural network) can potentially be used.
[0137] In the first stage, the preferred embodiment proposes a novel classifier that can distinguish fraudulent devices from normal devices based on advertising bidding logs. However, in practice, this classification result may be affected by noisy data or intentional manipulation by attackers. To solve this problem, in the clustering stage, the devices are divided into different clusters, and then the cluster-level functions are used to determine whether the cluster and its devices are fraudulent. The Top-App-based clustering algorithm proposed in the preferred embodiment includes three steps: extracting Top-App features, constructing a device graph structure, and detecting communities in the graph by applying the Louvain algorithm to clustered devices.
[0138] First, extracting Top-App features aims to extract key features that can represent the consistency of devices. Since attackers tend to deploy fraudulent devices on a large scale to obtain more revenue, the advertising bidding requests generated by those fraudulent devices are mainly targeted at target applications. Here, the usage pattern of the application is selected as the main factor to be considered. In addition, the attacker must automatically control a large number of devices, which leads to those controlled devices having similar application usage patterns. Specifically, the usage pattern of the device is UP dev It can be expressed as:
[0139] UP dev =<freq(app 1 ),…,freq(app n )>
[0140] Among them, freq(app i ) means using the app on the same day i However, there are tens of thousands of applications in the entire advertising ecosystem, and feature vectors with thousands of dimensions greatly hinder the calculation. In order to reduce the computational complexity, the present invention only takes the freq (UP) of the top few applications. dev ) values are retained in the feature.
[0141] To construct a device graph using the above features, the preferred embodiment uses cosine similarity to define the similarity between pairs of devices as follows:
[0142]
[0143] Then, for each node (device) pair, an edge is added between them, and the similarity is used as the weight of the edge. To avoid constructing a weighted graph with a large number of low-weight edges, the threshold Sim is set here. thr , only when Sim(dev1,dev2)≥Sim thr When adding edges between two devices, we get the device interest association graph.
[0144] Figure 3 An example of a device interest graph is described in . A key observation is that densely connected clusters are mainly composed of one type of vertices, namely all fraudulent vertices or normal vertices. Here, the preferred embodiment uses the commonly used Louvain method to identify groups in the device graph.
[0145] In the third stage, the aggregation stage, the preferred embodiment integrates the results of the classification stage and the clustering stage. First, a majority vote is performed on the labels obtained from the first stage to determine whether the cluster in the second stage is fraudulent or normal. Specifically, the average prediction score of each cluster is calculated as the cluster score s c If s c ≥s thr , then the device cluster is marked as fraudulent. Otherwise, the device cluster is normal. Here, only clusters consisting of more than αN are considered, where N is the total number of devices. For example, when α=0.1, only clusters with more than 0.1N devices are considered for label voting, and the group voting result is obtained.
[0146] A significant advantage and necessity of the third phase is the ability to calibrate the device label predictions that occurred in phase 1. Rogue devices may be incorrectly predicted as good devices due to different configurations of the attacker. Therefore, for each cluster of size greater than αN, after a majority vote, each of its devices can be relabeled with the label of that cluster.
[0147] The above content describes the core steps and mechanisms of the preferred embodiment. By actually deploying the invention in an advertising platform, the bidding logs generated in real time in the platform can be used as input to identify invalid traffic generated by group fraudulent devices, thereby effectively reducing the impact of advertising fraud.
[0148] Figure 4 A schematic diagram of the components of an advertisement click farm detection system provided in one embodiment of the present invention.
[0149] like Figure 4 As shown, the advertisement click farm detection system provided by this embodiment may include the following modules: a log device mapping module, a device feature extraction module, a device score prediction module, a device interest association graph module, a group detection module and a click farm detection module; wherein:
[0150] A log-device mapping module, which determines the mobile device uniquely corresponding to each advertisement log according to the device ID in the advertisement log, and constructs a log-device mapping;
[0151] A device feature extraction module, which extracts representative features for reflecting the fraudulent nature of the corresponding mobile device from each advertisement log according to the advertisement log corresponding to the mobile device in each log-device mapping, and forms a feature vector;
[0152] a device score prediction module, which inputs the feature vector into a pre-trained machine learning classification model and outputs a prediction score that the corresponding mobile device is a fraudulent device, thereby constructing a device score prediction model;
[0153] A device interest association graph module, which obtains the application package name and the corresponding log number in each advertisement log according to the advertisement log corresponding to the mobile device in each log-device mapping, and constructs a device interest association graph;
[0154] A group detection module, which divides mobile devices in the device interest association graph into groups;
[0155] The click farm detection module uses the device score prediction model to perform group voting on the obtained groups to complete the detection of advertising click farms.
[0156] In this embodiment, as a preferred embodiment, the system may further include: a model updating module; wherein:
[0157] The model updating module uses the group voting results to relabel the mobile devices within each group, and uses the relabeled data set to retrain the device score prediction model, thereby improving the prediction accuracy of the device score prediction model.
[0158] An embodiment of the present invention provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the terminal can be used to execute any method of the above-mentioned embodiments of the present invention, or to run any system of the above-mentioned embodiments of the present invention.
[0159] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, it can be used to execute any method of the above embodiments of the present invention, or to run any system of the above embodiments of the present invention.
[0160] In the above two embodiments, optionally, the memory is used to store programs; the memory may include volatile memory (English: volatile memory), such as random-access memory (English: random-access memory, abbreviated: RAM), such as static random-access memory (English: static random-access memory, abbreviated: SRAM), double data rate synchronous dynamic random access memory (English: Double Data Rate Synchronous Dynamic RandomAccess Memory, abbreviated: DDR SDRAM), etc.; the memory may also include non-volatile memory (English: non-volatile memory), such as flash memory (English: flash memory). The memory is used to store computer programs (such as applications, functional modules, etc. that implement the above methods), computer instructions, etc., and the above computer programs, computer instructions, etc. can be partitioned and stored in one or more memories. And the above computer programs, computer instructions, data, etc. can be called by the processor.
[0161] The above-mentioned computer programs, computer instructions, etc. may be stored in one or more memories in partitions, and the above-mentioned computer programs, computer instructions, data, etc. may be called by a processor.
[0162] The processor is used to execute the computer program stored in the memory to implement the various steps in the method involved in the above embodiment. For details, please refer to the relevant description in the above method embodiment.
[0163] The processor and the memory may be independent structures or integrated structures. When the processor and the memory are independent structures, the memory and the processor may be coupled and connected via a bus.
[0164] The ad click farm detection method, system, terminal and medium provided by the above-mentioned embodiments of the present invention are based on machine learning and graph algorithms, and take the mobile devices recorded in the logs of the advertising platform as the target, calculate the features with high device discrimination from the logs, and use machine learning classifiers to identify suspected fraudulent devices. Further, based on the correlation of interests between fraudulent devices, the similarity between devices is defined to construct a graph, and a large-scale graph algorithm is used to aggregate suspected fraudulent devices to achieve the purpose of detecting advertising fraud groups. A corresponding terminal and medium are also provided. The present invention can automatically process the bidding logs on the advertising platform, identify fraudulent mobile devices therefrom, and remove the invalid traffic generated by such devices from the advertising transaction process to reduce the economic losses suffered by advertisers and advertising platforms. In addition, the system has an automatic update function, and can deal with more unknown fraud methods by regularly providing some device samples carrying labels.
[0165] It should be noted that the steps in the method provided by the present invention can be implemented by using corresponding modules, devices, units, etc. in the system. Those skilled in the art can refer to the technical solution of the method to realize the composition of the system, that is, the embodiments in the method can be understood as preferred examples for constructing the system, which will not be elaborated here.
[0166] Those skilled in the art know that, in addition to implementing the system and its various devices provided by the present invention in a purely computer-readable program code, the system and its various devices provided by the present invention can be made to implement the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices provided by the present invention can be considered as a hardware component, and the devices for implementing various functions included therein can also be considered as structures within the hardware component; the devices for implementing various functions can also be considered as both software modules for implementing the method and structures within the hardware component.
[0167] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art may make various modifications or variations within the scope of the claims, which do not affect the essence of the present invention.
Claims
1. A method for detecting an advertisement click farm, characterized in that: include: Determine the mobile device that uniquely corresponds to each advertisement log according to the device ID in the advertisement log, and construct a log-device mapping; Extracting representative features for reflecting the fraudulent nature of the corresponding mobile device from each advertisement log according to the advertisement log corresponding to the mobile device in each log-device mapping to form a feature vector; Inputting the feature vector into a pre-trained machine learning classification model, and outputting a prediction score that the corresponding mobile device is a fraudulent device, thereby constructing a device score prediction model; According to each advertisement log corresponding to the mobile device in the log-device mapping, obtaining the application package name and the corresponding log number in each advertisement log, and constructing a device interest association graph; dividing the mobile devices in the device interest association graph into groups; Using the device score prediction model, group voting is performed on the obtained groups to complete the detection of the advertisement click farm; in: The step of obtaining the application package name and the corresponding log number in each advertisement log and constructing a device interest association graph according to each advertisement log corresponding to the mobile device in the log-device mapping includes: According to each advertisement log corresponding to the mobile device in the log-device mapping, the application package name and the corresponding log number in the advertisement log corresponding to each mobile device are counted, one or more applications generating the largest number of logs and their corresponding log numbers are selected to form a key-value pair to obtain a Top-App feature; mobile devices with the same Top-App feature are merged into nodes, and the cosine similarity between two nodes is calculated as the edge weight of the node pair. If the edge weight is greater than a set threshold, the edge is added, thereby forming a device interest association graph; The step of using the device score prediction model to perform group voting on the obtained group includes: Inputting the feature vector of each mobile device in the group into the device score prediction model to obtain a prediction score of each mobile device being a fraudulent device; Calculate the arithmetic mean of all prediction scores as the prediction score of the group. If the score is higher than the set threshold, the group is considered to be a fraudulent group, otherwise the group is a normal group, and the group voting result is obtained; only clusters larger than αN are considered for label voting, α is the set coefficient, and N is the total number of devices; for each cluster larger than αN, after majority voting, use the label of the cluster to re-label each of its devices; Using the group voting results, the mobile devices within each group are relabeled; The device score prediction model is retrained using the relabeled dataset.
2. The method for detecting advertisement click farms according to claim 1, characterized in that: The step of determining the mobile device uniquely corresponding to each advertisement log according to the device ID in each advertisement log and constructing a log-device mapping includes: For each advertisement log in the advertisement platform, the international mobile equipment identity code and the device ID are combined to form a device ID, and a corresponding mobile device is uniquely identified to obtain a log-device mapping.
3. The method for detecting advertisement click farms according to claim 1, characterized in that: The representative features used to reflect the fraudulent nature of the corresponding mobile device include: Statistical features, including: number of logs, number of IP addresses, and number of ad slots; Entropy features, including: log distribution entropy over days, IP entropy, and ad space entropy; Spatiotemporal characteristics, including: number of active hours and maximum speed; Inconsistency features include: number of brands, proportion of fake brands, and proportion of non-browser user agents.
4. The method for detecting advertisement click farms according to claim 1, characterized in that: The step of inputting the feature vector into a pre-trained machine learning classification model and outputting a prediction score that the corresponding mobile device is a fraudulent device, and constructing a device score prediction model, comprises: Acquire device numbers with labels to build a data set, where the labels include normal devices and fraudulent devices; Extracting advertisement logs corresponding to some device numbers in the data set, and performing feature extraction to form a set of feature and label pairs; Using the set to train a machine learning classification model to obtain a pre-trained machine learning classification model; Inputting the feature vector into the pre-trained machine learning classification model, and outputting a prediction score corresponding to the mobile device being a fraudulent device; wherein the prediction score is between 0 and 1, 0 indicates that the mobile device is a normal device, and 1 indicates that the mobile device is a fraudulent device; Through the above steps, a device score prediction model is constructed.
5. The method for detecting advertisement click farms according to claim 1, characterized in that: The dividing the mobile devices in the interest association graph into groups comprises: The Louvain group detection algorithm is used to obtain the mobile device groups that are closely connected to each other in the device interest association graph to complete the group allocation; wherein: The Louvain group detection algorithm comprises: The modularity Q is defined as an evaluation index of the group detection result; initially, each node in the interest association graph is regarded as a group. In each iteration, each node is tried to be added to the group of its adjacent nodes to maximize the modularity Q. At the end of each round of iteration, each group is regarded as a node, its internal edges are eliminated, and the next round of iteration is continued. When the modularity Q reaches the maximum, the iteration is stopped; The modularity Q is defined as follows: in: A ij Represents the edge weight between node i and node j; k i and k j Represents the sum of all edge weights of node i and node j respectively; m represents the sum of all edge weights in the graph; c i and c j They are the two groups in the picture; δ is the Delta function, that is, when x=y, δ(x,y)=1, when x≠y, δ(x,y)=0; After the Louvain group detection algorithm, the mobile devices in the same first-level group are regarded as a group of mobile devices closely connected to each other, and the group allocation is completed.
6. An advertisement click farm detection system, characterized in that: include: A log-device mapping module, which determines the mobile device uniquely corresponding to each advertisement log according to the device ID in the advertisement log, and constructs a log-device mapping; a device feature extraction module, which extracts representative features for reflecting the fraudulent nature of the corresponding mobile device from each advertisement log corresponding to the mobile device in each log-device mapping to form a feature vector; a device score prediction module, which inputs the feature vector into a pre-trained machine learning classification model and outputs a prediction score that the corresponding mobile device is a fraudulent device, thereby constructing a device score prediction model; A device interest association graph module, which obtains the application package name and the corresponding log number in each advertisement log according to the advertisement log corresponding to the mobile device in each log-device mapping, and constructs a device interest association graph; a group detection module, which divides the mobile devices in the device interest association graph into groups; A click farm detection module, which uses the device score prediction model to perform group voting on the obtained groups to complete the detection of the advertisement click farm; A model updating module, which uses the group voting results to relabel the mobile devices within each group, and uses the relabeled data set to retrain the device score prediction model, thereby improving the prediction accuracy of the device score prediction model; in: The device interest association graph module, according to each advertisement log corresponding to the mobile device in the log-device mapping, obtains the application package name and the corresponding log number in each advertisement log to construct a device interest association graph, including: According to each advertisement log corresponding to the mobile device in the log-device mapping, count the application package name and the corresponding log number in the advertisement log corresponding to each mobile device, select one or more applications that generate the most logs and their corresponding log numbers to form a key-value pair, and obtain the Top-App feature; Mobile devices with the same Top-App features are merged into nodes, and the cosine similarity between two nodes is calculated as the edge weight of the node pair. If the edge weight is greater than the set threshold, the edge is added to form a device interest association graph; The click farm detection module uses the device score prediction model to perform group voting on the obtained group, including: Inputting the feature vector of each mobile device in the group into the device score prediction model to obtain a prediction score of each mobile device being a fraudulent device; The arithmetic mean of all prediction scores is calculated as the prediction score of the group. If the score is higher than the set threshold, the group is considered to be a fraudulent group, otherwise the group is a normal group, and the group voting result is obtained; among them, only clusters composed of more than αN are considered for label voting, α is the set coefficient, and N is the total number of devices; for each cluster larger than αN, after the majority vote, the label of the cluster is used to relabel each of its devices.
7. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, it can be used to execute the method described in any one of claims 1 to 5, or to run the system described in claim 6.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, it can be used to execute the method described in any one of claims 1 to 5, or to run the system described in claim 6.
