arXiv:2609.02965cs.SISep 2026

Manuscript Offprint

arXiv:2609.02965

Statistical Feature Augmentation for Anomaly Detection in Dynamic Graphs

Philipp Schlinge, Jean-Luc Schnipper, Martin Atzmueller

Philipp Schlinge¹, Jean-Luc Schnipper¹, and Martin Atzmueller¹,²

¹ Osnabrück University, 49074 Osnabrueck, Germany, {philipp.schlinge,jschnipper}@uos.de,

² German Research Centre for Artificial Intelligence (DFKI), 49084 Osnabrück, Germany martin.atzmueller@uos.de

Abstract. Dynamic networks are being applied in many domains, from social media to logistics systems, each with their own set of special characteristics. A model employed on this type of data must capture the duality between temporal/structural and feature-based information. Yet state-of-the-art deep learning models often struggle to learn especially short-term behavioral interaction signals, such as sender intensity or interaction inertia, directly from raw event streams. To address this gap, we propose a statistical feature augmentation method that explicitly encodes behavioral interaction statistics into the input feature space. We evaluate our proposed method on an anomaly detection task across three real-world datasets (Reddit, Wikipedia, MOOC) and seven models spanning both continuous-time and discrete-time architectures. As a baseline, we apply the same models trained on the original embeddings. Our results show, that augmentation consistently improves detection performance. Beyond performance, the enriched input enables fine-grained post-hoc analysis of behavioral importance, since each statistic occupies a dedicated input dimension. In particular, this work showcases a promising approach for merging classical network analysis with deep learning. Code is available at: https://github.com/uos-sis/base-stat-aug-ad

Keywords: Dynamic Networks, Anomaly Detection, Augmentation

1 Introduction

Deep learning models for dynamic graphs can be categorized into discrete-time models leveraging static graph learning frameworks like GraphSAGE [15] and continuous-time models that focus on sequence learning designs, for example DyGFormer [31]. The former employs discrete snapshots aggregated over a fixed time interval as the data format, while the latter directly operates on the continuous event stream. These representations impose different structural and temporal constraints on learning, motivating distinct architectural choices such as graph convolution, memory modules, or temporal neighborhood sampling. Each of these choices targets a specific subcategory of interaction patterns, capturing the behavior within those, e.g., when considering a directed dynamic graph and the respective interactions between senders and receivers of events.

Despite this diversity, both model families struggle to reliably learn short-term behavioral characteristics such as sender intensity or interaction inertia. Recent proposals to encode comparable interaction patterns focus on complex motif learning strategies deeply embedded in the architecture, e.g., through random walks or other discovery mechanisms [18]. In network analysis, heavily structured models like relational event models (REMs) [6] explicitly exploit such statistics, but are restricted to transitive feature combinations and relatively simple models. Recent extensions, e.g., STREAM [12] and DREAM [11] aim to integrate deep learning into the REM framework, but remain restricted by the model structure.

In this paper, we address this gap between deep learning and explicit statistical modeling by augmenting the input feature space with temporally-decayed behavioral statistics from classical social network analysis. This yields short-term information directly available to arbitrary deep learning architectures and creates dedicated input dimensions that can be propagated in post-hoc analysis. To evaluate our proposed approach, we choose anomaly detection, motivated by the assumption that short-term interaction characteristics carry high discriminative information in this setting. We cover a broad range of models spanning continuous-time and discrete-time architectures. With individual input dimensions for statistics, our setting facilitates the use of general post-hoc explainability methods such as SHAP [20] to quantify the influence of individual behavior characteristics on model decisions. This also addresses the often under-explored task of explaining the characteristics of predicted anomalies.

As an example, let us consider a discussion forum in the context of a Massive Open Online Course (MOOC): If a student uu typically posts one question per day to a forum but if at time tt she suddenly sends 20 messages to student vv within a span of two minutes up to t′t', then this can indicate anomalous interaction behavior. Here, discrete-time models might aggregate these events into a single snapshot, in consequence losing the burstiness of the interaction. Continuous-time models, however, are able to capture the specific timestamps but rely on learned embeddings to infer that this burst is anomalous, which often requires a large set of training data to recognize such short-term patterns. In our example, we can observe deviations from the user's historical interaction intensity, with a sudden change in rate, as well as the inertia considering respective edges (u,v)(u, v) during the time interval [t,t′][t, t']. Without augmenting the input by explicit features, the model must thus implicitly learn these temporal statistics. In addition, during post-hoc analysis, a method like SHAP can directly attribute the anomaly score to the high value of suitable features, for example, intensity, and can thus provide immediate interpretability in contrast to only considering raw embeddings.

Our contributions are summarized as follows: (1) We propose and formalize statistical feature augmentation approach for anomaly detection in dynamic graphs. (2) We show that our proposed augmentation approach increases anomaly detection performance, often by a considerable margin. (3) We demonstrate that moving classic interaction statistics into the input feature space, substantially improves explainability of the studied anomaly-detection models.

References (30)