A financial product recommendation method, system, storage medium and device
Through the self-encoding neural network model and optimized clustering algorithm, the problem of local similarities in financial data not being considered is solved, the clustering accuracy and the accuracy of financial product recommendation are improved, and it is suitable for massive data analysis in the financial industry.
Patent Information
- Application Number
- CN202111027573.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-02
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-09-02
AI Technical Summary
Existing deep clustering algorithms fail to fully consider the local similarity of users' financial data samples in financial data, resulting in inaccurate clustering results and affecting the recommendation effect of financial products.
An autoencoding neural network model is used, combined with the stochastic gradient descent method and the Lagrange multiplier method, and the fuzzy clustering loss of hidden layer features, graph constraints, and the entropy of the affinity matrix are introduced during the training process of the autoencoding neural network model. Item, optimize the cluster center and affinity matrix, use KNN algorithm to obtain nearest neighbor data, and improve clustering accuracy.
It improves the clustering accuracy of financial data, can more accurately recommend financial products, is suitable for different professions and individual users, and enhances financial risk investment analysis capabilities.
Smart Images

Figure CN113656707B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of financial product recommendation, and in particular relates to a financial product recommendation method, system, storage medium and device. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] With the rapid development of 5G, the number and attributes of samples have surged. For example, the total analysis and evaluation of financial development, including basic user information, different credit ratings, years of work, transaction types, etc., requires different policies for different regions to make economic development more balanced. Faced with such a huge amount of data and high attributes, and the implicit features within the samples are no longer obvious, traditional clustering algorithms have been difficult to process such data. However, deep neural networks (DNNs) have the characteristics of nonlinear transformation, which can extract more abstract data features, which is beneficial to the clustering process. Therefore, a large number of deep clustering algorithms based on neural networks have been proposed. Including methods based on autoencoders (AE), methods based on variational autoencoders (VAE), and methods based on generative adversarial networks (GAN). Among them, AE, as one of the most important unsupervised representation learning models, provides a nonlinear mapping from the data layer to the representation layer, ensuring the minimum reconstruction error. Therefore, it has become a research hotspot in recent years.
[0004] Although deep neural networks can extract deep feature information of high-attribute samples, which is of great help in data mining, most of the current deep clustering algorithms only focus on the global structure of the target user's financial data, and do not consider the effective information of the local similarity of the target user's financial data samples. This is insufficient for the clustering result division of the target user's financial boundary data points; and the affinity matrix between the target user's financial data samples is a very important criterion for measuring neighbors. If the affinity matrix is not initialized accurately, it will have a great impact on the clustering result of the target user's population, and thus fail to recommend accurate financial products to users. Summary of the invention
[0005] In order to solve the technical problems existing in the above-mentioned background technology, the present invention provides a financial product recommendation method and system, which can recommend accurate financial products to users.
[0006] In order to achieve the above object, the present invention adopts the following technical solution:
[0007] A first aspect of the present invention provides a financial product recommendation method, comprising:
[0008] Obtain financial management user data;
[0009] Based on the financial management user data and the trained auto-encoding neural network model, the recommended financial management product types are obtained;
[0010] Among them, the training process of the autoencoder neural network model is:
[0011] Use financial management user data to pre-train the autoencoder neural network model;
[0012] The financial management user data and several of its nearest neighbor data are concatenated to form training data;
[0013] The parameters in the pre-trained autoencoder neural network model are used as initial values, and the autoencoder neural network model is continuously trained using the training data until the maximum number of iterations is reached or the loss error is less than the stopping threshold.
[0014] Furthermore, in the process of pre-training the autoencoding neural network model using financial management user data, when the maximum number of iterations set in the pre-training is reached or the reconstruction error is less than the stopping threshold set in the pre-training.
[0015] Furthermore, in the process of continuing to train the autoencoder neural network model using the training data, the stochastic gradient descent method is used to update the parameters and cluster centers of the autoencoder neural network model.
[0016] Furthermore, the loss function of the autoencoder neural network model includes the error from input to output, the fuzzy clustering loss of hidden layer features, the graph constraint term between the financial management user data and its nearest neighbor data, and the entropy term of the affinity matrix, and the affinity matrix is obtained by processing the training data using Gaussian mapping.
[0017] Furthermore, in the process of continuing to train the autoencoder neural network model using the training data, the affinity matrix is updated using the Lagrange multiplier method.
[0018] Furthermore, the attributes of the financial management user data include education level, income, age, occupation and geographical distribution.
[0019] Furthermore, the KNN algorithm is used to obtain several nearest neighbor data of the financial management user data.
[0020] A second aspect of the present invention provides a financial product recommendation system, comprising:
[0021] A financial management user data acquisition module, which is used to acquire financial management user data;
[0022] The financial product recommendation module is used to obtain the recommended financial product type based on the financial user data and the trained auto-encoding neural network model;
[0023] Among them, the training process of the autoencoder neural network model is:
[0024] Use financial management user data to pre-train the autoencoder neural network model;
[0025] The financial management user data and several of its nearest neighbor data are concatenated to form training data;
[0026] The parameters in the pre-trained autoencoder neural network model are used as initial values, and the autoencoder neural network model is continuously trained using the training data until the maximum number of iterations is reached or the loss error is less than the stopping threshold.
[0027] A third aspect of the present invention provides a computer-readable storage medium.
[0028] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps in the financial product recommendation method as described above.
[0029] A fourth aspect of the present invention provides a computer device.
[0030] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the financial product recommendation method as described above when executing the program.
[0031] Compared with the prior art, the present invention has the following beneficial effects:
[0032] The network model and objective function proposed in the present invention can adapt to the current massive big data clustering problem, especially in the financial industry information analysis and user characterization, and can make full use of the local similarity of user financial information and the effective information of the global structure to improve the clustering accuracy and better analyze and predict the current financial risk investment. In addition, by introducing the entropy term to automatically tune the constraint term, the effectiveness of data clustering is further improved, and more suitable financial products such as currency financial management, equity financial management, insurance financial management, bill financial management, etc. are recommended to users of different occupations such as self-employed individuals, private business owners, students, white-collar workers, etc. in a more intelligent way.
[0033] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0035] Figure 1 is an example diagram of a high-dimensional financial data set according to an embodiment of the present invention;
[0036] Figure 2is a flow chart of a financial product recommendation method according to an embodiment of the present invention;
[0037] Figure 3 is a network structure diagram and a loss function calculation schematic diagram of an embodiment of the present invention;
[0038] Figure 4 It is a structural diagram of a financial product recommendation system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0040] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0041] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0042] Embodiment 1
[0043] like Figure 2 As shown, this embodiment provides a financial product recommendation method, which specifically includes the following steps:
[0044] S101: Obtain financial management user data.
[0045] like Figure 1 As shown, the obtained financial management user data Raw Data (RD), where the number is , the data attributes are , such as education level, income, age, occupation, geographical distribution, etc.
[0046] S102: Obtaining a recommended type of financial product based on the financial management user data and the trained auto-encoding neural network model;
[0047] Among them, the training process of the autoencoder neural network model is:
[0048] Use financial management user data to pre-train the autoencoder neural network model;
[0049] The financial management user data and several of its nearest neighbor data are concatenated to form training data;
[0050] The parameters in the pre-trained autoencoder neural network model are used as initial values, and the autoencoder neural network model is continuously trained using the training data until the maximum number of iterations is reached or the loss error is less than the stopping threshold.
[0051] Specifically, the KNN algorithm is used to process the financial management user data RD, and after obtaining L nearest neighbor data Neighbor Data (ND), it is concatenated with the financial management user data RD to construct the training data Training Data (TD).
[0052] Among them, the construction process of the auto-encoder neural network model Auto-Encoder (AE) is:
[0053] Enter the appropriate batch size, set the number of iterations epoch to 2000, select the mean square error MSE as the reconstruction method to evaluate the difference between the training data TD and the reconstruction result, and set the stopping threshold δ to The reconstruction method used is mean square error (MSE).
[0054] In one or more embodiments, in the process of pre-training the auto-encoding neural network model using financial management user data, when the maximum number of iterations set in the pre-training is reached or the reconstruction error is less than the stopping threshold set in the pre-training.
[0055] For example, the financial management user data RD is input into the AE model for pre-training. When the maximum number of iterations is reached or the reconstruction error is less than the stop threshold δ, the training is terminated and the network parameter weight W and bias b are saved.
[0056] In one or more embodiments, in the process of continuing to train the autoencoder neural network model using the training data, the parameters and cluster centers of the autoencoder neural network model are updated using the stochastic gradient descent method.
[0057] The user chooses a method to initialize K cluster centers C, loads network parameter weights W and bias b, inputs training data TD into the AE model for training, solves reconstruction loss, clustering loss, graph constraints and affinity entropy constraints, uses stochastic gradient descent to update neural network parameter weights W, bias b and cluster centers C, and uses Lagrange multiplier method to update affinity matrix ; When the maximum number of iterations is reached or the loss error is less than the stop threshold δ, the training ends and the clustering accuracy is output.
[0058] The cluster center initialization methods include random initialization, K-means initialization and fuzzy C-means initialization.
[0059] Among them, the affinity matrix In the solution process, the operational data objects that can be selected can be the original samples or the membership obtained in the initial clustering. The distance measurement can be a kernel function model, a Euclidean distance model, etc. Among them, the kernel function-based method is the most commonly used, and the formula is as follows:
[0060]
[0061] in, and These are predefined values, usually set to 1. It belongs to the sample Neighbors In general, for the convenience of calculation and accuracy of measurement, we Perform normalization.
[0062] like Figure 3 As shown, the loss function of the autoencoder neural network model includes the error from input to output, the fuzzy clustering loss of hidden layer features, the graph constraint term between the financial management user data and its nearest neighbor data, and the entropy term of the affinity matrix. The training data TD is processed using Gaussian mapping to obtain the affinity matrix .
[0063] In the process of continuing to train the autoencoder neural network model using the training data, the affinity matrix is updated using the Lagrange multiplier method.
[0064] The training process of the autoencoder model includes the following steps:
[0065] The autoencoder model (AE) loads the pre-trained neural network parameter weight W and bias b, inputs the original data RD, and the neural network obtains the hidden layer embedding feature z through forward propagation calculation. The k-means algorithm is used to obtain the initialized cluster center C.
[0066] The for loop is used to increase the number of iteration epochs of the data clustering algorithm based on the deep clustering model embedded in the adaptive neighborhood graph by one;
[0067] By formula and Calculate the similarity and normalization between the neural network hidden layer embedding feature z and the cluster center C, and then use the formula The clustering layer loss is calculated. is the number of samples, is the number of cluster centers. The student-T distribution is used to calculate the hidden layer embedding features of the neural network With cluster center Get, to measure the similarity between the two; Will The exponent is raised to quadratic. Sharpened distribution. and The matrices formed are P and Q respectively. , fixed attribute pair indivual The sum is calculated by normalizing the frequency of each cluster.
[0068] By formula Calculate the graph constraint between the financial management user data RD and the nearest neighbor data ND. Among them, is the number of samples, is the number of cluster centers, L is the number of neighbors.
[0069] By formula Calculate the affinity matrix entropy term;
[0070] Through the gradient descent method, the partial derivatives of the hidden layer embedding features and cluster centers are obtained.
[0071]
[0072]
[0073] in , is the overall loss function of the algorithm, α and β are parameters for adjusting the weights of clustering items and graph constraints respectively. The update formula of cluster center c is: ,in is batchsize, is the learning rate.
[0074] Update the encoder weights using gradient descent ; The decoder weight update formula is ; represents the reconstruction loss, where Represents the i-th data in the financial management user Raw Data (RD), represent The output value calculated by the neural network; represents the clustering loss;
[0075] in , measure the hidden layer embedding characteristics of the neural network With cluster center The similarity of right Sharp processing is performed to facilitate clustering layer calculation; Represents graph constraint loss.
[0076] After each for loop ends, the formula is used Update the overall P. The sample label is obtained by The formula is as follows: ;
[0077] After each for loop, the affinity matrix is transformed using the Lagrange multiplier method. The formula is ;
[0078] After each for loop ends, the formula Calculate the output clustering accuracy, where is the true category label of the data point, is the sample center category.
[0079] Embodiment 2
[0080] like Figure 4 As shown, this embodiment provides a financial product recommendation system, which specifically includes the following modules:
[0081] A financial management user data acquisition module, which is used to acquire financial management user data;
[0082] The financial product recommendation module is used to obtain the recommended financial product type based on the financial user data and the trained auto-encoding neural network model;
[0083] Among them, the training process of the autoencoder neural network model is:
[0084] Use financial management user data to pre-train the autoencoder neural network model;
[0085] The financial management user data and several of its nearest neighbor data are concatenated to form training data;
[0086] The parameters in the pre-trained autoencoder neural network model are used as initial values, and the autoencoder neural network model is continuously trained using the training data until the maximum number of iterations is reached or the loss error is less than the stopping threshold.
[0087] It should be noted here that the various modules of this embodiment correspond one-to-one to the various steps in the first embodiment, and the specific implementation process is the same, which will not be repeated here.
[0088] Embodiment 3
[0089] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the financial product recommendation method described in the first embodiment are implemented.
[0090] The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0091] Embodiment 4
[0092] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the financial product recommendation method described in the first embodiment are implemented.
[0093] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0094] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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.
[0095] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for recommending financial products, characterized in that: include: Obtain financial management user data; Based on the financial management user data and the trained auto-encoding neural network model, the recommended financial management product types are obtained; Among them, the training process of the autoencoder neural network model is: Use financial management user data to pre-train the autoencoder neural network model; The financial management user data and several of its nearest neighbor data are concatenated to form training data; Using the parameters in the pre-trained autoencoder neural network model as the initial values, the autoencoder neural network model is continuously trained using the training data until the maximum number of iterations is reached or the loss error is less than the stop threshold; The training process of the autoencoder neural network model includes the following steps: The autoencoder neural network model loads the pre-trained neural network parameter bias b, inputs the original data RD, obtains the hidden layer embedding feature z through forward propagation calculation, and uses the k-means algorithm to obtain the initial cluster center C; The for loop is used to increase the number of iteration epochs of the data clustering algorithm based on the deep clustering model embedded in the adaptive neighborhood graph by one; By formula and Calculate the similarity and normalization between the neural network hidden layer embedding feature z and the cluster center C, and then use the formula Calculate the clustering layer loss; in, is the number of samples, is the number of cluster centers; The student-T distribution is used to calculate the hidden layer embedding features of the neural network With cluster center Get, to measure the similarity between the two; Will The exponent is raised to quadratic. Sharpened distribution; and The matrices formed are P and Q respectively; , fixed attribute pair indivual The sum is calculated by normalizing the frequency of each cluster; By formula Calculate the affinity matrix entropy term; By formula Calculate the graph constraint loss between the financial management user data RD and the nearest neighbor data ND; where, J is the number of neighbors; By formula Calculate the reconstruction loss, where Represents the first in the financial management user data RD i Items of data, represent The output value calculated by the neural network; The overall loss function is ; α and β are parameters for adjusting the weights of clustering terms and graph constraint terms respectively; Through the gradient descent method, the partial derivatives of the hidden layer embedding features and cluster centers are obtained. The update formula of cluster center c is: ,in is batchsize, is the learning rate; Update the encoder weights using gradient descent ; The decoder weight update formula is ; After each for loop ends, the formula is used Update the overall P; the sample label is passed The formula is as follows: ; After each for loop, the affinity matrix is transformed using the Lagrange multiplier method. The update of ; After each for loop ends, the formula Calculate the output clustering accuracy, where is the true category label of the data point, is the sample center category.
2. The financial product recommendation method according to claim 1, characterized in that: The attributes of the financial management user data include education level, income, age, occupation and geographical distribution.
3. The financial product recommendation method according to claim 1, characterized in that: The KNN algorithm is used to obtain several nearest neighbor data of the financial management user data.
4. A financial product recommendation system, characterized in that: include: A financial management user data acquisition module, which is used to acquire financial management user data; The financial product recommendation module is used to obtain the recommended financial product type based on the financial user data and the trained auto-encoding neural network model; Among them, the training process of the autoencoder neural network model is: Use financial management user data to pre-train the autoencoder neural network model; The financial management user data and several of its nearest neighbor data are concatenated to form training data; Using the parameters in the pre-trained autoencoder neural network model as the initial values, the autoencoder neural network model is continuously trained using the training data until the maximum number of iterations is reached or the loss error is less than the stop threshold; The training process of the autoencoder neural network model includes the following steps: The autoencoder neural network model loads the pre-trained neural network parameter bias b, inputs the original data RD, obtains the hidden layer embedding feature z through forward propagation calculation, and uses the k-means algorithm to obtain the initial cluster center C; The for loop is used to increase the number of iteration epochs of the data clustering algorithm based on the deep clustering model embedded in the adaptive neighborhood graph by one; By formula and Calculate the similarity and normalization between the neural network hidden layer embedding feature z and the cluster center C, and then use the formula Calculate the clustering layer loss; in, is the number of samples, is the number of cluster centers; The student-T distribution is used to calculate the hidden layer embedding features of the neural network With cluster center Get, to measure the similarity between the two; Will The exponent is raised to quadratic. Sharpened distribution; and The matrices formed are P and Q respectively; , fixed attribute pair indivual The sum is calculated by normalizing the frequency of each cluster; By formula Calculate the affinity matrix entropy term; By formula Calculate the graph constraint loss between the financial management user data RD and the nearest neighbor data ND; where, J is the number of neighbors; By formula Calculate the reconstruction loss, where Represents the first in the financial management user data RD i Items of data, represent The output value calculated by the neural network; The overall loss function is ; α and β are parameters for adjusting the weights of clustering terms and graph constraint terms respectively; Through the gradient descent method, the partial derivatives of the hidden layer embedding features and cluster centers are obtained. The update formula of cluster center c is: ,in is batchsize, is the learning rate; Update the encoder weights using gradient descent ; The decoder weight update formula is ; After each for loop ends, the formula is used Update the overall P; the sample label is passed The formula is as follows: ; After each for loop, the affinity matrix is transformed using the Lagrange multiplier method. The update of ; After each for loop ends, the formula Calculate the output clustering accuracy, where is the true category label of the data point, is the sample center category.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps in the financial product recommendation method as described in any one of claims 1 to 3 are implemented.
6. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the financial product recommendation method as described in any one of claims 1 to 3 are implemented.
