Prediction model training method and system
By combining the spatio-temporal collision analysis of static maps and dynamic spatio-temporal maps in financial anti-fraud scenarios, and using genetic algorithm iteration, the accuracy of financial anti-fraud risk prediction is improved and the deficiencies in accuracy and adaptability of traditional methods are solved.
Patent Information
- Application Number
- CN202011285086.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-17
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-11-17
AI Technical Summary
Existing traditional machine learning and graphs have low accuracy in risk prediction in financial anti-fraud scenarios, making it difficult to effectively identify suspicious transactions and fraudulent accounts.
A prediction model training method based on spatio-temporal collision is adopted, and static maps and dynamic spatio-temporal maps are combined for multi-dimensional data analysis. Genetic algorithm iteration is used to improve the accuracy of predictive analysis and the model's scene adaptability.
Through space-time collision analysis, the relationship between the data to be trained is more accurately mined, the accuracy of the prediction analysis and the accuracy of the prediction results are improved, and the matching and adaptability of the model are enhanced.
Smart Images

Figure CN112215441B
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a prediction model training method and system based on space-time collision. Background Art
[0002] In the current era of intelligent anti-fraud, artificial intelligence and big data have become an important foundation for improving anti-fraud effectiveness. Artificial intelligence is widely used in financial institutions, with the largest number of applications in risk control, compliance, supervision, internal control and other fields, including transaction anti-fraud, anti-money laundering, internal control audit and marketing anti-fraud.
[0003] The technical methods of financial anti-fraud have evolved from the initial list system, expert rules, to machine learning modeling, and association graphs. In these scenarios, the machine learning modeling or graph analysis mentioned above will be applied to analyze basic customer information to identify suspicious transactions, fraudulent accounts, and even risky money laundering gangs. However, the accuracy of the results of risk prediction in the above scenarios using traditional machine learning and graphs in existing technologies is not high. Therefore, a new computing model is needed to better solve the problems in these scenarios. Summary of the invention
[0004] The embodiments of the present application provide a prediction model training method, system, computer device and readable storage medium based on space-time collision, which combines static graphs and dynamic space-time graphs through multi-faceted and multi-dimensional data analysis, and uses genetic algorithms for iteration to improve the accuracy of prediction analysis and improve the scene adaptability of the model.
[0005] In a first aspect, an embodiment of the present application provides a prediction model training method, comprising:
[0006] A data acquisition step is used to obtain data to be trained;
[0007] A data analysis step is used to perform multi-dimensional data analysis on the data to be trained by combining the static graph and the spatiotemporal graphs of different spatiotemporal segments, so as to obtain the static graph of the data to be trained, the spatiotemporal graphs of different spatiotemporal segments, the graph attributes of the static graph, and the graph attributes of the spatiotemporal graphs of different spatiotemporal segments;
[0008] The calculation model iteration step is used to use a genetic algorithm to calculate the static map, the space-time map of different space-time segments, the graph attributes of the static map and the graph attributes of the space-time map of different space-time segments obtained in the data analysis step to obtain at least one gene combination, so as to analyze the at least one gene combination and select the optimal calculation model. The use of genetic algorithm iteration has the ability of self-learning and self-iteration, which is conducive to improving the accuracy of prediction results.
[0009] Through the above steps, the method combines static graphs and spatiotemporal graphs of different spatiotemporal segments to perform static and dynamic analysis on the entities, relationships and attributes of the data to be trained. By analyzing the characteristics of the data in a spatiotemporal relationship after the collision of the data through spatiotemporal collision, the relationship of the data to be trained can be more accurately mined, thereby improving the accuracy of the prediction analysis.
[0010] In some embodiments, the method further comprises:
[0011] The data analysis step is repeated to repeat the data analysis step and the calculation model iteration step to calculate multiple optimal calculation models, and the multiple optimal calculation models are output according to the matching degree. Based on the self-learning and self-iteration characteristics of the genetic algorithm, the longer the model is used, the more accurate it is. The matching degree of the final calculation model is improved by repeated data analysis for business applications by the user.
[0012] In some embodiments, the data analysis step further comprises:
[0013] A static graph data analysis step is used to perform data mining on the data to be trained to obtain a static graph, perform graph feature mining on the static graph to obtain graph attributes of the static graph, and set an initialization weight to represent the relationship of the static graph;
[0014] The dynamic spatiotemporal graph data analysis step is used to obtain multiple spatiotemporal graphs by performing spatiotemporal collisions on the data to be trained, and based on the number of spatiotemporal collisions and the spatiotemporal relationship, the multiple spatiotemporal graphs are respectively mined with different spatiotemporal segments as sections to obtain the graph attributes of each spatiotemporal graph.
[0015] In some embodiments, the dynamic spatiotemporal graph data analysis step further comprises:
[0016] A step of acquiring a spatiotemporal graph, for configuring a spatiotemporal reference and dividing the data into a plurality of different spatiotemporal segments according to the spatiotemporal reference, performing a spatiotemporal collision on the data of each spatiotemporal segment to obtain a spatiotemporal graph corresponding to the spatiotemporal segment, and setting a collision weight to represent the spatiotemporal collision generated in the spatiotemporal segment;
[0017] a step of acquiring a time-space relationship, for performing data analysis on a plurality of the time-space maps, obtaining the time-space relationship and the number of time-space collisions in the time-space maps, and setting a relationship weight and a number weight, wherein the relationship weight is used to represent the time-space relationship, and the number weight is used to represent the number of time-space collisions;
[0018] The step of acquiring the section of the space-time graph is used to perform section analysis on the space-time graph with the space-time segment as the section, set a space-time weight to represent the relationship in the section graph, and calculate the graph attributes of the section graph corresponding to each section based on the space-time weight.
[0019] In some of the embodiments, the computational model iteration step further includes: recombining the spatiotemporal graphs of different spatiotemporal segments obtained in the data analysis step with each other, and recombining the spatiotemporal graph with the static graph with each other, and then using the graph attributes of the static graph, the graph attributes of the spatiotemporal graph and the algorithm parameters as genes of the genetic algorithm, and obtaining at least one gene combination through calculation by the genetic algorithm, so as to analyze the at least one gene combination and select the optimal computational model.
[0020] In some embodiments, the spatiotemporal weight is the product of the relationship weight and the frequency weight.
[0021] In some of the embodiments, the graph properties include betweenness centrality, closeness centrality, degree centrality, clustering coefficient, and Pagerank algorithm.
[0022] In some of the embodiments, the frequency weight is calculated using but not limited to a linear algorithm, Sigmoid, or a logistic regression algorithm, wherein the Sigmoid function is an S-shaped function commonly seen in biology, also known as an S-shaped growth curve. In information science, due to its monotonic increasing and inverse monotonic increasing properties, the Sigmoid function is often used as an activation function of a neural network to map variables between (0, 1).
[0023] In a second aspect, an embodiment of the present application provides a prediction model training system, including:
[0024] A data acquisition module, used to acquire data to be trained;
[0025] A data analysis module, used to perform multi-dimensional data analysis on the data to be trained by combining the static graph and the spatiotemporal graphs of different spatiotemporal segments, to obtain the static graph of the data to be trained, the spatiotemporal graphs of different spatiotemporal segments, the graph attributes of the static graph, and the graph attributes of the spatiotemporal graph;
[0026] A computational model iteration module is used to use a genetic algorithm to calculate the static map, the spatiotemporal map of different spatiotemporal segments, the graph attributes of the static map and the graph attributes of the spatiotemporal map obtained by the data analysis module to obtain at least one gene combination, so as to analyze and select the optimal computational model for the at least one gene combination. The genetic algorithm iteration has the ability of self-learning and self-iteration, which is conducive to improving the accuracy of the prediction results.
[0027] Through the above structure, the system combines static graphs and spatiotemporal graphs of different spatiotemporal segments to perform static and dynamic analysis on the entities, relationships and attributes of the data to be trained. By analyzing the characteristics of the data in a spatiotemporal relationship after the collision of the data through spatiotemporal collision, the relationship between the data to be trained can be more accurately excavated, thereby improving the accuracy of the prediction analysis.
[0028] In some embodiments, the system further comprises:
[0029] A repeated data analysis module is used to repeatedly call the data analysis module and the calculation model iteration module to calculate multiple optimal calculation models, and output the multiple optimal calculation models according to the matching degree. Based on the self-learning and self-iteration characteristics of the genetic algorithm, the longer the model is used, the more accurate it becomes. The matching degree of the final calculation model is improved through repeated data analysis for business applications by the user.
[0030] In some embodiments, the data analysis module further comprises:
[0031] A static graph data analysis module, used for performing data mining on the training data to obtain a static graph, performing graph feature mining on the static graph to obtain graph attributes of the static graph, and setting an initialization weight for representing the relationship of the static graph;
[0032] A dynamic spatiotemporal graph data analysis module is used to obtain multiple spatiotemporal graphs by performing spatiotemporal collisions on the data to be trained, and based on the number of spatiotemporal collisions and the spatiotemporal relationship, graph feature mining is performed on the multiple spatiotemporal graphs with different spatiotemporal segments as sections to obtain the graph attributes of each spatiotemporal graph.
[0033] In some embodiments, the dynamic spatiotemporal graph data analysis module further comprises:
[0034] a space-time map acquisition module, configured to configure a space-time reference and divide the data into a plurality of different space-time segments according to the space-time reference, perform space-time collision on the data of each space-time segment to obtain a space-time map corresponding to the space-time segment, and set a collision weight to indicate the space-time collision generated in the space-time segment;
[0035] a space-time relationship acquisition module, used to perform data analysis on the plurality of space-time graphs, obtain the space-time relationship and the number of space-time collisions in the space-time graphs, and set a relationship weight and a number weight, wherein the relationship weight is used to represent the space-time relationship, and the number weight is used to represent the number of space-time collisions;
[0036] A spatiotemporal graph section acquisition module is used to perform section analysis on the spatiotemporal graph using the spatiotemporal segment as a section, set a spatiotemporal weight to represent the relationship in the section graph, and calculate the graph attributes of the section graph corresponding to each section based on the spatiotemporal weight. Specifically, the existence and change state of all elements in the entire graph of the spatiotemporal graph in a certain spatiotemporal segment is taken as a section.
[0037] In some of the embodiments, the computational model iteration module further includes: recombining the space-time graphs of different space-time segments obtained by the data analysis module with each other, and recombining the space-time graph with the static graph with each other, and then using them together with the graph attributes of the static graph, the graph attributes of the space-time graph and the algorithm parameters as genes of the genetic algorithm, and obtaining at least one gene combination through calculation by the genetic algorithm, so as to analyze the at least one gene combination and screen out the optimal computational model.
[0038] In some embodiments, the spatiotemporal weight is the product of the relationship weight and the frequency weight.
[0039] In some of the embodiments, the graph properties include betweenness centrality, closeness centrality, degree centrality, clustering coefficient, and Pagerank algorithm.
[0040] In some of the embodiments, the frequency weight is calculated using, but not limited to, a linear algorithm, a Sigmoid algorithm, or a logistic regression algorithm.
[0041] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the prediction model training method as described in the first aspect above is implemented.
[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the prediction model training method as described in the first aspect above.
[0043] Compared with the related art, the prediction model training method, system, computer device and readable storage medium based on space-time collision provided in the embodiments of the present application use traditional graphs combined with space-time collision to achieve more professional prediction analysis in areas where traditional machine learning and traditional graphs in the prior art are not good at; specifically, static graphs are combined with dynamic space-time graphs of different time periods and different weights corresponding to the space-time graphs to perform graph data analysis of multiple aspects, and analyze the corresponding graph features from multiple dimensions. The data analysis process is more comprehensive and the prediction results of the obtained computing model are more accurate.
[0044] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0046] Figure 1 is a flowchart of a prediction model training method according to an embodiment of the present application;
[0047] Figure 2 is a schematic diagram of a step-by-step flow chart of a prediction model training method according to an embodiment of the present application;
[0048] Figure 3 is a schematic diagram of the structure of a prediction model training system according to an embodiment of the present application;
[0049] Figure 4 It is a schematic diagram of the structure of a dynamic spatiotemporal graph data analysis module of a prediction model training system according to an embodiment of the present application. Description of the drawings:
[0051] 1. Data acquisition module; 2. Data analysis module; 3. Computational model iteration module;
[0052] 4. Repeated data analysis module; 21. Static graph data analysis module;
[0053] 22. Dynamic spatiotemporal graph data analysis module;
[0054] 221. Space-time graph acquisition module; 222. Space-time relationship acquisition module;
[0055] 223. Space-time graph slice acquisition module. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0057] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.
[0058] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0059] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0060] This embodiment provides a prediction model training method. Figures 1 to 2 is a flowchart of a prediction model training method according to an embodiment of the present application, with reference to Figures 1 to 2 As shown, the process includes the following steps:
[0061] The data acquisition step S1 is used to acquire the data to be trained.
[0062] The data analysis step S2 is used to perform multi-dimensional data analysis on the training data in combination with the static graph and the spatiotemporal graphs of different spatiotemporal segments, to obtain the static graph of the training data, the spatiotemporal graphs of different spatiotemporal segments, the graph attributes of the static graph and the graph attributes of the spatiotemporal graph, the graph attributes may include betweenness centrality, closeness centrality, degree centrality, clustering coefficient and Pagerank algorithm, specifically, may include:
[0063] The static graph data analysis step S21 is used to perform data mining on the training data to obtain a static graph, perform graph feature mining on the static graph to obtain graph attributes of the static graph, and set an initialization weight to represent the relationship of the static graph;
[0064] The dynamic spatiotemporal graph data analysis step S22 is used to obtain multiple spatiotemporal graphs by performing spatiotemporal collisions on the training data, and based on the number of spatiotemporal collisions and the spatiotemporal relationship, perform graph feature mining on the multiple spatiotemporal graphs with different spatiotemporal segments as sections to obtain the graph attributes of each spatiotemporal graph.
[0065] The dynamic spatiotemporal graph data analysis step S22 may mainly include:
[0066] The spatiotemporal map acquisition step S221 is used to configure a spatiotemporal reference and divide the data into a plurality of different spatiotemporal segments according to the spatiotemporal reference, perform spatiotemporal collision on the data of each spatiotemporal segment to obtain a spatiotemporal map corresponding to the spatiotemporal segment, and set a collision weight to represent the spatiotemporal collision generated in the spatiotemporal segment;
[0067] The spatiotemporal relationship acquisition step S222 is used to perform data analysis on multiple spatiotemporal graphs to obtain the spatiotemporal relationship and the number of spatiotemporal collisions in the spatiotemporal graphs, and set a relationship weight and a number weight, wherein the relationship weight is used to represent the spatiotemporal relationship, and the number weight is used to represent the number of spatiotemporal collisions. Specifically, the calculation of the number weight can be adopted by, but not limited to, a linear algorithm, Sigmoid, or a logistic regression algorithm;
[0068] The step S223 of obtaining the section of the space-time graph is used to perform section analysis on the space-time graph with the space-time segment as the section, set a space-time weight to represent the relationship in the section graph, and calculate the graph attributes of the section graph corresponding to each section based on the space-time weight. Specifically, the space-time weight is the product of the relationship weight and the frequency weight.
[0069] The calculation model iteration step S3 is used to use a genetic algorithm to calculate the static map obtained in the data analysis step, the space-time maps of different space-time segments, the graph attributes of the static map, and the graph attributes of the space-time map to obtain at least one gene combination, so as to analyze at least one gene combination and screen out the optimal calculation model. Specifically, the space-time maps of different space-time segments obtained in step S2 are recombined with each other, and the space-time map and the static map are recombined with each other, and then they are calculated together with the graph attributes of the static map, the graph attributes of the space-time map, and the algorithm parameters as genes of the genetic algorithm.
[0070] The data analysis step S4 is repeated to repeat the data analysis step and the calculation model iteration step to calculate and obtain multiple optimal calculation models, and the multiple optimal calculation models are output according to the matching degree.
[0071] Through the above steps, the method combines static graphs and spatiotemporal graphs of different spatiotemporal segments to perform static and dynamic analysis on the entities, relationships and attributes of the training data. Through the spatiotemporal collision analysis of the characteristics of the data in a spatiotemporal relationship after the data collision, the relationship of the training data can be more accurately mined, and the accuracy of the prediction analysis can be improved; the genetic algorithm is used to iterate the calculation model, and the algorithm has the ability of self-learning and self-iteration, which is conducive to improving the accuracy of the prediction results. At the same time, based on the self-learning and self-iteration characteristics of the genetic algorithm, the longer it is used, the more accurate it is. Through step S4, the matching degree of the final calculation model is improved for the user to perform business applications.
[0072] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0073] This embodiment also provides a prediction model training system. Figures 3 to 4 1 is a schematic diagram of the structure of the prediction model training system according to the embodiment of the present application. As used below, the terms "module", "unit", "subunit", etc. can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0074] refer to Figures 3 to 4 As shown, the system includes: a data acquisition module 1, a data analysis module 2, a calculation model iteration module 3 and a repeated data analysis module 4;
[0075] The data acquisition module 1 is used to acquire the data to be trained;
[0076] The data analysis module 2 is used to combine the static graph and the spatiotemporal graphs of different spatiotemporal segments to perform multi-dimensional data analysis on the training data to obtain the static graph of the training data, the spatiotemporal graphs of different spatiotemporal segments, the graph attributes of the static graph, and the graph attributes of the spatiotemporal graph. The graph attributes mainly include: betweenness centrality, closeness centrality, degree centrality, clustering coefficient, and Pagerank algorithm. Specifically, the data analysis module 2 may include: a static graph data analysis module 21 and a dynamic spatiotemporal graph data analysis module 22,
[0077] The static graph data analysis module 21 is used to perform data mining on the training data to obtain a static graph, perform graph feature mining on the static graph to obtain graph attributes of the static graph, and set an initialization weight to represent the relationship of the static graph;
[0078] The dynamic spatiotemporal graph data analysis module 22 is used to obtain multiple spatiotemporal graphs by performing spatiotemporal collisions on the training data, and based on the number of spatiotemporal collisions and the spatiotemporal relationship, perform graph feature mining on the multiple spatiotemporal graphs with different spatiotemporal segments as sections to obtain the graph attributes of each spatiotemporal graph.
[0079] The dynamic spatiotemporal graph data analysis module 22 may mainly include: a spatiotemporal graph acquisition module 221, a spatiotemporal relationship acquisition module 222, and a spatiotemporal graph section acquisition module 223;
[0080] The space-time map acquisition module 221 is used to configure a space-time reference and divide the data into multiple different space-time segments according to the space-time reference, perform space-time collision on the data of each space-time segment to obtain a space-time map corresponding to the space-time segment, and set a collision weight to represent the space-time collision generated in the space-time segment;
[0081] The spatiotemporal relationship acquisition module 222 is used to perform data analysis on multiple spatiotemporal graphs, obtain the spatiotemporal relationship and the number of spatiotemporal collisions in the spatiotemporal graphs, and set a relationship weight and a number weight, wherein the relationship weight is used to represent the spatiotemporal relationship, and the number weight is used to represent the number of spatiotemporal collisions. Optionally, the number weight is calculated using, but not limited to, a linear algorithm, a Sigmoid algorithm, or a logistic regression algorithm;
[0082] The spatiotemporal graph section acquisition module 223 is used to perform section analysis on the spatiotemporal graph using the spatiotemporal segment as the section, set a spatiotemporal weight to represent the relationship in the section graph, and calculate the graph attributes of the section graph corresponding to each section based on the spatiotemporal weight. Specifically, the section graph is used to represent the existence and change status of all elements in the entire graph of the spatiotemporal graph in a certain spatiotemporal segment.
[0083] The computational model iteration module 3 is used to use a genetic algorithm to calculate the static map obtained by the data analysis module, the space-time maps of different space-time segments, the graph attributes of the static map, and the graph attributes of the space-time map to obtain at least one gene combination, so as to analyze at least one gene combination and screen out the optimal computational model. Specifically, the space-time maps of different space-time segments obtained by the data analysis module 2 are recombined with each other, and the space-time map and the static map are recombined with each other, and then they are calculated together with the graph attributes of the static map, the graph attributes of the space-time map, and the algorithm parameters as genes of the genetic algorithm.
[0084] The repeated data analysis module 4 is used to repeatedly call the data analysis module 2 and the calculation model iteration module 3 to calculate and obtain multiple optimal calculation models, and output the multiple optimal calculation models according to the matching degree.
[0085] Through the above structure, the system combines the static graph and the space-time graph of different space-time segments to perform static and dynamic analysis on the entities, relationships and attributes of the training data. Through the space-time collision analysis of the characteristics of the data in a space-time relationship after the collision, the relationship between the training data can be more accurately excavated, and the accuracy of the prediction analysis can be improved. The genetic algorithm is used to iterate the calculation model. The genetic algorithm has the ability of self-learning and self-iteration. At the same time, the data analysis module 4 is repeatedly called by the data analysis module 2 and the calculation model iteration module 3 for calculation, which further improves the accuracy of the prediction result.
[0086] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0087] The embodiments of the present application are described and illustrated below through preferred embodiments.
[0088] For credit violations in the financial industry, the combination of spatiotemporal collisions and static graphs is particularly important. When the spatiotemporal collisions in a time period are relatively dense and the node model score is relatively high, it can be considered that the node may frequently make credit in the corresponding time period, or credit different banks, and there may be certain credit risks. When using the embodiment of the present application to establish a credit risk prediction model,
[0089] The data to be trained is obtained through step S1; then preliminary data mining is performed on this batch of data, and the results include but are not limited to entities: accounts, people, companies; relationships: person-company relationship, person-account relationship, company-account relationship, person-asset relationship, company-asset relationship; events: fund transactions, fund guarantees, etc., and the customer specifies the specific person or company that has committed credit violations.
[0090] In step S2, the training data is trained. Specifically, in step S21, the entity relationship data mined above is converted into a static graph, and graph attributes are mined for the obtained static graph. The graph attributes include betweenness centrality, closeness centrality, degree centrality, clustering coefficient, Pagerank, and different initialization weights are set for different relationships.
[0091] In step S22, preferably, the credit overdue personnel are divided into different groups according to the overdue time by month, as positive samples. Different negative samples are added to these different groups. Each sample has its own overdue time point. According to this time point as the spatiotemporal reference, different groups have different spatiotemporal reference points, and different spatiotemporal graphs are analyzed forward respectively, and the spatiotemporal collision under this spatiotemporal graph is calculated, and the collision weight is set. The weights of different spatiotemporal reference points are temporarily considered to be consistent.
[0092] Then, the above-mentioned spatiotemporal graphs are analyzed separately to mine the graph features of each group. Different relationship weights are set for different spatiotemporal relationships. At the same time, frequency weights are set according to the number of spatiotemporal collisions. The number of occurrences and frequency weights can be calculated by different algorithms, such as linear algorithms, Sigmoid, logistic regression algorithms, etc.
[0093] Finally, multiple aspects of the spatiotemporal graph are analyzed, with the spatiotemporal graphs of different spatiotemporal segments as the aspects. At this time, the weight of each relationship is the spatiotemporal weight, and then the spatiotemporal weight is carried to calculate each set of graph attributes corresponding to the aspect graph.
[0094] In step S3, the spatiotemporal graphs between different spatiotemporal segments are reorganized, the spatiotemporal graphs are reorganized with the static graphs, the weights, collision weights, frequency weights, relationship weights, and various algorithms for calculating frequency weights are initialized, the machine learning algorithms that require model prediction, the parameters of the algorithms, and a series of data are used as the genes of the genetic algorithm, which are inherited to a certain generation to calculate the relatively excellent gene combination. The best model is selected based on these gene combinations and implemented for subsequent prediction.
[0095] After step 4, the training data will repeat steps 2 and 3, and finally the calculation model with the highest matching degree will be selected and the corresponding score will be calculated. The personnel or companies with scores greater than a certain set threshold will be set as credit risk personnel. Among them, the customer can manually set whether they are credit risk personnel. After the setting, the algorithm will perform incremental calculations and judge whether the manual setting is reasonable according to certain standards. If it is reasonable, the model will be updated incrementally.
[0096] In addition, combined Figures 1 to 2The prediction model training method of the embodiment of the present application described can be implemented by a computer device. The computer device may include a processor and a memory storing computer program instructions, and the memory can be used to store or cache various data files that need to be processed and / or used for communication, as well as possible computer program instructions executed by the processor. The processor reads and executes the computer program instructions stored in the memory to implement any one of the prediction model training methods in the above embodiments.
[0097] In addition, in combination with the prediction model training method in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the prediction model training methods in the above embodiment is implemented.
[0098] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0099] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A prediction model training method, characterized in that: include: A data acquisition step is used to obtain data to be trained; A data analysis step is used to perform multi-dimensional data analysis on the data to be trained by combining the static graph and the spatiotemporal graphs of different spatiotemporal segments, so as to obtain the static graph of the data to be trained, the spatiotemporal graphs of different spatiotemporal segments, the graph attributes of the static graph, and the graph attributes of the spatiotemporal graph; a calculation model iteration step, for calculating the static map, the spatiotemporal maps of different spatiotemporal segments, the graph attributes of the static map and the graph attributes of the spatiotemporal map obtained in the data analysis step by using a genetic algorithm to obtain at least one gene combination, so as to analyze the at least one gene combination and select the optimal calculation model; Wherein, the data analysis step further comprises: A static graph data analysis step is used to perform data mining on the data to be trained to obtain a static graph, perform graph feature mining on the static graph to obtain graph attributes of the static graph, and set an initialization weight to represent the relationship of the static graph; The dynamic spatiotemporal graph data analysis step is used to obtain multiple spatiotemporal graphs by performing spatiotemporal collisions on the training data, and based on the number of spatiotemporal collisions and the spatiotemporal relationship, the multiple spatiotemporal graphs are respectively mined with different spatiotemporal segments as sections to obtain the graph attributes of each spatiotemporal graph. The dynamic spatiotemporal graph data analysis step further includes: A step of acquiring a spatiotemporal graph, for configuring a spatiotemporal reference and dividing the data into a plurality of different spatiotemporal segments according to the spatiotemporal reference, performing a spatiotemporal collision on the data of each spatiotemporal segment to obtain a spatiotemporal graph corresponding to the spatiotemporal segment, and setting a collision weight to represent the spatiotemporal collision generated in the spatiotemporal segment; a step of acquiring a time-space relationship, for performing data analysis on a plurality of the time-space maps, obtaining the time-space relationship and the number of time-space collisions in the time-space maps, and setting a relationship weight and a number weight, wherein the relationship weight is used to represent the time-space relationship, and the number weight is used to represent the number of time-space collisions; The step of acquiring the section of the space-time graph is used to perform section analysis on the space-time graph with the space-time segment as the section, set a space-time weight to represent the relationship in the section graph corresponding to each section, and calculate the graph attributes of the section graph corresponding to each section based on the space-time weight.
2. The prediction model training method according to claim 1, characterized in that: Further including: The data analysis step is repeated to repeat the data analysis step and the calculation model iteration step to calculate and obtain multiple optimal calculation models, and the multiple optimal calculation models are output according to the matching degree.
3. The prediction model training method according to claim 1, characterized in that: The computational model iteration step further includes: recombining the spatiotemporal graphs of different spatiotemporal segments obtained in the data analysis step with each other, and recombining the spatiotemporal graph with the static graph, and then using the graph attributes of the static graph, the graph attributes of the spatiotemporal graph and the algorithm parameters as genes of the genetic algorithm, and obtaining at least one gene combination through calculation by the genetic algorithm, so as to analyze the at least one gene combination and select the optimal computational model.
4. A prediction model training system, characterized in that: include: A data acquisition module, used to acquire data to be trained; A data analysis module, used to perform multi-dimensional data analysis on the data to be trained by combining the static graph and the spatiotemporal graphs of different spatiotemporal segments, to obtain the static graph of the data to be trained, the spatiotemporal graphs of different spatiotemporal segments, the graph attributes of the static graph, and the graph attributes of the spatiotemporal graph; a computational model iteration module, for calculating the static graph, the spatiotemporal graphs of different spatiotemporal segments, the graph attributes of the static graph, and the graph attributes of the spatiotemporal graph obtained by the data analysis module using a genetic algorithm to obtain at least one gene combination, so as to analyze the at least one gene combination and select an optimal computational model; Wherein, the data analysis module further includes: A static graph data analysis module, used for performing data mining on the training data to obtain a static graph, performing graph feature mining on the static graph to obtain graph attributes of the static graph, and setting an initialization weight for representing the relationship of the static graph; A dynamic spatiotemporal graph data analysis module is used to obtain multiple spatiotemporal graphs by performing spatiotemporal collision on the training data, and to perform graph feature mining on the multiple spatiotemporal graphs based on the number of spatiotemporal collisions and the spatiotemporal relationship with different spatiotemporal segments to obtain graph attributes of each spatiotemporal graph. The dynamic spatiotemporal graph data analysis module further includes: a space-time map acquisition module, configured to configure a space-time reference and divide the data into a plurality of different space-time segments according to the space-time reference, perform space-time collision on the data of each space-time segment to obtain a space-time map corresponding to the space-time segment, and set a collision weight to indicate the space-time collision generated in the space-time segment; a space-time relationship acquisition module, used to perform data analysis on the plurality of space-time graphs, obtain the space-time relationship and the number of space-time collisions in the space-time graphs, and set a relationship weight and a number weight, wherein the relationship weight is used to represent the space-time relationship, and the number weight is used to represent the number of space-time collisions; A space-time graph slice acquisition module is used to perform slice analysis on the space-time graph based on space-time segments, set a space-time weight to represent the relationship in the slice graph corresponding to each slice, and calculate the graph attributes of the slice graph corresponding to each slice based on the space-time weight.
5. The prediction model training system according to claim 4, characterized in that: Further including: A repeated data analysis module is used to repeatedly call the data analysis module and the calculation model iteration module to calculate and obtain multiple optimal calculation models, and output the multiple optimal calculation models according to the matching degree.
6. The prediction model training system according to claim 5, characterized in that: The computational model iteration module further includes: recombining the spatiotemporal graphs of different spatiotemporal segments obtained by the data analysis module with each other, and recombining the spatiotemporal graph with the static graph, and then using the graph attributes of the static graph, the graph attributes of the spatiotemporal graph and the algorithm parameters as genes of the genetic algorithm, and obtaining at least one gene combination through calculation by the genetic algorithm, so as to analyze the at least one gene combination and select the optimal computational model.
