Data processing method, device, equipment, readable storage medium and program product

By processing graph structure data, similar graph vectors of illegal merchants in merchant risk control scenarios are generated, which solves the problems of low identification efficiency and low accuracy in existing technologies, and achieves efficient and accurate identification of illegal merchants.

CN116629888BActive Publication Date: 2026-11-24TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210129742.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-11
Publication Date
2026-11-24
Estimated Expiration
2042-02-11

AI Technical Summary

Technical Problem

In existing technologies, the process of identifying illegal merchants in merchant risk control scenarios is time-consuming, resource-intensive, and has low accuracy.

Method used

By acquiring graph structure data, multiple connected subgraphs and their rooted subgraph sets are identified. Based on the numbering vector and business attributes, the feature embedding and business feature vector of each connected subgraph are calculated to generate graph vectors. This allows for the identification of connected subgraphs similar to illegal merchants, thereby improving identification efficiency and accuracy.

Benefits of technology

It can quickly identify other illegal merchants that resemble illegal merchants, thus improving the efficiency and accuracy of merchant risk control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116629888B_ABST
    Figure CN116629888B_ABST
Patent Text Reader

Abstract

This application provides a data processing method, apparatus, device, readable storage medium, and program product, relating to the field of artificial intelligence, with application scenarios including but not limited to merchant risk control. The method includes: acquiring graph structure data; determining multiple connected subgraphs and a set of rooted subgraphs based on the graph structure data; determining a feature embedding vector corresponding to each connected subgraph based on the number vector of each connected subgraph and the set of rooted subgraphs; determining a business feature vector corresponding to each connected subgraph based on the business attributes of nodes in each connected subgraph; determining a graph vector corresponding to each connected subgraph based on the feature embedding vector and the business feature vector; and determining connected subgraphs similar to each connected subgraph based on the graph vector.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and more specifically, to a data processing method, apparatus, device, readable storage medium, and program product. Background Technology

[0002] Risk control refers to taking various measures and methods to reduce the likelihood of risk events occurring, or to reduce the losses caused when risk events do occur. A risk control scenario, such as merchant risk control, requires the timely detection and control of illegal merchants' group activities and bulk registrations. Current technologies often rely on brute-force calculations or human experience to identify illegal merchants. This process is time-consuming, consuming excessive electricity, space, and human resources, and the accuracy of identifying illegal merchants is also low. Summary of the Invention

[0003] This application addresses the shortcomings of existing methods by proposing a data processing method, apparatus, device, computer-readable storage medium, and computer program product to solve the problem of improving the efficiency and accuracy of identifying illegal merchants in merchant risk control scenarios.

[0004] In a first aspect, this application provides a data processing method, including:

[0005] Obtain graph structure data;

[0006] Based on graph structure data, identify multiple connected subgraphs and the set of rooted subgraphs of multiple connected subgraphs;

[0007] Based on the number vector of each connected subgraph and the set of rooted subgraphs in multiple connected subgraphs, determine the feature embedding vector corresponding to each connected subgraph;

[0008] Based on the business attributes of the nodes in each connected subgraph, determine the business feature vector corresponding to each connected subgraph;

[0009] Based on the feature embedding vector and the business feature vector corresponding to each connected subgraph, the graph vector corresponding to each connected subgraph is determined.

[0010] Based on the graph vector corresponding to each connected subgraph, identify connected subgraphs similar to each connected subgraph among multiple connected subgraphs.

[0011] In one embodiment, obtaining graph structure data includes:

[0012] Obtain a relation graph. In a relation graph, all nodes are of the same type, and the relationships between the two nodes represented by each edge are of the same type. A relation graph is a graph structure data.

[0013] In one embodiment, based on graph structure data, multiple connected subgraphs are determined, including:

[0014] Based on the graph structure data, determine the node table and the relationship table. The node table includes the number of each node in the graph structure data, and the relationship table includes the relationships between the nodes.

[0015] Based on the node table and the relationship table, multiple connected subgraphs are determined, as well as the numbers of the connected subgraphs corresponding to each node.

[0016] In one embodiment, determining a set of rooted subgraphs of multiple connected subgraphs based on graph structure data includes:

[0017] Based on graph structure data, identify multiple connected subgraphs;

[0018] For each of the multiple connected subgraphs, arbitrarily select a node in each connected subgraph as the root node, and determine the neighbors of the root node at a certain degree.

[0019] Based on the root node and its neighbors of several degrees, determine at least one rooted subgraph corresponding to the root node.

[0020] By performing negative sampling on the rooted subgraphs corresponding to each root node, a set of rooted subgraphs with multiple connected subgraphs is obtained.

[0021] In one embodiment, based on the number vector of each connected subgraph in a plurality of connected subgraphs and the set of rooted subgraphs, the feature embedding vector corresponding to each connected subgraph is determined, including:

[0022] The number vector of each connected subgraph and the set of rooted subgraphs in multiple connected subgraphs are input into a preset structure vectorization model. Based on a preset number of iteration training rounds, the preset structure vectorization model is iteratively trained to obtain the trained structure vectorization model and the feature embedding vector corresponding to each connected subgraph output by the trained structure vectorization model.

[0023] In one embodiment, based on the business attributes of nodes in each connected subgraph, the business feature vector corresponding to each connected subgraph is determined, including:

[0024] Aggregate any business attribute of the same type among the nodes in each connected subgraph to determine the feature value corresponding to any business attribute of the same type. Each node includes multiple business attributes of the same type.

[0025] Based on the feature values ​​corresponding to multiple identical business attributes, the business feature vector corresponding to each connected subgraph is determined. The dimension of the business feature vector is the same as the number of multiple identical types.

[0026] In one embodiment, the graph vector corresponding to each connected subgraph is determined based on the feature embedding vector corresponding to each connected subgraph and the business feature vector corresponding to each connected subgraph, including:

[0027] The feature embedding vector and the business feature vector corresponding to each connected subgraph are normalized respectively to obtain the normalized feature embedding vector and the normalized business feature vector.

[0028] The normalized feature embedding vector and the normalized business feature vector are concatenated to obtain the graph vector corresponding to each connected subgraph.

[0029] In one embodiment, based on the graph vector corresponding to each connected subgraph, determining connected subgraphs similar to each connected subgraph among multiple connected subgraphs includes:

[0030] Based on the graph vector corresponding to each connected subgraph, the binary tree structure is determined. Each node in the binary tree structure is used to represent a subspace. A subspace includes at least one connected subgraph among multiple connected subgraphs.

[0031] Based on the graph vector and binary tree structure corresponding to each connected subgraph, identify connected subgraphs similar to each connected subgraph among multiple connected subgraphs.

[0032] Secondly, this application provides a data processing apparatus, comprising:

[0033] The first processing module is used to acquire graph structure data;

[0034] The second processing module is used to determine multiple connected subgraphs and the set of rooted subgraphs of the multiple connected subgraphs based on graph structure data.

[0035] The third processing module is used to determine the feature embedding vector corresponding to each connected subgraph based on the number vector of each connected subgraph and the set of rooted subgraphs in multiple connected subgraphs;

[0036] The fourth processing module is used to determine the business feature vector corresponding to each connected subgraph based on the business attributes of the nodes in each connected subgraph.

[0037] The fifth processing module is used to determine the graph vector corresponding to each connected subgraph based on the feature embedding vector corresponding to each connected subgraph and the business feature vector corresponding to each connected subgraph.

[0038] The sixth processing module is used to determine the connected subgraphs that are similar to each connected subgraph in multiple connected subgraphs based on the graph vector corresponding to each connected subgraph.

[0039] Thirdly, this application provides an electronic device, including: a processor, a memory, and a bus;

[0040] A bus is used to connect the processor and memory;

[0041] Memory, used to store operation instructions;

[0042] A processor is used to execute the data processing method of the first aspect of this application by invoking operation instructions.

[0043] Fourthly, this application provides a computer-readable storage medium storing a computer program, which is used to perform the data processing method of the first aspect of this application.

[0044] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the data processing method in the first aspect of this application.

[0045] The technical solution provided in this application has at least the following beneficial effects:

[0046] The process involves acquiring graph structure data, such as a relationship graph where nodes are classified as merchant nodes. Based on this data, multiple connected subgraphs and their rooted subgraph sets are identified. The feature embedding vector for each connected subgraph is determined based on its index vector and the rooted subgraph set. The business feature vector for each connected subgraph is determined based on the business attributes of its nodes. The graph vector for each connected subgraph is then determined based on both the feature embedding vector and the business feature vector. Finally, the connected subgraphs similar to each other are identified. For example, if a connected subgraph corresponds to an illegal merchant, its graph vector is used to identify similar connected subgraphs. These similar subgraphs then identify other illegal merchants, thus improving the efficiency and accuracy of identifying a large number of illegal merchants. Attached Figure Description

[0047] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below.

[0048] Figure 1 This is a schematic diagram of the architecture of the data processing system provided in the embodiments of this application;

[0049] Figure 2 A flowchart illustrating a data processing method provided in an embodiment of this application;

[0050] Figure 3 A schematic diagram of data processing provided for embodiments of this application;

[0051] Figure 4 A schematic diagram of data processing provided for embodiments of this application;

[0052] Figure 5 A schematic diagram of data processing provided for embodiments of this application;

[0053] Figure 6 A schematic diagram of data processing provided for embodiments of this application;

[0054] Figure 7 A schematic diagram of data processing provided for embodiments of this application;

[0055] Figure 8 A flowchart illustrating another data processing method provided in an embodiment of this application;

[0056] Figure 9 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application;

[0057] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0058] The embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the embodiments described below with reference to the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions of the embodiments of this application.

[0059] Those skilled in the art will understand that, unless otherwise stated, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the terms “comprising” and “including” as used in embodiments of this application mean that the corresponding feature can be implemented as the presented feature, information, data, step, operation, element, and / or component, but do not exclude implementation as other features, information, data, step, operation, element, component, and / or combinations thereof supported by the art. It should be understood that when we say that an element is “connected” or “coupled” to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and the other element establish a connection relationship through an intermediate element. Furthermore, “connected” or “coupled” as used herein can include wireless connection or wireless coupling. The term “and / or” as used herein indicates at least one of the items defined by the term; for example, “A and / or B” indicates implementation as “A,” or implementation as “B,” or implementation as “A and B.”

[0060] It is understood that in the specific embodiments of this application, data related to data processing is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0061] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0062] This application provides a data processing method for a data processing system, which relates to fields such as artificial intelligence and cloud technology. For example, the knowledge graph involved in this application is a natural language processing technique within the field of artificial intelligence; another example is the structured vectorization model in this application, which is an artificial neural network, a component of machine learning in the field of artificial intelligence. Application scenarios for this data processing method include, but are not limited to, risk control scenarios, such as merchant risk control scenarios.

[0063] Artificial intelligence (AI) is the theory, methods, technology, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a comprehensive technology within computer science that attempts to understand the essence of intelligence and produce a new kind of intelligent machine that can react in a way similar to human intelligence. AI studies the design principles and implementation methods of various intelligent machines, enabling them to possess the functions of perception, reasoning, and decision-making.

[0064] Artificial intelligence (AI) is a comprehensive discipline encompassing a wide range of fields, including both hardware and software technologies. Fundamental AI technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies primarily include computer vision, speech processing, natural language processing, as well as machine learning / deep learning, autonomous driving, and intelligent transportation.

[0065] Natural Language Processing (NLP) is an important field within computer science and artificial intelligence. It studies the theories and methods for enabling effective communication between humans and computers using natural language. NLP is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field involves natural language—the language people use in daily life—and thus it has a close relationship with linguistic research. NLP techniques typically include text processing, semantic understanding, machine translation, question answering, and knowledge graphs.

[0066] Machine Learning (ML) is a multidisciplinary field involving probability theory, statistics, approximation theory, convex analysis, and algorithm complexity theory. It specifically studies how computers can 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 endow computers with intelligence; its applications span all areas of artificial intelligence. Machine learning and deep learning typically include techniques such as artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and instructional learning.

[0067] To better understand and explain the solutions of the embodiments of this application, some technical terms involved in the embodiments of this application will be briefly explained below.

[0068] Graph-structured data: A data structure that describes various complex data objects through the characteristics of entity nodes and the relationships between them. It can be represented as G = (V, E), where V is the set of nodes (vertical nodes) and E is the set of edges (horizontal nodes). Each edge contains two endpoints u and v, where u, v ∈ V. Common examples of graph-structured data include knowledge graphs, social networks, and communication networks.

[0069] Relationship Graph: Essentially a semantic network, a graph-based data structure composed of nodes (points) ("entities") and edges ("relationships"). A relationship graph connects all different types of information, creating a network that analyzes and solves problems from the perspective of "relationships." Relationship graphs have been widely applied in intelligent search, intelligent question answering, personalized recommendations, precision marketing, risk control and anti-fraud, and financial risk prediction. A relationship graph can also be a knowledge graph. In library and information science, knowledge graphs are called knowledge domain visualizations or knowledge domain mapping maps. A knowledge graph is a series of various graphs that display the development process and structural relationships of knowledge. It uses visualization techniques to describe knowledge resources and their carriers, mining, analyzing, constructing, drawing, and displaying knowledge and their interrelationships. Essentially, a knowledge graph is a semantic network, a network-like knowledge base. A knowledge graph represents knowledge in the form of a graph, describing objective things; here, the graph refers to a graph in a data structure, that is, composed of nodes and edges. In a knowledge graph, nodes represent concepts and entities. Concepts are abstract things, and entities are concrete things. Edges represent the relationships and attributes of things. The internal characteristics of things are represented by attributes, and the external connections are represented by relationships.

[0070] Graph embedding is a process of mapping graph data (usually a high-dimensional dense matrix) into low-dimensional dense vectors. The vector representation retains as much of the structural information and potential characteristics of the graph model as possible. Graph embedding can effectively solve the problem of graph data being difficult to efficiently input into machine learning algorithms.

[0071] graph2vec: graph2vec is an algorithm in graph embedding. It is an algorithm that represents the entire graph as a vector. Its design concept is inspired by doc2vec. Graph embedding can treat a relational graph as a file and the rooted subgraphs around all nodes in the relational graph as words.

[0072] SkipGram Model: The SkipGram model is a type of graph2vec model. The SkipGram model assumes that if two connected subgraphs have similar structures, then the sets of rooted subgraphs that make up the connected subgraphs are similar, and consequently, the probability of a rooted subgraph appearing in a given connected subgraph is also similar. The learning objective of the SkipGram model is to maximize the probability of rooted subgraphs existing in the connected subgraphs, ultimately making the vectors of the two connected subgraphs similar as well. The SkipGram model can also be a type of word2vector model, where the SkipGram model can predict the surrounding words based on the current word. Word2vector is a natural language processing technique that uses an embedding space to ensure that semantically similar words are close together within that space.

[0073] One-hot encoding: One-hot encoding is typically used to handle features where there is no size relationship between categories. For example, a feature has four categories (A, B, AB, O); using one-hot encoding, this feature can be transformed into a 4-dimensional sparse vector, where A is represented as (1,0,0,0), B as (0,1,0,0), AB as (0,0,1,0), and O as (0,0,0,1).

[0074] MapReduce: MapReduce is a computing model, framework, and platform for parallel processing of big data; graphFrames can be built on top of MapReduce and can be used to partition a relational graph into connected subgraphs.

[0075] Annoy: Annoy (Approximate Nearest Neighbors Oh Yeah) is a C++ library with Python bindings for searching the nearest neighbors of a given query point in a search space. Annoy aims to build a data structure that can find the nearest neighbor of any query point in a short time, sacrificing accuracy for a much faster search speed than brute-force search, provided the accuracy is acceptable. The main steps of Annoy (1)-(2) are as follows:

[0076] (1) Constructing a binary tree. By randomly selecting two points, i.e., two subgraphs, and using an equidistant hyperplane perpendicular to these points, the set is divided into two parts. This process is repeated iteratively on each subset until each set has at most k points remaining. Through the above steps, a binary tree structure is established to represent the point distribution space. Each node in the tree represents a subspace, and subspaces that are close to each other in the point distribution space are represented by nodes that are close to each other in the binary tree structure.

[0077] (2) Finding a similar graph, i.e., finding the nearest neighbor. Finding a similar graph to a graph involves continuously checking which side of the hyperplane it is on. From the perspective of a binary tree index structure, this is a process of traversing from the root node to the leaf nodes. By performing relevant calculations on each intermediate node of the binary tree (related to the hyperplane) and the query data node, it is determined whether the binary tree traversal process goes to the left or right child node of this intermediate node.

[0078] The solutions provided in this application relate to artificial intelligence technology. The technical solutions of this application will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0079] To better understand the solution provided in the embodiments of this application, the solution will be described below in conjunction with a specific application scenario.

[0080] In one embodiment, Figure 1 The diagram shows an architecture of a data processing system applicable to embodiments of this application. It is understood that the data processing methods provided in these embodiments can be applied to, but are not limited to, applications such as... Figure 1 In the application scenarios shown.

[0081] In this example, as Figure 1As shown, the architecture of the data processing system in this example may include, but is not limited to, terminal 10 and server 20. Terminal 10 and server 20 can interact via a network. Terminal 10 sends information about an illegal merchant to server 20. Server 20 receives the illegal merchant's information and obtains a relationship graph, where the node type in the relationship graph is merchant node. Based on the relationship graph, server 20 determines multiple connected subgraphs and a set of rooted subgraphs of these connected subgraphs, where at least one connected subgraph corresponds to the illegal merchant. Based on the number vector of each connected subgraph and the set of rooted subgraphs, server 20 determines the feature embedding vector corresponding to each connected subgraph. Based on the business attributes of the nodes in each connected subgraph, server 20 determines the business features corresponding to each connected subgraph. Based on the feature embedding vector and business feature vector corresponding to each connected subgraph, server 20 determines the graph vector corresponding to each connected subgraph. Based on the graph vector corresponding to each connected subgraph, server 20 determines connected subgraphs similar to each connected subgraph among multiple connected subgraphs. Among these connected subgraphs, there is one connected subgraph corresponding to the illegal merchant. That is, based on the graph vector corresponding to the connected subgraph, server 20 determines connected subgraphs similar to the connected subgraph among multiple connected subgraphs. Connected subgraphs similar to the connected subgraph correspond to other illegal merchants. In this way, other illegal merchants similar to the illegal merchant can be quickly identified, thereby improving the efficiency and accuracy of identifying a large number of illegal merchants.

[0082] It is understood that the above is only one example, and this embodiment is not limited here.

[0083] The terminal can be a smartphone (such as an Android phone, iOS phone, etc.), a mobile phone emulator, a tablet computer, a laptop computer, a digital broadcast receiver, a MID (Mobile Internet Device), a PDA (Personal Digital Assistant), etc. The server can be a standalone physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server or server cluster 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, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0084] Cloud computing is a computing model that distributes computing tasks across a large pool of computers, enabling various application systems to access computing power, storage space, and information services as needed. The network providing these resources is called the "cloud." From the user's perspective, resources in the "cloud" appear infinitely scalable, readily available, on-demand, and expandable, with payment based on usage.

[0085] As a provider of fundamental cloud computing capabilities, a cloud resource pool (referred to as a cloud platform, generally called an IaaS (Infrastructure as a Service) platform) is established. Various types of virtual resources are deployed in the resource pool for external customers to choose from. The cloud resource pool mainly includes: computing devices (virtualized machines containing operating systems), storage devices, and network devices.

[0086] Based on logical function, a PaaS (Platform as a Service) layer can be deployed on top of the IaaS (Infrastructure as a Service) layer, and a SaaS (Software as a Service) layer can be deployed on top of the PaaS layer. Alternatively, SaaS can be deployed directly on top of IaaS. PaaS is a platform for running software, such as databases and web containers. SaaS refers to various types of business software, such as web portals and bulk SMS senders. Generally speaking, SaaS and PaaS are upper layers compared to IaaS.

[0087] Artificial intelligence cloud services are generally also known as AIaaS (AI as a Service). This is currently a mainstream service model for artificial intelligence platforms. Specifically, AIaaS platforms break down several common AI services and provide them as independent or packaged services in the cloud. This service model is similar to opening an AI-themed marketplace: all developers can access and use one or more AI services provided by the platform through API interfaces. Some experienced developers can also use the AI ​​framework and AI infrastructure provided by the platform to deploy and maintain their own dedicated cloud AI services.

[0088] The aforementioned networks may include, but are not limited to, wired networks and wireless networks. Wired networks include local area networks (LANs), metropolitan area networks (MANs), and wide area networks (WANs). Wireless networks include Bluetooth, Wi-Fi, and other networks that enable wireless communication. Specific details can be determined based on actual application scenario requirements and are not limited here.

[0089] See Figure 2 , Figure 2 This illustration shows a flowchart of a data processing method provided in an embodiment of this application. This method can be executed by any electronic device, such as a server. As an optional implementation, the method can be executed by a server. For ease of description, in the following description of some optional embodiments, a server will be used as the execution subject of the method. Figure 2 As shown, the data processing method provided in this application includes the following steps:

[0090] S201, Obtain graph structure data.

[0091] Specifically, graph-structured data can be a relational graph. A relational graph can contain only one type of node and one type of relationship. For example, all nodes in such a graph can be merchant nodes, such as merchant Zhang San, merchant Li Si, etc. The relationship type in this graph can be that two merchants share common registration information or are trading partners. The number of nodes and relationships in a relational graph is enormous; for example, a relational graph can include 50 million nodes and 200 million relationships. Each node can have an attribute indicating whether it is a blacklisted merchant, which is an illegal merchant.

[0092] S202, based on graph structure data, determine multiple connected subgraphs and the set of rooted subgraphs of the multiple connected subgraphs.

[0093] Specifically, if there is a path connecting any two nodes in a graph, then the graph is a connected subgraph. Based on the connectivity of a relational graph, it can be divided into multiple connected subgraphs. A relational graph can be divided into multiple connected subgraphs, and each connected subgraph can be divided into multiple rooted subgraphs. The set of rooted subgraphs of multiple connected subgraphs constitutes all rooted subgraphs in a relational graph. In a directed graph F, if there exists a vertex (node) V from which all other vertices (nodes) in the directed graph F can be reached, then the directed graph F is a rooted subgraph, and vertex V is the root.

[0094] S203, based on the number vector of each connected subgraph and the set of rooted subgraphs in multiple connected subgraphs, determine the feature embedding vector corresponding to each connected subgraph.

[0095] Specifically, the numbering vector for each connected subgraph can be a one-hot encoded vector. For example, if there are a total of 10 connected subgraphs, the numbering vectors for the 10 connected subgraphs can be (1,0,0,0,0,0,0,0,0,0), (0,1,0,0,0,0,0,0,0,0), (0,0,1,0,0,0,0,0,0,0), (0,0,0,1,0,0,0,0,0,0), (0,0,0,1,0,0) (0,0,0,0), (0,0,0,0,1,0,0,0,0,0), (0,0,0,0,0,1,0,0,0,0), (0,0,0,0,0,0,1,0,0,0), (0,0,0,0,0,0,1,0,0), (0,0,0,0,0,0,0,1,0), (0,0,0,0,0,0,0,1,0) and (0,0,0,0,0,0,0,0,0,1). The feature embedding vector corresponding to each connected subgraph can be a multi-dimensional vector, such as a 128-dimensional vector.

[0096] S204. Based on the business attributes of the nodes in each connected subgraph, determine the business feature vector corresponding to each connected subgraph.

[0097] Specifically, the business attributes of each node in a connected subgraph can be merchant type, merchant region, merchant business type, and the number of the connected subgraph to which the node belongs, etc.; each node in a connected subgraph can have multiple business attributes, such as 42 business attributes. The business feature vector corresponding to each connected subgraph can be a multi-dimensional vector, such as a 42-dimensional vector, where the value of each dimension of the 42-dimensional vector corresponds to one of the 42 business attributes.

[0098] S205. Based on the feature embedding vector corresponding to each connected subgraph and the business feature vector corresponding to each connected subgraph, determine the graph vector corresponding to each connected subgraph.

[0099] Specifically, the feature embedding vector and the business feature vector corresponding to each connected subgraph have different dimensions. Therefore, it is necessary to normalize both the feature embedding vector and the business feature vector for each connected subgraph to obtain normalized feature embedding vectors and normalized business feature vectors. These normalized vectors are then concatenated to obtain the graph vector corresponding to each connected subgraph. For example, if the feature embedding vector for each connected subgraph is a 128-dimensional vector and the business feature vector is a 42-dimensional vector, then the graph vector for each connected subgraph can be a 170-dimensional vector.

[0100] S206, Based on the graph vector corresponding to each connected subgraph, determine the connected subgraphs in multiple connected subgraphs that are similar to each connected subgraph.

[0101] Specifically, in a relational graph, all connected subgraphs similar to a given connected subgraph can be determined by calculating the similarity between the graph vector corresponding to a given connected subgraph and the graph vector corresponding to each connected subgraph. The relational graph includes the given connected subgraph. The given connected subgraph can be the connected subgraph corresponding to an illegal merchant. Thus, other illegal merchants similar to the illegal merchants can be quickly identified in the relational graph.

[0102] In this embodiment, graph structure data, such as a relationship graph, is acquired, where the node type is merchant node. Based on the graph structure data, multiple connected subgraphs and a set of rooted subgraphs of these connected subgraphs are determined. Based on the number vector of each connected subgraph and the set of rooted subgraphs, a feature embedding vector corresponding to each connected subgraph is determined. Based on the business attributes of the nodes in each connected subgraph, a business feature vector corresponding to each connected subgraph is determined. Based on the feature embedding vector and the business feature vector, a graph vector corresponding to each connected subgraph is determined. Based on the graph vector, connected subgraphs similar to each connected subgraph are identified. For example, if one connected subgraph corresponds to an illegal merchant, the graph vector corresponding to that subgraph is used to identify other illegal merchants. This allows for the rapid identification of other illegal merchants similar to the original illegal merchants, thereby improving the efficiency and accuracy of identifying a large number of illegal merchants.

[0103] In one embodiment, obtaining graph structure data includes:

[0104] Obtain a relation graph. In a relation graph, all nodes are of the same type, and the relationships between the two nodes represented by each edge are of the same type. A relation graph is a graph structure data.

[0105] Specifically, based on a large amount of merchant data, a relationship graph is constructed. The type of nodes in this relationship graph is merchant nodes. Nodes can be merchants such as Zhang San and Li Si. The type of relationship in this relationship graph can be any two merchants having common registration information or being trading partners.

[0106] In one embodiment, based on graph structure data, multiple connected subgraphs are determined, including:

[0107] Based on the graph structure data, determine the node table and the relationship table. The node table includes the number of each node in the graph structure data, and the relationship table includes the relationships between the nodes.

[0108] Based on the node table and the relationship table, multiple connected subgraphs are determined, as well as the numbers of the connected subgraphs corresponding to each node.

[0109] Specifically, if the constructed relational graph is large in scale, connected subgraphs can be computed on the distributed platform MapReduce. For example, the node table and relation table can be used as inputs to MapReduce, and connected subgraphs can be computed through small-star and large-star operations to determine multiple connected subgraphs. The output of MapReduce is the number of each node in the relational graph and the number of the connected subgraph corresponding to each node.

[0110] In the relational graph, select any node, such as node (8), where "8" in node (8) represents the node number, i.e., the node number (8) is 8. Then, through the small-star and large-star operations, determine a connected subgraph A corresponding to node (8); where the small-star operation is as follows: Figure 3 As shown, in the small-star operation, for node (8), the edges connecting adjacent nodes whose numbers do not exceed their own (1-8 / 5-8 / 7-8) are transformed into edges connecting adjacent nodes (1 / 5 / 7) to the smallest adjacent node (1); the large-star operation is as follows: Figure 4 As shown, in the large-star operation, for node (8), the edges (8-9) connecting adjacent nodes with numbers exceeding its own are transformed into edges connecting adjacent node (9) to the smallest adjacent node (1). Through Figure 3 small-star operations and Figure 4 The large-star operation is used to calculate the connected subgraph A, which includes nodes (1), (5), (7), (8), and (9).

[0111] By removing the connected subgraph A from the relation graph and alternating between small-star and large-star operations, the other connected subgraphs in the relation graph can be calculated.

[0112] It should be noted that by alternating between small-star and large-star operations to compute the connected subgraph, the connectivity of the graph can be guaranteed to remain unchanged, and the iteration can eventually converge (for example, finding a connected subgraph A containing 5 nodes, namely nodes (1), (5), (7), (8), and (9), and finding no other nodes besides these 5 nodes). The worst-case complexity is O(n) (for example, as shown in the original text). Figure 3 and Figure 4 As shown, with n = 5 nodes, O(5) = 4 operations, in fact... Figure 3 and Figure 4With only two operations in total, it can guarantee efficient computation even on large-scale relational graphs.

[0113] In one embodiment, determining a set of rooted subgraphs of multiple connected subgraphs based on graph structure data includes:

[0114] Based on graph structure data, identify multiple connected subgraphs;

[0115] For each of the multiple connected subgraphs, arbitrarily select a node in each connected subgraph as the root node, and determine the neighbors of the root node at a certain degree.

[0116] Based on the root node and its neighbors of several degrees, determine at least one rooted subgraph corresponding to the root node.

[0117] By performing negative sampling on the rooted subgraphs corresponding to each root node, a set of rooted subgraphs with multiple connected subgraphs is obtained.

[0118] In one embodiment, a relational graph includes multiple connected subgraphs [G1, G2, ..., Gm], where G1, G2, ..., Gm each represent a connected subgraph; each connected subgraph may include multiple rooted subgraphs. In each connected subgraph, an arbitrary node is selected as the root node, and a subgraph consisting of the root node's neighbors of a certain degree is obtained. For example... Figure 5 As shown, a connected subgraph B includes nodes n, n1, n2, n3, and n4. Figure 6 As shown, a connected subgraph B has three rooted subgraphs with node n as the root node. These three rooted subgraphs are all 2-degree subgraphs of node n, namely n-n1-n3, n-n2-n3, and n-n2-n4. Here, n1 and n2 are 1-degree neighbors of n, and n3 and n4 are 2-degree neighbors of n. Negative sampling is performed on the rooted subgraphs corresponding to each root node to obtain a set of rooted subgraphs [sg1, sg2, ..., sgn] for multiple connected subgraphs, where sg1, sg2, ..., sgn each represent a rooted subgraph.

[0119] It should be noted that the purpose of negative sampling is to reduce the number of samples in a rooted subgraph. For example, if a connected subgraph has 1000 rooted subgraphs, negative sampling can be used to select 500 rooted subgraphs from these 1000 rooted subgraphs and assign these 500 rooted subgraphs to a rooted subgraph set. These 500 rooted subgraphs can then be used as input to a structure vectorization model.

[0120] In one embodiment, based on the number vector of each connected subgraph in a plurality of connected subgraphs and the set of rooted subgraphs, the feature embedding vector corresponding to each connected subgraph is determined, including:

[0121] The number vector of each connected subgraph and the set of rooted subgraphs in multiple connected subgraphs are input into a preset structure vectorization model. Based on a preset number of iteration training rounds, the preset structure vectorization model is iteratively trained to obtain the trained structure vectorization model and the feature embedding vector corresponding to each connected subgraph output by the trained structure vectorization model.

[0122] In one embodiment, such as Figure 7 As shown, a structured vectorization model can include an input layer, a hidden layer, and an output layer. The hidden layer can determine the feature embedding vector corresponding to each connected subgraph. The structured vectorization model can be the SkipGram model in graph2vec. For example, as... Figure 7 As shown, the one-hot encoding vectors (the number vectors of each connected subgraph) of each of the m connected subgraphs, i.e., the m one-hot encoding vectors, and the set of rooted subgraphs [sg1, sg2, ..., sgn] are input to the input layer of the SkipGram model. If the preset number of iteration training rounds is 100, the SkipGram model is trained for 100 rounds. After each round of training, the SkipGram model outputs the feature embedding vectors corresponding to each connected subgraph through the output layer, and feeds these feature embedding vectors back into the SkipGram model to adjust its parameters before proceeding to the next round of training. After the SkipGram model has completed 100 rounds of training, the feature embedding vectors corresponding to each connected subgraph output are used as the feature embedding vectors corresponding to each connected subgraph output by the trained SkipGram model. After 100 rounds of iterative training, the SkipGram model outputs an m*n matrix, where m represents the m connected subgraphs, and n represents the dimension of the feature embedding vector corresponding to each connected subgraph (n can be 128). The m*n matrix represents the feature embedding vectors output by the SkipGram model for the m connected subgraphs, where each connected subgraph's feature embedding vector is an n-dimensional vector; both m and n are positive integers. For example, if the index vector of a connected subgraph corresponds to index i, then the vector in the i-th row of the m*n matrix is ​​the feature embedding vector corresponding to that connected subgraph, which can be a structured vector of that connected subgraph.

[0123] For example, the vectors corresponding to the numbers of the 10 connected subgraphs (i.e., the number vectors of the 10 connected subgraphs) and the 10,000 rooted subgraphs corresponding to the 10 connected subgraphs (the set of rooted subgraphs includes 10,000 rooted subgraphs) are used as input to the SkipGram model. The SkipGram model processes any one of the 10 connected subgraphs A and the 10,000 rooted subgraphs. The SkipGram model outputs a 128-dimensional feature embedding vector of connected subgraph A. The 128 dimensions correspond to 128 values, and each of the 128 values ​​represents the probability that a rooted subgraph appears in connected subgraph A. That is, the 128 values ​​represent the probability of 128 rooted subgraphs. These 128 rooted subgraphs are selected by the SkipGram model from the 10,000 rooted subgraphs according to a preset strategy.

[0124] It should be noted that the SkipGram model in graph2vec captures the topological structure of a connected subgraph, the relationships between vertices (nodes), and the interaction information between the connected subgraph and other connected subgraphs. This captured information is then embedded into a vector to obtain the feature embedding vector corresponding to the connected subgraph.

[0125] In one embodiment, based on the business attributes of nodes in each connected subgraph, the business feature vector corresponding to each connected subgraph is determined, including:

[0126] Aggregate any business attribute of the same type among the nodes in each connected subgraph to determine the feature value corresponding to any business attribute of the same type. Each node includes multiple business attributes of the same type.

[0127] Based on the feature values ​​corresponding to multiple identical business attributes, the business feature vector corresponding to each connected subgraph is determined. The dimension of the business feature vector is the same as the number of multiple identical types.

[0128] In one embodiment, the business attributes of each node in a connected subgraph can be merchant type, merchant location, merchant business type, and the number of the connected subgraph to which the node belongs. Merchant type can be, for example, illegal merchant or legal merchant; merchant location can be, for example, Wuhan or Changsha; merchant business type can be, for example, toy merchant or catering merchant; and the number of the connected subgraph to which the node belongs can be, for example, 1, 2, 3, etc. Each node in a connected subgraph can have multiple business attributes, such as 42 business attributes. The business feature vector corresponding to each connected subgraph can be a multi-dimensional vector, such as a 42-dimensional vector, where the value of each dimension corresponds to one of the 42 business attributes.

[0129] In each connected subgraph, any business attribute of the same type among the nodes is aggregated to determine the feature value corresponding to that business attribute. For example, if a connected subgraph has 10 nodes, and one common business attribute among these 10 nodes is the merchant's location, aggregating the merchant's location regions of these 10 nodes reveals that 6 of them are located in Wuhan. Therefore, Wuhan accounts for 60% of all nodes (10 nodes) in the connected subgraph, and 60% is the feature value corresponding to the merchant's location region. 60% represents the proportion, meaning the feature value can be represented by a proportion. Feature values ​​can also be represented by maximum value, average value, etc.

[0130] Based on the feature values ​​corresponding to various business attributes of the same type, the business feature vector corresponding to each connected subgraph is determined. For example, the feature values ​​(business features) corresponding to 42 business attributes can be concatenated into a 42-dimensional vector, which is the business feature vector corresponding to each connected subgraph. In this 42-dimensional vector, the value of each dimension is a feature value.

[0131] In one embodiment, the graph vector corresponding to each connected subgraph is determined based on the feature embedding vector corresponding to each connected subgraph and the business feature vector corresponding to each connected subgraph, including:

[0132] The feature embedding vector and the business feature vector corresponding to each connected subgraph are normalized respectively to obtain the normalized feature embedding vector and the normalized business feature vector.

[0133] The normalized feature embedding vector and the normalized business feature vector are concatenated to obtain the graph vector corresponding to each connected subgraph.

[0134] It should be noted that graph2vec only considers the topological structure of connected subgraphs and ignores the practical significance of the entire relational graph in business scenarios. As a supplement to the structure vector (the feature embedding vector corresponding to each connected subgraph), business-related features (the business feature vector corresponding to each connected subgraph) are extracted separately and integrated into the structure vector. That is, based on the feature embedding vector and the business feature vector corresponding to each connected subgraph, the graph vector corresponding to each connected subgraph is determined. The graph vector corresponding to each connected subgraph represents both the topological structure of the connected subgraph and covers the business attributes.

[0135] In one embodiment, based on the graph vector corresponding to each connected subgraph, determining connected subgraphs similar to each connected subgraph among multiple connected subgraphs includes:

[0136] Based on the graph vector corresponding to each connected subgraph, the binary tree structure is determined. Each node in the binary tree structure is used to represent a subspace. A subspace includes at least one connected subgraph among multiple connected subgraphs.

[0137] Based on the graph vector and binary tree structure corresponding to each connected subgraph, identify connected subgraphs similar to each connected subgraph among multiple connected subgraphs.

[0138] In one embodiment, the number of connected subgraphs in the relation graph is large, meaning the number of graph vectors corresponding to the connected subgraphs is large. An efficient search method, such as Annoy, can be used to identify connected subgraphs similar to each other across multiple connected subgraphs. Annoy is an open-source library for finding approximate nearest neighbors in high-dimensional space. Annoy constructs a binary tree to facilitate nearest neighbor lookup. Annoy includes steps A1-A2:

[0139] Step A1: Construct a binary tree.

[0140] In one embodiment, constructing a binary tree includes steps B1-B3:

[0141] Step B1 involves randomly selecting two points (two connected subgraphs), which are the high-dimensional vectors of the two connected subgraphs (the graph vectors corresponding to the two connected subgraphs), and using an equidistant hyperplane perpendicular to these two points to divide all points (all connected subgraphs) into two subspaces, and recording the hyperplane information.

[0142] Step B2: In these two subspaces, randomly select two more points and divide them in the same way as described above until each space has at most k points remaining. This ensures that each point (each connected subgraph) exists in a specific subspace.

[0143] Step B3: Establish a binary tree structure to represent the above point distribution space, where each node in the tree represents a subspace.

[0144] Step A2: Find similar images.

[0145] In one embodiment, finding a similar graph to a connected subgraph involves determining which subspace it resides in. From a binary tree indexing perspective, this is a process of traversing from the root node to the leaf nodes. Finding a similar graph includes steps C1-C3:

[0146] Step C1: Given a vector of a connected subgraph, i.e. the graph vector corresponding to the connected subgraph, start from the root node and determine whether to go to the left child node or the right child node by comparing the vector with the first splitting hyperplane.

[0147] Step C2: Repeat the above process until a leaf node is found.

[0148] Step C3: All connected subgraphs in the subspace represented by the leaf node are similar graphs of that connected subgraph.

[0149] Applying the embodiments of this application has at least the following beneficial effects:

[0150] In a relational graph space composed of multiple connected subgraphs, graph2vec performs graph embedding on each connected subgraph based on its graph structure, obtaining a feature embedding vector for each subgraph. This step considers the interaction information between connected subgraphs, and connected subgraphs with similar structures have more similar embeddings. Simultaneously, a business feature vector is constructed for each connected subgraph based on the business scenario. The feature embedding vectors and business feature vectors are then fused to form a vectorized representation of each connected subgraph, i.e., a graph vector for each connected subgraph. This graph vector considers both the interaction information between connected subgraphs and the business features of each subgraph. Based on this, the similarity of each pair of connected subgraphs is calculated using the approximate nearest neighbor method (annoy) in a high-dimensional space, obtaining connected subgraphs similar to each other without manual intervention, offering advantages in terms of time and space saving.

[0151] To better understand the methods provided in the embodiments of this application, the solutions of the embodiments of this application will be further explained below with reference to specific application scenarios.

[0152] The method provided in this application can be applied to merchant risk control scenarios. For example, given the graph vectors corresponding to the connected subgraphs formed by known illegal merchants, the similarity between the connected subgraphs corresponding to unknown merchants and the known illegal merchants can be calculated. This involves calculating the similarity between the graph vectors corresponding to the known illegal merchants' connected subgraphs and the graph vectors corresponding to the unknown merchants' connected subgraphs, and outputting some high-risk connected subgraphs. This allows for the timely detection and control of group crimes, bulk registrations, and other similar behaviors.

[0153] See Figure 8 , Figure 8 This illustration shows a flowchart of a data processing method provided in an embodiment of this application. This method can be executed by any electronic device, such as a server. As an optional implementation, the method can be executed by a server. For ease of description, in the following description of some optional embodiments, a server will be used as the execution subject of the method. Figure 8 As shown, the data processing method provided in this application includes the following steps:

[0154] S801, construct a relationship graph.

[0155] Specifically, based on a large amount of merchant data, a relationship graph is constructed. All nodes in this relationship graph are merchant nodes, and the relationship type in this relationship graph can be any two merchants having common registration information or a transaction counterparty relationship.

[0156] S802, based on the relation graph, determines the node table and relation table, and uses the node table and relation table as input to the distributed platform to perform connected subgraph calculation, dividing the relation graph into multiple connected subgraphs. The distributed platform outputs the number of each node in the relation graph, as well as the number of the connected subgraph corresponding to each node.

[0157] Specifically, the distributed platform can be MapReduce, the node table can include the number of each node in the relationship graph, and the relationship table can include the relationship between each node in the relationship graph.

[0158] S803, determine the rooted subgraphs of multiple connected subgraphs, and perform negative sampling on the rooted subgraphs of multiple connected subgraphs to obtain a set of rooted subgraphs of multiple connected subgraphs.

[0159] Specifically, negative sampling can reduce the number of samples in a rooted subgraph.

[0160] S804 inputs the number vector of each connected subgraph and the set of rooted subgraphs into the structure vectorization model. Based on the preset number of iteration training rounds, the structure vectorization model is iteratively trained to obtain the feature embedding vector corresponding to each connected subgraph.

[0161] S805 determines the business feature vector corresponding to each connected subgraph based on the business attributes of the nodes in each connected subgraph.

[0162] S806, fuse the feature embedding vector and the business feature vector corresponding to each connected subgraph to obtain the graph vector corresponding to each connected subgraph.

[0163] Specifically, the fusion process includes normalization and concatenation. The feature embedding vector and the business feature vector corresponding to each connected subgraph are normalized to obtain normalized feature embedding vectors and normalized business feature vectors. The normalized feature embedding vectors and normalized business feature vectors are then concatenated to obtain the graph vector corresponding to each connected subgraph.

[0164] S807 If one of the connected subgraphs in a plurality of connected subgraphs corresponds to a known illegal merchant, then based on the graph vector corresponding to each connected subgraph in the plurality of connected subgraphs, a binary tree structure is determined, and based on the graph vector and binary tree structure corresponding to each connected subgraph, a connected subgraph similar to the connected subgraph in the plurality of connected subgraphs is determined.

[0165] S808 identifies a connected subgraph that is similar to a known illegal merchant as a high-risk connected subgraph.

[0166] Applying the embodiments of this application has at least the following beneficial effects:

[0167] A relationship graph is constructed, where nodes are classified as merchant nodes. Based on the relationship graph, multiple connected subgraphs and a set of rooted subgraphs are identified. Based on the index vector of each connected subgraph and the set of rooted subgraphs, a feature embedding vector is determined for each connected subgraph. Based on the business attributes of nodes in each connected subgraph, a business feature vector is determined for each connected subgraph. Based on the feature embedding vector and the business feature vector, a graph vector is determined for each connected subgraph. If one of the connected subgraphs corresponds to a known illegal merchant, a binary tree structure is determined based on the graph vectors of each connected subgraph. Furthermore, based on the graph vectors and binary tree structure of each connected subgraph, similar connected subgraphs are identified. This allows for the rapid identification of other illegal merchants similar to the known illegal merchants, thereby improving the efficiency and accuracy of identifying a large number of illegal merchants.

[0168] This application also provides a data processing apparatus, the structural schematic diagram of which is shown below. Figure 9 As shown, the data processing device 90 includes a first processing module 901, a second processing module 902, a third processing module 903, a fourth processing module 904, a fifth processing module 905, and a sixth processing module 906.

[0169] The first processing module 901 is used to acquire graph structure data;

[0170] The second processing module 902 is used to determine multiple connected subgraphs and a set of rooted subgraphs of the multiple connected subgraphs based on graph structure data.

[0171] The third processing module 903 is used to determine the feature embedding vector corresponding to each connected subgraph based on the number vector of each connected subgraph and the set of rooted subgraphs in multiple connected subgraphs.

[0172] The fourth processing module 904 is used to determine the business feature vector corresponding to each connected subgraph based on the business attributes of the nodes in each connected subgraph.

[0173] The fifth processing module 905 is used to determine the graph vector corresponding to each connected subgraph based on the feature embedding vector corresponding to each connected subgraph and the business feature vector corresponding to each connected subgraph.

[0174] The sixth processing module 906 is used to determine, based on the graph vector corresponding to each connected subgraph, a connected subgraph that is similar to each connected subgraph among multiple connected subgraphs.

[0175] In one embodiment, the first processing module 901 is specifically used for:

[0176] Obtain a relation graph. In a relation graph, all nodes are of the same type, and the relationships between the two nodes represented by each edge are of the same type. A relation graph is a graph structure data.

[0177] In one embodiment, the second processing module 902 is specifically used for:

[0178] Based on the graph structure data, determine the node table and the relationship table. The node table includes the number of each node in the graph structure data, and the relationship table includes the relationships between the nodes.

[0179] Based on the node table and the relationship table, multiple connected subgraphs are determined, as well as the numbers of the connected subgraphs corresponding to each node.

[0180] In one embodiment, the second processing module 902 is specifically used for:

[0181] Based on graph structure data, identify multiple connected subgraphs;

[0182] For each of the multiple connected subgraphs, arbitrarily select a node in each connected subgraph as the root node, and determine the neighbors of the root node at a certain degree.

[0183] Based on the root node and its neighbors of several degrees, determine at least one rooted subgraph corresponding to the root node.

[0184] By performing negative sampling on the rooted subgraphs corresponding to each root node, a set of rooted subgraphs with multiple connected subgraphs is obtained.

[0185] In one embodiment, the third processing module 903 is specifically used for:

[0186] The number vector of each connected subgraph and the set of rooted subgraphs in multiple connected subgraphs are input into a preset structure vectorization model. Based on a preset number of iteration training rounds, the preset structure vectorization model is iteratively trained to obtain the trained structure vectorization model and the feature embedding vector corresponding to each connected subgraph output by the trained structure vectorization model.

[0187] In one embodiment, the fourth processing module 904 is specifically used for:

[0188] Aggregate any business attribute of the same type among the nodes in each connected subgraph to determine the feature value corresponding to any business attribute of the same type. Each node includes multiple business attributes of the same type.

[0189] Based on the feature values ​​corresponding to multiple identical business attributes, the business feature vector corresponding to each connected subgraph is determined. The dimension of the business feature vector is the same as the number of multiple identical types.

[0190] In one embodiment, the fifth processing module 905 is specifically used for:

[0191] The feature embedding vector and the business feature vector corresponding to each connected subgraph are normalized respectively to obtain the normalized feature embedding vector and the normalized business feature vector.

[0192] The normalized feature embedding vector and the normalized business feature vector are concatenated to obtain the graph vector corresponding to each connected subgraph.

[0193] In one embodiment, the sixth processing module 906 is specifically used for:

[0194] Based on the graph vector corresponding to each connected subgraph, the binary tree structure is determined. Each node in the binary tree structure is used to represent a subspace. A subspace includes at least one connected subgraph among multiple connected subgraphs.

[0195] Based on the graph vector and binary tree structure corresponding to each connected subgraph, identify connected subgraphs similar to each connected subgraph among multiple connected subgraphs.

[0196] Applying the embodiments of this application has at least the following beneficial effects:

[0197] The process involves acquiring graph structure data, such as a relationship graph where nodes are classified as merchant nodes. Based on this data, multiple connected subgraphs and their rooted subgraph sets are identified. The feature embedding vector for each connected subgraph is determined based on its index vector and the rooted subgraph set. The business feature vector for each connected subgraph is determined based on the business attributes of its nodes. The graph vector for each connected subgraph is then determined based on both the feature embedding vector and the business feature vector. Finally, the connected subgraphs similar to each other are identified. For example, if a connected subgraph corresponds to an illegal merchant, its graph vector is used to identify similar connected subgraphs. These similar subgraphs then identify other illegal merchants, thus improving the efficiency and accuracy of identifying a large number of illegal merchants.

[0198] This application also provides an electronic device, the structural schematic diagram of which is shown below. Figure 10 As shown, Figure 10 The illustrated electronic device 4000 includes a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 4004 is not limited to one type, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of this application.

[0199] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0200] Bus 4002 may include a pathway for transmitting information between the aforementioned components. Bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 4002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 10 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0201] The memory 4003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium capable of carrying or storing computer programs and capable of being read by a computer, without limitation herein.

[0202] The memory 4003 stores computer programs that execute embodiments of this application, and its execution is controlled by the processor 4001. The processor 4001 executes the computer programs stored in the memory 4003 to implement the steps shown in the foregoing method embodiments.

[0203] Electronic devices include, but are not limited to, servers.

[0204] Applying the embodiments of this application has at least the following beneficial effects:

[0205] The process involves acquiring graph structure data, such as a relationship graph where nodes are classified as merchant nodes. Based on this data, multiple connected subgraphs and their rooted subgraph sets are identified. The feature embedding vector for each connected subgraph is determined based on its index vector and the rooted subgraph set. The business feature vector for each connected subgraph is determined based on the business attributes of its nodes. The graph vector for each connected subgraph is then determined based on both the feature embedding vector and the business feature vector. Finally, the connected subgraphs similar to each other are identified. For example, if a connected subgraph corresponds to an illegal merchant, its graph vector is used to identify similar connected subgraphs. These similar subgraphs then identify other illegal merchants, thus improving the efficiency and accuracy of identifying a large number of illegal merchants.

[0206] This application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it can implement the steps and corresponding content of the aforementioned method embodiments.

[0207] This application also provides a computer program product, including a computer program that, when executed by a processor, can implement the steps and corresponding content of the aforementioned method embodiments.

[0208] Based on the same principles as the methods provided in the embodiments of this application, the embodiments of this application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in any of the optional embodiments of this application described above.

[0209] It should be understood that although arrows indicate various operation steps in the flowcharts of this application's embodiments, the order in which these steps are implemented is not limited to the order indicated by the arrows. Unless explicitly stated herein, in some implementation scenarios of this application's embodiments, the implementation steps in each flowchart can be executed in other orders as required. Furthermore, some or all steps in each flowchart, based on the actual implementation scenario, may include multiple sub-steps or multiple stages. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage can also be executed at different times. In scenarios where execution times differ, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and this application's embodiments do not limit this.

[0210] The above description is only an optional implementation method for some implementation scenarios of this application. It should be noted that for those skilled in the art, other similar implementation methods based on the technical concept of this application without departing from the technical concept of this application also fall within the protection scope of the embodiments of this application.

Claims

1. A data processing method, characterized in that, include: Based on merchant data, a relationship graph is constructed, which is a graph-structured data. Based on the graph structure data, multiple connected subgraphs and a set of rooted subgraphs of the multiple connected subgraphs are determined. Based on the number vector of each connected subgraph in the plurality of connected subgraphs and the set of rooted subgraphs, the feature embedding vector corresponding to each connected subgraph is determined; Aggregate any type of business attribute among the nodes in each connected subgraph to determine the feature value corresponding to the type of business attribute. The nodes include multiple types of business attributes. Based on the feature values ​​corresponding to the multiple types of business attributes, determine the business feature vector corresponding to each connected subgraph. The dimension of the business feature vector is the same as the number of multiple types. The business attribute includes at least one of the following: merchant type, merchant region, merchant business type, and the number of the connected subgraph to which the node belongs. The feature embedding vector and the business feature vector corresponding to each connected subgraph are normalized respectively to obtain normalized feature embedding vector and normalized business feature vector; the normalized feature embedding vector and the normalized business feature vector are concatenated to obtain the graph vector corresponding to each connected subgraph. Based on the graph vector corresponding to each connected subgraph, a connected subgraph similar to each connected subgraph is determined among the multiple connected subgraphs, so that a connected subgraph similar to a connected subgraph corresponding to a known illegal merchant is identified as a high-risk connected subgraph.

2. The method according to claim 1, characterized in that, All nodes in the relation graph are of the same type, and the relationships between the two nodes represented by each edge in the relation graph are of the same type.

3. The method according to claim 1, characterized in that, The determination of multiple connected subgraphs based on the graph structure data includes: Based on the graph structure data, a node table and a relationship table are determined. The node table includes the number of each node in the graph structure data, and the relationship table includes the relationships between the nodes. Based on the node table and the relationship table, multiple connected subgraphs are determined, as well as the numbers of the connected subgraphs corresponding to each node.

4. The method according to claim 1, characterized in that, The step of determining the set of rooted subgraphs of the plurality of connected subgraphs based on the graph structure data includes: Based on the graph structure data, the plurality of connected subgraphs are determined; For each of the multiple connected subgraphs, arbitrarily select a node in each connected subgraph as the root node, and determine the neighbors of the root node at a certain degree. Based on the root node and its neighbors of several degrees, determine at least one rooted subgraph corresponding to the root node. The rooted subgraphs corresponding to each root node are subjected to negative sampling to obtain the rooted subgraph set of the multiple connected subgraphs.

5. The method according to claim 1, characterized in that, The step of determining the feature embedding vector corresponding to each connected subgraph based on the number vector of each connected subgraph in the plurality of connected subgraphs and the set of rooted subgraphs includes: The number vector of each connected subgraph in the plurality of connected subgraphs and the set of rooted subgraphs are input into a preset structure vectorization model. Based on a preset number of iteration training rounds, the preset structure vectorization model is iteratively trained to obtain the trained structure vectorization model and the feature embedding vector corresponding to each connected subgraph output by the trained structure vectorization model.

6. The method according to claim 1, characterized in that, The step of determining, based on the graph vector corresponding to each connected subgraph, a connected subgraph similar to each of the plurality of connected subgraphs includes: Based on the graph vector corresponding to each connected subgraph, a binary tree structure is determined, where each node in the binary tree structure is used to represent a subspace, and the subspace includes at least one connected subgraph among the plurality of connected subgraphs. Based on the graph vector corresponding to each connected subgraph and the binary tree structure, a connected subgraph similar to each connected subgraph is determined among the plurality of connected subgraphs.

7. A data processing apparatus, characterized in that, include: The first processing module is used to construct a relationship graph based on merchant data, wherein the relationship graph is a graph structure data. The second processing module is used to determine multiple connected subgraphs and a set of rooted subgraphs of the multiple connected subgraphs based on the graph structure data. The third processing module is used to determine the feature embedding vector corresponding to each connected subgraph based on the number vector of each connected subgraph in the plurality of connected subgraphs and the set of rooted subgraphs; The fourth processing module is used to aggregate any type of business attribute of the same kind among the nodes in each connected subgraph to determine the feature value corresponding to the type of business attribute of the same kind. The nodes include multiple types of business attributes of the same kind. Based on the feature values ​​corresponding to the multiple types of business attributes of the same kind, a business feature vector corresponding to each connected subgraph is determined. The dimension of the business feature vector is the same as the number of the multiple types of the same kind. The business attribute includes at least one of the following: merchant type, merchant region, merchant business type, and the number of the connected subgraph to which the node belongs. The fifth processing module is used to normalize the feature embedding vector and the business feature vector corresponding to each connected subgraph respectively to obtain normalized feature embedding vector and normalized business feature vector; and to concatenate the normalized feature embedding vector and the normalized business feature vector to obtain the graph vector corresponding to each connected subgraph. The sixth processing module is used to determine, based on the graph vector corresponding to each connected subgraph, a connected subgraph similar to each connected subgraph among the multiple connected subgraphs, so as to identify a connected subgraph similar to a known illegal merchant as a high-risk connected subgraph.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the method according to any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Account relationship identification method and device

    CN112215500A

  • Learning property graph representations edge-by-edge

    US20200142957A1