Hypergraph-based abnormal transaction prediction method, device, equipment and storage medium

By constructing a hypergraph and a two-layer neural network model to aggregate multi-dimensional media information between users, it solves the problem of incomplete expression of user relationships in traditional methods and improves the accuracy of abnormal transaction predictions.

CN113822757BActive Publication Date: 2024-10-18TONGDUN NETWORK TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110859720.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-28
Publication Date
2024-10-18
Estimated Expiration
2041-07-28

AI Technical Summary

Technical Problem

Traditional methods cannot fully and deeply express the relationship between users in abnormal transaction prediction, resulting in low accuracy of prediction results.

Method used

By constructing a hypergraph, multi-dimensional media information is used to construct node feature matrices and hyperedge matrices. Combined with a two-layer neural network model, node features are aggregated into hyperedges, and hyperedge features are aggregated into user nodes to conduct semi-supervised learning and generate hyperedges. Graph prediction model.

Benefits of technology

It improves the accuracy of abnormal transaction predictions, fully expresses the deep connections between users, and enhances model capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113822757B_ABST
    Figure CN113822757B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, equipment and storage medium for predicting abnormal transactions based on a hypergraph, and belongs to the field of machine learning. The method includes: constructing a node feature matrix according to multidimensional medium information used by a user in a transaction, and constructing a hyperedge matrix and a hyperedge weight matrix based on the node feature matrix; inputting the node feature matrix, the hyperedge matrix and the hyperedge weight matrix into the first layer neural network of a hypergraph learning neural network model so that the node features in the node feature matrix are aggregated to the hyperedge, and a hyperedge feature is obtained; inputting the hyperedge feature into the second layer neural network of the hypergraph learning neural network model so that the hyperedge feature is aggregated to the user's node, and a represented node feature is obtained; semi-supervised learning is performed based on the represented node features, and when the loss function converges, a hypergraph prediction neural network model is obtained; and predicting whether the user's transaction is an abnormal transaction according to the hypergraph prediction neural network model. The capability of the model is improved, and the accuracy of the prediction result is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of machine learning technology, and in particular to a hypergraph-based abnormal transaction prediction method, apparatus, device and storage medium. Background Art

[0002] With the rapid development of computer technology, efficient prediction of abnormal transactions can be achieved. The general method is to use the XGBoost model to learn the transaction time and transaction amount in the transaction log, and then use the XGBoost model to identify whether it is an abnormal transaction; Another common method is to use the user account as the node, the transaction relationship as the edge, and the transaction time, transaction frequency, and transaction amount as the edge weight to construct a knowledge graph. Based on the knowledge graph, the relationship between user accounts can be learned, thereby predicting whether the transaction between users is an abnormal transaction.

[0003] In traditional methods, either user entities are viewed in isolation without considering the connections between users, or the relationships between users are constructed through simple graphs, which cannot fully and deeply express user relationships, resulting in low accuracy in abnormal transaction prediction results. Summary of the invention

[0004] The embodiments of the present application provide a hypergraph-based abnormal transaction prediction method, apparatus, device and storage medium to at least solve the problem of low accuracy in identifying abnormal transactions in related technologies.

[0005] In a first aspect, an embodiment of the present application provides a method for predicting abnormal transactions based on a hypergraph, the method comprising the following steps: constructing a node feature matrix based on the multidimensional media information used by the user in the transaction, and constructing a hyperedge matrix and a hyperedge weight matrix based on the node feature matrix; inputting the node feature matrix, the hyperedge matrix and the hyperedge weight matrix into a first layer neural network of a hypergraph learning neural network model so that the node features in the node feature matrix are aggregated to the hyperedges to obtain hyperedge features; inputting the hyperedge features into a second layer neural network of the hypergraph learning neural network model so that the hyperedge features are aggregated to the user's nodes to obtain characterized node features; performing semi-supervised learning based on the characterized node features, and when the loss function converges, obtaining a hypergraph prediction neural network model; and predicting whether the user's transaction is an abnormal transaction based on the hypergraph prediction neural network model.

[0006] In some of the embodiments, the multi-dimensional media information includes at least two of device information, IP address, E-mail address, bank card account number and delivery address.

[0007] In some embodiments, the first layer of the neural network includes the following formula:

[0008]

[0009] in, represents the hyperedge feature, 1 represents the first layer of the neural network, e represents the edge, represents the edge normalization parameter, S represents the hyperedge weight matrix, H T represents the transposed matrix of the hyperedge matrix H, X 1 Represents the node feature matrix of the first layer neural network input, W l Represents the parameters of the hypergraph learning neural network model.

[0010] In some embodiments, the second layer of the neural network includes the following formula:

[0011]

[0012] Among them, the represents the point normalization parameter, and v represents the user node.

[0013] In some of the embodiments, constructing a hyperedge matrix includes: in each medium dimension, if multiple users use the same medium information in a transaction, connecting the multiple users through the same medium information to form a hyperedge.

[0014] In some of the embodiments, constructing the hyperedge weight matrix includes: representing the weight of the hyperedge by a preset value.

[0015] In some of the embodiments, constructing a hyperedge matrix includes: in each medium dimension, if multiple users have similar medium information used in transactions and the similarity reaches a preset threshold, the multiple users are connected through the similar medium information to form a hyperedge.

[0016] In some of the embodiments, constructing a hyperedge weight matrix includes: representing the weight of the hyperedge by the similarity.

[0017] In a second aspect, an embodiment of the present application provides an abnormal transaction prediction device based on a hypergraph, the device comprising:

[0018] A construction module, used to construct a node feature matrix according to the multi-dimensional medium information used by the user in the transaction, and to construct a hyperedge matrix and a hyperedge weight matrix based on the node feature matrix;

[0019] A first aggregation module is used to input the node feature matrix, the hyperedge matrix and the hyperedge weight matrix into a first layer neural network of a hypergraph learning neural network model so that the node features in the node feature matrix are aggregated to the hyperedge to obtain the hyperedge features;

[0020] A second aggregation module is used to input the hyperedge feature into the second layer neural network of the hypergraph learning neural network model so that the hyperedge feature is aggregated to the user's node to obtain a represented node feature;

[0021] A learning module, used for performing semi-supervised learning based on the node features represented, and obtaining a hypergraph prediction neural network model when the loss function converges;

[0022] The prediction module is used to predict whether the user's transaction is an abnormal transaction based on the hypergraph prediction neural network model.

[0023] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any of the methods described above.

[0024] In a fourth aspect, an embodiment of the present application provides a storage medium, wherein a computer program is stored in the storage medium, wherein the computer program is configured to execute any of the above methods when run.

[0025] Compared with the related art that treats the user subject in isolation, does not consider the connection between users, or constructs the relationship between users through a simple graph, the embodiment of the present application constructs a complex hypergraph based on multi-dimensional medium information, and constructs a hypergraph learning neural network model through a two-layer neural network. In the first layer of the neural network, the node features are aggregated to the hyperedge to obtain the hyperedge features; in the second layer of the neural network, the hyperedge features are aggregated to the user's node. By introducing the hypergraph data, the connection between users can be fully and deeply expressed, thereby improving the ability of the model, so the accuracy of the model prediction results can be improved. In addition, the embodiment of the present application not only introduces similar media and similar groups, enriches the information of the hyperedge, but also assigns weights to the hyperedge, better introduces the differences brought by different information, and can further fully express the deep connection between users, so it can further improve the ability of the model, thereby further improving the accuracy of the model prediction results. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0027] Figure 1 is a flow chart of an abnormal transaction prediction method based on a hypergraph according to an embodiment of the present application;

[0028] Figure 2 is a structural block diagram of an abnormal transaction prediction device based on a hypergraph according to an embodiment of the present application;

[0029] Figure 3 It is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application. In addition, it can also be understood that although the efforts made in this development process may be complex and lengthy, for ordinary technicians in the field related to the contents disclosed in the present application, some changes such as design, manufacturing or production based on the technical contents disclosed in the present application are only conventional technical means, and should not be understood as insufficient contents disclosed in the present application.

[0031] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0032] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to greater than or equal to two. "And / or" describes the association relationship of 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. The terms "first", "second", "third" and the like involved in the present application are merely used to distinguish similar objects and do not represent a specific ordering of the objects.

[0033] This application embodiment proposes a hypergraph-based abnormal transaction prediction method. Figure 1 is a flowchart of a method for predicting abnormal transactions based on a hypergraph according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0034] S101: constructing a node feature matrix according to the multi-dimensional medium information used by the user in the transaction, and constructing a hyperedge matrix and a hyperedge weight matrix based on the node feature matrix;

[0035] S102: inputting the node feature matrix, the hyperedge matrix and the hyperedge weight matrix into the first layer neural network of the hypergraph learning neural network model so as to aggregate the node features in the node feature matrix to the hyperedges to obtain the hyperedge features;

[0036] S103: Inputting the hyperedge features into the second layer neural network of the hypergraph learning neural network model to aggregate the hyperedge features to the user's nodes, thereby obtaining the represented node features;

[0037] S104: Perform semi-supervised learning based on the represented node features, and when the loss function converges, obtain a hypergraph prediction neural network model;

[0038] S105: Predict whether the user's transaction is an abnormal transaction based on the hypergraph prediction neural network model.

[0039] The embodiment of the present application constructs a hypergraph based on multi-dimensional medium information, and constructs a hypergraph learning neural network model through a two-layer neural network. In the first layer of the neural network, the node features in the node feature matrix are aggregated to the hyperedge to obtain the hyperedge features; in the second layer of the neural network, the obtained hyperedge features are aggregated to the user's node. Therefore, through the introduction of hypergraph data, the connection between users is fully considered, which can improve the ability of the model and thus improve the accuracy of the model prediction results.

[0040] In order to more clearly illustrate the embodiments of the present application, a detailed explanation is given below.

[0041] In a transaction, the user is the subject, and the media information used by the user includes but is not limited to device information, IP address, E-mail address, bank card account number, and delivery address. For example, there are N user nodes, and each user node contains the following 5 node features: device information, IP address, E-mail address, bank card account number, and delivery address. A node feature matrix of [N×M] can be constructed, where N represents the number of rows in the matrix, and each row corresponds to a user; M is the number of columns in the matrix, such as M=5, and each column corresponds to a node feature. It should be noted that before constructing the node feature matrix, the node features need to be normalized, such as mapping the original information of the node features to digital information so that it can be processed by subsequent steps.

[0042] As an example, a hypergraph is introduced in an embodiment of the present application. In each medium dimension, if multiple user nodes use the same medium information in a transaction, the multiple user nodes are connected through the same medium information to form a hyperedge. A specific example is shown below.

[0043] Table 1 shows the information of multiple user nodes and the media used in transactions.

[0044] User Node Device Information IP address E-mail address Bank card account Delivery address U1 D1 I1 E1 C1 A1 U2 D2 I2 E2 C3 A1 U3 D2 I3 E1 C2 A2 U4 D1 I2 E2 C1 A3 U5 D2 I3 E1 C3 A3

[0045] According to the above Table 1, user nodes U2, U3, and U5 use the same device D2 in the transaction, so user nodes U2, U3, and U5 can be connected together through the device D2.

[0046] Therefore, for device D1, a hyperedge (1, 0, 0, 1, 0) is constructed, indicating that device D1 is connected to user nodes U1 and U4, that is, user nodes U1 and U4 use the same device D1 in the transaction;

[0047] For device D2, a hyperedge (0, 1, 1, 0, 1) is constructed, indicating that device D2 is connected to user nodes U2, U3, and U5, that is, user nodes U2, U3, and U5 use the same device D2 in transactions;

[0048] For IP medium I1, only one user node, U1, is used in the transaction, so it cannot be connected to other user nodes to form a hyperedge;

[0049] For IP medium I2, a hyperedge (0, 1, 0, 1, 0) is constructed, indicating that IP medium I2 connects user nodes U2 and U4, that is, user nodes U2 and U4 use the same IP medium I2 in the transaction;

[0050] Similarly, construct hyperedges for I3, E1, E2, C1, C2, C3, A1, A2, and A3 respectively (except for a medium that corresponds to only one node user), use the constructed hyperedges as the columns of the hyperedge matrix, and the user nodes as the rows, and obtain the following hyperedge matrix H:

[0051]

[0052] After the hyperedge matrix is ​​constructed, the hyperedge weight matrix needs to be constructed. Please see the following description for details:

[0053] The size of the hyperedge weight can be represented by a preset value. For example, if it is believed that the devices, bank cards, and E-mails used by multiple user nodes in transactions are the same, and the risk of abnormal transactions is the greatest, then the weight of the hyperedge connected by device information, bank card account, and E-mail address is set to 1; if it is believed that the IP and delivery address used by multiple user nodes in transactions are the same, the risk of abnormal transactions is relatively small, then the weight of the hyperedge connected by IP address and delivery address is set to 0.9. According to customization, for example, a hyperedge weight matrix S is constructed:

[0054]

[0055] Among them, those without a value are 0.

[0056] In some of the embodiments, in the dimension of each medium, if multiple user nodes use similar medium information in transactions, and the similarity reaches a preset threshold, the multiple user nodes can also be connected through the similar medium information to form a hyperedge. For example, there are two user nodes that use E-mail addresses E1: DavidBeckham1@gmail.com and E2: DavidBeckham2@gmail.com in transactions. Although these two mailboxes are inconsistent, they are very similar, so it can be considered that these two mailboxes should belong to one, and a hyperedge should be constructed. Therefore, the embodiment of the present application also calculates the similarity of the medium information of the same dimension. If the similarity exceeds the preset threshold, it is considered to belong to the same medium. The calculation method of this similarity can be measured by MED (Minimum Edit Distance).

[0057] Therefore, for a newly created hyperedge such as (1, 1, 1, 1, 1), we can add another column to the right of the above H to obtain the new hyperedge matrix H as follows:

[0058]

[0059] Furthermore, the embodiment of the present application may also add a hyperedge weight expressed by the similarity between media. For example, if the similarity calculated for similar mailboxes or similar devices is 0.95, then it is added to the hyperedge weight matrix S to obtain a new hyperedge weight matrix S:

[0060]

[0061] Furthermore, the embodiments of the present application can also determine whether multiple users are similar groups through preset rules. For example, if one or more media (such as mailboxes, etc.) used by user A and user B in a transaction are the same or the similarity reaches a certain threshold, then user A and user B are determined to be similar groups. According to the above, since multiple users using the same medium will be connected through the same medium to form a hyperedge, the multiple users connected by the above hyperedge can be directly determined as similar groups, enriching the information of the hyperedge.

[0062] Therefore, based on the above, according to the multi-dimensional media information used by the user in the transaction (such as device information, IP address, E-mail address, bank card account number and delivery address, etc.), the node feature matrix, hyperedge matrix and hyperedge weight matrix can be obtained.

[0063] Next, the node feature matrix X, the hyperedge matrix H, and the hyperedge weight matrix S are input into the first layer neural network of the hypergraph learning neural network model. In the first layer neural network, the node features in the node feature matrix X are aggregated to the hyperedges according to the hyperedge matrix H and the hyperedge weight matrix S to obtain the hyperedge features. The first layer neural network includes the following formula:

[0064]

[0065] Above represents the hyperedge feature, 1 represents the first layer of the neural network, e represents the edge, represents the edge normalization parameter, S represents the hyperedge weight matrix, and H T represents the transposed matrix of the hyperedge matrix H, X 1 Represents the node feature matrix of the first layer neural network input, W l Represents the parameters of the hypergraph learning neural network model.

[0066] Above Yes D e The reciprocal of D eIt can be obtained by summing the columns of the hyperedge matrix H. The calculation formula is as follows:

[0067]

[0068] After the hyperedge feature is obtained, the hyperedge feature is input into the second layer neural network of the hypergraph learning neural network model. In the second layer neural network, the hyperedge feature is aggregated to the user's node to obtain the represented node feature, wherein the second layer neural network includes the following formula:

[0069]

[0070] in, represents the point normalization parameter, and v represents the user node.

[0071] Above Yes D v The reciprocal of D v It can be obtained by summing the rows of the hyperedge matrix H. The calculation formula is as follows:

[0072]

[0073] Therefore, according to the above two-layer neural network, the represented node features, that is, the aggregated features of the nodes, are obtained. For the aggregated features of the nodes, some data marked as black samples are selected as training sets, and predictions are made on unlabeled samples, wherein the label information can indicate whether the user represented by the node is an illegal trading account. Thus, semi-supervised learning is performed based on labeled samples and unlabeled samples. When the loss function converges, a hypergraph prediction neural network model is obtained.

[0074] The above loss function includes the logistic regression loss function, which includes the following formula

[0075]

[0076] Among them, m is the number of samples, y is the actual label, and p is the predicted label.

[0077] It should be noted that the embodiment of the present application uses data marked as black samples as a training set, and uses unlabeled sample data for prediction, so as to perform semi-supervised learning. If there are no real-time black samples, the samples rejected by the preset strategy can be regarded as black samples, and the samples passed by the preset strategy can be predicted to achieve the function of quasi-real-time prediction, wherein the specific content of the strategy can be set according to the actual situation. For example, if the sample data is greater than a certain value, it is passed, and if it is less than a certain value, it is rejected. No further description will be given here.

[0078] In summary, the embodiments of the present application do not express the connection between user nodes based on a simple graph (for example, two nodes are connected into an edge), but construct a complex hypergraph based on multi-dimensional medium information, and construct a hypergraph learning neural network model through a two-layer neural network. In the first layer of the neural network, the node features are aggregated to the hyperedge; in the second layer of the neural network, the hyperedge features are aggregated to the user nodes. Therefore, through the introduction of hypergraph data, the connection between users is fully considered, thereby improving the ability of the model, so the accuracy of the prediction results can be improved.

[0079] The embodiment of the present application also provides an abnormal transaction prediction device based on a hypergraph, Figure 2 is a structural block diagram of an abnormal transaction prediction device based on a hypergraph according to an embodiment of the present application, such as Figure 2 As shown, the device comprises the following steps:

[0080] Construction module 1, used to construct a node feature matrix according to the multi-dimensional medium information used by the user in the transaction, and to construct a hyperedge matrix and a hyperedge weight matrix based on the node feature matrix;

[0081] A first aggregation module 2 is used to input the node feature matrix, the hyperedge matrix and the hyperedge weight matrix into the first layer neural network of the hypergraph learning neural network model so that the node features in the node feature matrix are aggregated to the hyperedge to obtain the hyperedge features;

[0082] A second aggregation module 3, used for inputting the hyperedge features into the second layer neural network of the hypergraph learning neural network model so as to aggregate the hyperedge features to the user's node and obtain the represented node features;

[0083] Learning module 4 is used to perform semi-supervised learning based on the represented node features. When the loss function converges, a hypergraph prediction neural network model is obtained;

[0084] The prediction module 5 is used to predict whether the transaction between user nodes is an abnormal transaction based on the hypergraph prediction neural network model.

[0085] In the abnormal transaction prediction device based on hypergraph in the embodiment of the present application, based on each module, a complex hypergraph can be constructed according to multi-dimensional medium information, and a hypergraph learning neural network model can be constructed through a two-layer neural network. In the first layer of the neural network, the node features are aggregated to the hyperedge; in the second layer of the neural network, the hyperedge features are aggregated to the user nodes. Therefore, through the introduction of hypergraph data, the connection between users is fully considered, so that the ability of the model can be improved, so the accuracy of the prediction results can be improved.

[0086] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0087] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0088] In addition, in combination with the hypergraph-based abnormal transaction prediction method in the above embodiment, the embodiment of the present application can provide a storage medium for implementation. The storage medium stores a computer program; when the computer program is executed by a processor, any of the hypergraph-based abnormal transaction prediction methods in the above embodiment is implemented.

[0089] In one embodiment of the present application, an electronic device is also provided, which may be a terminal. The electronic device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for predicting abnormal transactions based on a hypergraph is implemented. The display screen of the electronic device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device may be a touch layer covered on the display screen, or a key, trackball or touchpad provided on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.

[0090] In one embodiment, Figure 3 is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application, such as Figure 3 As shown, an electronic device is provided, which may be a server, and its internal structure diagram may be as shown in Figure 3 As shown. The electronic device includes a processor, a network interface, an internal memory and a non-volatile memory connected through an internal bus, wherein the non-volatile memory stores an operating system, a computer program and a database. The processor is used to provide computing and control capabilities, the network interface is used to communicate with an external terminal through a network connection, the internal memory is used to provide an environment for the operation of the operating system and the computer program, the computer program is executed by the processor to implement an abnormal transaction prediction method based on a hypergraph, and the database is used to store data.

[0091] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0092] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0093] Those skilled in the art should understand that the technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0094] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A hypergraph-based abnormal transaction prediction method, It is characterized in that The method comprises the following steps: According to the multi-dimensional media information used by the user in the transaction, a node feature matrix is ​​constructed, and a hyperedge matrix and a hyperedge weight matrix are constructed based on the node feature matrix; wherein the node feature matrix is ​​constructed with user nodes as rows and the media information as columns, and the multi-dimensional media information includes device information, IP address, E-mail address, bank card number and delivery address; user nodes with the same or similar media information in the node feature matrix are connected to form hyperedges, and a hyperedge matrix is ​​constructed with the user nodes as rows and the hyperedges as columns; the weight of the hyperedge is represented by a preset value or the similarity of different user media information, and a hyperedge weight matrix is ​​constructed according to the weight and the node feature matrix; Inputting the node feature matrix, the hyperedge matrix and the hyperedge weight matrix into a first layer neural network of a hypergraph learning neural network model so that node features in the node feature matrix are aggregated to hyperedges to obtain hyperedge features; Inputting the hyperedge features into the second layer neural network of the hypergraph learning neural network model to aggregate the hyperedge features to the user's nodes to obtain the represented node features; Semi-supervised learning is performed based on the node features of the representation, and when the loss function converges, a hypergraph prediction neural network model is obtained; Predicting whether a user's transaction is an abnormal transaction according to the hypergraph prediction neural network model; The first layer of the neural network includes the following formula: in, represents the hyperedge feature, 1 represents the first layer of the neural network, e represents the edge, represents the edge normalization parameter, S represents the hyperedge weight matrix, H T represents the transposed matrix of the hyperedge matrix H, X 1 Represents the node feature matrix of the first layer neural network input, W 1 Representing parameters of the hypergraph learning neural network model; The second layer of the neural network includes the following formula: Among them, the represents the point normalization parameter, and v represents the user node.

2. The method according to claim 1, It is characterized in that Constructing the hyperedge matrix includes: In the dimension, if multiple users use the same medium information in a transaction, the multiple users are connected through the same medium information to form a hyperedge.

3. The method according to any one of claim 1, It is characterized in that Constructing the hyperedge matrix includes: In the dimension of each medium, if multiple users have similar medium information used in transactions and the similarity reaches a preset threshold, the multiple users are connected through the similar medium information to form a hyperedge.

4. An abnormal transaction prediction device based on hypergraph, It is characterized in that The device comprises: A construction module is used to construct a node feature matrix according to the multidimensional media information used by the user in the transaction, and to construct a hyperedge matrix and a hyperedge weight matrix based on the node feature matrix; wherein the node feature matrix is ​​constructed with user nodes as rows and the multidimensional media information as columns, and the media information includes device information, IP address, E-mail address, bank card number and delivery address; user nodes with the same or similar media information in the node feature matrix are connected to form hyperedges, and a hyperedge matrix is ​​constructed with the user nodes as rows and the hyperedges as columns; the weight of the hyperedge is represented by a preset value or the similarity of different user media information, and a hyperedge weight matrix is ​​constructed according to the weight and the node feature matrix; A first aggregation module is used to input the node feature matrix, the hyperedge matrix and the hyperedge weight matrix into a first layer neural network of a hypergraph learning neural network model so that the node features in the node feature matrix are aggregated to the hyperedge to obtain the hyperedge features; A second aggregation module is used to input the hyperedge feature into the second layer neural network of the hypergraph learning neural network model so that the hyperedge feature is aggregated to the user's node to obtain a represented node feature; A learning module, used for performing semi-supervised learning based on the node features represented, and obtaining a hypergraph prediction neural network model when the loss function converges; A prediction module, used to predict whether a user's transaction is an abnormal transaction based on the hypergraph prediction neural network model; The first layer of the neural network includes the following formula: in, represents the hyperedge feature, 1 represents the first layer of the neural network, e represents the edge, represents the edge normalization parameter, S represents the hyperedge weight matrix, H T represents the transposed matrix of the hyperedge matrix H, X 1 Represents the node feature matrix of the first layer neural network input, W l Representing parameters of the hypergraph learning neural network model; The second layer of the neural network includes the following formula: Among them, the represents the point normalization parameter, and v represents the user node.

5. An electronic device comprising a memory and a processor, It is characterized in that A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 3.

6. A storage medium, It is characterized in that The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 3 when executed.

Citation Information

Patent Citations

  • Hypergraph convolutional network model and semi-supervised classification method thereof

    CN109492691A