Time-series Forecasting of Electricity Prices for Industries in Portugal: A Real-world Internship-based Study

dc.contributor.advisorSeruca, Isabel
dc.contributor.authorKhalid, Naiya
dc.date.accessioned2025-12-17T17:17:23Z
dc.date.available2025-12-17T17:17:23Z
dc.date.issued2025-11-25
dc.date.submitted2025-12-17
dc.description.abstractThis work presents the development of a short-term electricity price forecasting solution using machine learning, conducted during the author’s internship at Vanaci Prime, an IT consulting firm specializing in data-driven solutions. The project was developed for the Portuguese market, in collaboration with a client from the energy sector, and addresses the critical need for accurate, real-time, and scalable electricity price forecasts to support strategic planning, cost optimization, and operational decision-making. The forecasting system is built upon a unified dataset combining information from three authoritative sources: OMIE (day-ahead marginal electricity prices for the Iberian market), REN Datahub (electricity load and renewable generation), and the Copernicus Climate Data Store (meteorological variables including temperature, solar radiation, and precipitation). The combined data underwent extensive time-series preprocessing and feature engineering, including lag features, rolling statistics, calendar-based encodings, interaction terms, and normalized indicators reflecting load trends and solar activity. Multiple machine learning models were explored—namely LightGBM, XGBoost, and Extra Trees—with LightGBM ultimately selected due to its superior performance and generalization capability. A complete machine learning pipeline in Python was developed to automate the transformation of raw input data into model-ready features. To enhance the solution’s practical utility, a consumerfocused component was added to estimate potential monthly savings based on predicted electricity prices. The trained model and preprocessing pipeline are serialized and deployed using the FastAPI web framework to serve real-time predictions via web endpoints. Overall, the work demonstrates how artificial intelligence techniques can be used to automate and optimize electricity price forecasting by integrating environmental, market, and load data, while offering a replicable methodology for similar forecasting challenges in the energy sector.
dc.identifier.citationKhalid, N. (2025). Time-series Forecasting of Electricity Prices for Industries in Portugal: A Real-world Internship-based Study [Dissertação de Mestrado em Ciência de Dados, Universidade Portucalense]. Repositório Institucional UPT. https://hdl.handle.net/11328/6851
dc.identifier.urihttps://hdl.handle.net/11328/6851
dc.language.isoeng
dc.rightsopen access
dc.rights.urihttp://creativecommons.org/licenses/by/4.0/
dc.subjectElectricity price forecasting
dc.subjectMachine learning
dc.subjectTime series
dc.subject.fosCiências Naturais - Ciências da Computação e da Informação
dc.titleTime-series Forecasting of Electricity Prices for Industries in Portugal: A Real-world Internship-based Study
dc.typemaster thesis
dspace.entity.typePublication
person.affiliation.nameREMIT – Research on Economics, Management and Information Technologies
person.familyNameSeruca
person.givenNameIsabel
person.identifier.ciencia-id191B-FFC7-0BF6
person.identifier.orcid0000-0002-9951-6378
person.identifier.ridP-1273-2014
person.identifier.scopus-author-id6508239883
relation.isAdvisorOfPublicationa13477f3-f0a6-49b3-a5b9-506da8e749b6
relation.isAdvisorOfPublication.latestForDiscoverya13477f3-f0a6-49b3-a5b9-506da8e749b6
thesis.degree.nameMestrado em Ciência de Dados

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
exemplar_3476.pdf
Size:
5.72 MB
Format:
Adobe Portable Document Format