designwithfocus

AI & ML development

What Is Unsupervised Learning? Clusters Without Labels

By Design With Focus Team 5 min read
Scattered dots grouped into three unmarked clusters on a plain chart

Short answer

Unsupervised learning finds patterns in data that has no labels. Google's machine learning glossary describes it as training a model to find patterns, usually in an unlabeled set, and says clustering similar examples is the most common use. Google Cloud adds that the model infers structure from similarities and differences without a human-supplied answer key. Classification is the labeled counterpart.

Last verified against the sources listed below.

Key takeaways

  • Unsupervised learning uses feature values without known labels. The model looks for relationships in those features.
  • Google Cloud names three task types: clustering, association rules, and dimensionality reduction.
  • K-means is exclusive clustering: you choose K, and each point belongs to one cluster.
  • scikit-learn's unsupervised chapter also covers mixtures, manifold methods, PCA, density estimation, and outlier detection.
  • A cluster id can stand in for many features. That is a compression step, not a labeled prediction.

What is unsupervised learning starts with the missing column. Google’s glossary calls it training a model to find patterns in a dataset, typically an unlabeled one. The most common use it names is clustering similar examples.

Google Cloud puts the same idea in artificial intelligence: the model learns from data without human supervision, and it is given unlabeled data rather than an answer key. Supervised learning is the contrast, because those examples arrive with labels.

How does unsupervised learning work?

The model gets raw examples and has to infer its own structure. Google Cloud says the algorithms learn without labels or prior training, using similarities, differences, and patterns.

Microsoft’s module says the training data has feature values and no known labels, and the algorithm determines relationships among those features. You do not hand the model a correct class for each row. You hand it the measurements and let the method propose groups or a simpler view of the same table.

Google’s clustering course adds a practical limit. With two features you can often see the groups. As the feature count grows, you have to define a similarity measure, the metric that compares samples.

Different measures fit different jobs. The course does not treat “it looks like three blobs” as a substitute for that definition.

What is unsupervised learning in AI?

It is the machine learning task that searches unlabeled data for structure. Google Cloud says the methods suit organizing large sets into clusters, finding patterns that were not marked in advance, and surfacing features that might later categorize data.

The same page names three task types:

  • Clustering, which splits raw points into groups.
  • Association rules, which look for frequent if-then links.
  • Dimensionality reduction, which reduces the number of features.

Clustering is described there as one of the most used of the three. Exclusive clustering, also called hard clustering, puts each point in a single cluster. K-means is the example: you choose a number K, and the method partitions the points into that many clusters.

Which methods does scikit-learn list?

scikit-learn files a wide set under its unsupervised learning chapter. Clustering is one section, not the whole chapter.

Section on that page Methods the chapter names
Gaussian mixtures Gaussian mixture, variational Bayesian Gaussian mixture
Manifold learning Isomap, locally linear embedding, spectral embedding, MDS, t-SNE
Clustering K-means, affinity propagation, mean shift, spectral, hierarchical, DBSCAN, HDBSCAN, OPTICS, BIRCH
Matrix factorization PCA, kernel PCA, truncated SVD, dictionary learning, factor analysis, ICA, NMF, latent Dirichlet allocation
Other Covariance estimation, novelty and outlier detection, density estimation, restricted Boltzmann machines

Google’s glossary names principal component analysis as an unsupervised example beside clustering. A shopping-cart illustration on that page says carts containing lemons frequently also contain antacids. That is a pattern claim in the glossary, not a measurement from this article.

What is an unsupervised learning example?

A weather table with no season column is one. Google Cloud says the algorithm can group rows by temperature or by similar weather patterns. The groups come first. Names for them come after, if you want names at all.

Microsoft’s flower example groups blooms by size, number of leaves, and number of petals, with no species label in the file. The clustering course also lists market segmentation, social network analysis, search-result grouping, medical imaging, image segmentation, and anomaly detection as places clustering shows up. The Hertzsprung-Russell diagram is the course’s picture of stars grouped by luminosity and temperature.

After the groups exist, each one gets a cluster id. The course says that id can replace the other features for every example in the group, which compresses the table. It also describes a privacy pattern: pass a cluster id instead of a user id, and keep the cluster large enough that one person’s history is not tied to one person.

The course’s compression sketch is a video. One clip can carry viewer location, time, and demographics, plus comment text and user ids, plus tags. Clustering replaces that set with a single cluster id.

The page calls the savings significant on very large sets. It does not print a byte count or a percentage saved. Imputation is the related use: fill a missing feature from the other examples that landed in the same cluster. The clustering course also names the Hertzsprung-Russell diagram, stars plotted by luminosity and temperature, as a picture of groups you can see before you name them.

How does this differ from classification?

Classification uses labels you already have. Clustering does not. Microsoft says the two can look alike because both put observations into discrete groups, but classification learns the link between features and a known label.

The clustering course says the same split in one line: if the examples are labeled, that kind of grouping is called classification. A later supervised model can still use cluster ids as inputs. That second model is no longer unsupervised, because someone has attached meaning to the groups.

Color grouping is a small picture of the same idea, not a trained model. The Color Palette Generator gathers nearby colors the way a clustering method gathers nearby points.

The broader map of labeled and unlabeled training sits in what machine learning is.

Frequently asked questions

What is an unsupervised learning algorithm?

It is a procedure that organizes unlabeled examples. Google Cloud's page names K-means as exclusive, or hard, clustering: you pick K and each point lands in one cluster. The same page describes overlapping clustering, where a point can sit in more than one cluster with a degree of membership, and hierarchical clustering, which merges or splits groups. Probabilistic clustering assigns points by the chance they belong to each cluster. scikit-learn's chapter lists K-means, DBSCAN, OPTICS, BIRCH, and others under clustering.

What does unsupervised learning include besides clusters?

Google Cloud lists association rules and dimensionality reduction next to clustering. Association rules search large sets for frequent if-then links, such as symptoms that tend to appear together in past cases. Dimensionality reduction cuts the number of features so a wide table is easier to picture. Google's glossary gives principal component analysis as a second unsupervised example, including a shopping-cart note that carts with lemons often also contain antacids.

How is a cluster id different from a class label?

Microsoft's training module says classification starts from classes you already know, while clustering invents the groups from feature similarity. After clustering, Google's clustering course assigns each group a cluster id. That id can later be used as a feature, including as a stand-in that compresses many columns into one. The id is a result of the grouping, not a name the dataset arrived with.

What is a simple unsupervised learning example?

Google Cloud's weather sketch is one. An algorithm walks an unlabeled weather table and groups rows by temperature or by similar weather patterns. You can name those groups afterward. Microsoft uses flowers: group them by size, leaf count, and petal count when no species label is in the table. Google's glossary uses songs grouped by musical properties, with the clusters later feeding a recommendation step.

Does a missing value get filled from a cluster?

Google's clustering course calls that imputation. If some examples in a cluster lack a feature, you can infer it from the other examples in the same cluster. The course's illustration is less popular videos grouped with more popular ones to improve recommendations. That is a use of the cluster, not a guarantee that the filled value is correct. The page does not give an error rate for the fill.

Sources