[Paper Review] An Evaluation of Classification and Outlier Detection Algorithms
This paper evaluates six fast machine learning algorithms—Gradient Boosting Machines (GBM), Random Forest (RF), C4.5, k-NN, Naive Bayes, and Bayesian Networks—for classification and outlier detection in multivariate time-series data. GBM achieved the highest classification accuracy across 10 datasets, while no single algorithm dominated outlier detection; however, GBM and RF showed strong performance on balanced datasets, with overfitting observed on highly imbalanced outlier sets.
This paper evaluates algorithms for classification and outlier detection accuracies in temporal data. We focus on algorithms that train and classify rapidly and can be used for systems that need to incorporate new data regularly. Hence, we compare the accuracy of six fast algorithms using a range of well-known time-series datasets. The analyses demonstrate that the choice of algorithm is task and data specific but that we can derive heuristics for choosing. Gradient Boosting Machines are generally best for classification but there is no single winner for outlier detection though Gradient Boosting Machines (again) and Random Forest are better. Hence, we recommend running evaluations of a number of algorithms using our heuristics.
Motivation & Objective
- To identify efficient, fast-training algorithms suitable for online classification and outlier detection in real-time multivariate time-series data from IoT and transport domains.
- To evaluate algorithm performance across a diverse set of 10 real-world time-series datasets with labeled anomalies and multiple attributes.
- To derive practical heuristics for selecting algorithms based on data characteristics, particularly for systems requiring regular assimilation of new data.
- To compare both supervised classification and outlier detection accuracy across a consistent set of algorithms and datasets, avoiding biases from prior evaluations.
Proposed method
- Evaluated six algorithms—GBM, RF, C4.5, k-NN, Naive Bayes, and Bayesian Networks—using the WEKA machine learning framework for consistency.
- Preprocessed datasets by creating time-series windows of 20 consecutive time points to model temporal sequences, preserving chronological order.
- Used standard train/test splits with training data preceding test data to avoid data leakage, and did not clean or impute missing values.
- Optimized hyperparameters via a fixed number of configurations per algorithm to ensure fairness in accuracy comparison.
- Applied a cost matrix and tree size constraints as potential mitigation strategies for overfitting on imbalanced outlier datasets.
- Reported accuracy as the primary metric, with precision being less critical due to post-processing tolerance for false positives.
Experimental results
Research questions
- RQ1Which fast-training machine learning algorithms achieve the highest classification accuracy on diverse multivariate time-series datasets?
- RQ2How do the same algorithms perform in supervised outlier detection, particularly on datasets with imbalanced outlier classes?
- RQ3Can general heuristics be derived to guide algorithm selection for online classification and anomaly detection in real-time systems?
- RQ4To what extent do ensemble methods like GBM and RF overfit on datasets with very few outlier examples?
- RQ5How do instance-based methods like k-NN and model-based methods like C4.5 compare in performance on non-linear, complex time-series data?
Key findings
- Gradient Boosting Machines (GBM) achieved the highest classification accuracy across 7 out of 10 datasets, with the best overall performance.
- For outlier detection, no single algorithm outperformed all others; GBM achieved the highest accuracy on 3 datasets, while Random Forest (RF) performed best on 4 datasets.
- Bayes and RF showed strong average performance across datasets, but Bayes never achieved the top accuracy on any single dataset.
- GBM and RF struggled significantly on the two Ozone datasets (O₃¹hr and O₃⁸hr), which had only 7.5% outliers, indicating overfitting due to class imbalance.
- k-NN and Logistic Regression (LR) were consistently outperformed across all datasets and were ruled out as viable options for outlier detection.
- C4.5 and Naive Bayes showed mixed results: C4.5 overfit on some datasets despite strong classification performance, while Naive Bayes was less prone to overfitting but generally less accurate.
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.