Abnormal user processing method, device, computer equipment and medium based on Neo4j

Predicting abnormal user groups and generating targeted labels through the Neo4j algorithm solves the problem of inaccurate abnormal user verification in the existing technology, improves verification accuracy and efficiency, and reduces redundancy in server-side data processing.

CN111814064BActive Publication Date: 2024-09-13PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010591171.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-24
Publication Date
2024-09-13
Estimated Expiration
2040-06-24

AI Technical Summary

Technical Problem

The verification processing of abnormal users in the existing technology is inaccurate, resulting in the inability to effectively distinguish abnormal users from normal users, which brings difficulties to the data processing of the backend server.

Method used

The abnormal user processing method based on Neo4j is used to verify abnormal users by extracting user features, predicting abnormal user groups, scoring based on preset weight ratios, and generating targeted labels.

Benefits of technology

It improves the accuracy and efficiency of abnormal user verification, reduces the redundancy of server-side data processing, and realizes personalized verification processing for different abnormal user groups.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111814064B
    Figure CN111814064B
Patent Text Reader

Abstract

The present application belongs to the field of big data, and discloses a method, device, computer equipment and readable storage medium for abnormal user processing based on Neo4j. The method comprises extracting user features from the acquired user data; inputting the extracted user features into the Neo4j algorithm to predict the user group with the same attribute label in the user data as the abnormal user group; scoring the abnormal user group based on the preset weight ratio according to the number of users, calibration features and common features in the abnormal user group; generating corresponding target tags for the abnormal user group according to the score, and processing the detected abnormal user group with specific operations according to the target tags. The present application also relates to blockchain technology, and the user data is also stored in the blockchain. The present method is used to generate target tags for different abnormal user group verification bodies, and the verification is carried out in a targeted manner, which solves the technical problem of inaccurate processing of abnormal users in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data, and in particular to a method, device, computer equipment and storage medium for abnormal user processing based on Neo4j. Background Art

[0002] At present, in order to compete for users, major Internet platforms often use the method of concessions and subsidies to increase activity, but at the same time they also nourish a group of special users - the "cash-back party". The "cash-back party" has gradually developed from individual players to an organized, large-scale professional group. These abnormal users not only bring burdens to the company, but also bring difficulties to the data processing of the background server. In the existing technology, the detected abnormal users are usually added to the blacklist, but this method of verifying and processing abnormal users is too simple and crude, which will cause a class of users who tend to change from abnormal users to normal users to not be able to enjoy normal permissions, causing great inaccuracy in the verification of abnormal users. Summary of the invention

[0003] Based on this, it is necessary to address the above technical problems. The present application provides a method, apparatus, computer device and storage medium for handling abnormal users based on Neo4j to solve the technical problem of inaccurate handling of abnormal users in the prior art.

[0004] A method for handling abnormal users based on Neo4j, the method comprising:

[0005] Extract user features from the acquired user data;

[0006] The extracted user features are input into the Neo4j algorithm for prediction, and a user group with the same attribute label in the user data is obtained as an abnormal user group;

[0007] Based on a preset weight ratio, the abnormal user group is scored according to the number of users in the abnormal user group, the calibration characteristics and the common characteristics; and

[0008] A corresponding target tag is generated for the abnormal user group according to the score, and a verification process is performed on the detected abnormal user group with specific operations according to the target tag.

[0009] A Neo4j-based abnormal user processing device, the device comprising:

[0010] An extraction module, used to extract user features from the acquired user data;

[0011] A detection module is used to input the extracted user features into the Neo4j algorithm for prediction, and obtain a user group with the same attribute label in the user data as an abnormal user group;

[0012] A scoring module, configured to score the abnormal user group based on a preset weight ratio according to the number of users in the abnormal user group, the calibration features, and the common features; and

[0013] The processing module is used to generate corresponding target tags for abnormal user groups according to the scores, and to perform verification processing on the detected abnormal user groups with specific operations according to the target tags.

[0014] A computer device includes a memory and a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned abnormal user processing method based on Neo4j are implemented.

[0015] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned abnormal user processing method based on Neo4j are implemented.

[0016] The above-mentioned Neo4j-based abnormal user processing method, device, computer equipment and storage medium, by rating and grading abnormal users according to the number and characteristics of users in the abnormal user group, and then generating targeted tags according to the rating and grading, triggers different processing mechanisms according to the targeted tags when the abnormal users trigger specific operations, and performs targeted verification processing on the abnormal users, thereby solving the technical problem of inaccurate verification processing of abnormal users in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0018] Figure 1 This is a schematic diagram of the application environment of the abnormal user processing method based on Neo4j;

[0019] Figure 2 This is a flowchart of the abnormal user processing method based on Neo4j;

[0020] Figure 3 for Figure 2 Schematic diagram of the process of step 204;

[0021] Figure 4a A schematic diagram of a relationship map in step 302;

[0022] Figure 4b is another schematic diagram of a relationship map in step 302;

[0023] Figure 4c is another relationship diagram in step 302;

[0024] Figure 5 for Figure 2 Schematic diagram of the process of step 206;

[0025] Figure 6 It is a schematic diagram of an abnormal user processing device based on Neo4j;

[0026] Figure 7 FIG. 1 is a schematic diagram of a computer device in one embodiment. DETAILED DESCRIPTION

[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0028] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0029] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0030] The Neo4j-based abnormal user processing method provided in the embodiment of the present invention can be applied to Figure 1In the application environment shown, the application environment may include a terminal 102, a network and a server 104, the network is used to provide a communication link medium between the terminal 102 and the server 104, and the network may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0031] The user can use the terminal 102 to interact with the server 104 through the network to receive or send messages, etc. Various communication client applications can be installed on the terminal 102, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0032] Terminal 102 can be various electronic devices with a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptop computers and desktop computers, etc.

[0033] The server 104 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal 102 .

[0034] It should be noted that the Neo4j-based abnormal user processing method provided in the embodiment of the present application is generally executed by the server / terminal, and accordingly, the Neo4j-based abnormal user processing device is generally set in the server / terminal device.

[0035] It should be understood that Figure 1 The number of terminals, networks and servers in the embodiment is only for illustration. Any number of terminals, networks and servers may be provided according to the implementation requirements.

[0036] The terminal 102 communicates with the server 104 through a network. The server 104 obtains user data from the terminal 102 through the network, extracts features from the user data, inputs the user features into the Neo4j algorithm to predict the abnormal user group, and then scores the abnormal user group according to the number of users, calibration features, and common features in the abnormal user group, and generates corresponding target tags according to the scores, and finally performs corresponding verification processing on the abnormal users in the abnormal user group according to the target tags. The terminal 102 and the server 104 are connected through a network, which can be a wired network or a wireless network, and the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the server 104 can be implemented with an independent server or a server cluster composed of multiple servers.

[0037] In one embodiment, Figure 2 As shown in the figure, a method for handling abnormal users based on Neo4j is provided. Figure 1 The server in the example is used as an example to illustrate, including the following steps:

[0038] Step 202: extract user features from the acquired user data.

[0039] User data includes the user's mobile phone number, IP address, device number, the connection between the mobile phone number, IP address, and device number, the relationship between the user characteristics of different users, etc. In addition, it also includes the types of activities participated by different users, such as daily check-in, new user registration, invitation to new registration, etc. Among them, a user can use one mobile phone number, multiple IP addresses and device numbers.

[0040] User feature extraction is the process of extracting feature values ​​based on the user's mobile phone number, IP address, and device number, as well as the correlation between the three features: mobile phone number, IP address, and device number.

[0041] It should be emphasized that in order to further ensure the privacy and security of the above user data, the above user data can also be stored in a distributed manner in the nodes of the blockchain.

[0042] Step 204 , input the extracted user features into the Neo4j algorithm for prediction, and obtain the user group with the same attribute label in the user data as the abnormal user group.

[0043] Neo4j is a high-performance, NOSQL graph database that stores structured data on the network instead of in tables. Label Propagation is an algorithm in Neo4j that propagates labels through edges between nodes.

[0044] The user's mobile phone number, IP address and device number all have a marking feature, which marks whether the mobile phone number, IP address or device number is in the server's blacklist, whitelist or unconfirmed list. Among them, a user's mobile phone number and the device number corresponding to the mobile phone number may be in the whitelist, but the corresponding IP address may be in the blacklist; it is also possible that the user's mobile phone number, IP address and device number are all in the blacklist.

[0045] The data in the blacklist and whitelist are obtained based on historical experience. Some of the blacklist data is obtained through user reports and blacklisting, and the whitelist data is obtained based on characteristics such as the amount of user participation in activities in a certain APP.

[0046] The extracted user features are input into the label propagation algorithm. The label propagation algorithm uses mobile phone number, IP and device number as relationship nodes and builds a relationship network based on the connections between the three types of relationship nodes.

[0047] The relationship between two relationship nodes is represented by an edge connecting the two relationship nodes in the relationship network. User data includes real-time user data, which can be directly applied to the user data collected in real time to ensure the timeliness of abnormal user prediction. Then, the abnormal user group is predicted based on the constructed relationship network.

[0048] This embodiment uses the Neo4j algorithm to predict abnormal user groups, without the need to obtain a risk map based on a predetermined node template, making the prediction process more flexible and more universal.

[0049] Step 206 , based on a preset weight ratio, the abnormal user group is scored according to the number of users in the abnormal user group, the calibration features, and the common features.

[0050] The preset weight ratio is the ratio obtained based on historical experience for integrating the characteristic values ​​of abnormal user groups, and can be set according to specific application scenarios; calibration features include but are not limited to features of dimensions such as users' daily check-ins, new user registrations, invitations to new registrations, and specific activities; specific activities include but are not limited to Double Eleven activities, 618 activities, and other activities for users to obtain high-return cards, coupons, and other virtual objects; common features refer to features of the same characteristic dimensions that abnormal users in an abnormal user group may have, such as more than 50% of the abnormal users in an abnormal user group have the same device number, mobile phone location, registration time, or the same IP.

[0051] Step 208: Generate corresponding target tags for the abnormal user group according to the score, and perform verification processing on the detected abnormal user group with specific operations according to the target tags.

[0052] Specific operations generally include: operations of abnormal users in an abnormal user group requesting to log in to a certain app account, operations of requesting to obtain a certain functional module in a certain app, etc. Scores in different ranges correspond to different targeted tags, and different targeted tags will trigger different verification processing mechanisms. For example, when a score of 91 is obtained for a certain abnormal user group, a targeted tag of refusing to log in and / or refusing to participate in activities can be generated for the abnormal user group to restrict the activities of the abnormal user group, such as verification processing for refusing to log in, so as to achieve the purpose of performing different verification processing on different abnormal user groups, and also to reduce the redundant data generated by abnormal user groups, thereby improving the data processing efficiency of the server.

[0053] In the above-mentioned abnormal user processing method based on Neo4j, the abnormal user group is predicted by the Neo4j algorithm on the server side, and then the abnormal user group is scored according to the three specified characteristics of the abnormal user group, and the corresponding target tags are generated according to the scoring results. The login, activity and other behaviors of the abnormal users in the abnormal user group are processed to different degrees according to different target tags, so as to achieve the purpose of different verification processing for different abnormal user groups, and also achieve the purpose of reducing the redundant data generated by the abnormal user group, thereby improving the data processing efficiency of the server side.

[0054] In one embodiment, Figure 3 As shown, step 204 includes:

[0055] Step 302, constructing a relationship network based on the association relationship between each user feature through the Neo4j algorithm, wherein the relationship network is mainly composed of relationship nodes such as mobile phone numbers, IP addresses and device numbers.

[0056] like Figure 4a , 4b As shown in the relationship map diagram, the triangle represents the IP address, the circle represents the mobile phone number, and the pentagon represents the device number. One IP address can correspond to multiple mobile phone numbers, one mobile phone number can correspond to multiple device numbers, and one device number can correspond to multiple IP addresses. Usually, the device number and IP address are associated with the mobile phone number to form a second-degree relationship, and the mobile phone number is directly associated with the device number and IP address respectively to form a first-degree relationship.

[0057] in, Figure 4a It is a relationship network constructed based on normal user data (users on the whitelist and user data of non-white and non-black unconfirmed nodes). It can be seen that the relationship network of normal users is relatively scattered in terms of single-point features. Figure 4bIt is a relationship network built based on blacklist user data. In some single-point features, it is scattered like normal users, making it difficult to defend against single-point features. However, if user features are modeled and displayed in the form of a network, it will be found that in some special graphic features, abnormal behavior is obviously different from normal behavior. Among them, a single-point feature refers to a single feature. For example, the number of device numbers and the number of IP addresses used by a user are two features. From a single feature, such as the single-point feature of the number of device numbers, it is impossible to distinguish abnormal users from normal users.

[0058] User characteristics refer to what a user does at a certain time (period). For example, a user logs into an app 10 times between 1 a.m. and 3 a.m.; a user signs in to an app 20 times within 30 days. These are all user characteristics.

[0059] Furthermore, Neo4j is used to build a relationship network based on user data. Figure 4c As shown in the schematic diagram of the relationship map, Figure 4c Just exemplary.

[0060] Step 304, obtaining the annotation features of the relationship nodes, and classifying the relationship nodes according to the annotation features to obtain blacklist nodes, whitelist nodes, and unconfirmed nodes, wherein the annotation features are the initial categories of the relationship nodes.

[0061] The annotation feature indicates whether the user's mobile phone number, IP address or device number belongs to a blacklist node in the blacklist, a whitelist node in the whitelist or an unconfirmed node in the unconfirmed list.

[0062] The newly acquired relationship network will have an initial category, which includes whether the IP address, mobile phone number or device number belongs to the blacklist, whitelist or unconfirmed list. The label generated for the relationship node of the blacklist is 1, and the label generated for the relationship node of the whitelist and unconfirmed list is 0.

[0063] Step 306: Generate attribute labels for the relationship nodes, where the attribute labels include abnormal and normal.

[0064] In particular, the annotation features of the mobile phone numbers, device numbers and IP addresses in the blacklist are used to mark the initial attribute labels of each relationship node as abnormal, and there is also an attribute label: black label; while the annotation features of the relationship nodes in the whitelist are used to mark the initial attribute labels of each relationship node as normal, and there is also an attribute label: white label. The black label and white label are to prevent the attribute labels of the relationship nodes in the blacklist and whitelist from being refreshed when the subsequent node labels are updated; and the attribute label of the relationship nodes (mobile phone numbers, IP addresses and device numbers) in the unconfirmed list is: unidentified (meaning unconfirmed label), which can be refreshed in subsequent label predictions, and its initial annotation features are normal.

[0065] That is, the attribute tags of IP addresses, device numbers, or mobile phone numbers in the blacklist or whitelist will not be updated or changed in the end.

[0066] Step 308, taking the relationship nodes of the mobile phone number and IP address with the attribute label of abnormal as seed nodes, respectively, obtaining the node path whose path length is not greater than the first preset value from the relationship network, and obtaining the node relationship graph, wherein the relationship graph includes an abnormal number relationship graph based on abnormal mobile phone number nodes and an abnormal IP relationship graph based on abnormal IP nodes.

[0067] Taking the IP address with the attribute label of abnormal as the seed node, obtaining an abnormal IP relationship map based on abnormal IP nodes, which is composed of node paths with a path length not greater than a first preset value, wherein the first preset value can be set to 10 based on experience. It is also necessary to take the mobile phone number with the attribute label of abnormal as the seed node, obtaining an abnormal number relationship map based on abnormal mobile phone number nodes, which is composed of node paths with a path length not greater than 10.

[0068] Specifically, you can use Neo4j's cypher language to find node paths consisting of relationship nodes with path lengths between 1 and 10. The expression can be (a)-[*1..10]->(b). The cypher language is similar to SQL query statements. Among them, a and b represent relationship nodes, and [*1..10] represents a node path with a degree of 1 to 10.

[0069] In this embodiment, two different types of relationship nodes are used as seed nodes to construct a relationship map in order to make the predicted map more comprehensive and the prediction process more efficient. If a large relationship map is constructed with one relationship node as a seed node, it is necessary to obtain node paths no greater than N, where N is an integer. N needs to be much greater than 10 to ensure that most node connections can be included in the relationship map, which will result in a long time-consuming path segmentation during the relationship map construction process, affecting the prediction efficiency. Therefore, using two nodes to construct two relationship maps can ensure the integrity of the relationship map and the efficiency of segmentation.

[0070] Step 310 , respectively perform label prediction on the unconfirmed nodes in the abnormal number relationship graph and the abnormal IP relationship graph to obtain abnormal user groups.

[0071] This step is also implemented in the label propagation algorithm. Before the first round of label updates, the labels of the relationship nodes in the unconfirmed list are defaulted to normal, while the attribute labels of other relationship nodes are either determined to be abnormal or normal.

[0072] For example, the attribute label of relationship node A has been updated and has changed from normal to abnormal, and relationship node B and relationship node A are neighboring nodes. The label update result of relationship node B will be affected by the label of relationship node A.

[0073] Specifically, the number of neighboring nodes whose attribute labels of the unconfirmed node are abnormal and normal is compared to obtain a label comparison result.

[0074] When refreshing labels, for unidentified nodes, their labels are updated according to the labels of their neighboring nodes.

[0075] Update the attribute labels of the unconfirmed nodes according to the label comparison results.

[0076] For an unconfirmed node in the unconfirmed list, the attribute labels of all neighbor nodes of the relationship node are combined. If the attribute labels of all neighbor nodes are normal and the attribute labels are abnormal, a normal attribute label is generated for the relationship node. Otherwise, an abnormal attribute label is generated. If the number of neighbor nodes with normal attribute labels is the same as the number of abnormal attribute labels, the abnormal or normal label is randomly generated for the relationship node. At this time, generating abnormal or normal labels has no adverse effect on the prediction of abnormal user groups.

[0077] According to the preset correction conditions, the attribute labels of the relationship nodes after the attribute labels are updated are corrected, and the attribute label comparison and update operations are repeated until the attribute labels of each unconfirmed node no longer change or the number of updates reaches the threshold. The relationship graph after the last attribute label update is used as the graph to be predicted.

[0078] The preset correction condition is the condition for adjusting the label of the relationship node during the label update process. Specifically, after each round of label change, the label results of some relationship nodes need to be corrected: that is, the attribute labels of the unconfirmed nodes that have a first-degree relationship with the IP addresses in the whitelist are all set to normal. For each unconfirmed node in the two relationship graphs, the label is refreshed in this way in turn until the label result of each relationship node remains unchanged or the number of refresh rounds reaches the threshold of 10,000.

[0079] During the label iteration process, only the relationship nodes in the unconfirmed list are iterated, and the traversal time is short. When predicting the attribute labels in the abnormal number relationship graph, after each iteration, the first-degree node (i.e., mobile phone number node) associated with the IP address in the whitelist is reset to normal. When predicting the attribute labels in the abnormal IP relationship graph, after each iteration, the label of the first-degree node (IP) associated with the whitelist mobile phone number is reset to 0 to prevent users using corporate wifi from being blacklisted. Improve the accuracy of abnormal user group prediction.

[0080] Disconnect the abnormal edges in the graph to be predicted to obtain multiple relationship subgraphs, where an abnormal edge is an edge in which at least one of the relationship nodes in the edges directly connected to each other has a normal attribute label.

[0081] Specifically, the attribute label of the mobile phone number having a first-degree relationship with the IP address in the whitelist node is set to normal, wherein the first-degree relationship refers to the association relationship between two directly connected relationship nodes.

[0082] In the relationship subgraph generated in this way, the labels of all relationship nodes are normal, thereby ensuring that the attribute labels of the neighbor nodes of each mobile phone number node are also normal. In this embodiment, only when the labels of the mobile phone number node, IP node and device number node of the same user are all abnormal, the user corresponding to the mobile phone number node will be marked as an abnormal user.

[0083] The attribute labels of the relationship nodes in the relationship subgraph are counted, and if the number of mobile phone numbers or IP addresses with abnormal attribute labels is greater than a second preset value, the user group corresponding to the relationship node in the relationship subgraph is regarded as an abnormal user group.

[0084] Users are confirmed based on their mobile phone numbers / IP addresses. Generally, the number of wool-gathering parties appears in groups, using one mobile phone number to brush data under different IP addresses and different device numbers, and also using different mobile phone numbers and different device numbers under the same IP address; their user fraud types can be divided into number-raising fraud gangs and activity fraud gangs. For example, if a certain fraud gang has all mobile phone numbers with 0 sign-ins on a certain app and 0 participation in activities, then the fraud gang can be defined as an number-raising fraud gang; if a certain fraud gang has all mobile phone numbers with non-0 participation in activities, then the fraud gang is defined as an activity fraud gang.

[0085] Further, the abnormal user groups obtained can also be compared to perform de-duplication processing on the abnormal user groups. Specifically, if the abnormal user groups based on the abnormal mobile phone number nodes are the same as the abnormal user groups based on the abnormal IP nodes, the abnormal user groups are merged to obtain the merged abnormal user groups. Because the group prediction is performed based on different nodes as the center, the same user may be obtained, that is, in the A group obtained by predicting the abnormal mobile phone number as the center node, and in the A group obtained by the abnormal IP node as the center, it is necessary to find out whether the abnormal user groups obtained have the same label, and merge the same user of the abnormal user groups with the same label to save storage space, and generate the same target label for the merged abnormal user groups. Later, when the specific operation of the abnormal user in the abnormal user group is detected, such as after the login operation, the corresponding verification process will be performed according to the target label of the abnormal user. If it is not detected, it means that different abnormal user groups are predicted, and different target labels are generated for different abnormal user groups, and when the specific operation of the abnormal user in these abnormal user groups is detected, such as after the login operation, according to the corresponding target label, the corresponding verification interface is called to verify the abnormal user. The efficiency of data storage is improved by this embodiment.

[0086] This embodiment directly updates the labels of the relationship nodes that need to determine the labels through the neighbor labels between the relationship nodes. It is not limited to updating the labels for a certain specified relationship node. Except for special labels (blacklist, whitelist), the labels of all nodes are constantly refreshed in the prediction, ensuring that the influence of neighbor labels can be fully utilized during label prediction. Finally, the relationship edges where the nodes with normal labels are located are disconnected to generate a subgraph, making the prediction process more flexible and universal. In addition, in the label iteration process, it is only iterated for unconfirmed nodes, and the traversal time is short. After one iteration, the label of the first-degree node (i.e., mobile phone number) associated with the IP address of the whitelist is reset to normal to prevent the wrong prediction of users using corporate wifi being placed on the blacklist.

[0087] In one embodiment, Figure 5 As shown, step 206 includes:

[0088] Step 502 : obtaining the number of users in the abnormal user group, and setting a first rating score for the abnormal user group according to the first preset rating score and the number of users.

[0089] The number of users refers to the number of abnormal users in an abnormal user group, and the first rating score of the abnormal user group can be determined based on the number of users; specifically:

[0090] The number of users and the first rating scores of the abnormal user group are shown in Table 1:

[0091] Number of users First rating score / points <=10 10 (10,30] 20 (30,50] 40 (50,70] 60 (70,90] 80 >90 100

[0092] Table 1

[0093] Step 504: Obtain the calibrated number of abnormal users with the calibrated features in the abnormal user group, and determine the second rating score of the abnormal user group according to the calculation priority of the calibrated features.

[0094] The calculation priority of the calibration feature indicates the priority of the impact of different calibration features on the second rating score. For example, daily check-in is 40 points, new registration is 60 points, new invitation registration is 80 points, and specific activities are 100 points. Among them, the calculation priority of specific activities is greater than daily check-in, new registration and new invitation registration, and the calculation priority of new invitation registration is greater than daily check-in and new registration, and the calculation priority of new registration is greater than daily check-in. When more than 50% of the abnormal users in an abnormal user group participate in daily check-ins, new invitation registrations and specific activities, the score corresponding to the specific activity is used as the second rating score of the abnormal user group. Among them, more than 50% is the calibration number. For example, if the calibration number is less than 50%, the abnormal user group can be not scored, that is, the second rating score is 0.

[0095] Step 506 , counting the total number of abnormal users with common characteristics in the abnormal user group, and determining a third rating score for the abnormal user group according to the total number and the second preset rating score.

[0096] The common number is the number of abnormal users with a common feature in the abnormal user group, and can be used to determine whether to determine the third rating score of the abnormal user group based on the score corresponding to the common feature.

[0097] Common characteristics refer to abnormal users having the same IP, mobile phone location, same registration time and same device number.

[0098] Same IP address - 40, same mobile phone location - 60, same registration time - 80, same device number - 100;

[0099] If 50% of an abnormal user group uses the same IP, registration time, and device number, the score of the abnormal user group will be based on the score corresponding to the common feature with the highest score, i.e. 100 points for the same device number.

[0100] Step 508: The first rating score, the second rating score, and the third rating score are combined according to a preset weight ratio to obtain a score for the abnormal user group.

[0101] Based on the above three classification score conditions, and according to the preset weight ratio of 1:2:2, the abnormal user group is scored. Among them, the preset weight ratio is obtained based on experience, and the accuracy of calculating the score with this ratio is relatively high:

[0102] For example, abnormal user group A:

[0103] First grading score: 20 points*0.2

[0104] Second classification score: 80 points*0.4

[0105] Third classification score: 100 points*0.4

[0106] Then, the score is:

[0107] 4+32+40=76 points

[0108] Finally, different targeted labels are generated for the abnormal user group based on the final score;

[0109] Specifically:

[0110]

[0111] Abnormal users with different targeted tags trigger different verification mechanisms on the server side. The targeted tag for SMS verification during login will trigger the SMS verification mechanism when the user logs in to verify the user, etc. Therefore, when abnormal users log in to the APP / webpage, different verification methods are adopted to increase the verification threshold for abnormal users, prevent machine batch operations, reduce the amount of junk data processed on the server side, and improve data processing efficiency.

[0112] Furthermore, if a specific operation of an abnormal user is detected, a target tag of the abnormal user group to which the abnormal user belongs is obtained; the target tag of the abnormal user is pre-generated before the specific operation of the user is detected. When a specific operation of one or some abnormal users in the abnormal user group is detected, such as a login operation, the target tag of the abnormal user is obtained, and the corresponding verification processing interface is called according to the target tag to verify the activity permissions of the abnormal user; it is determined whether the number of verification processing times for the activity permissions of the abnormal user exceeds the permission value, and the abnormal users who exceed the permission value are set as locked users.

[0113] Specifically, for abnormal users, the SMS interface can be called according to their scores to send SMS verification codes. If the user logs in successfully using the correct SMS within the valid time, the SMS interface will not be called again the next time the user logs in within the valid time. If the login fails, the SMS interface will be called again until the number of SMS interface calls, that is, the permission value is 3 times in a row, which means that the user has not entered the correct verification code within the valid time, the login fails, the account is locked, and the abnormal user is set as a locked user, and his other operations are restricted.

[0114] Through this embodiment, different verification methods are adopted to increase the verification threshold for abnormal users, prevent machine batch operations, reduce the amount of junk data processed on the server side, and improve data processing efficiency.

[0115] It should be understood that although Figure 2-Figure 3 , Figure 5 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-Figure 3 , Figure 5 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages do not necessarily have to be executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages does not have to be sequentially, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0116] In one embodiment, Figure 6 As shown, a Neo4j-based abnormal user processing device is provided, and the Neo4j-based abnormal user processing device corresponds one-to-one with the Neo4j-based abnormal user processing method in the above embodiment. The Neo4j-based abnormal user processing device includes:

[0117] The extraction module 602 is used to extract user features from the acquired user data.

[0118] The detection module 604 is used to input the extracted user features into the Neo4j algorithm for prediction, and obtain the user groups with the same attribute labels in the user data as the abnormal user groups.

[0119] The scoring module 606 is used to score the abnormal user group based on a preset weight ratio according to the number of users in the abnormal user group, the calibration characteristics and the common characteristics. And

[0120] The processing module 608 is used to generate corresponding target tags for abnormal user groups according to the scores, and perform verification processing on the detected user groups with specific operation abnormalities according to the target tags.

[0121] It should be emphasized that in order to further ensure the privacy and security of the above user data, the above user data can also be stored in a distributed manner in the nodes of the blockchain.

[0122] Furthermore, the detection module 604 includes:

[0123] The construction submodule is used to construct a relationship network based on the association between various user characteristics through the Neo4j algorithm, where the relationship network is mainly composed of relationship nodes such as mobile phone numbers, IP addresses and device numbers.

[0124] The classification submodule is used to obtain the annotation features of the relationship nodes and classify the relationship nodes according to the annotation features to obtain blacklist nodes, whitelist nodes and unconfirmed nodes, wherein the annotation features are the initial categories of the relationship nodes.

[0125] The label submodule is used to generate attribute labels for relationship nodes, where the attribute labels include abnormal and normal.

[0126] The screening submodule is used to use the relationship nodes of mobile phone numbers and IP addresses with attribute labels as abnormal as seed nodes, obtain node paths with path lengths not greater than a first preset value from the relationship network, and obtain a node relationship graph, wherein the relationship graph includes an abnormal number relationship graph based on abnormal mobile phone number nodes and an abnormal IP relationship graph based on abnormal IP nodes.

[0127] The prediction submodule is used to perform label prediction on the unconfirmed nodes in the abnormal number relationship graph and the abnormal IP relationship graph respectively to obtain the abnormal user group.

[0128] Furthermore, the prediction submodule includes:

[0129] The comparison unit is used to compare the number of neighbor nodes whose attribute labels of the unconfirmed node are abnormal and normal, and obtain a label comparison result.

[0130] In the update unit, the user updates the attribute labels of the unconfirmed nodes according to the label comparison results.

[0131] The correction unit is used to correct the attribute labels of the relationship nodes after the attribute labels are updated according to the preset correction conditions, and repeat the attribute label comparison and update operations until the attribute labels of each unconfirmed node no longer change or the number of updates reaches a threshold, and the relationship graph after the last attribute label update is used as the graph to be predicted.

[0132] The edge breaking unit is used to disconnect abnormal edges in the graph to be predicted to obtain multiple relationship subgraphs, where an abnormal edge is an edge in which at least one of the relationship nodes in the edges directly connected to each other has a normal attribute label.

[0133] The statistical unit is used to count the attribute labels of the relationship nodes in the relationship subgraph. If the number of mobile phone numbers or IP addresses with abnormal attribute labels is greater than a second preset value, the user group corresponding to the relationship node in the relationship subgraph is regarded as an abnormal user group.

[0134] Furthermore, the prediction submodule further includes:

[0135] A comparison unit is used to compare the obtained abnormal user groups.

[0136] The merging unit is used to merge the abnormal user groups if the abnormal user group based on the abnormal mobile phone number node is the same as the abnormal user group based on the abnormal IP node to obtain a merged abnormal user group.

[0137] Furthermore, the scoring module 606 includes:

[0138] A first score submodule, used to obtain the number of users in the abnormal user group, and set a first rating score for the abnormal user group according to a first preset rating score and the number of users;

[0139] A second score submodule is used to obtain the calibrated number of abnormal users with calibrated features in the abnormal user group, and determine the second rating score of the abnormal user group according to the calculation priority of the calibrated features;

[0140] A third score submodule, used to count the total number of abnormal users with common characteristics in the abnormal user group, and determine a third rating score of the abnormal user group according to the total number and the second preset rating score;

[0141] The comprehensive score submodule is used to combine the first rating score, the second rating score and the third rating score according to a preset weight ratio to obtain a score for the abnormal user group.

[0142] Further, the processing module 608 includes:

[0143] an acquisition submodule, for acquiring a target tag of an abnormal user group to which the abnormal user belongs if a specific operation of the abnormal user is detected; and

[0144] A calling submodule, used to call the corresponding interface according to the interface call type to process the activity permissions of abnormal users; and

[0145] The locking submodule is used to determine whether the number of times the activity permissions of the abnormal user are processed exceeds the permission value, and set the abnormal user who exceeds the permission value as a locked user.

[0146] The above-mentioned Neo4j-based abnormal user processing device rates and grades abnormal users according to the number and characteristics of users in the abnormal user group, and then generates targeted tags based on the ratings and grading. When the abnormal user triggers a specific operation, different processing mechanisms are triggered according to the targeted tags, and targeted verification processing is performed on the abnormal user, thereby solving the technical problem of inaccurate processing of abnormal users in the prior art.

[0147] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store user data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for handling abnormal users based on Neo4j is implemented.

[0148] Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), digital signal processors (DSP), embedded devices, etc. By rating and grading abnormal users according to the number and characteristics of users in the abnormal user group, and then generating targeted tags according to the rating and grading, when the abnormal user triggers a specific operation, different processing mechanisms are triggered according to the targeted tag, and targeted verification processing is performed on the abnormal user, which solves the technical problem of inaccurate verification processing of abnormal users in the prior art.

[0149] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the abnormal user processing method based on Neo4j in the above embodiment are implemented, such as Figure 2Steps 202 to 208 shown, or, when the processor executes the computer program, the functions of each module / unit of the abnormal user processing device based on Neo4j in the above embodiment are implemented, for example Figure 6 The functions of modules 602 to 608 are shown. To avoid repetition, they are not described here. By rating and grading abnormal users according to the number and characteristics of users in the abnormal user group, and then generating targeted tags according to the rating and grading, when the abnormal user triggers a specific operation, different processing mechanisms are triggered according to the targeted tags, and targeted verification processing is performed on the abnormal user, thereby solving the technical problem of inaccurate verification processing of abnormal users in the prior art.

[0150] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiment can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in

[0151] In a non-volatile computer-readable storage medium, the computer program, when executed, may include the process of the embodiments of the above methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0152] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0153] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0154] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0155] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for those of ordinary skill in the art, without departing from the concept of the present application, several modifications, improvements or equivalent replacements of some technical features can be made, and these modifications or replacements do not make the essence of the same technical solution depart from the spirit and scope of the technical solution of each embodiment of the present invention, and all belong to the protection scope of the present application. Therefore, the protection scope of the patent of this application shall be subject to the attached claims.

Claims

1. A method for handling abnormal users based on Neo4j, characterized in that: The method comprises: Extract user features from the acquired user data; The extracted user features are input into the Neo4j algorithm for prediction, and a user group with the same attribute label in the user data is obtained as an abnormal user group; Based on a preset weight ratio, the abnormal user group is scored according to the number of users in the abnormal user group, the calibration characteristics and the common characteristics; Generate corresponding target tags for abnormal user groups according to the scores, and perform verification processing on the detected abnormal user groups with specific operations according to the target tags; The calibration feature includes at least one user behavior feature, and different user behavior features have different operation priorities. The scoring of the abnormal user group based on the preset weight ratio according to the number of users in the abnormal user group, the calibration feature, and the common feature includes: Acquire the number of users in the abnormal user group, and set a first rating score for the abnormal user group according to a first preset rating score and the number of users, wherein the number of users is the number of abnormal users in the abnormal user group; Acquire the calibrated number of abnormal users with the calibrated features in the abnormal user group, and determine a second rating score of the abnormal user group according to the calculation priority of the calibrated features, wherein the calculation priority indicates the priority degree of different calibrated features affecting the second rating score; Counting the total number of abnormal users with the common feature in the abnormal user group, and determining a third rating score of the abnormal user group according to the total number and a second preset rating score, wherein the total number is the number of abnormal users with the common feature in the abnormal user group; The first rating score, the second rating score and the third rating score are combined according to the preset weight ratio to obtain a score for the abnormal user group.

2. The method according to claim 1, characterized in that The user features include the user's mobile phone number, IP address, device number and the association between the user features. The extracted user features are input into the Neo4j algorithm for prediction to obtain a user group with the same attribute label in the user data as an abnormal user group, including: A relationship network based on the association relationship between the user features is constructed by using a Neo4j algorithm, wherein the relationship network is mainly composed of relationship nodes such as the mobile phone number, the IP address, and the device number; Acquire the annotation features of the relationship nodes, and classify the relationship nodes according to the annotation features to obtain blacklist nodes, whitelist nodes, and unconfirmed nodes, wherein the annotation features are initial categories of the relationship nodes; Generating an attribute label for the relationship node, wherein the attribute label includes abnormal and normal; Respectively taking the relationship nodes of the mobile phone number and IP address with the attribute label of abnormality as seed nodes, obtaining the node path with the path length not greater than the first preset value from the relationship network, and obtaining the node relationship graph, wherein the relationship graph includes an abnormal number relationship graph based on the abnormal mobile phone number node and an abnormal IP relationship graph based on the abnormal IP node; Label prediction is performed on the unconfirmed nodes in the abnormal number relationship graph and the abnormal IP relationship graph respectively to obtain the abnormal user group.

3. The method according to claim 2, characterized in that The performing label prediction on the unconfirmed nodes in the abnormal number relationship graph and the abnormal IP relationship graph respectively to obtain the abnormal user group includes: Comparing the number of neighboring nodes whose attribute labels of the unconfirmed node are abnormal and normal, and obtaining a label comparison result; Updating the attribute label of the unconfirmed node according to the label comparison result; Correct the attribute labels of the relationship nodes after the attribute labels are updated according to the preset correction conditions, and repeat the attribute label comparison and update operations until the attribute labels of each of the unconfirmed nodes no longer change or the number of updates reaches a threshold, and use the relationship graph after the last attribute label update as the graph to be predicted; Disconnecting abnormal edges in the graph to be predicted to obtain multiple relationship subgraphs, wherein the abnormal edges are edges formed by directly connecting any two relationship nodes, and at least one of the relationship nodes has a normal attribute label; The attribute labels of the relationship nodes in the relationship subgraph are counted, and if the number of mobile phone numbers or IP addresses with abnormal attribute labels is greater than a second preset value, the user group corresponding to the relationship nodes in the relationship subgraph is taken as the abnormal user group.

4. The method according to claim 3, characterized in that The step of modifying the attribute label of the relationship node after the attribute label is updated according to the preset modification condition includes: The attribute label of the mobile phone number having a first-degree relationship with the IP address in the whitelist node is set to normal, wherein the first-degree relationship refers to an association relationship between two directly connected relationship nodes.

5. The method according to claim 2, characterized in that: After the extracted user features are input into the Neo4j algorithm for prediction to obtain a user group with the same attribute label in the user data as an abnormal user group, the method further includes: The abnormal user groups obtained by comparison; If the abnormal user group based on the abnormal mobile phone number node is the same as the abnormal user group based on the abnormal IP node, the abnormal user groups are merged to obtain a merged abnormal user group.

6. The method according to claim 1, characterized in that The target tag includes an interface call type and an authority value, and the verification process of the detected abnormal user group with specific operations according to the target tag includes: If the specific operation of the abnormal user is detected, obtaining a target tag of the abnormal user group to which the abnormal user belongs; Calling a corresponding interface according to the interface call type to process the activity permissions of the abnormal user; It is determined whether the number of times the activity authority of the abnormal user is processed exceeds the authority value, and the abnormal user exceeding the authority value is set as a locked user.

7. An abnormal user processing device based on Neo4j, characterized in that: When the device is running, the steps of implementing the method according to any one of claims 1 to 6 include: An extraction module, used to extract user features from the acquired user data; A detection module is used to input the extracted user features into the Neo4j algorithm for prediction, and obtain a user group with the same attribute label in the user data as an abnormal user group; A scoring module, configured to score the abnormal user group based on a preset weight ratio according to the number of users in the abnormal user group, the calibration features and the common features; The processing module is used to generate corresponding target tags for abnormal user groups according to the scores, and to perform verification processing on the detected abnormal user groups with specific operations according to the target tags.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.