[Paper Review] Extending Dynamic Bayesian Networks for Anomaly Detection in Complex Logs
This paper proposes an extended Dynamic Bayesian Network (eDBN) model that enhances anomaly detection in complex business process logs by incorporating functional dependencies and handling unseen values, enabling accurate scoring of anomalous traces even with novel attribute combinations. The method outperforms existing techniques, especially in multi-process log files, with an AUC of 0.84 on BPIC data and superior precision/recall in combined datasets.
Checking various log files from different processes can be a tedious task as these logs contain lots of events, each with a (possibly large) number of attributes. We developed a way to automatically model log files and detect outlier traces in the data. For that we extend Dynamic Bayesian Networks to model the normal behavior found in log files. We introduce a new algorithm that is able to learn a model of a log file starting from the data itself. The model is capable of scoring traces even when new values or new combinations of values appear in the log file.
Motivation & Objective
- To address the limitations of standard Dynamic Bayesian Networks in modeling complex, multi-attribute business process logs with unseen values and implicit dependencies.
- To develop a scalable, data-driven method for learning normal behavior patterns from log files without requiring prior process models.
- To enable anomaly detection that scores entire traces and decomposes scores to identify root causes of deviations.
- To improve robustness in real-world logs containing multiple processes and diverse attribute combinations.
- To outperform existing anomaly detection methods in terms of AUC and precision/recall, especially when training and test data are not perfectly separated.
Proposed method
- Extends Dynamic Bayesian Networks with functional dependencies (FDs) to explicitly model deterministic relationships between attributes in log events.
- Introduces a novel learning algorithm that automatically discovers structure and parameters from raw log data, including unseen values.
- Uses a likelihood-based scoring mechanism that compares ongoing trace likelihood against baseline scores to detect anomalies.
- Applies a decomposition technique to attribute-level scores, enabling root cause identification for detected anomalies.
- Employs a two-stage evaluation: first on synthetic anomalies in isolated datasets, then on combined data with multiple processes to test generalization.
- Uses ELKI tool for benchmarking against 12 other anomaly detection methods, including LOF, ALOCI, and SOD, under identical conditions.
Experimental results
Research questions
- RQ1Can an extended DBN model effectively learn normal behavior from complex, multi-attribute business process logs without prior process models?
- RQ2How well does the model handle unseen values and novel attribute combinations during anomaly detection?
- RQ3To what extent does incorporating functional dependencies improve detection performance compared to standard DBNs?
- RQ4How does the method perform when multiple business processes are present in a single log file?
- RQ5How does the proposed method compare in AUC and precision/recall to state-of-the-art anomaly detection techniques on real-world log data?
Key findings
- The eDBN model achieved an AUC of 0.84 on the BPIC2015 dataset, outperforming most baseline methods, including LOF (AUC 0.55) and SOD (AUC 0.60).
- ALOCI achieved a higher AUC (0.86) on BPIC data, but this was due to using the same dataset for training and testing, highlighting the robustness of the proposed method under realistic conditions.
- The method significantly outperformed the Likelihood Graph approach on the combined log file containing multiple municipalities, demonstrating superior generalization across diverse processes.
- The precision/recall curves showed consistent performance across all five BPIC datasets, with the eDBN maintaining high F1 scores even at high anomaly rates (up to 51.8% in test sets).
- The model successfully decomposed anomaly scores to identify root causes, providing actionable insights into which attributes or attribute combinations triggered the anomaly.
- The algorithm was able to learn models from raw log data without requiring pre-labeled traces or process models, enabling end-to-end automation of anomaly detection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.