Anomaly Detection Using the Knowledge-based Temporal Abstraction Method

Asaf ShabtaiarXiv 2016 · arXiv

Abstract

This paper proposes a framework that detects anomalies by learning the "normal" rhythm of a system rather than searching for specific "bad" signatures. By combining Knowledge-Based Temporal Abstraction (KBTA) with interval-based pattern mining, the authors identify abnormal periods as those where the usual, frequent patterns of behavior significantly disappear. Evaluation on real-world server performance data demonstrates the framework's ability to detect deviations from established behavioral motifs without requiring predefined attack signatures.

Introduction

As data storage and computational power grow, organizations are increasingly overwhelmed by granular time-oriented data, such as system logs and sensor readings. Detecting anomalies in this data is crucial for security and system health, but faces two major hurdles: the sheer volume of raw data makes manual or direct algorithmic analysis difficult, and traditional signature-based systems cannot account for "unknown unknowns"—malicious behaviors that have not yet been defined.

This research addresses these challenges by shifting the focus from defining "abnormal" to summarizing raw data into high-level concepts and mining for "normal" behavior. An anomaly is then defined as a period where the system stops acting like its usual self.

Methodology

The proposed framework integrates two sophisticated techniques to transform raw data into actionable insights:

1. Knowledge-Based Temporal Abstraction (KBTA)

KBTA uses a domain-specific ontology to convert raw numerical data points into meaningful intervals. Instead of analyzing thousands of discrete data points (e.g., "CPU usage: 95%"), KBTA abstracts these into single intervals labeled with states like CPU_Usage: HIGH. It can also detect "gradients" (e.g., Increasing_Failures) and "rates."

2. Modified Interval Mining Algorithm

Based on the Kam and Fu algorithm, this component mines for frequent temporal patterns across intervals (e.g., "Pattern A happens before Pattern B"). The authors enhanced this by adding horizontal support (frequency for a single subject), temporal coverage (total duration), and discretization of event durations (Short, Medium, Long).

Figure 3: The data pipeline from the original database to the generation of candidate temporal patterns.

3. Skyline Abstraction

This final detection layer counts how many "normal" patterns are active at any given time. If the count drops below a specific threshold (e.g., less than 10% of expected patterns), the period is flagged as "FEW" and treated as a potential anomaly.

Experimental Setup

The researchers evaluated their approach using two weeks of performance metrics (March 20 – April 2, 2011) from a production server at a large company. The first week (weekdays only) served as the training set to mine "normal" patterns, while the second week was used for testing. Metrics tracked included CPU usage, memory availability, network traffic, and paging activity.

Key Results

The algorithm successfully identified 20 patterns of size two and 54 patterns of size three representing normal weekday behavior. An example identified pattern was: "Stable Memory Total" followed by "Very Short High CPU Consumption" occurring during "Decreasing Bytes Received."

In the test set, the "Skyline Abstraction" identified two long intervals (approximately 13 hours each) labeled as "FEW." Manual inspection confirmed these periods correlated with unusual system behavior: a sustained increase and then decrease in CPU user activity paired with decreasing free memory, deviating significantly from the learned normal weekday cycle.

Discussion and Future Work

The power of this approach lies in the abstraction of raw data into high-level states, which allows the mining algorithm to find stable behavioral "motifs" rather than noisy correlations. However, the system currently relies on a "knowledge engineer" to define initial abstractions and requires manual selection of the normal pattern subset.

Future work will focus on automating the pattern selection process and extending experiments to larger, more diverse datasets to prove the generalizability of the framework across different server environments and longer time periods.

Summary updated

Abstract

The rapid growth in stored time-oriented data necessitates the development of new methods for handling, processing, and interpreting large amounts of temporal data. One important example of such processing is detecting anomalies in time-oriented data. The Knowledge-Based Temporal Abstraction method was previously proposed for intelligent interpretation of temporal data based on predefined domain knowledge. In this study we propose a framework that integrates the KBTA method with a temporal pattern mining process for anomaly detection. According to the proposed method a temporal pattern mining process is applied on a dataset of basic temporal abstraction database in order to extract patterns representing normal behavior. These patterns are then analyzed in order to identify abnormal time periods characterized by a significantly small number of normal patterns. The proposed approach was demonstrated using a dataset collected from a real server.
BibTeX
@misc{shabtai2016anomaly,
  author = {Asaf Shabtai},
  title = {{Anomaly Detection Using the Knowledge-based Temporal Abstraction Method}},
  year = {2016},
  eprint = {1612.04804},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1612.04804},
}
Figure