Data processing method and device
By determining matching rule sequences and generating candidate rules in the user data set, combined with pre-configured parameters for combination processing and screening, the problems of low efficiency and insufficient flexibility in rule sequence generation in the existing technology are solved, achieving more efficiency and flexibility User risk detection.
Patent Information
- Application Number
- CN202410374265.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-27
- Publication Date
- 2024-09-17
AI Technical Summary
In user risk detection in the existing technology, the exhaustive method is inefficient and the rule sequence parameters of the rule generation model are fixed, resulting in insufficient flexibility and richness of the generated rule sequence.
By determining the matching set of rule sequences in the user data set, deleting the corresponding data, generating candidate rules based on pre-configured rule generation parameters, performing rule sequence combination processing and evaluation, and filtering out the target rule sequence to improve the flexibility and efficiency of rule generation.
It improves the richness and comprehensiveness of the rule sequence, enhances the flexibility and accuracy of user risk detection, reduces the amount of data for evaluation index calculation and sequence screening, and improves the efficiency of the target rule sequence.
Smart Images

Figure CN118656397A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data processing method and device. Background Art
[0002] With the continuous iteration and development of Internet technology, the probability of risky users appearing in many scenarios has gradually increased, resulting in an increasingly urgent need for user risk detection, which can improve security and reduce losses in various aspects. In the process of user risk detection, it may be necessary to use rule sequences; currently, there are many ways to generate rule sequences, such as exhaustive methods and rule generation models, but the exhaustive method has the problem of low efficiency; the rule generation model is trained in advance, so the various parameters of the rule sequence generated by the rule generation model may be fixed, such as the number of rule sequences, etc., resulting in poor flexibility in generating rule sequences and insufficient richness of the generated rule sequences. Summary of the invention
[0003] In a first aspect, an embodiment of the present application provides a data processing method, including:
[0004] Determine, in the first user data set, user data that matches a rule sequence included in the first rule sequence set, and delete the user data from the first user data set to obtain a second user data set;
[0005] Generating rules according to the second user data set and pre-configured rule generation parameters to obtain candidate rules;
[0006] Combining the rule sequence and the candidate rules to obtain a candidate rule sequence, and calculating an evaluation index of the candidate rule sequence;
[0007] Sequence screening is performed in the candidate rule sequence according to the evaluation index to obtain a second rule sequence set, and user risk detection is performed on a target rule sequence determined based on the second rule sequence set.
[0008] It can be seen that in the embodiment of the present application, first, user data matching the rule sequence included in the first rule sequence set is determined in the first user data set, the determined user data is deleted from the first user data set to obtain a second user data set, and the second user data set and the pre-configured rule generation parameters are combined to generate rules to obtain candidate rules, so that the automation of rule generation is achieved through the introduced rule generation parameters, and the convenience of rule generation is improved. At the same time, the duplication of candidate rules is avoided by deleting the matching user data in the first user data set, and the effectiveness of the candidate rules is improved. Secondly, the candidate rules and the rule sequences included in the first rule sequence set are combined to obtain a candidate rule sequence, and an evaluation index of the candidate rule sequence is calculated. According to the evaluation index, the candidate rule sequence is ranked according to the candidate rule sequence. A second rule sequence set is filtered out from the column to perform user risk detection based on the target rule sequence determined by the second rule sequence set. In this way, candidate rules are added on the basis of the rule sequence contained in the first rule sequence set and combined with the rule sequence to increase the number of rules in the candidate rule sequence, thereby increasing the number of rules in the target rule sequence, and improving the richness and comprehensiveness of the target rule sequence. At the same time, the generation of candidate rules is flexibly controlled through rule generation parameters, thereby improving the flexibility of generating candidate rules, thereby improving the flexibility of generating target rule sequences, and, through the restriction of candidate rules by rule generation parameters, the amount of data for combined processing of rule sequences and candidate rules is reduced, thereby reducing the amount of data for calculating evaluation indicators and screening sequences, and improving the efficiency of determining target rule sequences.
[0009] In a second aspect, an embodiment of the present application provides a data processing device, including:
[0010] A user data matching module, configured to determine, in a first user data set, user data that matches a rule sequence included in a first rule sequence set, and delete the user data from the first user data set to obtain a second user data set;
[0011] A rule generation module, used to generate rules according to the second user data set and pre-configured rule generation parameters to obtain candidate rules;
[0012] A rule sequence construction module, used for combining the rule sequence and the candidate rules to obtain a candidate rule sequence, and calculating an evaluation index of the candidate rule sequence;
[0013] The sequence screening module is used to perform sequence screening in the candidate rule sequence according to the evaluation index to obtain a second rule sequence set, so as to perform user risk detection based on a target rule sequence determined based on the second rule sequence set.
[0014] In a third aspect, an embodiment of the present application provides a computer device, comprising: a processor; and a memory configured to store computer executable instructions, wherein the computer executable instructions, when executed, cause the processor to execute the data processing method described in the first aspect.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium for storing computer-executable instructions, which, when executed by a processor, implement the data processing method as described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
[0017] Figure 1 A data processing method processing flow chart provided in an embodiment of the present application;
[0018] Figure 2 A schematic diagram of a data processing process provided in an embodiment of the present application;
[0019] Figure 3 A processing flow chart of a data processing method applied to a first risk detection scenario provided in an embodiment of the present application;
[0020] Figure 4 A processing flow chart of a data processing method applied to a second risk detection scenario provided in an embodiment of the present application;
[0021] Figure 5 A schematic diagram of a data processing device provided in an embodiment of the present application;
[0022] Figure 6 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0024] This specification provides a data processing method embodiment:
[0025] At present, in the process of determining the rule sequence for user risk detection, the exhaustive method or the rule generation model is often used to generate the rule sequence, but the exhaustive method has the problem of low efficiency; the rule generation model is trained in advance, so various parameters of the rule sequence generated by the rule generation model may be fixed, such as the number of rule sequences, etc., resulting in poor flexibility in generating the rule sequence and insufficient richness of the generated rule sequence.
[0026] In view of this, the data processing method provided in this embodiment determines the user data matched by the rule sequence included in the first rule sequence set in the first user data set during the process of generating the target rule sequence for user risk detection, deletes the user data from the first user data set to obtain the second user data set, thereby avoiding duplication of candidate rules generated subsequently, and generates candidate rules according to the second user data set and pre-configured rule generation parameters, thereby automating rule generation through the rule generation parameters and improving the convenience of rule generation, and on this basis, combines the candidate rules and the rule sequence included in the first rule sequence set to obtain the candidate rule sequence, and determines the second rule sequence set in the candidate rule sequence according to the evaluation index of the candidate rule sequence. Combined, user risk detection is performed based on the target rule sequence determined based on the second rule sequence set, thereby, by adding candidate rules on the basis of the rule sequence included in the first rule sequence set, and combining them with the rule sequence to increase the number of rules in the candidate rule sequence, thereby increasing the number of rules in the target rule sequence, and improving the richness and comprehensiveness of the target rule sequence, while flexibly controlling the generation of candidate rules through rule generation parameters, improving the flexibility of generating candidate rules, and thereby improving the flexibility of generating target rule sequences, and, by limiting candidate rules through rule generation parameters, reducing the amount of data for combined processing of rule sequences and candidate rules, thereby reducing the amount of data for calculating evaluation indicators and screening sequences, and improving the efficiency of determining target rule sequences.
[0027] The data processing method provided in this embodiment can be executed by a computer device, which can be a terminal or a server. The terminal can include a mobile phone, a laptop computer, an intelligent interactive device, etc., and the server can include an independent physical server, a server cluster composed of multiple servers, or a cloud server capable of cloud computing.
[0028] Reference Figure 1 The data processing method provided in this embodiment specifically includes steps S102 to S108.
[0029] Step S102: determining user data matching a rule sequence included in a first rule sequence set in a first user data set, and deleting the user data from the first user data set to obtain a second user data set.
[0030] In this embodiment, the first user data set refers to a set consisting of one or more user data; the user data may include user resource data and user risk categories, and specifically, each user data may include one or more user resource data; the user resource data here refers to the user's resource-related data, and the first user data set may be an initial user data set; for example, the first user data set includes 120 user data, namely user data 1, user data 2, user data 3, ... user data 120, as shown in the following Table 1:
[0031]
[0032]
[0033] Table 1
[0034] In Table 1, user data 1 is "user 1, number of queries in the past month q1 times, number of overdue payments in the past year b1 times, credit card utilization rate c1, credit history r1, user risk category 1", wherein the user resource data in user data 1 is "number of queries in the past month q1 times, number of overdue payments in the past year b1 times, credit card utilization rate c1", and the user risk category is "1", "1" represents the risk category, and "0" represents the non-risk category; the user resource data and user risk categories contained in user data 2, user data 3 and other user data are similar to those in user data 1, and will not be repeated here. It can be understood that the examples of the number of user data contained in the first user data set, the user resource data contained in the user data, and the user risk category are merely illustrative, and are not specifically limited in this embodiment.
[0035] The first rule sequence set refers to a set consisting of one or more rule sequences; each rule sequence in the first rule sequence set may contain one or more rules, which may be risk detection rules; for example, the first rule sequence set contains rule sequence 1 and rule sequence 2, rule sequence 1 is {"number of queries in the past month> = q2"}, and rule sequence 2 is {"number of overdue payments in the past year> = b3"}; for another example, the first rule sequence contains rule sequence 3 and rule sequence 4, rule sequence 3 is {"number of queries in the past month> = q2", "credit card usage rate> = c20"}, and rule sequence 4 is {"number of queries in the past month> = q2", "credit history< = r2"}. Similarly, the examples for the first rule sequence set are only illustrative and are not specifically limited in this embodiment. Optionally, the first rule sequence set is the Nth rule sequence set; wherein N is a positive integer, and N≥1.
[0036] The second user data set refers to a set consisting of one or more user data; optionally, the number of user data sets of the second user data set corresponds to the number of sequences of the rule sequences included in the first rule sequence set, that is, the number of user data sets is the same as the number of sequences.
[0037] In a specific implementation, in order to avoid duplication of candidate rules generated subsequently and improve the effectiveness of the candidate rules, user data matched by each rule sequence included in the first rule sequence set may be determined in the first user data set, and the user data matched by each rule sequence may be deleted from the first user data set to obtain a second user data set corresponding to each rule sequence; for example, the first user data set includes user data 1 to user data 120, and the first rule sequence set includes rule sequence 1 and rule sequence 2. For rule sequence 1, the user data matched by rule sequence 1 in the first user data set are 20 user data, such as user data 1 and user data 3. The 20 user data are deleted from the first user data set to obtain a second user data set 1 corresponding to rule sequence 1, and the second user data set 1 includes the remaining 100 user data. For rule sequence 2, the user data matched by rule sequence 2 in the first user data set is user data 2. The user data 2 is deleted from the first user data set to obtain a second user data set 2 corresponding to rule sequence 2. The second user data set 2 includes the remaining 119 user data.
[0038] In the process of data processing, this embodiment can use beam search to avoid the problem of low efficiency of exhaustive method. Specifically, a second rule sequence set is obtained through beam search based on the first rule sequence set, and finally, after the rule generation termination condition is triggered, user risk detection can be performed based on the determined target rule sequence. Before step S102 is executed, rule parameters can be set; optionally, the rule parameters include rule generation parameters and a preset number of rules, and the rule generation parameters include a rule generation step; for example, the preset number of rules can be determined based on the beam width = 2 in the beam search, and the rule generation step can be a search step = 2%.
[0039] During the specific execution process, before step S102 is executed, the following operations may also be performed: multiple intermediate rules are generated based on the user resource data contained in the first user data set, and according to the evaluation indicators of each intermediate rule in the multiple intermediate rules, a target intermediate rule with a preset number of rules is determined in each intermediate rule, and a rule sequence set is constructed; the rule sequence set may be an initial rule sequence set, so the above operations may also be used to obtain the initial rule sequence set.
[0040] Specifically, the user resource data contained in the first user data set can be sorted according to the resource data category to obtain the sorting result under the resource data category, the specific user resource data can be determined in the sorting result under the resource data category according to the rule generation parameters, and multiple intermediate rules under the resource data category can be generated according to the specific user resource data, and the target intermediate rules with a preset number of rules can be determined in each intermediate rule according to the evaluation indicators of each intermediate rule, and a rule sequence set can be constructed.
[0041] Among them, the resource data categories include data categories of user resource data, for example, the resource data categories include the number of inquiries in the past month, the number of overdue payments in the past year, the credit card utilization rate, and the credit history.
[0042] For example, the user resource data - number of queries within the past month q1 to q120 contained in the first user data set are sorted according to the resource data category - number of queries within the past month, and a second sorting result under the resource data category is obtained: number of queries within the past month q2, number of queries within the past month q3, number of queries within the past month q1..., and the specific user resource data - number of queries within the past month q20 and number of queries within the past month q2 in the second sorting result are determined according to the rule generation parameters, and the resource data category - "number of queries within the past month" in the specific user resource data is extracted as the rule condition, and the resource data values q20 and q2 in the specific user resource data are extracted as the rule threshold, and multiple intermediate rules under the resource data category - number of queries within the past month are generated according to the rule condition and the rule threshold, namely "number of queries within the past month <= q20", "number of queries within the past month >= q2"; by calculating the evaluation index of each of the multiple intermediate rules under all resource data categories, a target intermediate rule with a preset number of rules is determined in each intermediate rule, and a rule sequence set is constructed.
[0043] It should be noted that the specific implementation process of generating multiple intermediate rules based on the user resource data contained in the first user data set, determining the target intermediate rules with a preset number of rules in each intermediate rule according to the evaluation indicators of each intermediate rule in the multiple intermediate rules, and constructing a rule sequence set is similar to the following process of generating rules according to the second user data set and pre-configured rule generation parameters to obtain candidate rules, and performing sequence screening in the candidate rule sequence according to the evaluation indicators of the candidate rule sequence to obtain the second rule sequence set, and can refer to the following specific instructions.
[0044] Step S104: Generate rules according to the second user data set and pre-configured rule generation parameters to obtain candidate rules.
[0045] In the above, user data matching the rule sequence included in the first rule sequence set is determined in the first user data set, and the user data is deleted from the first user data set to obtain the second user data set. In this step, candidate rules are generated according to the second user data set and pre-configured rule generation parameters.
[0046] The rule generation parameters in this embodiment include the rule generation step length, for example, the rule generation step length can be the search step length in the beam search = 2%. The candidate rule refers to a candidate risk detection rule; the candidate rule includes multiple candidate rules, for example, the candidate rule includes the number of queries within the past month <= q20, the number of queries within the past month >= qn, the credit card usage rate <= c1, and the credit card usage rate >= c3.
[0047] In actual applications, risky users often have extreme values in certain resource data, such as a high number of overdue payments and a high credit card usage rate. In view of this, in the process of rule generation, rules can be generated according to the end values of user resource data, so as to improve the detection accuracy of user risk detection in actual scenarios; in an optional implementation manner provided by this embodiment, in the process of generating rules according to the second user data set and pre-configured rule generation parameters to obtain candidate rules, the following operations are performed:
[0048] Sorting the user resource data contained in the second user data set to obtain a sorting result;
[0049] The target user resource data is determined in the sorting result according to the rule generation parameter, and the candidate rule is generated according to the target user resource data.
[0050] Specifically, in the process of sorting the user resource data included in the second user data set to obtain the sorting result, the user resource data included in the second user data set may be sorted according to the resource data category to obtain the sorting result under the resource data category.
[0051] Using the above example, the second user data set 1 contains the remaining 100 user data, and the second user data set 2 contains the remaining 119 user data. Taking the second user data set 1 as an example, the number of queries in the past month in the second user data set 1 is sorted to obtain sorting result 1: number of queries in the past month q6, number of queries in the past month q2..., the number of overdue payments in the past year in the second user data set 1 is sorted to obtain sorting result 2: number of overdue payments in the past year b6, number of overdue payments in the past year b15..., the credit card utilization rate, credit history in the second user data set 1 and the sorting process of the second user data set 2 are similar to those of the second user data set 1, and are not repeated here.
[0052] On this basis, since risky users often have extreme values in certain resource data, in order to obtain rules that are more in line with user risk detection needs so that the rules can screen out risky users, the target user resource data can be determined by the end value of the rule generation parameter in the sorting result; in an optional implementation provided by this embodiment, in the process of determining the target user resource data in the sorting result according to the rule generation parameter, the following operations are performed:
[0053] Calculate the screening ranking according to the rule generation parameter and the data quantity of the user resource data;
[0054] The user resource data corresponding to the screening ranking is screened out from the sorting result as the target user resource data.
[0055] The number of user resource data refers to the number of user resource data under the resource data category contained in the second user data set, such as the number of queries in the second user data set in the past month; the number of user resource data can also be determined based on the number of user data contained in the second user data set. The screening ranking includes the ranking of the target user resource data in the sorting result, that is, the ranking of the target user resource data in the sorting result.
[0056] Furthermore, in an optional implementation manner provided by this embodiment, in the process of calculating the screening ranking according to the rule generation parameter and the data number of the user resource data, in order to further fit the end value performance of high-risk users, the first screening ranking and the second screening ranking may be determined at both ends of the sorting result of the user resource data included in the second user data set to improve the comprehensiveness of the screening ranking, and specifically the following operations may be performed:
[0057] Calculating a first product of the rule generation parameter and the number of data as a first screening rank;
[0058] The difference between the preset value and the rule generation parameter is calculated, and a second product of the difference and the number of data is calculated as a second screening rank.
[0059] The first screening rank and the second screening rank can be used as the screening rank. The preset value refers to a preset value, and the preset value can be 1.
[0060] Specifically, in the above process of filtering out user resource data corresponding to the filtering position in the sorting results as target user resource data, the first user resource data corresponding to the first filtering position and the second user resource data corresponding to the second filtering position can be filtered out in the sorting results, and the first user resource data and the second user resource data are used as target user resource data.
[0061] For example, the rule generation parameter is a search step of 2%, and the first product of the search step of 2% and the number of data of the number of queries in the past month (100) = 2 is calculated as the first screening rank, and the difference between the preset value "1" and the search step of 2% = 98% is calculated, and the second product of the difference and the number of data of the number of queries in the past month (100) = 98 is calculated as the second screening rank, and the first user resource data "number of queries in the past month q2" corresponding to the first screening rank and the second user resource data "number of screenings in the past month qx" corresponding to the second screening rank are screened out in the sorting results; in this way, the user resource data whose resource data values in the user resource data are represented as end values are screened out through the rule generation parameters, and the candidate rules are quickly and efficiently generated through the two end percentiles, so that the generated candidate rules can better promote the advancement of user risk detection.
[0062] After the target user resource data is determined in the sorting result according to the rule generation parameters, in order to improve the flexibility and convenience of rule generation, in an optional implementation manner provided by this embodiment, in the process of generating candidate rules according to the target user resource data, the following operations are performed:
[0063] Extracting the resource data category in the target user resource data as a rule condition, and extracting the resource data value in the target user resource data as a rule threshold;
[0064] According to the screening rank corresponding to the target user resource data, the connection relationship between the rule condition and the rule threshold is determined, and the rule condition and the rule threshold are connected according to the connection relationship to obtain the candidate rule.
[0065] The rule condition refers to the part of the rule that serves as a condition or content, and the rule threshold refers to the part of the rule that serves as a threshold, for example, in "number of queries in the past month <= q20", "number of queries in the past month" is the rule condition, and "q20" is the rule threshold. The connection relationship includes a greater than or equal relationship or a less than or equal relationship.
[0066] Specifically, in the process of extracting the resource data category in the target user resource data as the rule condition, and extracting the resource data value in the target user resource data as the rule threshold, the resource data category in the first user resource data can be extracted as the rule condition, and the resource data value corresponding to the resource data category in the first user resource data can be extracted as the rule threshold, and according to the screening rank corresponding to the first user resource data, the first connection relationship between the rule condition and the rule threshold is determined, and the rule condition and the rule threshold are connected according to the first connection relationship to obtain the candidate rule corresponding to the first user resource data, and similarly to the processing process of the first user resource data, the candidate rule corresponding to the second user resource data is obtained.
[0067] Continuing with the above example, the target user resource data is the first user resource data "number of queries in the past month q2" and the second user resource data "number of screenings in the past month qx". The resource data category "number of queries in the past month only" in the first user resource data is extracted as the rule condition, and the resource data value "q2" corresponding to the resource data category in the first user resource data is extracted as the rule threshold. Therefore, in order to make the rule reflect the end value of the resource data, according to the screening rank "2" corresponding to the first user resource data, the connection relationship between the rule condition and the rule threshold is determined to be "<=", and the rule condition and the rule threshold are connected according to the connection relationship to obtain the candidate rule corresponding to the first user resource data "number of queries in the past month <= q2". Similar to the first user resource data, the candidate rule corresponding to the second user resource data "number of queries in the past month >= qx" is obtained.
[0068] Step S106: Combining the rule sequence and the candidate rule to obtain a candidate rule sequence, and calculating an evaluation index of the candidate rule sequence.
[0069] The candidate rules are generated according to the second user data set and the pre-configured rule generation parameters. There may be multiple candidate rules. In this step, in order to further improve the rule richness of the rule sequence set and realize the refinement of rule generation, the rule sequence and the candidate rules may be combined to obtain the candidate rule sequence, and the evaluation index of the candidate rule sequence may be calculated, so as to select a more appropriate rule sequence by evaluating the candidate rule sequence.
[0070] The candidate rule sequence in this embodiment refers to a candidate rule sequence composed of each rule sequence and candidate rules included in the first rule sequence set. The evaluation index of the candidate rule sequence includes an index for measuring the pros and cons of the candidate rule sequence, such as the evaluation index can be lift, F-score (evaluation index, including precision and recall).
[0071] In specific implementation, each rule sequence included in the first rule sequence set can be combined with the candidate rules one by one to obtain each candidate rule sequence; for example, the rule sequences included in the first rule sequence set are rule sequence 1 and rule sequence 2, and the candidate rules include candidate rule 1, candidate rule 2, candidate rule 3…candidate rule n. Rule sequence 1 and rule sequence 2 are combined with each candidate rule one by one respectively to obtain each candidate rule sequence: “rule sequence 1, candidate rule 1”, “rule sequence 1, candidate rule 2”… “rule sequence 1, candidate rule n”, “rule sequence 2, candidate rule 1”, “rule sequence 2, candidate rule 2”… “rule sequence 2, candidate rule n”.
[0072] In practical applications, each rule in the candidate rule sequence may have a high degree of correlation or a low degree of correlation, that is, although each rule in the candidate rule sequence is generated by the two end percentile method, the effectiveness of the candidate rule sequence composed of each rule is still different, so the candidate rule sequence can be evaluated by the evaluation index of the candidate rule sequence to screen the sequence from the candidate rule sequence; in an optional implementation manner provided by this embodiment, in the process of calculating the evaluation index of the candidate rule sequence, the rule evaluation index of the candidate rule sequence can be calculated according to the first number of target user data matched by the candidate rule sequence in the first user data set, the second number of risky user data in the target user data, and the total number of user data in the first user data set. Specifically, the following operations can be performed:
[0073] Determine target user data matched by the candidate rule sequence in the first user data set and a first number of the target user data;
[0074] determining, according to the user risk category included in the target user data, a second number of risky user data in the target user data;
[0075] A rule evaluation index of the candidate rule sequence is calculated according to the first number, the second number, and the total number of user data in the first user data set.
[0076] The risky user data includes target user data whose user risk category is a risk category in the target user data.
[0077] Specifically, the target user data matched by the candidate rule sequence in the first user data set and the first number of the target user data can be determined, the second number of the target user data whose user risk category is the risk category in the target user data can be calculated, the risk category ratio can be calculated based on the second number and the first number, and the rule matching ratio can be calculated based on the first number and the total number of user data, and the improvement of the candidate rule sequence can be calculated based on the risk category ratio and the rule matching ratio.
[0078] For example, the candidate rule sequences include “rule sequence 1, candidate rule 1”, “rule sequence 1, candidate rule 2”… “rule sequence 1, candidate rule n”, “rule sequence 2, candidate rule 1”, “rule sequence 2, candidate rule 2”… “rule sequence 2, candidate rule n”. In the process of calculating the evaluation index of the candidate rule sequence, the evaluation index of each candidate rule sequence can be calculated. Taking “rule sequence 1, candidate rule 1” as an example, the target user data “user data 11, user data 21…” matched by “rule sequence 1, candidate rule 1” in the first user data set and the first number of target user data are determined, the second number of target user data with user risk category “1” in the target user data is calculated, the ratio of the second number to the first number is calculated as the risk category proportion, the ratio of the first number to the total number of user data in the first user data set is calculated as the rule matching proportion, and the ratio of the risk category proportion to the rule matching proportion is calculated as the lift of “rule sequence 1, candidate rule 1”. The calculation process of the lift of other candidate rule sequences is similar and will not be repeated here.
[0079] Step S108: screening the candidate rule sequences according to the evaluation index to obtain a second rule sequence set, and performing user risk detection based on a target rule sequence determined based on the second rule sequence set.
[0080] The above-mentioned candidate rule sequence is constructed based on the candidate rules and the rule sequence included in the first rule sequence set, and the evaluation index of the candidate rule sequence is calculated. In this step, based on the evaluation index of the candidate rule sequence, sequence screening is performed in the candidate rule sequence to obtain the second rule sequence set, and user risk detection is performed based on the target rule sequence determined based on the second rule sequence set.
[0081] Optionally, the number of rule sequences of the second rule sequence set corresponds to the number of rule sequences of the first rule sequence set, and the number of user data sets of the second user data set corresponds to the number of rule sequences of the second rule sequence set and the number of rule sequences of the first rule sequence set. For example, if the number of user data sets of the second user data set is 2, the number of rule sequences of the first rule sequence set is 2, and the number of rule sequences of the second rule sequence set is also 2. The number of rules of the rule sequences included in the second rule sequence set is increased by 1 compared with the number of rules of the rule sequences included in the first rule sequence set. Optionally, the second rule sequence set is the N+1th rule sequence set.
[0082] The target rule sequence refers to a rule sequence used for user risk detection; the target rule sequence may be one rule sequence or multiple rule sequences.
[0083] During the specific implementation process, each candidate rule sequence may be sorted according to the evaluation index, and according to the preset number of rules, the candidate rule sequences whose sorting positions are before the preset position may be screened out in the sorting result, and the screened candidate rule sequences may be combined to obtain a second rule sequence set; or, each candidate rule sequence may be sorted according to the evaluation index, and the candidate rule sequences whose sorting positions are before the preset position may be screened out in the sorting result, and the screened candidate rule sequences may be combined to obtain a second rule sequence set.
[0084] Using the above example, the lifts of the candidate rule sequences "rule sequence 1, candidate rule 1", "rule sequence 1, candidate rule 2" ... "rule sequence 1, candidate rule n", "rule sequence 2, candidate rule 1", "rule sequence 2, candidate rule 2" ... "rule sequence 2, candidate rule n" are calculated, and the candidate rule sequences are sorted in descending order according to the lifts to obtain a descending sorting result. The top two candidate rule sequences are screened out in the descending sorting result according to the beam width "2". Assuming that "rule sequence 1, candidate rule 2" and "rule sequence 2, candidate rule n" are screened out, the screened candidate rule sequences are combined to obtain a second rule sequence set "rule sequence 1, candidate rule 2" and "rule sequence 2, candidate rule n". Since the rules are all generated in percentile mode, they have a unified measurement standard, and the candidate rule sequences can be easily compared, so that the candidate rule sequences that meet the requirements are selected to form the second rule sequence set.
[0085] In practical applications, there may be a need to flexibly control the number of rules in the target rule sequence for user risk detection. In order to improve the flexibility and convenience of determining the target rule sequence, in an optional implementation manner provided in this embodiment, the target rule sequence is determined in the following manner:
[0086] Detecting whether a rule generation termination condition of the second rule sequence set is triggered;
[0087] If triggered, the rule sequences included in the second rule sequence set are sorted according to the evaluation index of each rule sequence, and the rule sequence whose sorting position is before the preset position in the sorting result is determined as the target rule sequence.
[0088] The rule generation termination condition includes a condition for terminating the generation of a rule sequence set. The rule generation termination condition may be that the number of generation times reaches a preset number of generation times. In addition, the rule generation termination condition may also be that the matching index of the second rule sequence set for the first user data set exceeds a preset index threshold. The matching index may be the user data matching degree of the rule sequence included in the second rule sequence set for the first user data set. The number of generation times may be the number of times a new rule sequence set is generated. For example, after the second rule sequence set is generated, the third rule sequence set is subsequently generated, and the number of generation times is 2.
[0089] Specifically, it can be detected whether the rule generation termination condition of the second rule sequence set is triggered; if triggered, then sort each rule sequence according to the improvement degree of each rule sequence included in the second rule sequence set, and determine the rule sequence whose sorting position is before the preset position in the sorting result as the target rule sequence; if not triggered, then update the first rule sequence set according to the second rule sequence set, that is, replace the first rule sequence set in steps S102 to S108 with the second rule sequence set, and return to execute steps S102 to S108.
[0090] In actual application scenarios, after obtaining the target rule sequence, user risk detection can be performed based on the target rule sequence, and risk data can be identified through user risk detection to improve security. For example, in a loan application scenario, user resource data can be obtained, and the target rule sequence can be used to identify whether the user resource data is risk data, so as to help the loan provider identify risk data and reduce the loan provider's capital loss. For example, in a loan warning scenario, by identifying whether the user resource data is risk data, the loan provider can respond in time and stop losses in time when the user resource data is risk data, thereby improving the security of loan applications, etc. In an optional implementation manner provided by this embodiment, in the process of performing user risk detection based on the target rule sequence determined by the second rule sequence set, the following operations are performed:
[0091] Inputting user resource data into the target rule sequence for rule matching processing;
[0092] If the user resource data successfully matches at least one rule in the target rule sequence, determining that the user resource data is risk data;
[0093] If the user resource data fails to match any of the rules in the target rule sequence, the user resource data is determined to be non-risk data.
[0094] It should be added that the examples of the first user data set, the second user data set, the first rule sequence set, the candidate rules, the candidate rule sequence, the second rule sequence set, etc. in the present embodiment are merely illustrative, and are intended to more clearly illustrate the entire process of generating the target rule sequence. In actual applications, the data volumes of the first user data set, the second user data set, the candidate rules, and the candidate rule sequence may be large, and the number of rule sequences in the first rule sequence set and the second rule sequence set is not fixed. Therefore, the first user data set, the second user data set, the first rule sequence set, the candidate rules, the candidate rule sequence, the second rule sequence set, etc. may be determined according to the actual application scenario.
[0095] It should also be added that the data processing method provided in the present embodiment can be executed only once, that is, there is no loop process. In the absence of a loop process, the first rule sequence set can be an initial rule sequence set, and the second rule sequence set can be a rule sequence set obtained after rule generation, rule combination processing and sequence screening of the initial rule sequence set, so as to improve the efficiency of determining the target rule sequence. In addition, the data processing method provided in the present embodiment can also be executed multiple times, that is, there is a loop process. In the presence of a loop process, the data processing method provided in the present embodiment can represent the execution process of the Nth loop, the first rule sequence set can be the Nth rule sequence set, that is, the Nth rule sequence set, and the second rule sequence set can be the N+1th rule sequence set, that is, the N+1th rule sequence set. The loop can be looped only once or multiple times. In the case of only looping once, N can be equal to 1, and the Nth rule sequence set can be the initial rule sequence set; in the case of multiple loops, N can be greater than 1. In this case, the previous The N-1th, N-2th, and other loops may also be looped in a manner similar to the data processing method provided in the present embodiment. For example, looping is performed on the basis of the N-1th rule sequence set to obtain the Nth rule sequence set. The subsequent N+1th, N+2th, and other loops may also be looped in a manner similar to the data processing method provided in the present embodiment. For example, looping is performed on the basis of the N+1th rule sequence set to obtain the N+2th rule sequence set, until the rule generation termination condition of a certain rule sequence set is triggered, and the target rule sequence is determined in the rule sequence set to perform user risk detection. In this way, the number of rules in the candidate rule sequence is gradually increased through the execution process of the loop, and the number of rules of each rule sequence in the rule sequence set is continuously increased, thereby improving the richness and comprehensiveness of the target rule sequence. At the same time, the accuracy and effectiveness of the determined target rule sequence are improved through the loop. The number of rules of each rule sequence in the second rule sequence set can be flexibly controlled by the introduced rule generation termination condition, thereby improving the convenience and flexibility of determining the target rule sequence.
[0096] The above-mentioned Nth rule sequence set can be the initial rule sequence set, or it can be any rule sequence set after the initial rule sequence set, and the initial rule sequence set can be obtained by sorting the user resource data contained in the user data set according to the resource data category to obtain the sorting result under the resource data category, determining the specific user resource data in the sorting result under the resource data category according to the rule generation parameters, and generating multiple intermediate rules under the resource data category according to the specific user resource data, determining the target intermediate rule with a preset number of rules in each intermediate rule according to the evaluation index of each intermediate rule, and constructing the rule sequence set based on the target intermediate rule.
[0097] In order to improve the flexibility of determining the target rule sequence, this embodiment first determines the user data that matches the rule sequence included in the first rule sequence set in the first user data set, deletes the user data from the first user data set to obtain a second user data set, and then sorts the user resource data included in the second user data set to obtain a sorting result. According to the pre-configured rule generation parameters and the number of user resource data included in the second user data set, the screening rank is calculated, the target user resource data is screened out in the sorting result according to the screening rank, the resource data category in the target user resource data is extracted as the rule condition, and the resource data value in the target user resource data is extracted as the rule threshold, and the connection relationship between the rule condition and the rule threshold is determined according to the screening rank corresponding to the target user resource data, and the rule condition and the rule threshold are connected according to the connection relationship to obtain candidate rules, so as to screen out the ones that better meet the risk detection requirements through the rule generation parameters. The target user resource data is used to generate candidate rules that are more in line with the risk detection requirements. Finally, the rule sequence and the candidate rules are combined to obtain the candidate rule sequence, and the evaluation index of the candidate rule sequence is calculated. The sequence is screened in the candidate rule sequence according to the evaluation index to obtain the second rule sequence set. In this way, on the basis of the rule sequence contained in the first rule sequence set, the candidate rules are added to the rule sequence for combination to increase the number of rules in the candidate rule sequence, thereby increasing the number of rules in the target rule sequence, and improving the richness and comprehensiveness of the target rule sequence. At the same time, the generation of candidate rules is flexibly controlled through the rule generation parameters, and the flexibility of generating candidate rules is improved, thereby improving the flexibility of generating the target rule sequence. In addition, the restriction of the candidate rules by the rule generation parameters is used to reduce the amount of data for combining the rule sequence and the candidate rules, thereby reducing the amount of data for calculating the evaluation index and screening the sequence, and improving the efficiency of determining the target rule sequence.
[0098] The following uses the application of a data processing method provided in this embodiment in the first risk detection scenario as an example, combined with Figure 2 and Figure 3 For further explanation of the data processing method applied to the first risk detection scenario provided in this embodiment, see Figure 3 , the data processing method applied to the first risk detection scenario specifically includes the following steps.
[0099] Step S302: determining, in the first user data set, user data that matches a rule sequence included in a first rule sequence set.
[0100] Step S304: Delete the user data from the first user data set to obtain a second user data set.
[0101] Step S306: sorting the user resource data included in the second user data set according to the resource data category to obtain a sorting result under the resource data category.
[0102] Step S308 , calculating a screening rank based on the pre-configured rule generation parameters and the number of user resource data included in the second user data set, and screening out the target user resource data in the sorting result according to the screening rank.
[0103] Step S310 , extracting the resource data category in the target user resource data as a rule condition, and extracting the resource data value in the target user resource data as a rule threshold.
[0104] Step S312, determining the connection relationship between the rule condition and the rule threshold according to the screening rank corresponding to the target user resource data, connecting the rule condition and the rule threshold according to the connection relationship to obtain candidate rules, and combining the rule sequence and the candidate rules to obtain a candidate rule sequence.
[0105] like Figure 2 As shown, user data matching of the rule sequence included in the first rule sequence set is performed in the first user data set, user data matching the rule sequence is deleted from the first user data set to obtain a second user data set, candidate rules are generated according to the second user data set and the rule generation parameters, and the rule sequence and the candidate rules are combined to obtain a candidate rule sequence. Steps S302 to S312 are as follows: Figure 2 Optional implementation steps of the execution process involved.
[0106] Step S314, determining the target user data matched by the candidate rule sequence in the first user data set and the first number of the target user data, and determining the second number of risky user data in the target user data according to the user risk category included in the target user data.
[0107] Step S316: Calculate a rule evaluation index of the candidate rule sequence according to the first number, the second number, and the total number of user data in the first user data set.
[0108] Step S318, screening the candidate rule sequences according to the rule evaluation index to obtain a second rule sequence set, and detecting whether the rule generation termination condition of the second rule sequence set is triggered;
[0109] If not triggered, update the first rule sequence set according to the second rule sequence set, and return to step S302;
[0110] If triggered, execute the following step S320.
[0111] Step S320, sorting each rule sequence according to the evaluation index of each rule sequence included in the second rule sequence set, determining the rule sequence whose sorting position is before the preset position in the sorting result as the target rule sequence to perform user risk detection based on the target rule sequence.
[0112] like Figure 2 As shown, after obtaining the candidate rule sequence, the candidate rule sequence is screened by the evaluation index of the candidate rule sequence to obtain the second rule sequence set. Steps S314 to S316 are optional implementation steps for calculating the evaluation index of the candidate rule sequence. After that, it is detected whether the rule generation termination condition of the second rule sequence set is triggered. If it is triggered, the target rule sequence is determined in the second rule sequence set to perform user risk detection. If it is not triggered, the first rule sequence set is updated according to the second rule sequence set, and the above process is repeated until the target rule sequence is determined to be obtained, and user risk detection is performed through the target rule sequence.
[0113] It should be noted that any one of steps S302 to S320 or any combination of multiple steps can be replaced by the corresponding technical means provided in the above steps S102 to S108 according to the needs of implementation and deployment, and will not be described one by one here.
[0114] The following uses the application of a data processing method provided in this embodiment in the second risk detection scenario as an example. Figure 4 For further explanation of the data processing method applied to the second risk detection scenario provided in this embodiment, see Figure 4 , the data processing method applied to the second risk detection scenario specifically includes the following steps.
[0115] This embodiment can be executed only once during the process of rule processing, that is, there is no loop process. In addition, this embodiment can also be executed multiple times during the process of rule processing, that is, there is a loop process. When there is a loop process, it can represent the execution process of the Nth loop, and specifically, it can be looped only once, that is, N=1, and the Nth rule sequence set can be the initial rule sequence set; in addition, it can be looped multiple times. When it is looped multiple times, N>1, which can represent any loop process in the multiple loops.
[0116] Step S402: determine user data that matches the rule sequence included in the Nth rule sequence set in the user data set, delete the user data from the user data set, and obtain the Nth user data set.
[0117] If there are multiple loop processes, the previous N-1th, N-2th, ... loops can also use an execution process similar to step S402 to step S420 to process data. For example, starting from the N-1th rule sequence set, a loop is performed using an execution process similar to step S402 to step S420 to obtain the Nth rule sequence set.
[0118] Step S404: sorting the user resource data included in the Nth user data set to obtain a sorting result.
[0119] Step S406, calculate the first product of the pre-configured rule generation parameter and the number of data of the user resource data as the first screening rank, calculate the difference between the preset value and the rule generation parameter, and calculate the second product of the difference and the number of data as the second screening rank.
[0120] Step S408, filtering out the first user resource data corresponding to the first filtering rank and the second user resource data corresponding to the second filtering rank in the sorting results, and taking the first user resource data and the second user resource data as target user resource data.
[0121] Step S410: extracting the resource data category in the target user resource data as a rule condition, and extracting the resource data value in the target user resource data as a rule threshold.
[0122] Step S412: determining the connection relationship between the rule condition and the rule threshold according to the screening rank corresponding to the target user resource data, and connecting the rule condition and the rule threshold according to the connection relationship to obtain a candidate rule.
[0123] Step S414: Combine the rule sequence and the candidate rules to obtain a candidate rule sequence.
[0124] Step S416, calculating the evaluation index of the candidate rule sequence, and screening the candidate rule sequence according to the evaluation index to obtain the N+1th rule sequence set.
[0125] Step S418, detecting whether the rule generation termination condition of the N+1th rule sequence set is triggered;
[0126] If not triggered, the Nth rule sequence set is updated based on the N+1th rule sequence set, and the process returns to step S402 ; if triggered, the process executes the following step S420 .
[0127] Step S420, sorting each rule sequence according to the evaluation index of each rule sequence included in the N+1th rule sequence set, determining the rule sequence whose sorting position is before the preset position in the sorting result as the target rule sequence to perform user risk detection based on the target rule sequence.
[0128] If there are multiple loop processes, the subsequent N+1th, N+2th, ... loops may also use an execution process similar to step S402 to step S420 to process data. For example, starting from the N+1th rule sequence set, a loop may be performed using an execution process similar to step S402 to step S420 to obtain the N+2th rule sequence set.
[0129] It should be noted that any one of steps S402 to S420 or any combination of multiple steps can be replaced by the corresponding technical means provided in the above steps S102 to S108 according to the needs of implementation and deployment, and will not be described one by one here.
[0130] An embodiment of a data processing device provided in this specification is as follows:
[0131] In the above-mentioned embodiment, a data processing method is provided, and correspondingly, a data processing device is also provided, which will be described below with reference to the accompanying drawings.
[0132] Reference Figure 5 , which shows a schematic diagram of a data processing device provided by this embodiment.
[0133] Since the device embodiment corresponds to the method embodiment, the description is relatively simple, and the relevant parts can refer to the corresponding description of the method embodiment provided above. The device embodiment described below is only illustrative.
[0134] This embodiment provides a data processing device, the device comprising:
[0135] A user data matching module 502, configured to determine user data matching a rule sequence included in a first rule sequence set in a first user data set, and delete the user data from the first user data set to obtain a second user data set;
[0136] A rule generation module 504, configured to generate rules according to the second user data set and pre-configured rule generation parameters to obtain candidate rules;
[0137] A combination processing module 506, used for combining the rule sequence and the candidate rule to obtain a candidate rule sequence, and calculating an evaluation index of the candidate rule sequence;
[0138] The sequence screening module 508 is used to screen the candidate rule sequences according to the evaluation index to obtain a second rule sequence set, and perform user risk detection based on a target rule sequence determined by the second rule sequence set.
[0139] Each module in the above-mentioned data processing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module in the above-mentioned data processing device can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0140] An embodiment of a computer device provided in this specification is as follows:
[0141] Corresponding to the data processing method described above, based on the same technical concept, an embodiment of the present application further provides a computer device, which is used to execute the data processing method provided above. Figure 6 A schematic diagram of the structure of a computer device provided in an embodiment of the present application.
[0142] This embodiment provides a computer device, including:
[0143] like Figure 6As shown, the computer device may have relatively large differences due to different configurations or performances, and may include one or more processors 601 and memory 602, and the memory 602 may store one or more storage applications or data. Among them, the memory 602 can be a short-term storage or a persistent storage. The application stored in the memory 602 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the computer device. Furthermore, the processor 601 can be configured to communicate with the memory 602 to execute a series of computer executable instructions in the memory 602 on the computer device. The computer device may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input / output interfaces 605, one or more keyboards 606, etc.
[0144] In a specific embodiment, a computer device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions in the computer device, and the one or more programs configured to be executed by one or more processors include computer executable instructions for performing the following:
[0145] Determine, in the first user data set, user data that matches a rule sequence included in the first rule sequence set, and delete the user data from the first user data set to obtain a second user data set;
[0146] Generating rules according to the second user data set and pre-configured rule generation parameters to obtain candidate rules;
[0147] Combining the rule sequence and the candidate rules to obtain a candidate rule sequence, and calculating an evaluation index of the candidate rule sequence;
[0148] Sequence screening is performed in the candidate rule sequence according to the evaluation index to obtain a second rule sequence set, and user risk detection is performed on a target rule sequence determined based on the second rule sequence set.
[0149] An embodiment of a computer-readable storage medium provided in this specification is as follows:
[0150] Corresponding to the data processing method described above, based on the same technical concept, an embodiment of the present application also provides a computer-readable storage medium.
[0151] The computer-readable storage medium provided in this embodiment is used to store computer-executable instructions, and the computer-executable instructions implement the following process when executed by a processor:
[0152] Determine, in the first user data set, user data that matches a rule sequence included in the first rule sequence set, and delete the user data from the first user data set to obtain a second user data set;
[0153] Generating rules according to the second user data set and pre-configured rule generation parameters to obtain candidate rules;
[0154] Combining the rule sequence and the candidate rules to obtain a candidate rule sequence, and calculating an evaluation index of the candidate rule sequence;
[0155] Sequence screening is performed in the candidate rule sequence according to the evaluation index to obtain a second rule sequence set, and user risk detection is performed on a target rule sequence determined based on the second rule sequence set.
[0156] It should be noted that an embodiment of a computer-readable storage medium in this specification and an embodiment of a data processing method in this specification are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the aforementioned corresponding method, and the repeated parts will not be repeated.
[0157] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0158] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the embodiments of the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may adopt the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0159] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable test equipment to produce a machine, so that the instructions executed by the processor of the computer or other programmable test equipment generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0160] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable test equipment to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, the instruction device being implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0161] These computer program instructions may also be loaded onto a computer or other programmable test device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0162] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0163] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0164] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0165] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0166] Embodiments of the present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0167] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0168] The above description is only an embodiment of this document and is not intended to limit this document. For those skilled in the art, this document may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this document should be included in the scope of the claims of this document.
Claims
1. A data processing method, characterized in that: The method comprises: Determine, in the first user data set, user data that matches a rule sequence included in the first rule sequence set, and delete the user data from the first user data set to obtain a second user data set; Generating rules according to the second user data set and pre-configured rule generation parameters to obtain candidate rules; Combining the rule sequence and the candidate rules to obtain a candidate rule sequence, and calculating an evaluation index of the candidate rule sequence; Sequence screening is performed in the candidate rule sequence according to the evaluation index to obtain a second rule sequence set, and user risk detection is performed on a target rule sequence determined based on the second rule sequence set.
2. The method according to claim 1, characterized in that Generating rules according to the second user data set and pre-configured rule generation parameters to obtain candidate rules includes: Sorting the user resource data contained in the second user data set to obtain a sorting result; The target user resource data is determined in the sorting result according to the rule generation parameter, and the candidate rule is generated according to the target user resource data.
3. The method according to claim 2, characterized in that The step of generating parameters according to the rule and determining target user resource data in the sorting result includes: Calculate the screening ranking according to the rule generation parameter and the data quantity of the user resource data; The user resource data corresponding to the screening ranking is screened out from the sorting result as the target user resource data.
4. The method according to claim 3, characterized in that The step of calculating the screening ranking according to the rule generation parameter and the data quantity of the user resource data comprises: Calculating a first product of the rule generation parameter and the number of data as a first screening rank; The difference between the preset value and the rule generation parameter is calculated, and a second product of the difference and the number of data is calculated as a second screening rank.
5. The method according to claim 2, characterized in that: The generating the candidate rule according to the target user resource data comprises: Extracting the resource data category in the target user resource data as a rule condition, and extracting the resource data value in the target user resource data as a rule threshold; According to the screening rank corresponding to the target user resource data, the connection relationship between the rule condition and the rule threshold is determined, and the rule condition and the rule threshold are connected according to the connection relationship to obtain the candidate rule.
6. The method according to claim 1, characterized in that The calculating the evaluation index of the candidate rule sequence includes: Determine target user data matched by the candidate rule sequence in the first user data set and a first number of the target user data; determining, according to the user risk category included in the target user data, a second number of risky user data in the target user data; A rule evaluation index of the candidate rule sequence is calculated according to the first number, the second number, and the total number of user data in the first user data set.
7. The method according to claim 1, characterized in that The target rule sequence is determined in the following way: Detecting whether a rule generation termination condition of the second rule sequence set is triggered; If triggered, the rule sequences included in the second rule sequence set are sorted according to the evaluation index of each rule sequence, and the rule sequence whose sorting position is before the preset position in the sorting result is determined as the target rule sequence.
8. The method according to claim 1, characterized in that The performing user risk detection based on the target rule sequence determined based on the second rule sequence set includes: Inputting user resource data into the target rule sequence for rule matching processing; If the user resource data successfully matches at least one rule in the target rule sequence, the user resource data is determined to be risk data.
9. The method according to claim 1, characterized in that: The first rule sequence set is the Nth rule sequence set, and the second rule sequence set is the N+1th rule sequence set; Wherein, N is a positive integer, N≥1.
10. A data processing device, characterized in that: The device comprises: A user data matching module, configured to determine, in a first user data set, user data that matches a rule sequence included in a first rule sequence set, and delete the user data from the first user data set to obtain a second user data set; A rule generation module, used to generate rules according to the second user data set and pre-configured rule generation parameters to obtain candidate rules; A combination processing module, used for combining the rule sequence and the candidate rule to obtain a candidate rule sequence, and calculating an evaluation index of the candidate rule sequence; The sequence screening module is used to perform sequence screening in the candidate rule sequence according to the evaluation index to obtain a second rule sequence set, so as to perform user risk detection based on a target rule sequence determined based on the second rule sequence set.
11. A computer device, characterized in that: The device comprises: A processor; and a memory configured to store computer executable instructions, which, when executed, cause the processor to perform the data processing method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the data processing method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Business strategy generation method, device and system based on multi-objective optimization
CN113469578A
Data processing method, device and equipment
CN116701624A
Risk detection method and device, electronic equipment and storage medium
CN117235608A
Medical monitoring rule recommendation
US20130311193A1
Method and device for identifying high-risk passenger, computer apparatus, and storage medium
WO2020015139A1
