Hostname: page-component-74656f9884-8r8nv Total loading time: 0 Render date: 2026-11-07T02:44:24.940Z Has data issue: false hasContentIssue false

Unsupervised modeling anomaly detection in discussion forums posts using global vectors for text representation

Published online by Cambridge University Press:  04 March 2020

Paweł Cichosz*
Affiliation:
Institute of Computer Science, Warsaw University of Technology, Warszawa, Poland E-mail: p.cichosz@elka.pw.edu.pl
Rights & Permissions [Opens in a new window]

Abstract

Anomaly detection can be seen as an unsupervised learning task in which a predictive model created on historical data is used to detect outlying instances in new data. This work addresses possibly promising but relatively uncommon application of anomaly detection to text data. Two English-language and one Polish-language Internet discussion forums devoted to psychoactive substances received from home-grown plants, such as hashish or marijuana, serve as text sources that are both realistic and possibly interesting on their own, due to potential associations with drug-related crime. The utility of two different vector text representations is examined: the simple bag of words representation and a more refined Global Vectors (GloVe) representation, which is an example of the increasingly popular word embedding approach. They are both combined with two unsupervised anomaly detection methods, based on one-class support vector machines (SVM) and based on dissimilarity to k-medoids clusters. The GloVe representation is found definitely more useful for anomaly detection, permitting better detection quality and ameliorating the curse of dimensionality issues with text clustering. The cluster dissimilarity approach combined with this representation outperforms one-class SVM with respect to detection quality and appears a more promising approach to anomaly detection in text data.

Information

Type
Article
Copyright
© Cambridge University Press 2020
Figure 0

Table 1. Training and test subsets for the discussion forums

Figure 1

Table 2. Target categories and class distribution

Figure 2

Figure 1. Classification performance for the US forum.

Figure 3

Figure 2. Classification performance for the UK forum.

Figure 4

Figure 3. Classification performance for the PL forum.

Figure 5

Figure 4. The average silhouette width for the US forum.

Figure 6

Figure 5. The average silhouette width for the UK forum.

Figure 7

Figure 6. The average silhouette width for the PL forum.

Figure 8

Figure 7. The silhouette plots for the US forum.

Figure 9

Figure 8. The silhouette plots for the UK forum.

Figure 10

Figure 9. The silhouette plots for the PL forum.

Figure 11

Figure 10. Anomaly detection ROC curves for the US forum.

Figure 12

Figure 11. Anomaly detection precision-recall curves for the US forum.

Figure 13

Figure 12. Anomaly detection ROC curves for the UK forum.

Figure 14

Figure 13. Anomaly detection precision recall curves for the UK forum.

Figure 15

Figure 14. Anomaly detection ROC curves for the PL forum.

Figure 16

Figure 15. Anomaly detection precision-recall curves for the PL forum.