Big data service rule mining method and device

By constructing a row matrix and linear model and dynamically adjusting the window size, the problem of inefficiency and accuracy of the sliding window regression algorithm in mining business rules in massive data is solved, and a method of accurately mining business rules from disordered data is realized, which is suitable for in financial data scenarios.

CN118607634APending Publication Date: 2024-09-06WEBANK (CHINA)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410778590.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing sliding window regression algorithm relies on the orderliness of sample data when mining business rules in massive data, and it is difficult to set the window size, resulting in low efficiency and the inability to accurately mine data business rules.

Method used

By constructing a row matrix, the business rules in sample data with disordered and discontinuous business rule distribution are automatically mined, the window size is dynamically adjusted, a linear model is used to determine the contribution of independent variables, and the independent variable set is gradually constructed and optimized to improve the accuracy of the rules. sex.

Benefits of technology

It realizes the accurate and effective mining of multiple business rules from disordered data, improves the efficiency and accuracy of data business rule mining, and is suitable for different financial data scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607634A
    Figure CN118607634A
Patent Text Reader

Abstract

The invention provides a big data service rule mining method and device. The method comprises the steps of obtaining N rows of first sample data; determining an N * N row matrix according to the N rows of first sample data; the row matrix comprises N row index features; combining the N rows of first sample data with the row matrix, determining N rows of second sample data, and representing that the corresponding sample data is in the ith row when the ith row index feature is a first value; determining an independent variable having a business relationship with the dependent variable through the N rows of second sample data; according to H rows of first sample data corresponding to H row index features in the independent variables with the service relationship, constructing a service rule between K service index features in the independent variables with the service relationship and the dependent variables; and after removing the second sample data indicated by the H row index features from the N rows of second sample data, continuing to mine the business rules from the N-H rows of second sample data. According to the scheme, the data service rule can be accurately and effectively mined from massive data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method and device for mining big data business rules. Background Art

[0002] With the continuous evolution of the financial digitalization process, the system generates massive amounts of data every day. In the financial field, most of the data often have obvious linear relationships, such as financial statement indicators, internal account balance monitoring and other scenarios.

[0003] The existing technology uses sliding window regression algorithm to mine different data business rules from massive data; however, on the one hand, the sliding window regression algorithm relies on the orderliness of sample data; in reality, the quality of sample data is often uneven, and it is difficult to find a reasonable basis for data sorting, resulting in discontinuous distribution of sample data and corresponding rules; the sliding window regression algorithm cannot correctly mine data business rules; on the other hand, the size of the window in the sliding window regression algorithm is often determined based on historical experience, and it is difficult to dynamically adjust the size of the window for different financial data scenarios. If the window size is set too large, the business rules that meet the unified business rules cannot be successfully mined when the conditional sample data is smaller than the window size; if the window size is set too small, the regression effect may be poor in a small range of samples. On the other hand, the sliding window regression algorithm has a large number of iterations, and the overall algorithm efficiency is poor.

[0004] So, how to accurately and effectively mine data business rules from massive amounts of data remains to be solved. Summary of the invention

[0005] The present application provides a method and device for mining big data business rules, which can accurately and effectively mine data business rules from massive data.

[0006] First aspect, an embodiment of the present application provides a method for mining big data business rules. This method can be executed by a mining device for big data business rules. The mining device for big data business rules can be a terminal device or a module for a terminal device, or a server or a module for a server. The present application does not limit the execution entity of this method. The method includes: obtaining N rows of first sample data; where each row of the first sample data includes M business metric features; N is a positive integer; M is a positive integer greater than 1; determining an N×N row matrix according to the N rows of first sample data; the row matrix includes N row metric features; when the i-th row metric feature is a first value, it indicates that the corresponding sample data is in the i-th row; when the i-th row metric feature is a second value, it indicates that the corresponding sample data is not in the i-th row; 1≤i≤N; merging the N rows of first sample data and the row matrix to determine N rows of second sample data; where each row of the second sample data includes the M business metric features and the N row metric features; the value corresponding to the i-th row metric feature of the i-th row of second sample data is the first value; the values corresponding to the other row metric features of the i-th row of second sample data are the second values; determining, through the N rows of second sample data, independent variables that have a business relationship with a dependent variable; the dependent variable is any one of the M business metric features; any independent variable is any one of the business metric features other than the dependent variable among the M business metric features and any one of the N row metric features; constructing a business rule between K business metric features among the independent variables having a business relationship and the dependent variable according to the H rows of first sample data corresponding to the H row metric features among the independent variables having a business relationship; where 1≤H≤N; 1≤K<M; after removing the second sample data indicated by the H row metric features from the N rows of second sample data, continue to mine business rules for the N-H rows of second sample data.

[0007] In the above solution, on the one hand, a row matrix is constructed. The number of row metric features of this row matrix is related to the sample data volume of the first sample data, and each row metric feature indicates the positional relationship of each row of sample data. Therefore, in the process of selecting independent variables, the present application can automatically mine the sample row data corresponding to the business rules. That is to say, the present application can accurately and effectively mine multiple business rules from disordered sample data with discontinuous business rule distributions. On the other hand, after removing the second sample data indicated by the H row metric features from the N rows of second sample data and mining the remaining second sample data, it can not only dynamically mine multiple business rules; but also exclude the influence of the second sample data corresponding to the H row metric features, and can quickly and effectively mine new business rules.

[0008] In a possible implementation method, for the jth iteration, a newly introduced independent variable is determined from the set of variables to be selected; the set of variables to be selected includes individual variables except the independent variable set of the jth iteration; the independent variable set of the jth iteration is the independent variable that has a business relationship with the dependent variable determined after the jth iteration; the contribution of the newly introduced independent variable is determined by a first linear model and a second linear model; the first linear model is constructed based on the independent variable set of the jth iteration; the second linear model is constructed based on the independent variable set of the jth iteration and the newly introduced independent variable; the newly introduced independent variable with the largest contribution is added to the independent variable set of the jth iteration to obtain the independent variable set of the j+1th iteration; the independent variable set corresponding to the iteration termination condition is determined as the independent variable that has a business relationship with the dependent variable.

[0009] The above scheme can accurately and effectively add the independent variable with the best explanation for the business rules to the independent variable set according to the contribution of each newly introduced independent variable, thereby making the determined business rules more accurate.

[0010] In a possible implementation method, the newly introduced independent variable with the largest contribution is added to the independent variable set of the j-th iteration to obtain the initial independent variable set of the j+1-th iteration; the eliminated independent variable is removed from the initial independent variable set of the j+1-th iteration to obtain the updated independent variable set of the j+1-th iteration; the contribution of the eliminated independent variable is determined through a third linear model and a fourth linear model; the third linear model is constructed based on the initial independent variable set of the j+1-th iteration; the fourth linear model is constructed based on the updated independent variable set of the j+1-th iteration; the eliminated independent variable with the smallest contribution is removed from the initial independent variable set of the j+1-th iteration to obtain the independent variable set of the j+1-th iteration.

[0011] The above scheme can obtain a better combination method by deleting the independent variable with the smallest contribution in the initial independent variable set. The obtained independent variable set has better explanation for the business rules, thereby making the determined business rules more accurate.

[0012] In a possible implementation method, a first numerical value is determined based on a first predicted value and a first mean value of any second sample data in the first linear model; a second numerical value is determined based on a second predicted value and a first mean value of any second sample data in the second linear model; a third numerical value is determined based on a predicted value of any second sample data in the second linear model and an actual value corresponding to any second sample data; and a contribution of the newly introduced independent variable is determined based on the first numerical value, the second numerical value, and the third numerical value.

[0013] The above scheme can accurately and effectively determine the contribution of the newly introduced independent variables, thereby making the determined business rules more accurate.

[0014] In a possible implementation method, a fourth value is determined based on the third predicted value of any second sample data in the third linear model and the first mean; a fifth value is determined based on the fourth predicted value of any second sample data in the fourth linear model and the first mean; a sixth value is determined based on the predicted value of any second sample data in the third linear model and the actual value corresponding to any second sample data; and a contribution of the eliminated independent variable is determined based on the fourth value, the fifth value, and the sixth value.

[0015] The above scheme can accurately and effectively determine the contribution of eliminating independent variables, thereby making the determined business rules more accurate.

[0016] In a possible implementation method, a first evaluation value is determined based on the number N of first sample data and the number of independent variables in the independent variable set of the j-th iteration; if the first evaluation value is not less than a first preset reliability, the newly introduced independent variable with the greatest contribution is added to the independent variable set of the j-th iteration; wherein the first preset reliability refers to the probability that the newly introduced independent variable with the greatest contribution has a linear relationship with the dependent variable.

[0017] In the above scheme, not all newly introduced independent variables with the greatest contribution need to be added to the independent variable set of the jth iteration. According to the first evaluation value and the first preset confidence, the independent variable set can be further limited, so that the independent variables in the independent variable set can achieve better explanation of the business rules.

[0018] In a possible implementation method, a second evaluation value is determined based on the number N of first sample data and the number of independent variables in the independent variable set of the j-th iteration; if the second evaluation value is less than a second preset reliability, the eliminated independent variable with the smallest contribution is removed from the initial independent variable set of the j+1-th iteration; the second preset reliability refers to the probability that the eliminated independent variable with the smallest contribution has a linear relationship with the dependent variable.

[0019] In the above scheme, not all eliminated variables with the smallest contribution need to be removed to the independent variable set of the j+1th iteration. According to the second evaluation value and the second preset confidence, the independent variable set can be further limited, so that the independent variables in the independent variable set can achieve better explanation of the business rules.

[0020] In a second aspect, an embodiment of the present application provides a device for mining big data business rules, including: an acquisition unit and a processing unit.

[0021] An acquisition unit, configured to acquire N rows of first sample data; wherein, each row of the first sample data includes M service metric features; N is a positive integer; M is a positive integer greater than 1;

[0022] A processing unit, configured to determine an N×N row matrix according to the N rows of first sample data; the row matrix includes N row metric features; when the i-th row metric feature is a first value, it indicates that the corresponding sample data is in the i-th row; when the i-th row metric feature is a second value, it indicates that the corresponding sample data is not in the i-th row; 1≤i≤N; merge the N rows of first sample data and the row matrix to determine N rows of second sample data; wherein, each row of the second sample data includes the M service metric features and the N row metric features; the value corresponding to the i-th row metric feature of the i-th row of second sample data is the first value; the values corresponding to the other row metric features of the i-th row of second sample data are the second values; determine, through the N rows of second sample data, an independent variable having a service relationship with a dependent variable; the dependent variable is any one of the M service metric features; any independent variable is any one of the service metric features other than the dependent variable among the M service metric features and any one of the N row metric features; construct a service rule between K service metric features among the independent variables having the service relationship and the dependent variable according to the H rows of first sample data corresponding to the H row metric features among the independent variables having the service relationship; wherein, 1≤H≤N; 1≤K<M; after removing the second sample data indicated by the H row metric features from the N rows of second sample data, continue to mine service rules for the N−H rows of second sample data.

[0023] In a possible implementation method, the processing unit is configured to, for the j-th iteration, determine a newly introduced independent variable from a set of candidate independent variables; the set of candidate independent variables includes each independent variable other than the set of independent variables in the j-th iteration; the set of independent variables in the j-th iteration is the independent variable having a service relationship with the dependent variable determined after the j-th iteration; determine the contribution degree of the newly introduced independent variable through a first linear model and a second linear model; the first linear model is constructed according to the set of independent variables in the j-th iteration; the second linear model is constructed according to the set of independent variables in the j-th iteration and the newly introduced independent variable; add the newly introduced independent variable with the largest contribution degree to the set of independent variables in the j-th iteration to obtain the set of independent variables in the (j + 1)-th iteration; determine the set of independent variables corresponding to when the iteration termination condition is satisfied as the independent variable having a service relationship with the dependent variable.

[0024] In a possible implementation method, the processing unit is used to add the newly introduced independent variable with the largest contribution to the independent variable set of the j-th iteration to obtain the initial independent variable set of the j+1-th iteration; remove the eliminated independent variable from the initial independent variable set of the j+1-th iteration to obtain the updated independent variable set of the j+1-th iteration; determine the contribution of the eliminated independent variable through a third linear model and a fourth linear model; the third linear model is constructed based on the initial independent variable set of the j+1-th iteration; the fourth linear model is constructed based on the updated independent variable set of the j+1-th iteration; remove the eliminated independent variable with the smallest contribution from the initial independent variable set of the j+1-th iteration to obtain the independent variable set of the j+1-th iteration.

[0025] In a possible implementation method, the processing unit is used to determine a first value based on a first predicted value and a first mean of any second sample data in the first linear model; determine a second value based on a second predicted value and a first mean of any second sample data in the second linear model; determine a third value based on a predicted value of any second sample data in the second linear model and an actual value corresponding to any second sample data; and determine a contribution of the newly introduced independent variable based on the first value, the second value, and the third value.

[0026] In a possible implementation method, the processing unit is used to determine a fourth value based on a third predicted value of any second sample data in the third linear model and a first mean value; determine a fifth value based on a fourth predicted value of any second sample data in the fourth linear model and a first mean value; determine a sixth value based on a predicted value of any second sample data in the third linear model and an actual value corresponding to any second sample data; and determine a contribution of the eliminated independent variable based on the fourth value, the fifth value, and the sixth value.

[0027] In a possible implementation method, a processing unit is used to determine a first evaluation value based on the number N of first sample data and the number of independent variables in the independent variable set of the j-th iteration; if the first evaluation value is not less than a first preset reliability, the newly introduced independent variable with the largest contribution is added to the independent variable set of the j-th iteration; wherein the first preset reliability refers to the probability that the newly introduced independent variable with the largest contribution has a linear relationship with the dependent variable.

[0028] In one possible implementation method, the processing unit is used to determine a second evaluation value based on the number N of first sample data and the number of independent variables in the independent variable set of the j-th iteration; if the second evaluation value is less than a second preset reliability, the eliminated independent variable with the smallest contribution is removed from the initial independent variable set of the j+1-th iteration; the second preset reliability refers to the probability that the eliminated independent variable with the smallest contribution has a linear relationship with the dependent variable.

[0029] In a third aspect, an embodiment of the present application further provides a computing device, including:

[0030] A memory for storing program instructions;

[0031] The processor is used to call the program instructions stored in the memory, and execute any method of implementing the above-mentioned first aspect according to the obtained program instructions.

[0032] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which computer-readable instructions are stored. When a computer reads and executes the computer-readable instructions, any method of the above-mentioned first aspect is implemented.

[0033] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising a computer program executable by a computer device, wherein when the program is run on the computer device, the computer device executes any method for implementing the above-mentioned first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A flowchart of a method for mining big data business rules provided in an embodiment of the present application;

[0035] Figure 2 A flowchart of a method for mining big data business rules provided in an embodiment of the present application;

[0036] Figure 3 A flowchart of a method for mining big data business rules provided in an embodiment of the present application;

[0037] Figure 4 A flowchart of a method for mining big data business rules provided in an embodiment of the present application;

[0038] Figure 5 A flowchart of a method for mining big data business rules provided in an embodiment of the present application;

[0039] Figure 6 A schematic diagram of the structure of a device for mining big data business rules provided in an embodiment of the present application;

[0040] Figure 7A schematic diagram of the structure of a device for mining big data business rules provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] The following is an analysis of the existing technology:

[0042] Due to the diversity and complexity of dynamic changes in business rules, the scenarios corresponding to business rules can be roughly divided into the following categories:

[0043] Scenario 1: The distribution of sorted sample data and business rules is continuous. For example, in time series data, sample data before June 2022 meets business rule 1 (y=2x1+3x2); sample data after June 2022 meets business rule 2 (y=2x1+3x3).

[0044] Scenario 2: All sample data meet multiple business rules, but the sample data is disorganized and cannot be sorted by specific dimensions through data preprocessing or other means to achieve the situation in Scenario 1.

[0045] Scenario 3: The sorted sample data and business rules are distributed, discrete and interlaced. For example, in time series data, the data in March of each year satisfies business rule 1 (y=2x1+3x2); the data in non-March months satisfies business rule 2 (y=x1+2x2+3x3).

[0046] The existing solutions based on sliding window regression algorithms have the following technical defects:

[0047] (1) The existing solution relies on the sorting of sample data. However, in reality, data quality varies greatly, and there is no reasonable basis for data sorting, which leads to discontinuous distribution of sample data and rules. Therefore, the existing solution is only applicable to the above scenario 1, and cannot solve scenarios 2 and 3 well.

[0048] (2) The hyperparameter K in the existing sliding window regression algorithm, that is, the preset window size, is often set based on historical parameter adjustment experience. However, it is difficult to dynamically adjust the parameter settings for different financial data scenarios. If K is set too large, the business rules that are satisfied in conditional samples smaller than K may not be successfully mined. If K is set too small, the regression effect may be poor in a small range of samples. Therefore, the existing solution has the risk of failing to correctly mine rules.

[0049] (3) The existing sliding window regression algorithm needs to iterate the full rule mining operation under each window sliding, and the massive feature selection process needs to be continuously regressed, resulting in poor efficiency of the overall algorithm.

[0050] Figure 1A flowchart of a method for mining big data business rules provided in an embodiment of the present application, the method can be executed by a mining device for big data business rules, the mining device for big data business rules can be a terminal device or a module for a terminal device, or a server or a module for a server. The present application does not limit the execution subject of the method.

[0051] The method comprises the following steps:

[0052] Step 101, obtaining N rows of first sample data.

[0053] Among them, each row of the first sample data includes M business indicator features; N is a positive integer; and M is a positive integer greater than 1.

[0054] In a possible implementation method, each row of the first sample data contains M values, each value corresponds to a business indicator feature, and each business indicator feature is used to indicate the business meaning corresponding to the value. There is at least one business rule between the M business indicator features.

[0055] Step 102: Determine an N*N row matrix according to the N rows of first sample data.

[0056] Among them, the row matrix includes N row indicator features; when the i-th row indicator feature is a first value, it represents that the corresponding sample data is in the i-th row; when the i-th row indicator feature is a second value, it represents that the corresponding sample data is not in the i-th row; 1≤i≤N.

[0057] The present application does not limit the specific values ​​of the first value and the second value. Exemplarily, the first value is 1, the second value is 0, and the N*N row matrix is ​​a 01 diagonal matrix.

[0058] Step 103: merge the N rows of first sample data and the row matrix to determine N rows of second sample data.

[0059] Among them, each row of second sample data includes the M business indicator characteristics and the N row indicator characteristics; the value corresponding to the i-th row indicator characteristic of the i-th row of second sample data is the first value; the values ​​corresponding to other row indicator characteristics of the i-th row of second sample data are the second values.

[0060] In a possible implementation method, the size of the matrix corresponding to N rows of second sample data is (M+N)*N.

[0061] Step 104: Determine the independent variable having a business relationship with the dependent variable through the N rows of second sample data.

[0062] Among them, the dependent variable is any one of the M business indicator characteristics; any independent variable is a business indicator characteristic other than the dependent variable among the M business indicator characteristics and any one of the N row indicator characteristics.

[0063] In a possible implementation method, the M business indicator features are traversed in sequence, each indicator feature is used as a dependent variable feature, and the remaining indicator features are used as independent variables to determine the independent variables that have a business relationship with the dependent variable.

[0064] Step 105 , constructing business rules between the K business indicator features in the independent variable with a business relationship and the dependent variable according to the H rows of first sample data corresponding to the H row indicator features in the independent variable with a business relationship.

[0065] Among them, 1≤H≤N; 1≤K <M。

[0066] In a possible implementation method, H rows of first sample data satisfying the first business rule are mined from N rows of second sample data, and the first business rule refers to the business rule between K business indicator features in the independent variable with a business relationship and the dependent variable. Regardless of whether the H rows of first sample data are continuous sample data or discontinuous sample data, the business rules corresponding to the H rows of first sample data can be mined by the above method; that is, the present application can accurately mine the corresponding business rules from sample data with irregular sorting and discontinuous distribution of sample data and rules.

[0067] Step 106: After removing the second sample data indicated by the H rows of indicator features from the N rows of second sample data, continue mining business rules for the NH rows of second sample data.

[0068] In a possible implementation method, after removing the second sample data indicated by the H rows of indicator features from the N rows of second sample data, the above steps 104 to 106 are repeatedly performed to mine other business rules until no second sample data remains.

[0069] The above scheme, on the one hand, constructs a row matrix, the number of row index features of the row matrix is ​​related to the sample data volume of the first sample data, and each row index feature indicates the positional relationship of each row of sample data. Therefore, in the process of selecting independent variables, the present application can automatically mine the sample row data that satisfies the business rules, and does not require the sample data to be ordered. In other words, the present application can accurately and effectively mine multiple business rules from disordered sample data with discontinuous business rule distribution. For example, odd-numbered rows of sample data correspond to one business rule, and even-numbered rows of sample data correspond to another business rule. Since the sliding window algorithm determines the business rules based on the size of the sliding window, it can only find the business rules of the local window, such as the business rules corresponding to the first 100 rows of sample data and the business rules corresponding to the last 100 rows of sample data. Such discontinuous business rules cannot be processed.

[0070] On the other hand, after removing the second sample data indicated by the H row indicator features from the N rows of second sample data, mining the remaining second sample data can not only realize dynamic mining of multiple business rules; but also eliminate the influence of the second sample data corresponding to the H row indicator features, and can quickly and effectively mine new business rules. Due to the continuity and locality of the sliding window algorithm, it is difficult to accurately and effectively mine the corresponding business rules for the data between the first business rule and the second business rule, and it is difficult to determine the dividing line between the first business rule and the second business rule. The present application can accurately and effectively determine the boundary line of different business rules based on the H row indicator features.

[0071] In a possible implementation method, in the above step 104, a method for determining the independent variable having a business relationship with the dependent variable through the N rows of second sample data is as follows: Figure 2 As shown, the method comprises the following steps:

[0072] Step 201 : for the j-th iteration, a new independent variable is determined from a set of variables to be selected.

[0073] The variable set to be selected includes the respective variables except the independent variable set of the j-th iteration; the independent variable set of the j-th iteration is the independent variables having a business relationship with the dependent variable determined after the j-th iteration; wherein j is a positive integer.

[0074] In a possible implementation method, in the first iteration, the independent variable set is empty; the variable set to be selected is the business indicator features other than the dependent variable and N row indicator features.

[0075] Step 202: Determine the contribution of the newly introduced independent variable through the first linear model and the second linear model.

[0076] The first linear model is constructed based on the independent variable set of the j-th iteration; the second linear model is constructed based on the independent variable set of the j-th iteration and the newly introduced independent variable.

[0077] In one possible implementation method, at the first iteration, the first linear model is the value corresponding to the dependent variable.

[0078] In a possible implementation method, a first numerical value is determined based on a first predicted value and a first mean value of any second sample data in the first linear model; a second numerical value is determined based on a second predicted value and a first mean value of any second sample data in the second linear model; a third numerical value is determined based on a predicted value of any second sample data in the second linear model and an actual value corresponding to any second sample data; and a contribution of the newly introduced independent variable is determined based on the first numerical value, the second numerical value, and the third numerical value.

[0079] Step 203: Add the newly introduced independent variable with the largest contribution to the independent variable set of the j-th iteration to obtain the independent variable set of the j+1-th iteration.

[0080] In a possible implementation method, a first evaluation value is determined according to the number N of the first sample data and the number of independent variables in the independent variable set of the j-th iteration; if the first evaluation value is not less than the first preset reliability, the newly introduced independent variable with the largest contribution is added to the independent variable set of the j-th iteration; wherein the first preset reliability refers to the probability that the newly introduced independent variable with the largest contribution has a linear relationship with the dependent variable. In this solution, not all newly introduced independent variables with the largest contribution need to be added to the independent variable set of the j-th iteration. According to the first evaluation value and the first preset reliability, the independent variable set can be further limited, so that the independent variables in the independent variable set can achieve better explanatory power for business rules.

[0081] Step 204 , determining the corresponding independent variable set when the iteration termination condition is satisfied as the independent variables having a business relationship with the dependent variable.

[0082] In a possible implementation method, the above steps 201 to 203 are repeatedly executed, and new independent variables are continuously introduced until the iteration termination condition is met; the independent variable set corresponding to when the iteration termination condition is met is determined as the independent variables having a business relationship with the dependent variable.

[0083] In one possible implementation method, when adding a new independent variable or deleting an existing independent variable causes the fit of the linear model to decrease, the iteration termination condition is met.

[0084] The above scheme can accurately and effectively add the independent variable with the best explanation for the business rules to the independent variable set according to the contribution of each newly introduced independent variable, thereby making the determined business rules more accurate.

[0085] In a possible implementation method, after the above step 203, the following steps are also included: Figure 3 As shown:

[0086] Step 301: Add the newly introduced independent variable with the largest contribution to the independent variable set of the j-th iteration to obtain the initial independent variable set of the j+1-th iteration.

[0087] Step 302: remove the eliminated independent variables from the initial independent variable set of the j+1th iteration to obtain an updated independent variable set of the j+1th iteration.

[0088] Step 303: Determine the contribution of the eliminated independent variable through the third linear model and the fourth linear model.

[0089] Wherein, the third linear model is constructed based on the initial independent variable set of the j+1th iteration; and the fourth linear model is constructed based on the updated independent variable set of the j+1th iteration.

[0090] In a possible implementation method, a fourth value is determined based on the third predicted value of any second sample data in the third linear model and the first mean; a fifth value is determined based on the fourth predicted value of any second sample data in the fourth linear model and the first mean; a sixth value is determined based on the predicted value of any second sample data in the third linear model and the actual value corresponding to any second sample data; and a contribution of the eliminated independent variable is determined based on the fourth value, the fifth value, and the sixth value.

[0091] Step 304 : remove the eliminated independent variable with the smallest contribution from the initial independent variable set of the j+1th iteration to obtain the independent variable set of the j+1th iteration.

[0092] In a possible implementation method, one independent variable is selected from the initial independent variable set of the j+1th iteration as a eliminated independent variable, the corresponding contribution after eliminating the eliminated independent variable is calculated, and the above steps 302 to 303 are repeated to remove the eliminated independent variable with the smallest contribution from the initial independent variable set of the j+1th iteration to obtain the independent variable set of the j+1th iteration.

[0093] In a possible implementation method, the second evaluation value is determined according to the number N of the first sample data and the number of independent variables in the independent variable set of the j-th iteration; if the second evaluation value is less than the second preset reliability, the eliminated independent variable with the smallest contribution is removed from the initial independent variable set of the j+1-th iteration; the second preset reliability refers to the probability that the eliminated independent variable with the smallest contribution has a linear relationship with the dependent variable. In this solution, not all eliminated variables with the smallest contribution need to be removed from the independent variable set of the j+1-th iteration. According to the second evaluation value and the second preset reliability, the independent variable set can be further limited, so that the independent variables in the independent variable set can achieve better explanatory power for business rules.

[0094] The above scheme can obtain a better combination method by deleting the independent variable with the smallest contribution in the initial independent variable set. The obtained independent variable set has better explanation for the business rules, thereby making the determined business rules more accurate.

[0095] In a possible implementation method, a calculation method for determining the contribution of the newly introduced independent variable according to the first value, the second value, and the third value is shown in the following formula (1):

[0096]

[0097] Among them, F 引入 is the contribution of the newly introduced independent variable, ESS 引入后 is the second value, ESS 引入前 is the first value; RSS 引入后 is the third value; p is the number of newly introduced independent variables; N is the size of the sample data; k is the number of independent variables in the independent variable set.

[0098] In a possible implementation method, a calculation method for determining the contribution of the eliminated independent variable according to the fourth value, the fifth value, and the sixth value is shown in the following formula (2):

[0099]

[0100] Among them, F 剔除 To eliminate the contribution corresponding to the independent variable, ESS was the fourth value before elimination, the fifth value after elimination, and RSS was the sixth value before elimination.

[0101] In a possible implementation method, the calculation method of ESS is shown in the following formula (3):

[0102]

[0103] in, is the predicted value of the linear model, is the mean of the actual values ​​corresponding to the dependent variable in all the second sample data, ∑ is the summation function, and i represents the second sample data in the i-th row.

[0104] In a possible implementation method, the RSS is calculated as shown in the following formula (4):

[0105]

[0106] in, is the predicted value of the linear model, y i is the actual value of the dependent variable corresponding to the second sample data in the i-th row.

[0107] The following is a specific example to illustrate the mining method of big data business rules of the present application. Figure 4 As shown, the following steps are included:

[0108] Step 401, obtaining original sample data.

[0109] In a possible implementation method, the original sample data in the Excel file format is read through the pandas tool library, or the historical data stored in the database is read through other tools as the original sample data. This application does not limit the method for obtaining the original sample data.

[0110] Step 402: pre-process the original sample data to obtain N rows of first sample data.

[0111] In one possible implementation method, the original sample data is preprocessed. For example, missing values ​​of the indicator feature data are filled with default values, and zero value filling or median filling can be selected according to different data characteristics for default filling, and data cleaning is performed to meet the requirements of linear model training. This application does not limit the preprocessing method.

[0112] Exemplarily, N rows of the first sample data are shown in Table 1, where 12. Investment, 12.1 Bond investment, 12.2 Trading financial asset investment, 12.3 Other equity investment, and 13. Alternative investment are business indicator characteristics, M is 5, and N is 60.

[0113] Table 1

[0114]

[0115]

[0116] Step 403: Determine an N*N row matrix according to the N rows of first sample data.

[0117] A possible implementation method is to determine the row matrix according to the following formula (5).

[0118]

[0119] where row_i is the column index of the row matrix and also the row index feature; j is the row index of the row matrix.

[0120] row_i(0 < i <= N) = 0 indicates that the current sample is not the i-th row sample; row_i(0 < i <= N) = 1 indicates that the current sample is the i-th row sample.

[0121] A possible implementation method is to determine a 60*60 row matrix according to the first sample data of 60 rows, as shown in Table 2 below. This row matrix is a diagonal matrix with the value 1 on the diagonal.

[0122] Table 2

[0123] Serial number row_1 row_2 row_3 row_4 … row_57 row_58 row_59 row_60 1 1 0 0 0 … 0 0 0 0 2 0 1 0 0 … 0 0 0 0 3 0 0 1 0 … 0 0 0 0 4 0 0 0 1 … 0 0 0 0 … 0 0 0 0 … 0 0 0 0 57 0 0 0 0 … 1 0 0 0 58 0 0 0 0 … 0 1 0 0 59 0 0 0 0 … 0 0 1 0 60 0 0 0 0 … 0 0 0 1

[0124] Step 404: Combine the first sample data of N rows and the row matrix to determine the second sample data of N rows.

[0125] A possible implementation method is to combine the business metric feature data and the constructed row index feature matrix as the sample data for the final business rule mining algorithm. Taking the above scenario as an example, the business metric feature data includes a total of 5 features: "12. Investment", "12.1 Bond Investment", "12.2 Trading Financial Asset Investment", "12.3 Other Equity Investment", and "13. Alternative Investment". The first sample data is a 60*5 matrix, which is horizontally combined with the constructed row index feature matrix of 60x60 to finally obtain the second sample data of 60x65. The number of samples N = 60, and the number of metric features m = 65.

[0126] Step 405: Determine the independent variables that have a business relationship with the dependent variable through the second sample data of N rows.

[0127] In a possible implementation method, let the business metric feature "12. Investment" be the dependent variable feature y, and other business metrics, as well as 60 row index features, be the independent variables X, and perform algorithm training to determine the business rule between the dependent variable feature y and the independent variables X, that is, the linear model.

[0128] In a possible implementation method, according to the following formula (6), determine the linear model between the dependent variable and the independent variables, that is, the dynamic business rule.

[0129]

[0130] where, for the given second sample data set where x i is the i-th observation with m features, y i is the actual value corresponding to the i-th observation. The linear regression model attempts to find a function f(x) = β 0 +β 1 x 1 +β 2 x 2 +…+β m x m So that f(x i ) as close to y as possible i , where β is the linear model parameter.

[0131] Step 406: construct business rules between K business indicator features in the independent variable with business relationship and the dependent variable according to the H rows of first sample data corresponding to the H row indicator features in the independent variable with business relationship.

[0132] In a possible implementation method, according to Table 1 and Table 2 above, H row indicator features are determined as {'12.1 Bond investment', '12.2 Trading financial asset investment', 'row_2', 'row_4', 'row_6', 'row_8', 'row_10', 'row_12', 'row_14', 'row_16', 'row_18', 'row_20', 'row_22', 'row_24', 'row_26','row_28','row_30','row_32','row_34','row_36','row_38','row_40','row_42', 'row_44','row_46','row_48','row_50','row_52','row_54','row_56','row_58','row_60'}. Since {'row_2',...,'row_60'} are newly added row indicator features, the indicator features corresponding to {'row_2',...,'row_60'} are deleted, and only the values ​​corresponding to {dependent variable: "12. Investment", independent variables: {'12.1 Bond investment','12.2 Trading financial asset investment'}} in the first sample data are used to determine the corresponding business rules, where "12. Investment" is the dependent variable, {'12.1 Bond investment','12.2 Trading financial asset investment'} are independent variables that have a business relationship with the dependent variable, that is, the independent variable set, and the value of K is 2.

[0133] In a possible implementation method, the first business rule is determined as: 12. Investment = 12.1 bond investment + 12.2 trading financial asset investment.

[0134] Step 407: Evaluate and analyze the first business rule.

[0135] In one possible implementation method, the first business rule is evaluated and analyzed according to the model fit; wherein, the simulation fit calculation method can be adjusted R square, which is an indicator for evaluating model fit in machine learning. Compared with the R square determination coefficient, the adjusted R square adds a penalty term for the number of variables in the regression model, which helps to avoid the introduction of too many variables into the model, resulting in overfitting of the model. Of course, other methods can also be used to evaluate and analyze business rules, and this application does not limit this.

[0136] In a possible implementation method, the closer the adjusted R-squared is to 1, the better the fit of the linear model is. The calculation method of the adjusted R-squared is shown in the following formula (7).

[0137]

[0138] Among them, R 2 The calculation method of is shown in formula (8):

[0139]

[0140] Among them, p is the number of independent variables that have a business relationship with the dependent variable.

[0141] In a possible implementation method, the first business rules that meet the above model fitting requirements are retained, and the first business rules that do not meet the above model fitting requirements are discarded.

[0142] Step 408: After removing the second sample data indicated by H rows of indicator features from the N rows of second sample data, continue mining business rules for the second sample data of NH rows.

[0143] In a possible implementation method, it can be seen from the above step 406 that the present application automatically adds the sample row representation features with even subscripts of row_2, row_4, ..., row_60 to the linear model, which means that for the even-numbered rows of sample data in the second sample data, row indicator features need to be added to satisfy the first business rule; for the odd-numbered rows of sample data in the second sample data, row indicator features do not need to be added to satisfy the first business rule; therefore, it means that the first business rule is only valid for the odd-numbered rows of the first sample data.

[0144] In a possible implementation method, all sample data rows that meet the first business rule are deleted from the second sample data, that is, all odd-numbered rows of data in the second sample data are deleted, and only even-numbered rows of data are retained; and the above steps 405 to 408 are repeatedly executed based on the even-numbered rows of data to continue to mine out other business rules that meet the requirements. For example, for the even-numbered rows of the first sample data, the second business rule that meets the requirements is: 12. Investment = 12.1 Bond Investment + 12.3 Other Equity Investment.

[0145] In a possible implementation method, the iteration is terminated when there is no second sample data remaining.

[0146] Step 409, replace the dependent variable y, and repeat the above steps 405 to 409 to mine other business rules.

[0147] In a possible implementation method, the above step 405 includes the following steps. Figure 5 shown.

[0148] Step 501 : for the j-th iteration, determine a new independent variable to be introduced from the set of variables to be selected.

[0149] Step 502: Determine the contribution of the newly introduced independent variable through the first linear model and the second linear model.

[0150] The following uses Table 1 and Table 2 as examples to illustrate how to determine the contribution of newly introduced independent variables.

[0151] Assume that the dependent variable is 12. Investment, and there is an independent variable in the independent variable set, which is {12.1 Bond investment}. According to the data, dependent variable and independent variable set in Table 2, the first linear model is determined to be y=2x1, where y is 12. Investment and x1 is 12.1 Bond investment; the variable set to be selected is {12.2 Investment in trading financial assets, 12.3 Other equity investments, 13. Alternative investments, row_1, row_2, ..., row_60}.

[0152] Assume that "12.2 Investment in trading financial assets" is selected as the newly introduced independent variable from the set of variables to be selected. According to the values ​​corresponding to "12. Investment", "12.1 Bond investment" and "12.2 Investment in trading financial assets" in Table 2, the second linear model is constructed as y=x1+x2, where x2 is "12.2 Investment in trading financial assets".

[0153] According to formulas (1), (3) and (4), the contribution corresponding to "12.2 Investment in trading financial assets" is 19.7530149901786.

[0154] Assume that "12.3 Other equity investments" is selected as the newly introduced independent variable from the set of variables to be selected. According to the values ​​corresponding to "12. Investment", "12.1 Bond investment", and "12.3 Other equity investments" in Table 2, the second linear model is constructed as y=x1+2x2, where x2 is "12.3 Other equity investments".

[0155] According to formulas (1), (3) and (4), the contribution of “12.3 Other equity investments” is 0.025210314955284426.

[0156] Similarly, the contribution of each newly introduced independent variable is calculated as follows:

[0157] [357.0742100812276,15.434859744705093,19.7530149901786,0.025210314955284426,0.7770137295838501,0.6435864677066218,2.5437246275848935,2.8722790671178977,2.0755810892318585,0.8857464268244133,0.20232577504173307,0.06293794726880587,0.02356139746406252,0.26086905804187654,0.28442988231672117,2.9081993711340344,1.330761933536175,0.8965291025797834,0.0014866186647163827,0.776256002777009,1.135362021032893,0.05293060568888568,1.5564738154361648,0.010849784233337812,0.3247837251352115,0.04502034757234626,0.5735928858749527,0.34021472260685376,0.10063180490718893,0.8160518239337557,1.7499236697077145,0.16980585438596732,0.5374131981625736,3.799953366102321,0.2123931364278916,0.5592175249197153,0.5167864531606388,0.5629143025713086,1.0767973654446368,0.11441984802353918,0.012216045997610786,2.616500223439437,1.6444544433593011,2.1472885271290822,0.9655764551642606,1.8903823585929633,0.33548656500788004,1.8488886403699294,0.05412965299905744,1.2749124451139942,0.2972683561106918,0.,0.7954135942677393,2.8892662033456022,1.2563391082490276,0.12434776070664863,1.535449133758627,0.006911467812708998,2.5772648281323813,5.085638717123111,0.25569593625631803,1.26273250504156,0.5140082749202443,0.2834759440453018]. .

[0158] Step 503: Determine a first evaluation value according to the number N of the first sample data and the number of independent variables in the independent variable set of the j-th iteration.

[0159] Step 504: If the first evaluation value is not less than the first preset reliability, the newly introduced independent variable with the largest contribution is added to the independent variable set of the j-th iteration to obtain the independent variable set of the j+1-th iteration.

[0160] For example, the first preset confidence level is 95%, then the significance level α = 0.05, the confidence level α = 0.05 is checked from the F distribution table, the degree of freedom is 1, 57 (57 is calculated by Nk-2, N is the sample size, k is the number of independent variables in the independent variable set of the first iteration), the upper quantile is converted into the corresponding p-value = 3.0383063152572683e-07, which is less than the confidence level α, and the original hypothesis can be rejected, so the "12.3 Other Equity Investment" indicator feature is added to the independent variable set. Among them, the first evaluation value is equal to 1-p-value.

[0161] In one possible implementation method, the feature "12.3 Other equity investments" corresponding to the largest contribution of 19.7530149901786 in the first iteration, except for the independent variable "12.1 Bond investment" introduced, is selected and added to the independent variable set. At this time, the independent variable set is {12.1 Bond investment, 12.3 Other equity investment}.

[0162] In a possible implementation method, when the number of independent variables in the independent variable set is greater than 2, the elimination operation from step 301 to step 303 is performed on the independent variable set.

[0163] Exemplarily, the operations from step 501 to step 504 are continuously performed. In the 26th iteration, after the newly introduced independent variable "row_40" is added, the elimination operation is performed, and the corresponding contribution of each eliminated independent variable is calculated, as shown below:

[0164] [2283.1994663886207,2032.1433911965205,1.2624433153550019,1.3669793834938648,0.01649088434445415,206.04934038378585,0.08732590127969019,103.03720740694358,0.11375870084131241,109.8384224818409,0.018439351589079674,28.742771090327366,0.03321957199324284,7.495986436154689,0.006282024988874023,0.891495941066614,0.0004925070282213447,59.28191380347131,0.20400243805304705,405.37029823687175,0.03808443553969189,20.494938811095896,0.0566835184418393,20.376858693838805,0.014039495595895762,209.10887312339813,0.1224753886596641,77.02465751761228,0.008745953845891915,82.81287466109366,0.00017959468139286307,19.670821841291428,6.830188484075978e-05,10.607194515787894,0.2530275229907351,312.84418763271987,0.0008607866446169186,115.95647546049432,0.03404868191629118,173.69233665123826,0.23562054342103397,0.9675525167260474,0.625251315459337,18.058154146533035,0.1137837248311621,458.97836158505044,0.4744971039087475,56.3966400523652,0.5691706380599805,1.1801736748101412,0.19678216544663593,414.0717384078205,0.008273523300014478,454.5580112966006,0.360227 87975788684,0.8996219038445488,2.3298763224221924e-06,9.665778 481583445,0.4731119643690882,44.18638988977475,0.532291261512 076,176.90603871108158,1.1223631983527005,102.41537539472031]. .

[0165] In a possible implementation method, a second evaluation value is determined based on the number N of first sample data and the number of independent variables in the independent variable set of the j-th iteration; if the second evaluation value is less than a second preset reliability, the eliminated independent variable with the smallest contribution is removed from the initial independent variable set of the j+1-th iteration; the second preset reliability refers to the probability that the eliminated independent variable with the smallest contribution has a linear relationship with the dependent variable.

[0166] For example, the second preset confidence level is 90%, then the significance level α=0.1, the confidence level α=0.1 is checked from the F distribution table, the upper quantile of the degree of freedom is 1, 34 (34 is calculated by Nk, N is the sample size, k is the number of independent variables in the independent variable set of the 25th iteration), converted into the corresponding p-value=0.2603780255402159, which is greater than the confidence level α, then the elimination independent variable "12.3 Other Equity Investment" with the smallest contribution (1.2624433153550019) is selected from the initial independent variable set and eliminated from the independent variable set. Among them, the second evaluation value is equal to 1-p-value.

[0167] In one possible implementation method, when the dependent variable y is "12. Investment", the updating process of the independent variable set is as follows:

[0168] Iteration 1: ['12.1 Bond Investment'];

[0169] Second iteration: ['12.1 Bond investment', '12.3 Other equity investment'];

[0170] The third iteration: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment'];

[0171] 4th iteration: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_50'];

[0172] Iteration 5: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_42', 'row_50'];

[0173] 6th iteration: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_42', 'row_48', 'row_50'];

[0174] Iteration 7: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_16', 'row_42', 'row_48', 'row_50'];

[0175] Iteration 8: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_16', 'row_32', 'row_42', 'row_48', 'row_50'];

[0176] Iteration 9: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_16', 'row_22', 'row_32', 'row_42', 'row_48', 'row_50'];

[0177] 10th iteration: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_2', 'row_16', 'row_22', 'row_32', 'row_42', 'row_48', 'row_50'];

[0178] 11th iteration: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_2', 'row_16', 'row_22', 'row_32', 'row_36', 'row_42', 'row_48', 'row_50'];

[0179] 12th iteration: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_2', 'row_16', 'row_22', 'row_32', 'row_36', 'row_42', 'row_48', 'row_50', 'row_58'];

[0180] 13th iteration: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_2', 'row_16', 'row_22', 'row_32', 'row_34', 'row_36', 'row_42', 'row_48', 'row_50', 'row_58'];

[0181] 14th iteration: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_2', 'row_6', 'row_16', 'row_22', 'row_32', 'row_34', 'row_36', 'row_42', 'row_48', 'row_50', 'row_58'];

[0182] 15th iteration: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_2', 'row_6', 'row_16', 'row_22', 'row_32', 'row_34', 'row_36', 'row_42', 'row_48', 'row_50', 'row_58', 'row_60'];

[0183] 16th iteration: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_2', 'row_4', 'row_6', 'row_16', 'row_22', 'row_32', 'row_34', 'row_36', 'row_42', 'row_48', 'row_50', 'row_58', 'row_60'];

[0184] 17th iteration: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_2', 'row_4', 'row_6', 'row_16', 'row_22', 'row_26', 'row_32', 'row_34', 'row_36', 'row_42', 'row_48', 'row_50', 'row_58', 'row_60'];

[0185] 18th iteration: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_2', 'row_4', 'row_6', 'row_16', 'row_22', 'row_24', 'row_26', 'row_32', 'row_34', 'row_36', 'row_42', 'row_48', 'row_50', 'row_58', 'row_60'];

[0186] 19th iteration: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_2', 'row_4', 'row_6', 'row_14', 'row_16', 'row_22', 'row_24', 'row_26', 'row_32', 'row_34', 'row_36', 'row_42', 'row_48', 'row_50', 'row_58', 'row_60'];

[0187] 20th iteration: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_2', 'row_4', 'row_6', 'row_14', 'row_16', 'row_22', 'row_24', 'row_26', 'row_32', 'row_34', 'row_36', 'row_42', 'row_44', 'row_48', 'row_50', 'row_58', 'row_60'];

[0188] Iteration 21: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_2', 'row_4', 'row_6', 'row_14', 'row_16', 'row_22', 'row_24', 'row_26', 'row_32', 'row_34', 'row_36', 'row_42', 'row_44', 'row_48', 'row_50', 'row_56', 'row_58', 'row_60'];

[0189] Iteration 22: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_2', 'row_4', 'row_6', 'row_8', 'row_14', 'row_16', 'row_22', 'row_24', 'row_26', 'row_32', 'row_34', 'row_36', 'row_42', 'row_44', 'row_48', 'row_50', 'row_56', 'row_58', 'row_60'];

[0190] Iteration 23: ['12.1 Bond investment', '12.2 Trading financial asset investment', '12.3 Other equity investment', 'row_2', 'row_4', 'row_6', 'row_8', 'row_14', 'row_16', 'row_22', 'row_24', 'row_26', 'row_28', 'row_32', 'row_34', 'row_36', 'row_42', 'row_44', 'row_48', 'row_50', 'row_56', 'row_58', 'row_60'];

[0191] 24th iteration: ['12.1 Bond investment','12.2 Trading financial asset investment','12.3 Other equity investment','row_2','row_4','row_6','row_8','row_14','row_16','row_18','row_22','row_24','row_26','row_28','row_32','row_34','row_36','row_42','row_44','row_48','row_50','row_56','row_58','row_60'];

[0192] 25th transfer fee: ['12.1 Ticket investment','12.2 Trading finance investment','12.3 Other profit investment','row_2','row _4','row_6','row_8','row_14','row_16','row_18','row_20','row_ 22','row_24','row_26','row_28','row_32','row_34','row_36','row_42','row_44','row_48','row_50','row_56','row_58','row_60']

[0193] 26th generation: ['12.1 Bond investment','12.2 Tradable financial assets investment','row_2','row_4','row_6','row_8','row_14','row_16','row_18','row_20','row_22','row_24','row_26','row_28','row_32','row_34','row_36','row_40','row_42','row_44','row_48','row_50','row_56','row_58','row_60'];

[0194] 27th generation: ['12.1 Bond investment','12.2 Tradable financial assets investment','row_2','row_4','row_6','row_8','row_14','row_16','row_18','row_20','row_22','row_24','row_26','row_28','row_30','row_32','row_34','row_36','row_40','row_42','row_44','row_48','row_50','row_56','row_58','row_60'];

[0195] 28th generation: ['12.1 Bond investment','12.2 Tradable financial assets investment','row_2','row_4','row_6','row_8','row_14','row_16','row_18','row_20','row_22','row_24','row_26','row_28','row_30','row_32','row_34','row_36','row_40','row_42','row_44','row_48','row_50','row_54','row_56','row_58','row_60'];

[0196] 29th generation: ['12.1 Bond investment','12.2 Tradable financial assets investment','row_2','row_4','row_6','row_8','row_10','row_14','row_16','row_18','row_20','row_22','row_24','row_26','row_28','row_30','row_32','row_34','row_36','row_40','row_42','row_44','row_48','row_50','row_54','row_56','row_58','row_60'];

[0197] 30th generation: ['12.1 Bond investment','12.2 Tradable financial assets investment','row_2','row_4','row_6','row_8','row_10','row_14','row_16','row_18','row_20','row_22','row_24','row_26','row_28','row_30','row_32','row_34','row_36','row_38','row_40','row_42','row_44','row_48','row_50','row_54','row_56','row_58','row_60'];

[0198] 31st generation: ['12.1 Bond investment','12.2 Tradable financial assets investment','row_2','row_4','row_6','row_8','row_10','row_12','row_14','row_16','row_18','row_20','row_22','row_24','row_26','row_28','row_30','row_32','row_34','row_36','row_38','row_40','row_42','row_44','row_48','row_50','row_54','row_56','row_58','row_60'];

[0199] 32nd generation: ['12.1 Bond investment','12.2 Tradable financial assets investment','row_2','row_4','row_6','row_8','row_10','row_12','row_14','row_16','row_18','row_20','row_22','row_24','row_26','row_28','row_30','row_32','row_34','row_36','row_38','row_40','row_42','row_44','row_48','row_50','row_52','row_54','row_56','row_58','row_60'];

[0200] 33rd transfer fee: ['12.1 Stock investment','12.2 Trading financial investment','row_2','row_4','row_6','row_8','row_10' ,'row_12','row_14','row_16','row_18','row_20','row_22','row_24','row_26','ro w_28','row_30','row_32','row_34','row_36','row_38','row_40','row_42','row_4 4','row_46','row_48','row_50','row_52','row_54','row_56','row_58','row_60'].

[0201] In a possible implementation method, after the iteration, the H row indicator features are determined to be {'12.1 Bond investment', '12.2 Trading financial asset investment', 'row_2', 'row_4', 'row_6', 'row_8', 'row_10', 'row_12', 'row_14', 'row_16', 'row_18', 'row_20', 'row_22', 'row_24', 'row_26', 'row_28', 'row_30', 'row_32', 'row_34', 'row_36', 'row_38', 'row_40', 'row_42', 'row_44', 'row_46', 'row_48', 'row_50', 'row_52', 'row_54', 'row_56', 'row_58', 'row_60'}.

[0202] Based on the same technical concept, Figure 6 A big data business rule mining device 600 provided in an embodiment of the present application is exemplarily shown, including: an acquisition unit 601 and a processing unit 602.

[0203] The acquisition unit 601 is used to acquire N rows of first sample data; wherein each row of the first sample data includes M business indicator features; N is a positive integer; and M is a positive integer greater than 1;

[0204] A processing unit 602 is configured to determine an N×N row matrix according to the N rows of first sample data; the row matrix includes N row index features; when the i-th row index feature is a first value, it indicates that the corresponding sample data is in the i-th row; when the i-th row index feature is a second value, it indicates that the corresponding sample data is not in the i-th row; 1≤i≤N; merge the N rows of first sample data and the row matrix to determine N rows of second sample data; wherein, each row of the second sample data includes the M service index features and the N row index features; the value corresponding to the i-th row index feature of the i-th row of the second sample data is the first value; the values corresponding to the other row index features of the i-th row of the second sample data are the second values; determine the independent variables that have a business relationship with the dependent variable through the N rows of second sample data; the dependent variable is any one of the M service index features; any independent variable is any one of the service index features other than the dependent variable among the M service index features and any one of the N row index features; construct a business rule between the K service index features and the dependent variable among the independent variables having a business relationship according to the H rows of first sample data corresponding to the H row index features in the independent variables having a business relationship; wherein, 1≤H≤N; 1≤K<M; after removing the second sample data indicated by the H row index features from the N rows of second sample data, continue to mine business rules for the second sample data of N-H rows.

[0205] In a possible implementation method, the processing unit 602 is configured to, for the j-th iteration, determine a newly introduced independent variable from the set of candidate independent variables; the set of candidate independent variables includes each independent variable except the set of independent variables of the j-th iteration; the set of independent variables of the j-th iteration is the independent variables that have a business relationship with the dependent variable determined after the j-th iteration; determine the contribution degree of the newly introduced independent variable through a first linear model and a second linear model; the first linear model is constructed according to the set of independent variables of the j-th iteration; the second linear model is constructed according to the set of independent variables of the j-th iteration and the newly introduced independent variable; add the newly introduced independent variable with the largest contribution degree to the set of independent variables of the j-th iteration to obtain the set of independent variables of the j+1-th iteration; determine the set of independent variables corresponding to when the iteration termination condition is satisfied as the independent variables that have a business relationship with the dependent variable.

[0206] In a possible implementation method, the processing unit 602 is used to add the newly introduced independent variable with the largest contribution to the independent variable set of the j-th iteration to obtain the initial independent variable set of the j+1-th iteration; remove the eliminated independent variable from the initial independent variable set of the j+1-th iteration to obtain the updated independent variable set of the j+1-th iteration; determine the contribution of the eliminated independent variable through a third linear model and a fourth linear model; the third linear model is constructed based on the initial independent variable set of the j+1-th iteration; the fourth linear model is constructed based on the updated independent variable set of the j+1-th iteration; remove the eliminated independent variable with the smallest contribution from the initial independent variable set of the j+1-th iteration to obtain the independent variable set of the j+1-th iteration.

[0207] In a possible implementation method, the processing unit 602 is used to determine a first value based on a first predicted value and a first mean of any second sample data in the first linear model; determine a second value based on a second predicted value and a first mean of any second sample data in the second linear model; determine a third value based on a predicted value of any second sample data in the second linear model and an actual value corresponding to any second sample data; and determine a contribution of the newly introduced independent variable based on the first value, the second value, and the third value.

[0208] In a possible implementation method, the processing unit 602 is used to determine a fourth value based on the third predicted value of any second sample data in the third linear model and the first mean; determine a fifth value based on the fourth predicted value of any second sample data in the fourth linear model and the first mean; determine a sixth value based on the predicted value of any second sample data in the third linear model and the actual value corresponding to any second sample data; determine the contribution of the eliminated independent variable based on the fourth value, the fifth value, and the sixth value.

[0209] In one possible implementation method, the processing unit 602 is used to determine a first evaluation value based on the number N of first sample data and the number of independent variables in the independent variable set of the j-th iteration; if the first evaluation value is not less than a first preset reliability, the newly introduced independent variable with the greatest contribution is added to the independent variable set of the j-th iteration; wherein the first preset reliability refers to the probability that the newly introduced independent variable with the greatest contribution has a linear relationship with the dependent variable.

[0210] In one possible implementation method, the processing unit 602 is used to determine a second evaluation value based on the number N of first sample data and the number of independent variables in the independent variable set of the j-th iteration; if the second evaluation value is less than a second preset reliability, the eliminated independent variable with the smallest contribution is removed from the initial independent variable set of the j+1-th iteration; the second preset reliability refers to the probability that the eliminated independent variable with the smallest contribution has a linear relationship with the dependent variable.

[0211] Based on the same technical concept, the embodiment of the present application provides a big data business rule mining device 700, which can be a computing device, for example. Figure 7 As shown, a big data business rule mining device 700 includes at least one processor 701 and a memory 702 connected to the at least one processor. The specific connection medium between the processor 701 and the memory 702 is not limited in the embodiment of the present application. Figure 7 For example, the processor 701 and the memory 702 are connected via a bus. The bus can be divided into an address bus, a data bus, a control bus, etc.

[0212] In an embodiment of the present application, the memory 702 stores instructions that can be executed by at least one processor 701, and the at least one processor 701 can execute the above-mentioned method for mining big data business rules by executing the instructions stored in the memory 702.

[0213] Among them, the processor 701 is a control center of a mining device 700 for big data business rules, and can use various interfaces and lines to connect various parts of the computer equipment, and perform resource settings by running or executing instructions stored in the memory 702 and calling data stored in the memory 702. Optionally, the processor 701 may include one or more determination units, and the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 701. In some embodiments, the processor 701 and the memory 702 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on independent chips.

[0214] Processor 701 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor.

[0215] The memory 702 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 702 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 702 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 702 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0216] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer-executable program. The computer-executable program is used to enable a computer to execute a method for mining big data business rules listed in any of the above methods.

[0217] An embodiment of the present application provides a computer program product, including a computer program executable by a computer device. When the program is run on the computer device, the computer device executes a method for mining big data business rules listed in any of the above-mentioned methods.

[0218] 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 present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0219] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. 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 data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. 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.

[0220] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0221] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions 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.

[0222] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for mining big data business rules, characterized in that: include: Obtain N rows of first sample data; wherein each row of first sample data includes M business indicator features; N is a positive integer; M is a positive integer greater than 1; According to the N rows of first sample data, an N*N row matrix is ​​determined; the row matrix includes N row index features; when the i-th row index feature is a first value, it indicates that the corresponding sample data is in the i-th row; when the i-th row index feature is a second value, it indicates that the corresponding sample data is not in the i-th row; 1≤i≤N; The N rows of first sample data and the row matrix are combined to determine N rows of second sample data; wherein each row of second sample data includes the M business indicator features and the N row indicator features; the value corresponding to the i-th row indicator feature of the i-th row of second sample data is the first value; the values ​​corresponding to the other row indicator features of the i-th row of second sample data are the second values; Determine an independent variable having a business relationship with a dependent variable through the N rows of second sample data; the dependent variable is any one of the M business indicator features; any independent variable is a business indicator feature other than the dependent variable among the M business indicator features and any one of the N row indicator features; According to the H rows of first sample data corresponding to the H row indicator features in the independent variable with business relationship, construct business rules between the K business indicator features in the independent variable with business relationship and the dependent variable; wherein 1≤H≤N; 1≤K <M; After removing the second sample data indicated by the H rows of indicator features from the N rows of second sample data, business rules are continuously mined for the NH rows of second sample data.

2. The method according to claim 1, characterized in that Determining the independent variable having a business relationship with the dependent variable through the N rows of second sample data includes: For the jth iteration, a newly introduced independent variable is determined from the set of variables to be selected; the set of variables to be selected includes the respective variables except the set of independent variables of the jth iteration; the set of independent variables of the jth iteration is the independent variables that have a business relationship with the dependent variable determined after the jth iteration; wherein j is a positive integer; Determine the contribution of the newly introduced independent variable through a first linear model and a second linear model; the first linear model is constructed based on the independent variable set of the j-th iteration; the second linear model is constructed based on the independent variable set of the j-th iteration and the newly introduced independent variable; Add the newly introduced independent variable with the largest contribution to the independent variable set of the j-th iteration to obtain the independent variable set of the j+1-th iteration; The corresponding set of independent variables when the iteration termination condition is satisfied is determined as the independent variables having a business relationship with the dependent variable.

3. The method according to claim 2, characterized in that The newly introduced independent variable with the largest contribution is added to the independent variable set of the j-th iteration to obtain the independent variable set of the j+1-th iteration, including: Add the newly introduced independent variable with the largest contribution to the independent variable set of the j-th iteration to obtain the initial independent variable set of the j+1-th iteration; Remove the eliminated independent variables from the initial independent variable set of the j+1th iteration to obtain an updated independent variable set of the j+1th iteration; Determining the contribution of the eliminated independent variable through a third linear model and a fourth linear model; the third linear model is constructed based on the initial independent variable set of the j+1th iteration; the fourth linear model is constructed based on the updated independent variable set of the j+1th iteration; The eliminated independent variable with the smallest contribution is removed from the initial independent variable set of the j+1th iteration to obtain the independent variable set of the j+1th iteration.

4. The method according to claim 2, characterized in that Determining the contribution of the newly introduced independent variable by using the first linear model and the second linear model includes: Determine a first value according to a first predicted value and a first mean of any second sample data in the first linear model; wherein the first mean is the mean of the actual values ​​corresponding to all the second sample data; Determine a second value according to a second predicted value of any second sample data in the second linear model and the first mean value; Determine a third value according to a predicted value of any second sample data in the second linear model and an actual value corresponding to any second sample data; The contribution of the newly introduced independent variable is determined according to the first value, the second value, and the third value.

5. The method according to claim 3, characterized in that Determining the contribution of the eliminated independent variable by the third linear model and the fourth linear model includes: Determine a fourth value according to a third predicted value of any second sample data in the third linear model and the first mean value; Determine a fifth value according to a fourth predicted value of any second sample data in the fourth linear model and the first mean value; Determine a sixth value according to a predicted value of any second sample data in the third linear model and an actual value corresponding to any second sample data; The contribution of the eliminated independent variable is determined according to the fourth value, the fifth value, and the sixth value.

6. The method according to claim 2, characterized in that The adding of the newly introduced independent variable with the greatest contribution to the independent variable set of the j-th iteration includes: Determine a first evaluation value according to the number N of the first sample data and the number of independent variables in the independent variable set of the j-th iteration; If the first evaluation value is not less than the first preset reliability, the newly introduced independent variable with the greatest contribution is added to the independent variable set of the j-th iteration; wherein the first preset reliability refers to the probability that the newly introduced independent variable with the greatest contribution has a linear relationship with the dependent variable.

7. The method according to claim 3, characterized in that The removing the eliminated independent variable with the smallest contribution from the initial independent variable set of the j+1th iteration includes: Determine a second evaluation value according to the number N of the first sample data and the number of independent variables in the independent variable set of the j-th iteration; If the second evaluation value is less than the second preset reliability, the eliminated independent variable with the smallest contribution is removed from the initial independent variable set of the j+1th iteration; the second preset reliability refers to the probability that the eliminated independent variable with the smallest contribution has a linear relationship with the dependent variable.

8. A device for mining big data business rules, characterized in that: Including acquisition unit and processing unit: An acquisition unit, configured to acquire N rows of first sample data; wherein each row of first sample data includes M business indicator features; N is a positive integer; and M is a positive integer greater than 1; A processing unit, configured to determine an N×N row matrix according to the N rows of first sample data; the row matrix includes N row index features; when the i-th row index feature is a first value, it indicates that the corresponding sample data is in the i-th row; when the i-th row index feature is a second value, it indicates that the corresponding sample data is not in the i-th row; 1≤i≤N; merge the N rows of first sample data and the row matrix to determine N rows of second sample data; wherein, each row of second sample data includes the M service index features and the N row index features; the value corresponding to the i-th row index feature of the i-th row of second sample data is the first value; the values corresponding to the other row index features of the i-th row of second sample data are the second values; determine, through the N rows of second sample data, an independent variable that has a business relationship with the dependent variable; the dependent variable is any one of the M service index features; any independent variable is a service index feature other than the dependent variable among the M service index features and any one of the N row index features; construct a business rule between the K service index features and the dependent variable among the independent variables having a business relationship according to the H rows of first sample data corresponding to the H row index features in the independent variables having a business relationship; wherein, 1≤H≤N; 1≤K<M; after removing the second sample data indicated by the H row index features from the N rows of second sample data, continue to mine business rules for the N-H rows of second sample data.

9. A computing device, characterized in that Comprising: A memory, configured to store program instructions; A processor, configured to call the program instructions stored in the memory and execute the method according to any one of claims 1 to 7 according to the obtained program instructions.

10. A computer-readable storage medium, characterized in that: Including computer-readable instructions, when a computer reads and executes the computer-readable instructions, the method according to any one of claims 1 to 7 is implemented.