Introduction to Machine Learning for SEO
- Practical: Clustering of page content with LDA
- Practical: Clustering of page content with BERTopic
- What is ML clustering?
ML Models & Algorithms
In shortA classic probabilistic topic model that treats each document as a mix of topics and each topic as a mix of words; you set the number of topics.
Latent Dirichlet Allocation (LDA) is an unsupervised probabilistic model for topic modelling, introduced by Blei, Ng and Jordan in 2003. It assumes every document is a mixture of several topics and every topic is a mixture of words, then works backwards from the words alone to estimate both. Because a document can belong to several topics at once, it is a soft (fuzzy) clustering method.
MLforSEO’s LDA guide runs the model on a site crawl with Gensim, visualises topics with pyLDAvis, and compares the output with NMF. It also runs the same model on titles only and on full text to show why LDA struggles on short text. For a no-code route, the free jsLDA web app (originally developed at Cornell) lets you upload documents and a stop word list, set the number of topics and export results into a Google Sheets organiser.