October 26, 2026
Google Trends applied to the seasonal prediction of culinary demand on a recipe website
Rodrigo Souza Alexandre; Gustavo Dantas Lobo
DOI: 10.22167/2675-6528-202603430
Article derived from a Course Conclusion Work (TCC), with content based on the student’s original work and adapted to the editorial format of the E&S Magazine with the support of the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege for textual synthesis and organization.
Summary
The late publication of seasonal content on recipe websites compromises the full capture of traffic associated with commemorative dates. To address this issue, a culinary trend forecasting workflow was developed using Google Trends data, aiming to anticipate the editorial planning of a recipe website for a major food company in Brazil. Weekly time series of 2,734 culinary queries were collected over five years using the pytrends library. A classification by temporal concentration score identified five seasonal groups (Easter, June Festival, Winter, Christmas, and Summer), validated by K-Means clustering with an Adjusted Rand Index of 0.45. In the comparison between Prophet, ARIMA, and LSTM models, ARIMA showed lower mean absolute error in three of the five groups, while Prophet was superior in the two groups with broad seasonal windows. Prophet was adopted as the operational model due to its interpretable decomposition and ease of maintenance by non-specialized teams. A custom Gaussian regressor for Easter reduced the predicted peak error by 33%. The workflow generated an editorial calendar for the triennium 2026-2028, already in use by the website team, with estimated gains of 10 to 15% in seasonal traffic.
Keywords: Seasonal classification; Editorial planning; Prophet; Seasonality; Time series.
1. Introduction
The search for recipes on the internet reveals well-defined seasonal patterns, which are strongly influenced by the cultural and festive calendar of each country. In the Brazilian context, terms such as “easter egg recipe” or “quentão recipe” show concentrated peaks of interest weeks before the respective commemorative dates, followed by abrupt drops at the end of the event (Spence, 2021). This behavior was widely documented by the Rhythm of Food project, which analyzed hundreds of culinary terms over fifteen years, revealing consistent and predictable seasonal cycles in search volume (Google News Lab, 2016).
For recipe websites linked to large food companies, the ability to capture this seasonal traffic represents a strategic opportunity for qualified audience generation. Internal data from the operation studied in this work indicated that recipes associated with seasonal events were responsible for approximately 35% of total accesses in 2025. Peaks of interest on dates with strong culinary appeal, such as Christmas, generated increases of up to 45% in organic traffic.
However, the publication of seasonal content often occurs after the start of the interest growth curve, resulting in the loss of potential clicks. The website in question, for example, only began to capture traffic weeks after the demand emerged, highlighting an editorial timing problem. It is estimated that an anticipation of editorial planning could generate gains of 10 to 15% in seasonal traffic, by allowing content to be indexed and positioned in search engines before the period of greatest interest (Baye et al., 2016).
In this scenario, Google Trends emerges as a promising data source to investigate and solve the editorial synchronization problem. Previous studies have shown that Google Trends search volume data can improve forecasts of economic indicators, anticipating demand signals that traditional indicators capture with a delay (Choi and Varian, 2012). Although the tool has limitations, such as the relative nature of the data and sample variability (Medeiros and Pires, 2021), the present work addressed them through a resilient data collection system.
Time series modeling was central to trend forecasting. The Prophet model, proposed by Taylor and Letham (2018), proved particularly suitable due to its additive and decomposable approach, with native support for exogenous regressors for movable holidays like Easter. Models such as Autoregressive Integrated Moving Average (ARIMA) and Long Short-Term Memory (LSTM) were used for comparison, with theoretical grounding in Hyndman and Athanasopoulos (2021). The seasonal classification of queries was performed by a scoring system based on temporal concentration, validated by K-Means clustering on aggregated monthly profiles (Fávero and Belfiore, 2024).
Given the need to optimize the editorial planning of recipe websites and capitalize on seasonal demand, the present work is justified by the opportunity to generate significant organic traffic gains. The objective of this work was to develop a flow for forecasting seasonal culinary trends from Google Trends to optimize the editorial planning of a recipe website belonging to a large food company with operations in Brazil. The flow comprised automated collection of 2,734 culinary queries over five years of weekly data, through seasonal classification and comparison of forecasting models, to the generation of a strategic editorial calendar for the triennium 2026–2028.
2. Material and Methods
This work was characterized as an applied research, with a quantitative approach, aiming at the development of a seasonal culinary trend forecasting flow. The objective was to optimize the editorial planning of a recipe website belonging to a large food company operating in Brazil, through the analysis of Google Trends search data. The unit of analysis consisted of 2,734 culinary queries in Portuguese, whose weekly time series were collected from Google Trends, covering the period from February 2021 to February 2026, totaling 262 observations per query. The queries were initially extracted from the terms with the best ranking on the website in 2025, using data from Google Search Console.
Data collection was performed using the pytrends library, an unofficial Python interface for programmatic access to Google Trends. To circumvent request limitations and connection instability, a resilient data collection system was implemented. This system included saving progress to a partial CSV file, automatic resumption, an exponential backoff mechanism (from 2 to 120 seconds) and random pauses (from 2 to 8 seconds) between requests, as well as individual exception handling.
The raw Google Trends data, which report relative values on a scale of 0 to 100 normalized by the peak, were stored in a transposed format (dataset_trends_transposed.csv). This organization facilitated subsequent normalization and aggregation operations. Medeiros and Pires (2021) documented the characteristics and limitations of this data, which were considered in the preprocessing.
The automatic detection of seasonal windows of interest was a preliminary step to classification. An algorithm operated on the curve predicted by the Prophet model, identifying the start and end of the relevant demand trend. This delimitation was based on a relative threshold, defined as 50% of the amplitude between the base value (10th percentile of the annual curve) and the predicted peak.
To avoid excessively wide windows, a 16-week safety lock was applied. Additionally, a historical consensus filter restricted future predictions to a two-month tolerance band around the modal peak month observed in the five years of data, accommodating variations such as Easter. The classification of the 2,734 queries into seasonal categories was performed by a temporal concentration-based scoring system, configured by domain rules. Five seasonal events from the Brazilian cultural calendar were defined: Easter, Festa Junina, Winter, Christmas, and Summer, each with anchor dates and specific time windows.
For each query and event, a relevance score was calculated, representing the average of the normalized volume within the event’s time windows over the available years. The final classification followed three hierarchical rules, controlled by parameters such as MINIMUM_SCORE_THRESHOLD (0.10), STABLE_CV_THRESHOLD (0.20), and SEASONAL_PROTECTION_SCORE (0.40), resulting in seven categories.
The validation of the classification by rules was performed through unsupervised clustering with the K-Means algorithm. The data were prepared by normalization to a 0-1 scale, aggregation into 12 monthly columns, and standardization with StandardScaler. The selection of the number of clusters K was guided by the elbow method and the Silhouette Score, opting for K=6 for direct comparison with seasonal categories.
The agreement between rule-based classification and K-Means clustering was measured by the Adjusted Rand Index (ARI), which resulted in 0.45, indicating moderate agreement. This validation confirmed that the seasonal macrostructure defined by domain rules was supported by empirical data.
In the forecasting stage, the Prophet model (Taylor and Letham, 2018) was employed as the main model, applied to the median time series of each seasonal group. The Prophet configuration disabled weekly seasonality and natively incorporated Brazilian holidays. A custom Gaussian regressor was added for the Easter group, calculating the Easter date using Gauss’s algorithm and transforming the distance in days into a value between 0 and 1 with a sigma of 21 days.
The Prophet validation was performed by temporal cross-validation, using the cross_validation() function from the library. The parameters included an initial training period of 780 days, cutoff interval of 180 days, and a forecast horizon of 365 days. The accuracy metrics used were Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE).
For comparison, Autoregressive Integrated Moving Average (ARIMA) and Long Short-Term Memory (LSTM) models were used. The ARIMA was implemented with the pmdarima library for automatic parameter search (p, d, q, P, D, Q) with a seasonality of 52 weeks (Hyndman and Athanasopoulos, 2021). The LSTM was implemented with TensorFlow, using a sequential architecture of four layers, with Dropout layers for regularization.
The three models were evaluated on the same data partition, with 80% for training and 20% for testing, corresponding to approximately 52 weeks for testing. The Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE) metrics were calculated for each of the five seasonal groups. The ARIMA and LSTM models were trained without exogenous variables, unlike Prophet. LSTM showed the worst performance in most groups, with the exception of the Easter group, where its performance was intermediate between the other models.
The methodological flow culminated in the generation of a strategic editorial calendar for the triennium 2026-2028. This calendar indicated publication windows consistent with the Brazilian cultural calendar, considering the anchor dates and the temporal windows of each seasonal event, with the objective of optimizing the anticipation of content production.
3. Results and Discussion
The analysis of Google Trends search data revealed distinct seasonal patterns for culinary queries, fundamental for editorial planning. A total of 2,734 queries were collected and classified into seven categories, using a scoring system based on temporal concentration. This approach allowed for the identification of cultural relevance and search behavior associated with different events throughout the year, providing a solid foundation for subsequent forecasting and strategic calendar generation steps. The distribution of queries across categories demonstrated the diversity of public interest.
The “Others” category represented the largest share, with 1,082 queries, corresponding to 40% of the total. This result aligns with the site’s editorial repertoire, which includes a wide range of everyday consumption recipes, without pronounced seasonality. A manual check of a sample of these queries confirmed that they were predominantly recipes such as “rice,” “carrot cake,” or “pasta,” which do not exhibit peaks of interest in specific periods. This perennial content base is crucial for the site’s constant traffic.
Among seasonal groups, Festa Junina stood out as the largest, with 846 queries, representing 31% of the total. This predominance is consistent with the cultural importance of June festivals in Brazil and the wide variety of typical dishes associated with them, such as canjica, quentão, and paçoca. In contrast, Christmas, although a date of great impact on website traffic, generating increases of up to 45% in organic access, concentrated a smaller number of queries, 188, equivalent to 7%. This suggests that the peak of Christmas interest is distributed across fewer terms, but with a significantly higher individual search volume.
The other seasonal groups included Summer, with 358 queries (13%), Easter, with 198 queries (7%), and Winter, with 57 queries (2%). The “Stable / Perennial” category was the smallest, with only 5 queries, representing less than 1%. The identification of these groups and their respective proportions was essential to direct the focus of editorial planning, allowing efforts to be concentrated on categories with the greatest potential for seasonal traffic, in line with the study’s objective of optimizing editorial planning.
The visualization of the average monthly seasonal intensity for each group revealed expected temporal patterns. The Stable / Perennial group exhibited high and uniform search intensity throughout the year, confirming its non-seasonal nature. In contrast, the seasonal groups demonstrated concentration in specific periods. Festa Junina and Winter showed a notable temporal overlap, with peaks of interest between May and July, reflecting the proximity of Saint John’s Day (June 24th) and the winter solstice (June 20th-21st). This overlap indicates the need for editorial planning that considers both events in an integrated manner.
Christmas and Summer concentrated their search activities in December, with some residual demand in November and January. Easter, in turn, showed a peak of interest between March and April, with the particularity that the movable date of the event resulted in annual variations in the exact period of the peak. The correlation between the Christmas and Summer groups was 0.94, and between Festa Junina and Winter was 0.93, confirming the temporal overlaps observed and explaining the tendency for these pairs to group together in unsupervised analyses.
Seasonal classification and profile of the groups
The validation of the classification by rules was performed through unsupervised clustering with the K-Means algorithm, seeking to verify the coherence of the data structure with the groupings defined by domain knowledge (Fávero and Belfiore, 2024). For data preparation, each time series was normalized to a scale of 0 to 1, aggregated into 12 monthly columns (average of all years for each month), and standardized with StandardScaler to ensure that all attributes contributed equally to the distance calculation.
The selection of the number of clusters for K-Means used the elbow method and the “Silhouette Score”. The best “Silhouette Score” was 0.69 with K=2, indicating a natural division between queries with and without seasonality. For direct comparison with the categories defined by the rules, K=6 was chosen. The agreement between the two approaches was measured by the Adjusted Rand Index (ARI), which resulted in a value of 0.45, interpreted as moderate agreement.
This moderate agreement was expected for two main reasons. Firstly, K-Means lacked information about the specific dates of events, which led to the merging of groups with close temporal peaks, such as Christmas and Summer, which were grouped into a single cluster of 243 queries, 221 of which belonged to these two categories in the rule-based classification. Secondly, the Festa Junina, being the largest seasonal group with 846 queries, was subdivided by K-Means into three subgroups with slightly distinct profiles, reflecting the internal heterogeneity of this group.
The analysis of the contingency table between the rule-based classifications and K-Means clustering (K=6) confirmed high agreement in the “Others” category, where the flat-profile K-Means group absorbed 99.7% of the queries classified as “Others” by the rules. The merging of Natal and Summer by K-Means into a single group was also observed, as was the subdivision of Festa Junina. The ARI of 0.45, therefore, evidenced that the seasonal macrostructure defined by the domain rules found support in the data, but the temporal ambiguities required domain knowledge that unsupervised clustering could not provide.
Comparison of prediction models
To evaluate the suitability of Prophet as the main model, a comparison was made with ARIMA and LSTM models, using an 80/20 data split, which reserved approximately 52 weeks for testing. The comparison metrics were Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE), calculated for each of the five seasonal groups. This approach allowed for a detailed evaluation of each model’s performance across different types of seasonal patterns, according to the nature of culinary demand.
The ARIMA model demonstrated lower MAE in three of the five seasonal groups: Christmas (2.89), Easter (1.74), and Summer (2.57). These groups are characterized by demand peaks concentrated in a few weeks, indicating that ARIMA is particularly effective for predicting events with sharper, short-term seasonality. In contrast, the Prophet model showed lower MAE in the Festa Junina (3.71) and Winter (6.54) groups, which have broader seasonal windows distributed over several months, suggesting its superiority in more diffuse seasonality patterns.
The LSTM model showed the worst performance in four out of five groups, with consistently higher MAE. The only exception was the Easter group, where it achieved the second lowest MAE (2.73), although still higher than ARIMA (1.74). The inferior performance of LSTM was attributed to the limited volume of available data, with 262 weekly observations. Academic literature, such as Hyndman and Athanasopoulos (2021), recommends significantly larger volumes of data for recurrent neural networks, like LSTM, to effectively learn complex temporal patterns.
The temporal cross-validation of Prophet, performed with an initial training period of 780 days and a forecast horizon of 365 days, yielded higher MAE values than the 80/20 split. This was expected, as cross-validation assesses multiple forecast horizons at different cutoff points, offering a more conservative and robust estimate of the model’s accuracy. The Summer group showed the lowest MAE (4.54), indicating high predictability of its seasonal pattern, while Winter and Festa Junina recorded the highest errors (10.33 and 10.00), consistent with their broader and more diffuse seasonal windows.
The mean absolute percentage error (MAPE) was not reported due to its inapplicability in series with seasonal zeros, as division by zero would render the metric undefined during periods of null demand. This methodological decision was crucial to ensure the validity of accuracy comparisons. The choice of Prophet as the operational model, despite ARIMA showing lower MAE in some groups, was based on operational factors, such as its interpretable decomposition into trend, seasonality, and holiday components.
The Prophet’s interpretable decomposition allows the editorial team to understand the rationale behind the forecasts, facilitating decision-making. Furthermore, the convenience of configuration for generating long-term calendars, including native holiday integration and support for custom regressors, such as the one developed for Easter, were decisive factors. This ease of maintenance by teams not specialized in statistical modeling was a priority feature for the final deliverable, aligning with the need for an efficient and sustainable workflow.
It is important to note that the comparison between the models was not performed under identical conditions, as only Prophet received the Gaussian Easter regressor as an exogenous variable. The inclusion of this customized regressor for the Easter group was a crucial experiment, as the model without it predicted almost constant peaks at the end of March, regardless of the actual Easter date. For the 2028 forecast, the most significant error occurred without the regressor, with the peak predicted for March 26th and the actual Easter on April 16th, a difference of 21 days.
The incorporation of the Gaussian regressor reduced this error to 14 days, representing a 33% improvement in the accuracy of the Easter peak prediction. This result demonstrated the importance of exogenous variables in capturing the complexity of movable dates and motivated the adoption of the regressor in the final version of the Prophet model. The results suggest that a combination of models, using Prophet for broad windows and ARIMA for concentrated peaks, could improve overall accuracy and constitutes an opportunity for future work.
Editorial calendar
The forecast flow culminated in the generation of a strategic editorial calendar for the triennium 2026-2028, using the Prophet model’s predictions. This calendar presents the recommended publication windows for each seasonal group, indicating the campaign start, predicted peak, and campaign end. The calendar’s structure was designed to be intuitive and easy for the editorial team to use, allowing for content production anticipation and optimization of seasonal traffic capture.
The editorial calendar demonstrated publication windows consistent with the Brazilian cultural calendar. Easter, for example, showed the greatest variation between years, with the campaign start oscillating between March and April, according to the event’s movable date. In 2026, with Easter on April 5, the campaign start was in March. In 2027, with Easter on March 28, the start also occurred in March. In 2028, with Easter on April 16, the campaign start was also in March.
The incorporation of the customized Gaussian regressor for Easter was fundamental, allowing the predicted peak to partially follow this annual variation, albeit with a residual error of approximately two weeks. This margin of error was considered acceptable for editorial planning purposes, as publication decisions operate on a weekly, rather than daily, granularity. The ability to adjust forecasts for movable dates is a significant advancement for planning accuracy.
The Festa Junina presented the widest publication window, starting in May and extending through August. This breadth is consistent with the extended period of the June festivals in Brazil and the diversity of recipes associated with this event. The Winter, in turn, presented a partial overlap with the Festa Junina, starting in May and extending through July, reflecting the proximity of the events and the demand for cold-weather recipes.
The Christmas and Summer groups concentrated their publication windows in December, with shorter durations of approximately four weeks. This concentration reflects the more abrupt nature of interest peaks for these events. From an operational standpoint, the calendar indicated that the editorial team should begin preparing Easter content at least six weeks in advance of the event date, and for the Festa Junina, starting in early May.
For Christmas and Summer, the necessary anticipation was shorter, from two to three weeks, due to the more abrupt way in which the peak of interest occurs. Observing these planning windows allows content to be indexed and positioned in search engines before the period of greatest interest, capturing seasonal traffic from the beginning of the growth curve. This anticipation is designed to generate estimated gains of 10 to 15% in seasonal traffic, according to the initial expectations of the study.
In summary, the developed flow allowed classifying 2,734 culinary queries into seasonal and perennial groups, with Festa Junina and the “Others” category being the most representative. K-Means validation confirmed the macro-seasonal structure, albeit with the need for domain knowledge to resolve ambiguities. The comparison of forecasting models indicated that Prophet, with its custom Gaussian regressor for Easter, was the most operationally suitable, generating a strategic editorial calendar for 2026-2028 that is already in use, with the potential to significantly optimize seasonal traffic capture.
4. Conclusion
This work aimed to develop a seasonal culinary trend forecasting workflow based on Google Trends data, seeking to optimize the editorial planning of a recipe website for a large food company in Brazil. To this end, 2,734 weekly culinary queries were collected over five years, which were classified into five seasonal groups and perennial categories using a temporal concentration scoring system. This classification, validated by K-Means clustering with an Adjusted Rand Index of 0.45, demonstrated the macro-seasonal structure of the data, although domain knowledge was essential to resolve temporal ambiguities. Comparing the Prophet, ARIMA, and LSTM models, it was found that ARIMA presented lower mean absolute error in groups with concentrated demand peaks, while Prophet was superior in broader seasonal windows. Prophet was adopted as the operational model due to its interpretable decomposition and ease of maintenance by non-specialized teams, crucial characteristics for the editorial context. The incorporation of a custom Gaussian regressor for Easter reduced the error of the predicted peak for this movable date by 33%. As the main contribution, the workflow generated a strategic editorial calendar for the triennium 2026-2028, already in use by the website team, with estimated gains of 10 to 15% in seasonal traffic, by enabling the anticipation of content production and publication.
The study’s limitations included the exclusive reliance on Google Trends as a data source, without integrating internal website or social media information, and the comparison between forecasting models did not occur under identical conditions, as only Prophet received exogenous variables. Additionally, the calibration of the Easter regressor’s sigma parameter and classification thresholds was performed heuristically, without sensitivity analysis, and the available data volume proved insufficient for the LSTM model to fully explore its deep learning potential. For future work, it is suggested to implement a combination of models, using Prophet for broad seasonal windows and SARIMAX for concentrated peaks, extend the Easter regressor to other models for a more equitable comparison, include additional seasonal events such as Carnival and Mother’s Day, and integrate internal traffic data as a complementary variable to improve forecasts.
Bibliographic References
Baye, M. R.; De los Santos, B.; Wildenbeest, M. R. 2016. Search engine optimization: what drives organic traffic to retail sites? Journal of Economics & Management Strategy 25(1): 6-31.
Choi, H.; Varian, H. 2012. Predicting the present with Google Trends. Economic Record 88(s1): 2-9.
Fávero, L. P.; Belfiore, P. 2024. Manual de análise de dados: estatística e machine learning com Excel, SPSS, Stata, R e Python. 1ed. Editora GEN LTC, São Paulo, SP, Brasil.
Google News Lab. 2016. The Rhythm of Food. Disponível em: https://rhythm-of-food.net/ [Acesso em: 15 mar. 2026].
Hyndman, R. J.; Athanasopoulos, G. 2021. Forecasting: principles and practice. 3ed. OTexts, Melbourne, Austrália. Disponível em: https://otexts.com/fpp3/ [Acesso em: 15 mar. 2026].
Medeiros, M. C.; Pires, H. F. 2021. The proper use of Google Trends in forecasting models. arXiv preprint arXiv:2104.03065.
Spence, C. 2021. Explaining seasonal patterns of food consumption. International Journal of Gastronomy and Food Science 24: 100332.
Taylor, S. J.; Letham, B. 2018. Forecasting at scale. The American Statistician 72(1): 37-45.
Article originating from the Final Course Project of the Specialization in Data Science and Analytics of the MBA USP/Esalq
To learn more about the course, click here and access the MBX Academy platform