ML Models & Algorithms
Gaussian Mixture Models (GMM)
In shortA soft clustering model that treats data as a mix of bell-shaped (Gaussian) distributions and gives each point a probability for every cluster.
A Gaussian Mixture Model (GMM) is an unsupervised clustering model that assumes your data was generated by several overlapping bell-shaped (Gaussian) distributions. It estimates where each distribution sits and how it is shaped, then gives every data point a probability of belonging to each cluster. In MLforSEO’s clustering framework it is the main example of distribution-based clustering for numeric data.
How it works
You choose the number of components (clusters). The model then repeats two steps, known as the expectation-maximisation (EM) algorithm:
- Expectation: given the current guesses, calculate the probability that each point belongs to each component.
- Maximisation: update each component’s centre, spread and shape (its covariance) and its weight, using those probabilities.
It stops when the estimates stop changing. Because each cluster has its own covariance, GMM can fit stretched or tilted oval clusters of different sizes, where K-means assumes roughly round, similar-sized ones. And because membership is a probability, it is a form of soft clustering: a point can be 85% in one cluster and 15% in another. You can still take the highest probability as a hard label.
How it’s used in SEO and marketing
- Customer segmentation on numeric behaviour such as order frequency, average order value and recency.
- Grouping pages by performance metrics (clicks, impressions, CTR, position) where the groups overlap.
- Flagging unusual data: points with low probability under every component are candidates for anomalies.
- Image analysis, such as segmenting colours in product photos.
Example
MLforSEO’s clustering post uses a customer born in 1995. With hard clustering they are either Gen Z or Millennial. With a soft approach like GMM, the same customer might come out 85% Gen Z and 15% Millennial based on their actual behaviour, so you can target them with the right mix of messages.
Limitations and things to watch
- You still choose the number of components; compare models with a criterion such as BIC to help.
- It assumes each cluster is roughly Gaussian; skewed metrics such as revenue usually need a log transform first.
- Results depend on the starting point, so run several initialisations.
- It is built for numeric data. For text, the distribution-based equivalent MLforSEO points to is LDA.
- Scale your features first so one metric does not dominate.
Learn it on MLforSEO
Where Gaussian Mixture Models (GMM) shows up on MLforSEO
Learn it in a course
Read about it on the blog
Sources and further reading
Other terms from ML Models & Algorithms
- BERT (Bidirectional Encoder Representations from Transformers)Google's 2018 transformer language model that reads text in both directions to produce context-aware embedding…
- BERTopicA modular topic modelling technique that clusters transformer embeddings and labels each cluster with class-ba…
- BIRCH (Balanced Iterative Reducing and Clustering using Hierarchies)BIRCH (Balanced Iterative Reducing and Clustering using Hierarchies) clusters very large numeric datasets by s…
- BM25A classic ranking function that scores documents by how often query words appear, adjusted for word rarity and…
- Boyer-MooreA fast exact string-search algorithm that compares a pattern from right to left and skips ahead after mismatch…
- c-TF-IDFClass-based TF-IDF: treats each cluster as one document to find the words that best describe it, used by BERTo…
- Centroid-based ClusteringA clustering family that groups data around central points (centroids), each the average of its cluster's memb…
- Convolutional Neural Network (CNN)A deep learning architecture that scans data with small learned filters to detect local patterns; the classic…
- DBSCANDensity-based clustering that groups closely packed points, finds the number of clusters itself and labels iso…
