knihuzinker评论 Novelty detecting techniques include methods for detecting anomalous data entries in a dataset. These techniques rely on the assumption that novel data entries are scarce and irregular compared to regular data entries. Some commonly used novelty detection algorithms are Local Outlier Factor (LOF), Isolation Forest, and One-Class Support Vector Machines (One-Class SVM).
Local Outlier Factor (LOF)
LOF is a density-based anomaly detection technique that measures the local deviation of a given data point from its neighbors. It calculates the local density deviation of each sample and considers those samples located in low-density regions as outliers. LOF is particularly effective when the data has varying densities.
In LOF, the local density is the average density of the k nearest neighbors. The local reachability densitiy is a modified version of the local density that can handle instances that have different numbers of reachable neighbors. The local outlier factor (LOF) is the ratio of the local reachability density to the average density of the local reachability densities.
Isolation Forest
Isolation Forest is a tree-based anomaly detection algorithm that returns the anomaly score of each sample. It generates random tree bases and binary trees (rather than decision trees) to isolate anomalous data points. The algorithm has shown to be very efficient, as it can detect anomalies in datasets with high noise levels and dimensionalities.
Isolation Forest works by randomly selecting features and then randomly selecting a split value between the minimum and maximum value of the selected feature to create binary trees. Unlike traditional decision trees that grow bushes or forests by recursively adding all the trees to the forest, Isolation Forest directly registers the path length from the root to a test sample. Anomalies tend to be isolated at shorter path lengths and hence can be easily identified.
One-Class Support Vector Machines (One-Class SVM)
One-Class SVM is a support vector machine algorithm used for novelty or outlier detection. It aims to separate the inlier data points from the outlier data points by finding the optimal boundary that encloses the data points. The algorithm can handle both linear and nonlinear data.
One-Class SVM works by finding the optimal boundary around the data points using support vectors. For linearly separable data, it finds a hyperplane that can be a linear or a non-linear decision boundary. The kernel trick can be used for non-linear data by mapping the data to a higher-dimensional space where it is linearly separable.
Evaluation of Novelty Detection Techniques
Evaluating novelty detection techniques can be challenging due to the lack of ground truth labels for the novel data. Some evaluation methods include utilizing labeled datasets, using metrics like precision, recall, and F1-score, and comparing the novelty scores produced by different algorithms. The choice of evaluation method depends on the specific use case and the nature of the data.
In synthetic or artificial datasets, where ground truth labels are available, precision, recall, and F1-score are common evaluation metrics. These metrics measure the ratio of true positives (TP), true negatives (TN), false positives (FP), and false negatives (FNs) in binary classification. For real-world datasets, where the ground truth is unknown, methods such as comparison of novelty scores or visualization techniques may be employed.
In practice, the choice of novelty detection technique depends on the specific application and the characteristics of the dataset. Different techniques may work better depending on the data's noise level, dimensionality, and the presence of outliers. It is often beneficial to employ multiple novelty detection techniques and compare their results to gain a more comprehensive understanding of the dataset's novelty.