Introduction to Machine Learning for SEO
- ML Solution Characteristics
- Practical: Text Classification of page content with Google Natural Language API
- Practical: Clustering of page content with BERTopic
NEW: AI Search Optimisation and Agentic SEO Course by Beatrice Gamba -> Immediate start, on-demand learning for how to optimise for discovery in agentic search ✨ ✨
Core Concepts (AI/ML)
In shortA machine learning model is the trained output of an algorithm: a set of learned patterns that turns new input data into a prediction, label, score or text.
A model is what you get when a machine learning algorithm is trained on data. The algorithm is the recipe for learning; the model is the result, a set of learned patterns (stored as parameters and weights) that can take new input and produce an output. That output might be a category, a number, a cluster, an embedding or generated text. When people say they “used AI” for a task, they almost always mean they sent data to a model.
A model goes through two phases. In training, the algorithm adjusts the model’s parameters so its outputs match patterns in the training data, with separate test and validation data used to check it generalises. In inference, the finished model is applied to new data: a sentiment model scores a new review, a classifier labels a new page.
Models differ by task (classification, regression, clustering, generation), by learning paradigm (supervised or unsupervised) and by architecture, from a decision tree to a neural network or a large language model with billions of parameters.
MLforSEO frames the practical choice as where your model comes from:
Typical marketing uses include intent and page-type classifiers, sentiment and entity models for reviews, embedding models for internal linking and clustering, and LLMs for content transformation.
To label 20,000 product reviews by sentiment, a team can call Google’s pre-trained Natural Language API and have results the same day. If the reviews use industry slang the general model misreads, they label a few hundred examples and fine-tune. Training their own model from scratch would only make sense if neither option worked and they had the data and skills to do it.