Event prediction method, event prediction model training method and related device

Through the object relationship graph and event prediction model, combined with the attribute characteristics of the target object and its neighbor nodes, the event prediction index is calculated, which solves the problem of low efficiency and accuracy of financial institutions in predicting borrowers' adverse events and achieves more efficient events. Forecasting and decision support.

CN118657240APending Publication Date: 2024-09-17MASHANG CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410252310.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-05
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing financial institutions are inefficient and inaccurate when predicting adverse events such as borrower identity fraud and group fraud, making it difficult to effectively process large-scale and diverse data.

Method used

Use the object relationship graph to predict events for the target object, determine its neighbor nodes, synthesize the attribute characteristics of the target object and neighbor nodes, calculate the event prediction index, improve the accuracy and efficiency of event prediction, and optimize parameters through training models to adapt to the data distribution .

Benefits of technology

It improves the accuracy and efficiency of event prediction, enhances the interpretability of features, enables better business decisions, and improves the generalization ability of event prediction models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657240A
    Figure CN118657240A
Patent Text Reader

Abstract

The invention discloses an event prediction method, an event prediction model training method and a related device, and relates to the technical field of artificial intelligence, in the method, in response to an event prediction operation triggered for a target object node, a neighbor node of the target object node is determined from an object relation graph comprising a connecting edge and N object nodes. Through the first object attribute feature of the target object node and the second object attribute feature of the neighbor node, the target prediction feature of the target object node is obtained, and through the target prediction feature, the target event prediction index representing the target event occurrence probability of the target object is obtained, so that the accuracy and efficiency of target event prediction are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to an event prediction, an event prediction model training method and related devices. Background Art

[0002] With the continuous development of Internet technology and the financial field, financial services such as loans and credit have become an important part of financial services. However, in actual financial services, adverse events such as identity fraud, group fraud, agency packaging, overdue repayment, and malicious debt evasion frequently occur, which bring great resource risks to financial service platforms and borrowers.

[0003] At present, in order to reduce the resource risks from users, financial institutions often manually review user information to assess whether the user is likely to experience the above-mentioned adverse events. This is not only inefficient and cumbersome, but also has low accuracy in event prediction. Summary of the invention

[0004] The embodiments of the present application provide an event prediction, an event prediction model training method and related devices to improve the accuracy and efficiency of target event prediction.

[0005] In a first aspect, an embodiment of the present application provides an event prediction method, the method comprising:

[0006] In response to an event prediction operation triggered for a target object node, determining a neighbor node of the target object node from an object relationship graph;

[0007] Obtaining a target prediction feature of the target object node based on a first object attribute feature of the target object node and a second object attribute feature of the neighboring node;

[0008] Based on the target prediction feature, a target event prediction index of the target object is obtained, and the target event prediction index represents the probability of the target event occurring to the target object.

[0009] In a second aspect, an embodiment of the present application provides an event prediction device, comprising:

[0010] A first determining unit, configured to determine, in response to an event prediction operation triggered on a target object node, a neighboring node of the target object node from an object relationship graph;

[0011] A first acquisition unit, configured to acquire a target prediction feature of the target object node based on a first object attribute feature of the target object node and a second object attribute feature of the neighboring node;

[0012] The index prediction unit is used to obtain a target event prediction index of a target object based on the target prediction feature, wherein the target event prediction index represents the probability of a target event occurring in the target object.

[0013] In a third aspect, an embodiment of the present application provides a method for training an event prediction model, the method comprising:

[0014] Acquire training sample data, the training sample data including: a sample object relationship graph and sample object attribute features of sample object nodes in the sample object relationship graph; for a sample object node, an event label represents the number of times a target event has occurred in the history of the sample object;

[0015] In the process of training the event prediction model to be trained based on the training sample data, a neighboring sample object node of a target sample object node is determined from the sample object relationship graph; the target sample object node is any sample object node in the sample object relationship graph;

[0016] Based on the first sample object attribute feature of the target sample object node and the second sample object attribute feature of the neighboring sample object node, obtaining a sample prediction feature of the target sample object node;

[0017] Based on the sample prediction feature, the sample event prediction index of the target sample object is obtained, and based on the difference between the event label of the target sample object node and the sample event prediction index, a target loss value is obtained, and the target loss value is used to adjust the model parameters of the event prediction model.

[0018] In a fourth aspect, an embodiment of the present application provides a training device for an event prediction model, comprising:

[0019] A sample acquisition unit is used to acquire training sample data, wherein the training sample data includes: a sample object relationship graph and sample object attribute features of sample object nodes in the sample object relationship graph; for a sample object node, an event label represents the number of times a target event has occurred in the history of the sample object;

[0020] A second determining unit is used to determine a neighboring sample object node of a target sample object node from the sample object relationship graph during a training process of the event prediction model to be trained based on the training sample data; the target sample object node is any sample object node in the sample object relationship graph;

[0021] A second acquisition unit, configured to acquire a sample prediction feature of the target sample object node based on a first sample object attribute feature of the target sample object node and a second sample object attribute feature of the neighboring sample object node;

[0022] A model adjustment unit is used to obtain a sample event prediction index of the target sample object based on the sample prediction feature, and to obtain a target loss value based on the difference between the event label of the target sample object node and the sample event prediction index, and to use the target loss value to perform parameter adjustment on the model parameters of the event prediction model.

[0023] In a fifth aspect, an embodiment of the present application provides a computer device, comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the event prediction method in the first aspect and / or the event prediction model training method in the third aspect.

[0024] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, which includes a computer program. When the computer program is run on a computer device, the computer program is used to enable the computer device to execute the event prediction method in the first aspect and / or the event prediction model training method in the third aspect.

[0025] In the seventh aspect, an embodiment of the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium; when a processor of a computer device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the computer device executes the event prediction method in the first aspect above and / or the event prediction model training method in the third aspect above.

[0026] In the embodiment of the present application, through the object relationship graph, the target object is subjected to event prediction operation, so that different objects are associated with a structured knowledge graph, so as to more comprehensively consider the association relationship between different objects, dig out the potential relationship between different objects, and improve the accuracy and efficiency of event prediction. On the basis of the above-mentioned object relationship graph, the embodiment of the present application responds to the event prediction operation triggered for the target object node, determines each neighbor node connected to the target object node from the object relationship graph, and extends the prediction range of the target object to the neighbor node connected to it, so as to capture relevant information more comprehensively, and obtains the target prediction feature of the target object node by integrating the first object attribute feature of the target object node and the second object attribute feature of each neighbor node, so as to make full use of the global object information reflected by the object relationship graph, aggregate the neighbor nodes with which the target object node has an association relationship, so that the target prediction feature can more accurately and comprehensively reflect the probability of the target event that may occur in each target object, and improve the accuracy and efficiency of event prediction. The corresponding target event prediction index is calculated by the target prediction feature, and the potential fraud probability of the target object is quantified, which enhances the interpretability of the feature, so that the relevant personnel can directly make relevant business decisions according to the target event prediction index.

[0027] In order to further improve the accuracy and efficiency of event prediction, the embodiment of the present application also performs event prediction operations for target object nodes through a trained event prediction model, wherein the event prediction model is obtained by training with a sample object relationship graph and the object attribute features of each sample object node as training sample data. In this way, the event prediction model can fully learn the association relationship between different sample object nodes, as well as the object attributes of each sample object node itself, realize the structural modeling of the global object relationship graph, and improve the comprehensive prediction ability of the target event. In addition, in each training process, any sample object node in the sample object relationship graph is selected as the target sample object node, and the sample event prediction index of the target sample object node is output by the model, so as to optimize the model parameters through the difference between the event label of the target sample object node and the event label of the target sample object node, which not only improves the accuracy of the event prediction index output by the model, but also helps the event prediction model to better adapt to the distribution of sample data and improve the generalization ability of the event prediction model to deal with different object nodes.

[0028] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0030] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;

[0031] Figure 2 A schematic diagram of a training process of an event prediction model provided in an embodiment of the present application;

[0032] Figure 3 A schematic diagram of a sample object relationship graph provided in an embodiment of the present application;

[0033] FIG4( a) is a schematic diagram of a process of constructing an object relationship graph provided in an embodiment of the present application;

[0034] FIG4( b) is a schematic diagram of a process of constructing an object relationship graph provided in an embodiment of the present application;

[0035] FIG4( c ) is a schematic diagram of a process of constructing an object relationship graph provided in an embodiment of the present application;

[0036] FIG4( d ) is a schematic diagram of a process of constructing an object relationship graph provided in an embodiment of the present application;

[0037] Figure 5 A schematic diagram of sample objects corresponding to different object device types provided in an embodiment of the present application;

[0038] Figure 6 A schematic diagram of an incremental training process provided in an embodiment of the present application;

[0039] Figure 7 A schematic diagram of a flow chart of an event prediction method provided in an embodiment of the present application;

[0040] Figure 8 A schematic diagram of object relationship graphs at different levels provided in an embodiment of the present application;

[0041] Fig. 9 A schematic diagram of an aggregation process of target prediction features provided in an embodiment of the present application;

[0042] Fig.10 A schematic diagram of an event prediction device provided in an embodiment of the present application;

[0043] Fig.11A schematic diagram of a device for training an event prediction model provided in an embodiment of the present application;

[0044] Fig.12 A schematic diagram of the structure of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments 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. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.

[0046] The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application can mean at least two, for example, can be two, three or more, and the embodiments of the present application are not limited.

[0047] The term "and / or" in the embodiments of the present application is only a description of the association relationship of the associated objects, indicating that there can 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. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0048] It is understandable that in the following specific implementations of the present application, data related to object device information, object attribute information, event prediction index, etc. are involved. When the various embodiments of the present application are applied to specific products or technologies, relevant licenses or consents need to be obtained, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions. For example, when it is necessary to obtain object attribute information and object device information of different objects, relevant volunteers can be recruited and relevant agreements for volunteer authorization data can be signed, and then the data of these volunteers can be used for implementation; or, by implementing within the scope of the authorized organization, the following implementation method is implemented by using the data of internal members of the organization to predict the event prediction index corresponding to the internal members; or, the relevant data used in the specific implementation are all simulated data, such as simulated data generated in a virtual scene.

[0049] To facilitate understanding of the technical solutions provided in the embodiments of the present application, some key terms used in the embodiments of the present application are explained here:

[0050] Knowledge graph: A graphical structure for representing and storing knowledge, where nodes represent entities and edges represent relationships between entities. In this solution, an object relationship graph is used to represent device association relationships between objects.

[0051] Clique: A group of nodes that are tightly connected and form a set of vertices with edges between them.

[0052] Isolated nodes: Nodes are the basic components of knowledge graphs, and isolated nodes are a special type of node. An isolated node is a separate node that has no connection with other nodes. In other words, the node is not connected to any other node.

[0053] Adverse events: Dishonest or deceptive events such as identity fraud, group fraud, agency packaging, overdue repayment, malicious debt evasion, etc. that occur to the representative object. In the embodiment of the present application, the purpose of event prediction is to predict whether the above adverse events may occur to the object.

[0054] Graph Sample and Aggregate (GraphSAGE): A graph neural network method for learning graph data, especially for tasks such as node classification, node embedding, and graph classification. GraphSAGE can process and analyze the graph structure represented by the knowledge graph, and perform operations such as node search and graph matching.

[0055] Incremental Learning: Also known as incremental training, it is a process of updating a model by gradually introducing new data based on a baseline model. In this solution, incremental learning can adapt to new objects and features and improve the prediction accuracy of the event prediction model.

[0056] User device fingerprint: A unique identifier for a user device, which usually includes multiple features such as the device's hardware information, software configuration, and network properties. It is used to identify the user device without relying on user identity information.

[0057] neo4j: A graph database management system for storing and querying graph-structured data.

[0058] Cypher: A query language for Neo4j databases, used to perform query operations in graph databases.

[0059] Hive SQL: A SQL query language used in the Hadoop ecosystem to process massive amounts of data in distributed storage. It allows users to query and analyze data using SQL-like syntax. In this solution, Hive SQL can be used to extract, transform, and load large-scale data sets in order to build relational object graphs and train event prediction models.

[0060] Hive: is a distributed data processing tool used to perform data query and analysis in large-scale global storage. It is often used to process large-scale data and perform operations such as data query, filtering, and aggregation.

[0061] Left Join: A connection operation in a relational database. In a left join, all records in the left table are retained, and records in the right table that match the records in the left table are returned. If there are no matching records in the right join table, the result set will contain NULL values. In an embodiment of the present application, two object nodes are associated by a left join, which can ensure that even if some nodes do not match in the right table, the nodes in the left table will still appear in the results, which helps to retain all object node information.

[0062] One-Hot encoding: A feature processing method that converts discrete information into binary, where each value is mapped to a unique binary code. This method helps convert categorical information into numerical features that the model can understand, so that it can be effectively used by the machine learning model. In an embodiment of the present application, object attribute information can be converted into a feature vector form that can be processed by the machine learning model through One-Hot encoding.

[0063] Tree models: A class of machine learning models based on decision trees, such as random forests or gradient boosted trees.

[0064] Light Gradient Boosting Machine (LightGBM) model: a gradient boosting framework for training and applying tree-based models

[0065] Sigmoid function: An activation function commonly used in binary classification problems that maps real numbers to between 0 and 1. In this scenario, the Sigmoid function may be used to map the model output to a range representing probability, thereby obtaining a target event prediction index.

[0066] Feature aggregation processing: the process of combining multiple features to form more informative features. In the embodiment of the present application, feature aggregation processing can be used to integrate multiple object attribute features of the target object node and neighboring nodes to obtain target prediction features.

[0067] Mean Pooling: Generate new features by selecting a set of features. In graph neural networks, mean pooling is usually used to cluster nodes. In the embodiment of the present application, mean pooling can be used to aggregate the features of neighboring nodes to generate corresponding embedded features.

[0068] Max Pooling: Generate new features by selecting vertices from a set of features. In graph neural networks, max pooling is often used to aggregate the features of central nodes into global features of the graph.

[0069] Concatenation: Concatenate multiple features along a certain dimension to form a larger feature concatenation.

[0070] Weighted Sum: Weighted sum of multiple features. The weights can be learned or pre-set.

[0071] Attention Mechanism: Assign different weights according to the relationship between nodes, and then perform weighted summation of the feature mechanisms of neighboring nodes.

[0072] Graph Convolution: Use the graph distillation layer to perform distillation operations on neighbor nodes to obtain an aggregated feature.

[0073] Adaptive Aggregation: Based on the requirements of the problem and the nature of the graph, more complex feature aggregation methods are designed to adapt to different application scenarios.

[0074] Artificial Intelligence (AI): It is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science. It attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making. Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level technology and software-level technology. The basic technologies of artificial intelligence generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, and mechatronics. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0075] Machine Learning (ML): It is a multi-disciplinary cross-disciplinary subject, involving probability theory, statistics, approximation theory, convex analysis, algorithmic complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills, and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and teaching learning. In an embodiment of the present application, deep learning technology can be used to train an event prediction model, and then the target event prediction index of the target object is obtained based on the object relationship graph through the event prediction model, so as to decide whether to pass the target object's financial business application based on the target event prediction index.

[0076] The following is a brief introduction to the design concept of the embodiment of the present application:

[0077] In order to reduce the risk of fraud from users in related technologies, financial institutions and borrowers are working hard to develop and adopt anti-fraud technologies and tools to identify potential adverse events in advance. For example, financial institutions often use big data to obtain user device fingerprints, address books, operator reports, and even historical consumption information from third-party platforms such as food delivery, online car-hailing, social security, provident funds, and online shopping malls, and manually review the above user information to predict whether the user is likely to have the above adverse events, so as to determine whether the user meets the standards for lending, increasing or reducing the credit limit. However, this method of manual review based on big data is not only inefficient and cumbersome to operate, but also because modern financial services involve a large amount of data, including user attributes, device information, etc., traditional methods are difficult to process and analyze such large-scale and diverse data, resulting in low accuracy in event prediction.

[0078] In view of the above problems, the embodiment of the present application provides an event prediction method, which performs event prediction operations on the target object through an object relationship graph, thereby associating different objects with a structured knowledge graph, so as to more comprehensively consider the association relationship between different objects, dig out the potential relationship between different objects, and improve the accuracy and efficiency of event prediction. On the basis of the above-mentioned object relationship graph, the embodiment of the present application will respond to the event prediction operation triggered for the target object node, determine the various neighbor nodes connected to the target object node from the object relationship graph, and expand the prediction range of the target object to the neighbor nodes connected to it, so as to more comprehensively capture relevant information, and obtain the target prediction feature of the target object node by synthesizing the first object attribute feature of the target object node and the second object attribute feature of each neighbor node, so as to make full use of the global object information reflected by the object relationship graph, aggregate the target object node and the neighbor nodes with an association relationship with the target object node, so that the target prediction feature can more accurately and comprehensively reflect the probability of the target event that may occur in each target object, and improve the accuracy and efficiency of event prediction. The corresponding target event prediction index is calculated through the target prediction features, and the potential fraud probability of the target object is quantified, which enhances the interpretability of the features and enables relevant personnel to make relevant business decisions directly based on the target event prediction index.

[0079] In order to further improve the accuracy of event prediction, in the embodiment of the present application, when the target object node has M neighbor nodes, and the M neighbor nodes are distributed in N levels, and M and N are both positive integers, the second object attribute features of each neighbor node distributed on the same level and at the same distance from the target object node are clustered to obtain N-level clustering results, and the N-level clustering results are aggregated to obtain the first aggregated feature. The first aggregated feature and the first object attribute feature of the target object are subjected to feature aggregation processing to obtain the target prediction feature. In this way, through multiple iterative processing, the neighbor nodes on the Nth level farthest from the target object node are clustered layer by layer until the target object node, and the N-level clustering results obtained by N clustering processes are aggregated, so that the target prediction feature can more comprehensively reflect the object relationship structure by integrating the object attribute feature information of the neighbor nodes at different levels, and improve its ability to reflect the complex object relationships in the object relationship graph, thereby improving the accuracy of event prediction.

[0080] In order to further improve the accuracy and efficiency of event prediction, the embodiment of the present application also performs event prediction operations for target object nodes through a trained event prediction model, and the event prediction model is obtained by training with a sample object relationship graph and the object attribute features of the sample object nodes as training sample data. In this way, the event prediction model can fully learn the association relationship between different sample object nodes, as well as the object attributes of each sample object node itself, realize the structural modeling of the global object relationship graph, and improve the comprehensive prediction ability of the target event. In addition, in each training process, the embodiment of the present application will select any sample object node in the sample object relationship graph as the target sample object node, and output the sample event prediction index of the target sample object node through the model, so as to optimize the model parameters according to the difference between the event label of the target sample object node and the event label of the target sample object node, which not only improves the accuracy of the event prediction index output by the model, but also helps the event prediction model to better adapt to the distribution of sample data and improve the generalization ability of the event prediction model to deal with different object nodes.

[0081] In order to further improve the model training efficiency and event prediction efficiency of the event prediction model, the embodiment of the present application will perform data reduction processing on the original object device information of the original object through a preset data reduction strategy to obtain sample object device information for training the event prediction model, thereby reducing the data volume of the sample object device information, reducing the computing resources and computing time consumed by model training, thereby improving the training efficiency and event prediction efficiency of the event prediction model. Further, the data reduction strategy in the embodiment of the present application may include a plurality of reduction sub-strategies with different reduction dimensions, respectively based on the probability of the target event occurring for each object device type, the number of reference devices of the object devices belonging to each object type, or the object attribute information of each original object, to perform data reduction on the original object device information, thereby comprehensively reducing the noise interference of redundant data and improving the training efficiency and event prediction efficiency of the model. In addition, the embodiment of the present application assigns different policy priorities to different reduction sub-strategies, and can perform data reduction processing on the original object device information in turn according to the order of policy priorities, while reducing the data volume of the original object device information, improving the data reduction efficiency, thereby further improving the training efficiency and event prediction efficiency of the event prediction model.

[0082] After introducing the design ideas of the embodiments of the present application, the following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In the specific implementation process, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.

[0083] The solution provided by the embodiment of the present application can be applied to any scenario where the probability of a specific event occurring to a predicted object is to be predicted. For example, in the scenarios of loan, credit, credit limit increase, credit limit reduction approval in the financial field, anti-fraud can be achieved by predicting whether the object is likely to have identity fraud, group fraud, agency packaging, overdue repayment, malicious debt evasion and other adverse events. Figure 1 As shown, it is a schematic diagram of an application scenario of an embodiment of the present application. The application scenario diagram includes any terminal device 101 among multiple terminal devices and any server 102 among multiple servers.

[0084] In the embodiment of the present application, the terminal device 101 includes but is not limited to mobile phones, tablet computers (PADs), laptop computers, desktop computers, smart TVs, smart car devices, smart voice interaction devices, smart home appliances, and smart wearable devices. The terminal device 101 may be installed with a client related to financial services such as loan application, credit limit increase or decrease, which may be software, web pages, applets, etc., and is not specifically limited in the embodiment of the present application.

[0085] The server 102 is a backend server corresponding to the software or web page, applet, etc., or a backend server specifically used to predict the target event prediction index of the object and to approve the business application of the object. This application does not make specific restrictions. The server 102 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The server 102 may include one or more processors 1021, a memory 1022, and an I / O interface 1023 that interacts with the terminal. In addition, the server 102 can also be configured with a database 1024, which can be used to store object relationship graphs, object attribute features, and trained model parameters. Among them, the memory 1022 of the server 102 can also store program instructions of the event prediction method provided in the embodiment of the present application. When these program instructions are executed by the processor 1021, they can be used to implement the steps of the event prediction method provided in the embodiment of the present application to obtain the target event prediction index of the target object.

[0086] The terminal device 101 and the server 102 may be directly or indirectly connected to each other through one or more networks 103. The network 103 may be a wired network or a wireless network, for example, a mobile cellular network or a wireless fidelity (Wireless-Fidelity, WIFI) network, or other possible networks, which are not limited in the embodiment of the present invention.

[0087] The event prediction method in the embodiment of the present application can be executed by a computer device, which can be a terminal device 101 or a server 102, that is, the method can be executed by the terminal device 101 or the server 102 alone, or can be executed by the terminal device 101 and the server 102 together.

[0088] It should be noted that, in the embodiment of the present application, the number of terminal devices 101 may be one or more, and similarly, the number of servers 102 may be one or more, that is, for Figure 1 What is shown is just an example. In fact, the number and communication mode of terminal devices and servers are not limited and are not specifically limited in the embodiments of the present application.

[0089] Of course, the method provided in the embodiment of the present application is not limited to Figure 1The application scenarios shown can also be used in other possible application scenarios, and the embodiments of the present application are not limited thereto. Figure 1 The functions that can be implemented by each device in the application scenario shown will be described in the subsequent method embodiments, and will not be described in detail here.

[0090] In an embodiment of the present application, an event prediction model can be used to implement the process of obtaining the target event prediction index of the above-mentioned target object. Before the event prediction model is put into use, it is necessary to perform model training in advance so that the event prediction model converges. Next, in order to facilitate the description of the application process, the training process of the event prediction model is first introduced.

[0091] Please refer to Figure 2 , which is a schematic diagram of the training process of the event prediction model provided in the embodiment of the present application, and the process can be Figure 1 The event prediction model of the embodiment of the present application may be executed by the server 102 or the terminal device 101, or may be executed by the server 102 and the terminal device 101 together. Here, the iterative training process of the event prediction model in the embodiment of the present application is described in detail by taking the execution by the server 102 as an example.

[0092] Step 201: Obtain training sample data.

[0093] In the embodiment of the present application, the training sample data used to train the event prediction model includes: multiple sample object relationship graphs, and object attribute features of each sample object node in each sample object relationship graph. In this way, different sample object relationship graphs can contain different object association relationships and object attributes, which increases the diversity of the training sample data, enables the event prediction model to fully learn the association relationship between different sample objects, better adapt to different scenarios or different user groups, improve the generalization ability of the event prediction model, realize the structural modeling of the global object relationship graph, and improve the comprehensive prediction ability of the target event.

[0094] In one possible implementation, reference Figure 3 The diagram shows a schematic diagram of a sample object relationship graph provided by an embodiment of the present application, the sample object relationship graph includes: sample object nodes U1-Un corresponding to each sample object, and event labels (Y marks) associated with each sample object node, representing the number of target events that occurred in the history of the sample object. Among them, one sample object node corresponds to one sample object, and two sample object nodes with a connecting edge have the same object device information.

[0095] The embodiment of the present application can construct the sample object relationship graph shown in the above figure through the object device information of each sample object, as follows: assign a unique corresponding sample object node to each sample object, and assign a corresponding event label to the corresponding sample object node according to the number of target events in the history of the sample object. For example, in order to quickly locate the sample object where the target event has occurred in history, the embodiment of the present application assigns a Y label to the sample object nodes U2 and U4 that have occurred one or more target events in history, indicating that the sample object corresponding to the node has a certain probability of the target event occurring again, so that the Y label can be used to quickly distinguish whether the target event has occurred in the history of the sample object. After obtaining each sample object node, according to the object device information of each sample object, two sample object nodes with the same object device information are connected through connecting edges. In this way, the device association relationship between different sample objects is converted into a structured knowledge graph, which can enable the event prediction model to capture the potential relationship between different objects more quickly and accurately, and can infer new relationships through known association relationships, thereby improving the prediction accuracy and efficiency of target events. Furthermore, for each sample object node in the sample object relationship graph, the embodiment of the present application can obtain the sample object attribute characteristics corresponding to the sample object node through the object attribute information of the corresponding sample object, and finally obtain the training sample data for training the event prediction model.

[0096] Specifically, the object device information of each sample object may include but is not limited to the following types of object device information:

[0097] (1) Bankphone: The subject’s bank phone number, usually used for banking and transaction verification

[0098] (2) Application Phone Number: the phone number provided by the applicant when applying for a loan or other financial services.

[0099] (3) Emergency Contact (FillContactPhone): The emergency contact phone number provided by the subject.

[0100] (4) Device identification number (UseClientid): The unique identifier of the device used by the object.

[0101] (5) Credit Reporting Reserved Phone Number (PbocPhone): The phone number provided by the subject in the credit report, which is used for credit assessment.

[0102] (7) Internet Protocol (IP) address: used to identify the network location and activities of an object.

[0103] (8) Family member information (wife): information about the subject’s family members (such as spouse).

[0104] (9) msaoaid: The advertising identifier used by the object on the mobile device.

[0105] (10)idfa: The advertising identifier used by the subject on Apple devices.

[0106] (11)contact: contact information in the object's address book.

[0107] (12) IMEI: A unique identifier for a mobile device, often used to track the device.

[0108] In one possible implementation, the embodiment of the present application obtains the object attribute features of the object node for each object node in the sample object relationship graph according to the object attribute information of the object corresponding to the object node. The object attribute features provide individual characteristics of each sample object, so that the event prediction model can learn the individual differences of different objects, thereby improving the robustness of the model. In addition, in combination with the sample object relationship graph that provides the device association relationship between objects, the event prediction model can obtain a richer and more comprehensive feature representation, so that the model can fully utilize the device association relationship and individual attribute information of the global object, better capture potential patterns and laws, and improve the prediction accuracy of the event prediction model.

[0109] Specifically, referring to Table 1 below, a type of object attribute information provided by an embodiment of the present application is shown. The object attribute information may include, but is not limited to, sample object identification, name, age, education level, number of loan applications, number of target events that have occurred in history, target event level in the region, and other information. The object attribute information of each sample object can be feature encoded using a variety of feature encoding methods such as One-Hot encoding and tree models to obtain the object attribute features corresponding to each sample object. In this way, the object attribute information is characterized, and the original object attribute information is converted into feature values, so that the event prediction model can better capture the relationship between different object attribute information, and thus can make reasonable event predictions when faced with new input data.

[0110] Table 1

[0111]

[0112]

[0113] In a possible implementation, the embodiment of the present application can directly convert the object attribute information of each sample object into a One-Hot encoding form through Hive SQL, thereby obtaining object attribute features in a binary encoding form, and by converting discrete information into numerical features that the model can understand, the object attribute information can be effectively used by the machine learning model. Specifically, the feature encoding process is as follows:

[0114] CASE

[0115] WHEN prov_city_dist risk_level (target event level in the region) IS NULL THEN '1, 0, 0, 0, 0, 0'

[0116] WHEN prov_city_dist_risk_level==1THEN'0,1,0,0,0,0'

[0117] WHEN prov_city_dist_risk_level==2THEN'0, 0, 1, 0, 0, 0'

[0118] WHEN prov_city_dist_risk_level==3THEN'0, 0, 0, 1, 0, 0'

[0119] WHEN prov_city_dist_risk_level==4THEN'0,0,0,0,1,0'

[0120] WHEN prov city_dist risklevel==5THEN'0,0,0,0,0,1

[0121] end as prov city_dist_risk_encoder,

[0122] CASE

[0123] WHEN apply_date (date when the user submitted the application) IS NULL THEN '1, 00000000'

[0124] ELSE concat ws(',','0',cast(apply date as STRING)).

[0125] Perform conditional judgment based on the value of the prov_city_dist_risk_level field.

[0126] If prov_city_dist_risk_level is NULL, returns '1, 0, 0, 0, 0, 0'.

[0127] If prov_city_dist_risk_level is 1, then returns '0, 1

[0128] If prov_city_dist_risk_level is 2, then returns '0, 0, 1, 0, 0, 0'

[0129] And so on, until prov_city_dist_risk_level is 5, the return value is '0, 0, 0, 0, 0, 1'.

[0130] The above feature encoding process judges the different values ​​of the target event level (prov_city_dist_risk_level) of the sample object's area and performs binary encoding conversion. The 0 or 1 at each position in the converted feature value indicates the presence or absence of the corresponding target event level. And the encoding conversion is performed by judging whether apply_date (application date) is empty. If it is NULL, it means that the date does not exist, and it is represented by '1, 00000000'. Otherwise, it is represented by '0' to indicate that the date exists, and it is represented by a string of the actual date at the end.

[0131] In a possible implementation, the embodiment of the present application can also capture the nonlinear relationship between different object attribute information by using a tree model encoding method and a decision tree structure. The tree model encoding method mainly inputs the object attribute information of each sample object and the corresponding event label into a tree model for model training, and is used to output the corresponding target event prediction index of each sample object. During the tree model training process, the object attribute information of each sample object will be feature encoded, thereby generating object attribute features corresponding to each sample object, that is, the embodiment of the present application obtains the object attribute features of each sample object through the intermediate feature values ​​generated during the tree model training process.

[0132] Specifically, taking the LightGBM model as the tree model used in the embodiment of the present application as an example, the key steps of the LightGBM model training include: data preparation, model parameter definition, training model and applying the model for event prediction, as shown below

[0133] (1) Data preparation: In the embodiment of the present application, the object attribute information of multiple sample objects and the event labels of each sample object are used as the training data of the LightGBM model. Among them, the object attribute information is the input variable used to predict whether the target event will occur in the corresponding sample object, and the event label is the target variable, which represents whether the target event actually occurs in each sample object.

[0134] (2) Model parameter definition: The embodiment of this application needs to define the initial model parameters of the LightGBM model, including the number of trees, tree depth, learning rate, etc. The above initial model parameters will affect the performance and training speed of the model. The parameters can be adjusted according to actual business needs and the characteristics of the training data. This embodiment of the application does not make specific limitations. In one possible implementation, the model parameters of the LightGBM model can be as follows:

[0135]

[0136]

[0137] Among them, the 'boosting_type' parameter represents the type of boosting tree used, and 'gbdt' indicates that the embodiment of the present application uses a gradient boosting decision tree. 'metric' represents the evaluation index of the model, and 'binary_logloss' indicates that the embodiment of the present application uses the logarithmic loss function of the binary classification problem to evaluate the performance of the model. The 'num_leaves' parameter represents the number of leaf nodes of each tree, which controls the complexity of the tree model. In the embodiment of the present application, it determines the depth of each tree. The 'learning_rate' parameter represents the learning rate, which is a parameter that controls the amplitude of model parameter updates. A smaller learning rate usually means more stable model training, but may require more iterations. In the embodiment of the present application, the learning rate can be set to 0.05. The 'feature_fraction' parameter specifies the proportion of feature sampling, that is, the proportion of features used in each iteration. In the embodiment of the present application, 0.9 means that 90% of the features will be used for training in each iteration. The 'bagging_fraction' parameter represents the proportion of data sampling, that is, the proportion of data used in each iteration. In the embodiment of the present application, 0.8 means that 80% of the data will be used for training in each iteration. In a possible implementation, an object relationship graph can be constructed based on a sample object device set through a traditional knowledge graph construction method. For example, the triples corresponding to object nodes, association relationships, and object attributes are determined through distributed data processing tools such as Hive, and imported into graph databases such as neo4j. The isolated nodes and groups of the entire graph are queried through cypher, and finally the corresponding knowledge graph is exported. However, considering that the object device information of each object may change every day, in order to ensure the timeliness of the training data and improve the prediction accuracy of the event prediction model, the embodiment of the present application will construct a corresponding object relationship graph for the object data of each day. If the existing knowledge graph construction method is adopted, the construction process of the entire knowledge graph is quite complicated, and the computing resources and time consumed to construct multiple graphs are huge, resulting in low training efficiency of the event prediction model.

[0138] In view of the above reasons, when constructing a sample object relationship graph, the embodiment of the present application can connect each sample object node with its corresponding sample device node according to the object device information associated with each sample object, so as to construct a basic first object device graph. The first object device graph represents the association relationship between each sample object and the corresponding object device information, provides the basic connection between the sample object and the object device information, and lays the foundation for the subsequent construction of the knowledge graph. On the basis of the first object device graph, in order to further reduce the data volume of the knowledge graph and improve the model training efficiency, the embodiment of the present application can filter out sample objects that have historically had at least one target event from the first object device graph through the event label of each sample object as the target sample object, so as to obtain a second object device graph containing only the target sample object node and the corresponding object device node. Combining the first object device graph and the second object device graph, the two sample object nodes with the same object device information in the two are connected by connecting edges to obtain the sample object graph finally used for training the event prediction model.

[0139] In a possible implementation, in order to strengthen the association relationship between the target sample object node and other sample object nodes, so that the constructed knowledge graph is more focused on the target event and improves the prediction accuracy of the event prediction model, the embodiment of the present application can perform device association processing on the second object device graph and the first object device graph, based on one or more sample device nodes corresponding to each target sample object node in the second object device graph, from the first object device graph, determine the sample object nodes with the same sample device nodes, that is, the associated object nodes, and connect each associated object node with the corresponding target sample object node through a connecting edge to obtain the first object relationship graph, and use it as the sample object graph for model training. In order to further improve the comprehensiveness and comprehensiveness of the knowledge graph, so that the event prediction model can better capture the overall association relationship between sample objects, the embodiment of the present application can also perform self-association processing on the two first object device graphs, that is, according to the sample device nodes corresponding to each sample object node in the two first object device graphs, connect the two sample object nodes with the same sample device nodes through connecting edges to obtain the second object relationship graph. Then, the first object relationship graph is processed with one or more object associations through the second object relationship graph, and the processed graph is used as the sample object relationship graph for model training. Each object association process requires connecting the nodes corresponding to the same sample object in the first object relationship graph and the second object relationship graph through connecting edges, so that the number of neighbor nodes corresponding to the target sample object nodes in the processed knowledge graph increases, so that the sample object relationship graph can cover more object associations. The event prediction model trained by it can more accurately capture the associations between objects, enhance the generalization ability of the event prediction model, and improve the accuracy of event prediction.

[0140] Specifically, referring to FIG. 4 (a)-(d), a schematic diagram of a construction process of a sample object relationship graph provided in an embodiment of the present application is shown. The embodiment of the present application can simulate the construction process through Hive SQL. The specific steps are as follows:

[0141] 1) As shown in FIG. 4( a ), according to the sample object device information of each sample object, the sample object nodes U1 -Un corresponding to each sample object are connected with the sample device nodes P1 -Pn associated therewith to obtain a first object device graph Tab_s.

[0142] 2) As shown in FIG4(a), according to the event labels of each sample object, the target sample object nodes are selected from Tab_s, and each target sample object node is assigned a Y label to obtain the second object device graph Tab_1. The Y label indicates that the sample object corresponding to the sample object node has had at least one target event in history.

[0143] 3) As shown in FIG4(b), according to the sample device nodes associated with each target sample object node in Tab_1, the sample object nodes with the same sample device nodes, i.e., the associated object nodes, are determined from Tab_s. Each sample device node is connected to its corresponding associated object node through a connecting edge to obtain a first object relationship graph Tab_p. Specifically, the above-mentioned device association processing can be performed through a left join operation, with Tab_1 as the left table and the corresponding associated object nodes as the right table. Each target sample object node in Tab_1 is associated with the corresponding associated object node through a left join operation to obtain a first object relationship graph Tab_p.

[0144] 4) As shown in FIG4(c), the sample object nodes with the same sample device nodes in the two Tab_s are self-associated through a left join operation to obtain a second object relationship graph Tab_nl.

[0145] 5) As shown in Figure 4(d), Tab_p is subjected to three object association processes through Tab_nl. Each object association process requires connecting Tab_p with the object nodes corresponding to the same sample object in Tab_nl through connecting edges to obtain a four-hop sample object relationship graph. Considering that the corresponding amount of calculation will increase exponentially with each additional hop, the 4-hop sample object relationship graph is selected as the subsequent model training data.

[0146] In a possible implementation, considering that the object device information of each object may change every day in actual scenarios, the embodiment of the present application will construct a corresponding object relationship map for each day's object data, so that the object relationship map can reflect the latest association relationship between each object in real time, including changes in object devices, the addition of new object devices, etc., thereby enhancing the generalization ability of the event prediction model, enabling the event prediction model to more accurately capture the dynamic changes of object relationships, better adapt to future changes, and improve the applicability and sustainability of the model. In addition, constructing a daily object relationship map can ensure that the object data used in model training and prediction are all within the same time range, avoiding the problem of using future data during model training and prediction, and the problem of data crossing, thereby ensuring the stability and reliability of the model in practical applications.

[0147] In a possible implementation, during the training phase of the event prediction model, the amount of original objects and corresponding original object device information data used for model training is huge, and even the original objects may exceed 1 billion, resulting in a large amount of computing resources and training time required for model training. Constructing an object relationship graph for each day's original object data will further increase the consumption of computing resources and time, further reducing the efficiency of model training. Therefore, before constructing the object relationship graph, the embodiment of the present application can use a data reduction strategy to perform data reduction processing on the original object device information to obtain a smaller overall data volume, but the effective information used for model training is basically unchanged. Sample object device information, thereby using information-rich training data for effective model training while greatly reducing the consumption of computing resources and time.

[0148] In a possible implementation, the data reduction strategy in the embodiment of the present application may include multiple reduction sub-strategies, and each reduction sub-strategy is assigned a corresponding policy priority. In the data reduction process, by determining the policy priority of each reduction sub-strategy used, multiple data reduction processes are performed on the original object device information in accordance with a certain policy priority order in combination with multiple reduction sub-strategies, thereby achieving data reduction processing in multiple dimensions and improving the efficiency and effectiveness of data reduction.

[0149] Specifically, taking the example of allocating policy priorities of corresponding sizes according to the reduction granularity of each reduction sub-strategy, the original object device information is first reduced using a reduction sub-strategy with a relatively large reduction granularity, and then a reduction sub-strategy with a relatively small reduction granularity is used for subsequent reduction processing, in order of policy priority from high to low. This can reduce the computing resources and time consumed by the overall reduction process, thereby improving the efficiency of the event prediction model.

[0150] In a possible implementation, considering that each original object may contain original object device information of more than ten or even more object device types, and not all original object device information of all object device types contributes greatly to event prediction. Therefore, the embodiment of the present application proposes a target event reduction strategy, which performs data reduction processing on the original object device information based on the probability of the target event occurring in each object device type. The specific reduction process is as follows: According to the original object device information, the number of original objects corresponding to each object device type is determined. Specifically, the object device type can be pre-set based on actual business needs to classify each original object device information, or it can be directly using the device type of each original object device information itself, which is not specifically limited in the embodiment of the present application. Then, for each object device type, combined with the event label of each original object, the number of original objects corresponding to each object device type that have historically had the target event is determined, that is, the number of first target objects. Through the number of first target objects and the number of original objects, the probability of the target event corresponding to each object device type is obtained. According to the preset probability threshold, the target device type is determined from each object device type. Specifically, one or more object device types whose probability of the target event is greater than or equal to the preset probability threshold can be selected as the target device type, or the object device type with the highest probability of the target event can be directly selected, and the preset probability threshold can be obtained by combining historical data analysis of the target event, or can be set by relevant personnel based on experience, and the embodiments of the present application do not specifically limit this. According to the determined target device type, the original object device information corresponding to each target device type is screened out from the original object device information as the sample object device information, so that each sample object in the sample object device information only contains the target object device information corresponding to one or more target device types, which greatly reduces the amount of training data for model training and improves the training efficiency of the event prediction model.

[0151] Specifically, referring to Table 2 below, which is a statistical table of object device types provided by an embodiment of the present application, each original object includes a bank card reserved phone number, an application mobile phone number, an emergency contact, a device identification number, a credit reserved phone number, an IP address, family member information, msaoaid, idfa, contact, imei and other types of original object device information. The embodiment of the present application can divide the object device information of all original objects into two parts according to the preset object device type, and count the number of original objects corresponding to each object device type according to the classification results, and further determine the number of first target objects in each object device type that have had one or more target events in history. The above two statistical values ​​are used to calculate the probability of the target event corresponding to each object device type, that is, the ratio between the number of first target objects and the number of original objects.

[0152] Table 2

[0153]

[0154] According to the statistical table, five target device types with a relatively high probability of the target event can be selected, namely, the application mobile phone number, device identification number, credit reserved phone number, emergency contact, and bank card reserved phone number. The selection of the above target device types and probability thresholds can be adjusted according to business needs, and the embodiments of this application do not make specific limitations.

[0155] In a possible implementation, considering that the original object device information of each original object may reach hundreds or thousands, resulting in a quantity explosion, an embodiment of the present application proposes a quantity reduction strategy, which reduces the data of the original object device information based on the reference device number of the object devices belonging to each object device type. The specific reduction process is as follows: According to the original object device information, the number of object devices belonging to each object device type is determined. For each object device type, the reference device number of the object device type is obtained by combining the reference quantity ratio indicated by the quantity reduction strategy and the number of object devices belonging to the object device type. In combination with the reference device number, the original objects whose object device number is less than or equal to the reference device number are selected from the original objects corresponding to each object device type, and the object device information of the original objects selected under each object device type is used as the sample object device information, so that the number of sample object device information of each sample object is reduced to a reasonable range, which greatly reduces the amount of training data for model training and improves the training efficiency of the event prediction model.

[0156] Specifically, refer to Figure 5 As shown, the original object device information is classified and processed according to the preset object device class, and the classification results of the five object device types of application mobile phone number, device ID, credit reserved phone number, emergency contact, and bank card reserved phone number are obtained, and the number of object devices corresponding to each of the five object device types is counted respectively. Figure 5 Taking the "Credit Reserved Phone (PbocPhone)" object device type in the example, according to the above steps, a statistical table corresponding to the object device type can be obtained, where the X-axis represents the number of object devices with the object device type of PbocPhone in all original object device information corresponding to the object device type, ranging from 1 to 9, and the Y-axis represents the number of original objects with different numbers of object devices, ranging from 0 to 10. 8After obtaining the number of object devices of each object device type, the reference number of each object device type can be determined by the reference number ratio indicated by the number reduction strategy. For example, in order to eliminate abnormal values ​​whose number of devices obviously exceeds the normal level, the reference number ratio can be set to 99.99%, and the 99.99% quantile of the number of object devices of each object device type can be calculated by quantile to obtain the reference number of devices. Figure 5 , by calculating the 99.99% quantile, we can obtain that the number of reference devices for the object device type PbocPhone device is 3 (i.e., outlier > 3), the number of reference devices for the object device type device identification number (UseClientid) device is 7 (i.e., outlier > 7), the number of reference devices for the object device type bank card reserved phone (BankPhone) device is 2 (i.e., outlier > 2), the number of reference devices for the object device type emergency contact (FillContactPhone) device is 10 (i.e., outlier > 10), and the number of reference devices for the object device type application mobile phone number (ApplPhone) device is 2 (i.e., outlier > 2). From the original objects corresponding to each object device type, select the original objects whose number of devices does not exceed the number of reference devices to obtain the reduced sample object device information. That is, from each sample object corresponding to the PbocPhone object device type, select the sample objects whose number of PbocPhone device information does not exceed 3.

[0157] In one possible implementation, considering that there may be original objects in the original object device information that do not have the preset object attribute information, and the object attribute characteristics of each sample object node are important input values ​​of the event prediction model, the sample object nodes that lack object attribute information will cause the corresponding sample object nodes to be unable to be used for training during model training, resulting in errors in model training. Therefore, an embodiment of the present application proposes an object reduction strategy, which reduces the data of the original object device information based on the object attribute information of each original object. The specific reduction process is as follows: through the preset object attribute information, a second target object with object attribute information is selected from the original object, and the object device information of the selected second target object is determined as the sample object device information. The sample objects corresponding to each sample object device information have the preset object attribute information, thereby ensuring the normal operation of the model training.

[0158] Specifically, the original attribute information of each original object can be extracted respectively and matched with the preset object attribute information. The matching process may include but is not limited to comparing the consistency of each original attribute information of the original object with the object attribute information, so as to screen out the original objects with the same original attribute information as the object attribute information from the sample object device set as the second target object, thereby completing the data reduction of the original object device information.

[0159] In a possible implementation, the embodiment of the present application assigns policy priorities that decrease from large to small to the three reduction sub-strategies of target event reduction strategy, quantity reduction strategy, and object reduction strategy according to the reduction granularity. Therefore, the embodiment of the present application can select two or more reduction sub-strategies, and perform multiple data reduction processes on the original object device information in order of policy priorities from large to small, so as to comprehensively reduce the original object device information from three dimensions: object device type, object device quantity, and object attribute information, and the reduction granularity gradually decreases during the data reduction process, which can not only ensure the effectiveness of data reduction, but also reduce the computing resources and time consumed by the overall reduction process, and improve the efficiency of the event prediction model.

[0160] Step 202: Adopting the event prediction model used in this round, determine the neighboring sample object nodes of the target sample object node from the selected sample object relationship graph.

[0161] In the embodiment of the present application, in the process of training the event prediction model to be trained by using the training sample data, the target sample object node targeted by each training process can be any sample object node in the sample object relationship graph. And, after the target sample object node is determined, the neighboring nodes connected to the target object can be determined through the connection relationship between the object nodes shown in the object relationship graph.

[0162] Since the process of determining the neighboring sample object nodes of the target sample object node during training is the same as the process of determining the neighboring nodes of the target object node during actual application, the specific implementation process of this step will be introduced in detail in the subsequent application process and will not be elaborated here.

[0163] Step 203: Based on the first sample object attribute feature of the target sample object node and the second sample object attribute feature of the neighboring sample object node, obtain the sample prediction feature of the target sample object node.

[0164] Step 204: Based on the sample prediction features, obtain the sample event prediction index of the target sample object.

[0165] In the embodiment of the present application, the GraphSAGE algorithm can be used to construct an initial event prediction model based on multiple sample object relationship graphs. Since the prediction process of the sample event prediction index during the training process is the same as the prediction process actually applied to the event prediction process, the specific implementation process of steps 203-204 will be introduced in detail in the subsequent application process, and no further details will be given here.

[0166] Step 205: Obtain a target loss value based on the difference between the event label of the target sample object node and the obtained sample event prediction index.

[0167] In an embodiment of the present application, as described above, the sample event prediction index predicted for the target sample object node can be compared with the event label corresponding to the target sample object node, and then the difference between the event label and the sample event prediction index can be determined based on the comparison result, thereby obtaining the target loss value of the event prediction model, and then determining whether the event estimation model meets the convergence conditions based on the target loss value.

[0168] In an embodiment of the present application, when calculating the loss value according to the difference between the event prediction index corresponding to the target sample object node and the corresponding event label, a preset loss function can be used to calculate the loss value. Specifically, the loss function can adopt a cross entropy loss function, such as a Sigmoid function. The loss function used can also be but not limited to a multi-classification cross entropy loss function, a contrastive loss function (contrastive Loss) or a triplet loss function (triplet Loss) related to metric learning, etc. Usually, the loss value is to determine the degree of proximity between the actual output and the expected output. The smaller the loss value, the closer the actual output is to the expected output. Among them, any possible loss function can be selected to calculate the loss value, and the embodiment of the present application does not limit this.

[0169] Step 206: Based on the target loss value, determine whether the event prediction model meets the preset convergence condition; if not, execute step 207; if yes, execute step 208.

[0170] In an embodiment of the present application, if the target loss value is less than or equal to the preset target value, it indicates that the difference between the event prediction index and the event label is small enough, so the accuracy of the event prediction model meets the requirements, and thus it can be determined that the event prediction model meets the preset convergence conditions. Otherwise, it is determined that the event prediction model has not converged.

[0171] In a possible implementation, when the change amplitude of the model loss value obtained through N consecutive trainings is less than or equal to the preset target value, it is considered that the target loss value of the model has converged to the preset target value, indicating that the event prediction model meets the preset convergence condition; otherwise, it means that the loss value of the model has not converged, and the event prediction model does not meet the preset convergence condition. Alternatively, when the number of model training iterations meets the preset value, it can also be considered that the event prediction model meets the preset convergence condition.

[0172] Step 207: Based on the target loss value, adjust the parameters of the event prediction model.

[0173] In an embodiment of the present application, if the loss value of the model has not converged, that is, the event prediction model used in this round has not yet met the preset convergence conditions, the model parameters are adjusted according to the loss value of the model. After adjusting the model parameters, return to execute step 202 to continue the next round of training process.

[0174] Step 208: If the model converges, the training process ends and a trained event prediction model is obtained.

[0175] In an embodiment of the present application, if it is determined that the event prediction model used in this round meets the preset convergence condition, the event prediction model used in this round is used as the trained event prediction model.

[0176] In one possible implementation, considering that the use of multiple days of training data for training and event prediction will result in a large amount of training data, which consumes a lot of computing resources and time, the embodiment of the present application also uses incremental learning to first train a benchmark event prediction model through part of the training data, and then, based on the benchmark model, incrementally train the event prediction model through the remaining training data. Since the incremental training process usually only requires loading one day's new object data and the model parameters of the previous day, the model parameters are fine-tuned by updating sample object nodes and edges, without the need to retrain the model using the full amount of data, thereby reducing the computing resources and time required for model training while increasing the training data.

[0177] Specifically, refer to Figure 6The figure shows a schematic diagram of an incremental learning process provided by an embodiment of the present application. The incremental learning process for the event prediction model in the embodiment of the present application can be divided into two stages: benchmark training and incremental training. Before model training, sample object data of a certain length of time in the past is loaded. Here, sample object data of 90 days is taken as an example. The sample object data of the first 60 days is used to obtain a benchmark event prediction model through model training operations such as the aforementioned graph algorithm, and the model parameters of the benchmark model obtained by training are saved for use in the subsequent incremental training stage. In the incremental training stage, the object data of each day other than the first 60 days is loaded, and it is uniformly referred to as "the day" later. Using the loaded data of the day, the sample object relationship map of the previous day is updated on the basis of the sample object relationship map of the previous day to obtain the sample object relationship map of the day. Usually, compared with the sample object relationship map of the previous day, the new sample object relationship map of the day may only add new object nodes and edges. And according to the sample object relationship map of the day, the model parameters of the benchmark model are fine-tuned, including updating the parameters of the model according to the gradient information obtained during the training process. Repeat the above operation of loading the sample object data of the next day until all training sample data are loaded and the incremental training is completed.

[0178] In a possible implementation, in order to ensure the performance and stability of the model, the trained event prediction model can also be periodically evaluated and adjusted, including but not limited to applying the trained model to the full amount of data for performance evaluation at regular intervals (e.g., one week, etc.). When the performance indicators of the model, such as accuracy, response rate, and accuracy, decrease or fail to reach the expected level, the parameters of the event prediction model can be adjusted.

[0179] See also Figure 7 FIG. 1 is a flow chart of an event prediction method provided by an embodiment of the present application. The method can be performed by Figure 1 The method may be executed by the server 102 or the terminal device 101, or may be executed by the server 102 and the terminal device 101 together. Here, the method is mainly introduced by taking the server 102 as an example. The process of the method is described as follows.

[0180] Step 701: In response to an event prediction operation triggered on a target object node, determine neighbor nodes of the target object node from an object relationship graph.

[0181] In an embodiment of the present application, when an object applies for a loan, credit limit increase, credit limit reduction, etc., an event prediction operation for the target object node of the object can be triggered, and the connection relationship between each object node displayed by the object relationship graph can be used to determine the neighbor nodes connected to the target object through the connection edges.

[0182] Specifically, the object relationship graph may include a connection edge and N object nodes, one object node corresponds to one object, and two object nodes with a connection edge have the same object device information. The construction process of the object relationship graph is the same as the aforementioned model training process, and will not be repeated here.

[0183] In one possible implementation, reference Figure 8 As shown, the target object node may include M neighbor nodes, and the M neighbor nodes may be distributed in N levels. The neighbor nodes distributed in the same level have the same distance from the target object node. The higher the level, the greater the distance between the neighbor nodes distributed in the higher level and the target object node (both M and N are positive integers). Figure 8 As shown in (a), when the level N is 1, the M neighbor nodes of the target object node G are distributed on the same level, and are directly connected to the target object node through a connecting edge. Figure 8 Taking the level N=2 shown in (b) as an example, the M neighbor nodes of the target object node G are distributed on two levels. Each neighbor node on the first level is directly connected to the target object node through a connecting edge, and the distance to the target object node is the smallest. The neighbor nodes on the second level are indirectly connected to the target object node through two connecting edges, and the distance to the target object node is larger.

[0184] Step 702: Based on the first object attribute feature of the target object node and the second object attribute feature of the neighboring node, obtain the target prediction feature of the target object node.

[0185] In an embodiment of the present application, when the target object node whose target event prediction index needs to be estimated this time and its connected neighbor nodes are determined, the first object attribute feature of the target object node and the second object attribute feature of the corresponding neighbor node are obtained respectively, and through feature aggregation processing, they are integrated into a comprehensive feature, namely the target prediction feature, so that the target prediction feature can not only characterize the various object attribute features of the target object node and its neighbor nodes, but also reflect the association relationship between different objects, which is more helpful for the event prediction model to accurately discover the potential fraud of the target object through the target prediction feature, thereby improving the accuracy and credibility of event prediction.

[0186] Specifically, in a graph neural network, feature aggregation processing is an operation to integrate the features of a target object node and its neighboring nodes, while in an embodiment of the present application, feature aggregation processing refers to the process of merging or aggregating multiple object attribute features, including but not limited to: average pooling, maximum pooling, feature splicing, weighted summation, graph distillation, adaptive aggregation, etc., which is not specifically limited in the embodiment of the present application.

[0187] In a possible implementation, the embodiment of the present application may first perform feature aggregation processing on the second object attribute features of each neighbor node to obtain a first aggregate feature. In this way, aggregating the attribute features of multiple neighbor nodes can help reduce the adverse effects of noise from a single neighbor node on the target prediction feature. Feature aggregation processing is then performed on the first aggregate feature and the first object attribute feature of the target object node to finally obtain the target prediction feature. This step-by-step aggregation method can gradually expand the range of aggregated features and obtain more high-level and more abstract feature representations.

[0188] Specifically, taking a small-scale object relationship graph as an example, the target object node that needs to perform the target event prediction operation is connected to neighbor node 1 and neighbor node 2, and the feature vectors of the target object node are [0.8, 0.4], the feature vector of neighbor node 1 is [0.2, 0.6], and the feature vector of neighbor node 2 is [0.5, 0.9]. First, the feature vectors of the two neighbor nodes are average pooled to obtain the first aggregate feature of [0.35, 0.75]. Then, the first aggregate feature and the feature vector of the target object node are average pooled to obtain the embedded feature of the target object node of [0.575, 0.575], which is the target prediction feature corresponding to the target object node.

[0189] In a possible implementation, when the target object node includes M neighbor nodes distributed on N levels, the embodiment of the present application can cluster the neighbor nodes on the same level to obtain N-level clustering results, and then aggregate the N-level clustering results to obtain the first aggregate feature, thereby performing feature aggregation on the first aggregate feature and the first object attribute feature of the target object node to obtain the target prediction feature. In this way, through multiple iterative processes, the neighbor nodes farthest from the target object node are gradually aggregated to the target object node, and the N-level clustering results obtained by N clustering processes are aggregated, thereby integrating the information of neighbor nodes at different levels, so that the target prediction feature can more comprehensively reflect the object relationship structure, improve its ability to reflect the complex object relationships in the object relationship graph, and thus improve the accuracy of event prediction.

[0190] In one possible implementation, the target object node is distributed among M neighbor nodes on N levels, and each level may have multiple neighbor nodes. Therefore, before performing feature aggregation on multiple neighbor nodes on N levels, the embodiment of the present application may perform random sampling on multiple neighbor nodes on each level, so that the number of sampled neighbor nodes at each level does not exceed a preset threshold, thereby reducing the computing resources and time required for event prediction operations and improving event prediction efficiency.

[0191] Specifically, refer to Fig. 9The diagram shows a schematic diagram of an object relationship graph provided by an embodiment of the present application, wherein the target object node that needs to perform an event prediction operation is node G, and its neighbor nodes are distributed on two levels, and each level has multiple neighbor nodes. The embodiment of the present application can use the GraphSAGE algorithm to perform neighbor sampling and neighbor aggregation on the object relationship graph, so as to obtain the target prediction feature of the target object node. Specifically, the node median of multiple neighbor nodes on each level can be used as a preset threshold, and 3 neighbor nodes are sampled at the first level and 5 neighbor nodes are sampled at the second level. And in accordance with the aforementioned iterative order, the second object attribute features of the sampled neighbor nodes at each level are subjected to feature aggregation processing to generate an embedded value for each level, that is, the hierarchical clustering result is then aggregated for the hierarchical clustering results of the two levels to obtain the first aggregate feature. Finally, the first aggregate feature and the first object attribute feature of the target object node are feature aggregated to obtain the target prediction feature.

[0192] Step 703: Based on the target prediction features, obtain the event prediction index of the target object.

[0193] In an embodiment of the present application, after the target prediction features of the target object are obtained through the above-mentioned neighbor sampling and neighbor aggregation processing, event prediction can be performed on the target object based on the target prediction features to obtain the probability of the target event occurring in the target object, that is, the event prediction index.

[0194] In one possible implementation, the target prediction feature can be input into the fully connected layer, and the target prediction feature can be linearly transformed through the fully connected layer to output the event prediction result of the target object. In the binary classification task, the output result can be passed through the Sigmoid function to map the prediction result to the [0,1] interval to obtain the probability of the target object occurring the target event, that is, the event prediction index is a score with a value range of [0,1].

[0195] Specifically, the fully connected layer can perform linear combinations through the weight matrix and bias terms, such as weighted summation of the target prediction features, to obtain the output prediction results. After the linear transformation, nonlinear relationships can be introduced through nonlinear activation functions such as ReLU, so that the output results can capture more complex features and correlations, and improve the accuracy of event prediction.

[0196] See also Fig.10 Based on the same inventive concept, the embodiment of the present application further provides an event prediction device 10, which includes:

[0197] The first determination unit 1001 is used to determine the neighbor nodes of the target object node from the object relationship graph in response to the event prediction operation triggered for the target object node.

[0198] The first acquisition unit 1002 is used to obtain a target prediction feature of the target object node based on a first object attribute feature of the target object node and a second object attribute feature of a neighboring node.

[0199] The index prediction unit 1003 is used to obtain a target event prediction index of the target object based on the target prediction feature, and the target event prediction index represents the probability of the target event occurring in the target object.

[0200] Optionally, the number of neighbor nodes is at least one, and the first acquiring unit 1002 is specifically configured to:

[0201] Performing feature aggregation processing on the second object attribute feature to obtain a first aggregated feature;

[0202] The first aggregation feature and the first object attribute feature are subjected to feature aggregation processing to obtain a target prediction feature.

[0203] Optionally, the neighbor node includes M neighbor nodes, the M neighbor nodes are distributed in N levels, and the distances between the neighbor nodes distributed in the same level and the target object node are the same; the higher the level, the greater the distance between the neighbor nodes distributed in the level and the target object node; M and N are both positive integers; the first acquisition unit 1002 is specifically used to:

[0204] Cluster the neighboring nodes on the same level to obtain N-level clustering results;

[0205] The N-level clustering results are aggregated to obtain the first aggregate feature.

[0206] The device can be used to execute the event prediction method provided in each embodiment of the present application. Therefore, the functions that can be implemented by each functional module of the device can be referred to the description of the aforementioned embodiments and will not be elaborated herein.

[0207] See also Fig.11 Based on the same inventive concept, the embodiment of the present application further provides a training device 11 for an event prediction model, the device comprising:

[0208] The sample acquisition unit 1101 is used to acquire training sample data, which includes: a sample object relationship graph and sample object attribute features of sample object nodes in the sample object relationship graph; for a sample object node, an event label represents the number of times a target event has occurred in the sample object history.

[0209] The second determining unit 1102 is used to determine the neighboring sample object nodes of the target sample object node from the sample object relationship graph during the training of the event prediction model to be trained based on the training sample data; the target sample object node is any sample object node in the sample object relationship graph.

[0210] The second acquisition unit 1103 is configured to acquire a sample prediction feature of a target sample object node based on a first sample object attribute feature of the target sample object node and a second sample object attribute feature of a neighboring sample object node.

[0211] The model adjustment unit 1104 is used to obtain the sample event prediction index of the target sample object based on the sample prediction feature, and obtain the target loss value based on the difference between the event label of the target sample object node and the sample event prediction index, and use the target loss value to adjust the model parameters of the event prediction model.

[0212] Optionally, the sample acquisition unit 1101 is specifically configured to:

[0213] Based on the sample object device information of the sample object, a first object device map is constructed; the first object device map includes a sample object node and a sample device node of each sample object node, and a sample device node is used to reflect the sample object device information of a sample object;

[0214] Based on the event label of the sample object, a target sample object is determined from the sample object, where the target sample object is a sample object that has experienced the target event in history;

[0215] Based on the sample object device information of the target sample object, construct a second object device map; the second object device map includes a target sample object node and a sample device node of each target sample object node;

[0216] Based on the first object device graph and the second object device graph, a sample object relationship graph is obtained.

[0217] Optionally, the sample acquisition unit 1101 is further configured to:

[0218] Get the original object device information of the original object;

[0219] Based on a preset data reduction strategy, data reduction processing is performed on the original object device information to obtain sample object device information.

[0220] Optionally, the data reduction strategy includes at least two reduction sub-strategies, and the sample acquisition unit 1101 is specifically configured to:

[0221] Determine the policy priority of each reduction sub-policy;

[0222] Based on at least two reduction sub-strategies, data reduction processing is performed on the original object device information in order of policy priority to obtain sample object device information.

[0223] Optionally, the reduction sub-strategy includes a target event reduction strategy, and the target event reduction strategy indicates that the reduction is performed based on the probability of the target event occurring in each object device type. The sample acquisition unit 1101 is specifically configured to:

[0224] Determine the number of original objects corresponding to each object device type from the original object device information;

[0225] For each object device type, based on the event label of the original object, the number of first target objects corresponding to the object device type is determined, and based on the number of first target objects corresponding to the object device type and the number of original objects, the target event probability of the object device type is obtained; the first target object is the original object for which the target event has occurred in history;

[0226] determining a target device type from the object device types based on a preset probability threshold and a target event probability of each object device type;

[0227] According to the target device type, sample target device information is obtained from the original target device information.

[0228] Optionally, the reduction sub-strategy includes a quantity reduction strategy, and the quantity reduction strategy indicates that the reduction is performed based on the reference device quantity of the object devices belonging to each object device type; the sample acquisition unit 1101 is specifically configured to:

[0229] Determining the number of object devices belonging to each object device type from the original object device information;

[0230] For each target device type, based on the reference quantity ratio indicated by the quantity reduction policy and the quantity of target devices belonging to the target device type, obtain a reference device quantity of the target device type;

[0231] Selecting an original object from original objects corresponding to the object device type in combination with the number of reference devices; the number of object devices of the selected original object is less than or equal to the number of reference devices;

[0232] The object device information of the original object selected under each object device type is determined as the sample object device information.

[0233] Optionally, the data reduction strategy includes an object reduction strategy, and the object reduction strategy indicates that reduction is performed based on object attribute information of each original object; the sample acquisition unit 1101 is specifically configured to:

[0234] Based on the preset object attribute information, a second target object having the object attribute information is selected from the original object;

[0235] The selected object device information of the second target object is determined as the sample object device information.

[0236] The device can be used to execute the training method of the event prediction model provided in each embodiment of the present application. Therefore, the functions that can be implemented by each functional module of the device can be referred to the description of the aforementioned embodiments and will not be elaborated herein.

[0237] See also Fig.12 Based on the same technical concept, the present application also provides a computer device. In one embodiment, the computer device can be Figure 1 The server or terminal device shown in FIG. Fig.12 As shown, it includes a memory 1201 , a communication module 1203 and one or more processors 1202 .

[0238] The memory 1201 is used to store computer programs executed by the processor 1202. The memory 1201 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and programs required for running the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.

[0239] The memory 1201 may be a volatile memory, such as a random-access memory (RAM); the memory 1201 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or the memory 1201 may be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1201 may be a combination of the above memories.

[0240] The processor 1202 may include one or more central processing units (CPU) or a digital processing unit, etc. The processor 1202 is used to implement the above event prediction method or the above event prediction model training method when calling the computer program stored in the memory 1201.

[0241] The communication module 1203 is used to communicate with terminal devices or other servers.

[0242] The specific connection medium between the memory 1201, the communication module 1203 and the processor 1202 is not limited in the embodiment of the present application. Fig.12In the embodiment, the memory 1201 and the processor 1202 are connected via a bus 1204. The bus 1204 is connected to the processor 1202 via a bus 1204. Fig.12 The connections between the other components are only for illustration and are not intended to be limiting. The bus 1204 can be divided into an address bus, a data bus, a control bus, etc. For ease of description, Fig.12 The diagram shows that only one thick line is used, but this does not mean that there is only one bus or only one type of bus.

[0243] The memory 1201 stores computer storage media, which stores computer executable instructions. The computer executable instructions are used to implement the event prediction method of the embodiments of the present application and / or the training method of the above-mentioned event prediction model. The processor 1202 is used to execute the event prediction method of the above-mentioned embodiments or the training method of the above-mentioned event prediction model.

[0244] Based on the same inventive concept, an embodiment of the present application also provides a storage medium, which stores a computer program. When the computer program runs on a computer, the computer executes the steps of the event prediction method or the event prediction model training method according to various exemplary embodiments of the present application described above in this specification.

[0245] In some possible implementations, various aspects of the event prediction method or the training method of the above-mentioned event prediction model provided by the present application can also be implemented in the form of a computer program product, which includes a computer program. When the program product is run on a computer device, the computer program is used to enable the computer device to execute the steps of the event prediction method or the training method of the event prediction model according to the various exemplary embodiments of the present application described above in this specification. For example, the computer device can execute the steps of each embodiment.

[0246] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0247] The program product of the embodiment of the present application may adopt a portable compact disk read-only memory (CD-ROM) and include a computer program, and can be run on a computer device. However, the program product of the present application is not limited thereto. In the present application, the readable storage medium may be any tangible medium containing or storing a program, and the computer program included therein may be used by or in combination with a command execution system, apparatus or device.

[0248] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with a command execution system, apparatus, or device.

[0249] The computer program embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0250] Computer programs for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" language or similar programming languages.

[0251] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.

[0252] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0253] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0254] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

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

Claims

1. An event prediction method, characterized in that: The method comprises: In response to an event prediction operation triggered for a target object node, determining a neighbor node of the target object node from an object relationship graph; Obtaining a target prediction feature of the target object node based on a first object attribute feature of the target object node and a second object attribute feature of the neighboring node; Based on the target prediction feature, a target event prediction index of the target object is obtained, and the target event prediction index represents the probability of the target event occurring to the target object.

2. The method according to claim 1, characterized in that The number of the neighboring nodes is at least one; and obtaining the target prediction feature of the target object node based on the first object attribute feature of the target object node and the second object attribute feature of the neighboring node includes: Performing feature aggregation processing on the second object attribute feature to obtain a first aggregated feature; Feature aggregation processing is performed on the first aggregation feature and the first object attribute feature to obtain the target prediction feature.

3. The method according to claim 2, characterized in that The neighbor nodes include M neighbor nodes, the M neighbor nodes are distributed in N levels, and the neighbor nodes distributed in the same level have the same distance from the target object node; the higher the level, the greater the distance between the neighbor nodes distributed in the level and the target object node; M and N are both positive integers; The performing feature aggregation processing on the second object attribute feature to obtain a first aggregate feature includes: Cluster the neighboring nodes on the same level to obtain N-level clustering results; The N-level clustering results are aggregated to obtain the first aggregate feature.

4. A training method for an event prediction model, characterized in that: The method comprises: Acquire training sample data, the training sample data including: a sample object relationship graph and sample object attribute features of sample object nodes in the sample object relationship graph; for a sample object node, an event label represents the number of times a target event has occurred in the history of the sample object; In the process of training the event prediction model to be trained based on the training sample data, a neighboring sample object node of a target sample object node is determined from the sample object relationship graph; the target sample object node is any sample object node in the sample object relationship graph; Based on the first sample object attribute feature of the target sample object node and the second sample object attribute feature of the neighboring sample object node, obtaining a sample prediction feature of the target sample object node; Based on the sample prediction feature, obtaining a sample event prediction index of the target sample object; Based on the difference between the event label of the target sample object node and the sample event prediction index, a target loss value is obtained, and the target loss value is used to adjust the model parameters of the event prediction model.

5. The method according to claim 4, characterized in that The process of constructing the sample object relationship graph includes: Based on the sample object device information of the sample object, a first object device map is constructed; the first object device map includes a sample object node and a sample device node of each sample object node, and a sample device node is used to reflect the sample object device information of a sample object; Based on the event label of the sample object, determine a target sample object from the sample object, wherein the target sample object is a sample object in which a target event has occurred in history; Based on the sample object device information of the target sample object, construct a second object device map; the second object device map includes a target sample object node and a sample device node of the target sample object node; Based on the first object device graph and the second object device graph, the sample object relationship graph is obtained.

6. The method according to claim 5, characterized in that The method further comprises: Get the original object device information of the original object; Based on a preset data reduction strategy, data reduction processing is performed on the original object device information to obtain the sample object device information.

7. The method according to claim 6, characterized in that The data reduction strategy includes at least two reduction sub-strategies, and the data reduction process is performed on the original object device information to obtain the sample object device information, including: Determine the policy priority of each reduction sub-policy; Based on the at least two reduction sub-strategies, data reduction processing is performed on the original object device information in order of policy priority to obtain the sample object device information.

8. The method according to claim 7, characterized in that The reduction sub-strategy includes a target event reduction strategy, wherein the target event reduction strategy indicates that the reduction is performed based on the probability of the target event occurring in each object device type; The performing data reduction processing on the original object device information to obtain the sample object device information includes: Determine the number of original objects corresponding to each object device type from the original object device information; For each object device type, based on the event label of the original object, the number of first target objects corresponding to the object device type is determined, and based on the number of first target objects corresponding to the object device type and the number of original objects, the target event probability of the object device type is obtained; the first target object is an original object for which a target event has occurred in history; determining a target device type from the object device types based on a preset probability threshold and a target event probability of each object device type; The sample object device information is obtained from the original object device information according to the target device type.

9. The method according to claim 6, characterized in that The reduction sub-strategy includes a quantity reduction strategy, wherein the quantity reduction strategy indicates that reduction is performed based on the reference device quantity of the object devices belonging to each object device type; The performing data reduction processing on the original object device information to obtain the sample object device information includes: Determining the number of object devices belonging to each object device type from the original object device information; For each object device type, based on the reference quantity ratio indicated by the quantity reduction policy and the quantity of object devices belonging to the object device type, obtain a reference device quantity of the object device type; Selecting an original object from original objects corresponding to the object device type in combination with the reference device quantity; the object device quantity of the selected original object is less than or equal to the reference device quantity; The object device information of the original object selected under each object device type is determined as the sample object device information.

10. The method according to claim 6, characterized in that The data reduction strategy includes an object reduction strategy, and the object reduction strategy indicates that reduction is performed based on object attribute information of each original object; performing data reduction processing on the original object device information to obtain the sample object device information includes: Based on the preset object attribute information, selecting a second target object having the object attribute information from the original object; The selected object device information of the second target object is determined as the sample object device information.

11. An event prediction device, characterized in that: The device comprises: A first determining unit, configured to determine, in response to an event prediction operation triggered on a target object node, a neighboring node of the target object node from an object relationship graph; A first acquisition unit, configured to acquire a target prediction feature of the target object node based on a first object attribute feature of the target object node and a second object attribute feature of the neighboring node; The index prediction unit is used to obtain a target event prediction index of a target object based on the target prediction feature, wherein the target event prediction index represents the probability of a target event occurring in the target object.

12. A training device for an event prediction model, characterized in that: The device comprises: A sample acquisition unit is used to acquire training sample data, wherein the training sample data includes: a sample object relationship graph and sample object attribute features of sample object nodes in the sample object relationship graph; for a sample object node, an event label represents the number of times a target event has occurred in the history of the corresponding sample object; A second determining unit is used to determine a neighboring sample object node of a target sample object node from the sample object relationship graph during a training process of the event prediction model to be trained based on the training sample data; the target sample object node is any sample object node in the sample object relationship graph; A second acquisition unit, configured to acquire a sample prediction feature of the target sample object node based on a first sample object attribute feature of the target sample object node and a second sample object attribute feature of the neighboring sample object node; A model adjustment unit is used to obtain a sample event prediction index of the target sample object based on the sample prediction feature, and to obtain a target loss value based on the difference between the event label of the target sample object node and the sample event prediction index, and to use the target loss value to perform parameter adjustment on the model parameters of the event prediction model.

13. A computer device, characterized in that: include: Memory for storing computer programs; A processor, configured to call a computer program stored in the memory, and execute the method according to any one of claims 1 to 3, or execute the method according to any one of claims 4 to 10 according to the obtained program.

14. A computer-readable non-volatile storage medium, characterized in that: The computer-readable non-volatile storage medium stores a program, and when the program is run on a computer, the computer implements the method according to any one of claims 1 to 3, or the method according to any one of claims 4 to 10.

15. A computer program product, characterized in that The method comprises a computer program, wherein the computer program is stored in a computer-readable storage medium; when a processor of a computer device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the computer device executes the method according to any one of claims 1 to 3, or executes the method according to any one of claims 4 to 10.