Unsupervised learning
Machine learning from examples with no answers attached, where the model finds groups, patterns or odd cases on its own.
Draft - this entry has not been reviewed yet.
Formal
A form of machine learning that works on training data without labels, finding structure in it, for example grouping similar items or flagging items that differ from the rest.
In plain English
Like sorting a box of mixed buttons into piles by colour and size without anyone telling you what the piles should be.
In practice
A monitoring tool at a hospital learns what normal logins look like and raises an alert when a nurse's account suddenly logs in at 3 a.m. from another country.
Technical deep dive
Unsupervised learning estimates properties of the input distribution P(X) alone, with no target variable. The main task families are clustering (k-means, hierarchical clustering, DBSCAN, Gaussian mixture models fitted with the EM algorithm), dimensionality reduction (principal component analysis, which projects data onto the directions of greatest variance; t-SNE (van der Maaten and Hinton, 2008) and UMAP (McInnes et al., 2018) for non-linear visualisation), density estimation (kernel density estimates, mixture models, normalising flows) and association rule mining (the Apriori algorithm for market-basket analysis).
Anomaly detection is the most common security use and is what behavioural analytics products (UEBA) typically build on. Methods include isolation forests (Liu, Ting and Zhou, 2008), which isolate points by random splits and score outliers by how few splits they need; one-class SVMs; local outlier factor; and autoencoders, which learn to reconstruct normal data and flag inputs with high reconstruction error. All of these model "normal" from historical data, so an attacker who was already present during the baseline period becomes part of normal, and legitimate change (a new VPN provider, a reorganisation) produces bursts of false positives.
Evaluation is the central difficulty. Without labels there is no ground truth to score against, so practitioners use internal criteria (silhouette score, Davies-Bouldin index, reconstruction error, log-likelihood on held-out data) that measure geometric or statistical fit rather than usefulness. In anomaly detection, a small labelled set of known incidents is often assembled after the fact purely for evaluation. Results are sensitive to feature scaling, distance metric and hyperparameters such as the number of clusters or the contamination rate, and in high dimensions distances concentrate so that nearest and farthest neighbours become hard to distinguish.
The boundary with self-supervised learning is often blurred. Autoencoders and language-model pretraining both learn from unlabelled data, but self-supervised methods construct an explicit prediction target from the data and train with a supervised-style loss, which is why they are now usually treated as a separate category. Unsupervised methods also serve as preprocessing for supervised ones: PCA or learned embeddings reduce dimensionality, and cluster assignments can become features.
In a governance context, unsupervised output is a hypothesis, not a finding. Clusters and anomaly scores need human interpretation before they drive decisions about people, and profiling built on them can still fall under GDPR rules on profiling and automated decision-making (Article 22) when it produces legal or similarly significant effects.
What to learn first
Everything this builds on, foundations first.
- Training data
- →Unsupervised learning
Relationships
- A kind of
- Machine learning
- Kinds
- Clustering
- Consists of
- Dimensionality reduction
- Requires
- Training data
- Unlocks
- k-means clustering
- Don't confuse with
- Reinforcement learningSelf-supervised learningSupervised learning
- Used with
- Anomaly detectionSecurity monitoring
Sources & further reading
Standards & official texts
Reference works
- van der Maaten & Hinton (2008), Visualizing Data using t-SNE · Journal of Machine Learning Research
- McInnes, Healy & Melville (2018), UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction · arXiv
Textbooks
Where this data comes from
This entry was drafted by an AI from the sources above and has not yet been checked by a person. Treat it as a starting point, and check anything important against the sources.
See the review queueSuggest a correction on GitHubThis term as JSON
Check yourself
Loading…