Industrial Internet of Things time sequence transaction network anomaly detection method
By adopting dynamic weighted directed trading network and graph convolution network in the industrial Internet of Things, combining privacy enhancement strategies and Gaussian differential privacy, the problems of time characteristics and data privacy protection in the timing trading network are solved, and the multi-source timing trading network is realized Effective abnormality detection and safe fusion.
Patent Information
- Application Number
- CN202411069035.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-11-05
AI Technical Summary
In the detection of abnormality of the industrial Internet of Things timing trading network, it is difficult to effectively capture time characteristics and protect data privacy, resulting in inefficient detection of fraudulent activities in multi-source timing trading networks.
Dynamic weighted directed trading network is used for initial feature extraction, and the timing transaction network features are encoded through maximum weight subgraph sampling and graph convolution network, combined with privacy enhancement strategies to calculate node and graph-level representations on the client and global server, using Gaussian Differential privacy protects data privacy and optimizes the model by minimizing cross-entropy loss.
It realizes that while protecting data privacy, it effectively integrates the timing transaction network information of multiple clients, explores timing characteristics and improves the efficiency of abnormal detection, and ensures the security and integrity of the transaction network.
Smart Images

Figure CN118900198A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of transaction network anomaly detection technology, and in particular to an industrial Internet of Things time series transaction network anomaly detection method. Background Art
[0002] In recent years, the development and application of Industrial Internet of Things (IIoT) has made significant progress, focusing on improving operational efficiency, productivity and safety in industrial environments. Analyzing the large amount of data collected by IoT devices helps to gain insights and drive decision-making in related fields. Taking the financial system as an example, by analyzing the complex transaction relationships between components in the IIoT environment, financial institutions can detect abnormal information in a timely manner to prevent fraud. Graph neural network (GNN) is an effective neural network structure that can effectively mine and analyze entities and the relationships between entities, and has achieved great success. Existing transaction network anomaly detection methods based on graph neural networks usually rely on a single type of graph data feature information. By encoding graph data into a low-dimensional representation of nodes, compact features are provided for downstream anomaly detection.
[0003] However, a single type of graph data feature information is not sufficient to model real-world scenarios. Taking the transaction network as an example, when considering the customer's bank transaction information and transaction activities on mobile payment platforms such as Alipay, the multi-source information provided can help each other identify abnormal customers. However, if only a single source of information such as the customer's bank transaction is considered, abnormal customers may not be detected. Existing studies have shown that integrating information from multiple sources can improve the identification of fraudulent activities. Multi-view graph representation learning, as a graph learning technology, aims to utilize the relationship information and edge information of multiple aspects of the graph to encode multi-source information into a unified vector space for downstream graph data analysis tasks. Multi-view graph representation learning allows graph learning models to integrate knowledge from multiple sources to obtain comprehensive and better analysis results.
[0004] In addition, due to privacy and security issues, these multi-source graph data are usually collected and stored on local clients, and data from multiple sources cannot be shared for centralized learning, resulting in data silos. A direct solution is to build a privacy-preserving graph learning model with secure multi-party computation and homomorphic encryption. Pure encryption methods ensure the robust security of the model, but will result in huge computational and communication overheads, which may reduce its overall efficiency. Federated learning, as a distributed machine learning technology, allows multiple parties to protect data privacy by collaboratively training models through clients and servers without sharing original data. This provides a solution for integrating and learning multi-source graph data from the Internet of Things.
[0005] Despite recent progress, existing federated learning methods still face two major challenges. First, graph data from IIoT often exhibit temporal characteristics. For example, in a time-series transaction network, a transaction timestamp refers to a timestamp associated with each transaction, recording the exact time when the transaction occurred. These temporal transaction timestamp features are crucial for understanding the evolution of transaction networks and detecting fraud. However, most current federated learning methods only focus on static graphs and ignore the dynamic nature of this data. Therefore, the question is: how to build a federated learning model that can capture these temporal features while splitting the model training process to the client and the central server, while protecting data privacy?
[0006] In addition, anomaly detection plays a key role in identifying potential fraud, malicious behavior, or abnormal transactions. By detecting anomalies in a timely manner, criminals can be prevented from using trading networks for illegal activities. This brings a second challenge to current research: how to integrate federated learning with time-series trading network feature learning to improve the effectiveness of anomaly detection? Solving the above two challenges is critical to advancing the field and ensuring the security and integrity of trading networks.
[0007] In summary, it is urgent to propose new methods to solve the anomaly detection task of multi-source time series trading networks, address the challenges brought by data privacy and time series feature mining, and provide more effective machine learning methods for feature learning and security fusion of multi-source time series trading networks in real-world scenarios. Summary of the invention
[0008] The purpose of the present invention is to provide an industrial Internet of Things time series transaction network anomaly detection method, which can overcome the problem that the existing methods do not take time series characteristics and privacy security into consideration when detecting anomalies in multi-source time series transaction networks.
[0009] In order to achieve the above object, the technical solution adopted by the present invention is: a method for detecting anomalies in an industrial Internet of Things time series transaction network, comprising the following steps: Step 1: Each client extracts initial features from the dynamic weighted directed transaction network it holds, including the following steps: Step 11: Use the maximum weight subgraph sampling strategy to reduce the size of the original transaction network and retain most of the features of the graph; Step 12: Model the features of the transaction network edges as a node attribute matrix, use a graph convolutional network to encode the features of the temporal transaction network held by the client, and merge the edge-level information into the node-centric node representation; Step 13: Model the dynamic transaction network as a series of network snapshots based on the timestamp information of the edges; Step 2: Calculate the private features of the time series trading network on the client; Step 3: Calculate the non-private global features on the global server; including the following steps: Step 31: Generate a global node representation based on the privacy enhancement strategy; Step 32: Generate a global graph-level representation; Step 33: Optimize the model by minimizing the cross entropy loss.
[0010] Preferably, in step 11, p most active edges in the transaction network are selected to sample the original data to obtain its subgraph; in step 12, each edge in the transaction network contains transaction volume and transaction flow direction information, and the edge features are converted into an attribute matrix X associated with the node to achieve modeling of the transaction volume and transaction flow direction information; the attribute matrix X describes the features of seven dimensions related to a given node: out-degree, in-degree, degree, normalized transaction volume, 1 / out-degree, 1 / in-degree and 1 / degree; wherein the degree represents the transaction volume between a given node and its neighbors in the transaction network; the edge features are modeled as a node attribute matrix X∈R n×7 , where n is the number of nodes.
[0011] Preferably, the network snapshot in step 13 captures the network state information at a specific moment, so that the model can integrate the time evolution of the network into the low-dimensional representation of the nodes; given the dynamic transaction network G held by client k d , the obtained network snapshot can be expressed as The relationship between two adjacent moments t′ and t is t′=t+Δt, where Δt is the time window. The choice of Δt can vary according to the requirements of different analysis tasks. For the transaction network held by client k, this model uses a graph convolutional network to obtain a low-dimensional representation of the nodes of its T network snapshots.
[0012] Preferably, in step 2, a graph neural network is used to encode the information of T network snapshots on the client to generate node embeddings; for the tth network snapshot of the kth client, an aggregation operation is used to generate node embeddings of n nodes, and the aggregation operation effectively integrates the node's neighbor information into the embedding of the current node; and an attention mechanism is used to aggregate the information of adjacent nodes.
[0013] Preferably, the polymerization operation process is as follows: Among them, the function AGG(·) represents the aggregation operation; l represents the lth graph neural network layer; and Represents the node embeddings of node u and node v from the l-1th graph neural network layer; represents the node embedding of node v in the lth graph neural network layer; CONCAT(·) connects the node embedding of the neighbor to the node embedding of the current node to update the node embedding of the current node; W l represents the trainable model parameters, σ represents the activation function; N(v) represents the neighbor nodes of node v.
[0014] Preferably, the node v i The one-hop neighbor of i ), where v j ∈N(v i ); according to v i and its neighbors N(v i ) features to calculate the weight of influence; the calculation formula is as follows: h i and h j Respectively represent the node v i and v j A low-dimensional representation of , W represents the parameter matrix, represents the attention parameter matrix; symbol T represents the transposition operation, and || represents the connection operation; Based on the softmax function, the influence weight coefficient e is calculated. ij Convert to [0,1], that is Based on the multi-head attention mechanism and the converted attention coefficient, generate node v i The low-dimensional representation of is shown in the formula: || indicates a connection operation. represents the normalized attention coefficient obtained by the mth attention; h j Represents node v j Low-dimensional representation of W m Represents the training parameters of the m-th attention.
[0015] Preferably, in step 31, the global server will combine T node representation matrices held by different clients to generate a global initial node representation matrix; the server will combine the T node representation matrices according to the timestamp information t of the network snapshots held by all clients; the entire combination process can be expressed as: The function COMBINE(·) is used to combine the node representations from all clients to generate a global initial node representation with timestamp t.
[0016] Preferably, Gaussian differential privacy is used in this combination process to protect the privacy of client data. The nodes on the client are embedded in h based on the Gaussian differential privacy mechanism. k Convert to in n is the noise vector; the global server will combine the transformed local node embeddings from all clients Generate the combined global initial node embedding to extract the features of cross-source time series transaction information later; Gaussian differential privacy can protect the data privacy on the client when performing the COMBINE(·) operation; when performing the combination operation, the weighting function uses the weight parameter w i , i∈{1,2,…,k,…,K} to balance the node embedding of each client; the weighted function process is shown in the following formula: h global (t) is the global initial node embedding at timestamp t, which is input into the deep neural network model for subsequent calculation of non-private features.
[0017] Preferably, in step 32, the server combines the node representations of the T network snapshots of each client to obtain the combined T node representations h global (t), t∈{1,2,…,t,…T}; the server represents the node h based on T combinations global (t) Perform subsequent calculations to extract graph feature information across multiple sources; the global server uses a deep neural network, i.e., nonlinear convolution calculation, to generate a graph-level representation Z of T combined node representations global ; The nonlinear convolution calculation process is shown in the following formula: H global (t) = σ(W l-1 ·σ(…σ(W 0 ·h global (t)+b 0 ))) Among them, σ is the activation function, W 0 , W 1 , …W l-1 is a trainable parameter, b 0 for deviation; Output matrix H global (t) represents the graph features across multiple sources extracted at timestamp t; H global (t) is input into the average pooling layer to generate a global graph-level representation at timestamp t; this means that the entire graph H is pooled at timestamp t. global (t) is simplified to a vector representation This compact representation captures the essential information in the graph, which facilitates efficient execution of downstream tasks. Will be used for subsequent anomaly detection; As a result, we obtain T graph-level representations Will Input to the classification layer for anomaly detection.
[0018] Preferably, in step 33, a classification task is used to perform anomaly detection, wherein each G t have a label; the model is optimized by minimizing the cross entropy loss, which is defined as follows: Among them, S is the training sample, which is Global composition; y i Represents G t The ground truth labels of Represents its predicted label; C represents the number of classes; θ is the training parameter of the model expressed as θ = {W, b}.
[0019] The beneficial effects of the present invention are:
[0020] While protecting the client data privacy, this solution collaboratively trains a global model that can effectively integrate the time series trading network information scattered on multiple clients and perform anomaly detection. Regarding decentralized multi-source time series trading network anomaly detection, this solution can effectively mine the time series features in the trading network data and protect the client data privacy. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0022] Figure 1 It is a schematic diagram of the privacy protection anomaly detection process of the multi-source time series transaction network of the present invention.
[0023] Figure 2 This is a framework diagram of the industrial Internet of Things time-series transaction network anomaly detection method of the present invention.
[0024] Figure 3 This is a schematic diagram of the node representation combination based on the differential privacy mechanism from local to global in the present invention. DETAILED DESCRIPTION
[0025] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0026] The present invention discloses a method for detecting anomalies in a time series transaction network of an industrial Internet of Things. The method is designed based on a federated graph neural network and aims to overcome the problem that the existing methods do not adequately consider time series characteristics and privacy security when detecting anomalies in a multi-source time series transaction network. The method includes the following steps: Step 1: Each client extracts initial features from the dynamic weighted directed transaction network it holds, including the following steps: Step 11: Use the maximum weight subgraph sampling strategy to reduce the size of the original transaction network and retain most of the features of the graph; Step 12: Model the features of the transaction network edges as a node attribute matrix, use a graph convolutional network to encode the features of the temporal transaction network held by the client, and merge the edge-level information into the node-centric node representation; Step 13: Model the dynamic transaction network as a series of network snapshots based on the timestamp information of the edges; Step 2: Calculate the private features of the time series trading network on the client; Step 3: Calculate the non-private global features on the global server; including the following steps: Step 31: Generate a global node representation based on the privacy enhancement strategy; Step 32: Generate a global graph-level representation; Step 33: Optimize the model by minimizing the cross entropy loss.
[0027] Concept of a timing diagram: A timing diagram is also called a dynamic diagram and can be represented as a series of network snapshots. Each network snapshot G(t t )=(E(t t ),V(t t )) captures the network state at a specific timestamp t. The edge set E(t t ) contains at least one edge, and E(t t ) is represented by the associated vertex set V(t t ). It is worth noting that it is not G d All nodes in appear at timestamp t, since new nodes may appear at a later timestamp t′, and t′>t.
[0028] In the present invention, it is assumed that there are K clients in total, and the dynamic transaction network data held by each client is represented as: G 1 , G 2 , …, G k , …, G K Each client has its own local graph representation learning model f k(·), k∈{1,2,…,k,…,K}. The timing graph data held by client k is G k =(V k ,E k ) is used to represent the k Represents a node set, whose size is n k . E k Represents the connected node v i and v j The set of edges between them. The attributes of the nodes are represented as a matrix X. The graph representation learning model f of the local client k (·) Will use the local time-series transaction network G k Training is performed, which means that the calculations related to the privacy characteristics will be performed on the local client. The global server Server performs non-private feature related calculations and multi-source knowledge fusion. The present invention divides the privacy-preserving multi-source time series transaction network anomaly detection process into two parts: The calculation of privacy characteristics is performed on the local client. The global server combines the output node representations of the graph neural network model of all clients to perform subsequent non-private feature related calculations and multi-source knowledge privacy protection fusion. The schematic diagram of the whole process is as follows Figure 1 shown.
[0029] The framework diagram of the method for detecting abnormality in the industrial Internet of Things time series transaction network of the present invention is as follows: Figure 2 As shown in the figure, (a) the initial features of the time series trading network are extracted on the client; (b) the private features of the time series trading network are calculated on the client; (c) the non-private global features are calculated on the global server.
[0030] Step 1: Initial feature extraction of client-side time series trading network
[0031] The transaction network held by the local client is a dynamic weighted directed graph. In this module, each client first extracts the initial features of the dynamic weighted directed transaction network it holds. The process includes subgraph sampling to reduce the size of the original transaction network; modeling the edge features as node attribute information; and then, based on the timestamp information of the edges, modeling the dynamic transaction network as a series of network snapshots.
[0032] Step 11: Sub-image sampling
[0033] The original transaction network is usually large in scale. When a full year of transaction data is taken into account, the scale of the network will become astronomical. To process such a large data set, the present invention uses the maximum weight subgraph sampling strategy to select the p most active edges in the transaction network to sample the original data and obtain its subgraph. Subgraph sampling not only reduces the requirements for computing power and computing time, but also retains most of the features of the graph.
[0034] Step 12: Modeling edge features
[0035] Each edge in the trading network contains information about the transaction volume and transaction flow direction. According to existing research, the present invention models the transaction volume and transaction flow direction information by converting edge features into an attribute matrix X associated with a node. The attribute matrix X describes the features of seven dimensions associated with a given node: out-degree, in-degree, degree, normalized transaction volume, 1 / out-degree, 1 / in-degree, and 1 / degree. Among them, degree represents the transaction volume between a given node and its neighbors in the trading network. Therefore, the present invention models the edge features as a node attribute matrix X∈R n×7 , where n is the number of nodes. Based on this modeling approach, a graph convolutional network can be used to encode the features of the temporal transaction network held by the client, and the edge-level information can be merged into the node-centric node representation.
[0036] Step 13: Network snapshot extraction
[0037] Taking into account the temporal characteristics of the transaction network, the present invention extracts network snapshots based on the timestamp information of the transaction. These snapshots capture the network state information at a specific moment, enabling the model to integrate the time evolution of the network into the low-dimensional representation of the node. Given a dynamic transaction network G held by client k d , the obtained network snapshot can be expressed as The relationship between two adjacent moments t′ and t is t′=t+Δt, where Δt is the time window. The choice of Δt can vary according to the requirements of different analysis tasks. For the transaction network held by client k, this model uses a graph convolutional network to obtain a low-dimensional representation of the nodes of its T network snapshots.
[0038] Step 2: Calculate the private features of the time series trading network on the client
[0039] In order to perform anomaly detection, the present invention will use a graph neural network to encode the information of T network snapshots on the client to generate node embeddings. Specifically, for the t-th network snapshot of the k-th client, the present invention uses an aggregation operation to generate node embeddings for n nodes. The aggregation operation effectively integrates the neighbor information of a node into the embedding of the current node. The aggregation operation process is as follows:
[0040] Among them, the function AGG(·) represents the aggregation operation. l represents the lth graph neural network layer. and Represents the node embeddings of node u and node v from the l-1th graph neural network layer. represents the node embedding of node v in the lth graph neural network layer. CONCAT(·) connects the node embedding of the neighbor to the node embedding of the current node to update the node embedding of the current node. l represents the trainable model parameters, σ represents the activation function, and N(v) represents the neighbor nodes of node v.
[0041] In the trading network, different neighbor nodes have different influences on the current node. Therefore, the present invention uses the attention mechanism to aggregate the information of neighboring nodes. i , its one-hop neighbor is represented by N(v i ), where v j ∈N(v i ). According to v i and its neighbors N(v i ) features to calculate the weight of influence. The calculation formula is as follows:
[0042] Here, h i and h j Respectively represent the node v i and v j A low-dimensional representation of , W represents the parameter matrix, represents the attention parameter matrix. The symbol ·T represents the transposition operation, and || represents the concatenation operation.
[0043] Afterwards, the influence weight coefficient e is calculated based on the softmax function. ij Convert to [0,1], that is
[0044] Based on the multi-head attention mechanism and the converted attention coefficient, the node v can be generated i The low-dimensional representation of is shown in the formula:
[0045] || indicates a connection operation. represents the normalized attention coefficient obtained by the mth attention. j Represents node v j A low-dimensional representation of W. m Represents the training parameters of the m-th attention.
[0046] At this point, the low-dimensional representation matrix of T nodes corresponding to the T network snapshots on the k-th client can be obtained.
[0047] Step 3: Calculate the non-private global features on the global server
[0048] Step 31, generate global node representation based on privacy enhancement strategy; in the above feature processing process, T node representation matrices corresponding to T network snapshots on each client are obtained. In order to capture graph feature information across multiple sources from all clients, the global server will combine the T node representation matrices held by different clients to generate a global initial node representation matrix. The server will combine the T node representation matrices according to the timestamp information t of the network snapshots held by all clients.
[0049] exist Figure 3 There are k clients in the diagram, each holding its own data. Client 1 has 4 network snapshots, and client 2 and client k each have 3 network snapshots. The node embeddings from different clients will be combined according to their corresponding timestamp information. This means that the t-th network snapshots from all clients will be merged. At timestamp t 1 In the network snapshot, only client 1 has the node representation information of the network snapshot. Therefore, when the server performs the combine operation, it will use the blank node representation to fill in the node representations of client 2 and client k at this timestamp. The filled blank node representation is displayed in gray.
[0050] The whole combination process can be expressed as:
[0051] The function COMBINE(·) is used to combine the node representations from all clients to generate a global initial node representation of timestamp t. This helps the global server to capture transaction feature knowledge across multiple sources using a deep neural network model.
[0052] If all clients directly send their corresponding local node embeddings to the global server to generate the global initial node embedding, this may expose the privacy of client data. Inspired by the related research on Gaussian differential privacy, the present invention will use Gaussian differential privacy in this combination process to protect the privacy of client data.
[0053] Based on the Gaussian differential privacy mechanism, the nodes on the client are embedded in h k Convert to in n is the noise vector. The global server will combine the transformed local node embeddings from all clients Generate the combined global initial node embedding to extract features of cross-source time series transaction information later. Gaussian differential privacy can protect data privacy on the client when performing the COMBINE(·) operation. In practical applications, the COMBINE(·) function can be a MEAN function or a weighted function.
[0054] When performing the combining operation, the weighting function uses the weight parameter w i , i∈{1,2,…,k,…,K} to balance the node embedding of each client. The weighted function process is shown in the following formula: h global (t) is the global initial node embedding at timestamp t, which is input into the deep neural network model for subsequent calculation of non-private features.
[0055] Step 32: Generate a global graph-level representation. In the above process, the server combines the node representations of the T network snapshots of each client to obtain the combined T node representations h global (t), t∈{1,2,…,t,…T}. Next, the server will represent the node h based on T combinations global (t) Perform subsequent calculations to extract graph feature information across multiple sources. The global server uses a deep neural network (i.e., nonlinear convolution calculation) to generate a graph-level representation Z of T combined node representations. global The nonlinear convolution calculation process is shown in the following formula: H global (t) = σ(W l-1 ·σ(…σ(W 0 ·h global (t)+b 0 )))
[0056] Among them, σ is the activation function, W 0 , W 1 , …W l-1 is a trainable parameter, b 0 For deviation.
[0057] Output matrix H global (t) represents the graph features across multiple sources extracted at timestamp t. Next, H global (t) is input into the average pooling layer to generate a global graph-level representation at timestamp t. This means that the entire graph H is pooled at timestamp t. global (t) is simplified to a vector representation This compact representation captures the essential information in the graph, which facilitates the efficient execution of downstream tasks. It will be used for subsequent anomaly detection.
[0058] After the above processing, we obtain T graph-level representations. Finally, Input to the classification layer for anomaly detection.
[0059] Step 33: Optimize the model by minimizing the cross entropy loss. This study uses classification tasks for anomaly detection, where each G t There is a label. The present invention optimizes the model by minimizing the cross entropy loss, which is defined as follows:
[0060] Among them, S is the training sample, which is Global composition. i Represents G t The ground truth labels of represents its predicted label. C represents the number of classes. θ is the training parameter of the model represented as θ = {W, b}.
[0061] It should be noted that the parts not described in detail in the above embodiments are all prior art.
[0062] The above description is only a preferred embodiment of the present invention and does not constitute any form of limitation to the present invention. Although the present invention has been disclosed as a preferred embodiment as above, it is not intended to limit the present invention. Any technician familiar with the profession can make some changes or modifications to equivalent embodiments of equivalent changes using the technical contents disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention should be covered within the protection scope of the present invention.
Claims
1. A method for detecting anomalies in an industrial Internet of Things time series transaction network, characterized in that: The following steps are involved: Step 1: Each client extracts initial features from the dynamic weighted directed transaction network it holds, including the following steps: Step 11: Use the maximum weight subgraph sampling strategy to reduce the size of the original transaction network and retain most of the features of the graph; Step 12: Model the features of the transaction network edges as a node attribute matrix, use a graph convolutional network to encode the features of the temporal transaction network held by the client, and merge the edge-level information into the node-centric node representation; Step 13: Model the dynamic transaction network as a series of network snapshots based on the timestamp information of the edges; Step 2: Calculate the private features of the time series trading network on the client; Step 3: Calculate the non-private global features on the global server; including the following steps: Step 31: Generate a global node representation based on the privacy enhancement strategy; Step 32: Generate a global graph-level representation; Step 33: Optimize the model by minimizing the cross entropy loss.
2. According to claim 1, the method for detecting anomalies in an industrial Internet of Things time series transaction network is characterized in that: In step 11, the p most active edges in the transaction network are selected to sample the original data to obtain its subgraph; in step 12, each edge in the transaction network contains transaction volume and transaction flow direction information, and the edge features are converted into an attribute matrix X associated with the node to achieve modeling of the transaction volume and transaction flow direction information; the attribute matrix X describes the features of seven dimensions related to a given node: out-degree, in-degree, degree, normalized transaction volume, 1 / out-degree, 1 / in-degree and 1 / degree; wherein the degree represents the transaction volume between a given node and its neighbors in the transaction network; the edge features are modeled as a node attribute matrix X∈R n×7 , where n is the number of nodes.
3. According to claim 2, the method for detecting anomalies in an industrial Internet of Things time series transaction network is characterized in that: The network snapshot in step 13 captures the network state information at a specific moment, enabling the model to integrate the time evolution of the network into the low-dimensional representation of the nodes; given the dynamic transaction network G held by client k d , the obtained network snapshot can be expressed as The relationship between two adjacent moments t′ and t is t′=t+Δt, where Δt is the time window. The choice of Δt can vary according to the requirements of different analysis tasks. For the transaction network held by client k, this model uses a graph convolutional network to obtain a low-dimensional representation of the nodes of its T network snapshots.
4. The method for detecting anomalies in an industrial Internet of Things time series transaction network according to claim 1 is characterized in that: In step 2, a graph neural network is used to encode the information of T network snapshots on the client to generate node embeddings; for the t-th network snapshot of the k-th client, an aggregation operation is used to generate node embeddings of n nodes, and the aggregation operation effectively integrates the neighbor information of the node into the embedding of the current node; Use attention mechanism to aggregate information of neighboring nodes.
5. The method for detecting anomalies in an industrial Internet of Things time series transaction network according to claim 4 is characterized in that: The polymerization operation process is as follows: Among them, the function AGG(·) represents the aggregation operation; l represents the lth graph neural network layer; and Represents the node embeddings of node u and node v from the l-1th graph neural network layer; represents the node embedding of node v in the lth graph neural network layer; CONCAT(·) connects the node embedding of the neighbor to the node embedding of the current node to update the node embedding of the current node; W l represents the trainable model parameters, σ represents the activation function; N(v) represents the neighbor nodes of node v.
6. The method for detecting anomalies in an industrial Internet of Things time series transaction network according to claim 4 is characterized in that: The node v i The one-hop neighbor of i ), where v j ∈N(v i ); According to v i and its neighbors N(v i ) features to calculate the weight of influence; The calculation formula is as follows: h i and h j Respectively represent the node v i and v j A low-dimensional representation of , W represents the parameter matrix, represents the attention parameter matrix; the symbol ·T represents the transposition operation, and || represents the connection operation; Based on the softmax function, the influence weight coefficient e is calculated. ij Convert to [0,1], that is Based on the multi-head attention mechanism and the converted attention coefficient, generate node v i The low-dimensional representation of is shown in the formula: || indicates a connection operation. represents the normalized attention coefficient obtained by the mth attention; h j Represents node v j Low-dimensional representation of W m Represents the training parameters of the m-th attention.
7. The method for detecting anomalies in an industrial Internet of Things time series transaction network according to claim 1 is characterized in that: In step 31, the global server will combine the T node representation matrices held by different clients to generate a global initial node representation matrix; the server will combine the T node representation matrices according to the timestamp information t of the network snapshots held by all clients; the entire combination process can be expressed as: The function COMBINE(·) is used to combine the node representations from all clients to generate a global initial node representation with timestamp t.
8. The method for detecting anomalies in an industrial Internet of Things time series transaction network according to claim 7 is characterized in that: In this combined process, Gaussian differential privacy is used to protect the privacy of client data. The nodes on the client are embedded in h based on the Gaussian differential privacy mechanism. k Convert to in n is the noise vector; the global server will combine the transformed local node embeddings from all clients Generate the combined global initial node embedding to extract the features of cross-source time series transaction information later; Gaussian differential privacy can protect the data privacy on the client when performing the COMBINE(·) operation; when performing the combination operation, the weighting function uses the weight parameter w i , i∈{1,2,…,k,…,K} to balance the node embedding of each client; The weighting function process is shown in the following formula: h global (t) is the global initial node embedding at timestamp t, which is input into the deep neural network model for subsequent calculation of non-private features.
9. The method for detecting anomalies in an industrial Internet of Things time series transaction network according to claim 1, characterized in that: In step 32, the server combines the node representations of the T network snapshots of each client to obtain the combined T node representations h global (t), t∈{1,2,…,t,…T}; the server represents the node h based on T combinations global (t) Perform subsequent calculations to extract graph feature information across multiple sources; the global server uses a deep neural network, i.e., nonlinear convolution calculation, to generate a graph-level representation Z of T combined node representations global ; The nonlinear convolution calculation process is shown in the following formula: H global (t)=σ(W l-1 ·σ(…σ(W0·h global (t)+b0))) Where σ is the activation function, W0, W1, …W l-1 is a trainable parameter, b0 is a bias; Output matrix H global (t) represents the graph features across multiple sources extracted at timestamp t; H global (t) is input into the average pooling layer to generate a global graph-level representation at timestamp t; this means that the entire graph H is pooled at timestamp t. global (t) is simplified to a vector representation This compact representation captures the essential information in the graph, which facilitates efficient execution of downstream tasks. Will be used for subsequent anomaly detection; As a result, we obtain T graph-level representations Will Input to the classification layer for anomaly detection.
10. The method for detecting anomalies in an industrial Internet of Things time series transaction network according to claim 1, characterized in that: In step 33, a classification task is used to perform anomaly detection, wherein each G t have a label; the model is optimized by minimizing the cross entropy loss, which is defined as follows: Among them, S is the training sample, which is Global composition; y i Represents G t The ground truth labels of Represents its predicted label; C represents the number of classes; θ is the training parameter of the model expressed as θ = {W, b}.
