Home

Awesome

Implementation of Sketch-Based Anomaly Detection in Streaming Graphs paper

Overview

This repository contains an implementation, following River conventions, of the methods Anograph and AnoEdgeGlobal, specifically designed for edge anomaly detection. Methods are described in the paper Sketch-Based Anomaly Detection in Streaming Graphs by BHATIA, Siddharth, WADHWA, Mohit, KAWAGUCHI, Kenji, et al.

Usage

Hcms Class

Higher-order CMS (H-CMS) data structure implementation for anomaly detection.

Initialization

from AnoGraph import Hcms

# Create an instance of Hcms with specified parameters
hcms_instance = Hcms(r=2, b=32, d=None)

Methods

Anograph Class

Anograph class for computing anomaly scores based on matrix density calculations.

Initialization

from AnoGraph import Anograph

# Create an instance of Anograph with specified parameters
anograph_instance = Anograph(time_window=30, edge_threshold=50, rows=2, buckets=32)

Methods

AnoEdgeGlobal Class

Anomaly Detection using Edge Global Density.

Initialization

from AnoGraph import AnoEdgeGlobal

# Create an instance of AnoEdgeGlobal with specified parameters
ano_edge_global_instance = AnoEdgeGlobal(rows=2, buckets=32, decay_factor=0.9)

Methods

Dependencies