Anomaly Detection in Multiplex Dynamic Networks: from Blockchain Security to Brain Disease Prediction

Ali Behrouz, Margo SeltzerTGL @ NeurIPS 2022

Abstract

The problem of identifying anomalies in dynamic networks is a fundamental task with a wide range of applications. However, it raises critical challenges due to the complex nature of anomalies, lack of ground truth knowledge, and complex and dynamic interactions in the network. Most existing approaches usually study networks with a single type of connection between vertices, while in many applications interactions between objects vary, yielding multiplex networks. We propose ANOMULY, a general, unsupervised edge anomaly detection framework for multiplex dynamic networks. In each relation type, ANOMULY sees node embeddings at different GNN layers as hierarchical node states and employs a GRU cell to capture temporal properties of the network and update node embeddings over time. We then add an attention mechanism that incorporates information across different types of relations. Our case study on brain networks shows how this approach could be employed as a new tool to understand abnormal brain activity that might reveal a brain disease or disorder. Extensive experiments on nine real-world datasets demonstrate that ANOMULY achieves state-of-the-art performance.

Introduction

Most real-world systems are not simple, static graphs; they are multiplex dynamic networks. Consider a social network where users interact via follows, retweets, and direct messages—each representing a distinct layer of interaction that evolves over time. Identifying anomalies in such systems is critical for security, finance, and healthcare, yet existing methods face significant hurdles.

Traditional anomaly detection often suffers from inflexibility, relying on hand-crafted features that fail to generalize across domains. Furthermore, many models exhibit layer blindness, treating all connection types with equal weight and ignoring the varying noise levels across layers. Finally, there is a pervasive node-centric bias; while most research focuses on anomalous nodes, many critical events—such as fraudulent transactions or diseased neural connections—occur at the edge level. This paper introduces ANOMULY to address these gaps through an unsupervised, edge-focused framework.

Proposed Method: The ANOMULY Framework

ANOMULY is designed to operate without labeled data, making it highly applicable to real-world scenarios where ground truth anomalies are rare. The architecture is built on four pillars:

  1. Snapshot Encoder: The framework decomposes the dynamic network into discrete time-based snapshots ($G_t$). It utilizes Graph Neural Networks (GNNs) to capture the local structural properties of each layer.
  2. Temporal Evolution: To model the dynamic nature of the network, the system employs Gated Recurrent Units (GRUs). These units update node embeddings over time, allowing the model to maintain a historical context and identify edges that deviate from established temporal patterns.
  3. Layer-Aware Attention: Recognizing that not all relationship types are equally informative, ANOMULY incorporates an attention mechanism. This allows the model to dynamically weigh the importance of different layers for each node, effectively filtering out noise from irrelevant layers.
  4. Margin-Based Loss: Training is conducted via negative sampling. The model is trained to assign higher anomaly scores to "corrupted" edges (where a node has been replaced) compared to real edges, enabling unsupervised learning.
The ANOMULY architecture, showing the snapshot encoder with GNN layers, embedding updates, and the layer-aware attention mechanism.

Experimental Setup

The researchers evaluated ANOMULY across nine diverse real-world datasets to test its generalizability:

  • Social & Politics: RM (mobile proximity) and DKPol (Twitter interactions).
  • E-commerce: Amazon co-purchasing networks.
  • Blockchain: Ethereum and Ripple transaction networks.
  • Academic: DBLP co-authorship networks.
  • Neuroscience: An ADHD-Brain dataset derived from fMRI scans of 40 individuals.
  • Single-Layer Benchmarks: Bitcoin, Amazon-S, and DBLP-S were included to demonstrate the model's performance on non-multiplex data.

Key Results and Discussion

ANOMULY consistently achieved state-of-the-art performance, outperforming established baselines like NetWalk and AddGraph in terms of AUC (Area Under the Curve). A key finding was the "Multiplex Advantage": modeling systems as multiplex networks rather than flattening them into single layers resulted in an average performance boost of 8.18%.

Event Detection and Interpretability

In the Ethereum network, the model's anomaly scores showed a high correlation with significant real-world market events. As shown in the figure below, peaks in the average anomaly score aligned with major cryptocurrency milestones and regulatory shifts.

Average anomaly scores in the Ethereum network over time, showing peaks corresponding to major real-world cryptocurrency events.

Beyond blockchain, the model demonstrated significant potential in healthcare. In a case study on brain networks, ANOMULY identified abnormal functional correlations between the frontal and occipital lobes in ADHD patients. These findings align with existing neurological research, suggesting that the framework could serve as a diagnostic tool for identifying brain disorders through connectivity patterns.

Conclusion

ANOMULY represents a significant step forward in unsupervised anomaly detection for complex networks. By integrating hierarchical node states, temporal modeling via GRUs, and a layer-aware attention mechanism, it successfully navigates the complexities of multiplex dynamic data. While future work may explore non-uniform snapshot weighting and further clinical validation, the current framework provides a robust, general-purpose solution for detecting edge-level anomalies across a wide array of domains.

Summary updated

BibTeX
@inproceedings{behrouz2022anomaly,
  author = {Ali Behrouz and Margo Seltzer},
  title = {{Anomaly Detection in Multiplex Dynamic Networks: from Blockchain Security to Brain Disease Prediction}},
  booktitle = {TGL @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=2egL_e5R2o},
}
Figure