arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.11049cs.LG
收藏

字符串数据异常检测算法的比较

Comparison of Outlier Detection Algorithms on String Data

Philip Maus

AI总结:

本文比较了两种字符串异常检测算法,一种基于改进的本地异常因子算法,另一种基于层次左正则表达式学习者,通过实验展示两者在不同数据结构下的异常检测效果。

摘要:

异常检测是机器学习中一个研究充分且关键的问题。然而,关于字符串数据异常检测的研究较少,因为大多数文献专注于数值数据的异常检测。一个稳健的字符串数据异常检测算法可以协助进行数据清理或系统日志文件中的异常检测。在本论文中,我们比较了两种字符串异常检测算法。首先,我们介绍了一种改进的本地异常因子算法,该算法通过Levenshtein度量计算数据集的密度来检测字符串数据的异常。我们提出了一种不同加权的Levenshtein度量,考虑了层次字符类别,可以用于调整算法以适应特定的字符串数据集。其次,我们介绍了一种基于层次左正则表达式学习者的新型异常检测算法,该算法推断出预期数据的正则表达式。通过各种数据集和参数,我们实验性地证明了两种算法都能在概念上找到字符串数据中的异常。我们证明,基于正则表达式的算法在预期值具有明显结构且与异常结构足够不同的情况下,特别擅长找到异常。相比之下,本地异常因子算法在其编辑距离与预期数据的编辑距离足够不同的情况下,最能发现异常。

英文摘要:

Outlier detection is a well-researched and crucial problem in machine learning. However, there is little research on string data outlier detection, as most literature focuses on outlier detection of numerical data. A robust string data outlier detection algorithm could assist with data cleaning or anomaly detection in system log files. In this thesis, we compare two string outlier detection algorithms. Firstly, we introduce a variant of the well-known local outlier factor algorithm, which we tailor to detect outliers on string data using the Levenshtein measure to calculate the density of the dataset. We present a differently weighted Levenshtein measure, which considers hierarchical character classes and can be used to tune the algorithm to a specific string dataset. Secondly, we introduce a new kind of outlier detection algorithm based on the hierarchical left regular expression learner, which infers a regular expression for the expected data. Using various datasets and parameters, we experimentally show that both algorithms can conceptually find outliers in string data. We show that the regular expression-based algorithm is especially good at finding outliers if the expected values have a distinct structure that is sufficiently different from the structure of the outliers. In contrast, the local outlier factor algorithms are best at finding outliers if their edit distance to the expected data is sufficiently distinct from the edit distance between the expected data.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑