Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Energy Res., 13 November 2025

Sec. Smart Grids

Volume 13 - 2025 | https://doi.org/10.3389/fenrg.2025.1681139

This article is part of the Research TopicIoT-based Smart Monitoring Systems for Energy Management in MicrogridsView all articles

Smart meter-based demand forecasting for energy management using supercapacitors

  • 1Faculty of Systems, Electronics and Industrial Engineering, Universidad Técnica de Ambato, Ambato, Ecuador
  • 2Department of Electrical Engineering, University of Jaén, Linares, Spain
  • 3Department of Electrical Engineering, Electronics, and Telecommunications (DEET), Universidad de Cuenca, Cuenca, Ecuador
  • 4Department of Electrical Engineering and Applied Physics, Faculty of Electrical Engineering and Computer Science, Transilvania University of Brasov, Brasov, Romania

The smart grid paradigm has introduced new capabilities for monitoring and managing intelligent energy systems. In this context, IoT environments integrate smart sensors and devices to record electricity consumption and production in real time. This article proposes a methodological framework for energy management that incorporates real-time data processing, predictive modelling, and supercapacitor-based storage control to address short-term power fluctuations caused by load variability. The proposed approach is implemented in three phases. First, demand data are collected using a smart meter, with measurements stored on a local server. In the second phase, the data are processed to develop a forecasting model based on a Wide Neural Network, which updates autonomously. In the final phase, energy management is performed using a demand smoothing algorithm and a supercapacitor charge/discharge control mechanism. The forecasting performance was assessed through a comparative analysis of neural network models. The WNN achieved a correlation coefficient of 0.94 and a mean absolute percentage error of 6.3%. These results were obtained in a real-time processing environment and demonstrate the model’s ability to generalize under variable load conditions. In addition, the proposed system enables direct control of the storage system’s state of charge based on forecasted demand and a predefined power reference. Experimental validation was conducted in a prototype setup integrating smart metering, data acquisition, and automated response capabilities.

1 Introduction

The sustained growth in global electricity demand has prompted the development of strategies to improve the efficiency of generation, transmission, and distribution processes (Nespoli and Medici, 2025; Laurencio et al., 2024). Concurrently, the increasing integration of renewable energy sources has led to more decentralized power systems, bringing generation closer to consumption points and significantly reducing transport-related energy losses (Arévalo et al., 2025). In this context, enhancing the operational autonomy of power systems is essential for better energy planning and real-time management.

Accurate modelling and forecasting of demand behavior are therefore strategic for optimizing energy resource usage and for supporting resilient and sustainable system operations (Dewangan et al., 2023). The use of smart meters (SMs), together with Advanced Metering Infrastructure (AMI), enables detailed and continuous monitoring of electricity consumption, generating high-resolution time series suitable for forecasting models (Li et al., 2011; Weranga et al., 2012). These technologies also facilitate demand-side management by identifying peak usage periods and notifying users or control systems to prevent overloads and reduce costs (Komatsu and Kimura, 2020).

Short-term electricity demand forecasting (STDF) has traditionally been classified into static and dynamic models. Static models—such as polynomial interpolation—have been integrated into SM-based systems for real-time decision-making, especially in industrial settings where load patterns are relatively stable over short periods (Weranga et al., 2012). These models can be embedded directly into metering hardware, enabling rapid responses and alerts without relying on external computation.

The significance of STDF has been highlighted in recent studies, particularly for its role in minimizing technical losses, improving billing precision, and supporting optimal operation under time-of-use tariff schemes (Li et al., 2011; Komatsu and Kimura, 2020). Furthermore, the deployment of AMI systems has expanded the capabilities of forecasting models by incorporating environmental and behavioral factors, such as weather conditions, appliance usage, and regional consumption profiles (Miyasawa et al., 2021). These developments have supported the evolution of more advanced forecasting techniques based on artificial intelligence.

When integrated with machine learning methods, data streams from SMs can enhance predictive models in complex, non-linear environments (Ali et al., 2024). In particular, the use of non-parametric, AI-based models in combination with smart metering has shown strong potential for improving load forecasts and supporting demand-side energy control strategies.

This study presents a methodological framework for real-time demand forecasting and energy smoothing using SMs and supercapacitors. The proposed approach comprises three stages: data acquisition via smart metering, demand prediction using a Wide Neural Network (WNN), and implementation of a smoothing model based on supercapacitors to mitigate power fluctuations. The system has been experimentally validated in a microgrid testbed.

1.1 Literature review

Recent studies have examined the integration of smart meters (SMs) with machine learning techniques to improve load forecasting. For example, Mehdipour Pirbazari et al. (2020) conducted a systematic comparison of four machine learning algorithms—Artificial Neural Networks (ANNs), Support Vector Machines (SVM), Classification and Regression Trees (CART), and Long Short-Term Memory (LSTM)—applied to hourly residential energy consumption data. As a general foundation, classical works on ANNs such as Haykin (2009) offer a structured description of supervised and unsupervised learning, activation functions, training strategies, and convergence behavior, providing the theoretical underpinnings for later applications in energy demand forecasting. Building on this theoretical base, more recent surveys such as Dini and Paolini (2025) show how ANN models are applied in battery management, particularly for estimating the state of charge of EV and HV batteries. Their adaptability to complex, nonlinear patterns of electrochemical systems demonstrates the transferability of ANN approaches to different domains of energy management, including demand prediction, since both involve real-time assessment of dynamic variables under uncertain operating conditions. At the same time, broader reviews like Barbierato and Gatti (2024) remind that while ANN models achieve high predictive accuracy, their opaque decision-making process raises questions about interpretability. This issue is theoretical in nature and has practical implications in power system applications, where transparency of forecasting and control models is important for trust, validation, and operational accountability. Together, these perspectives connect the conceptual foundation, practical applications, and methodological challenges of ANNs, situating their role within demand forecasting frameworks that combine predictive modeling and real-time control.

Distributed learning techniques have also been investigated. For instance, the FedAVG-based approach in Fekri et al. (2022) improved prediction accuracy while minimizing communication overhead. Hybrid architectures such as LSTM-XGBoost have outperformed standalone configurations in several cases (Dewangan et al., 2023), and autoregressive neural networks have been successfully applied to predict harmonic distortion from SM data (Rodríguez-Pajarón et al., 2022). Additionally, recurrent neural networks such as Bi-LSTM and GRU have been used to address overfitting in high-dimensional datasets and to enhance forecast precision (Steephen et al., 2023). More recent contributions extend this line of work toward transformer-based forecasting, where attention mechanisms capture long-term dependencies in load patterns and probabilistic schemes quantify forecasting uncertainty (Hu et al., 2024). In parallel, NILM-oriented research has advanced through transformer-enhanced models, showing improved disaggregation of aggregated demand signals and enabling better representation of appliance-level dynamics (Rong et al., 2025). Further developments integrate NILM with smart grid management, where transformer-based algorithms support the analysis of flexible loads and electric vehicle charging, linking detailed consumption patterns with operational cost optimization (Yang et al., 2025).

A time-series decomposition method using parametric modeling was proposed by Mondal and Das (2023) to analyze residential consumption patterns in London. Their findings highlighted the sensitivity of model calibration to seasonal and cyclical variations. In another study, Neupane et al. (2024) trained a neural network model using AMI data from a distribution system in Nepal, reporting robust performance across diverse load types and climatic conditions. Incorporating temperature and temporal variables was found to significantly improve short-term forecasting.

From a spatial analysis perspective, Miyasawa et al. (2021) introduced a geo-referenced forecasting framework using SM data, where spatial granularity was used as a clustering criterion for regional optimization. In parallel, Abera and Khedkar (2020) addressed appliance-level consumption forecasting with a focus on feature engineering and correlation-based variable selection to reduce computational complexity. More recent studies have explored non-intrusive load monitoring approaches that employ transformer networks to improve the disaggregation of household and commercial demand. For example, transfer learning strategies have been incorporated into transformer-based NILM models to enhance generalization across diverse load types, reducing the need for large annotated datasets while maintaining high predictive accuracy. Likewise, new serial multi-task transformer algorithms have been introduced to analyze cyclical dependencies in household demand, enabling the separation of EV charging and other flexible loads from aggregate smart meter data. These advances demonstrate how disaggregation techniques enrich the quality of input signals available for short-term demand forecasting, connecting appliance-level analysis with broader system-level management (Rong et al., 2025; Yang et al., 2025).

Evolutionary algorithms have also been employed to train neural networks for load prediction in smart grids, as discussed in Kumar et al. (2025a). Related developments include adaptive probabilistic models with architecture tuning (Wang et al., 2022) and hybrid frameworks such as ADELA (Kumar et al., 2025b). Techniques like singular value decomposition (SVD), K-shape clustering, and empirical mode decomposition (EMD) have been applied to improve data preprocessing and input representation in Bi-LSTM-based models (Cao et al., 2023).

Finally, the EDF-FMLA model presented by Ghazal et al. (2021), which integrates IoT-based SMs with deep extreme learning and automatic load control, achieved a prediction accuracy of 90.70%, exceeding that of traditional models. Collectively, these contributions reflect a transition from conventional statistical methods to more complex, hybrid deep learning models closely linked with real-time metering infrastructure.

Table 1 provides a comparative synthesis of recent contributions and identifies key research gaps.

Table 1
www.frontiersin.org

Table 1. Summary of contributions, strengths, and gaps in related studies on load forecasting with SM.

1.2 Research problem

Although smart metering infrastructure and advanced forecasting techniques have become increasingly prevalent, the integration of predictive intelligence with real-time energy smoothing remains insufficiently developed. As discussed in Section 1.1, most existing studies prioritize improving the accuracy of short-term load forecasts using machine learning models—ranging from deep neural networks to federated learning and hybrid optimization. However, these approaches rarely include an implementation layer that enables active control of demand profiles or mitigation of power fluctuations.

The incorporation of energy storage devices, such as supercapacitors, into forecasting-based control systems has received limited attention. While some recent works have proposed automatic load control or IoT-based supervisory schemes, fe—if any—address the combined challenges of: (i) high-resolution real-time demand forecasting using SM data, (ii) activation of a load balancing system based on predictive profiles, and (iii) experimental validation in a physical testbed. This disconnect between prediction and control reduces the practical utility of forecasting models, particularly in microgrid and distribution-level environments where peak shaving, demand smoothing, and flexibility are essential.

Additionally, although several models incorporate spatial and temporal features, the design of adaptive architectures capable of autonomous operation within a short control horizon remains largely unexplored. This limits the effectiveness of intelligent demand-side management systems in reducing peak demand charges or preventing local grid overloads—especially under dynamic tariffs and high renewable energy penetration.

To address these gaps, this research proposes a methodological framework that integrates: (i) short-term load forecasting via a WNN trained on SM data; (ii) real-time energy smoothing through a supercapacitor-based control model; and (iii) experimental deployment within a microgrid laboratory equipped with real-time measurement systems. By linking data acquisition, forecasting, and physical actuation, the proposed system aims to support the development of power systems that are more autonomous, responsive, and energy efficient. In addition, the scope of the objectives has been defined in measurable terms: the forecasting model is required to achieve a mean absolute percentage error (MAPE) below 10%, the estimation of the supercapacitor state of charge (SoC) must be validated under real-time conditions, and the smoothing algorithm is tested during peak ramp events to evaluate its ability to mitigate abrupt variations in demand. These targets provide a clear basis for assessing forecasting accuracy, storage dynamics, and demand-side control within the experimental framework.

2 Methodology

The proposed method is structured in three main stages: (i) demand forecasting, (ii) power smoothing, and (iii) reference power calculation for the supercapacitors. Figure 1 illustrates the sequence of operations involved in the energy smoothing strategy based on predictive analysis.

Figure 1
Block diagram of a predictive method for smoothing energy demand. It involves database records feeding into a demand forecast module, which informs a power smoothing model. This model controls supercapacitors to adjust for load variations, combining load predictions and supercapacitor power to output the grid demand. Data is updated daily with an adjustment process.

Figure 1. General architecture diagram for the predictive method for smoothing energy demand.

The process begins with the collection of daily demand data from previous days. These records are organized into daily vectors, which are then compiled into a weekly matrix. This dataset is used to train the forecasting model, which predicts the next day’s demand. The forecasted values serve as input for calculating the SoC of the storage system and adjusting model parameters retrospectively. The model also receives real-time inputs from the current SoC and instantaneous power demand.

As the algorithm runs, incoming data is processed continuously, allowing the system to refine its behavior based on updated conditions. The following subsections describe each stage of the methodology in detail.

2.1 Demand forecast

2.1.1 Recording data in matrix form

The monitoring system is based on a smart energy meter that records n demand data per minute for a day. Each day contains n=1440 data points. These values generate the daily record in matrix form for D=5 consecutive days. The observation matrix for day d is defined as Equation 1:

Xd=x11x12x1dx21x22x2dxn1xn2xndRn×d(1)

where xn(d) represents the value of the variable demand x=PLoad(t) during n data of d days.

The general matrix for the 5 days of registration can be represented in an extended form as Equation 2:

X=X1X2XdRn×d(2)

2.1.2 Data preprocessing

During data acquisition with smart meters, temporary interruptions may occur due to communication issues, network instability, or hardware constraints. These interruptions can introduce measurement errors or gaps in the recorded data. Missing values (NaN) or invalid entries compromise the integrity of the input vectors used for model training. To address this issue, a linear interpolation strategy is applied directly to reconstruct missing values. This approach leverages the temporal structure of the data, preserving continuity in the time series and enabling reliable prediction of load profiles. This approach preserves the temporal continuity of the dataset, enabling reliable prediction of load profiles. The process is formalized through Equations 35.

DFdays=X\time column, target column(3)

where the time and target columns are removed from the DataFrame. The time column is excluded to focus exclusively on state variables, while the target column is discarded because it contains incomplete records before the 24-h period is completed, which could bias the prediction process.

DFdays=DFdaysn,if   the   value   at   position   n   is   defined,DFintn,if   xn1d<xnd<xn+1d and   DFdaysn=NaN.(4)

where DFdays(n) is the value resulting from the interpolation of the previous and next values according to the following equation:

DFintn=DFdaysn1+DFdaysn+1DFdaysn1n+1n1nn1(5)

In this way, this procedure aligns with best practices in data preparation for intelligent systems, where input quality is crucial for the performance of the proposed model. The application of this interpolation methodology improves the information density of the dataset and also reduces the bias introduced by random omissions, strengthening the robustness of the analysis.

2.1.3 Neural model architecture

The proposed neural network is defined as a Multilayer Feedforward model (See Equation 6) consisting of densely connected layers. The general expression for each layer l is:

hl=fWlhl1+bl(6)

where h(l) is activation vector at layer l, W(l) is weight matrix of layer l, b(l) is bias vector and f is the activation function (ReLU in hidden layers).

The model structure is defined by Equations 712:

h0=Xinput layer(7)
h1=ReLUW1X+b1,128 neurons(8)
h2=Dropout0.3(9)
h3=ReLUW3h2+b3,64 neurons(10)
h4=ReLUW4h3+b4,32 neurons(11)
Ŷ=W5h4+b5output layer with Y.shape1dimensions(12)

where Ŷ is the expected output matrix (target), Y.shape[1] denotes the output dimension. That is, the number of variables predicted per sample. In this case, the model forecasts a single variable: the total daily power demand.

The model configuration was defined through an empirical tuning process aimed at maximizing generalization capacity while avoiding overfitting. The number of neurons per layer (128, 64, 32) was determined through sensitivity analysis and grid search, promoting hierarchical feature extraction with minimal computational redundancy. A dropout layer with a rate of 0.3 was included as a regularization mechanism to reduce reliance on specific units and enhance robustness against unseen data. The batch size of 48 was selected for its optimal balance between gradient stability and computational efficiency, particularly in scenarios with high daily variability. The validity of these parameters is supported by the performance analysis presented in Section 3.4.1.

2.2 Supercapacitor model

The proposed system includes an integrated power distribution architecture in which supercapacitors (SC) are incorporated to smooth the demand curve and reduce power fluctuations caused by load variability. Figure 2 illustrates the configuration. The supercapacitor unit, labeled as SC, performs energy storage and exchange via a bidirectional interface comprising AC/DC and DC/AC converters connected to the power grid.

Figure 2
Diagram of a grid-connected energy system with AC and DC buses, smart meter, and loads. Includes graphs of power over time, indicating load and storage device charge/discharge patterns. Lines show energy flow between components, with specific power notations labeled.

Figure 2. Power flow at point of common coupling with SC and bidirectional converter.

The point of common coupling (PCC) is implemented through a low-voltage 230 Vac Delta-Wye (Δ-Y) transformer, forming the AC bus of the system. The power exchanged with the grid is denoted as PGd, the power demanded by the loads as PLoad, and the power delivered by the supercapacitor as PSC through the bidirectional inverter. The governing power balance for this configuration is expressed in Equation 13.

PGdt=PLoadt+PSCt,ttZt>0(13)

The behavior of the EDLC supercapacitor is modeled using the following Equations 1416:

ESC=12CV2(14)

where ESC is stored energy in joules, C is the capacitance of the EDLC (F), and V is terminal voltage of the supercapacitor (V).

The dynamic SoC of the SC can be calculated based on its charge and discharge current during a time interval according to the following expression:

SoCt=SoCt1it×ΔtQ0(15)

where i(t) is charge/discharge current (A), Δt is sampling time interval (s), Q0 is nominal charge capacity (C), and SoC(t) is SoC at time t. Then, terminal voltage with internal resistance can be calculated as:

Vt=OCVSoCtit×RSoCt,T(16)

where OCV(SoC) is the open-circuit voltage as a function of SoC, R(SoC,T) is the internal resistance as a function of SoC and temperature T.

2.3 Power smoothing model

2.3.1 Ramp rate control

The dynamics of the load power variation Pload, must closely correspond to the real-time measured data. This requires a control mechanism that operates within a response range bounded by a time interval, Δt. Furthermore, the associated rate of change, denoted RRt, is subject to a predetermined upper limit. Therefore, the ramp rate control formed by Equations 1719 can provide a detailed description of the dynamics of the proposed system:

RRt=dPLoaddt=±PLoadt+1PLoadtΔt(17)
RRtrmax(18)

Charge/discharge control according to power variation can be set as follows:

PLoadt+1PLoadt>0Ppwt=PLoadt+1+rmaxPLoadt+1PLoadt<0Ppwt=PLoadt+1rmax(19)

where Ppw represents the supercapacitor power used to compensate for fluctuations and rmax the maximum exchange rate allowed for loads.

2.3.2 Real-time SoC estimation

The calculation of the SoC estimate for supercapacitors is determined by the energy stored during charging EcSC(t) and discharging EdSC(t) respectively at time t. The power assigned as a reference value PSC(t) is calculated from the following Equations 2024:

PSCt=PLoadtPpwt+Pajust(20)
EcSCt=t1t2PSCtdt If  PSCt0 SC  charging processEdSCt=t1t2PSCtdt If  PSCt<0 SC  discharging process(21)

where PSC(t) is the resulting load power PLoad(t), Ppw the ramp rate control smoothing power, and Pajus(t) is the adjustment power to the model from the demand forecasting algorithms and the calculation of the expected state of charge. These values will be explained in detail in Section 2.3.3.

Consequently, the total energy stored in the SC during a time t is determined as:

ESCt=ηc×EcSCt1ηd×EdSCt(22)

where ηc is SC charging efficiency and ηd is SC discharging efficiency, respectively Benavides et al. (2023). The SoC of the SC as a function of its maximum energy Emax can be calculated as follows:

SoCSCt=SoCSCt1+EmaxESCt×100%(23)

The SC SoC restriction is limited in its maximum SoCmax (95%) and minimum SoCmin (5%) values allowed according to the following equation:

PSCt=0 If SoCmax<SoCSCt<SoCmin(24)

2.3.3 SoC prediction adjustment

The estimated SoC value is recalculated from Equations 2528. Where the forecast demand values are used to establish the fit in the demand power smoothing model, that is:

PSCt+Δt=PLoadt+ΔtPpwt+Δt(25)

where the expected reference power value PSC(t+Δt) can be calculated as the difference between the calculated value of the load forecast PLoad(t+Δt) and the expected smoothing power Ppw(t+Δt) of this value. Consequently, the prediction of the SC charging energy EcSC(t+Δt) and discharging energy EdSC(t+Δt) can be assigned as follows:

EcSCt+Δt=t1t2PSCt+Δtdt If PSCt+Δt0 Charging power predictionEdSCt+Δt=t1t2PSCt+Δtdt If PSCt+Δt<0 Discharging power prediction(26)

Similarly, the total energy expected to be stored in the SC ESC(t+Δt) during a time t+Δt is determined as:

ESCt+Δt=ηc×EcSCt+Δt1ηd×EdSCt+Δt(27)

The SoC in response to the SC demand forecast model, expressed as a percentage, is calculated using the following Equation 28:

SoCSCt+Δt=SoCSCt1+Δt+EmaxESCt+Δt×100%(28)

Finally, the adjustment factor in the correction of the reference power to the SCs Padjus(t) can be calculated as defined in the following Equation 29:

Pajust=βajusPLoadt If SoCSCt+ΔtSoCSCt1λ Charging power adjustmentPajust=βajusPLoadt If SoCSCt+Δt<SoCSCt1+λ Discharging power adjustment(29)

where βajus is the adjustment coefficient [0–0.5] that can be calculated based on the nominal load power and the percentage of the ±15% confidence interval. That is βajus=0.3. Consequently, the adjustment power is updated based on the next event of the state of charge prediction SoCSC(t+Δt), λ is the confidence interval coefficient within the real-time measured value.

3 Results and discussion

3.1 Case study

The evaluation of the experimental results was carried out in a low voltage three-phase distribution board of the Faculty of Systems, Electronics and Industrial Engineering of the Technical University of Ambato. The measuring equipment integrates three CT (Current Transformer) type current sensors of 500A JCT36K 3000: 1. In Figure 3 it can be observed in detail in (2). These sensors are incorporated into the smart meter (3) based on PZEM004T and ESP32 m (See Figure 2) with an access point (4) for reading power data in real time at the coupling point of the Main switch (1). The data is recorded and stored on the server (5) for subsequent processing and data analysis. Finally, the SC-based storage system (6) and the two-level bidirectional inverter (7) with Fsw = 2.5 kHz allows a dual flow from the grid with a maximum capacity of 0.4 kWh from the University of Cuenca’s Microgrid Laboratory (Espinoza et al., 2017). Table 2 below summarizes the essential electrical and operational parameters of the distribution panel, supercapacitor module, and bi-directional inverter, which together define the configuration and performance of the integrated power management system.

Figure 3
Facade of the Facultad de Ingeniería en Sistemas Electrónica e Industrial with a Wi-Fi symbol, indicating connectivity. Diagrams include numbered components: main switch (1), current transformers (2), energy meters (3), and access point (4). A laptop displaying IoT Energy Management (5). Hybrid inverter system (6) and SC System cabinet (7) featured from the CCTIB-Microgrid Lab.

Figure 3. Case study equipment with CCTIB Microgrid Laboratory.

Table 2
www.frontiersin.org

Table 2. Technical specifications of the energy distribution and storage system components.

3.2 Data acquisition and preprocessing

The weekly log matrix data are detailed in Figure 4a for weekdays and non-working days. Furthermore, the load power fluctuates during working hours, while maintaining a constant level during non-working hours. Figure 4b summarizes the distribution data for the week. The average value of around 15 kW for weekdays and a constant demand of 3 kW during non-working hours are highlighted. Similarly, a representative data pattern is assumed for weekdays, which will be analyzed later using neural networks in the following section to estimate the demand forecast for these days.

Figure 4
Two plots depict weekly load demand and data distribution. The top graph shows fluctuating power demand from Monday to Friday, peaking over twenty kilowatts, then declining on Saturday and Sunday. The bottom box plot illustrates weekly data distribution with similar patterns across weekdays and lower values on weekends.

Figure 4. Daily demand record: (a) Load demand and (b) Data distribution analysis.

3.3 Forecast results with the WNN

This section presents the performance of the WNN model during the training and validation phases applied to the demand data matrix. For the training dataset (70%), a correlation coefficient of R=0.95903 was obtained, reflecting strong alignment between predicted and actual values (see Figure 5a). The fitted relationship, given by Output0.92×Target+0.44, indicates a slope close to unity and minimal bias in the training predictions. The training method used is Levenberg-Marquardt, an optimized variant of the backpropagation algorithm that stands out for its effectiveness in regression problems with moderate-sized neural networks. This characteristic makes it an ideal choice for tuning feedforward architectures with high accuracy and rapid convergence.

Figure 5
Four charts depict data fitting for training and validation. Chart (a) shows training data and fit with \(R=0.95903\). Chart (b) displays validation data with \(R=0.9282\). Chart (c) combines both with \(R=0.94981\). Chart (d) is a histogram of error instances with a red zero error line. Training and validation data are distinguished by color.

Figure 5. WNN training and validation: (a) Training data (70%), (b) Data validation (30%), (c) Model validation and (d) Error Histogram.

Figure 5b displays the validation results using the remaining 30% of the data. In this case, the correlation was R=0.9282, with a fitted equation of Output0.88×Target+0.59.

When evaluating the complete dataset, the resulting correlation coefficient was R=0.94981, as shown in Figure 5c. These results confirm that the model preserves predictive consistency across both training and validation subsets. Furthermore, Table 3 summarizes the statistical indicators of the predictive model across the training, validation, and overall evaluation stages. The training dataset exhibits a positive mean error of 0.0175 and a skewness of 2.0553, indicating slight overestimation with an error distribution skewed toward positive values. In contrast, the validation dataset shows a negative mean error of −0.0524 and a moderate skewness of 0.7678, reflecting slight underestimation and a more balanced distribution. Finally, the validation of the full model maintains a mean error close to −0.0034 and an intermediate skewness of 1.4956, suggesting good generalization capability with a marginal tendency toward overestimation.

Table 3
www.frontiersin.org

Table 3. Statistical indicators of the predictive model.

Figure 5d shows the error histogram with a distribution around zero, which may confirm the model’s high accuracy. However, a greater distribution toward negative values is observed, indicating a marginal tendency to underestimate demand at certain points. In summary, the results indicate a model with high predictive capacity with the established data matrix and predictable behavior over time. This analysis was carried out using specialized MATLAB R2025a Neural Network Training tools using the Feed-Forward Neural Network with high precision in the results.

After configuring the adjustment parameters and validating the WNN model, it was implemented for real-time operation. The network was developed and trained in Python using libraries such as TensorFlow, Keras, Scikit-learn, Pandas, and NumPy. The architecture was designed to forecast multiple hourly energy demand values based on sequences of four consecutive days of historical data. During preprocessing, missing values were treated using forward- and backward-fill techniques, and the data were normalized using the MinMaxScaler method. Training was conducted over 500 epochs with a batch size of 48, employing mean squared error (MSE) as the loss function and the Adam optimizer. The model generates predictions within a confidence interval of ±15%, as shown in Figure 6a. This output is used to estimate the SoC for upcoming intervals, where the adjustment power defines the prediction range. Likewise, Figure 6b presents the percentage error between real-time values and the model’s predictions. It is observed that the majority of samples fall within the ±5% range, demonstrating high accuracy in demand estimation. Only a small number of cases exceed this threshold, further reinforcing the reliability of the predictive model.

Figure 6
Graphs showing power, prediction, and error data over sample indices. Graph (a) plots power in kilowatts with uncertainty, real-time, and prediction lines, highlighting a specific section. Graph (b) shows error percentage, with a focused section indicating prediction error limits and a value exceeding the limit.

Figure 6. Forecast results: (a) WNN validation results and (b) Error (%) difference between real time and prediction.

3.4 Evaluation of the predictive model

3.4.1 Training and validation of models

A comparison is made of some of the most commonly used neural networks for demand forecasting to evaluate the model. The following neural networks were selected for this evaluation: Long Short-Term Memory (LSTM), Narrow Neural Network (NNN), Bilayer Neural Network (BNN), Robust Linear Regression (RLR), Support Vector Machine (SVM), and WNN to validate the results. The tuning parameters of each model are evaluated based on a data matrix from three previous days, and their predicted response on the fourth day is assessed. The optimization of this process involves the analysis of weekdays. Subsequently, these models are validated in a pre-simulation environment for the best performing section of the network. These results are presented in Figures 7a–7f.

Figure 7
Six line graphs labeled (a) LSTM, (b) NNN, (c) BNN, (d) RLR, (e) SVM, (f) WNN, compare real-time power data (black lines) and predictions (red dashed lines) across sample indices zero to one thousand, with power measured in kilowatts from zero to twenty.

Figure 7. Training and validation: (a) Long Short-Term Memory, (b) Narrow Neural Network, (c) Bilayered Neural Network, (d) Robust Linear Regression, (e) Support Vector Machine and (f) Wide Neural Network.

Figure 7a presents the evaluation of the LSTM network, recognized as a foundational architecture in demand prediction models and one of the most representative among recurrent neural networks. Alternatively, the NNN model used in this study (Figure 7b) was configured with a single fully connected layer of 10 units and employed the ReLU activation function. Training was carried out over a maximum of 1,000 iterations without regularization (λreg=0), and the input data were standardized prior to model fitting. The second network, BNN (Figure 7c), consists of two fully connected layers, each with 10 units and ReLU activation. The model was trained for up to 1,000 iterations, also without regularization. Standardization was applied to the input matrix to facilitate convergence. The third configuration, RLR, applies a linear formulation designed to reduce sensitivity to outliers. It incorporates standard linear terms within a stability-enhancing optimization scheme. However, as shown in Figure 7d, the validation results exhibit a temporal lag, indicating limited responsiveness to rapid variations in the data. The SVM model, illustrated in Figure 7e, uses a linear kernel with automatic scaling and box constraints for adaptive parameter tuning. The margin parameter ϵ is set by default. Despite partial alignment with the load curve, the model displays inconsistencies in capturing temporal dynamics, particularly during transitions.

Finally, Figure 7f presents the WNN model adopted in this study. It comprises a single layer with 100 neurons and ReLU activation, trained over 1,000 iterations without regularization. Standardization was applied to enhance numerical stability. Among the evaluated configurations, this architecture demonstrated improved capacity for learning nonlinear demand patterns, with more precise temporal alignment than the alternatives.

3.4.2 Evaluation indices

After analyzing the training and validating the models, this section presents the results, which are analyzed based on the Root Mean Square Error (RMSE) indicators, which estimates the standard deviation of the prediction and actual errors; the R-Square or coefficient of determination (R2); the Mean Square Error (MSE); and the Mean Absolute Percentage Error (MAPE). This accurately evaluates the performance of the LSTM, NNN, BNN, RLR, SVM, and WNN models presented in this section, providing highly accurate results. Equations 3033, which evaluate these models, are described below:

RMSE=1ni=1nyiŷi2(30)

where yi is the real value, ŷi is the predicted value, ȳ is the average of the actual values and n is the total number of samples.

R2=1i=1nyiŷi2i=1nyiȳ2(31)
MSE=1ni=1nyiŷi2(32)
MAPE=1ni=1nyiŷiyi×100(33)

The results of this evaluation are presented in Table 4. According to Section 3.4.1, the resulting values of the RSME, R2, MSE and MAPE indices are established. The comparative results of these evaluated predictive neural network models and classical regression techniques highlight the Wide Neural Network model as the best performer among all, with minimum values in RMSE (1.0310), MSE (1.0630) and MAPE (6.3%), and R2 of 0.96, indicating high accuracy and capacity for real-time demand forecasting. The second most adaptive model is the LSTM, which demonstrated strong performance with RMSE = 1.1546, MSE = 0.89, and MAPE = 11.08%. This architecture enhances long-sequence learning capabilities, overcoming limitations typically associated with conventional recurrent neural networks. In contrast, the Support Vector Machine and Robust Linear Regression present higher error values, with MAPE greater than 26%, which suggests limited effectiveness. On the other hand, the Bilayered Neural Network model also represents acceptable values after WNN, with MAPE of 8.3% and R2 of 0.94, maintaining a balance between accuracy and structural complexity. Finally, the presented results conclude the use of deep neural architectures, particularly the WNN, as the best option in this comparative study. Consequently, it generates a reliable methodological tool for predicting energy demand in real time. In addition, the pseudocode that allows obtaining the results is presented sequentially and in detail in Table 5.

Table 4
www.frontiersin.org

Table 4. Comparison with different network models.

Table 5
www.frontiersin.org

Table 5. Processing algorithm and predictive modeling in energy systems.

Figure 8a presents a representative comparison based on four important areas for demand forecasting. The first Zone in Figure 8b corresponds to the response of the models to a small initial load connection. In Figure 8c corresponding to Zone 2, the response is executed to a growing slope of demand during the first working hours of the day, then a drop in demand is generated at midday (See Figure 8d), where an adjustment of most of the models in this section is observed. Finally, Figure 8e in the Zone 4 reflects the decreasing slope of the day. These values emphasize the importance of analyzing demand and finding specific patterns that allow to optimize the application of these predictive models in a better way.

Figure 8
Five line graphs labeled (a) to (e) illustrate power consumption in kilowatts across different sample zones, marked as Zone 1 to Zone 4. Various models are represented: Real-time, LSTM, NNN, BNN, RLR, SVM, and WNN, each with distinct line styles and colors. Graph (a) shows an overview from 0 to 1000 sample index, while graphs (b) to (e) detail specific zones, highlighting variations and patterns in power usage among the models.

Figure 8. (a) Comparison of forecasting models, (b) Zone 1, (c) Zone 2, (d) Zone 3 and (e) Zone 4.

3.5 Evaluation of the power smoothing model

In this section, the results of the demand power smoothing model based on Equations 1729 are presented. Figure 9a shows the demand curve profile from 5:00 to 19:00 h, where the real-time demand profile PLoad and the algorithm’s response to mitigate the generated fluctuations as Ppw are illustrated. The enlarged section shows the contribution of the SC as a ramp rate limiter. On the other hand, Figure 9b shows the SC charging and discharging powers PSC(t) as the difference between the measured power and the reference power of the smoothing method, where the positive rate of change implies a discharge of the SCs and a negative rate of change of the load. The state of charge SoCSC expressed as a percentage is shown in Figure 9c, where it can be observed that the charging power exhibits abrupt variations throughout the day, while the grid power maintains a more stable trend, except for a pronounced drop at the end of the day.

Figure 9
Three graphs display power and state of charge data over time. (a) shows load power and wind power in kilowatts. (b) presents power charge and discharge. (c) shows the state of charge percentage. Each graph highlights specific sections with insets showing detailed views around 19:00.

Figure 9. Validation of the models: (a) Load power and smoothed power, (b) Reference power to SC for charge/discharge cycles and (c) SoC of the supercapacitor.

It is worth highlighting the dynamics of the storage system’s power output, which operates at specific times of charging (positive peaks) and discharging (negative peaks), in sync with demand (Benavides et al., 2024). Furthermore, the progressive decrease in the SCs state of charge allows for recovery at the end of the workday around 7:00 p.m. This representation supports the storage system’s effectiveness in offsetting power demand fluctuations, optimizing grid supply, and maintaining operating load levels within established ranges, improving its energy efficiency and energy quality for the grid.

3.5.1 Sensitivity analysis by adjustment coefficient

This section presents a sensitivity analysis of the adjustment coefficient, as established in Equation 29. This coefficient enables optimal regulation of the state of charge values, ensuring they remain within a predefined interval. Figure 10 displays the results of this configuration under various values of the adjustment coefficient. The values of demand power, predicted power, and smoothed power are analyzed under different adjustment coefficients, along with their response to both the real and predicted state of charge. In Figures 10a,b, a noticeable increase in the real-time SoC compared to the predicted value is observed, attributed to a low adjustment coefficient (βajus=0.2), which limits the system’s self-regulation capability. In contrast, Figures 10c,d assign a coefficient of βajus=0.3, significantly improving alignment with the predicted value. This configuration enables more accurate monitoring, maintains balance in the prediction, and anticipates future load behavior events.

Figure 10
Eight graphs display power and state of charge (SOC) data over a day for different β_adjust values. Panels (a), (c), (e), and (g) show power (kW) with load and wind power at various times. Panels (b), (d), (f), and (h) illustrate SOC percentages with ranges for corresponding β_adjust values of 0.2, 0.3, 0.4, and 0.5. Each graph provides insights into energy load management.

Figure 10. Adjustment coefficient: (a) Power smoothing βajus=0.2, (b) SoC βajus=0.2, (c) Power smoothing βajus=0.3, (d) SoC βajus=0.3, (e) Power smoothing βajus=0.4, (f) SoC βajus=0.4, (g) Power smoothing βajus=0.5 and (h) SoC βajus=0.5.

Additionally, Figures 10e,f, with βajus=0.4, show that the system fails to adjust properly at the end of the process, leaving a narrow margin near the SoC operating limits. When a higher coefficient of βajus=0.5 is applied, as shown in Figures 10g,h, the system exceeds the predefined range, complicating SoC control. Consequently, an intermediate value of βajus is recommended to optimize the performance of the storage system, balancing predictive accuracy and operational stability.

3.5.2 Sensitivity analysis by test days

Finally, a sensitivity analysis is performed considering the test days Monday, Friday, and Saturday, with the objective of validating and evaluating the operation of the proposed model under different demand conditions. Figure 11a details the demand profile with a high power change rate and the system response as Ppw in a timely manner, significantly mitigating the generated disturbances. In parallel, Figure 11b shows the SoC of the SC SoCSC(t) under these effects, highlighting the predictive operating range in response to the WNN network model SoCSC(t+Δt). This allows for optimal SoC control by limiting future demand events. Similarly, Figures 11c,d show the results for the evaluated day on Friday. In this case, there are no significant changes in the power rate, so it can be mitigated within the stipulated period. Furthermore, in Figures 11e,f, the non-working day has been considered for the interpretation of the results, and the system has no operation due to maintaining a constant demand without generating major fluctuations. Overall, the presence of areas of high variability in the state of charge suggests that the system responds quickly to differences between load and supply, validating its ability to act as a dynamic backup in the face of grid intermittency. Overall, this figure summarizes the storage system’s efficiency in mitigating hourly imbalances, showing how the SoC adjusts based on actual demand and preset operating parameters.

Figure 11
The image contains six panels showing power and state of charge (SOC) data. Panels (a), (c), and (e) display power load and photovoltaic power (P_Load and P_pw) for Monday, Friday, and Saturday, respectively. Each shows distinct power consumption peaks. Panels (b), (d), and (f) depict the SOC of storage systems, with a solid line for SOC at time t and a shaded range for SOC at time t plus delta t, illustrating varying charge levels throughout the day. Differences in power and SOC trends are noted across the days.

Figure 11. Sensitivity analysis: (a) Smoothed load power test on Monday, (b) SoC assessed and operating range on Monday, (c) Smoothed load power test on Friday, (d) SoC assessed and operating range on Friday (e) Smoothed load power test on Saturday (f) SoC assessed and operating range on Saturday.

4 Conclusion

The integration of IoT tools in electrical systems has improved access to and analysis of operational data. This study implemented smart meters for real-time demand forecasting, incorporating fast-response energy storage to manage load variations and anticipate future demand trends. The main findings of the research are outlined below.

The forecasting system was based on the construction of demand matrices from historical data and the application of a Wide Neural Network. This configuration achieved correlation coefficients above 0.94 and a mean absolute percentage error of 6.3%, surpassing other evaluated models such as SVM and RLR.

The model supports real-time adaptation through continuous data acquisition and processing. Both the current demand and the system load state contributed to iterative updates of the forecast, allowing the system to respond to changing operating conditions.

The energy smoothing algorithm reduced ramp rate variations associated with demand fluctuations by adjusting the reference power signal according to the supercapacitor’s state of charge. This result confirms the system’s function as a buffer against short-term variations in power flow.

The methodology follows a modular structure and is implemented using Python libraries (TensorFlow, Keras, Scikit-learn), which allows for its integration into broader IoT-based energy management platforms.

Finally, the integration of predictive forecasting with energy storage control enables future developments in anticipatory management strategies, where load behavior forecasts inform storage operation based on projected demand and SoC adjustments.

Data availability statement

The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.

Author contributions

DB: Conceptualization, Data curation, Formal Analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review and editing. PA-C: Conceptualization, Formal Analysis, Investigation, Methodology, Validation, Visualization, Writing – original draft, Writing – review and editing. JE: Conceptualization, Data curation, Formal Analysis, Investigation, Methodology, Validation, Writing – original draft, Writing – review and editing. DO-C: Conceptualization, Data curation, Formal Analysis, Investigation, Methodology, Resources, Supervision, Validation, Visualization, Writing – original draft, Writing – review and editing. DT: Formal Analysis, Funding acquisition, Investigation, Methodology, Project administration, Software, Visualization, Writing – original draft, Writing – review and editing. AR: Formal Analysis, Funding acquisition, Investigation, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review and editing.

Funding

The author(s) declare that no financial support was received for the research and/or publication of this article.

Acknowledgments

Acknowledgements

The authors thank the Dirección de Investigación y Desarrollo (DIDE) of the Universidad Técnica de Ambato for supporting this work through the research project PFISEI36, “Development of Computational Tools for the Management and Optimization of Smart Microgrids.” The authors thank the Faculty of Engineering, Universidad de Cuenca, Ecuador, for easing access to the Micro-Grid Laboratory’s facilities, allowing the use of its equipment, and authorizing its staff to provide technical support necessary to carry out the experiments described in this article.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The author(s) declare that no Generative AI was used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

References

Abera, A., and Khedkar, M. (2020). Machine learning approach: electric appliance consumption forecasting based on smart meter data. Int. J. Eng. Res. and Technol. 9, 305–312. doi:10.1007/s11277-019-06845-6

CrossRef Full Text | Google Scholar

Ali, S., Bogarra, S., Riaz, M. N., Phyo, P. P., Flynn, D., and Taha, A. (2024). From time-series to hybrid models: advancements in short-term load forecasting embracing smart grid paradigm. Appl. Sci. 14, 4442. doi:10.3390/app14114442

CrossRef Full Text | Google Scholar

Arévalo, P., Benavides, D., Ochoa-Correa, D., Ríos, A., Torres, D., and Villanueva-Machado, C. W. (2025). Smart microgrid management and optimization: a systematic review towards the proposal of smart management models. Algorithms 18, 429. doi:10.3390/a18070429

CrossRef Full Text | Google Scholar

Barbierato, E., and Gatti, A. (2024). The challenges of machine learning: a critical review. Electronics 13, 416. doi:10.3390/electronics13020416

CrossRef Full Text | Google Scholar

Benavides, D., Arévalo, P., Aguado, J. A., and Jurado, F. (2023). Experimental validation of a novel power smoothing method for on-grid photovoltaic systems using supercapacitors. Int. J. Electr. Power and Energy Syst. 149, 109050. doi:10.1016/j.ijepes.2023.109050

CrossRef Full Text | Google Scholar

Benavides, D., Arévalo, P., Criollo, A., Tostado-Véliz, M., and Jurado, F. (2024). Multi-mode monitoring and energy management for photovoltaic-storage systems. Renew. Energy 230, 120820. doi:10.1016/j.renene.2024.120820

CrossRef Full Text | Google Scholar

Cao, J., Zhang, R.-X., Liu, C.-Q., Yang, Y.-B., and Chen, C.-L. (2023). A group resident daily load forecasting method fusing self-attention mechanism based on load clustering. Appl. Sci. 13, 1165. doi:10.3390/app13021165

CrossRef Full Text | Google Scholar

Dewangan, F., Abdelaziz, A. Y., and Biswal, M. (2023). Load forecasting models in smart grid using smart meter information: a review. Energies 16, 1404. doi:10.3390/en16031404

CrossRef Full Text | Google Scholar

Dini, P., and Paolini, D. (2025). Exploiting artificial neural networks for the state of charge estimation in EV/HV battery systems: a review. Batteries 11, 107. doi:10.3390/batteries11030107

CrossRef Full Text | Google Scholar

Espinoza, J. L., González, L. G., and Sempértegui, R. (2017). “Micro grid laboratory as a tool for research on non-conventional energy sources in Ecuador,” in 2017 IEEE international autumn meeting on power, electronics and computing (ROPEC), 1–7. doi:10.1109/ROPEC.2017.8261615

CrossRef Full Text | Google Scholar

Fekri, M. N., Grolinger, K., and Mir, S. (2022). Distributed load forecasting using smart meter data: Federated learning with recurrent neural networks. Int. J. Electr. Power and Energy Syst. 137, 107669. doi:10.1016/j.ijepes.2021.107669

CrossRef Full Text | Google Scholar

Ghazal, T., Noreen, S., Said, R., Khan, M., Siddiqui, S., Abbas, S., et al. (2021). Energy demand forecasting using fused machine learning approaches. IASC 31, 539–553. doi:10.32604/iasc.2022.019658

CrossRef Full Text | Google Scholar

Haykin, S. (2009). Neural networks and learning machines. 3rd edn. Upper Saddle River, NJ: Pearson.

Google Scholar

Hu, J., Hu, W., Cao, D., Sun, X., Chen, J., Huang, Y., et al. (2024). Probabilistic net load forecasting based on transformer network and gaussian process-enabled residual modeling learning method. Renew. Energy 225, 120253. doi:10.1016/j.renene.2024.120253

CrossRef Full Text | Google Scholar

Khan, Z. A., and Jayaweera, D. A. (2020). “Smart Meter Data Based Load Forecasting and Demand Side Management in Distribution Networks With Embedded PV Systems,” in IEEE Access. 9 2631–2644. doi:10.1109/ACCESS.2019.2962150

CrossRef Full Text | Google Scholar

Komatsu, H., and Kimura, T. (2020). Peak demand alert system based on electricity demand forecasting. Energy Rep. 6, 181–189. doi:10.1016/j.egyr.2019.10.017

CrossRef Full Text | Google Scholar

Kumar, J., Rani, P., Saxena, D., Singh, A. K., and Makkar, A. (2025a). Evolutionary learning driven load forecasting and demand response management model for smart grid. Appl. Soft Comput. 177, 113169. doi:10.1016/j.asoc.2025.113169

CrossRef Full Text | Google Scholar

Kumar, J., Saxena, D., Kumar, J., Kumar Singh, A., and Vasilakos, A. V. (2025b). An adaptive evolutionary neural network model for load management in smart grid environment. IEEE Trans. Netw. Serv. Manag. 22, 242–254. doi:10.1109/TNSM.2024.3470853

CrossRef Full Text | Google Scholar

Laurencio, R. M., Breff, O. T., Ramirez, S. M., and Jiménez, D. J. (2024). Predicción de Consumo y Demanda de Electricidad Mediante Redes Neuronales Artificiales y Algoritmo Iterativo. Rev. Politécnica 54, 45–58. doi:10.33333/rp.vol54n3.05

CrossRef Full Text | Google Scholar

Li, F., Luo, B., and Liu, P. (2011). Usage analysis for smart meter management. Int. J. Electr. Power and Energy Syst. 33, 712–720. doi:10.1016/j.ijepes.2010.12.007

CrossRef Full Text | Google Scholar

Mehdipour Pirbazari, A., Farmanbar, M., Chakravorty, A., and Rong, C. (2020). Short-term load forecasting using smart meter data: a generalization analysis. Processes 8, 484. doi:10.3390/pr8040484

CrossRef Full Text | Google Scholar

Miyasawa, Y., Taniguchi, H., Maruyama, H., and Fukuyama, Y. (2021). A two-stage stochastic programming approach for non-cooperative generation maintenance scheduling model design. Int. J. Electr. Power and Energy Syst. 126, 106584. doi:10.1016/j.ijepes.2020.106584

CrossRef Full Text | Google Scholar

Mondal, S., and Das, M. (2023). Parametric time-series modelling of London smart meter data. Int. J. Electr. Power and Energy Syst. 146, 108258. doi:10.1016/j.ijepes.2022.108258

CrossRef Full Text | Google Scholar

Nespoli, L., and Medici, V. (2025). Global forecasting models for residential load flexibility and grid optimization. Front. Energy Res. 13, 1547617. doi:10.3389/fenrg.2025.1547617

CrossRef Full Text | Google Scholar

Neupane, B. G. C. I., Adhikari, D., and Sah, S. (2024). “Artificial neural network based short-term load forecasting of nuwakot distribution center using smart meter ami data,” in 2024 IEEE international conference on power system technology (PowerCon) (IEEE). doi:10.1109/PowerCon60995.2024.10870552

CrossRef Full Text | Google Scholar

Rodríguez-Pajarón, P., Hernández Bayo, A., and Milanović, J. V. (2022). Forecasting voltage harmonic distortion in residential distribution networks using smart meter data. Int. J. Electr. Power and Energy Syst. 136, 107653. doi:10.1016/j.ijepes.2021.107653

CrossRef Full Text | Google Scholar

Rong, J., Wang, C., Zhou, Q., He, Y., and Wu, H. (2025). Enhancing non-intrusive load monitoring through transfer learning with transformer models. Energy Build. 330, 115334. doi:10.1016/j.enbuild.2025.115334

CrossRef Full Text | Google Scholar

Steephen, A., George, L., and Joseph, A. (2023). “Demand forecasting in smart homes using deep learning,” in 2023 IEEE international conference on smart energy systems (ICSES) (IEEE), 143–148. doi:10.1109/ICSES56715.2023.10214423

CrossRef Full Text | Google Scholar

Wang, C., Qin, D., Wen, Q., Zhou, T., Sun, L., and Wang, Y. (2022). Adaptive probabilistic load forecasting for individual buildings. iEnergy 1, 341–350. doi:10.23919/IEN.2022.0041

CrossRef Full Text | Google Scholar

Weranga, K., Chandima, D., Munasinghe, S., Kumarawadu, S., and Abeykoon, A. (2012). “Short-term electricity demand forecasting method for smart meters,” in 2012 international conference on industrial and information systems (ICIIS) (IEEE), 1–6. doi:10.1109/ICIINFS.2012.6304772

CrossRef Full Text | Google Scholar

Yang, N., Wang, Y., Zhang, Y., and Yuan, D. (2025). Non-intrusive load monitoring for energy management in smart grids incorporating EVs. IEEE Trans. Consumer Electron. 71, 1696–1706. doi:10.1109/TCE.2024.3489580

CrossRef Full Text | Google Scholar

Nomenclature

X(d) Matrix of values of the demand power d accumulated days

X Extended value matrix of the demand power of accumulated days

PGd(t) Power grid

PLoad(t) Sum of powers of the load

PSC(t) Reference power to the supercapacitor

ESC(t) Energy stored in the SC

SoCSC(t) State of charge of the SC at a time t

V(t) SC voltage at time t

RRt Ramp rate control

Ppw Smoothed power to compensate for fluctuations

Pajus Power adjustment to the model based on demand forecast

EcSC(t) SC charging energy

EdSC(t) SC discharging energy

PLoad(t+Δt) Load demand power prediction

t Time

Δt Time interval

T Temperature

βajus Adjustment coefficient

λ confidence interval coefficient

λreg Regularization parameter

PSC(t+Δt) SC power prediction

EcSC(t+Δt) SC charge energy prediction

EdSC(t+Δt) SC discharge energy prediction

ESC(t+Δt) SC energy prediction

SoCSC(t+Δt) SC state of charge prediction

RMSE Root Mean Square Error

MSE Mean Squared Error

MAPE Mean Absolute Percentage Error

R2 Coefficient of determination

SC Supercapacitor

SM Smart meter

WNN Wide Neural Network

BNN Bilayered Neural Network

NNN Narrow Neural Network

RLR Robust Linear Regression

SVM Support Vector Machine

LSTM Long Short-Term Memory

Keywords: smart meter, demand forecasting, energy management, supercapacitors, real-time, power smoothing

Citation: Benavides D, Arévalo-Cordero P, Espinosa Domínguez J, Ochoa-Correa D, Torres D and Ríos A (2025) Smart meter-based demand forecasting for energy management using supercapacitors. Front. Energy Res. 13:1681139. doi: 10.3389/fenrg.2025.1681139

Received: 06 August 2025; Accepted: 27 October 2025;
Published: 13 November 2025.

Edited by:

L. J. Muhammad, Bayero University Kano, Nigeria

Reviewed by:

Yunqi Wang, RMIT University, Australia
Anna Diva Lotufo, Universidade Estadual Paulista Julio de Mesquita Filho, Brazil

Copyright © 2025 Benavides, Arévalo-Cordero, Espinosa Domínguez, Ochoa-Correa, Torres and Ríos. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Dario Benavides, ZGouYmVuYXZpZGVzQHV0YS5lZHUuZWM=

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.