Scoring method and device, electronic equipment and storage medium

Through parallel 0-1 standardization and z standardization methods, combined with boxcox transformation and z standardization, the problem that the existing technology cannot cope with different distribution characteristics is solved, and effective risk identification and scoring of anti-fraud business scenarios is achieved.

CN119012203APending Publication Date: 2024-11-22CHINA TELECOM DIGITAL INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411021084.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

Existing scoring methods cannot effectively deal with variables with different distribution characteristics, especially in anti-fraud business scenarios, the risk of numbers with too many or too few calls is high, and the risk or quality cannot be accurately identified.

Method used

The parallel method of 0-1 standardization and z standardization is used to process according to the monotonic correlation of variables or the corresponding score optimization of the mean. The two methods of boxcox transformation and z standardization fusion are used to adapt to multiple distribution characteristics and reduce normal distribution deviations. , highlight the abnormality of the values ​​at both ends of the score.

Benefits of technology

It realizes adaptive scoring of different distribution characteristic indicators, effectively identify user risks or quality, reduces normal distribution deviations, and meets diverse business needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119012203A_ABST
    Figure CN119012203A_ABST
Patent Text Reader

Abstract

The invention relates to a scoring method and device, electronic equipment and a storage medium, and belongs to the technical field of scoring, and the method comprises the steps: judging whether a variable is monotonically related or a mean value corresponds to the optimal score according to a service; determining a variable direction, a weight and an overall scoring direction; if the judgment result is monotonically correlated, 0-1 standardization processing is carried out on the monotonically correlated variable, whether negation processing needs to be carried out on the 0-1 standardization processing result or not is judged according to the variable direction and the overall scoring direction, and if negation processing does not need to be carried out, the standardization processing result is multiplied by 100 to obtain a score after standardization processing; if the judgment result is that the score corresponding to the mean value is optimal, the mean value and the standard deviation of the variables are calculated, boxcox transformation and z standardization processing are sequentially carried out, then an absolute value is obtained, and the absolute value is divided by 3 and multiplied by 100 to obtain a score after standardization processing; and determining a score according to the score and the weight after standardization processing. The method can highlight the score abnormity of the two end values, and the final score can effectively identify the risk or quality of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of scoring, and in particular relates to a scoring method, device, electronic equipment and storage medium. Background Art

[0002] In the prior art, scoring is generally performed by normalizing all variables to 0-1, or performing z-standardization on all variables; or 0-1 standardization and z-standardization are connected in series, and are performed in order of precedence, or z-standardization is performed first and then 0-1 standardization is performed; however, the same standardization method is applied to all variables, and it is impossible to cope with variables with different distribution characteristics, because individual variables and dependent variables do not show a monotonically increasing or decreasing relationship, but the mean in the middle corresponds to the highest score; for example, in the anti-fraud business scenario, it is not the case that the longer the call duration, the lower the risk, nor is it the case that the shorter the call duration, the lower the risk, but the user whose call duration is near the mean has the lower risk. Too much call duration may be due to fraudsters frequently committing telecommunications fraud, and too little call duration may be due to users of one phone with multiple cards using the number intermittently in small quantities to avoid abnormal shutdowns, and rotating different mobile phone numbers. Therefore, the risks of numbers with too much and too little call duration are very high, and only the risk near the middle mean is the lowest. At this time, if the field is simply standardized by 0-1 or z, the risk of the single-end value of the call duration will be minimized. Summary of the invention

[0003] In view of the above deficiencies in the prior art, the purpose of the invention is to provide a scoring method, device, electronic device and storage medium. 0-1 standardization and z standardization are in parallel, with no order of precedence and are carried out simultaneously. 0-1 standardization is performed on monotonically increasing and decreasing variables, and z standardization is performed on variables with the best mean score. Two types of variables correspond to these two standardization methods respectively, and the two methods of 0-1 standardization and z standardization are integrated and carried out in parallel, which is suitable for indicators with a variety of different distribution characteristics.

[0004] In a first aspect of the present invention, a scoring method is proposed, comprising:

[0005] Based on the business judgment, whether the variables are monotonically correlated or the mean corresponds to the best score;

[0006] Determine variable direction, weights, and overall score direction;

[0007] If the judgment result is that the variables are monotonically correlated, the monotonically correlated variables are subjected to 0-1 standardization. According to the direction of the variables and the overall score direction, it is determined whether the 0-1 standardization result needs to be inverted. If the judgment result is that the 0-1 standardization result does not need to be inverted, the 0-1 standardization result is multiplied by 100 to obtain the standardized score. If the judgment result is that the variable has the best score corresponding to the mean, the mean and standard deviation of the variable are calculated, and the absolute value is taken after boxcox transformation and z standardization. The absolute value is divided by 3 and multiplied by 100 to obtain the standardized score.

[0008] The score is determined by multiplying the standardized score by the corresponding weight.

[0009] Furthermore, in the above-mentioned scoring method, judging whether the variables are monotonically correlated or the mean value corresponds to the best score according to the business includes:

[0010] Identify the business and evaluate the correlation between the independent variable business fields and the dependent variable scores;

[0011] Draw a line graph of the numerical changes of the independent variable business field and the dependent variable score;

[0012] If the score of the dependent variable gradually increases or decreases in one direction as the value of the independent variable business field increases, then there is a monotonically increasing and decreasing relationship between the independent variable business field and the score of the dependent variable, and the variables are judged to be monotonically correlated; if the score of the dependent variable first increases with the increase of the value of the independent variable business field, the score is highest when it reaches near the mean, and then gradually decreases, the variable is judged to have the best score corresponding to the mean.

[0013] Furthermore, in the above-mentioned scoring method, before the 0-1 standardization processing of the monotonically correlated variables is performed, the following steps are further included:

[0014] Evaluate the maximum and minimum values ​​of set monotonically correlated variables;

[0015] According to the maximum and minimum values ​​of the monotonically correlated variables, the values ​​greater than the maximum and minimum values ​​of the monotonically correlated variables are forced to be converted;

[0016] Set the maximum and minimum values ​​to fixed variables.

[0017] Furthermore, in the above-mentioned scoring method, judging whether a negation process is required according to the direction of the variable and the direction of the overall scoring includes:

[0018] Determine whether the direction of the variable is opposite to the direction of the overall score;

[0019] If the judgment result is that the direction of the variable is opposite to the direction of the overall score, then the judgment result needs to be inverted; if the judgment result is that the direction of the variable is not opposite to the direction of the overall score, then the judgment result does not need to be inverted.

[0020] Furthermore, the above-mentioned scoring method also includes: if the judgment result is that inversion processing is required, the score after normalization processing is determined by the difference between 100 and the result of 0-1 normalization processing.

[0021] Furthermore, in the above scoring method, after dividing by 3 and multiplying by 100 to obtain a standardized score, the following is further included:

[0022] Determine whether the standardized scores are less than 0 or greater than 100;

[0023] If the judgment result is that there is a score less than 0 or greater than 100, the score less than 0 will be forced to 0, and the score greater than 100 will be forced to 100.

[0024] Furthermore, the above-mentioned scoring method also includes: setting the mean and standard deviation as fixed variables.

[0025] A second aspect of the present invention further provides a scoring device, comprising:

[0026] Judgment module: used to judge whether the variables are monotonically correlated or the mean value corresponds to the best score according to the business;

[0027] Determination module: used to determine the variable direction, weight and overall score direction;

[0028] 0-1 standardization processing module: if the judgment result is that the variables are monotonically correlated, 0-1 standardization processing is performed on the monotonically correlated variables, and whether the 0-1 standardization processing result needs to be inverted is determined based on the variable direction and the overall score direction. If the judgment result is that the 0-1 standardization processing result does not need to be inverted, the 0-1 standardization processing result is multiplied by 100 to obtain the standardized score;

[0029] Boxcox transformation module and z standardization processing module: if the judgment result is that the variable is the best score corresponding to the mean, calculate the mean and standard deviation of the variable, perform boxcox transformation and z standardization in turn, take the absolute value, divide the absolute value by 3 and multiply by 100 to get the standardized score;

[0030] Determination module: used to determine the score based on the product of the standardized score and the corresponding weight.

[0031] According to a third aspect of the present invention, an electronic device is provided, comprising: a processor and a memory;

[0032] The processor is used to execute any of the above scoring methods by calling the program or instruction stored in the memory.

[0033] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute any one of the above scoring methods.

[0034] The beneficial effects of the present invention are as follows: in the present invention, 0-1 standardization and z standardization are in a parallel relationship, with no order of precedence and are performed simultaneously; variables that are monotonically increasing or decreasing are subjected to 0-1 standardization, and variables with the best mean corresponding to the score are subjected to z standardization; two types of variables correspond to the two standardization methods respectively, and the two methods of 0-1 standardization and z standardization are integrated and parallelized, which is suitable for indicators with various different distribution characteristics; a boxcox transformation is performed in advance, and the absolute value of the z-standardization result is taken in the post-processing, divided by 3 and multiplied by 100 to obtain the standardized score, which reduces the deviation of the normal distribution, promotes the middle value and the two end values ​​to extend in opposite directions, and further highlights the abnormalities of the two end values ​​of the score, meeting diverse business needs; the final score is determined by the product of the standardized score and the corresponding weight, which can effectively identify the risk or quality of the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0036] Figure 1 A scoring method diagram provided by an embodiment of the present invention;

[0037] Figure 2 A method diagram for determining whether variables are monotonically correlated or have the best mean value score according to the business according to an embodiment of the present invention;

[0038] Figure 3 A preprocessing method diagram provided by an embodiment of the present invention;

[0039] Figure 4 A method diagram for determining whether a negation process is required is provided in an embodiment of the present invention;

[0040] Figure 5 A diagram of a scoring device provided by an embodiment of the present invention;

[0041] Figure 6 A schematic block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

[0043] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.

[0044] In the description of the present invention, the terms "first", "second", and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be internal communication between two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0045] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.

[0046] Before introducing the embodiments of the present invention, the professional terms involved in the present invention are first introduced.

[0047] 0-1 standardization: also known as minimum-maximum standardization, is a method of data standardization that scales data to the interval between 0 and 1, making data of different dimensions and ranges comparable. The processing process is (variable-minimum value) / (maximum value-minimum value), and the formula is: X = (x-min) / (max-min).

[0048] Z standardization: Z-value standardization is a data standardization method based on mean and standard deviation. The principle is to subtract the mean from the original data and divide it by the standard deviation to get a new standardized data set. The mean of this new data set is 0 and the standard deviation is 1, which means that it meets the standard of the best score corresponding to the mean. Standardized value = (variable-mean) / standard deviation, that is, Z = (x-μ) / σ.

[0049] Box-Cox transformation: Box-Cox transformation is a widely used method for data conversion and normalization, which can make the data closer to the optimal score corresponding to the mean and meet the statistical assumptions. In practical applications, Box-Cox transformation is often used to solve the problem that the data in regression analysis and variance analysis do not meet the optimal score corresponding to the mean, thereby improving the accuracy and reliability of the model. The formula is: when λ=0, y(λ)=(yλ-1) / λ; when λ≠0, y(λ)=lny.

[0050] The present invention proposes a scoring method, device, electronic device and storage medium. 0-1 standardization and z standardization are in parallel relationship, have no order of precedence, and are performed synchronously. 0-1 standardization is performed on monotonically increasing and decreasing variables, and z standardization is performed on variables with the best mean corresponding score. Two types of variables correspond to these two standardization methods respectively, and the two methods of 0-1 standardization and z standardization are integrated and parallelized, which is suitable for indicators with a variety of different distribution characteristics.

[0051] Method Embodiment

[0052] Figure 1 A diagram of a scoring method provided in an embodiment of the present invention.

[0053] In the first aspect of the present invention, a scoring method is proposed, combining Figure 1 ,include:

[0054] S1: Based on the business judgment, whether the variables are monotonically correlated or the mean corresponds to the best score.

[0055] Specifically, in an embodiment of the present invention, a method for judging whether variables are monotonically correlated or the mean corresponds to the best score based on business is described in detail below. The mean here is not an absolute single mean, but only the part near the mean corresponds to the best score.

[0056] For example, in the anti-fraud business, the main package price and the online time are both as large as possible, which is a monotonic positive correlation, and the number of historical fraud detections is as small as possible, which is a monotonic negative correlation; but the call duration and number of calls are best around the mean, and the lower the better after z-standardization, the better. Too many or too few calls are not normal. Too many calls may be due to fraudsters making a large number of calls every day to commit telecommunications fraud, and too few calls may be due to fraudsters with multiple cards on one phone registering multiple mobile phone numbers. Therefore, the probability of normal users with call times near the mean is the highest, and the score is also the highest.

[0057] S2: Determine variable direction, weight, and overall score direction.

[0058] Specifically, in the embodiment of the present invention, determining the variable direction and the overall score direction is to determine the direction of each variable, and determine the overall score direction according to the direction of each variable that accounts for a larger proportion in the overall variables.

[0059] Exemplary: there are 10 variables, x1 to x10, of which x1 to x8 are positively correlated variables, and x9 and x10 are negatively correlated variables. Since 80% of the variables are positively correlated, the overall scoring direction is set to the larger the better, and the highest value 100 is the highest quality user. On the contrary, if 80% of the variables are negatively correlated, the overall scoring direction is set to the smaller the better, and the lowest value 0 is the optimal result, which is the lowest risk user. For example, in anti-fraud services, the price of the main package and the length of time online are the higher the better, and the number of historical detections, call duration, and number of calls are the lower the better. The lower the better, the majority are, so the overall scoring direction is the lower the better, which represents user risk.

[0060] The weights are determined based on the actual variables: for example, the weight of historical detection times is 0.1, the weight of call times is 0.1, the weight of main package price is 0.2, the weight of call duration is 0.3, and the weight of online time is 0.3.

[0061] S3: If the judgment result is that the variables are monotonically correlated, perform 0-1 standardization on the monotonically correlated variables, and determine whether the 0-1 standardization result needs to be inverted based on the variable direction and the overall score direction. If the judgment result is that the 0-1 standardization result does not need to be inverted, multiply the 0-1 standardization result by 100 to obtain the standardized score; if the judgment result is that the variable has the best score corresponding to the mean, calculate the mean and standard deviation of the variable, perform boxcox transformation and z standardization in turn, and then take the absolute value, divide the absolute value by 3 and multiply by 100 to obtain the standardized score.

[0062] Specifically, in the embodiment of the present invention, before performing 0-1 standardization processing on the monotonically related variables, the maximum and minimum values ​​of the monotonically related variables are evaluated and set, and then 0-1 standardization processing is performed. For example, the maximum value of the number of historical detections is set to 1, and the minimum value is set to 0, and 0-1 standardization processing is performed. The code for 0-1 standardization processing is as follows:

[0063] if(checkout_times>1,1,checkout_times)*100 / 1as checkout_times_score

[0064] The lower the number of historical detections, the better, which is in the same direction as the overall score. There is no need to invert the 0-1 standardized processing result. The 0-1 standardized processing result is multiplied by 100 to obtain the standardized score.

[0065] For call duration and call frequency indicators, scores near the mean are the best. Boxcox transformation and z-standardization are performed first. Boxcox transformation can make the data close to normal distribution.

[0066] For example, the score near the mean of call times call_times_1m is the best. Let λ = 0.1, and the code is as follows:

[0067] Boxcox transformation: box = (POW (call_times_1m, 0.1) - 1) / 0.1

[0068] The results show that the mean μ of the transformed boxcox is 0.171 and the standard deviation σ is 0.522

[0069] z-normalization: Z = (box-μ) / σ = (((POW(call_times_1m,0.1)-1) / 0.1)-0.171) / 0.522

[0070] Take the absolute value: abs(Z) #The result is 0-3

[0071] Divide by 3: X = abs(Z) / 3#0-1

[0072] Multiply by 100: zscore = X * 100 = abs (Z) * 100 / 3 # The result is 0-100

[0073] It should be understood that in the present invention, 0-1 standardization and z standardization are in parallel, with no order of precedence and are performed simultaneously. 0-1 standardization is performed on monotonically increasing and decreasing variables, and z standardization is performed on variables with the best mean corresponding score. The two types of variables correspond to these two standardization methods respectively, and the two methods of 0-1 standardization and z standardization are integrated and performed in parallel, which is suitable for indicators with a variety of different distribution characteristics.

[0074] S4: Determine the score based on the product of the standardized score and the corresponding weight.

[0075] Specifically, in the embodiment of the present invention, the score = 0.1*normalized score of historical detection times + 0.2*normalized score of main package price + 0.3*normalized score of online time + 0.2*normalized score of call time + 0.1*normalized score of number of calls.

[0076] Figure 2 A method diagram for determining whether variables are monotonically correlated or have the best mean-corresponding score according to a business decision is provided in an embodiment of the present invention.

[0077] Furthermore, in the above-mentioned scoring method, the optimal score is obtained by judging whether the variables are monotonically correlated or the mean value is the best. Figure 2 , including three steps from S21 to S23:

[0078] S21: Determine the business and evaluate the relationship between the independent variable business field and the dependent variable score;

[0079] S22: Draw a line graph of the numerical changes of the independent variable business field and the dependent variable score;

[0080] S23: If the score of the dependent variable gradually increases or decreases in one direction as the value of the independent variable business field increases, then there is a monotonically increasing and decreasing relationship between the independent variable business field and the score of the dependent variable, and the variables are judged to be monotonically correlated; if the score of the dependent variable first increases with the increase of the value of the independent variable business field, the score is the highest when it reaches the mean, and then gradually decreases, the variable is judged to have the best score corresponding to the mean.

[0081] In the present invention, a line graph is used to intuitively determine whether the variables are monotonically correlated or the mean value corresponds to the best score.

[0082] Figure 3 A diagram of a preprocessing method provided by an embodiment of the present invention.

[0083] Furthermore, in the above scoring method, before the monotonically correlated variables are normalized to 0-1, Figure 3 , and also includes three steps S31 to S33:

[0084] S31: Evaluate the maximum and minimum values ​​of the set monotonically correlated variables.

[0085] Specifically, in the embodiment of the present invention, in order to prevent extreme values ​​from affecting the 0-1 normalization processing result, the maximum and minimum values ​​of the monotonically related variables are first evaluated and set before performing 0-1 normalization processing on the monotonically related variables.

[0086] S32: According to the maximum value and the minimum value of the monotone related variable, the values ​​of the monotone related variable that are greater than the maximum value and the minimum value are forcibly converted.

[0087] Specifically, in the embodiment of the present invention, an abnormal value greater than the maximum value is forcibly converted to the maximum value, and an abnormal value less than the minimum value is forcibly converted to the minimum value.

[0088] For example, the maximum value of the online duration field is set to 730 days and the minimum value is set to 20 days. If a user's online duration is 1000 days, it is forcibly converted to 730 days; if a user's online duration is 10 days, it is forcibly converted to 20 days.

[0089] The forced conversion code is: if(in_use_dt>730,730,if(in_use_dt<20,20,in_use_dt)

[0090] S33: Set the maximum and minimum values ​​as fixed variables.

[0091] For example: the maximum value of the main package price of the sample on day t is calculated to be 100 yuan, and the minimum value is 5 yuan, so 0-1 standardization is performed, and the fixed variable maximum value = 100, and the minimum value = 5 are set. Then, when performing 0-1 standardization on the main package price of the sample on day t+1, there is no need to evaluate and set the maximum and minimum values, and the maximum value max and minimum value min of the sample on day t can be directly called for 0-1 standardization.

[0092] Figure 4 A diagram of a method for determining whether inversion processing is required provided in an embodiment of the present invention.

[0093] Furthermore, in the above-mentioned scoring method, whether the inversion process is required is determined according to the direction of the variable and the overall scoring direction. Figure 4 ,include:

[0094] S41: Determine whether the direction of the variable is opposite to the direction of the overall score;

[0095] S42: If the judgment result is that the direction of the variable is opposite to the direction of the overall score, then the judgment result needs to be inverted; if the judgment result is that the direction of the variable is not opposite to the direction of the overall score, then the judgment result does not need to be inverted.

[0096] Specifically, for example, the higher the price of the main package, the better, which is contrary to the direction of the overall score, and the judgment result is that the inversion processing is required; the lower the number of historical detections, the better, which is not contrary to the direction of the overall score, and the judgment result is that the inversion processing is not required.

[0097] Furthermore, the above-mentioned scoring method also includes: if the judgment result is that inversion processing is required, the score after normalization processing is determined by the difference between 100 and the result of 0-1 normalization processing.

[0098] In the embodiment of the present invention, the negation process is to subtract 0-1 from 100 to obtain the result of the normalization process.

[0099] Set the maximum value of the main package price to 100 and the minimum value to 5, and perform 0-1 standardization. The code for 0-1 standardization is as follows:

[0100] (if(attr_value>100,100,if(attr_value<5,5,attr_value))-5) / 95

[0101] The standardized score is determined by the difference between 100 and the result of 0-1 standardization. The code is as follows:

[0102] 100-(if(attr_value>100,100,if(attr_value<5,5,attr_value))-5)*100 / 95

[0103] as attr_value_score

[0104] Furthermore, in the above scoring method, after dividing by 3 and multiplying by 100 to obtain a standardized score, the following is further included:

[0105] Determine whether the standardized scores are less than 0 or greater than 100;

[0106] If the judgment result is that there is a score less than 0 or greater than 100, the score less than 0 will be forced to 0, and the score greater than 100 will be forced to 100.

[0107] Specifically, in the embodiment of the present invention, since the mean and standard deviation of each batch of samples of the variable are slightly different, the univariate standardized score may be less than 0 or greater than 100, so it is necessary to force the values ​​less than 0 to 0 and the values ​​greater than 100 to 100.

[0108] The code example is as follows:

[0109] case when zscore>100then 100

[0110] when zscore<0then 0

[0111] else zscore end as mark

[0112] Furthermore, the above-mentioned scoring method also includes: setting the mean and standard deviation as fixed variables.

[0113] For example, if the Boxcox-transformed mean of a variable on day t is m and the standard deviation is n, then the Boxcox-transformed mean and standard deviation of this variable are set as fixed variables, with mean = m and standard deviation = n. After day t+1, there is no need to repeat the calculation, and the fixed variable mean m and standard deviation n can be directly called.

[0114] Device Embodiment

[0115] Figure 5 A diagram of a scoring device provided in an embodiment of the present invention.

[0116] In a second aspect of the present invention, a scoring device is also provided, combining Figure 5 ,include:

[0117] Judgment module 51: used to judge whether the variables are monotonically correlated or the mean value corresponds to the best score according to the business.

[0118] Specifically, in the embodiment of the present invention, the judgment module 51 judges whether the variables are monotonically correlated or the mean corresponds to the best score according to the business. The mean here is not an absolute single mean, but only the part near the mean corresponds to the best score.

[0119] For example, in the anti-fraud business, if the judgment module 51 judges that the main package price and the online time are both larger, the better, it is a monotonic positive correlation; if the judgment module 51 judges that the number of historical fraud detections is smaller, the better, it is a monotonic negative correlation; if the judgment module 51 judges that the call duration and the number of calls are both around the mean, the lower the better after z standardization, the better. Too many or too few calls are not normal. Too many calls may be caused by fraudsters making a large number of calls every day to commit telecommunications fraud, and too few calls may be caused by fraudsters with multiple mobile phone numbers registered for one phone and multiple cards. Therefore, the probability of a normal user with a number of calls near the mean is the highest, and the score is also the highest.

[0120] The first determination module 52 is used to determine the variable direction, weight and overall score direction.

[0121] Specifically, in the embodiment of the present invention, the determination module 52 determines the variable direction and the overall score direction by determining the direction of each variable, and determines the overall score direction according to the direction of each variable that accounts for a larger proportion in the overall variables.

[0122] Exemplary: there are 10 variables, x1 to x10, of which x1 to x8 are positively correlated variables, and x9 and x10 are negatively correlated variables. Since 80% of the variables are positively correlated, the overall scoring direction is set to the larger the better, and the highest value 100 is the highest quality user. On the contrary, if 80% of the variables are negatively correlated, the overall scoring direction is set to the smaller the better, and the lowest value 0 is the optimal result, which is the lowest risk user. For example, in anti-fraud services, the price of the main package and the length of time online are the higher the better, and the number of historical detections, call duration, and number of calls are the lower the better. The lower the better, the majority are, so the overall scoring direction is the lower the better, which represents user risk.

[0123] The first determination module 52 determines the weights based on actual variables: for example, the weight of historical detection times is 0.1, the weight of call times is 0.1, the weight of main package price is 0.2, the weight of call duration is 0.3, and the weight of online time is 0.3.

[0124] 0-1 standardization processing module 53: if the judgment result is that the variables are monotonically correlated, perform 0-1 standardization processing on the monotonically correlated variables, and judge whether it is necessary to invert the 0-1 standardization processing result according to the direction of the variables and the overall score direction; if the judgment result is that it is not necessary to invert the 0-1 standardization processing result, multiply the 0-1 standardization processing result by 100 to obtain the standardized score.

[0125] Specifically, in the embodiment of the present invention, before performing 0-1 standardization processing on the monotonically related variables, the maximum and minimum values ​​of the monotonically related variables are evaluated and set, and then the 0-1 standardization processing module 53 performs 0-1 standardization processing. For example, the maximum value of the number of historical checkouts is set to 1, and the minimum value is set to 0, and 0-1 standardization processing is performed. The code for 0-1 standardization processing is as follows: if (checkout_times>1,1,checkout_times)*100 / 1as checkout_times_score

[0126] The lower the number of historical detections, the better, which is in the same direction as the overall score. There is no need to invert the 0-1 standardized processing result. The 0-1 standardized processing result is multiplied by 100 to obtain the standardized score.

[0127] Boxcox transformation module 54 and z standardization processing module 55: if the judgment result is that the variable has the best score corresponding to the mean, the mean and standard deviation of the variable are calculated, and the absolute value is taken after boxcox transformation and z standardization in turn. The absolute value is divided by 3 and multiplied by 100 to obtain the standardized score.

[0128] The call duration and call frequency indicators are best scored near the mean, and the boxcox transformation module 54 performs boxcox transformation and the z standardization processing module 55 performs z standardization in turn. The boxcox transformation can make the data close to the normal distribution.

[0129] For example, the score near the mean of call times call_times_1m is the best. Let λ = 0.1, and the code is as follows:

[0130] 1. Boxcox conversion: box = (POW (call_times_1m, 0.1) - 1) / 0.1

[0131] The results show that the mean μ of the transformed boxcox is 0.171 and the standard deviation σ is 0.522

[0132] 2. z-standardization: Z = (box-μ) / σ = (((POW(call_times_1m,0.1)-1) / 0.1)-0.171) / 0.522

[0133] 3. Take the absolute value: abs(Z) #The result is 0-3

[0134] 4. Divide by 3: X = abs(Z) / 3#0-1

[0135] 5. Multiply by 100: zscore = X*100 = abs(Z)*100 / 3 # The result is 0-100

[0136] It should be understood that in the present invention, 0-1 standardization and z standardization are in parallel, with no order of precedence and are performed simultaneously. 0-1 standardization is performed on monotonically increasing and decreasing variables, and z standardization is performed on variables with the best mean corresponding score. The two types of variables correspond to these two standardization methods respectively, and the two methods of 0-1 standardization and z standardization are integrated and performed in parallel, which is suitable for indicators with a variety of different distribution characteristics.

[0137] The second determination module 56 is used to determine the score according to the product of the normalized score and the corresponding weight.

[0138] Specifically, in the embodiment of the present invention, the determination module 56 is determined by the following formula: score = 0.1*standardized score of historical detection times + 0.2*standardized score of main package price + 0.3*standardized score of online time + 0.2*standardized score of call time + 0.1*standardized score of number of calls.

[0139] According to a third aspect of the present invention, an electronic device is provided, comprising: a processor and a memory;

[0140] The processor is used to execute any of the above scoring methods by calling the program or instruction stored in the memory.

[0141] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute any one of the above scoring methods.

[0142] Figure 6 It is a schematic block diagram of an electronic device provided by an embodiment of the present invention.

[0143] like Figure 6As shown, the electronic device includes: at least one processor 601, at least one memory 602 and at least one communication interface 603. The various components in the electronic device are coupled together through a bus system 604. The communication interface 603 is used to transmit information between external devices. It can be understood that the bus system 604 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 604 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 5 Various buses are labeled as bus system 604 .

[0144] It can be understood that the memory 602 in this embodiment can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories.

[0145] In some implementations, the memory 602 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system and application programs.

[0146] The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. A program that implements any of the scoring methods provided in an embodiment of the present invention can be included in the application.

[0147] In the embodiment of the present invention, the processor 601 calls the program or instruction stored in the memory 602, specifically, the program or instruction stored in the application program, and the processor 601 is used to execute the steps of each embodiment of a scoring method provided in the embodiment of the present invention.

[0148] Based on the business judgment, whether the variables are monotonically correlated or the mean corresponds to the best score;

[0149] Determine variable direction, weights, and overall score direction;

[0150] If the result of the judgment is that the variables are monotonically correlated, the monotonically correlated variables are subjected to 0-1 standardization. According to the direction of the variables and the direction of the overall score, it is determined whether the 0-1 standardization result needs to be inverted. If the result of the judgment is that the 0-1 standardization result does not need to be inverted, the result of the 0-1 standardization is multiplied by 100 to obtain the standardized score. If the result of the judgment is that the variable has the best score corresponding to the mean, the mean and standard deviation of the variable are calculated, and the absolute value is taken after boxcox transformation and z standardization. The absolute value is divided by 3 and multiplied by 100 to obtain the standardized score.

[0151] The score is determined by multiplying the standardized score by the corresponding weight.

[0152] Any of the scoring methods provided in the embodiment of the present invention can be applied to the processor 601, or implemented by the processor 601. The processor 601 can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 601 or an instruction in the form of software. The above-mentioned processor 601 can be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0153] The steps of any method in a scoring method provided in an embodiment of the present invention can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software units in the decoding processor. The software unit can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the method in combination with its hardware.

[0154] Those skilled in the art will appreciate that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present invention and to form different embodiments.

[0155] Those skilled in the art will appreciate that the description of each embodiment has its own emphasis, and for parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0156] Although the embodiments of the present invention are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the appended claims. The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of various equivalent modifications or substitutions within the technical scope disclosed by the present invention, and these modifications or substitutions should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

[0157] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A scoring method, characterized in that: include: Based on the business judgment, whether the variables are monotonically correlated or the mean corresponds to the best score; Determine variable direction, weights, and overall score direction; If the judgment result is that the variables are monotonically correlated, the monotonically correlated variables are subjected to 0-1 standardization processing, and whether the 0-1 standardization processing result needs to be inverted is determined according to the variable direction and the overall score direction. If the judgment result is that the 0-1 standardization processing result does not need to be inverted, the 0-1 standardization processing result is multiplied by 100 to obtain the standardized score; if the judgment result is that the variable has the best score corresponding to the mean, the mean and standard deviation of the variable are calculated, and the absolute value is taken after boxcox transformation and z standardization in turn, and the value after taking the absolute value is divided by 3 and multiplied by 100 to obtain the standardized score; The score is determined according to the product of the normalized score and the corresponding weight.

2. A scoring method according to claim 1, characterized in that: The step of determining whether the variables are monotonically correlated or the mean value corresponds to the best score according to the business includes: Identify the business and evaluate the correlation between the independent variable business fields and the dependent variable scores; Draw a line graph of the numerical changes of the independent variable business field and the dependent variable score; If the score of the dependent variable gradually increases or decreases in one direction as the value of the independent variable business field increases, then there is a monotonically increasing and decreasing relationship between the independent variable business field and the score of the dependent variable, and the variables are judged to be monotonically correlated; if the score of the dependent variable first increases with the increase of the value of the independent variable business field, the score is highest when it reaches the mean, and then gradually decreases, the variable is judged to have the best score corresponding to the mean.

3. A scoring method according to claim 1, characterized in that: Before the 0-1 standardization of the monotone related variables is performed, the following steps are also included: Evaluate the maximum and minimum values ​​of set monotonically correlated variables; According to the maximum value and the minimum value of the monotone related variable, the values ​​of the monotone related variable that are greater than the maximum value and the minimum value are forcibly converted; Set the maximum and minimum values ​​to fixed variables.

4. A scoring method according to claim 1, characterized in that: The determining whether a negation process is required according to the variable direction and the overall score direction includes: Determine whether the direction of the variable is opposite to the direction of the overall score; If the judgment result is that the direction of the variable is opposite to the overall score direction, then the judgment result requires inversion processing; if the judgment result is that the direction of the variable is not opposite to the overall score direction, then the judgment result does not require inversion processing.

5. A scoring method according to claim 1, characterized in that: The method further includes: if the judgment result is that the inversion process is required, determining the score after the normalization process by the difference between 100 and the result of the normalization process of 0-1.

6. A scoring method according to claim 1, characterized in that: After dividing by 3 and multiplying by 100 to obtain a standardized score, the following is further included: Determine whether the standardized scores are less than 0 or greater than 100; If the judgment result is that there is a score less than 0 or greater than 100, the score less than 0 will be forced to 0, and the score greater than 100 will be forced to 100.

7. A scoring method according to claim 1, characterized in that: The method also includes: setting the mean and standard deviation as fixed variables.

8. A scoring device, characterized in that: include: Judgment module: used to judge whether the variables are monotonically correlated or the mean value corresponds to the best score according to the business; Determination module: used to determine the variable direction, weight and overall score direction; 0-1 standardization processing module: if the judgment result is that the variables are monotonically correlated, perform 0-1 standardization processing on the monotonically correlated variables, and judge whether it is necessary to perform inversion processing on the 0-1 standardization processing result according to the variable direction and the overall score direction; if the judgment result is that it is not necessary to perform inversion processing on the 0-1 standardization processing result, multiply the 0-1 standardization processing result by 100 to obtain the standardized score; Boxcox transformation module and z standardization processing module: if the judgment result is that the variable is the best score corresponding to the mean, calculate the mean and standard deviation of the variable, perform boxcox transformation and z standardization in turn, take the absolute value, divide the absolute value by 3 and multiply by 100 to get the standardized score; Determination module: used to determine the score according to the product of the standardized score and the corresponding weight.

9. An electronic device, characterized in that: include: Processor and memory; The processor is used to execute a scoring method as claimed in any one of claims 1 to 7 by calling the program or instruction stored in the memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute a scoring method according to any one of claims 1 to 7.