Task Types
Time Series Forecasting
In shortPredicting future values of a metric recorded over time, such as traffic, impressions or search demand, from its past patterns.
Time series forecasting uses data recorded at regular intervals, daily sessions or weekly search interest for example, to estimate what comes next. In MLforSEO’s data framework, time-series data is “sequential points recorded over time”, ideal for analysing historic traffic, forecasting seasonality and detecting anomalies. Technically it is a kind of Regression (ML Task): the model predicts a continuous number.
How it works
A forecasting model breaks the history into parts it can project forward:
- Trend: the long-term direction, such as steady growth.
- Seasonality: repeating patterns, such as weekly dips at weekends or a December peak.
- Events: known one-off effects such as sales, launches or algorithm updates.
- Noise: what is left over.
Common methods include exponential smoothing and ARIMA from classical statistics, Meta’s open-source Prophet (popular with marketers because it handles seasonality and holidays with little tuning), and machine learning models trained on lagged values. Good forecasts also come with a range (a prediction interval) around the central line.
How it’s used in SEO and marketing
- Forecasting organic traffic or impressions to set realistic targets.
- Planning content around seasonal demand from Google Trends or Search Console data.
- Separating real drops from expected seasonal dips, often paired with Anomaly Detection.
- Estimating the impact of planned promotions or migrations.
- Budgeting paid search spend around demand peaks.
Example
You pull five years of weekly interest for “garden furniture” with PyTrends, fit a model and see a clear spring peak each year. Publishing and refreshing your buying guides in February, ahead of the curve, makes more sense than reacting in May. Comparing actual Search Console clicks with the forecast later shows whether a dip is seasonal or a real problem.
Limitations and things to watch
- Forecasts assume the future looks like the past. Algorithm updates, AI Overviews or market shocks break that assumption.
- Short histories (under two full seasonal cycles) make seasonality hard to learn.
- Google Trends values are relative and sampled, so they show shape, not absolute volume.
- Always communicate the uncertainty range to stakeholders.
Learn it on MLforSEO
Sources and further reading
- The Characteristics of a Machine Learning Problem: A Task, Data and Solution Framework for SEOs MLforSEO
- The Ultimate Guide to PyTrends: the Google Trends API (with Python code examples) MLforSEO
- Introduction to Machine Learning for SEO (course) MLforSEO
- Forecasting: Principles and Practice, 3rd ed. (Hyndman and Athanasopoulos)
- Prophet: forecasting at scale (Meta)
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…
