An Investigation on Online Machine Learning for Anomaly Detection in Time Series Data

Sebastian Niklas Wette

PDF

Abstract

Concept drift in time series data poses a problem for many machine learning algorithms. Underlying shifts in the statistical properties of data lead to a decline in the performance of batch-trained models. Anomaly detection algorithms working with forecasts on the future behavior of a system suffer from these effects. Thus, adaption to concept drift is a fundamental challenge for anomaly detection systems like this, especially in quickly evolving environments. Instead of retraining models from scratch regularly, models can continuously learn and update themselves as new data arrives, a strategy known as online learning. This thesis investigates the efficacy of online machine learning in prediction-based anomaly detection for time series data under concept drift, focusing on accuracy and computational efficiency compared to batch-trained methods. The work presents a proof of concept for prediction-based anomaly detection using online learning. Furthermore, the research compares the performance of the presented approach with the well-known batch-trained models SARIMA and Prophet, using real-world data from Deutsche Telekom’s IP Backbone, focussing on accuracy and efficiency. Resulting measurements indicate that the online learning approach is more accurate in detecting anomalies when concept drift exists in the data. It exhibits superior adaptability to concept drift, whereas batch-trained models fail to produce adequate forecasts after a changepoint. However, batch-trained models perform better in static data environments. Lower CPU and memory usage and faster runtimes indicate the superior computational efficiency of the online learning method. Finally, this study confirms the superiority of online learning for prediction-based anomaly detection under concept drift. It suggests potential applications in real-time systems and dynamic data environments. There are also some limitations to this approach that motivate future work. Forthcoming research should explore more diverse online learning algorithms for different use cases and address the challenges of online MLOps, namely hyperparameter tuning. Additionally, distinguishing between anomalies and concept drift remains a critical challenge, suggesting avenues for further exploration in adaptive learning strategies.

Topics
Online ML Anomaly Detection Time Series Concept Drift
Research Methods
systematic literature review benchmarking

Publication Data

Author: Sebastian Niklas Wette
Thesis Type: Bachelor's Thesis
Pages: 60
Language: English
About the Author:
Major / Study Program: Artificial Intelligence and Machine Learning
Primary Field of Study: Computer Science
Additional Study Interests: Web Development
License: CC BY-NC 4.0
Date of Publication: 2024-09-16
Status: Available
Date of Grading: 2024-03-31
Institution: Darmstadt University of Applied Sciences (Darmstadt, Germany)
Publication ID: 0xC2DdBdD2b9A1A317f6976005ec62A61149F1B36c
The publication ID is the address of the smart contract that recorded this publication on the bloxberg blockchain (how the platform used to work). The link leads to an external website that may become unavailable.

Endorsements

# Name Details Endorsement
1
Dr. Florian Heinrichs
Examiner
Professor in Data Science and Statistics
2024-09-15

Blockchain Record

The transactions of the smart contract that recorded this publication on the bloxberg blockchain while the platform was in operation (how the platform used to work). Snapshot of the public block explorer taken on 12 October 2026.

# Event Date (UTC) Block Transaction
1 Publication created 2024-09-09 05:28 26427644 0x875b0e5e…91632189
2 Endorsement 2024-09-15 16:17 26510083 0x8fdbe49c…3d9c2837
3 Endorser role updated 2024-09-16 15:44 26522406 0x32c74968…f758b0f3
4 Publication published 2024-09-16 15:44 26522410 0x037cc5dc…f45f6420

Thesis Documents and Supplemental Materials

# Description Type Date
1 Thesis Document (with title page) PDF (2.87 MB) 2024-09-16 Download
2 Original Document (without title page, signatures removed) PDF (2.77 MB) 2024-09-16 Download