Skip to main navigation Skip to search Skip to main content

Modeling Wind Energy Production Forecasting using Machine Learning: An In-depth Analysis of Wind Farms in Morocco

  • Mohamed Bousla
  • , Mohamed Belfkir
  • , Omar Elharrouss
  • , Ahmed Sadki
  • , Ali Haddi
  • , Youness El Mourabit
  • , Badre Bossoufi
  • , Abderrahman Mouradi
  • , Abderrahman Elkharrim

Research output: Contribution to journalArticlepeer-review

Abstract

Accurate forecasting of wind energy production is essential for the stable integration of renewable energy sources into power grids, especially given the inherent variability of wind conditions. This study evaluates the effectiveness of Transformer-based models for improving wind energy forecasting accuracy, compared to traditional methods such as Recurrent Neural Networks (RNNs), Long Short-Term Memory (LSTM), and Gated Recurrent Units (GRUs). Unlike the conventional sequential models, the Transformer models leverage an advanced attention mechanism, which processes all time steps simultaneously rather than sequentially, thereby efficiently capturing complex, long-term dependencies within the data. To conduct this analysis, we utilized a dataset collected from an operational wind farm located in Tetouan, northern Morocco, covering the period from 2019 to 2020. The experimental results show that the Transformer model consistently outperformed the traditional methods, achieving Mean Squared Error (MSE) of 0.275, 0.234, and 0.221, and Mean Absolute Error (MAE) of 0.305, 0.296, and 0.284 for daily, weekly, and monthly forecasting horizons, respectively. Specifically, the Transformer model achieved approximately a 10% reduction in Mean Absolute Percentage Error (MAPE) compared to the LSTM model. These findings demonstrate the substantial advantage of Transformer-based approaches in wind energy forecasting and underline their potential to significantly enhance the reliability of renewable energy integration into modern power grids.

Original languageEnglish
Pages (from-to)23268-23276
Number of pages9
JournalEngineering, Technology and Applied Science Research
Volume15
Issue number3
DOIs
Publication statusPublished - Jun 2025

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 7 - Affordable and Clean Energy
    SDG 7 Affordable and Clean Energy

Keywords

  • GRU
  • LSTM
  • ML
  • RNN
  • transformer-based models
  • wind energy
  • wind power forecast

ASJC Scopus subject areas

  • General Engineering
  • Materials Science (miscellaneous)
  • Signal Processing

Fingerprint

Dive into the research topics of 'Modeling Wind Energy Production Forecasting using Machine Learning: An In-depth Analysis of Wind Farms in Morocco'. Together they form a unique fingerprint.

Cite this