OW-HNPV: Velocity for Anomaly Detection
- The paper introduces a novel velocity-based TDA method that quantifies the rate at which topological features appear and disappear to enhance anomaly detection.
- It applies overlap weighting to reduce noise and short-lived features, ensuring mathematical stability under perturbations as measured by the 1-Wasserstein distance.
- Empirical evaluations on Ethereum transaction networks show that OW-HNPV achieves up to a 10.4% AUC gain over static TDA summaries for medium-range forecasting.
The Overlap-Weighted Hierarchical Normalized Persistence Velocity (OW-HNPV) is a vectorized, velocity-based topological data analysis (TDA) method tailored for anomaly detection in time-varying networks. Unlike traditional presence-based TDA summaries, OW-HNPV models the rate at which topological features appear and disappear, while applying overlap-based weighting to downweight noise and short-lived structures. The method yields a stable, interpretable summary of evolving network topology and demonstrates enhanced performance for detecting structural anomalies, especially in financial network contexts such as cryptocurrency markets (Khormali, 16 Dec 2025).
1. Mathematical Foundations and Definitions
OW-HNPV operates on a sequence of weighted graphs , representing temporal snapshots of networks (e.g., blockchain transaction graphs). For each , a lower-star filtration is constructed using a node-weight function , from which persistence diagrams are computed in homological dimension . Each encodes the birth and death scales of topological features.
For feature at time , instantaneous persistence is defined as
and velocity is
Empirically, with daily data, finite differences are used:
The filtration parameter range is partitioned into main intervals , which are further subdivided into equal subintervals . Each feature receives an overlap weight for subinterval : Subinterval-wise velocity is then
Averaging yields , which is normalized by the total persistence to produce the OW-HNPV vector:
2. Stability and Theoretical Guarantees
OW-HNPV is provably stable under perturbations in the input data, specifically with respect to the 1-Wasserstein distance on persistence diagrams. For diagrams , with total persistences and OW-HNPV vectors and , the method satisfies: The proof leverages optimal matchings between features, overlap-difference bounds, and the normalization property of total persistence. This ensures that OW-HNPV behaves predictably under both network noise and the naturally fluctuating topology of dynamic systems (Khormali, 16 Dec 2025).
3. Computational Workflow and Algorithm
OW-HNPV consists of the following steps for each graph :
- Compute the node-weighted lower-star filtration; extract persistence diagram .
- Compute total persistence .
- Partition into main intervals and then subdivide each into subintervals.
- For each , calculate subinterval-wise velocity via weighted overlaps .
- Aggregate and average for each main interval.
- Normalize by total persistence: .
- The final output is the -dimensional vector .
Typical recommendations are main intervals and subintervals.
4. Empirical Evaluation in Dynamic Cryptocurrency Networks
OW-HNPV was evaluated on daily Ethereum transaction networks generated from May 2017 to May 2018. Each daily graph comprises the 250 most active addresses, with edge and node weights determined by transaction amounts. The anomaly detection task targets forecasting of large price jump days () up to days ahead.
The method was benchmarked against baseline graph features (degree, closeness, betweenness, clustering coefficient) and multiple TDA vectorizations: velocity-based (HNAV, HWNAV, OW-HNPV) and static (Vector of Averaged Bettis (VAB), persistence landscapes, persistence images). All vectors were standardized to dimension 30.
Performance was assessed using a random forest classifier (500 trees), evaluated via 10-fold cross-validation with 10 repeats, and measured as AUC gain relative to the baseline. The following patterns emerged:
| Forecast Horizon | OW-HNPV AUC Gain | Best Static | Notes |
|---|---|---|---|
| None | All TDA methods struggle | ||
| 4.2% | - | OW-HNPV is stable | |
| 10.4% | VAB~7–8% | Only velocity/vector-based methods perform strongly at |
OW-HNPV exhibited the most robust performance across –7, outperforming or matching static TDA summaries for medium- and long-range forecasting (Khormali, 16 Dec 2025).
5. Methodological Insights and Practical Considerations
Velocity-based topological summaries capture the dynamical aspects of network evolution—specifically, the emergence and disappearance rates of features—yielding increased sensitivity to sudden changes. This property aligns OW-HNPV with medium- to long-term anomaly detection, where abrupt system reconfigurations are statistically meaningful.
Key methodological insights include:
- Overlap weighting ensures noise resilience, automatically downweighting short-lived, potentially spurious features and conferring greater stability with respect to the subinterval parameter .
- Presence-based summaries (e.g., VAB) are less effective for short forecasting horizons ().
- Including topological features from both dimension-0 (components) and dimension-1 (loops) improves predictive performance.
- Relative AUC gains for OW-HNPV over VAB can reach 38% for medium-range tasks; HWNAV achieves up to 100% relative gain for long-range prediction.
Recommended hyperparameters for routine application are , .
6. Relationship to Existing TDA Methods and Applicability
OW-HNPV extends the TDA toolkit beyond static, cumulative summaries by formalizing the temporal “velocity” of topological features, a perspective absent in prior descriptors such as VAB, persistence landscapes, and persistence images. This shift is empirically justified by increased anomaly detection performance in evolving networks, with clear mathematical stability guarantees.
The method is applicable wherever dynamic networks are subject to abrupt structural transitions, particularly in financial, biological, and infrastructure systems where topological change rates are more informative than aggregate presence. The mathematical stability and noise-filtering characteristics of OW-HNPV distinguish it as a robust choice for practitioners aiming to extract predictive temporal topological signatures (Khormali, 16 Dec 2025).