Anomaly Detection in Simulator Log Data Using Unsupervised Machine Learning Methods
2026 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE credits
Student thesisAlternative title
Anomalidetektering i Simulatorloggar med Oövervakad Maskininlärning (Swedish)
Abstract [en]
Anomaly detection is an important task in industrial systems where large volumes of log data are generated continuously. In complex simulation environments, such as flight simulator systems, manual inspection of logs is time-consuming and often impractical. This creates a need for automated methods capable of identifying abnormal system behavior without relying on labeled data. This thesis investigates the effectiveness of two unsupervised machine learning methods, Isolation Forest and K-Means Clustering, for detecting anomalies in flight simulatorlog data. The study is based on approximately 3,300 unlabeled log files extracted from a simulation environment used for development and testing of complex systems. The logdata is transformed into numerical features capturing structural and behavioral characteristics such as event frequencies, error counts and log length. Both models are evaluated using a combination of anomaly scoring, distributional analysis and manual expert validation. In addition, a supervised validation experiment using a Support Vector Machine (SVM) with cross-validation is conducted to assess the consistency of the detected anomalies. The results show that both Isolation Forest and K-Means Clustering are capable of identifying meaningful anomalies in the dataset. Isolation Forest achieves higher precision and primarily detects globally rare and structurally deviating observations. K-Means Clustering identifies anomalies based on deviations from cluster structures and recurring system patterns but shows lower precision. The manual evaluation confirms that several detected anomalies correspond to meaningful system issues such as process interruptions and communication failures. The supervised validation showed that the anomalies were difficult to clearly separate from normal behavior, suggesting that the dataset contains varied and overlappinganomaly patterns. Overall, the findings suggest that Isolation Forest was more precise for identifying meaningful anomalies in this dataset, while both methods demonstrated the ability to detect abnormal system behavior in unlabeled industrial log data.
Place, publisher, year, edition, pages
2026. , p. 34
Keywords [en]
Anomaly detection, Unsupervised machine learning, Isolation Forest, K-Means Clustering
National Category
Computer Engineering Artificial Intelligence
Identifiers
URN: urn:nbn:se:liu:diva-224617ISRN: LIU-IDA/LITH-EX-G--26/035--SEOAI: oai:DiVA.org:liu-224617DiVA, id: diva2:2070936
External cooperation
Saab Aeronautics
Subject / course
Computer Engineering
Presentation
2026-06-02, Donald Knuth, Linköping, 11:15 (English)
Supervisors
Examiners
2026-06-122026-06-122026-06-12Bibliographically approved