<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1 20151215//EN" "http://jats.nlm.nih.gov/publishing/1.1/JATS-journalpublishing1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xml:lang="en" article-type="research-article" dtd-version="1.1">
<front>
<journal-meta>
<journal-id journal-id-type="pmc">CMES</journal-id>
<journal-id journal-id-type="nlm-ta">CMES</journal-id>
<journal-id journal-id-type="publisher-id">CMES</journal-id>
<journal-title-group>
<journal-title>Computer Modeling in Engineering &#x0026; Sciences</journal-title>
</journal-title-group>
<issn pub-type="epub">1526-1506</issn>
<issn pub-type="ppub">1526-1492</issn>
<publisher>
<publisher-name>Tech Science Press</publisher-name>
<publisher-loc>USA</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">70954</article-id>
<article-id pub-id-type="doi">10.32604/cmes.2025.070954</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Article</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>Requirements and Constraints of Forecasting Algorithms Required in Local Flexibility Markets</article-title>
<alt-title alt-title-type="left-running-head">Requirements and Constraints of Forecasting Algorithms Required in Local Flexibility Markets</alt-title>
<alt-title alt-title-type="right-running-head">Requirements and Constraints of Forecasting Algorithms Required in Local Flexibility Markets</alt-title>
</title-group>
<contrib-group>
<contrib id="author-1" contrib-type="author" corresp="yes">
<name name-style="western"><surname>Segura</surname><given-names>Alex</given-names></name><email>alex.segura@udg.edu</email></contrib>
<contrib id="author-2" contrib-type="author">
<name name-style="western"><surname>Mel&#x00E9;ndez</surname><given-names>Joaquim</given-names></name></contrib>
<aff id="aff-1"><institution>Department of Electrical, Electronic and Automatic Engineering, University of Girona</institution>, <addr-line> Girona, 17003</addr-line>, <country>Spain</country></aff>
</contrib-group>
<author-notes>
<corresp id="cor1"><label>&#x002A;</label>Corresponding Author: Alex Segura. Email: <email>alex.segura@udg.edu</email></corresp>
</author-notes>
<pub-date date-type="collection" publication-format="electronic">
<year>2025</year>
</pub-date>
<pub-date date-type="pub" publication-format="electronic">
<day>30</day><month>10</month><year>2025</year>
</pub-date>
<volume>145</volume>
<issue>1</issue>
<fpage>649</fpage>
<lpage>672</lpage>
<history>
<date date-type="received">
<day>28</day>
<month>07</month>
<year>2025</year>
</date>
<date date-type="accepted">
<day>18</day>
<month>09</month>
<year>2025</year>
</date>
</history>
<permissions>
<copyright-statement>&#x00A9; 2025 The Authors.</copyright-statement>
<copyright-year>2025</copyright-year>
<copyright-holder>Published by Tech Science Press.</copyright-holder>
<license xlink:href="https://creativecommons.org/licenses/by/4.0/">
<license-p>This work is licensed under a <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
</license>
</permissions>
<self-uri content-type="pdf" xlink:href="TSP_CMES_70954.pdf"></self-uri>
<abstract>
<p>The increasing use of renewable energy sources, combined with the increase in electricity demand, has highlighted the importance of energy flexibility management in electrical grids. Energy flexibility is the capacity that generators and consumers have to change production and/or consumption to support grid operation, ensuring the stability and efficiency of the grid. Thus, Local Flexibility Markets (LFMs) are market-oriented mechanisms operated at different time horizons that support flexibility provision and trading at the distribution level, where the Distribution System Operators (DSOs) are the flexibility-demanding actors, and prosumers are the flexibility providers. This paper investigates the requirements and constraints of forecasting algorithms required to participate in LFMs. The paper analyses the adequacy of current load forecasting algorithms to fulfill the requirements of LFMs. The work extracts the forecasting requirements for data granularity, forecasting horizon, participants aggregation, and their relevance for market operation; highlighting the implications of data availability at both training and forecasting stages related to the different local market actors (i.e., DSO, aggregator, prosumer) and market operation timing. The analysis evidences the relevance of load aggregation and forecasting horizon in the performance of forecasting algorithms and their impact on the accuracy, depending on the actors and stages during market operation. It evaluates how data volume, forecasting horizon, and participant aggregation affect the performance of forecasting models. Key findings show that aggregating participants and reducing the forecasting horizon considerably improve forecasting accuracy. The accuracy of DSO forecasting is usually better due to the availability and completeness of aggregated data at the system level (i.e., feeder, transformer, substation). Main findings show that increasing training data further than half a year does not keep improving forecasting accuracy, using a next-hour time horizon achieves around 29% better accuracy than a next-day time horizon, aggregating LFM participants can increase forecasting up to 100% depending on the aggregation number. The findings are discussed in the context of LFM operated with current data infrastructures and provide recommendations for improving the integration of forecasting algorithms to enhance flexibility management.</p>
</abstract>
<kwd-group kwd-group-type="author">
<kwd>Energy flexibility</kwd>
<kwd>local flexibility markets</kwd>
<kwd>smart grids</kwd>
<kwd>machine learning</kwd>
<kwd>ensemble learning</kwd>
<kwd>short-term load forecasting</kwd>
</kwd-group>
<funding-group>
<award-group id="awg1">
<funding-source>RESCHOOL project&#x2014;Strategies and Tools for Incentivization</funding-source>
<award-id>101096490</award-id>
</award-group>
</funding-group>
</article-meta>
</front>
<body>
<sec id="s1">
<label>1</label>
<title>Introduction</title>
<p>The increasing use of renewable energy sources combined with increasing electricity demand has highlighted the importance of energy flexibility management in electrical grids [<xref ref-type="bibr" rid="ref-1">1</xref>]. Energy flexibility is the ability of the grid operator to manage variations in demand or generation, which is essential to ensure the stability and efficiency of the grid [<xref ref-type="bibr" rid="ref-2">2</xref>]. The Distribution System Operator (DSO) requires reliable electricity demand forecasts to, first, properly determine the occurrence of critical events (i.e., congestion or voltage variations) and, second, manage this flexibility (changes in generation or demand) to maintain the grid operating under safe conditions to guarantee the supply.</p>
<p>Smart grids represent a modern evolution in the management of electricity distribution and consumption, integrating advanced digital technologies into traditional power grids. They incorporate features such as smart meters, sensors, and automation systems to optimize grid operations, improve reliability, and accommodate the integration of renewable energy sources [<xref ref-type="bibr" rid="ref-3">3</xref>].</p>
<p>The European Council of Energy Regulators recommends that the DSO procurement of energy flexibility should be market-based [<xref ref-type="bibr" rid="ref-4">4</xref>], using local flexibility markets (LFMs) to trade flexibility locally between flexibility providers and DSOs. This market-based approach appears to be the most promising among the congestion management measures evaluated in [<xref ref-type="bibr" rid="ref-5">5</xref>]. Some studies provide compelling evidence that emerging flexibility market models represent a promising business with technical and economic justification [<xref ref-type="bibr" rid="ref-6">6</xref>].</p>
<p>Furthermore, in Europe, the digitalization of networks and smart metering implementations allows consumers and DSOs to know, close to real time, the consumption and generation patterns. This fact enables more accurate and efficient forecasting of consumption, at different time and spatial resolutions, which ultimately allows the DSOs to operate and manage the electrical grid more effectively.</p>
<p>This work analyses the challenges and requirements of forecast algorithms from the perspective of the different actors involved in flexibility trading through LFMs (commonly operated in a day-ahead basis), focusing on the role of DSOs. The DSO requires demand forecasts at different time scales and locations (i.e., voltage levels) in the grid, aiming to forecast critical events and launch flexibility-demand orders accordingly, as part of its mitigation strategy. Consumers and aggregators should respond to these flexibility demands with specific offers to reduce/increase the respective demand. So, they also require some forecasting capacity to elaborate proper flexibility offers; however, these have the additional advantage since they control (switch on/off, regulation, etc.) of the energy assets. Once the flexibility is traded (agreement between the different actors to increase/decrease demand at a specific time and point of the grid), there is still some time before its activation. In this scenario, short-time forecasting is commonly used to schedule flexible loads to optimally serve the agreed flexibility.</p>
<p>The accuracy of forecasts depends basically on the data quality (representativeness, resolution, availability, errors, etc.); however, market timings and current metering technologies impose constraints on data availability and consequently on the quality of models and these on the forecast results. The paper analyses the impact of market definition on the availability of data for both training the models and using them for forecasting.</p>
</sec>
<sec id="s2">
<label>2</label>
<title>Flexibility Markets: Background</title>
<sec id="s2_1">
<label>2.1</label>
<title>Flexibility Concept, Actors and Products</title>
<p>Flexibility, in the electricity domain, is often defined as the ability to modify generation and/or consumption patterns, or demand, in response to an external signal to contribute to maintaining the stability of the power system cost-effectively [<xref ref-type="bibr" rid="ref-7">7</xref>]. This is exemplified by changing the amount and timing of energy use, as shown in <xref ref-type="fig" rid="fig-1">Fig. 1</xref>, aiming to make the system more reliable, defer investments, reduce emissions, and/or reduce operational costs. <xref ref-type="fig" rid="fig-1">Fig. 1</xref> illustrates how the peak of demand in the morning and early afternoon can be reduced by activating flexibility, that is, incentivizing the consumer to move part of the demand to valley hours, resulting in a flatter curve and consequently in a more efficient system.</p>
<fig id="fig-1">
<label>Figure 1</label>
<caption>
<title>Concept of flexibility</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMES_70954-fig-1.tif"/>
</fig>
<p>Technically, flexibility is defined as a power change activated at a specified time for a specific duration at a particular node of the grid within the power distribution system. Thus, flexibility can be defined by five attributes [<xref ref-type="bibr" rid="ref-8">8</xref>]:
<list list-type="simple">
<list-item><label>a)</label><p>Direction of flexibility (e.g., up or down).</p></list-item>
<list-item><label>b)</label><p>Rate of change (e.g., power capacity).</p></list-item>
<list-item><label>c)</label><p>Starting time and its trigger.</p></list-item>
<list-item><label>d)</label><p>Duration of the flexibility.</p></list-item>
<list-item><label>e)</label><p>Location (e.g, grid node, area, etc.)</p></list-item>
</list></p>
<p>Activation of flexibility can serve multiple purposes, and the goals together with the actors involved in the flexibility trading define the different markets and their operational rules. Thus, demandant of flexibility, i.e., the beneficiaries, are typically the Transmission System Operators (TSOs) and the DSOs, whereas the providers, those that have the capacity to balance generation and demand, are typically the producers and consumers.</p>
<p>The main actors involved in flexibility markets are [<xref ref-type="bibr" rid="ref-9">9</xref>]:
<list list-type="bullet">
<list-item>
<p>Transmission System Operator (TSO): responsible for the operation of the transmission system and its stability. TSO is a flexibility-demanding actor that requires flexibility to maintain energy balance and satisfy technical restrictions to guarantee system stability.</p></list-item>
<list-item>
<p>Distribution System Operator (DSO): responsible for the operation of the distribution system and power delivery to customers. It requires flexibility to avoid congestion, control voltage, and efficiently manage hosting capacity.</p></list-item>
<list-item>
<p>Balance Responsible Party (BRP): market entity (wholesale supplier or retailer) or its chosen representative, responsible for keeping its portfolio in balance. This is done by buying and selling energy with other market parties under the supervision of the grid and market operator.</p></list-item>
<list-item>
<p>Aggregator: acts as a facilitator between small entities providing flexibility (e.g., prosumers) and the market where minimal flexibility capacity is required. They offer aggregated flexibility that consumers can provide to the demanding partners.</p></list-item>
<list-item>
<p>Retailer: commercial entities that buy electric energy in the markets to be resold to their customers. Despite their role in energy trading, in some countries, they can also offer special products based on collaborative approaches similar to the aggregator.</p></list-item>
</list></p>
<p>Flexibility products are managed at different TSO-DSO levels supported by different flexibility markets [<xref ref-type="bibr" rid="ref-9">9</xref>]:
<list list-type="simple">
<list-item><label>a)</label><p><italic>Balancing at the transmission grid</italic>: Flexibility is offered to TSOs to correct imbalances between demand and supply in the electricity markets.</p></list-item>
<list-item><label>b)</label><p><italic>Balancing at the distribution grid</italic>: Flexibility for the transmission grid, offered to TSOs for balancing purposes, but provided in the distribution grid by Distribution Energy Resource (DER) providers.</p></list-item>
<list-item><label>c)</label><p><italic>Flexibility for the distribution grid</italic>: Flexibility products provided by DERs to DSOs for local balancing, voltage and congestion constraints, or reduction of losses. Proposals usually combine services to the DSOs as well as balancing services to the TSO, with hints on the coordination between both.</p></list-item>
</list></p>
<p>The first two categories, in the EU, are operated at different time frames through specific platforms according to availability requirements. These are typically known as Replacement Reserves (RR), Manual Frequency Restoration Reserves with Manual Activation (mFRR), and Restoration Reserves with Automatic Activation (aFRR), according to the harmonized market model definition. On the other hand, local market mechanisms for DSOs still have too low liquidity to be competitive, and their definition and operation depend on existing initiatives. However, the increasing electrification of heating and electromobility envisions the need for rapid development and expansion across the EU. This is the focus of this paper.</p>
</sec>
<sec id="s2_2">
<label>2.2</label>
<title>Local Flexibility Markets</title>
<p>A local flexibility market (LFM) can be defined as an electricity flexibility trading platform to trade flexibility in geographically limited areas such as neighborhoods, communities, towns and small cities [<xref ref-type="bibr" rid="ref-10">10</xref>]. There are some key aspects to consider to better understand the local flexibility markets [<xref ref-type="bibr" rid="ref-11">11</xref>]:
<list list-type="simple">
<list-item><label>a)</label><p>Pre-qualification: It is the process imposed on flexibility assets and service providers to assess the level of complexity and any potential barriers to their participation in the local flexibility market. The process is divided into technical aspects (e.g., pre-qualification tests and other processes) and compliance with the necessary regulatory, legal, and/or financial requirements.</p></list-item>
<list-item><label>b)</label><p>Design of flexibility products: technical specifications of the flexibility products, such as the direction of the traded flexibility, horizon, and activation period, minimum bid size, notice period, time to full activation, and ramping limits.</p></list-item>
<list-item><label>c)</label><p>Trading of flexibility (market design): this considers how, and between which parties, flexibility products are traded.</p></list-item>
<list-item><label>d)</label><p>Activation and settlement procedures: these procedures encompass the communication means for the activation of flexibility services, verification of their execution, and billing.</p></list-item>
</list></p>
<p>The sequence of trading flexibility in an LFM, generally speaking, consists of three main stages [<xref ref-type="bibr" rid="ref-12">12</xref>]:
<list list-type="simple">
<list-item><label>(1)</label><p>Contracting and bidding process: during this process, the DSO and flexibility providers (i.e., aggregator) reach an agreement for flexibility trading through an LFM operator. The result of the agreement includes quantity, time, location, and price of flexibility to be delivered. Flexibility demand is launched by the DSO some time (months, days, hours) before its expected activation. Flexibility demand is motivated by expected critical events in the grid, computed with forecast demand and generation together with grid models. Thus, the accuracy of forecast models is a crucial factor to estimate and elaborate flexibility demands (DSO side). Once the flexibility demand is launched to the market, elaboration of offers implies scheduling load/generation reserves by aggregators (or large prosumers/consumers).</p></list-item>
<list-item><label>(2)</label><p>Activation process: It consists of executing the procured flexibility by responding to a flexibility activation request with the increase or decrease of demand/generation according to agreed conditions. The aggregator (or prosumer) controls the energy assets (e.g., switch on/off of loads and/or DERs, charge/discharge of storage elements) to provide the amount of energy previously traded and under the agreed conditions (time, duration, quantity). The confirmation of the activation is communicated to the LFM operator by the aggregator, and the LFM operator confirms the flexibility provision to the DSO (and/or the BRP).</p></list-item>
<list-item><label>(3)</label><p>Settlement process: The flexibility transactions are completed through settlement arrangements and payment among the DSO, BRP, LFM operator, and aggregators/prosumers. The complexity resides in establishing the baseline from which the amount of activated flexibility is measured and verified. And, this baseline is defined based on forecasting models.</p></list-item>
</list></p>
<p>LFMs can operate at very different time frames (i.e., months in advance, day-ahead or intra-day) and they operate in parallel with the already existing energy and balancing markets [<xref ref-type="bibr" rid="ref-13">13</xref>]. Consequently, multiple forecast models, dealing with different time horizons and granularity, are required for flexibility trading.</p>
<sec id="s2_2_1">
<label>2.2.1</label>
<title>Market Design and Definitions</title>
<p>The DSO is going to be the main buyer of flexibility in an LFM. Firstly, the DSO runs load flow analysis to investigate whether there is a future congestion or any other critical event. In order to run this load flow, accurate demand and generation forecasting is required. The more precision achieved in the forecasting, the more precise the load flow analysis will be, and, ultimately, the flexibility required will be able to solve more effectively the potential critical events in the grid. When the DSO forecasts a risk of critical events in the grid, it sends a request for flexibility to the LFM operator, including delivery information (location where flexibility is needed, type of problem, and system state). The LFM operator informs aggregators and market participants about the flexibility demanded, and these elaborate offers of flexibility accordingly. Finally, the LFM operator clears the market, and the results are sent to both the DSO and aggregators (<xref ref-type="fig" rid="fig-2">Fig. 2</xref>).</p>
<fig id="fig-2">
<label>Figure 2</label>
<caption>
<title>Sequence of trading flexibility in a local flexibility market</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMES_70954-fig-2.tif"/>
</fig>
<p>There are very few LFMs implemented and integrated into the existing EU electricity markets. However, there are promising initiatives covering interesting scenarios and products. One of the most representative is GOPACS, a TSO-DSO intermediary that allows for dealing with the coordination of grid operators outside of the market platform [<xref ref-type="bibr" rid="ref-14">14</xref>]. Basic characteristics include:
<list list-type="simple">
<list-item><label>(1)</label><p>Pre-qualification: is the process of validating and accepting the flexibility provider. Participation in balancing markets usually implies the validation of the activation capacity and the availability of a real-time communication system, but in LFMs, this is usually less restrictive and does not include physical tests. In GOPACS, it takes a maximum of 5 working days.</p></list-item>
<list-item><label>(2)</label><p>Direction of flexibility offered goes both ways (upwards and downwards), and the minimum bid size is dictated by the intra-day market. Downwards flexibility means a consumption reduction, and it is commonly associated with positive values of flexibility (consumer view), whereas upwards is associated with an increase in generation (or alternatively a decrease in consumption) and it is assigned to negative values.</p></list-item>
<list-item><label>(3)</label><p>The market time unit (MTU): the minimum period of time for which the flexibility product price is established. It can vary, but common values are 15 min or 60 min, the same as in the wholesale intra-day market.</p></list-item>
<list-item><label>(4)</label><p>Starting of trading (<inline-formula id="ieqn-1"><mml:math id="mml-ieqn-1"><mml:msub><mml:mi>t</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:math></inline-formula>): defines the time when the flexibility market opens and participants can start submitting their bids, or offers, for providing flexibility services. The market remains open until the closure time (<inline-formula id="ieqn-2"><mml:math id="mml-ieqn-2"><mml:msub><mml:mi>t</mml:mi><mml:mi>c</mml:mi></mml:msub></mml:math></inline-formula>).</p></list-item>
<list-item><label>(5)</label><p>Closure time (<inline-formula id="ieqn-3"><mml:math id="mml-ieqn-3"><mml:msub><mml:mi>t</mml:mi><mml:mi>c</mml:mi></mml:msub></mml:math></inline-formula>): Time instant when the flexibility market closes and does not accept new offers or changes.</p></list-item>
<list-item><label>(6)</label><p>Activation time (<inline-formula id="ieqn-4"><mml:math id="mml-ieqn-4"><mml:msub><mml:mi>t</mml:mi><mml:mi>a</mml:mi></mml:msub></mml:math></inline-formula>), deactivation time (<inline-formula id="ieqn-5"><mml:math id="mml-ieqn-5"><mml:msub><mml:mi>t</mml:mi><mml:mi>d</mml:mi></mml:msub></mml:math></inline-formula>), and duration of activation (<inline-formula id="ieqn-6"><mml:math id="mml-ieqn-6"><mml:mi>d</mml:mi><mml:mo>=</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mi>d</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mi>a</mml:mi></mml:msub></mml:math></inline-formula>): times that define when flexibility is required to be activated after market clearance.</p></list-item>
</list></p>
<p>These concepts do not have a clear regulation and harmonization in the LFMs, and the multiple existing markets use different values (<xref ref-type="fig" rid="fig-3">Fig. 3</xref>). There are LFMs where the start of trading begins 7 days before the time when flexibility services are required, others begin the trading 3 days before flexibility is required, while GOPACS begins a day before flexibility is needed. Gate closure time is also not unified, and every LFM sets distinct values for it; the same thing happens with the MTU (<xref ref-type="fig" rid="fig-3">Fig. 3</xref>).</p>
<fig id="fig-3">
<label>Figure 3</label>
<caption>
<title>Local flexibility markets&#x2019; timings</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMES_70954-fig-3.tif"/>
</fig>
<p>Observe that the whole market is operated based on a forecasted demand, or baseline. Elaborating and agreement, among involved actors, on this baseline is a key factor in the flexibility trading process. The baseline represents how the net customer demand would be in the absence of the potential activation of flexibility according to some forecasting model. Estimation of the baseline, either by the DSO or the aggregator, is basically a forecasting problem constrained by the LFM market design and availability of data at every decision time. Thus, data granularity used in the forecasting models should be at least equal to MTU or shorter. Data availability before <inline-formula id="ieqn-7"><mml:math id="mml-ieqn-7"><mml:msub><mml:mi>t</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:math></inline-formula> to forecast flexibility demand, at the DSO side (or before <inline-formula id="ieqn-8"><mml:math id="mml-ieqn-8"><mml:msub><mml:mi>t</mml:mi><mml:mi>c</mml:mi></mml:msub></mml:math></inline-formula> in case of aggregators or consumers/prosumers) influences the quality of the forecast at <inline-formula id="ieqn-9"><mml:math id="mml-ieqn-9"><mml:msub><mml:mi>t</mml:mi><mml:mi>a</mml:mi></mml:msub></mml:math></inline-formula>. And, the forecasting horizon is being defined by the difference <inline-formula id="ieqn-10"><mml:math id="mml-ieqn-10"><mml:msub><mml:mi>t</mml:mi><mml:mi>a</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mi>d</mml:mi></mml:math></inline-formula> (or <inline-formula id="ieqn-11"><mml:math id="mml-ieqn-11"><mml:msub><mml:mi>t</mml:mi><mml:mi>a</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mi>c</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mi>d</mml:mi></mml:math></inline-formula> for the consumer/prosumer).</p>
</sec>
<sec id="s2_2_2">
<label>2.2.2</label>
<title>Outline of Local Flexibility Markets in EU</title>
<p>There are a few LFMs currently operating in the EU. Some of the most representative are: Sthmlmflex (Sweden), IntraFlex (UK), NorFlex (Norway), GOPACS (Netherlands), Enera (Germany), UK tenders, and ENEDIS tenders (France). These initiatives were examined in [<xref ref-type="bibr" rid="ref-11">11</xref>], complementing in-depth desktop research with a survey and structured interviews with relevant stakeholders. Several key factors were considered to study the LFMs: pre-qualification procedures, the design of flexibility products, the trading of flexibility (procurement architecture), and the activation and settlement procedures.</p>
<p>A general conclusion in [<xref ref-type="bibr" rid="ref-15">15</xref>] states that there is not &#x201C;one size fits all&#x201D; design to manage congestion: characterizing and understanding the local context and needs before implementing new market or regulatory mechanisms is a prerequisite to ensure effectiveness and efficiency. LFMs address specific needs with different designs: it is, thus, unlikely that a unified/homogeneous design will emerge among European countries, although some common design principles and guidelines could emerge. Local market design from the DSO perspective is examined in [<xref ref-type="bibr" rid="ref-14">14</xref>], and they investigate the impact on technical infrastructure, network constraints, skill requirements, and regulatory rules. Based on them, an LFM framework is defined. In addition, Energy Networks Association has also designed a standard agreement for procuring flexibility services in [<xref ref-type="bibr" rid="ref-16">16</xref>].</p>
<p>Institutional implications of LFMs are discussed in [<xref ref-type="bibr" rid="ref-17">17</xref>]. They also analyze three discrimination concerns from the perspective of the network operator as a flexibility purchaser. Transparency policies on local flexibility markets are studied in [<xref ref-type="bibr" rid="ref-18">18</xref>]; and they claim that, in general, the forecast models for network congestion and LFM outcome are feasible. Nevertheless, the amount and quality of available information influence the performance of these forecasts. It can be expected that some market participants are better able to collect information than others. Therefore, an appropriate transparency policy should be designed as one major step when implementing LFMs, to provide a level playing field.</p>
<p>It was found in [<xref ref-type="bibr" rid="ref-19">19</xref>] that baseline services in LFMs do not meet the established requirements and that they are not compatible with the active participation of distributed energy resources in the power markets. Alternatively, they propose the use of limit-capacity services, which represent temporary absolute consumption caps for aggregators, and argue that they are better suited to tackle the challenges of distribution systems operation.</p>
<p>Key factors that impact the future of the local markets in Europe (with a focus on Sweden) are explored and ranked in [<xref ref-type="bibr" rid="ref-20">20</xref>]. The results show that the availability of active and smart end-users, and possible regulatory incentives for promoting the local markets, play important roles in the future of local markets. However, other impact factors in the future of local markets are the digitalization (availability of high-resolution data together with monitoring and control of medium &#x0026; low voltage grids), the availability of distributed generation, and the controllability of loads (batteries, electrified mobility, and heating and cooling).</p>
<p>A fully functional local flexibility market under real conditions was designed and operated in the EcoGrid 2.0 project [<xref ref-type="bibr" rid="ref-21">21</xref>]. They assessed the benefits of baseline and capacity limitation services, showing that flexibility services in the distribution network can act as an insurance policy against network overload and outages. It was found in the study that aggregators can reliably deliver load reduction services on feeders with a large penetration of residential heating loads.</p>
<p>A local energy market (LEM) was simulated in [<xref ref-type="bibr" rid="ref-22">22</xref>], and it was found that the participation of a household without flexible assets would only be profitable for forecast errors below 30%&#x2013;40%. They found in the literature review that the average forecast error for household loads is about 50%, which led them to consider participation in the LEM as not profitable, assuming state-of-the-art forecasting methods.</p>
<p>A paper demonstrates that predictions of significantly greater quality result in marginally higher value in terms of KPIs for the energy community in [<xref ref-type="bibr" rid="ref-23">23</xref>].</p>
<p>Authors in [<xref ref-type="bibr" rid="ref-24">24</xref>] propose a random forest-based method for building energy demand forecasting for 48 h ahead with a 15-min resolution adapted to the constraints imposed by LFMs. They utilize time-series decomposition to capture trend and seasonal components, combined with shape factor analysis to model grid load patterns.</p>
<p>A comparison with the literature in <xref ref-type="table" rid="table-1">Table 1</xref> confirms the numerical validity of the proposed approach, which achieves similar results to the studies found. However, it is important to point out that due to the difference in datasets, the comparisons with the numerical results can only be indicative.</p>
<table-wrap id="table-1">
<label>Table 1</label>
<caption>
<title>Summary of the most relevant works compared to this study</title>
</caption>
<table>
<colgroup>
<col align="center"/>
<col align="center"/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Study</th>
<th>Data source</th>
<th>Algorithm</th>
<th>Horizon</th>
<th>Data volume</th>
<th>Aggreg.</th>
<th>Power level</th>
<th>MAPE</th>
</tr>
</thead>
<tbody>
<tr>
<td>Heinrich et al. (2020) [<xref ref-type="bibr" rid="ref-21">21</xref>]</td>
<td>Substations (7)</td>
<td>&#x2013;</td>
<td>1&#x2013;24 h</td>
<td>&#x2013;</td>
<td>Single</td>
<td>60 kV/10 kV</td>
<td>9%</td>
</tr>
<tr>
<td>Schreck et al. (2020) [<xref ref-type="bibr" rid="ref-22">22</xref>]</td>
<td>Residential buildings (72)</td>
<td>&#x2013;</td>
<td>24 h</td>
<td>1 year</td>
<td>Single</td>
<td>240 V</td>
<td>20%&#x2013;70%</td>
</tr>
<tr>
<td>Putz et al. (2023) [<xref ref-type="bibr" rid="ref-23">23</xref>]</td>
<td>Residential buildings (38)</td>
<td>Na&#x00EF;ve, kNN, XGBoost</td>
<td>24 h</td>
<td>1 year</td>
<td>Single</td>
<td>240 V</td>
<td>21%&#x2013;25%</td>
</tr>
<tr>
<td>Rodriguez et al. (2024) [<xref ref-type="bibr" rid="ref-24">24</xref>]</td>
<td>Buildings (6)</td>
<td>RF</td>
<td>48 h</td>
<td>Up to 5 years</td>
<td>Single</td>
<td>480 V</td>
<td>10%&#x2013;31%</td>
</tr>
<tr>
<td><bold>This study</bold></td>
<td><bold>Substations (8)</bold></td>
<td><bold>RF</bold>, <bold>CB</bold>, <bold>LGBM</bold></td>
<td><bold>1&#x2013;24 h</bold></td>
<td><bold>Up to 5 years</bold></td>
<td><bold>1 to 8</bold></td>
<td><bold>20 kV/ 0.4 kV</bold></td>
<td><bold>5%&#x2013;17%</bold></td>
</tr>
</tbody>
</table>
</table-wrap>
<p>This study analyses the impact of local market definition on the requirements of forecasting algorithms. Forecasting is required by different actors and at different stages during market operation. DSOs, for instance, have access to smart metering infrastructure and can aggregate data according to grid topology, enabling more accurate forecasts of events such as congestion or over-voltages and the formulation of precise flexibility demands in LFMs. By contrast, aggregators typically rely on lower levels of aggregation, often under conditions of limited or less reliable data. Once the market closes and offers have been accepted, aggregators may further refine flexibility activation using short-horizon, household, or building-level forecasts. These differences highlight how data granularity and forecasting horizon critically shape the suitability of forecasting tools for flexibility provision in LFMs.</p>
<p>Despite the growing body of research on forecasting methodologies for energy systems, remarkably little attention has been paid to the requirements and constraints imposed by real-world data in LFM contexts. Most contributions emphasize novel model design or predictive accuracy under idealized datasets, while practical limitations such as granularity, heterogeneity, accessibility, aggregation level, and temporal resolution remain largely overlooked. To the best of our knowledge, studies explicitly examining how these data-related constraints influence the reliability of forecasting tools for LFMs are practically nonexistent. This gap is particularly problematic given that LFMs operate under stringent operational and temporal conditions, where forecasting is not an academic exercise but a prerequisite for market efficiency and stability. By addressing this issue, the present work contributes to the scientific discourse by aligning methodological advances with the operational realities of flexibility provision and activation in emerging LFMs.</p>
</sec>
</sec>
</sec>
<sec id="s3">
<label>3</label>
<title>The Challenge of Forecasting</title>
<p>Forecasting demand, generation, and flexibility (capability to change demand, or generation) is essential for the DSO to operate and manage electric power networks [<xref ref-type="bibr" rid="ref-9">9</xref>]. An energy forecast is also necessary to cope with risk management and to prevent potential congestion problems on the grid. To achieve this, several artificial intelligence (AI) methods are used.</p>
<p>However, there is no very well-defined structure for LFMs; studies found in the literature did things differently. Nevertheless, the forecasting timeframes in an LFM can be separated as such: short-term market and long-term market. Depending on the targeted market, the requirements of the forecasting algorithms differ. Algorithms for the short-term market require data close to real-time, while algorithms for the long-term market do not. Thus, data availability can be a huge factor in the short-term market for the algorithms to have a good performance.</p>
<p>There is another important factor to take into account, and that is data requirements. Studies found in the literature worked with different data requirements due to a lack of a well-defined guideline on how to operate an LFM. Forecasting algorithms can be heavily influenced depending on the availability of data, the frequency of each data sample, and the forecasting horizon. Thus, it is very important to establish clear and concise requirements of forecasting algorithms to participate in LFMs.</p>
<sec id="s3_1">
<label>3.1</label>
<title>Formulation of the Forecasting Challenge</title>
<p><inline-formula id="ieqn-12"><mml:math id="mml-ieqn-12"><mml:mi>L</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>t</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:math></inline-formula> represents the net load demand at a specific point of the grid (e.g., feeder, transformer, or secondary substation). This can be considered as an aggregation of demand of individuals, <inline-formula id="ieqn-13"><mml:math id="mml-ieqn-13"><mml:msub><mml:mi>l</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">(</mml:mo><mml:mi>t</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:math></inline-formula>, in a specific area, <italic>Z</italic>, covered by the grid <xref ref-type="disp-formula" rid="eqn-1">Eq. (1)</xref>. Monitoring the evolution of <inline-formula id="ieqn-14"><mml:math id="mml-ieqn-14"><mml:mi>L</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>t</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:math></inline-formula> is usually required to assess the loading of a transformer and support operation, maintenance, and investment planning.
<disp-formula id="eqn-1"><label>(1)</label><mml:math id="mml-eqn-1" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mi>L</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>t</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:mo>=</mml:mo><mml:munder><mml:mo movablelimits="false">&#x2211;</mml:mo><mml:mrow><mml:mi>Z</mml:mi></mml:mrow></mml:munder><mml:msub><mml:mi>l</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">(</mml:mo><mml:mi>t</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>In that sense, forecasting this demand can help prevent critical events. Let us define <inline-formula id="ieqn-15"><mml:math id="mml-ieqn-15"><mml:msub><mml:mrow><mml:mover><mml:mi>L</mml:mi><mml:mo stretchy="false">&#x007E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:msup><mml:mi>t</mml:mi><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:msup></mml:mrow></mml:msub><mml:mo stretchy="false">(</mml:mo><mml:mi>t</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:math></inline-formula> as the forecast of this demand at <inline-formula id="ieqn-16"><mml:math id="mml-ieqn-16"><mml:mi>t</mml:mi></mml:math></inline-formula>, computed at <inline-formula id="ieqn-17"><mml:math id="mml-ieqn-17"><mml:msup><mml:mi>t</mml:mi><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:msup></mml:math></inline-formula>. Usually, a forecast is not required for a single time instant but for a time interval, <italic>T</italic>, after <inline-formula id="ieqn-18"><mml:math id="mml-ieqn-18"><mml:msub><mml:mi>t</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:math></inline-formula> (<inline-formula id="ieqn-19"><mml:math id="mml-ieqn-19"><mml:msup><mml:mi>t</mml:mi><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:msup><mml:mo>&#x003C;</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>&#x003C;</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mi>T</mml:mi></mml:math></inline-formula>), and the precision of this estimation is crucial to take the appropriate decisions. In general, the main factors affecting the accuracy of forecasts depend on the quality of the models, and this is influenced mainly by:
<list list-type="bullet">
<list-item>
<p>Representativeness of the data used when training the model. Thus, the calendar, weather, and historical energy data are usually the input of energy forecast models. However, more data does not always imply better results (forecasts of congestion events in summer probably are not correlated with winter demand).</p></list-item>
<list-item>
<p>Level of aggregation: As previously stated in <xref ref-type="disp-formula" rid="eqn-1">Eq. (1)</xref>, <inline-formula id="ieqn-20"><mml:math id="mml-ieqn-20"><mml:mi>L</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>t</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:math></inline-formula> is the result of adding multiple individual and independent loads (and/or generations). If we assimilate these to continuous random variables, their addition results in a new variable that resembles a normal one, and the associated variance (in fact, time-varying variance) could be approximated by <inline-formula id="ieqn-21"><mml:math id="mml-ieqn-21"><mml:msub><mml:mrow><mml:msup><mml:mi>&#x3C3;</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:mrow><mml:mi>L</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:msup><mml:mi>&#x3C3;</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:mrow><mml:mi>l</mml:mi></mml:msub><mml:mo>&#x2062;</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula> (under the assumption that the individual variables are also normal). That means that the relative variability, in terms of <inline-formula id="ieqn-22"><mml:math id="mml-ieqn-22"><mml:mi>&#x03C3;</mml:mi></mml:math></inline-formula>, of aggregated demand is much lower than the addition of individual <inline-formula id="ieqn-23"><mml:math id="mml-ieqn-23"><mml:mi>&#x03C3;</mml:mi></mml:math></inline-formula>; and, consequently, the forecasting models improve with the level of aggregation.</p></list-item>
<list-item>
<p>Forecast horizon: The time separation between the time instants to forecast <inline-formula id="ieqn-24"><mml:math id="mml-ieqn-24"><mml:mo stretchy="false">[</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>+</mml:mo><mml:mi>T</mml:mi><mml:mo stretchy="false">]</mml:mo></mml:math></inline-formula> and the instant when it is computed (<inline-formula id="ieqn-25"><mml:math id="mml-ieqn-25"><mml:msup><mml:mi>t</mml:mi><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:msup></mml:math></inline-formula>) is very relevant. The correlation between samples of the random variable is highly influenced by their temporal distance. Thus, the demand at two consecutive hours is highly correlated. This also happens with the demand at the same time of the day in consecutive days; however, this is less true when trying to find relations between samples of different days at different hours or when considering different months (load demand in summer probably does not depend on the winter or spring demand).</p></list-item>
</list></p>
<p>Thus, forecasting to estimate critical events at the substation or transformer level requires using either data from a specific meter installed in the transformer or the aggregation of data from smart meters installed at the consumption points. Intuitively, it can be deduced that the longer the difference <inline-formula id="ieqn-26"><mml:math id="mml-ieqn-26"><mml:msub><mml:mi>t</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msup><mml:mi>t</mml:mi><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:msup></mml:math></inline-formula> the greater the forecast error; and this interval basically depends on the market definition. According to previous LFMs definitions, <inline-formula id="ieqn-27"><mml:math id="mml-ieqn-27"><mml:msup><mml:mi>t</mml:mi><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:msup></mml:math></inline-formula> should correspond to <inline-formula id="ieqn-28"><mml:math id="mml-ieqn-28"><mml:msub><mml:mi>t</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:math></inline-formula> and <inline-formula id="ieqn-29"><mml:math id="mml-ieqn-29"><mml:msub><mml:mi>t</mml:mi><mml:mi>c</mml:mi></mml:msub></mml:math></inline-formula> in the case of the DSO (flexibility demanding actor) and aggregator/prosumers (flexibility offering actor). However, this is not completely true since the availability of data either at <inline-formula id="ieqn-30"><mml:math id="mml-ieqn-30"><mml:msub><mml:mi>t</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:math></inline-formula> or <inline-formula id="ieqn-31"><mml:math id="mml-ieqn-31"><mml:msub><mml:mi>t</mml:mi><mml:mi>c</mml:mi></mml:msub></mml:math></inline-formula> depends on how often metering devices report data. Therefore, two different data sources could be available to measure demand at the secondary substations: power measurements, available in near real time (seconds), through SCADAs; or hourly/quarterly energy data available daily through the Advanced Metering Infrastructure (AMI). Despite this, it is feasible to estimate energy demand from real-time power measurements. However, this is not commonly done because the level of instrumentation of secondary substations is still very limited (less than 10% of transformers at the secondary substations are instrumented). So, usually, energy metering data is used to estimate the demand, and this is affected by a low update ratio (typically once a day with hourly/quarterly granularity). This means that day-ahead forecasting can only benefit from data of the previous day (collected during today) (<inline-formula id="ieqn-32"><mml:math id="mml-ieqn-32"><mml:msub><mml:mi>t</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msup><mml:mi>t</mml:mi><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:msup><mml:mo>&#x003E;</mml:mo><mml:mn>24</mml:mn><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mrow><mml:mtext>h</mml:mtext></mml:mrow></mml:math></inline-formula>).</p>
</sec>
<sec id="s3_2">
<label>3.2</label>
<title>Forecasting Literature</title>
<p>Different methods and approaches have been found in the literature, and they can be classified into three main categories: statistical models [<xref ref-type="bibr" rid="ref-25">25</xref>,<xref ref-type="bibr" rid="ref-26">26</xref>], machine learning (ML) models [<xref ref-type="bibr" rid="ref-27">27</xref>&#x2013;<xref ref-type="bibr" rid="ref-30">30</xref>], and deep learning (DL) models [<xref ref-type="bibr" rid="ref-31">31</xref>&#x2013;<xref ref-type="bibr" rid="ref-34">34</xref>].</p>
<p>Statistical models aim to discover a mathematical relationship between the electricity consumption time series. We can mention models such as the Bayesian approach, the Autoregressive Moving Average, the Kalman filter, and the Gray methods. However, these algorithms are less accurate for long-term predictions, are highly susceptible to outliers in the dataset, and cannot handle the non-linear variation of energy data [<xref ref-type="bibr" rid="ref-35">35</xref>].</p>
<p>With the development of information technology, AI methods have replaced statistical models due to their abilities of learning features and processing data. Consequently, numerous studies and reviews on AI forecasting techniques have been conducted in the literature [<xref ref-type="bibr" rid="ref-36">36</xref>].</p>
<p>In [<xref ref-type="bibr" rid="ref-37">37</xref>], a comparison between conventional models and more recent AI models is made. Conventional models encompass time-series models (derived from auto-regressive and moving average models), regression models (linear, non-linear, logistic models), and gray models. For more recent ML and DL models, they consider Artificial Neural Network (ANN), Support Vector Regression (SVR), and Random Forest (RF). The conclusion drawn is that for daily and hourly energy consumption forecasting, more recent ML and DL-based models are more accurate than conventional models. Both ML and DL (a subcategory of ML) approaches require considerable amounts of data. In general, the more data available, the better the results will be [<xref ref-type="bibr" rid="ref-38">38</xref>]. Increasing input features of the model also improves the results if the features themselves are in some ways significant for the data model [<xref ref-type="bibr" rid="ref-38">38</xref>]. Therefore, data requirements play a big role in constructing an accurate model.</p>
<p>Three forecasting intervals, short, medium, and long-term, are reviewed in [<xref ref-type="bibr" rid="ref-39">39</xref>]. It is observed that most of the researches are conducted on short-term instead of medium and long-term. It is concluded in the research that a precise prediction will not only lead to notable decreases in penalties but also promote performance of various application fields, e.g., power grid maintenance and operating scheduling as well.</p>
<p>Reference [<xref ref-type="bibr" rid="ref-40">40</xref>] reviews the current state of the art of load forecasting models and draws several conclusions. Historical load data contributes to better model design, resulting in better accuracy and model performance. Every model has its own merits and demerits; however, hybrid methods were observed to have more performance efficiency in comparison to standalone methods. The hybridization of models with fine-tuned parameters had better performance. The short-term load forecasting is considered more reliable for operations and planning of utilities. It is also considered to further expand the operations and contribute in medium-term and long-term load forecasting.</p>
<p>In [<xref ref-type="bibr" rid="ref-41">41</xref>], the efficiency of hybrid models is discussed. The models put forward are: models based on Support Vector Machine (SVM) or Artificial Neural Networks (ANN) combined with Firefly Algorithm, Clustering Techniques, or Wavelet Transform, for instance.</p>
<p>An ML-prediction oriented review [<xref ref-type="bibr" rid="ref-42">42</xref>] exposes the superiority of eXtreme Gradient Boosting (XGB) methods compared to Multiple Linear Regression (MLR), ELastic Net (ELN), Random Forest (RF), Gradient Boosting Machines (GBM), or Support Vector Regression (SVR). In addition, the performance and accuracy of Deep Neural Network (DNN) models are praised in this research work.</p>
<p>DL has proven its ability to forecast time series. In particular, these models can be used to highlight inherent abstract characteristics and invariant structures in the data. Reference [<xref ref-type="bibr" rid="ref-43">43</xref>] provides a review of different DL methods such as Auto-encoder, DNN, Convolution Neural Network (CNN), and Recurrent Neural Network (RNN). The article highlights the interest of these models for feature extraction in demand forecasting, achieving good results with CNN for short-term forecasting.</p>
<p>Study [<xref ref-type="bibr" rid="ref-44">44</xref>] aims to optimize the performance of CNN, a model widely used in time-series forecasting. The conclusion drawn is that the smoothed CNN (a combination of exponential smoothing with CNN) outperforms other tested methods.</p>
<p>Other methods studied in the literature include Long Short-Term Memory (LSTM) methods. Reference [<xref ref-type="bibr" rid="ref-45">45</xref>] demonstrates the potential of using LSTM, attention-based LSTM, and Seq2Seq LSTM for multi-step prediction.</p>
<p>More recently, with the emergence of the attention mechanism and its integration into transformer models, the range of methods used to predict electricity consumption has been extended [<xref ref-type="bibr" rid="ref-46">46</xref>]. Initially used for natural language processing tasks, transformers are increasingly used for modeling time series. For instance, the Lag-Llama project [<xref ref-type="bibr" rid="ref-47">47</xref>], has been developed for non-limited prediction to a dataset. Lag-Llama is a foundational model built for univariate probabilistic time-series forecasting based on a decoder-only transformer architecture. It demonstrates strong results for 24-h prediction on unseen datasets and is able to achieve similar results compared to dataset-specific models.</p>
<p>Another hybrid model was developed in [<xref ref-type="bibr" rid="ref-48">48</xref>]. They propose a Self-Partitioning Local Neuro-Fuzzy (SPLNF) model based on Linear Neuro-Fuzzy models for short-term load forecasting, achieving better results than other tested methods, such as: seasonal auto-regressive integrated moving average (sARIMA), SVR, RF, and ANN.</p>
</sec>
<sec id="s3_3">
<label>3.3</label>
<title>Performance Evaluation Metrics</title>
<p>This work requires a comprehensive performance evaluation for Short-Term Load Forecasting (STLF). The appraisal involves the application of multiple evaluation metrics. MAE (Mean Absolute Error) is a measure of errors between paired observations expressing the same phenomenon (<xref ref-type="disp-formula" rid="eqn-2">Eq. (2)</xref>).
<disp-formula id="eqn-2"><label>(2)</label><mml:math id="mml-eqn-2" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mi>M</mml:mi><mml:mi>A</mml:mi><mml:mi>E</mml:mi><mml:mo>=</mml:mo><mml:munderover><mml:mo movablelimits="false">&#x2211;</mml:mo><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:munderover><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:msub><mml:mi>A</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>F</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>RMSE (Root Mean Square Error) is a commonly used metric for regression tasks since it penalizes large errors more heavily, making it sensitive to outliers (<xref ref-type="disp-formula" rid="eqn-3">Eq. (3)</xref>).
<disp-formula id="eqn-3"><label>(3)</label><mml:math id="mml-eqn-3" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mi>R</mml:mi><mml:mi>M</mml:mi><mml:mi>S</mml:mi><mml:mi>E</mml:mi><mml:mo>=</mml:mo><mml:msqrt><mml:mfrac><mml:mn>1</mml:mn><mml:mi>T</mml:mi></mml:mfrac><mml:munderover><mml:mo movablelimits="false">&#x2211;</mml:mo><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:munderover><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mi>A</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>F</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow><mml:msup><mml:mo stretchy="false">)</mml:mo><mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:msqrt></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>The sMAPE (symmetric Mean Absolute Percentage Error) (<xref ref-type="disp-formula" rid="eqn-4">Eq. (4)</xref>) addresses some of the limitations of MAPE by applying a higher penalty to positive errors than to negative errors [<xref ref-type="bibr" rid="ref-49">49</xref>]. However, if the actual value is zero, the forecast is likely also close to zero. In such cases, the denominator in the formula approaches zero, which can lead to instability, so these instances are typically excluded from the calculation.
<disp-formula id="eqn-4"><label>(4)</label><mml:math id="mml-eqn-4" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mi>s</mml:mi><mml:mi>M</mml:mi><mml:mi>A</mml:mi><mml:mi>P</mml:mi><mml:mi>E</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mn>100</mml:mn><mml:mi>T</mml:mi></mml:mfrac><mml:munderover><mml:mo movablelimits="false">&#x2211;</mml:mo><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:munderover><mml:mfrac><mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:msub><mml:mi>F</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>A</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:msub><mml:mi>A</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:msub><mml:mi>F</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mo stretchy="false">)</mml:mo><mml:mrow><mml:mo>/</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p><inline-formula id="ieqn-33"><mml:math id="mml-ieqn-33"><mml:msup><mml:mi>R</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:math></inline-formula> (coefficient of determination) is a measure of how well the model explains the variance in the data; a high <inline-formula id="ieqn-34"><mml:math id="mml-ieqn-34"><mml:msup><mml:mi>R</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:math></inline-formula> value indicates a good fit of the model to the data (<xref ref-type="disp-formula" rid="eqn-5">Eq. (5)</xref>).
<disp-formula id="eqn-5"><label>(5)</label><mml:math id="mml-eqn-5" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msup><mml:mi>R</mml:mi><mml:mn>2</mml:mn></mml:msup><mml:mo>=</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x2212;</mml:mo><mml:mfrac><mml:mrow><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:munderover><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>A</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>F</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:msup><mml:mo stretchy="false">)</mml:mo><mml:mn>2</mml:mn></mml:msup></mml:mrow><mml:mrow><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:munderover><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>A</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:mover><mml:mi>y</mml:mi><mml:mo accent="false">&#x00AF;</mml:mo></mml:mover><mml:msup><mml:mo stretchy="false">)</mml:mo><mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:mfrac></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
</sec>
</sec>
<sec id="s4">
<label>4</label>
<title>Case Study</title>
<p>In the short-term flexibility market, the forecasting requires data as close to real time as possible to forecast future consumption; timing specificities vary between LFMs as seen in <xref ref-type="fig" rid="fig-3">Fig. 3</xref>. We study the impact on demand and generation forecasting of using different timings. Afterwards, we propose the most coherent and logical requirements for forecasting algorithms to participate in LFM according to market timings.</p>
<p>Literature review shows that DL methodologies are becoming really popular as of late due to their improved accuracy, robustness, and flexibility. State-of-the-art shows that deep neural networks, convolutional neural networks, and recurrent neural networks (specifically, the long short-term memory technique) are gaining a lot of traction.</p>
<p>In this study, RF, LightGBM (LGBM), and CatBoost (CB) [<xref ref-type="bibr" rid="ref-50">50</xref>] are evaluated to compare the effectiveness of the proposed forecasting model. The reasons for choosing these algorithms are that they have demonstrated to provide good performance to predict grid dynamics [<xref ref-type="bibr" rid="ref-51">51</xref>,<xref ref-type="bibr" rid="ref-52">52</xref>] and they provide a good trade-off between computational cost and accuracy. ANN-based algorithms were also tested (CNN, Auto-Encoders, LSTM), but were about ten times slower than RF, LGBM, and CB. Although the computational cost is not a severe constraint in this application domain, a faster response was prioritized in the selection of algorithms since it is important for decision makers (DSO operators).</p>
<p>RF is easy to interpret; each decision tree is a simple and transparent model, and they are relatively fast to train and predict. These facts make them suitable for large datasets. LGBM and CB are both popular machine learning algorithms, especially for gradient boosting, and they have gained widespread use in the data science and machine learning communities. These algorithms are remarkably optimized for speed and efficiency and incorporate various techniques to achieve high accuracy and robustness.</p>
<p>The case study takes place in Germany, data has been gathered in substations, and it was collected in the period of five years (from January 2018 to December 2022) with an hourly sampling rate. This data was collected during FEVER, an European Research &#x0026; Innovation project. FEVER&#x2019;s objective is to promote optimal management of the power grids in the future energy system based on renewable sources.</p>
<p>To carry out this study, we are going to consider the following scenarios:
<list list-type="simple">
<list-item><label>1)</label><p><bold>Time period for training:</bold> different periods of time are used to train the models to examine the best case scenarios (<xref ref-type="sec" rid="s5_1">Section 5.1</xref>).</p></list-item>
<list-item><label>2)</label><p><bold>Time horizon:</bold> the difference in accuracy between forecasting demand and generation before start of trading (next day forecasting) and after gate closure time (next hour forecasting) is studied (<xref ref-type="sec" rid="s5_2">Section 5.2</xref>).</p></list-item>
<list-item><label>3)</label><p><bold>Participant aggregation:</bold> it is studied how aggregating the points of data can impact the forecasting performance (<xref ref-type="sec" rid="s5_3">Section 5.3</xref>).</p></list-item>
</list></p>
<sec id="s4_1">
<label>4.1</label>
<title>Updated Process of Flexibility</title>
<p>The necessity for flexibility is forecasted by the DSO before the start of trading, which means that a longer horizon demand and generation forecasting is mandatory to estimate risks in the grid. Once gate closure time is reached and no more bids or offers can be submitted, the LFM operator clears the market and the results are sent to the DSO and aggregators (<xref ref-type="fig" rid="fig-2">Fig. 2</xref>). However, we propose an additional step in the contracting and bidding process, right after the gate closure time and before the market clearing (<xref ref-type="fig" rid="fig-4">Fig. 4</xref>). We suggest the DSO repeat the forecasting of demand and generation, repeat the load flow analysis, and update the flexibility required from aggregators. Forecasting the next day or forecasting the next hour can yield very different results. Thus, updating the forecast closer to real time could contribute substantially to improving forecasting performance. It is studied in detail whether the improvement of forecasting the next hour over the next day is enough to be considered as an additional step to implement in an LFM.</p>
<fig id="fig-4">
<label>Figure 4</label>
<caption>
<title>Proposal sequence of trading flexibility in a local flexibility market</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMES_70954-fig-4.tif"/>
</fig>
</sec>
<sec id="s4_2">
<label>4.2</label>
<title>Limitations</title>
<p>There is, however, a problem when it comes to forecasting the demand of individual participants of the LFMs. As per [<xref ref-type="bibr" rid="ref-22">22</xref>], the literature reveals that current forecast methodologies achieve an average forecast error of about 50% for individual household loads. This is an inherent limitation to individual household forecasting affected by human behavior.</p>
<p>Nevertheless, there are potential solutions to cope with this limitation. The implementation of a market mechanism with near-real-time trading of flexibility to give the possibility to compensate for forecast errors. Another solution is aggregating the participants of the LFM to reduce the combined forecast error. As mentioned, it is studied in detail how aggregating more participants of the LFM together can impact forecasting performance and help reduce the combined forecasting error. This way, however, the individual household is not the flexible asset anymore; the result of the aggregation becomes the flexible asset to manage.</p>
</sec>
<sec id="s4_3">
<label>4.3</label>
<title>Data</title>
<p>As mentioned, the data used for building the forecasting models is from the FEVER project (German pilot). We consider the data points from multiple substations as an aggregation of participants in an LFM and analyze how different operations on the dataset can positively affect the performance of the forecasting algorithms. Ultimately, improving forecasting performance is going to improve the quality of the flexibility procured, as seen in [<xref ref-type="bibr" rid="ref-23">23</xref>].</p>
<p>The data used in the study consisted of hourly electricity consumption data from multiple substations. Data does not contain missing values or any clear biases. Before modeling, the dataset undergoes a structured feature engineering process aimed at incorporating temporal dependencies and calendar effects into the predictive variables. Other features, such as forecasted temperature or forecasted solar radiation, have not been used as inputs because they would introduce an additional source of uncertainty in the results.</p>
<p>The primary predictive variables are constructed by generating lagged consumption values. For each timestamp, the consumption from the previous hours was extracted at varying lags ranging from one hour up to one week (e.g., 1 to 168 h prior&#x2014;a week). Temporal calendar effects were incorporated by adding the day of the week and the month as categorical predictors. Additionally, a holiday indicator is generated, and it captures exogenous demand shifts due to non-working days.</p>
<p>A brief analysis of data used to train the models can be seen in <xref ref-type="fig" rid="fig-5">Fig. 5</xref>. There are multiple clear, identifiable patterns, such as weekends having load demand profiles completely different than weekdays. Conversely, weekdays seem to have very similar load demand profiles. Weekends have considerably lower load demand than weekdays. This fact is accentuated on Sundays, which is the day of the week with the lowest load demand by a substantial margin, even when compared to Saturdays.</p>
<fig id="fig-5">
<label>Figure 5</label>
<caption>
<title>Distribution of load demand according to: different days of the week, weekdays or weekends, different months of the year and different quarters of the year</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMES_70954-fig-5.tif"/>
</fig>
<p>Similarly, load demand profiles seem to be higher early in the mornings during colder months, such as January, February, March, November, and December. This fact is also seen in the last plot of <xref ref-type="fig" rid="fig-5">Fig. 5</xref>, where the hotter quarters have a lower load demand in the mornings. This phenomenon can be attributed to an increase in the use of heating, ventilation, and air conditioning (HVAC).</p>
<p>In [<xref ref-type="bibr" rid="ref-53">53</xref>], a period of time between 2000 and 2016 is studied, and it is concluded that colder winters can result in occasional consumption peaks. The warmest winters over the studied period concur with a decline in energy consumption. Conversely, 2010 represented one of the coldest years, and it coincides with a hike in energy consumption compared to other years.</p>
<p>Thus, the use of HVAC could be one of the factors causing this fluctuation of load demand profiles during the morning part of the day.</p>
</sec>
</sec>
<sec id="s5">
<label>5</label>
<title>Results and Discussion</title>
<p>In this section, the results and performance metrics of the forecasting models, which are Random Forest, CatBoost and LightGBM, are presented. The evaluation results obtained for the models in the STLF are comprehensively discussed. Finally, based on their various performance metrics, a highlight of the best-performing prediction models is made.</p>
<p>The process of tuning the hyperparameters is carried out before the final performance evaluation of the models. Model training is performed within a randomized search framework using cross-validation. Specifically, for each candidate algorithm (RF, CB, and LGBM), a search space of key hyperparameters is defined (e.g., tree depth, learning rate, number of iterations, sub-sampling ratios, and regularization coefficients). Parameter combinations of these distributions are sampled and evaluated via 5-fold cross-validation. The hyperparameter configuration yielding the best validation performance is selected, and the final model to be evaluated is retrained on the full training set.</p>
<sec id="s5_1">
<label>5.1</label>
<title>Data Volume Evaluation</title>
<p>Having too much or too few data impacts the performance of the models for STLF. Surprisingly, the more data we have does not correlate with better metric values. <xref ref-type="table" rid="table-2">Table 2</xref> shows the evaluation metrics for each set of data. The shorter training periods seem to lead to worse results, with the exception of using 1 month to train, which achieves the best sMAPE value of 4.29%. This phenomenon seems to be contrary to what is expected in machine learning, although literature explicitly states that more data does not always mean better results [<xref ref-type="bibr" rid="ref-38">38</xref>].</p>
<table-wrap id="table-2">
<label>Table 2</label>
<caption>
<title>Summary of all metrics for different sizes of data used to train the models. The algorithms used are RF, CB and LGBM. The best performers are highlighted with bold letters</title>
</caption>
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Metric</th>
<th>Alg.</th>
<th colspan="11">Training period</th>
</tr>
<tr>
<th></th>
<th></th>
<th>1 mo.</th>
<th>2 mo.</th>
<th>3 mo.</th>
<th>4 mo.</th>
<th>5 mo.</th>
<th>6 mo.</th>
<th>1 yr.</th>
<th>2 yr.</th>
<th>3 yr.</th>
<th>4 yr.</th>
<th>5 yr.</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td>RF</td>
<td>14.49</td>
<td>16.23</td>
<td>20.82</td>
<td>14.30</td>
<td>12.90</td>
<td>11.46</td>
<td>14.60</td>
<td>14.17</td>
<td>13.55</td>
<td>13.05</td>
<td>13.23</td>
</tr>
<tr>
<td>MAE in kWh</td>
<td>CB</td>
<td><bold>13.28</bold></td>
<td>15.44</td>
<td>18.37</td>
<td><bold>13.65</bold></td>
<td><bold>12.16</bold></td>
<td><bold>11.24</bold></td>
<td><bold>13.64</bold></td>
<td><bold>13.53</bold></td>
<td><bold>13.03</bold></td>
<td><bold>12.67</bold></td>
<td><bold>12.83</bold></td>
</tr>
<tr>
<td></td>
<td>LGBM</td>
<td>15.65</td>
<td><bold>15.34</bold></td>
<td><bold>17.80</bold></td>
<td>14.27</td>
<td>12.65</td>
<td>11.38</td>
<td>14.23</td>
<td>13.79</td>
<td>13.33</td>
<td>12.99</td>
<td>13.14</td>
</tr>
<tr>
<td></td>
<td>RF</td>
<td>18.90</td>
<td>20.78</td>
<td>25.64</td>
<td>19.83</td>
<td>17.05</td>
<td>15.09</td>
<td>19.63</td>
<td>18.83</td>
<td>18.06</td>
<td>17.04</td>
<td>17.36</td>
</tr>
<tr>
<td>RMSE in kWh</td>
<td>CB</td>
<td><bold>17.18</bold></td>
<td><bold>19.50</bold></td>
<td><bold>22.59</bold></td>
<td><bold>18.24</bold></td>
<td><bold>15.69</bold></td>
<td><bold>14.48</bold></td>
<td><bold>18.36</bold></td>
<td><bold>17.91</bold></td>
<td><bold>17.12</bold></td>
<td><bold>16.54</bold></td>
<td><bold>16.66</bold></td>
</tr>
<tr>
<td></td>
<td>LGBM</td>
<td>20.62</td>
<td>19.52</td>
<td>22.90</td>
<td>19.39</td>
<td>16.65</td>
<td>14.77</td>
<td>19.00</td>
<td>18.24</td>
<td>17.63</td>
<td>16.96</td>
<td>17.14</td>
</tr>
<tr>
<td></td>
<td>RF</td>
<td>4.64</td>
<td>5.82</td>
<td>8.94</td>
<td>6.29</td>
<td>5.55</td>
<td>4.81</td>
<td>5.18</td>
<td>5.75</td>
<td>5.74</td>
<td>5.41</td>
<td>5.66</td>
</tr>
<tr>
<td>sMAPE in %</td>
<td>CB</td>
<td><bold>4.29</bold></td>
<td>5.51</td>
<td>7.90</td>
<td><bold>6.03</bold></td>
<td><bold>5.23</bold></td>
<td><bold>4.71</bold></td>
<td><bold>4.83</bold></td>
<td><bold>5.45</bold></td>
<td><bold>5.53</bold></td>
<td><bold>5.25</bold></td>
<td><bold>5.48</bold></td>
</tr>
<tr>
<td></td>
<td>LGBM</td>
<td>5.02</td>
<td><bold>5.48</bold></td>
<td><bold>7.48</bold></td>
<td>6.25</td>
<td>5.44</td>
<td>4.75</td>
<td>5.04</td>
<td>5.59</td>
<td>5.66</td>
<td>5.40</td>
<td>5.63</td>
</tr>
<tr>
<td></td>
<td>RF</td>
<td>96.10</td>
<td>95.25</td>
<td>92.86</td>
<td>94.88</td>
<td>96.41</td>
<td>97.28</td>
<td>95.27</td>
<td>95.51</td>
<td>94.03</td>
<td>95.86</td>
<td>95.37</td>
</tr>
<tr>
<td>R^2 in %</td>
<td>CB</td>
<td><bold>96.77</bold></td>
<td><bold>95.82</bold></td>
<td><bold>94.46</bold></td>
<td><bold>95.67</bold></td>
<td><bold>96.96</bold></td>
<td><bold>97.50</bold></td>
<td><bold>95.86</bold></td>
<td><bold>95.94</bold></td>
<td><bold>94.64</bold></td>
<td><bold>96.10</bold></td>
<td><bold>95.74</bold></td>
</tr>
<tr>
<td></td>
<td>LGBM</td>
<td>95.35</td>
<td>95.81</td>
<td>94.30</td>
<td>95.10</td>
<td>96.58</td>
<td>97.40</td>
<td>95.57</td>
<td>95.79</td>
<td>94.32</td>
<td>95.90</td>
<td>95.49</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>The best <inline-formula id="ieqn-35"><mml:math id="mml-ieqn-35"><mml:msup><mml:mi>R</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:math></inline-formula> value is achieved by CB using 6 months of data, with a value of 97.50%. Furthermore, the same model also achieves the lowest MAE and RMSE values, 11.24 and 14.48 kWh, respectively. Notably, adding more data does not seem to improve results starting from the 6-month dataset onward.</p>
<p>In most cases, CB is obtaining the best results for the evaluated metrics, with exceptions on the 2 and 3-month training periods, where LightGBM has the advantage.</p>
</sec>
<sec id="s5_2">
<label>5.2</label>
<title>Time Horizon Evaluation</title>
<p>Evaluating the impact of different time horizons is crucial for an LFM. Due to the technical characteristics of the grid, an LFM can be limited to using certain time horizons, such as day-ahead or hour-ahead. STLF encompasses both hour-ahead and day-ahead forecasting. Results are shown in detail in <xref ref-type="table" rid="table-3">Table 3</xref>.</p>
<table-wrap id="table-3">
<label>Table 3</label>
<caption>
<title>Summary of all metrics for the 2 horizons of prediction. The algorithms used are RF, CB, and LGBM. The best performers are highlighted with bold letters</title>
</caption>
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Metric</th>
<th>Algorithm</th>
<th colspan="2">Time horizon</th>
</tr>
<tr>
<th></th>
<th></th>
<th>Next day</th>
<th>Next hour</th>
</tr>
</thead>
<tbody>
<tr>
<td>MAE in kWh</td>
<td>RF</td>
<td>4.3956</td>
<td>3.1687</td>
</tr>
<tr>
<td></td>
<td>CB</td>
<td>4.2599</td>
<td>3.0321</td>
</tr>
<tr>
<td></td>
<td>LGBM</td>
<td><bold>4.1903</bold></td>
<td>3.0803</td>
</tr>
<tr>
<td>RMSE in kWh</td>
<td>RF</td>
<td>5.9951</td>
<td>4.3812</td>
</tr>
<tr>
<td></td>
<td>CB</td>
<td>5.8342</td>
<td><bold>4.2047</bold></td>
</tr>
<tr>
<td></td>
<td>LGBM</td>
<td><bold>5.8171</bold></td>
<td>4.2662</td>
</tr>
<tr>
<td>sMAPE in %</td>
<td>RF</td>
<td>17.33</td>
<td>12.31</td>
</tr>
<tr>
<td></td>
<td>CB</td>
<td>16.82</td>
<td><bold>11.95</bold></td>
</tr>
<tr>
<td></td>
<td>LGBM</td>
<td><bold>16.40</bold></td>
<td>11.99</td>
</tr>
<tr>
<td>R^2 in %</td>
<td>RF</td>
<td>72.62</td>
<td>85.19</td>
</tr>
<tr>
<td></td>
<td>CB</td>
<td>74.18</td>
<td><bold>85.96</bold></td>
</tr>
<tr>
<td></td>
<td>LGBM</td>
<td><bold>74.32</bold></td>
<td>85.79</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Unsurprisingly, the next hour time horizon achieves better results than the next day time horizon. The closer to real time approach has around 5% lower sMAPE than the day ahead approach, from 17% it goes to around 12% (depending on the forecasting method). The <inline-formula id="ieqn-36"><mml:math id="mml-ieqn-36"><mml:msup><mml:mi>R</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:math></inline-formula> metric also experiences a significant increase of around 12% in the hour ahead over the day ahead, from about 74% to 86%.</p>
<p>On another note, there is not a considerable difference between RF, CB, and LGBM algorithms. All three methods went through a process of hyperparameter tuning, and in the end, the variation between them seems to be negligible. However, LGBM takes advantage of next-day forecasting, and CB has the edge on next-hour forecasting.</p>
</sec>
<sec id="s5_3">
<label>5.3</label>
<title>LFM Participants Aggregation Evaluation</title>
<p>The results of aggregating participants are plotted in <xref ref-type="fig" rid="fig-8">Fig. A3</xref> and shown in <xref ref-type="table" rid="table-4">Table 4</xref>. It shows a clear improvement in all metrics as more participants are aggregated together. The average sMAPE of each participant is about 12%, while the average sMAPE of all the participants aggregated together is about 6%. The <inline-formula id="ieqn-37"><mml:math id="mml-ieqn-37"><mml:msup><mml:mi>R</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:math></inline-formula> metric also shows a very steady increase as the participants are aggregated.</p>
<table-wrap id="table-4">
<label>Table 4</label>
<caption>
<title>Summary of all metrics for the aggregation of participants of an LFM. The algorithms used are RF, CB, and LGBM. The best performers are highlighted with bold letters</title>
</caption>
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Metric</th>
<th>Algorithm</th>
<th colspan="8">Aggregation of participants</th>
</tr>
<tr>
<th></th>
<th></th>
<th>no aggr</th>
<th>2 aggr</th>
<th>3 aggr</th>
<th>4 aggr</th>
<th>5 aggr</th>
<th>6 aggr</th>
<th>7 aggr</th>
<th>8 aggr</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td>RF</td>
<td>3.17</td>
<td>5.16</td>
<td>6.81</td>
<td>8.28</td>
<td>9.63</td>
<td>10.91</td>
<td>12.10</td>
<td>13.23</td>
</tr>
<tr>
<td>MAE in kWh</td>
<td>CB</td>
<td><bold>3.03</bold></td>
<td><bold>5.01</bold></td>
<td><bold>6.61</bold></td>
<td><bold>8.03</bold></td>
<td><bold>9.33</bold></td>
<td><bold>10.55</bold></td>
<td><bold>11.69</bold></td>
<td><bold>12.83</bold></td>
</tr>
<tr>
<td></td>
<td>LGBM</td>
<td>3.08</td>
<td>5.06</td>
<td>6.70</td>
<td>8.16</td>
<td>9.50</td>
<td>10.76</td>
<td>11.96</td>
<td>13.14</td>
</tr>
<tr>
<td></td>
<td>RF</td>
<td>4.38</td>
<td>6.94</td>
<td>9.07</td>
<td>10.97</td>
<td>12.72</td>
<td>14.37</td>
<td>15.91</td>
<td>17.36</td>
</tr>
<tr>
<td>RMSE in kWh</td>
<td>CB</td>
<td><bold>4.20</bold></td>
<td><bold>6.71</bold></td>
<td><bold>8.75</bold></td>
<td><bold>10.56</bold></td>
<td><bold>12.22</bold></td>
<td><bold>13.78</bold></td>
<td><bold>15.24</bold></td>
<td><bold>16.66</bold></td>
</tr>
<tr>
<td></td>
<td>LGBM</td>
<td>4.27</td>
<td>6.80</td>
<td>8.89</td>
<td>10.76</td>
<td>12.48</td>
<td>14.10</td>
<td>15.64</td>
<td>17.14</td>
</tr>
<tr>
<td></td>
<td>RF</td>
<td>12.31</td>
<td>9.58</td>
<td>8.23</td>
<td>7.36</td>
<td>6.76</td>
<td>6.31</td>
<td>5.95</td>
<td>5.66</td>
</tr>
<tr>
<td>sMAPE in %</td>
<td>CB</td>
<td><bold>11.95</bold></td>
<td><bold>9.33</bold></td>
<td><bold>8.01</bold></td>
<td><bold>7.16</bold></td>
<td><bold>6.57</bold></td>
<td><bold>6.12</bold></td>
<td><bold>5.76</bold></td>
<td><bold>5.48</bold></td>
</tr>
<tr>
<td></td>
<td>LGBM</td>
<td>11.99</td>
<td>9.41</td>
<td>8.11</td>
<td>7.28</td>
<td>6.69</td>
<td>6.24</td>
<td>5.90</td>
<td>5.63</td>
</tr>
<tr>
<td></td>
<td>RF</td>
<td>85.19</td>
<td>89.25</td>
<td>91.34</td>
<td>92.71</td>
<td>93.67</td>
<td>94.38</td>
<td>94.93</td>
<td>95.37</td>
</tr>
<tr>
<td>R^2 in %</td>
<td>CB</td>
<td><bold>85.96</bold></td>
<td><bold>89.92</bold></td>
<td><bold>91.90</bold></td>
<td><bold>93.21</bold></td>
<td><bold>94.14</bold></td>
<td><bold>94.82</bold></td>
<td><bold>95.34</bold></td>
<td><bold>95.74</bold></td>
</tr>
<tr>
<td></td>
<td>LGBM</td>
<td>85.79</td>
<td>89.70</td>
<td>91.68</td>
<td>92.98</td>
<td>93.90</td>
<td>94.58</td>
<td>95.10</td>
<td>95.49</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Nevertheless, MAE and RMSE values keep increasing as we aggregate more participants; this is due to the error being the average error. In reality, the MAE error for no aggregation should be the error committed by each participant multiplied by the number of participants (<inline-formula id="ieqn-38"><mml:math id="mml-ieqn-38"><mml:mn>3</mml:mn><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mrow><mml:mtext>kWh</mml:mtext></mml:mrow><mml:mo>&#x00D7;</mml:mo><mml:mn>8</mml:mn><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mrow><mml:mtext>participants</mml:mtext></mml:mrow><mml:mo>=</mml:mo><mml:mn>24</mml:mn><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mrow><mml:mtext>kWh</mml:mtext></mml:mrow></mml:math></inline-formula>). A MAE of 24 kWh when there is no aggregation is now in line with the MAE of 13 kWh when all participants are aggregated. <xref ref-type="table" rid="table-4">Table 4</xref> summarizes all error metrics regarding the aggregation of LFM participants.</p>

</sec>
<sec id="s5_4">
<label>5.4</label>
<title>Discussion</title>
<p>In this section, the previous results are examined in more detail, and multiple conclusions are reached from them. From the three cases we studied, there is a very clear winner when it comes to improving forecasting performance: aggregation of participants of the LFM.</p>
<p>Aggregating participants of an LFM seems to be really worthwhile since it increases the forecasting accuracy dramatically. Aggregating the participants together improves our sMAPE metric by about 100%, and <inline-formula id="ieqn-39"><mml:math id="mml-ieqn-39"><mml:msup><mml:mi>R</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:math></inline-formula> metric improves by 16% approximately. This is a sizable increase in forecasting performance just from the fact of aggregating participants together and treating them as a single unit. However, smaller aggregations such as 2-participant aggregation or 3-participant aggregation also seem to be worth considering.</p>
<p>Based on these results, the existence of data close to real time has a hefty impact on the accuracy of the forecasts, about 40% improvement in forecasting accuracy. This increase in forecasting accuracy could be significant enough to consider updating the flexibility request once gate closure time has been reached. This additional step, which consists of updating the flexibility request, is precisely what is proposed in <xref ref-type="sec" rid="s4_1">Section 4.1</xref> (<xref ref-type="fig" rid="fig-4">Fig. 4</xref>).</p>

<p>On another note, training the models with half a year of data manages to obtain the best results. However, this could change in other scenarios and participants&#x2019; data. Training with half a year captures best the load consumption behaviors, but using smaller datasets, such as 1 month or 2 months, could also be considered. The accuracy of models trained with more data, such as 1 year to 5 years, does not beat the models with half a year of data, although we have seen in the literature that adding more data generally tends to positively impact the quality of the models. This could be due to the fact that load patterns change substantially over the course of the years, household appliances could have become more efficient with time, new necessities that require electricity consumption arise, households installing more and more DERs, etc.</p>
</sec>
</sec>
<sec id="s6">
<label>6</label>
<title>Conclusions</title>
<p>This study delves into the requirements and constraints of forecasting algorithms in order to participate in the emerging local flexibility markets. Specifically, different data characteristics are analyzed throughout this paper to find out the performance impact it has on the STLF models. STLF models used in this work are Random Forest, CatBoost, and LightGBM. Through a methodical fine-tuning of the model parameters, we intend to increase the models&#x2019; accuracy and provide more precise and trustworthy load forecasts. Taken together, the analysis suggests the following trends and insights.</p>
<p>Firstly, adding more data to train the models does not always imply higher forecasting accuracy. While it is generally true that the bigger the dataset, the higher the model performance, in this case, it does not seem to follow this trend. This fact can be attributed to data having seasonal characteristics, even monthly characteristics. A forecasting model trained with summer data is going to be completely different than a forecasting model trained with winter data; consumption patterns are going to be entirely distinct. CatBoost seems to be the most accurate one in most of the training periods, with certain exceptions where LightGBM takes the lead.</p>
<p>Secondly, forecasting the next hour&#x2019;s consumption is indeed more accurate than forecasting the entire next day&#x2019;s consumption. The closer in time we are to the value we want to predict, the easier it is for the forecasting models. In the next hour horizon, CatBoost takes the lead, whereas LightGBM takes the edge on the next day horizon.</p>
<p>Thirdly, the more participants of the LFM that are aggregated together, the higher the performance of the STLF models. The accuracy of the models is improved by about 100%, going from no aggregation to aggregating 8 participants together. Additionally, CatBoost also takes the lead in this case study, in all sets of aggregation of participants.</p>
<p>Overall, these results provide compelling evidence that data requirements can play a pivotal role in LFMs. Forecasting algorithms need to be meticulously trained in order to be as accurate as possible, resulting in better flexibility procurement in the LFM. Finally, this paper has found that LFM in Spain is still in an infancy stage, with regulatory barriers hindering its development. As the regulatory landscape evolves, it is likely that LFMs will play a crucial role in Spain&#x2019;s transition to a low-carbon economy. Thus, taking into consideration the results obtained in this paper could help propose a better framework to develop efficient and robust LFMs in Spain.</p>
<p>Future research avenues may delve further into the integration of additional time resolutions to the dataset to analyze how it impacts the accuracy and robustness of STLF models. Forecasting the hour-ahead demand with smaller resolutions, such as 15-min, could influence the accuracy of the models. The local flexibility markets seem to be moving towards this 15-min resolution. Current local flexibility markets that use this resolution are GOPACS and Enera.</p>
</sec>
</body>
<back>
<ack>
<p>The authors would like to thank the FEVER project&#x2014;Flexible Energy Production, Demand and Storage-Based Virtual Power Plants for Electricity Markets and Resilient DSO Operation&#x2014;for contributing to the data used in this work.</p>
</ack>
<sec>
<title>Funding Statement</title>
<p>This research was funded by RESCHOOL, grant agreement No. 101096490. The work had continuity within the RESCHOOL project&#x2014;Strategies and Tools for Incentivization and Management of Flexibility in Energy Communities with Distributed Resources&#x2014;aiming to analyze the capacity of energy communities to participate in local flexibility markets.</p>
</sec>
<sec>
<title>Author Contributions</title>
<p>Alex Segura: Data Acquisition and Analysis, Investigation, Methodology, Formal Analysis, Software, Validation, Visualization, Writing&#x2013;Original Draft. Joaquim Mel&#x00E9;ndez: Conceptualization and Design of This Study, Supervision, Study Review, Writing&#x2013;Review and Editing. All authors reviewed the results and approved the final version of the manuscript.</p>
</sec>
<sec sec-type="data-availability">
<title>Availability of Data and Materials</title>
<p>Due to the nature of this research, participants of this study did not agree for their data to be shared publicly, so supporting data is not available.</p>
</sec>
<sec>
<title>Ethics Approval</title>
<p>Not applicable.</p>
</sec>
<sec sec-type="COI-statement">
<title>Conflicts of Interest</title>
<p>The authors declare no conflicts of interest to report regarding the present study.</p>
</sec>
<app-group id="appg-1">
<app id="app-1">
<title>Appendix A</title>
<p>See <xref ref-type="fig" rid="fig-6">Figs. A1</xref>&#x2013;<xref ref-type="fig" rid="fig-8">A3</xref>.</p>
<fig id="fig-6">
<label>Figure A1</label>
<caption>
<title>Training data volume comparison. The algorithms used are RF, CB, and LGBM. Different datasets are generated to train the models for each period of time, starting model training with 1 month of data and increasing the amount of data until the model training uses 5 years of data</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMES_70954-fig-6.tif"/>
</fig><fig id="fig-7">
<label>Figure A2</label>
<caption>
<title>LFM closure time comparison: hour ahead vs. day ahead. The algorithms used are RF, CB, and LGBM. Each box-point represents a trained model (RF, CB, or LGBM) for a participant</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMES_70954-fig-7.tif"/>
</fig>
<fig id="fig-8">
<label>Figure A3</label>
<caption>
<title>Demand aggregation comparison. The algorithms used are RF, CB, and LGBM. Each box-point represents a trained model (RF, CB, or LGBM) with a possible aggregation combination of the participants</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMES_70954-fig-8.tif"/>
</fig>
</app>
</app-group>
<ref-list content-type="authoryear">
<title>References</title>
<ref id="ref-1"><label>[1]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Guchhait</surname> <given-names>R</given-names></string-name>, <string-name><surname>Sarkar</surname> <given-names>B</given-names></string-name></person-group>. <article-title>Increasing growth of renewable energy: a state of art</article-title>. <source>Energies</source>. <year>2023</year>;<volume>16</volume>(<issue>6</issue>):<fpage>2665</fpage>. doi:<pub-id pub-id-type="doi">10.3390/en16062665</pub-id>.</mixed-citation></ref>
<ref id="ref-2"><label>[2]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Hussain</surname> <given-names>S</given-names></string-name>, <string-name><surname>Lai</surname> <given-names>C</given-names></string-name>, <string-name><surname>Eicker</surname> <given-names>U</given-names></string-name></person-group>. <article-title>Flexibility: literature review on concepts, modeling, and provision method in smart grid</article-title>. <source>Sustain Energy Grids Netw</source>. <year>2023</year>;<volume>35</volume>(<issue>1</issue>):<fpage>101113</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.segan.2023.101113</pub-id>.</mixed-citation></ref>
<ref id="ref-3"><label>[3]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><surname>Bayindir</surname> <given-names>R</given-names></string-name>, <string-name><surname>Hossain</surname> <given-names>E</given-names></string-name>, <string-name><surname>Vadi</surname> <given-names>S</given-names></string-name></person-group>. <article-title>The path of the smart grid -the new and improved power grid</article-title>. In: <source>2016 International Smart Grid Workshop and Certificate Program (ISGWCP). Istanbul, Turkey</source>: <publisher-name>IEEE</publisher-name>; <year>2016</year>. p. <fpage>1</fpage>&#x2013;<lpage>8</lpage>.</mixed-citation></ref>
<ref id="ref-4"><label>[4]</label><mixed-citation publication-type="other"><article-title>Regulatory recommendations for the deployment of flexibility. In: EG3 report. Washington, DC, USA: Smart Grid Task Force; 2015. EU SGTF-EG3.</article-title> <year>2015</year>.</mixed-citation></ref>
<ref id="ref-5"><label>[5]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Kulms</surname> <given-names>T</given-names></string-name>, <string-name><surname>Meinerzhagen</surname> <given-names>AK</given-names></string-name>, <string-name><surname>Koopmann</surname> <given-names>S</given-names></string-name>, <string-name><surname>Schnettler</surname> <given-names>A</given-names></string-name></person-group>. <article-title>Development of an agent-based model for assessing the market and grid oriented operation of distributed energy resources</article-title>. <source>Energy Proc</source>. <year>2017</year>;<volume>135</volume>:<fpage>294</fpage>&#x2013;<lpage>303</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.egypro.2017.09.521</pub-id>.</mixed-citation></ref>
<ref id="ref-6"><label>[6]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Valarezo</surname> <given-names>O</given-names></string-name>, <string-name><surname>G&#x00F3;mez</surname> <given-names>T</given-names></string-name>, <string-name><surname>Chaves-Avila</surname> <given-names>JP</given-names></string-name>, <string-name><surname>Lind</surname> <given-names>L</given-names></string-name>, <string-name><surname>Correa</surname> <given-names>M</given-names></string-name>, <string-name><surname>Ulrich Ziegler</surname> <given-names>D</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Analysis of new flexibility market models in Europe</article-title>. <source>Energies</source>. <year>2021</year>;<volume>14</volume>(<issue>12</issue>):<fpage>3521</fpage>. doi:<pub-id pub-id-type="doi">10.3390/en14123521</pub-id>.</mixed-citation></ref>
<ref id="ref-7"><label>[7]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Ma</surname> <given-names>J</given-names></string-name>, <string-name><surname>Silva</surname> <given-names>V</given-names></string-name>, <string-name><surname>Belhomme</surname> <given-names>R</given-names></string-name>, <string-name><surname>Kirschen</surname> <given-names>DS</given-names></string-name>, <string-name><surname>Ochoa</surname> <given-names>LF</given-names></string-name></person-group>. <article-title>Evaluating and planning flexibility in sustainable power systems</article-title>. <source>IEEE Trans Sustain Energy</source>. <year>2013</year>;<volume>4</volume>(<issue>1</issue>):<fpage>200</fpage>&#x2013;<lpage>9</lpage>. doi:<pub-id pub-id-type="doi">10.1109/tste.2012.2212471</pub-id>.</mixed-citation></ref>
<ref id="ref-8"><label>[8]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Eid</surname> <given-names>C</given-names></string-name>, <string-name><surname>Codani</surname> <given-names>P</given-names></string-name>, <string-name><surname>Perez</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Reneses</surname> <given-names>J</given-names></string-name>, <string-name><surname>Hakvoort</surname> <given-names>R</given-names></string-name></person-group>. <article-title>Managing electric flexibility from distributed energy resources: a review of incentives for market design</article-title>. <source>Renew Sustain Energy Rev</source>. <year>2016</year>;<volume>64</volume>:<fpage>237</fpage>&#x2013;<lpage>47</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.rser.2016.06.008</pub-id>.</mixed-citation></ref>
<ref id="ref-9"><label>[9]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Villar</surname> <given-names>J</given-names></string-name>, <string-name><surname>Bessa</surname> <given-names>R</given-names></string-name>, <string-name><surname>Matos</surname> <given-names>M</given-names></string-name></person-group>. <article-title>Flexibility products and markets: literature review</article-title>. <source>Electric Power Syst Res</source>. <year>2018</year>;<volume>154</volume>:<fpage>329</fpage>&#x2013;<lpage>40</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.epsr.2017.09.005</pub-id>.</mixed-citation></ref>
<ref id="ref-10"><label>[10]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Olivella-Rosell</surname> <given-names>P</given-names></string-name>, <string-name><surname>Bullich-Massagu&#x00E9;</surname> <given-names>E</given-names></string-name>, <string-name><surname>Arag&#x00FC;&#x00E9;s-Pe&#x00F1;alba</surname> <given-names>M</given-names></string-name>, <string-name><surname>Sumper</surname> <given-names>A</given-names></string-name>, <string-name><surname>&#x00D8;degaard Ottesen</surname> <given-names>S</given-names></string-name>, <string-name><surname>Vidal-Clos</surname> <given-names>JA</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Optimization problem for meeting distribution system operator requests in local flexibility markets with distributed energy resources</article-title>. <source>Appl Energy</source>. <year>2018</year>;<volume>210</volume>(<issue>4</issue>):<fpage>881</fpage>&#x2013;<lpage>95</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.apenergy.2017.08.136</pub-id>.</mixed-citation></ref>
<ref id="ref-11"><label>[11]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Stamatios</surname> <given-names>C</given-names></string-name>, <string-name><surname>Julija</surname> <given-names>V</given-names></string-name>, <string-name><surname>Antonios</surname> <given-names>M</given-names></string-name>, <string-name><surname>Ioulia</surname> <given-names>P</given-names></string-name>, <string-name><surname>Gianluca</surname> <given-names>F</given-names></string-name></person-group>. <source>Local electricity flexibility markets in Europe</source>. <publisher-loc>Luxembourg</publisher-loc>: <publisher-name>Publications Office of the European Union</publisher-name>; <year>2022</year>. <comment>KJ-NA-31-194-EN-N</comment>.</mixed-citation></ref>
<ref id="ref-12"><label>[12]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Jin</surname> <given-names>X</given-names></string-name>, <string-name><surname>Wu</surname> <given-names>Q</given-names></string-name>, <string-name><surname>Jia</surname> <given-names>H</given-names></string-name></person-group>. <article-title>Local flexibility markets: literature review on concepts, models and clearing methods</article-title>. <source>Appl Energy</source>. <year>2020</year>;<volume>261</volume>(<issue>1</issue>):<fpage>114387</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.apenergy.2019.114387</pub-id>.</mixed-citation></ref>
<ref id="ref-13"><label>[13]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Torbaghan</surname> <given-names>SS</given-names></string-name>, <string-name><surname>Blaauwbroek</surname> <given-names>N</given-names></string-name>, <string-name><surname>Nguyen</surname> <given-names>P</given-names></string-name>, <string-name><surname>Gibescu</surname> <given-names>M</given-names></string-name></person-group>. <article-title>Local market framework for exploiting flexibility from the end users</article-title>. In: <conf-name>13th International Conference on the European Energy Market (EEM); 2016 Jun 6&#x2013;9</conf-name>; <publisher-loc>Porto, Portugal</publisher-loc>. p. <fpage>1</fpage>&#x2013;<lpage>6</lpage>.</mixed-citation></ref>
<ref id="ref-14"><label>[14]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Honarmand</surname> <given-names>ME</given-names></string-name>, <string-name><surname>Hosseinnezhad</surname> <given-names>V</given-names></string-name>, <string-name><surname>Hayes</surname> <given-names>B</given-names></string-name>, <string-name><surname>Siano</surname> <given-names>P</given-names></string-name></person-group>. <article-title>Local energy trading in future distribution systems</article-title>. <source>Energies</source>. <year>2021</year>;<volume>14</volume>(<issue>11</issue>):<fpage>3110</fpage>. doi:<pub-id pub-id-type="doi">10.3390/en14113110</pub-id>.</mixed-citation></ref>
<ref id="ref-15"><label>[15]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Dronne</surname> <given-names>T</given-names></string-name>, <string-name><surname>Roques</surname> <given-names>F</given-names></string-name>, <string-name><surname>Saguan</surname> <given-names>M</given-names></string-name></person-group>. <article-title>Local flexibility markets for distribution network congestion-management in Center-Western Europe: which design for which needs?</article-title> <source>Energies</source>. <year>2021</year>;<volume>14</volume>(<issue>14</issue>):<fpage>4113</fpage>. doi:<pub-id pub-id-type="doi">10.3390/en14144113</pub-id>.</mixed-citation></ref>
<ref id="ref-16"><label>[16]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><surname>Association</surname> <given-names>EN</given-names></string-name></person-group>. <article-title>Flexibility services standard agreement; 2023 [Internet]. [cited 2024 Mar 22]</article-title>. Available from: <ext-link ext-link-type="uri" xlink:href="https://www.energynetworks.org/publications/ena-on-standard-agreement-for-procuring-flexibility-services-07-sep-2023">https://www.energynetworks.org/publications/ena-on-standard-agreement-for-procuring-flexibility-services-07-sep-2023</ext-link>.</mixed-citation></ref>
<ref id="ref-17"><label>[17]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Buchmann</surname> <given-names>M</given-names></string-name></person-group>. <article-title>How decentralization drives a change of the institutional framework on the distribution grid level in the electricity sector&#x2013;the case of local congestion markets</article-title>. <source>Energy Policy</source>. <year>2020</year>;<volume>145</volume>(<issue>2013</issue>):<fpage>111725</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.enpol.2020.111725</pub-id>.</mixed-citation></ref>
<ref id="ref-18"><label>[18]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Heilmann</surname> <given-names>E</given-names></string-name></person-group>. <article-title>The impact of transparency policies on local flexibility markets in electric distribution networks</article-title>. <source>Util Policy</source>. <year>2023</year>;<volume>83</volume>:<fpage>101592</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.jup.2023.101592</pub-id>.</mixed-citation></ref>
<ref id="ref-19"><label>[19]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Ziras</surname> <given-names>C</given-names></string-name>, <string-name><surname>Heinrich</surname> <given-names>C</given-names></string-name>, <string-name><surname>Bindner</surname> <given-names>HW</given-names></string-name></person-group>. <article-title>Why baselines are not suited for local flexibility markets</article-title>. <source>Renew Sustain Energ Rev</source>. <year>2021</year>;<volume>135</volume>(<issue>1</issue>):<fpage>110357</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.rser.2020.110357</pub-id>.</mixed-citation></ref>
<ref id="ref-20"><label>[20]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Alavijeh</surname> <given-names>NM</given-names></string-name>, <string-name><surname>Ghazvini</surname> <given-names>MAF</given-names></string-name>, <string-name><surname>Steen</surname> <given-names>D</given-names></string-name>, <string-name><surname>Tuan</surname> <given-names>LA</given-names></string-name>, <string-name><surname>Carlson</surname> <given-names>O</given-names></string-name></person-group>. <article-title>Key drivers and future scenarios of local energy and flexibility markets</article-title>. In: <conf-name> 2021 IEEE Madrid PowerTech; 2021 Jun 28&#x2013;Jul 2</conf-name>; <publisher-loc>Madrid, Spain</publisher-loc>. p. <fpage>1</fpage>&#x2013;<lpage>6</lpage>.</mixed-citation></ref>
<ref id="ref-21"><label>[21]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Heinrich</surname> <given-names>C</given-names></string-name>, <string-name><surname>Ziras</surname> <given-names>C</given-names></string-name>, <string-name><surname>Syrri</surname> <given-names>ALA</given-names></string-name>, <string-name><surname>Bindner</surname> <given-names>HW</given-names></string-name></person-group>. <article-title>EcoGrid 2.0: a large-scale field trial of a local flexibility market</article-title>. <source>Appl Energy</source>. <year>2020</year>;<volume>261</volume>(<issue>4</issue>):<fpage>114399</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.apenergy.2019.114399</pub-id>.</mixed-citation></ref>
<ref id="ref-22"><label>[22]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Schreck</surname> <given-names>S</given-names></string-name>, <string-name><surname>Prieur de La Comble</surname> <given-names>I</given-names></string-name>, <string-name><surname>Thiem</surname> <given-names>S</given-names></string-name>, <string-name><surname>Niessen</surname> <given-names>S</given-names></string-name></person-group>. <article-title>A methodological framework to support load forecast error assessment in local energy markets</article-title>. <source>IEEE Trans Smart Grid</source>. <year>2020</year>;<volume>11</volume>(<issue>4</issue>):<fpage>3212</fpage>&#x2013;<lpage>20</lpage>. doi:<pub-id pub-id-type="doi">10.1109/tsg.2020.2971339</pub-id>.</mixed-citation></ref>
<ref id="ref-23"><label>[23]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Putz</surname> <given-names>D</given-names></string-name>, <string-name><surname>Gumhalter</surname> <given-names>M</given-names></string-name>, <string-name><surname>Auer</surname> <given-names>H</given-names></string-name></person-group>. <article-title>The true value of a forecast: assessing the impact of accuracy on local energy communities</article-title>. <source>Sustain Energy Grids Netw</source>. <year>2023</year>;<volume>33</volume>(<issue>2</issue>):<fpage>100983</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.segan.2022.100983</pub-id>.</mixed-citation></ref>
<ref id="ref-24"><label>[24]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Rodriguez</surname> <given-names>F</given-names></string-name>, <string-name><surname>Maqueda</surname> <given-names>E</given-names></string-name>, <string-name><surname>Fernandez</surname> <given-names>M</given-names></string-name>, <string-name><surname>Pimenta</surname> <given-names>P</given-names></string-name>, <string-name><surname>Marques</surname> <given-names>MI</given-names></string-name></person-group>. <article-title>A novel methodology for day-ahead buildings energy demand forecasting to provide flexibility services in energy markets</article-title>. <source>Int J Electr Power Energy Syst</source>. <year>2024</year>;<volume>161</volume>(<issue>6</issue>):<fpage>110207</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.ijepes.2024.110207</pub-id>.</mixed-citation></ref>
<ref id="ref-25"><label>[25]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>G&#x00FC;ng&#x00F6;r</surname> <given-names>O</given-names></string-name>, <string-name><surname>Ak&#x015F;anl&#x0131;</surname> <given-names>B</given-names></string-name>, <string-name><surname>Aydo&#x011F;an</surname> <given-names>R</given-names></string-name></person-group>. <article-title>Algorithm selection and combining multiple learners for residential energy prediction</article-title>. <source>Future Gen Comput Syst</source>. <year>2019</year>;<volume>99</volume>(<issue>3</issue>):<fpage>391</fpage>&#x2013;<lpage>400</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.future.2019.04.018</pub-id>.</mixed-citation></ref>
<ref id="ref-26"><label>[26]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Massana</surname> <given-names>J</given-names></string-name>, <string-name><surname>Pous</surname> <given-names>C</given-names></string-name>, <string-name><surname>Burgas</surname> <given-names>L</given-names></string-name>, <string-name><surname>Melendez</surname> <given-names>J</given-names></string-name>, <string-name><surname>Colomer</surname> <given-names>J</given-names></string-name></person-group>. <article-title>Short-term load forecasting in a non-residential building contrasting models and attributes</article-title>. <source>Energy Buildings</source>. <year>2015</year>;<volume>92</volume>(<issue>5</issue>):<fpage>322</fpage>&#x2013;<lpage>30</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.enbuild.2015.02.007</pub-id>.</mixed-citation></ref>
<ref id="ref-27"><label>[27]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Huang</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Yuan</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Chen</surname> <given-names>H</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>J</given-names></string-name>, <string-name><surname>Guo</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Ahmad</surname> <given-names>T</given-names></string-name></person-group>. <article-title>A novel energy demand prediction strategy for residential buildings based on ensemble learning</article-title>. <source>Energy Procedia</source>. <year>2019</year>;<volume>158</volume>:<fpage>3411</fpage>&#x2013;<lpage>6</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.egypro.2019.01.935</pub-id>.</mixed-citation></ref>
<ref id="ref-28"><label>[28]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Divina</surname> <given-names>F</given-names></string-name>, <string-name><surname>Garc&#x00ED;a Torres</surname> <given-names>M</given-names></string-name>, <string-name><surname>Gom&#x00E9;z Vela</surname> <given-names>FA</given-names></string-name>, <string-name><surname>V&#x00E1;zquez Noguera</surname> <given-names>JL</given-names></string-name></person-group>. <article-title>A comparative study of time series forecasting methods for short term electric energy consumption prediction in smart buildings</article-title>. <source>Energies</source>. <year>2019</year>;<volume>12</volume>(<issue>10</issue>):<fpage>1934</fpage>. doi:<pub-id pub-id-type="doi">10.3390/en12101934</pub-id>.</mixed-citation></ref>
<ref id="ref-29"><label>[29]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Jiang</surname> <given-names>B</given-names></string-name>, <string-name><surname>Cheng</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Hao</surname> <given-names>Q</given-names></string-name>, <string-name><surname>Ma</surname> <given-names>N</given-names></string-name></person-group>. <article-title>A building energy consumption prediction method based on random forest and ARMA</article-title>. In: <conf-name>2018 Chinese Automation Congress (CAC); 2018 Nov 30&#x2013;Dec 2, Xi&#x2019;an, China</conf-name>. p. <fpage>3550</fpage>&#x2013;<lpage>5</lpage>.</mixed-citation></ref>
<ref id="ref-30"><label>[30]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Wang</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Zeng</surname> <given-names>R</given-names></string-name>, <string-name><surname>Srinivasan</surname> <given-names>RS</given-names></string-name>, <string-name><surname>Ahrentzen</surname> <given-names>S</given-names></string-name></person-group>. <article-title>Random forest based hourly building energy prediction</article-title>. <source>Energy Buildings</source>. <year>2018</year>;<volume>171</volume>(<issue>2</issue>):<fpage>11</fpage>&#x2013;<lpage>25</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.enbuild.2018.04.008</pub-id>.</mixed-citation></ref>
<ref id="ref-31"><label>[31]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>S&#x00FC;lo</surname> <given-names>I</given-names></string-name>, <string-name><surname>Keskin</surname> <given-names>SR</given-names></string-name>, <string-name><surname>Dogan</surname> <given-names>G</given-names></string-name>, <string-name><surname>Brown</surname> <given-names>T</given-names></string-name></person-group>. <article-title>Energy efficient smart buildings: LSTM neural networks for time series prediction</article-title>. In: <conf-name>2019 International Conference on Deep Learning and Machine Learning in Emerging Applications (Deep-ML); 2019 Aug 26&#x2013;28; Istanbul, Turkey</conf-name>. p. <fpage>18</fpage>&#x2013;<lpage>22</lpage>.</mixed-citation></ref>
<ref id="ref-32"><label>[32]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Marino</surname> <given-names>DL</given-names></string-name>, <string-name><surname>Amarasinghe</surname> <given-names>K</given-names></string-name>, <string-name><surname>Manic</surname> <given-names>M</given-names></string-name></person-group>. <article-title>Building energy load forecasting using deep neural networks</article-title>. In: <conf-name> IECON 2016-42nd Annual Conference of the IEEE Industrial Electronics Society; 2016 Oct 23&#x2013;26; Florence, Italy</conf-name>. p. <fpage>7046</fpage>&#x2013;<lpage>51</lpage>.</mixed-citation></ref>
<ref id="ref-33"><label>[33]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Mlangeni</surname> <given-names>S</given-names></string-name>, <string-name><surname>Ezugwu</surname> <given-names>AE</given-names></string-name>, <string-name><surname>Chiroma</surname> <given-names>H</given-names></string-name></person-group>. <article-title>Deep learning model for forecasting institutional building energy consumption</article-title>. In: <conf-name>Conference on Information Communications Technology and Society (ICTAS); 2020 Mar 11&#x2013;12; Durban, South Africa</conf-name>. p. <fpage>1</fpage>&#x2013;<lpage>8</lpage>.</mixed-citation></ref>
<ref id="ref-34"><label>[34]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Mocanu</surname> <given-names>E</given-names></string-name>, <string-name><surname>Nguyen</surname> <given-names>PH</given-names></string-name>, <string-name><surname>Gibescu</surname> <given-names>M</given-names></string-name>, <string-name><surname>Kling</surname> <given-names>WL</given-names></string-name></person-group>. <article-title>Deep learning for estimating building energy consumption</article-title>. <source>Sustain Energy Grids Netw</source>. <year>2016</year>;<volume>6</volume>(<issue>4</issue>):<fpage>91</fpage>&#x2013;<lpage>9</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.segan.2016.02.005</pub-id>.</mixed-citation></ref>
<ref id="ref-35"><label>[35]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Khalil</surname> <given-names>M</given-names></string-name>, <string-name><surname>McGough</surname> <given-names>AS</given-names></string-name>, <string-name><surname>Pourmirza</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Pazhoohesh</surname> <given-names>M</given-names></string-name>, <string-name><surname>Walker</surname> <given-names>S</given-names></string-name></person-group>. <article-title>Deep learning and statistical analysis for forecasting building energy consumption&#x2014;a systematic review</article-title>. <source>Eng Appl Artif Intell</source>. <year>2022</year>;<volume>115</volume>(<issue>11</issue>):<fpage>105287</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.engappai.2022.105287</pub-id>.</mixed-citation></ref>
<ref id="ref-36"><label>[36]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Barja-Martinez</surname> <given-names>S</given-names></string-name>, <string-name><surname>Arag&#x00FC;&#x00E9;s-Pe&#x00F1;alba</surname> <given-names>M</given-names></string-name>, <string-name><surname>Munn&#x00E9;-Collado</surname> <given-names>&#x00CD;</given-names></string-name>, <string-name><surname>Lloret-Gallego</surname> <given-names>P</given-names></string-name>, <string-name><surname>Bullich-Massagu&#x00E9;</surname> <given-names>E</given-names></string-name>, <string-name><surname>Villafafila-Robles</surname> <given-names>R</given-names></string-name></person-group>. <article-title>Artificial intelligence techniques for enabling Big Data services in distribution networks: a review</article-title>. <source>Renew Sustain Energ Rev</source>. <year>2021</year>;<volume>150</volume>:<fpage>111459</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.rser.2021.111459</pub-id>.</mixed-citation></ref>
<ref id="ref-37"><label>[37]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Wei</surname> <given-names>N</given-names></string-name>, <string-name><surname>Li</surname> <given-names>C</given-names></string-name>, <string-name><surname>Peng</surname> <given-names>X</given-names></string-name>, <string-name><surname>Zeng</surname> <given-names>F</given-names></string-name>, <string-name><surname>Lu</surname> <given-names>X</given-names></string-name></person-group>. <article-title>Conventional models and artificial intelligence-based models for energy consumption forecasting: a review</article-title>. <source>J Pet Sci Eng</source>. <year>2019</year>;<volume>181</volume>(<issue>11</issue>):<fpage>106187</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.petrol.2019.106187</pub-id>.</mixed-citation></ref>
<ref id="ref-38"><label>[38]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Kariluoto</surname> <given-names>A</given-names></string-name>, <string-name><surname>Kultanen</surname> <given-names>J</given-names></string-name>, <string-name><surname>Soininen</surname> <given-names>J</given-names></string-name>, <string-name><surname>P&#x00E4;rn&#x00E4;nen</surname> <given-names>A</given-names></string-name>, <string-name><surname>Abrahamsson</surname> <given-names>P</given-names></string-name></person-group>. <article-title>Quality of data in machine learning</article-title>. In: <conf-name>2021 IEEE 21st International Conference on Software Quality, Reliability and Security Companion (QRS-C); 2021 Dec 6&#x2013;10; Hainan, China</conf-name>. p. <fpage>216</fpage>&#x2013;<lpage>21</lpage>.</mixed-citation></ref>
<ref id="ref-39"><label>[39]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Ahmad</surname> <given-names>T</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>H</given-names></string-name>, <string-name><surname>Yan</surname> <given-names>B</given-names></string-name></person-group>. <article-title>A review on renewable energy and electricity requirement forecasting models for smart grid and buildings</article-title>. <source>Sustain Cities Soc</source>. <year>2020</year>;<volume>55</volume>(<issue>1</issue>):<fpage>102052</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.scs.2020.102052</pub-id>.</mixed-citation></ref>
<ref id="ref-40"><label>[40]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Azeem</surname> <given-names>A</given-names></string-name>, <string-name><surname>Ismail</surname> <given-names>I</given-names></string-name>, <string-name><surname>Jameel</surname> <given-names>SM</given-names></string-name>, <string-name><surname>Harindran</surname> <given-names>VR</given-names></string-name></person-group>. <article-title>Electrical load forecasting models for different generation modalities: a review</article-title>. <source>IEEE Access</source>. <year>2021</year>;<volume>9</volume>:<fpage>142239</fpage>&#x2013;<lpage>63</lpage>. doi:<pub-id pub-id-type="doi">10.1109/access.2021.3120731</pub-id>.</mixed-citation></ref>
<ref id="ref-41"><label>[41]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Mamun</surname> <given-names>A</given-names></string-name>, <string-name><surname>Sohel</surname> <given-names>M</given-names></string-name>, <string-name><surname>Sami</surname> <given-names>NM</given-names></string-name>, <string-name><surname>Sunny</surname> <given-names>MS</given-names></string-name>, <string-name><surname>Roy</surname> <given-names>D</given-names></string-name>, <string-name><surname>Hossain</surname> <given-names>E</given-names></string-name></person-group>. <article-title>A comprehensive review of the load forecasting techniques using single and hybrid predictive models</article-title>. <source>IEEE Access</source>. <year>2020</year>;<volume>8</volume>:<fpage>134911</fpage>&#x2013;<lpage>39</lpage>. doi:<pub-id pub-id-type="doi">10.1109/access.2020.3010702</pub-id>.</mixed-citation></ref>
<ref id="ref-42"><label>[42]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Fan</surname> <given-names>C</given-names></string-name>, <string-name><surname>Xiao</surname> <given-names>L</given-names></string-name>, <string-name><surname>Zhao</surname> <given-names>Y</given-names></string-name></person-group>. <article-title>A short-term building cooling load prediction method using deep learning algorithms</article-title>. <source>Appl Energy</source>. <year>2017</year>;<volume>195</volume>(<issue>3</issue>):<fpage>222</fpage>&#x2013;<lpage>33</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.apenergy.2017.03.064</pub-id>.</mixed-citation></ref>
<ref id="ref-43"><label>[43]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Wang</surname> <given-names>H</given-names></string-name>, <string-name><surname>Lei</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>X</given-names></string-name>, <string-name><surname>Zhou</surname> <given-names>B</given-names></string-name>, <string-name><surname>Peng</surname> <given-names>J</given-names></string-name></person-group>. <article-title>A review of deep learning for renewable energy forecasting</article-title>. <source>Energy Convers Manag</source>. <year>2019</year>;<volume>198</volume>(<issue>11</issue>):<fpage>111799</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.enconman.2019.111799</pub-id>.</mixed-citation></ref>
<ref id="ref-44"><label>[44]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Wibawa</surname> <given-names>A</given-names></string-name>, <string-name><surname>Putra Utama</surname> <given-names>AB</given-names></string-name>, <string-name><surname>Elmunsyah</surname> <given-names>H</given-names></string-name>, <string-name><surname>Pujianto</surname> <given-names>U</given-names></string-name>, <string-name><surname>Dwiyanto</surname> <given-names>F</given-names></string-name>, <string-name><surname>Hernandez</surname> <given-names>L</given-names></string-name></person-group>. <article-title>Time-series analysis with smoothed convolutional neural network</article-title>. <source>J Big Data</source>. <year>2022</year>;<volume>9</volume>(<issue>1</issue>):<fpage>44</fpage>. doi:<pub-id pub-id-type="doi">10.1186/s40537-022-00599-y</pub-id>; <pub-id pub-id-type="pmid">35495076</pub-id></mixed-citation></ref>
<ref id="ref-45"><label>[45]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Lindemann</surname> <given-names>B</given-names></string-name>, <string-name><surname>M&#x00FC;ller</surname> <given-names>T</given-names></string-name>, <string-name><surname>Vietz</surname> <given-names>H</given-names></string-name>, <string-name><surname>Jazdi</surname> <given-names>N</given-names></string-name>, <string-name><surname>Weyrich</surname> <given-names>M</given-names></string-name></person-group>. <article-title>A survey on long short-term memory networks for time series prediction</article-title>. <source>Procedia CIRP</source>. <year>2021</year>;<volume>99</volume>(<issue>2</issue>):<fpage>650</fpage>&#x2013;<lpage>5</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.procir.2021.03.088</pub-id>.</mixed-citation></ref>
<ref id="ref-46"><label>[46]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><surname>Vaswani</surname> <given-names>A</given-names></string-name>, <string-name><surname>Shazeer</surname> <given-names>N</given-names></string-name>, <string-name><surname>Parmar</surname> <given-names>N</given-names></string-name>, <string-name><surname>Uszkoreit</surname> <given-names>J</given-names></string-name>, <string-name><surname>Jones</surname> <given-names>L</given-names></string-name>, <string-name><surname>Gomez</surname> <given-names>AN</given-names></string-name>, <etal>et al.</etal></person-group> <article-title>Attention is all you need</article-title>. <comment>arXiv:1706.03762. 2023</comment>.</mixed-citation></ref>
<ref id="ref-47"><label>[47]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><surname>Rasul</surname> <given-names>K</given-names></string-name>, <string-name><surname>Ashok</surname> <given-names>A</given-names></string-name>, <string-name><surname>Williams</surname> <given-names>AR</given-names></string-name>, <string-name><surname>Ghonia</surname> <given-names>H</given-names></string-name>, <string-name><surname>Bhagwatkar</surname> <given-names>R</given-names></string-name>, <string-name><surname>Khorasani</surname> <given-names>A</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Lag-Llama: towards foundation models for probabilistic time series forecasting</article-title>. <comment>arXiv:2310.08278. 2024</comment>.</mixed-citation></ref>
<ref id="ref-48"><label>[48]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Tavassoli-Hojati</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Ghaderi</surname> <given-names>SF</given-names></string-name>, <string-name><surname>Iranmanesh</surname> <given-names>H</given-names></string-name>, <string-name><surname>Hilber</surname> <given-names>P</given-names></string-name>, <string-name><surname>Shayesteh</surname> <given-names>E</given-names></string-name></person-group>. <article-title>A self-partitioning local neuro fuzzy model for short-term load forecasting in smart grids</article-title>. <source>Energy</source>. <year>2020</year>;<volume>199</volume>(<issue>4</issue>):<fpage>117514</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.energy.2020.117514</pub-id>.</mixed-citation></ref>
<ref id="ref-49"><label>[49]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Makridakis</surname> <given-names>S</given-names></string-name>, <string-name><surname>Hibon</surname> <given-names>M</given-names></string-name></person-group>. <article-title>The M3-Competition: results, conclusions and implications</article-title>. <source>Int J Forecast</source>. <year>2000</year>;<volume>16</volume>(<issue>4</issue>):<fpage>451</fpage>&#x2013;<lpage>76</lpage>. doi:<pub-id pub-id-type="doi">10.1016/s0169-2070(00)00057-1</pub-id>.</mixed-citation></ref>
<ref id="ref-50"><label>[50]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Zhang</surname> <given-names>L</given-names></string-name>, <string-name><surname>J&#x00E1;no&#x0161;&#x00ED;k</surname> <given-names>D</given-names></string-name></person-group>. <article-title>Enhanced short-term load forecasting with hybrid machine learning models: CatBoost and XGBoost approaches</article-title>. <source>Expert Syst Appl</source>. <year>2024</year>;<volume>241</volume>(<issue>4</issue>):<fpage>122686</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.eswa.2023.122686</pub-id>.</mixed-citation></ref>
<ref id="ref-51"><label>[51]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Mallala</surname> <given-names>B</given-names></string-name>, <string-name><surname>Khan</surname> <given-names>PA</given-names></string-name>, <string-name><surname>Pattepu</surname> <given-names>B</given-names></string-name>, <string-name><surname>Eega</surname> <given-names>PR</given-names></string-name></person-group>. <article-title>Integrated energy management and load forecasting using machine learning</article-title>. In: <conf-name>2024 2nd International Conference on Sustainable Computing and Smart Systems (ICSCSS); 2024 Jul 10&#x2013;12; Coimbatore, India</conf-name>. p. <fpage>1004</fpage>&#x2013;<lpage>9</lpage>.</mixed-citation></ref>
<ref id="ref-52"><label>[52]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Mallala</surname> <given-names>B</given-names></string-name>, <string-name><surname>Ahmed</surname> <given-names>AIU</given-names></string-name>, <string-name><surname>Pamidi</surname> <given-names>SV</given-names></string-name>, <string-name><surname>Faruque</surname> <given-names>MO</given-names></string-name>, <string-name><surname>Reddy</surname> <given-names>R</given-names></string-name></person-group>. <article-title>Forecasting global sustainable energy from renewable sources using random forest algorithm</article-title>. <source>Results Eng</source>. <year>2025</year>;<volume>25</volume>(<issue>17</issue>):<fpage>103789</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.rineng.2024.103789</pub-id>.</mixed-citation></ref>
<ref id="ref-53"><label>[53]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Tsemekidi Tzeiranaki</surname> <given-names>S</given-names></string-name>, <string-name><surname>Bertoldi</surname> <given-names>P</given-names></string-name>, <string-name><surname>Diluiso</surname> <given-names>F</given-names></string-name>, <string-name><surname>Castellazzi</surname> <given-names>L</given-names></string-name>, <string-name><surname>Economidou</surname> <given-names>M</given-names></string-name>, <string-name><surname>Labanca</surname> <given-names>N</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Analysis of the EU residential energy consumption: trends and determinants</article-title>. <source>Energies</source>. <year>2019</year>;<volume>12</volume>(<issue>6</issue>):<fpage>1065</fpage>. doi:<pub-id pub-id-type="doi">10.3390/en12061065</pub-id>.</mixed-citation></ref>
</ref-list>
</back></article>