Task Types
Search Intent Classification
In shortLabelling queries by what the searcher wants, such as informational, navigational, commercial or transactional, using rules, SERP signals or ML models.
Search intent classification is the task of assigning an intent label to each query in a keyword set. It turns Search Intent from a judgement you make keyword by keyword into a column you can filter, chart and act on across thousands of queries. In machine learning terms it is a Text Classification task, usually multi-class or multi-label.
How it works
MLforSEO groups the approaches into three families, and the best results usually combine them:
- Rule-based from the query: IF-else and Regular Expressions (Regex) patterns (“buy”, “price”, “near me”, “how to”) assign labels. Easy to build in Google Sheets and to audit, but the word lists need customising per industry.
- From SERP features: the results page shows what Google thinks the intent is. Shopping ads and product listings suggest transactional intent; featured snippets and People Also Ask suggest informational.
- Machine learning: a pre-trained transformer labels queries with Zero-shot Learning, an entity-based semantic parser reads what the query is about, or a model is fine-tuned on your own labelled sample.
Labels can go beyond the classic informational, navigational, commercial and transactional set to include micro intents, device relevance, urgency or problem-solving queries.
How it’s used in SEO and marketing
- Mapping keywords to page types and funnel stages.
- Spotting mismatches, such as a blog post targeting a transactional query.
- Prioritising keyword universes by commercial value.
- Segmenting Search Console performance by intent.
- Separating human queries from synthetic, AI-generated ones.
Example
Transactional intent looks different by sector. In ecommerce it shows up as “buy”, “price”, “cheap” or “coupon”; in SaaS as “pricing”, “demo”, “free trial” or “API key”; in services as “book”, “consultation” or “portfolio”. A generic word list mislabels a chunk of your data, so MLforSEO recommends turning the lists into per-niche dictionaries.
Limitations and things to watch
- Many queries are mixed or ambiguous; allow multiple labels or a confidence score.
- Intent changes over time and by market. Re-check SERP-based labels periodically.
- Validate any model against a hand-labelled sample using precision, recall and F1 before trusting it at scale.
Learn it on MLforSEO
- Search-Intent Classification with Machine Learning: The Approaches Explained
- What Is Search Intent in SEO? A Practical Guide to Using It in Semantic Keyword Research
- Search Intent Classification from SERP Features in Python: Rule-Based Notebook for SEO
- Transformer-Based Search Intent Classification with BART Zero-Shot & SERP Signals (Colab Notebook)
- Semantic ML-enabled Keyword Research
Where Search Intent Classification shows up on MLforSEO
Learn it in a course
Read about it on the blog
What Is Search Intent in SEO? A Practical Guide to Using It in Semantic Keyword Research
What Is the EAV Model in SEO? A Practical Framework for Semantic Keyword Research
Search-Intent Classification with Machine Learning: The Approaches Explained
How to Automatically Generate Meta Descriptions with Python: From BERT to LLMs
Try it yourself
- Coding Script or NotebookSearch Intent Classification from SERP Features in Python: Rule-Based Notebook for SEO
- Coding Script or NotebookTransformer-Based Search Intent Classification with BART Zero-Shot & SERP Signals (Colab Notebook)
- Coding Script or NotebookSemantic Search Intent Classification with Google Cloud NLP & spaCy in Python (Colab Notebook)
- Code on GitHubSearch intent classification: rule-based, SERP-based and ML methods
Sources and further reading
- Search-Intent Classification with Machine Learning: The Approaches Explained MLforSEO
- What Is Search Intent in SEO? A Practical Guide to Using It in Semantic Keyword Research MLforSEO
- Search Intent Classification from SERP Features in Python: Rule-Based Notebook for SEO MLforSEO
- A taxonomy of web search (Broder, 2002)
- Search Quality Rater Guidelines (Google)
Other terms from Task Types
- Anomaly DetectionAutomatically spotting data points or periods that differ sharply from the normal pattern, such as an unexpect…
- Binary ClassificationA supervised machine learning task where the model sorts each item into one of exactly two classes, such as ye…
- Clustering (ML Task)An unsupervised ML task that groups unlabelled data, such as keywords, pages or customers, by similarity so pa…
- Computer Vision (Image Recognition)The field of AI that lets machines interpret images and video, from recognising objects and text to describing…
- Content Transformation (ML)Using ML and generative AI to convert content between formats or adapt it for new platforms, e.g. video to tex…
- Keyword ExtractionAn NLP task that automatically pulls the most relevant words or phrases out of a text, used to summarise, tag…
- Multi-Class ClassificationClassification where each item gets exactly one label from three or more options, such as tagging a page as bl…
- Multi-Label ClassificationClassification where one item can receive several labels at once, such as tagging a post as both "analytics" a…
- Regression (ML Task)A supervised machine learning task that predicts a continuous number, such as traffic, revenue or click-throug…
