October 26, 2026
Analysis and modeling of wind time series applied to the estimation of Brazilian wind generation
Rodrigo Guimarães Pìnheiro; Ricardo Janes
DOI: 10.22167/2675-6528-202603440
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 growing participation of wind generation in the Brazilian electricity matrix imposes challenges to the operation of the National Interconnected System, due to the intermittency of wind and the quality of meteorological data in generation estimation. The time series of wind speed was analyzed and modeled, evaluating the impacts of invalid wind records on estimated wind generation, with the Delta 7 II plant of the Paulino Neves Complex as a case study. Public data from ONS, with a temporal resolution of 30 minutes, from October 2021 to May 2025, were used. After data exploration, treatment, and selection, an exploratory analysis of the wind series was performed, classical methods for filling missing values were evaluated (adopting linear interpolation), and time series and machine learning models were applied. The forecasting models were evaluated in training and testing environments with temporal splitting. The complete Random Forest presented the best performance on the test set, demonstrating a greater ability to capture non-linear relationships and complex seasonal patterns. However, external validation with future data revealed a structural limitation of the method, characterized by smoothed forecasts and loss of sensitivity to short-term variability. It was concluded that the explicit treatment of invalid wind and the judicious use of machine learning-based models can contribute to the improvement of wind generation estimation, provided that the limitations associated with forecasting in future horizons are considered.
Keywords: Wind energy; Random Forest; Time series; Brazilian electric system; Invalid wind.
1. Introduction
The Brazilian Electric Sector (SEB) is recognized as one of the most strategic and complex in the country, playing a fundamental role in the supply of electricity nationwide and in the country’s development. Its structure is composed of four main segments — Generation, Transmission, Distribution, and Commercialization — and coordinated by seven institutions, including the National Electric Energy Agency (ANEEL) and the Ministry of Mines and Energy (MME, 2021; ATLAS GOV, 2023).
The National Electric System Operator (ONS) plays a central role, being responsible for operating and controlling the National Interconnected System (SIN), which covers all Brazilian regions. The SIN integrates various energy production sources, such as hydroelectric, thermoelectric, solar, nuclear, and, increasingly, wind. The interconnection of subsystems allows for energy transfer, ensuring security and economy in serving the consumer market (ONS, c2025).
Wind power generation has shown significant growth in the Brazilian electricity matrix in recent years, particularly in the Northeast and South regions. In 2023, this source was responsible for 13.5% of total generation, representing a 17.4% increase compared to 2022 (ONS, c2025; EPE, 2024). However, the intermittent nature of wind poses considerable challenges to the operation of the SIN and the quality of meteorological data used in estimating wind power generation. The growing proportion of energy from renewable and intermittent sources increases the complexity of the system’s energy balance and, consequently, the formation of energy prices (HUEZ TELECOM and SENAI-RS, 2022).
For the operation of the system and the definition of the price of electrical energy, the ONS employs optimization models that aim to minimize operational cost, but which are subject to several restrictions and present high price volatility (Gomes, 2023). The importance of wind generation forecasting and data processing for this forecast has been widely discussed in the literature (Liu and Chen, 2019), with growing interest in energy futures price models (Lu et al., 2021). However, initial data analyses revealed a strong dependence between estimated wind generation and the quality of wind records, especially in periods classified as “invalid wind”.
The presence of “invalid wind” is a critical factor that degrades the quality of wind power generation estimation, often associated with generation values equal to zero even during periods with positive verified generation. This problem justifies the need for specific approaches to the treatment and reconstruction of these records. Thus, this study aims to contribute to the improvement of wind power generation estimation in Brazil through the analysis of time series associated with this process, adopting as a main focus the modeling of wind speed, understood as a critical and conditioning variable for the quality of this estimation.
2. Material and Methods
The present study adopted a quantitative approach, of an exploratory nature and time series modeling. The main objective was to analyze and model the wind speed time series, aiming to improve the estimation of wind power generation in Brazil, with a focus on handling “invalid wind” records.
The data were collected from the Open Data Portal of the National Electric System Operator (ONS), covering the period from October 2021 to May 2025, with a temporal resolution of 30 minutes. CSV format files were used, containing information on verified and estimated wind generation, wind speed, invalid wind indicator, plant identification, and geographical information.
An initial exploration was carried out in Excel of the RESTRICAO_COFF_EOLICA_2024_12 (data aggregated by plant set) and RESTRICAO_COFF_EOLICA_DETAIL_2024_12 (individual data per plant) databases. Consistency between the databases was verified, and the wind speed and invalid wind indicator variables were identified in the detailed database, which became the main focus of analysis.
The monthly bases provided by ONS were consolidated into a single dataset. Structural inspection was carried out, with adjustments to variable types, removal of records with null estimated generation, and elimination of columns not essential to the study, aiming for greater computational efficiency.
The selection of eligible power plants was based on objective data quality criteria. For each generating unit, the percentage of observations with strictly positive verified generation, used as a proxy for operational regularity, and the percentage of records classified as invalid wind were calculated. Only power plants that presented positive verified generation in more than 90% of the analyzed period were kept.
The remaining plants were classified into quartiles according to the percentage of invalid wind. The third quartile, with invalid wind percentages between 19% and 35%, was selected for representing a balance between relevant incidence of invalid data and maintenance of consistent operational behavior. The Paulino Neves Set was defined as the object of study, and the Delta 7 II plant was selected for in-depth analysis.
After selection, the data were standardized, reviewed for types, and exported in CSV and “Pickle” formats, ensuring reproducibility. Subsequently, an additional exploratory analysis of the wind speed time series of the Delta 7 II plant was performed, with the objective of understanding its temporal structure and identifying seasonal patterns at different scales.
Simple methods for filling missing wind series values were evaluated, applied exclusively to points marked as invalid but with a recorded value. The methods considered included linear interpolation, moving averages with different time windows, “forward fill”, and “backward fill”. Linear interpolation was adopted for presenting the lowest root mean square error (RMSE) and ensuring series continuity.
The continuous series was subjected to classical exploratory analysis, by calculating aggregated averages of wind speed by month, day of the month, and hour of the day, allowing for the identification of seasonal patterns at multiple time scales. Classical time series decomposition, with annual periodicity, was applied to separate the trend, seasonality, and residual components.
Wind modeling was conducted from a temporal partitioning of the series, allocating 85% of observations for training and 15% for testing, strictly preserving the chronological order of the data. Classic time series models were fitted, including Seasonal Naive, Simple Exponential Smoothing (SES), Holt, Holt-Winters, ARIMA, AutoARIMA, and SARIMA.
Machine learning-based models were developed, with an emphasis on the Random Forest algorithm. The wind series was transformed into a supervised regression problem through temporal feature engineering, incorporating temporal lags, moving statistics, calendar variables, and Fourier terms (Goehry et al., 2018; Marzak et al., 2025; Galán-Sales et al., 2023).
All computational steps of the study were implemented in a Python environment, using the Spyder software. The models were evaluated in training and testing environments using error metrics, such as the root mean squared error (RMSE). Hyperparameter optimization was performed by temporal cross-validation (“TimeSeriesSplit”), ensuring that each validation set was subsequent to its respective training set.
An external validation was conducted using plant data for the month of June 2025. The complete Random Forest was applied directly to this future period, without retraining, and evaluated at different time horizons (2, 7, 14, and 30 days) to analyze the predictive capacity of the models in temporal extrapolation scenarios.
3. Results and Discussion
The initial analysis of the data, from the Open Data Portal of the National Electric System Operator (ONS), revealed a robust database, but with challenges inherent to the quality of wind records. The application of rigorous filtering and selection criteria resulted in a substantial reduction of the original set, which contained tens of millions of observations from over a thousand power plants. This step was crucial to delimit a subset of generating units with consistent operational behavior, ensuring the statistical robustness necessary for subsequent analyses. The criterion of strictly positive verified generation in more than 90% of the analyzed period proved particularly effective in excluding power plants with high intermittency or low data quality.
A strong dependence was observed between the occurrence of invalid wind and the estimation of wind power generation. In the treated database, the estimated generation assumed a value of zero in approximately 88% of the observations classified as invalid wind. In contrast, this condition was rare in periods with valid wind, occurring in only 1.27% of cases. This discrepancy highlighted the direct and significant impact of invalid wind data on the quality of wind power generation estimation, reinforcing the need for specific approaches to the treatment and reconstruction of these critical records. The problem of invalid wind, therefore, is not restricted to a matter of missing data, but of records that induce incorrect estimates.
The classification of power plants into quartiles, based on the percentage of invalid wind records, allowed for the identification of ranges of interest for the study. The third quartile, which encompassed plants with invalid wind percentages between 19% and 35%, stood out as a convenient range. This choice was justified by presenting a sufficient volume of invalid data to impact the estimation models, without compromising the global representativeness of the time series. Within this group, operational sets with multiple plants were prioritized, ensuring the consistency of analyses at both individual and aggregated levels, which was fundamental for the selection of the study object.
The Paulino Neves Set was selected as the final object of study, based on evidence that it brought together multiple plants with high availability of verified positive generation and a significant incidence of invalid wind, predominantly in the intermediate quartiles. These characteristics made the set ideal for investigating the impacts of invalid wind data and for evaluating the effectiveness of modeling strategies that could mitigate its effects. The Delta 7II plant, belonging to this set, was chosen for in-depth analysis, serving as a case study for the detailed exploration and modeling of wind speed.
Descriptive analysis of the Paulino Neves Set and error metrics for generation
The statistical metrics calculated between the verified generation and the estimated generation in the Paulino Neves Set revealed significant differences when considering the presence or absence of invalid wind. The analysis of the Root Mean Square Error (RMSE) demonstrated a consistent reduction in errors for most plants when observations with invalid wind were excluded from the database. In aggregate terms, an expressive reduction in the set’s RMSE was observed, indicating that the presence of invalid wind contributes significantly to the degradation of the quality of the estimated generation.
Similar results were observed for the Mean Absolute Error (MAE), the coefficient of determination (R²), and the Pearson correlation coefficient, which showed substantial improvements in most plants after excluding invalid wind records. For example, the Delta 7II plant showed a 52% reduction in RMSE when removing invalid data, while the grouped set had a 46% reduction. These findings confirm the strong dependence of the estimated generation on the quality of wind data, highlighting that periods with invalid wind introduce significant noise into the estimation process.
The classification of the plants regarding the occurrence of estimated generation equal to zero reinforced these conclusions. For most units, the estimated generation assumed a value of zero in more than 97% of observations with invalid wind, while this condition was rare when the wind was valid. The Delta 6II plant, however, stood out as an atypical case, presenting a relatively high proportion of estimated generation equal to zero (8.90%) even in observations with valid wind, suggesting possible specific inconsistencies in its operational data.
The visual analysis of the time series corroborated the quantitative results, showing that, although the estimated generation follows the general trend of the verified generation, significant losses of adherence occur in periods characterized by invalid wind. In these moments, the estimated generation frequently remained at zero, despite the positive verified generation. The graphs also highlighted the cyclical nature of generation and wind, reinforcing the direct relationship between these variables and the need for specific treatment for invalid wind data, as the main focus of this study.
Study on the Delta 7II plant: Wind exploration and modeling
The evaluation of simple methods for filling the wind series of the Delta 7II plant indicated that different classical deterministic approaches are capable of covering punctual gaps without substantially altering the general behavior of the series. Among the methods analyzed, linear interpolation was adopted for presenting the lowest RMSE of 1.364 among the alternatives that completely filled the gaps. Other methods, such as moving averages (6, 12, 24, and 48 periods), presented RMSEs between 0.959 and 2.128, but did not completely eliminate missing values. The choice of linear interpolation sought to reconcile adequate performance, simplicity, and stability, essential conditions for subsequent exploratory analyses, decomposition, and modeling.
The analysis of temporal averages evidenced the presence of consistent seasonal patterns in the wind series of the Delta 7II plant. A systematic variation was observed throughout the year, indicating a relevant annual seasonality. Additionally, a defined intraday cycle was identified, reflecting the influence of local atmospheric processes. These results indicate that wind dynamics exhibit a clear dependence on the calendar, both on an annual and hourly scale, which is crucial for the construction of predictive models.
The time series decomposition confirmed the existence of a long-term trend without clear behavior, combined with a marked annual seasonality. The residual component concentrated most of the high-frequency variability, associated with rapid fluctuations and non-systematic events. Overall, the results of the exploration and decomposition indicated that the wind speed series combines multiple temporal scales and high residual variability. This complexity imposes limitations on purely linear models and motivates the adoption of approaches capable of handling complex seasonalities and non-linear relationships in the subsequent stages of the work.
In the modeling stage, classical time series models, including Seasonal Naive, Simple Exponential Smoothing (SES), Holt, Holt-Winters, ARIMA, AutoARIMA, and SARIMA, presented relevant limitations. The annual Seasonal Naive, for example, managed to partially absorb the dominant seasonal behavior of the wind series, adequately reproducing the average level and annual periodicity, but did not achieve the best quantitative performance, with an RMSE of 2.8232. The other classical models showed difficulty in capturing the series’ dynamics, presenting overly smoothed forecasts and being unable to reproduce rapid oscillations and abrupt changes in wind.
Statistical tests applied to the residuals of these classic models reinforced their limitations, identifying the recurrent presence of heteroscedasticity, non-normality, and residual autocorrelation. These results indicate that the fundamental hypotheses of classic linear models are not met by the wind series, which helps explain the inferior performance of these models. Wind variability, typical of environmental series, challenges approaches based on linear structures and white noise assumptions, justifying the search for more advanced methods.
In contrast, the full Random Forest model showed the best overall performance on the test set, with an RMSE of 0.8819. This result significantly outperformed the simple Random Forest (RMSE of 2.0483) and the classic models. The robustness of this performance is associated not only with the method’s intrinsic ability to capture non-linear relationships but also with the feature engineering adopted in its construction. The incorporation of temporal lags, moving statistics, calendar variables, and Fourier components allowed the model to capture the series’ memory, recent wind behavior, and seasonal patterns at different scales, with no clear evidence of “overfitting” within the historical sample.
It is important to note that the statistical tests applied to the Random Forest residuals also indicated violations of normality and homoscedasticity. However, unlike classical models, these violations do not invalidate the Random Forest, as the method does not depend on parametric assumptions about the distribution of errors. The model’s performance is directly evaluated by predictive metrics, making it more suitable in contexts where the statistical structure of the residuals is complex, as in the case of the wind speed series, which exhibits high volatility and complex seasonalities.
External validation with future data from June 2025, however, revealed a structural limitation of the full Random Forest. A significant attenuation of predictions was observed, characterized by strong smoothing of the predicted series, even at short horizons (2, 7, 14, and 30 days). This behavior indicates that, in temporal extrapolation scenarios, the method tends to converge to conditional average values learned during training, losing sensitivity to the high-frequency wind dynamics. This limitation is not only in the choice of lags or the design of “features”, but in the very nature of the method, which, although effective for prediction within the sample window, has limited capacity to reproduce rapid variations in future periods, especially in environmental series with high volatility.
In summary, the research demonstrated that explicit treatment of invalid wind is crucial for the quality of wind generation estimation, and that machine learning-based models, such as Random Forest, can offer superior performance to classical time series models in reconstructing the temporal structure of wind. However, external validation revealed that, despite its effectiveness within the sample window, Random Forest’s ability to reproduce rapid variations in future forecasts is structurally limited, which requires careful consideration when applying these models over longer forecast horizons for the operation of the National Interconnected System.
4. Conclusion
This study aimed to contribute to the improvement of wind power generation estimation in Brazil, focusing on wind speed modeling, a critical variable for the quality of this estimation. It was found that the presence of invalid wind records constitutes a significant factor in the degradation of estimated wind generation, often associated with zero generation values even during periods of positive production. The exclusion of this invalid data demonstrated a consistent reduction in errors for metrics such as Mean Squared Error and Mean Absolute Error for most of the analyzed plants. In the modeling of the wind series for the Delta 7II plant, linear interpolation was adopted to fill gaps, balancing simplicity and adequate performance. Consistent seasonal patterns were observed, both annual and intraday. Classic time series models showed limitations in capturing the complex dynamics of wind, with smoothed forecasts and residuals that violated statistical assumptions. In contrast, the complete Random Forest model achieved the best performance on the test set, highlighting its ability to capture non-linear relationships and complex seasonal patterns through robust feature engineering. The main contribution lies in demonstrating the importance of explicit treatment of invalid wind data and the superiority of machine learning models for reconstructing the temporal structure of wind, offering more consistent estimates for the operation of the National Interconnected System.
However, the study presented important limitations. The need to fill the wind series, although essential, may influence local dynamics and modeling results. Additionally, external validation with future data revealed a structural limitation of Random Forest: its predictions were attenuated and showed a loss of sensitivity to high-frequency variability in temporal extrapolation scenarios, an inherent behavior of the method in volatile environmental series. The analysis focused on a single plant, which restricts the direct generalization of the results to the entire Brazilian wind farm. For future studies, it is suggested to explore models with explicit temporal dynamics or hybrid approaches that integrate statistical components with physical information of the phenomenon. It is also recommended to incorporate exogenous meteorological variables to provide additional physical context, reducing exclusive dependence on past history and improving the models’ ability to respond to changes in future atmospheric conditions.
Bibliographic References
Atlas Governance [ATLAS GOV]. Setor elétrico brasileiro: características e desafios. 2023. Disponível em: https://welcome.atlasgov.com/blog/mercado/setor-elétrico-brasileiro/. Acesso em: 24, março, 2025.
Empresa de Pesquisa Energética [EPE]. 2024. BEN 2024 | Relatório Síntese | Ano base 2023. Disponível em: https://www.epe.gov.br/sites-pt/publicacoes-dados-abertos/publicacoes/PublicacoesArquivos/publicacao-819/topico-715/BEN_S%C3%ADntese_2024_PT.pdf. Acesso em: 24, março, 2025.
Galán-Sales, F.J.; Reina-Jiménez, P.; Carranza-García, M.; Luna-Romera, J.M. 2023. An approach to enhance time series forecasting by fast Fourier transform. In: International Conference on Soft Computing Models in Industrial and Environmental Applications (SOCO), 18., 2023, Cham, Switzerland. Proceedings… Cham, Switzerland. p. 259–268. (Lecture Notes in Networks and Systems, v. 749).
Goehry, B.; Yan, H.; Goude, Y.; Massart, P.; Poggi, J.-M. 2018. Random forests for time series. REVSTAT – Statistical Journal 16(1): 1–34.
Gomes, I. N., 2023. MVP Sprint III: Engenharia de Dados. PUC Rio: Pós-graduação em Ciência de Dados e Analytics
Huez Telecom – Serviços de Telecomunicação Ltda [HUEZ TELECOM] e Instituto SENAI de Tecnologia em Petróleo, Gás e Energia [SENAI-RS]. 2022. Plataforma modular de gerência de dados e criação de modelos de aprendizado de máquina para previsão de carga e preço da energia elétrica e outras formas de uso final – Relatório Técnico Parcial 2.
Liu H; Chen C. 2019 Data processing strategies in wind energy forecasting models and applications: A comprehensive review. Applied Energy 2019; 249:392-408. https://doi.org/10.1016/j.apenergy.2019.04.188.
Lu et al., 2021 [Referência completa não encontrada no documento original]
Marzak, Z.; Benabbou, R.; Mouatassim, S.; Benhra, J. 2025. Forecasting multivariate time series with trend and seasonality: a random forest approach. In: International Conference on Innovative Intelligent Industrial Production and Logistics (IN4PL), 2024, Cham, Switzerland. Proceedings… Cham, Switzerland. p. 128–144. (Communications in Computer and Information Science, v. 2373).
Ministério de Minas e Energia [MME]. 2021. Conheça as instituições do setor elétrico brasileiro e as competências de cada uma. Disponível em: https://www.gov.br/mme/pt-br/assuntos/noticias/conheca-as-instituicoes-do-setor-eletrico-brasileiro-e-as-competencias-de-cada-uma. Acesso em: 24, março, 2025.
Operador Nacional do Sistema Elétrico [ONS]. c2025. Sobre ONS – O que é ONS. Disponível em: https://www.ons.org.br/paginas/sobre-o-ons/o-que-e-ons#. Acesso em 24, março, 2025.
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