A financial risk prevention and control large model data processing method and electronic equipment

Through the ICA algorithm and data kurtosis analysis, the characteristics of different customer groups in financial data are identified and clustered outlier detection is performed, which solves the problem of insufficient detection accuracy in the existing technology and improves the accuracy of data cleaning and model training.

CN118503889BActive Publication Date: 2024-10-22HUNAN GAOYANG TONGLIAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410962174.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-22
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

Existing financial data outlier detection methods cannot effectively identify differences between different customer groups through statistical analysis and comparison of all financial data, resulting in insufficient detection accuracy and affecting the data cleaning effect and the accuracy of model training.

Method used

Use multi-dimensional financial data to construct the original data matrix, perform iterative decomposition through the ICA algorithm, obtain direction vectors and projection matrices, analyze data kurtosis and aggregation, screen main direction vectors, perform customer group clustering, and perform outlier detection based on the clustering results. and cull.

Benefits of technology

It improves the accuracy of outlier detection, can identify data points that behave abnormally in specific groups based on the characteristics of different customer groups, and enhances the effect of data cleaning and the generalization ability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118503889B_ABST
    Figure CN118503889B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of financial risk prevention and control, and specifically to a data processing method and electronic device for a large model of financial risk prevention and control. The method first collects multidimensional financial data of each customer and constructs an original data matrix; analyzes the original data matrix to obtain the direction vector and projection matrix of each iteration; performs element analysis on the projection matrix to obtain data kurtosis; analyzes the aggregation and data kurtosis of the data in the projection matrix, determines the customer group representation degree under the direction vector, and selects some direction vectors as the main direction vector; clusters customers based on the main direction vector to obtain clustered customer groups; performs outlier detection on the multidimensional financial data of the clustered customer groups, and removes the abnormal financial data from the data set. The present invention obtains different customer groups by classifying customers into groups, and performs outlier detection on different customer groups respectively, thereby improving the detection accuracy of outliers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of financial risk prevention and control, and in particular to a financial risk prevention and control large model data processing method and electronic equipment. Background Art

[0002] With the popularization of mobile payment and the rapid development of financial technology, the financial industry is gradually transforming towards digitalization and intelligence. Mobile payment platforms have become one of the indispensable payment methods in people's daily lives, and have also accumulated a large amount of transaction data. These transaction data contain rich information, including users' consumption habits, behavioral characteristics, and risk preferences, providing valuable data resources for financial institutions.

[0003] At present, when the financial industry uses customer transaction information of mobile payment platforms to conduct risk analysis and customer profiling, a relatively effective means is to build a big data model. By using the big data model built by using the customer transaction information of the mobile payment platform, risk analysis and customer profiling can be performed. When the big data model is trained, the noise and outliers in the data set may cause the model to overfit, that is, the model performs well on the training set, but the generalization ability on new data is poor. By cleaning the data, the impact of noise and outliers can be effectively reduced, the risk of model overfitting can be reduced, and the model can be made more generalizable. Therefore, removing abnormal data in the data set is an important processing step when building a model.

[0004] At present, the commonly used method for outlier detection in financial data is often to identify outliers by analyzing and comparing the statistical data of all financial data. This method ignores the differences between different customer groups. The abnormal performance of the same data in different customer groups is insufficient, which will lead to insufficient accuracy in outlier detection, affecting the effect of data cleaning and the accuracy of model training. Summary of the invention

[0005] In order to solve the technical problem of low detection accuracy when identifying outliers through analysis and comparison of statistical data of all financial data, the purpose of the present invention is to provide a financial risk prevention and control large model data processing method and electronic equipment, and the technical solutions adopted are as follows:

[0006] In a first aspect, an embodiment of the present invention provides a method for processing data of a large financial risk prevention and control model, the method comprising:

[0007] Collect multi-dimensional financial data of each customer and construct the original data matrix accordingly;

[0008] Obtain a whitening matrix corresponding to the original data matrix; iteratively decompose the whitening matrix to obtain a direction vector for each iteration and a projection matrix of the whitening matrix under the corresponding direction vector;

[0009] Performing element analysis on the projection matrix to obtain the data kurtosis of the projection matrix; analyzing the aggregation of data in the projection matrix and the data kurtosis to determine the degree of customer group representation under the direction vector of each iteration;

[0010] Based on the customer group characterization, some direction vectors are screened out as main direction vectors; based on the main direction vectors, customers are clustered to obtain at least two clustered customer groups; outlier detection is performed on the multidimensional financial data of the clustered customer groups to remove abnormal financial data from the data set.

[0011] In the above scheme, the original data matrix corresponding to the multi-dimensional financial data of multiple customers is first constructed, and the original data matrix is ​​simplified to obtain a whitening matrix, and the direction vector analysis is performed on the whitening matrix to obtain the direction vector of each iteration and the corresponding projection matrix. The direction vector can reflect the performance of different customer groups, and the projection matrix can reflect the distribution characteristics of the data in the whitening matrix, which is convenient for the subsequent performance evaluation of the customer group. Since different customer groups have different sensitivities to different financial data, the distribution characteristics of the direction vector reflecting the degree of customer group representation are first analyzed to obtain the customer group representation degree under different direction vectors, and based on the customer group representation degree, the main direction vector that can better reflect the characteristics of the customer group is selected, and the main direction vector is used as a benchmark to achieve customer group classification. Finally, outlier detection is performed on different categories of clustered customer groups, and the purpose of eliminating abnormal financial data from the data set is achieved. Compared to the method of analyzing and comparing the statistical data of all financial data to identify outliers, the embodiment of the present invention classifies customers into groups and performs anomaly detection on different customer groups based on the differences in their perception of financial data. This can help identify individuals or data points that are abnormal in a specific group, thereby improving the detection accuracy when identifying outliers.

[0012] Furthermore, the iterative decomposition of the whitening matrix to obtain the direction vector of each iteration and the projection matrix of the whitening matrix under the corresponding direction vector includes:

[0013] The whitening matrix is ​​iteratively decomposed into principal components by an ICA algorithm to obtain a direction vector for each iteration; and the whitening matrix is ​​projected on the direction vector for each iteration to obtain a projection matrix of the whitening matrix under the corresponding direction vector.

[0014] In the above solution, by using the ICA algorithm to perform principal component analysis on multidimensional data, the performance of different customer groups can be more accurately reflected. The ICA algorithm can effectively identify independent components in the data, thereby revealing the potential structure and relationship hidden behind the multidimensional data.

[0015] Furthermore, performing element analysis on the projection matrix to obtain the data kurtosis of the projection matrix includes:

[0016] Get all data elements in the projection matrix of the whitening matrix under the direction vector of each iteration;

[0017] The difference fluctuation between the data element and the data baseline is compared to determine the data kurtosis of the projection matrix.

[0018] In the above scheme, the kurtosis of data can reflect the kurtosis and cuspness of the distribution of all data elements in the projection matrix of the whitening matrix. The larger the data kurtosis, the greater the kurtosis and cuspness of the element data in the projection matrix under the current direction vector, and the more the corresponding data is relatively clustered, which reflects that the possibility of a projection matrix representing a customer group is greater.

[0019] Furthermore, the analysis of the aggregation of data in the projection matrix and the data kurtosis to determine the degree of representation of the customer group under the direction vector of each iteration includes:

[0020] According to the clustering of data elements in the projection matrix, the clustered distribution value of the projection matrix is ​​determined; in combination with the clustered distribution value of the projection matrix and the data kurtosis, the customer group representation degree of the whitening matrix under the direction vector of each iteration is determined; wherein, the clustered distribution value and the data kurtosis are both positively correlated with the customer group representation degree.

[0021] Furthermore, based on the customer group representation degree, some direction vectors are screened out as main direction vectors, including:

[0022] In the iterative decomposition process of the ICA algorithm, for the direction vector in each iterative process, the direction vector corresponding to the customer group representation degree being greater than a preset representation threshold is used as the main direction vector.

[0023] In the above scheme, the main direction vector is obtained by screening the direction vector, and the main direction vector can better reflect a customer group, which helps to ensure that the subsequent division of customer groups based on the main direction vector is more reasonable and accurate, thereby improving the reliability and effectiveness of subsequent analysis.

[0024] Furthermore, after selecting some direction vectors based on the customer group representation degree as main direction vectors, the method further includes:

[0025] During the iterative decomposition process of the ICA algorithm, when the direction vector is less than a preset characterization threshold, the iteration of the ICA algorithm is stopped and the current number of iterations is obtained.

[0026] Furthermore, the customer clustering is performed based on the main direction vector to obtain at least two clustered customer groups, including:

[0027] Analyze the multi-dimensional financial data of different customers and the discreteness of each main direction vector to determine the distance metric;

[0028] Based on the customer group representation degree, weighting the distance metric to obtain a weighted metric value;

[0029] Based on the weighted metric values, different customers are clustered to obtain at least two clustered customer groups.

[0030] In the above scheme, the main customer groups are used for clustering, that is, the main direction vectors obtained by the ICA algorithm are used for clustering, which can better divide the customer groups and make the clustering results more excellent. Clustering can effectively assign data points to different clusters and can handle large-scale data sets, so it can provide a more appropriate grouping method for customer groups.

[0031] Furthermore, the performing of outlier detection on the multi-dimensional financial data of the clustered customer group and removing the abnormal financial data from the data set includes:

[0032] For the multi-dimensional financial data of each customer in the clustered customer group, outlier detection is performed using the Z-score algorithm to obtain outliers; the multi-dimensional financial data corresponding to the outliers are regarded as abnormal financial data and removed from the data set.

[0033] In the above scenario, by performing outlier detection within different clustered customer groups, it can help identify those individuals or data points that behave abnormally within a specific group.

[0034] Furthermore, the obtaining of a whitening matrix corresponding to the original data matrix includes:

[0035] A whitening operation is performed on the original data matrix to obtain a whitened matrix.

[0036] In a second aspect, an embodiment of the present invention provides a financial risk prevention and control large model data processing electronic device, including a memory and a processor, wherein the memory stores executable code, and the processor executes the following modules:

[0037] The acquisition module is used to collect multi-dimensional financial data of each customer and construct the original data matrix accordingly;

[0038] A decomposition module is used to obtain a whitening matrix corresponding to the original data matrix; iteratively decompose the whitening matrix to obtain a direction vector of each iteration and a projection matrix of the whitening matrix under the corresponding direction vector;

[0039] A determination module is used to perform element analysis on the projection matrix to obtain the data kurtosis of the projection matrix; analyze the aggregation and the data kurtosis of the data in the projection matrix to determine the degree of customer group representation under the direction vector of each iteration;

[0040] The screening module is used to screen out some direction vectors as main direction vectors based on the customer group characterization degree; cluster the customers based on the main direction vectors to obtain at least two clustered customer groups; perform outlier detection on the multidimensional financial data of the clustered customer groups to remove the abnormal financial data from the data set.

[0041] In a third aspect, an embodiment of the present invention provides a computer program product, which includes: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.

[0042] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute various possible implementations of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 A method flow chart of a method for processing data of a large model for financial risk prevention and control provided by an embodiment of the present invention;

[0045] Figure 2 A method flow chart of a method for obtaining customer group representation degree provided by an embodiment of the present invention;

[0046] Figure 3 A method flow chart of a method for obtaining data kurtosis of a projection matrix provided by one embodiment of the present invention;

[0047] Figure 4 Another method flow chart of a method for obtaining customer group representation provided by an embodiment of the present invention;

[0048] Figure 5 A method flow chart of a method for obtaining clustered customer groups provided by an embodiment of the present invention;

[0049] Figure 6 A schematic diagram of the structure of a computer device provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to further illustrate the technical means and effects adopted by the present invention to achieve the predetermined purpose of the invention, the following, in combination with the accompanying drawings and preferred embodiments, a financial risk prevention and control large model data processing method and electronic device proposed by the present invention, its specific implementation method, structure, characteristics and effects are described in detail as follows.

[0051] In the following description, different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0052] Among them, in the description of the embodiments of the present invention, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a way to describe the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present invention, "multiple" refers to two or more than two.

[0053] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0054] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0055] The embodiments of the present invention are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems.

[0056] The following is a detailed description of a financial risk prevention and control large model data processing method and a specific scheme of an electronic device provided by the present invention in conjunction with the accompanying drawings.

[0057] See also Figure 1, which shows a flowchart of a method for processing data of a large model for financial risk prevention and control provided by an embodiment of the present invention, the method comprising the following steps:

[0058] Step S100, collecting multi-dimensional financial data of each customer and constructing a corresponding original data matrix.

[0059] Various financial data of each customer are collected through the mobile payment platform, wherein the financial data includes the total consumption data of the customer, the proportion of each type of consumption, the transaction frequency of each type of consumption, the consumption speed of the purchased virtual resources, and other financial data. More specific virtual resources may include virtual data such as phone charges and traffic. It should be noted that all financial data are data within a unit of time, and the time range is set to 1 month in the embodiment of the present invention. Among them, the dimensions of the multi-dimensional financial data corresponding to the customer are the same as the number of types of financial data collected.

[0060] Get multi-dimensional financial data of each customer , and then construct the original data matrix based on the multidimensional financial data of all customers ,in, Represents the number of dimensions of multidimensional financial data, that is, each customer has Items of financial data; represents the number of customers; where the matrix The elements within Indicates Customer's Financial data.

[0061] Step S200, obtaining a whitening matrix corresponding to the original data matrix; iteratively decomposing the whitening matrix to obtain a direction vector for each iteration and a projection matrix of the whitening matrix under the corresponding direction vector.

[0062] In the big data of the mobile payment platform, each customer often has multi-dimensional financial data, that is, multi-dimensional financial data. In step S100, the original data matrix is ​​constructed through the multi-dimensional financial data of multiple customers, that is, the original data matrix can reflect the financial data information of different customers. In different customer groups, their sensitivity to different types of financial data is different, which also leads to different standards for different customer groups to divide the outliers of financial data of different dimensions, and the financial data of the same dimension between different customer groups will interfere with each other when performing abnormal monitoring. The embodiment of the present invention wants to achieve the purpose of obtaining more accurate outlier detection results by dividing customers into groups and performing outlier detection on customer groups with different needs. Therefore, the characteristics of different direction vectors can be obtained by combining the ICA algorithm for multiple iterative decompositions. First, the direction vector updated by the whitening matrix corresponding to the original data matrix at each iteration is obtained, and the projection matrix of the whitening matrix on the direction vector is obtained, that is, the projection matrix of the whitening matrix under the direction vector is obtained to simplify subsequent analysis.

[0063] When dividing different customers into customer groups, since customers have multiple dimensions of financial data, they can be understood as having multiple dimensions of characteristic parameters. Because the data aggregation of multiple dimensions needs to be considered during clustering, the financial data of different customers is machine-learned through the ICA algorithm, so as to analyze the financial data of customers, so as to better distinguish customer groups, and thus perform better data cleaning between different user groups, and obtain more personalized outlier judgment standards, so as to improve the data quality in big data and the effect of model training.

[0064] Different customer groups must have significant differences in multi-dimensional financial data, so they can be divided into different customer groups. The division between different customer groups is often affected by multi-dimensional financial data. Therefore, the main customer groups are reflected in the multi-dimensional financial data in the form of principal components.

[0065] Therefore, the multidimensional data of all customers is decomposed through the Independent Component Analysis (ICA) algorithm to obtain multiple principal component data. Then the data clustering is judged by the data in each principal component direction. The stronger the clustering, the more concentrated the customers in the current principal component direction, the clearer the customer group, and the greater the probability that the more concentrated the customers belong to the same customer group.

[0066] Since the principal component of the ICA algorithm is iteratively decomposed, during the iteration process, when the degree of aggregation of customer data in the current principal component direction is lower than a certain threshold, the embodiment of the present invention believes that there is no longer a main customer group division at this time, and the iteration should be stopped at this time.

[0067] Before independent component analysis, it is usually necessary to perform whitening on the observed data, wherein the purpose of whitening is to convert the covariance matrix of the data into a unit matrix so that the correlation between different dimensions is eliminated, thereby simplifying the subsequent analysis process. That is, in some possible implementations, the original data matrix corresponding to the multiple customers obtained in step S100 is first whitened to obtain a whitened matrix It should be noted that the whitening operation is a preprocessing step in the ICA algorithm, which is a well-known technique to those skilled in the art and will not be described in detail here.

[0068] After the whitening process is completed, the principal component estimation can be started iteratively. That is, the whitening matrix Perform iterative decomposition of the principal components to obtain the direction vector in the current iteration cycle It should be noted that in each iteration, a direction vector is usually updated, and this direction vector represents a principal component direction estimated in the current iteration loop. This process can be implemented using various existing algorithms, such as the fixed point algorithm, among which the fixed point algorithm is also called the FastICA algorithm.

[0069] The whitening matrix is ​​projected onto the direction vector in the current iteration loop to obtain the corresponding projection matrix. It should be noted that projecting the whitening matrix onto the vector and obtaining the projection matrix is ​​a common linear algebra operation, which is a well-known technique for those skilled in the art and will not be described in detail here.

[0070] Step S300, performing element analysis on the projection matrix to obtain the data kurtosis of the projection matrix; analyzing the aggregation of the data in the projection matrix and the data kurtosis to determine the customer group representation degree under the direction vector of each iteration.

[0071] Since the projection matrix can be understood as a simplified matrix containing the multidimensional financial data of each customer, element analysis of the projection matrix can reflect the characteristics of the analysis of the multidimensional financial data of the customer. It can be seen that data kurtosis can be used to reflect the statistics of the data distribution shape, which is used to measure the kurtosis and cuspness of the data distribution. When the data kurtosis is larger, the kurtosis and cuspness of the element data in the projection matrix under the current direction vector are larger, and the corresponding data is relatively more clustered, which reflects that a projection matrix represents a customer group. The greater the clustering of the data of the same projection matrix, the greater the possibility that a projection matrix represents a customer group. Therefore, the two characteristics of the data kurtosis and clustering of the projection matrix are combined to determine the degree of customer group representation under the direction vector of each iteration.

[0072] According to the above analysis, the stronger the data aggregation of the multidimensional financial data of the customer on each direction vector in the iterative process of the ICA algorithm, the stronger the data aggregation of the direction vector in the iterative process. The more it can represent the main customer group, the more it is necessary to calculate the direction vector in the iteration cycle during the iteration process of the ICA algorithm. The data aggregation on .

[0073] Direction Vector The more it can represent the customer's data characteristics, the more likely the customer data will be in the direction vector of the ICA iteration. The smaller the projection on the whitening matrix, the smaller the direction vector in the current iteration cycle. The projection matrix on The smaller the overall value, the more likely the customer is in the current direction vector. The stronger the aggregation, the direction vector The more it can represent the main group of customers. Therefore, the direction vector of the whitening matrix in the current iteration loop The projection matrix on The smaller the overall value, the more likely the customer data is in the direction vector The stronger the aggregation.

[0074] In addition, considering that data that does not belong to the current customer group will also be in the current direction vector There are projections, and there are data differences between different customers in the same customer group. The kurtosis analysis of the projection matrix data is performed. When the projection matrix The larger the kurtosis of the data corresponding to the histogram of the data in the projection matrix, the larger the kurtosis of the data corresponding to the data in the projection matrix. The more concentrated the data distribution of the customer group is, the more likely it is that the customer group that does not belong to the current direction vector The weaker the performance, the direction vector The more it represents the customer base.

[0075] In some embodiments, the projection matrix is ​​analyzed to determine the data kurtosis, and the customer group representation degree corresponding to the direction vector is determined by combining the data kurtosis and the data aggregation of the projection matrix. The customer group representation degree reflects the possibility that the direction vector can represent a customer group. That is, the above step S300 can be performed by Figure 2 The steps shown achieve:

[0076] Step S310, performing element analysis on the projection matrix of the whitening matrix under the direction vector of each iteration to obtain the data kurtosis of the projection matrix.

[0077] Therefore, further, firstly, element data analysis is performed on the projection matrix corresponding to the direction vector of each iteration.

[0078] In some possible implementations, the data kurtosis of the data in the projection matrix is ​​determined by analyzing the element data of the projection matrix, that is, the above step S310 can be performed by Figure 3 Steps S311 to S312 shown implement:

[0079] Step S311, obtaining all data elements in the projection matrix of the whitening matrix under the direction vector of each iteration.

[0080] In some embodiments, a corresponding statistical histogram may also be constructed from all data elements in the projection matrix of the whitening matrix under the direction vector of each iteration.

[0081] Step S312, comparing the difference fluctuation between the data element and the data baseline to determine the data kurtosis of the projection matrix.

[0082] By comparing the difference between the data elements in the projection matrix and the set data baseline, the data kurtosis of the corresponding projection matrix is ​​determined. In the embodiment of the present invention, the data baseline is set to the baseline when the value is 0 in the histogram.

[0083] In another embodiment of the present invention, the data baseline may be set as a baseline whose value in the histogram is the mean value of the data elements. In other embodiments of the present invention, the data baseline may be adjusted by the implementer according to actual conditions.

[0084] The data kurtosis of the projection matrix is ​​determined based on the difference between the values ​​corresponding to the data elements in the projection matrix and the data baseline.

[0085] In some possible implementations, the calculation formula for the data kurtosis of the projection matrix is: ;in, is the direction vector The data kurtosis of the corresponding projection matrix; is the direction vector The kth data element in the corresponding projection matrix; C is the direction vector The total number of data elements in the corresponding projection matrix; is the direction vector The root mean square of the data elements in the corresponding projection matrix; 0 is the value corresponding to the data baseline in this embodiment.

[0086] in, Represents the projection matrix The greater the kurtosis of all data elements in the projection matrix, the greater the kurtosis of the data. The more concentrated the data distribution of the customer group is, the more likely it is that the customer group that does not belong to the current direction vector The weaker the performance, the direction vector The more it represents the customer base.

[0087] Step S320, analyzing the aggregation of the data in the projection matrix and the data kurtosis, and determining the degree of customer group representation under the direction vector of each iteration.

[0088] Because when the projection matrix corresponding to the direction vector can better represent a customer group, the data distribution of the customer group in the corresponding projection matrix is ​​more concentrated and clustered, and the data kurtosis of the projection matrix corresponding to the direction vector is also greater. Further, combined with this feature, the degree of customer group representation under each iteration of the direction vector is determined.

[0089] In some possible implementations, the customer group representation degree under the direction vector of each iteration is determined by analyzing the aggregation and kurtosis of the data in the projection matrix, that is, the above step S320 can be performed by Figure 4 Steps S321 to S322 shown implement:

[0090] Step S321, determining the clustering distribution value of the projection matrix according to the clustering of the data elements in the projection matrix.

[0091] In one embodiment of the present invention, the root mean square of the data elements in the projection matrix is ​​used as the discreteness of the data elements, and further, the negative correlation mapping value of the discreteness is used as the clustered distribution value of the projection matrix.

[0092] In another embodiment of the present invention, the negative correlation mapping value of the variance of the data elements in the projection matrix can also be used as the clustered distribution value of the projection matrix. The common feature of the variance and the root mean square corresponding to the multiple data is that they can both represent the density of the multiple data.

[0093] Step S322, combining the clustered distribution value and the data kurtosis of the projection matrix, determining the customer group representation degree of the whitening matrix under the direction vector of each iteration.

[0094] Among them, the cluster distribution value and the data kurtosis are both positively correlated with the customer group representation degree.

[0095] In one embodiment of the present invention, the normalized value of the product of the clustered distribution value of the projection matrix and the data kurtosis may be used as the customer group characterization degree under the direction vector of each iteration.

[0096] In another embodiment of the present invention, the normalized value of the sum of the clustered distribution value and the data kurtosis of the projection matrix can also be used as the customer group representation degree under each iteration direction vector. In other embodiments of the present invention, as long as the clustered distribution value and the data kurtosis are both positively correlated with the customer group representation degree, the customer group representation degree is a normalized value.

[0097] In some possible implementations, the calculation formula for customer group representation is: ;in, is the direction vector The corresponding customer group representation degree; is the direction vector The data kurtosis of the corresponding projection matrix; is the direction vector The root mean square of the data elements in the corresponding projection matrix, that is, the direction vector The discreteness of the corresponding projection matrix; is the direction vector The corresponding clustered distribution value of the projection matrix; is the normalization function.

[0098] It can be understood that the negative correlation mapping of the discreteness of the projection matrix is ​​achieved through the inverse of the root mean square. In other embodiments, the negative correlation mapping of the discreteness can also be achieved through a logarithmic function, such as exp (-x).

[0099] Among them, the smaller the cluster distribution value, the larger the overall projection value of the customer data on the direction vector, indicating that the clustering of the customer data on the direction vector is weaker, and the direction vector is less able to represent the main customer group. Conversely, the larger the cluster distribution value, the smaller the overall projection value of the customer data on the direction vector, indicating that the clustering of the customer data on the direction vector is stronger, and the direction vector is more able to represent the main customer group. Correspondingly, the larger the data kurtosis, that is, the more concentrated the data distribution of the customer group in the projection matrix, and the weaker the performance of those who do not belong to the current customer group in the current direction vector, the more the corresponding direction vector can represent the customer group.

[0100] Step S400, based on the customer group representation degree, select some direction vectors as main direction vectors; based on the main direction vectors, cluster the customers to obtain at least two clustered customer groups; perform outlier detection on the multidimensional financial data of the clustered customer groups, and remove the abnormal financial data from the data set.

[0101] Since not all direction vectors can reflect a customer group, and the embodiment of the present invention requires direction vectors that can reflect a customer group to participate in the subsequent customer classification, and the customer group characterization degree can reflect the ability of the direction vector to reflect a customer group data, in the embodiment of the present invention, based on the customer group characterization degree, some direction vectors with strong characterization ability are screened out from the direction vector as the main direction vector. And with the main direction vector as the center, clustering is performed based on the main direction vector, and then the customers are divided into multiple groups, which are recorded as clustered customer groups. Since different clustered customer groups have different sensitivities to different financial data, outlier detection is performed on the multidimensional financial data corresponding to different clustered customer groups, so as to achieve the purpose of eliminating the abnormal financial data obtained by the abnormal monitoring algorithm from the data set. Compared with the abnormality detection based on all partial types of financial data, the accuracy of detecting abnormal financial data is better when the abnormality detection is performed on different customer groups separately.

[0102] In the iterative decomposition process of the ICA algorithm, the direction vector Calculate the customer group representation .

[0103] And based on the customer group representation degree, some direction vectors are screened out as the main direction vectors.

[0104] More specifically, in the iterative decomposition process of the ICA algorithm, for each direction vector in the iterative process, the direction vector corresponding to the customer group representation degree being greater than the preset representation threshold is used as the main direction vector. In the embodiment of the present invention, the representation threshold is preset according to the empirical value. In other embodiments, the implementer may adjust the value according to actual conditions.

[0105] It is understandable that characterizing customer groups Exceeding the preset characterization threshold Direction vector As a major customer group, the corresponding direction vector is recorded as the main direction vector. Then, when the ICA algorithm is iteratively decomposed, the direction vector When it is less than a preset characterization threshold, the iteration of the ICA algorithm is stopped, and the current number of iterations is further obtained.

[0106] At this time, get the number of iterations , and obtain the corresponding main direction vector and customer group representation degree during iteration. For example, for the u-th main direction vector, it is recorded as , and its corresponding customer group representation degree is recorded as , the number of iterations The number of main customer groups in the customer data is also the number of clusters of customer groups during clustering.

[0107] The number of major customer groups calculated above The number of clustered groups is K. Based on the main direction vector, customers are clustered to obtain at least two clustered customer groups.

[0108] In the embodiment of the present invention, the clustering algorithm is used to cluster the customers, that is, Figure 5 Steps S410 to S430 shown implement:

[0109] Step S410, analyzing the multi-dimensional financial data of different customers and the discreteness of each main direction vector to determine the distance metric.

[0110] Understandably, K is set to the number of iterations N. Further, the multi-dimensional financial data of different customers and the discreteness of each main direction vector are analyzed to determine the distance metric.

[0111] In some possible implementations, the above main direction vectors are used as cluster centers, and the number of iterations N is the number of cluster centers. The multidimensional financial data of the i-th customer is calculated. With each main direction vector The transposed matrix of Cosine similarity of , where multidimensional financial data The form is . The multidimensional financial data of the i-th customer With each main direction vector The transposed matrix of Cosine similarity of The reciprocal of is used as the distance metric.

[0112] Here, the inverse of the cosine similarity between the transposed matrix of the multidimensional financial data and the main direction vector is used to reflect the discreteness of the multidimensional financial data and each main direction vector. It should be noted that the number of distance metrics corresponding to each customer is the number of main direction vectors.

[0113] Step S420: weighting the distance metric based on the customer group representation degree to obtain a weighted metric value.

[0114] The main direction vector Corresponding customer group representation As the clustering weight, the distance metric is weighted to obtain the multidimensional financial data of the i-th customer compared with each main direction vector The weighted measure of ;in, is the multi-dimensional financial data of the i-th customer.

[0115] Step S430: cluster different customers based on the weighted metric values ​​to obtain at least two clustered customer groups.

[0116] The multidimensional financial data corresponding to each customer calculated above is compared with the main direction vector of each cluster center The weighted measure of enter In the clustering algorithm, we then set The number of cluster centers of the clustering algorithm for ,conduct Clustering, get The user clustering results are recorded as Clustered customer groups.

[0117] Steps S410 to S430 implement a process of clustering customers to obtain at least two clustered customer groups.

[0118] Furthermore, outlier detection is performed on the multi-dimensional financial data of the clustered customer group, and the abnormal financial data is removed from the data set.

[0119] Then, in each clustered customer group after clustering, the financial data of each customer in the clustered customer group is detected for outliers through Z-score, and the outliers are removed from the data set. More specifically, for the multi-dimensional financial data of each customer in each clustered customer group, outliers are detected through the Z-score algorithm to obtain outliers; the multi-dimensional financial data corresponding to the outliers are regarded as abnormal financial data and removed from the data set. It should be noted that the method of performing anomaly monitoring on multi-dimensional data through the Z-score algorithm is a well-known technology for those skilled in the art and will not be described in detail here.

[0120] The outlier data cleaning of financial risk prevention and control big data has been completed.

[0121] Preferably, the cleaned data set from which abnormal financial data has been removed can also be input into a training model to complete the training of the data model.

[0122] An embodiment of the present invention provides a financial risk prevention and control large model data processing electronic device, including a memory and a processor, wherein the memory stores an executable code, and the processor is used to call and execute the executable program code to perform a financial risk prevention and control large model data processing method provided by an embodiment of the present invention, specifically executing the following modules:

[0123] The acquisition module collects multi-dimensional financial data of each customer and constructs the original data matrix accordingly;

[0124] A decomposition module is used to obtain a whitening matrix corresponding to the original data matrix; the whitening matrix is ​​iteratively decomposed to obtain a direction vector of each iteration and a projection matrix of the whitening matrix under the corresponding direction vector;

[0125] A determination module performs element analysis on the projection matrix to obtain the data kurtosis of the projection matrix; analyzes the aggregation of data in the projection matrix and the data kurtosis to determine the degree of customer group representation under the direction vector of each iteration;

[0126] The screening module selects some direction vectors as main direction vectors based on the customer group representation degree; clusters the customers based on the main direction vectors to obtain at least two clustered customer groups; performs outlier detection on the multidimensional financial data of the clustered customer groups, and removes the abnormal financial data from the data set.

[0127] In some possible implementations, the decomposition module is also used to iteratively decompose the whitening matrix into principal components through an ICA algorithm to obtain a direction vector for each iteration; and project the whitening matrix onto the direction vector for each iteration to obtain a projection matrix of the whitening matrix under the corresponding direction vector.

[0128] In some possible implementations, the determination module is further used to obtain all data elements in the projection matrix of the whitening matrix under the direction vector of each iteration;

[0129] The difference fluctuation between the data element and the data baseline is compared to determine the data kurtosis of the projection matrix.

[0130] In some possible implementations, the determination module is further used to determine the clustered distribution value of the projection matrix based on the clustering of data elements in the projection matrix; and to determine the customer group representation degree of the whitening matrix under the direction vector of each iteration by combining the clustered distribution value of the projection matrix and the data kurtosis; wherein the clustered distribution value and the data kurtosis are both positively correlated with the customer group representation degree.

[0131] In some possible implementations, the screening module is further used to, during the iterative decomposition process of the ICA algorithm, for each direction vector in the iterative process, take the direction vector corresponding to the customer group representation degree being greater than a preset representation threshold as the main direction vector.

[0132] In some possible implementations, the screening module is further used to stop the iteration of the ICA algorithm and obtain the current number of iterations when the direction vector is smaller than a preset characterization threshold during the iterative decomposition process of the ICA algorithm.

[0133] In some possible implementations, the screening module is further used to analyze the multi-dimensional financial data of different customers and the discreteness of each main direction vector to determine the distance metric;

[0134] Based on the customer group representation degree, weighting the distance metric to obtain a weighted metric value;

[0135] Based on the weighted metric values, different customers are clustered to obtain at least two clustered customer groups.

[0136] In some possible implementations, the screening module is further used to perform outlier detection on the multidimensional financial data of each customer in the clustered customer group through a Z-score algorithm to obtain outliers; the multidimensional financial data corresponding to the outliers are used as abnormal financial data and are removed from the data set.

[0137] In some possible implementations, the decomposition module is further configured to perform a whitening operation on the original data matrix to obtain a whitened matrix.

[0138] Optionally, the transmission medium may be a wired link, such as but not limited to coaxial cable, optical fiber, and digital subscriber line, or a wireless link, such as but not limited to Wireless Fidelity (WIFI), Bluetooth, and mobile device network.

[0139] It should be noted that: the device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the shopping guide device provided in the above embodiment and the image extension method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0140] Figure 6 FIG. 1 is a schematic diagram of a computer device provided by an embodiment of the present invention. Figure 6As shown, the computer device 600 includes: a memory 610, a processor 620, and a computer program 630 stored in the memory 610 and running on the processor 620, wherein when the processor 620 executes the computer program 630, the computer device can execute any one of the financial risk prevention and control large model data processing methods introduced above.

[0141] The embodiment of the present invention can divide the functional modules of the device according to the above method example. For example, each functional module can be corresponded, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0142] In the case of dividing each module according to each function, the device may also include a signal uploading module and an adjustment module, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.

[0143] It should be understood that the device provided in an embodiment of the present invention is used to execute the above-mentioned financial risk prevention and control large model data processing method, and thus can achieve the same effect as the above-mentioned implementation method.

[0144] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is applied to a device, the processing module may be used to control and manage the actions of the device. The storage module may be used to support the device to execute mutual program codes, etc. The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. The processor may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.

[0145] In addition, the device provided in an embodiment of the present invention may specifically be a chip, a component or a module, and the chip may include a connected processor and a memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a financial risk prevention and control large model data processing method provided in the above embodiment.

[0146] An embodiment of the present invention also provides a computer-readable storage medium, which stores computer program code. When the computer program code runs on a computer, the computer executes the above-mentioned related method steps to implement a financial risk prevention and control large model data processing method provided by the above embodiment.

[0147] An embodiment of the present invention also provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the above-mentioned related steps to implement a financial risk prevention and control large model data processing method provided in the above embodiment.

[0148] Among them, the device, computer-readable storage medium, computer program product or chip provided in the embodiments of the present invention are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here. Through the description of the above implementation methods, technicians in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways.

[0149] The device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. There may be other divisions in actual implementation. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, which may be electrical, mechanical or other forms.

[0150] It should also be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0151] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0152] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0153] The above contents are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for processing data of a large financial risk prevention and control model, characterized in that: The method comprises the following steps: Collect multi-dimensional financial data of each customer and construct the original data matrix accordingly; the financial data includes: the total consumption data of the customer, the proportion of each type of consumption, the transaction frequency of each type of consumption, and the consumption speed of the purchased virtual resources, including phone charges and traffic; Obtain a whitening matrix corresponding to the original data matrix; iteratively decompose the whitening matrix to obtain a direction vector for each iteration and a projection matrix of the whitening matrix under the corresponding direction vector; Performing element analysis on the projection matrix to obtain the data kurtosis of the projection matrix; analyzing the aggregation of data in the projection matrix and the data kurtosis to determine the degree of customer group representation under the direction vector of each iteration; Based on the customer group representation degree, select some direction vectors as main direction vectors; based on the main direction vectors, cluster the customers to obtain at least two clustered customer groups; perform outlier detection on the multidimensional financial data of the clustered customer groups, and remove the abnormal financial data from the data set; The iterative decomposition of the whitening matrix to obtain the direction vector of each iteration and the projection matrix of the whitening matrix under the corresponding direction vector includes: Iteratively decompose the whitening matrix into principal components by using an ICA algorithm to obtain a direction vector for each iteration; and project the whitening matrix onto the direction vector for each iteration to obtain a projection matrix of the whitening matrix under the corresponding direction vector; The clustering of customers based on the main direction vector to obtain at least two clustered customer groups includes: Analyze the multi-dimensional financial data of different customers and the discreteness of each main direction vector to determine the distance metric; Based on the customer group representation degree, weighting the distance metric to obtain a weighted metric value; Based on the weighted metric values, different customers are clustered to obtain at least two clustered customer groups.

2. The method for processing data of a large financial risk prevention and control model according to claim 1 is characterized in that: The performing element analysis on the projection matrix to obtain the data kurtosis of the projection matrix includes: Get all data elements in the projection matrix of the whitening matrix under the direction vector of each iteration; The difference fluctuation between the data element and the data baseline is compared to determine the data kurtosis of the projection matrix.

3. The method for processing data of a large financial risk prevention and control model according to claim 1 is characterized in that: The analyzing the aggregation of data in the projection matrix and the data kurtosis to determine the degree of representation of the customer group under the direction vector of each iteration includes: According to the clustering of data elements in the projection matrix, the clustered distribution value of the projection matrix is ​​determined; in combination with the clustered distribution value of the projection matrix and the data kurtosis, the customer group representation degree of the whitening matrix under the direction vector of each iteration is determined; wherein, the clustered distribution value and the data kurtosis are both positively correlated with the customer group representation degree.

4. The method for processing data of a large financial risk prevention and control model according to claim 1, characterized in that: The method of selecting some direction vectors based on the customer group representation as main direction vectors includes: In the iterative decomposition process of the ICA algorithm, for the direction vector in each iterative process, the direction vector corresponding to the customer group representation degree being greater than a preset representation threshold is used as the main direction vector.

5. The method for processing data of a large financial risk prevention and control model according to claim 1, characterized in that: After selecting some direction vectors based on the customer group representation degree as main direction vectors, the method further includes: During the iterative decomposition process of the ICA algorithm, when the direction vector is less than a preset characterization threshold, the iteration of the ICA algorithm is stopped and the current number of iterations is obtained.

6. The method for processing data of a large financial risk prevention and control model according to claim 1 is characterized in that: The performing outlier detection on the multi-dimensional financial data of the clustered customer group and removing the abnormal financial data from the data set includes: For the multi-dimensional financial data of each customer in the clustered customer group, outlier detection is performed using the Z-score algorithm to obtain outliers; the multi-dimensional financial data corresponding to the outliers are regarded as abnormal financial data and removed from the data set.

7. The method for processing data of a large financial risk prevention and control model according to claim 1, characterized in that: The step of obtaining a whitening matrix corresponding to the original data matrix includes: A whitening operation is performed on the original data matrix to obtain a whitened matrix.

8. An electronic device for processing large-scale model data of financial risk prevention and control, characterized in that: The electronic device includes a processor, wherein the processor executes the following modules: The collection module is used to collect multi-dimensional financial data of each customer and construct the original data matrix accordingly; the financial data includes: the total consumption data of the customer, the proportion of each type of consumption, the transaction frequency of each type of consumption, the consumption speed of the purchased virtual resources, and the virtual resources include phone charges and traffic; A decomposition module is used to obtain a whitening matrix corresponding to the original data matrix; iteratively decompose the whitening matrix to obtain a direction vector of each iteration and a projection matrix of the whitening matrix under the corresponding direction vector; wherein the projection matrix is ​​obtained by iteratively decomposing the whitening matrix by principal components through an ICA algorithm to obtain a direction vector of each iteration; and projecting the whitening matrix on the direction vector of each iteration to obtain a projection matrix of the whitening matrix under the corresponding direction vector; A determination module is used to perform element analysis on the projection matrix to obtain the data kurtosis of the projection matrix; analyze the aggregation and the data kurtosis of the data in the projection matrix to determine the degree of customer group representation under the direction vector of each iteration; A screening module is used to screen out some direction vectors as main direction vectors based on the customer group representation degree; cluster customers based on the main direction vectors to obtain at least two clustered customer groups; perform outlier detection on the multidimensional financial data of the clustered customer groups to remove the abnormal financial data from the data set; wherein, the method for obtaining the clustered customer groups is: analyzing the discrete conditions of the multidimensional financial data of different customers and each main direction vector to determine the distance metric; weighting the distance metric based on the customer group representation degree to obtain a weighted metric value; clustering different customers based on the weighted metric value to obtain at least two clustered customer groups.