<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Research on Enhancing Power Generation Forecasts with Real-Time Machine Learning Models</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Yulii Horichenko</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Anzhelika Parkhomenko</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Oleg Pozdnyakov</string-name>
          <email>oleg.pozdnyakov.ua@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Artem Tulenkov</string-name>
          <email>aetulenkov@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Olga Gladkova</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andriy Parkhomenko</string-name>
          <email>andriy2872073@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>National University Zaporizhzhia Polytechnic</institution>
          ,
          <addr-line>64, Zhukovskogo str., Zaporizhzhia, 69063</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Applied Sciences and Arts</institution>
          ,
          <addr-line>23, Otto-Hahn str., Dortmund, 44227</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Intelligent methods for optimizing energy use are rapidly gaining popularity as the world moves towards sustainable energy solutions. This study delves into enhancing the efficiency of alternative energy usage by improving of the forecasting model by integrating data collected in real time from local weather stations, leading to more accurate and localized forecasting of power generation. Significant focus is placed on the development and integration of cost-effective, custom-built measurement systems for wind speed and solar irradiation. By integrating real-time data from local meteorological stations with advanced machine learning methods, the study proposes a new approach that combines broad weather forecasts with precise local conditions to predict power generation more accurately. The research emphasizes the scientific novelty of the model, which combines real-time data from local meteorological stations with Long Short-Term Memory model. It also highlights the practical significance in improving the reliability and efficiency of alternative energy use in home automation systems.</p>
      </abstract>
      <kwd-group>
        <kwd>Keywords1</kwd>
        <kwd>Home automation system</kwd>
        <kwd>real-time machine learning</kwd>
        <kwd>artificial neural networks</kwd>
        <kwd>incremental learning</kwd>
        <kwd>adaptive learning</kwd>
        <kwd>power generation</kwd>
        <kwd>forecasting</kwd>
        <kwd>LSTM</kwd>
        <kwd>OpenHAB</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>In today's world, saving energy is becoming more and more important. Many people are looking
for ways to use less electricity from the traditional power grid to save money and help the
environment. One popular way to do this is by using alternative energy sources, like solar or wind
power. However, the effective use of power from alternative sources requires advanced
management strategies. There is a lot of discussion around this topic, so many authors have
proposed their own methods for solving this problem. Existing works propose three main
categories of energy optimization strategies: the optimization of electrical appliance usage
schedule [1, 2, 3, 4, 5, 6, 7, 8], forecasting electricity consumption [9, 10, 11, 12, 13, 14, 15, 16, 17],
and forecasting power generation [18, 19, 20]. Each of these approaches has its own advantages
and limitations, which contribute to the overall goal of achieving energy efficiency from
alternative sources.</p>
      <p>The study [21] introduced a complex intelligent method for controlling energy consumption
in home automation systems (HAS). This novel approach comprises two strategies: forecasting
power generation and optimizing the schedule of electrical appliance usage. Consequently,
houseowners can use energy more efficiently, saving money and reducing environmental impact.
To facilitate this, an intelligent support subsystem was developed, providing residents with</p>
      <p>0009-0004-4506-9631 (Y. Horichenko); 0000-0002-6008-1610 (A. Parkhomenko);
0009-0006-3955-802X (O. Pozdnyakov); 0000-0003-4863-4144 (A. Tulenkov);
0000-0002-6834-2854 (O. Gladkova); 0000-0001-8265-0530 (A. Parkhomenko)
© 2024 Copyright for this paper by its authors.</p>
      <p>Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).
recommendations for the efficient use of electrical appliances. While the developed Long
ShortTerm Memory (LSTM) model [21] showed good predictive capabilities in forecasting power
generation, a significant limitation arises from its reliance on data from online weather services.
The effectiveness of these forecasts is often compromised, as they may not accurately reflect the
actual weather conditions where the HAS is located. This can cause issues for the developed
intelligent support subsystem [21] while forecasting power generation and providing
recommendations.</p>
      <p>Therefore, the task of enhancing the accuracy of the forecasting model by incorporating
realtime data is urgent.</p>
      <p>The goal of the work is the research and practical implementation of methods and tools for
real-time data collection, as well as methods for real-time machine learning.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Study of real-time data collection features for power generation forecasting</title>
      <sec id="sec-2-1">
        <title>2.1. Analysis of management architectures for alternative energy sources</title>
        <p>The initial phase of this study delves into how inverters are used within alternative energy
sources, focusing on their architectural integration. By exploring different inverter architectures,
the aim is to see how they can integrate with the power grid and other energy sources.</p>
        <p>Inverters play a crucial role in integrating alternative energy, transforming the direct current
(DC) produced by solar panels and wind turbines into the alternating current (AC) used in homes
and the power grid. This transformation is key because it makes the generated electricity
compatible with usual household appliances and the wider electrical system. But solar inverters
do a lot more than just convert DC to AC. They also adjust the electricity to the right voltage and
sine wave frequency, making sure it is safe for home use or to be sold out on the electricity grid.
Furthermore, these inverters incorporate safety features, ensuring a secure energy supply [24].</p>
        <p>It is also important to understand the different types of inverters in order to fully appreciate
their role in adopting alternative energy. There are three main types: Stand-alone, Grid-tie and
Hybrid inverters.</p>
        <p>Stand-alone inverters are the heart of off-grid solar systems. They convert DC electricity from
batteries, which get charged by the solar panels, into AC that can be used for a variety of needs
(Fig. 1). This type is perfect for places without access to the traditional grid, providing a reliable
source of power. They have features that protect batteries from overcharging and help keep the
power supply steady, making them crucial for continuous energy in off-the-grid spots [24, 25].</p>
        <p>Solar panels</p>
        <p>DC
Stand-alone</p>
        <p>Inverter
AC</p>
        <p>Grid-tie inverters connect solar systems to the utility grid. They transform the DC electricity
from solar panels into AC that matches the external grid's requirements. A key function of these
inverters is to synchronize the solar power with the grid's frequency and phase (Fig. 2). This not
only lets homes use solar power but also lets them sell extra electricity back to the grid to get
credits for this extra energy [24, 25].</p>
        <p>Hybrid inverters combine the best features of both stand-alone and grid-tie inverters. They
are capable of using power from solar panels, batteries and the external grid, supporting systems
that aim for independence from the traditional grid while also ensuring efficient energy use (Fig.
3). These inverters allow homes to store excess solar energy for use during periods of high
demand or when the grid is unavailable. This type of inverter is particularly useful in areas with
unreliable grid service, as it makes energy use more efficient and reduces reliance on the grid.</p>
        <p>In work [21], a real HAS was examined, with a focus on its integration with alternative energy
sources and battery backup system. It has a hybrid setup, including a hybrid inverter connected
to the external power grid, battery storage and renewable energy sources such as solar panels
and wind turbines. These batteries play a critical role as a backup solution in scenarios where
both self-generated electricity and the external grid are unavailable. Under normal conditions,
they maintain a charged state, acting as a buffer and enabling efficient energy management within
the system.</p>
        <p>Additionally, this system incorporates Open Home Automation Bus (OpenHAB), a home
automation software that allows homeowners to control a wide range of Internet of Things (IoT)
devices. This means that people can easily control the environment in their home, making it more
comfortable and able to respond to their needs more effectively.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Analysis and implementation of real-time data collection from meteorological stations</title>
        <p>Recent study [21] has shown the correlation between weather data and power generation
while implementing an LSTM forecasting model. Specifically, wind speed (measured in meters
per second) and solar irradiation (measured in watts per square meter) have been identified as
essential parameters for the forecasting model. To collect this data, it is necessary to install a
meteorological station near the HAS. Such an installation not only ensures the availability of
realtime data but also enhances the model's predictive accuracy by using local weather conditions.</p>
        <p>A detailed review of various online stores offering meteorological stations was carried out to
find the best solution. The research showed a strong preference for all-in-one weather stations.
These stations can track a variety of weather information, such as wind speed and direction,
temperature, solar irradiation, air pressure etc. Despite their capabilities, the primary drawback
of these stations lies in their high cost, making them a less suitable option for budget limited
projects. As a result, a more affordable alternative is to buy wind and solar irradiation sensors
separately. Although this approach offers a smaller range of data, it still meets the essential
requirements for the forecasting model.</p>
        <p>There is a wide variety of wind sensors available on the market at affordable prices. They are
designed to accurately measure wind speed and direction, making them an ideal choice for
collecting the necessary wind data for a forecasting model.</p>
        <p>To collect wind speed data in real-time, the wind speed sensor “CWT-SWC-C-RS485” was
selected for its price and efficiency. This wind sensor uses the RS485 standard, which OpenHAB
does not support. To resolve this, the data is sent to an ESP8266 microcontroller with “Tasmota”
firmware installed, acting as a Modbus bridge. Subsequently, OpenHAB processes this
information and stores it in a local MySQL database. This measurement system represents a
seamless integration of the sensor with HAS, enabling advanced wind speed monitoring and data
collection (Fig. 4).</p>
        <p>Wind sensor
Wind speed (m/s)
Wind speed (m/s)</p>
        <p>The custom wind speed measurement system has now been successfully implemented and is
actively collecting local wind speed data for the database. On Figure 5, a sample of the data from
the database is displayed.</p>
        <p>The OpenHAB platform enables real-time monitoring of wind speed data (Fig. 6) and offers
access to historical data charts (Fig. 7). This setup provides instant insights into current wind
conditions and supports the analysis of wind speed trends over time. Additionally, OpenHAB
collects wind speed data from online weather service OpenWeatherMap [23], which enables to
compare the local weather data with online forecasts.</p>
        <p>Subsequent research involved analyzing data obtained from online weather service, which
was used for forecasting power generation. In Figure 8, a chart shows a comparative analysis of
historical wind speed data, derived from both a local meteorological station and online weather
service. The local meteorological station data, denoted by the blue line with error bars, shows the
mean wind speed for each hour along with the standard deviation, indicating variability within
the hour. The error bars show how much the wind speed can vary over time. In contrast, the data
from the online weather service OpenWeatherMap [23] is plotted as an orange line.</p>
        <p>The comparative analysis between these two datasets revealed some major differences,
suggesting that incorporating local meteorological station data could enhance the accuracy of
power generation forecasts. This visual analysis not only highlights the temporal dynamics of
wind speed but also serves as a crucial tool for evaluating the reliability of wind speed data from
different sources. Such comparisons are essential for applications where accurate weather data
is crucial for predicting power generation and providing recommendations.</p>
        <p>During the search for a suitable solar irradiation sensor, it was discovered that the available
sensors on the market are too expensive. This discovery suggested an idea for designing and
building a custom solar irradiation measurement system that would meet the requirements of
the study. This solution is expected to provide accurate data on solar irradiation at a lower cost
than commercial sensors.</p>
        <p>To calculate the level of solar irradiation, a measurement system was suggested that involves
a solar controller charger with pulse width modulation (PWM) technology, a solar panel and a
battery. By measuring the electrical output from the solar panel and considering the panel's
surface area, the level of solar irradiation can be calculated (Fig. 9). The solar controller charger
plays a crucial role in this process by managing the charging cycle and ensuring that the energy
transfer to the battery remains within safe bounds.</p>
        <p>Solar panel
Surface area (A)</p>
        <p>Solar controller
charger</p>
        <p>Current (A)
Solar irradiance (W/m2)</p>
        <p>OpenHAB</p>
        <p>Battery
Battery voltage (V)</p>
        <p>
          Initially, the chosen solar controller charger is connected to both the solar panel and a battery.
An Arduino is used to monitor the battery's voltage, which helped to determine the solar panel's
current power output using formula (
          <xref ref-type="bibr" rid="ref1">1</xref>
          ):
        </p>
        <p>where P represents power in watts (W), V is the voltage in volts (V) and I stands for the current
in amperes (A).</p>
        <p>
          Subsequently, once the power output and the surface area of the panel are known, the level of
solar irradiation can be calculated using formula (
          <xref ref-type="bibr" rid="ref2">2</xref>
          ):
        </p>
        <p>P = V  I ,</p>
        <p>I =</p>
        <p>
          P ,
A
(
          <xref ref-type="bibr" rid="ref1">1</xref>
          )
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          )
where I is the solar irradiance in watts per square meter (W/m2).
        </p>
        <p>This solution will provide real-time data on local solar irradiation, necessary for enhancing the
accuracy of the forecasting model without the use of specialized meteorological stations.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Related works</title>
      <p>To enhance the accuracy of power generation forecasting, the next step is to thoroughly review
related works in this area. This includes examining different techniques and machine learning
models, applied to a range of energy sources.</p>
      <p>In the work [26], the authors introduced an online domain adaptive learning approach,
enhanced with the AdaBoost algorithm, for solar power forecasting. This model is specially
designed for its ability to adapt to changing weather conditions, thereby significantly enhancing
the accuracy of solar energy output predictions. Unlike traditional batch learning models, which
become static after training, this innovative approach allows for continuous adaptation to new
data without the need for retraining. This makes it particularly suitable for the unpredictable
nature of solar irradiation.</p>
      <p>This adaptive learning model [26] demonstrates remarkable performance improvements over
traditional forecasting methods, such as Artificial Neural Networks (ANN), Support Vector
Machines (SVM), Extreme Learning Machines (ELM), Gaussian Mixture Regression (GMR) and the
Persistence Model, across various datasets. For example, on one dataset, the proposed adaptive
learning model achieved a Root Mean Square Error (RMSE) of 94.6843 W/m2, far surpassing the
RMSE values of GMR (106.7835 W/m2) and ANN (126.6187 W/m2). Furthermore, when tested
on other datasets, the model's accuracy remained consistent. On another dataset, its RMSE
measure of 44.21007 W/m2 outperforms those of GMR (52.4752 W/m2) and SVM (60.7089
W/m2), underscoring an improvement of approximately 15% over GMR, which is the closest
competitor. These findings highlight not only the model's enhanced accuracy but also its
reliability in forecasting solar power output under varied meteorological conditions.</p>
      <p>In the research [27], the Adaptive Learning Hybrid Model (ALHM) was introduced as a solution
for solar intensity forecasting, crucial for the integration of renewable energy sources into smart
grids. This model stands out for its ability to adaptively learn from new data over time, capturing
both linear and nonlinear dynamics through its integration of Time-varying Multiple Linear
Model (TMLM) and Genetic Algorithm Back Propagation Neural Network (GABPNN). Using an
extensive dataset that includes various meteorological variables such as temperature, humidity,
dew point, wind speed and precipitation, the model has demonstrated superior forecasting
performance.</p>
      <p>The proposed model [27] outperformed both ANN and SVM models in terms of Mean Absolute
Percentage Error (MAPE) and RMSE. The proposed model achieved a MAPE of 13.68% and an
RMSE of 16.95 W/m2, indicating a higher forecasting accuracy and reliability. In contrast, ANN
and SVM models reported higher MAPE values, demonstrating their lesser ability to forecast. One
of the key advantages of the proposed model over ANN and SVM is its adaptive learning capability.
It can adaptively learn from new data, improving its forecasting accuracy over time. This is
particularly valuable in dynamic environments like solar intensity forecasting, where weather
patterns and other influencing factors can change.</p>
      <p>In the study [28], an innovative Adaptive Long Short-Term Memory (ALSTM) model was
proposed to address the challenge of day-ahead forecasting of photovoltaic (PV) power
generation. This model focuses particularly on overcoming the problem of concept drift, where
the data distribution changes over time, making traditional models less effective. The main idea
of the proposed is to enhance its adaptability by enabling it to continuously learn from new data
as it arrives. This allows the model to maintain high forecasting accuracy even in the presence of
concept drift.</p>
      <p>The dataset used for evaluating the proposed model [28] included records from a PV plant
over several months, incorporating both historical and newly-arrived data streams. Compared to
other forecasting methods such as Persistence, Autoregressive Integrated Moving Average
(ARIMA), k-Nearest Neighbors (k-NN) and the traditional offline LSTM model, the ALSTM
demonstrated superior performance across various metrics. For example, when compared to the
offline LSTM, the ALSTM showed an MSE reduction ranging from approximately 56.07% to
92.77%. This indicates a higher forecasting accuracy and its effectiveness in adapting to new data
and mitigating the impacts of concept drift, offering a significant advancement over traditional
forecasting approaches.</p>
      <p>In the work [29], an innovative methodological framework that incorporates incremental
learning to improve the accuracy in the field of energy forecasting was introduced. This approach
is the adoption of incremental learning techniques applied to a Multi-Layer Perceptron (MLP).
This approach effectively addresses the limitations associated with traditional batch learning
models by facilitating continuous learning from real-time data, thus ensuring the model's
relevance and accuracy are maintained over time.</p>
      <p>The effectiveness of the proposed method [29] was evaluated using real-world data from a
microgrid located in Italy, which includes a multi-story building and a PV system. A comparative
analysis between the performance of the proposed model and the traditional learning model
clearly demonstrates the benefits of the new approach. The results represent a significant
improvement in forecasting accuracy. The incremental learning MLP model reduces the MAE by
7.93% and the RMSE by 7.52%, compared to the traditional MLP model. This numerical evidence
strongly supports the superiority of the proposed method. It highlighting its enhanced
adaptability to changing data patterns and its increased predictive performance, making it an
optimal choice for real-time energy forecasting applications.</p>
      <p>In the study [30], a novel solar PV power generation forecasting model was introduced that
combines different weather information to compensate for the lack of real-time power generation
data. This approach uses Deep Neural Networks (DNN) for data fitting and LSTM networks for
temporal forecasting. The model was rigorously tested using datasets from six solar power plants
in Taiwan, covering diverse environmental conditions. The results demonstrated an exceptional
forecasting accuracy of over 97% compared to traditional models like LSTM, DNN, SVM and
BackPropagation Neural Network (BPNN). Among these traditional models, the DNN-LSTM model
showed superior performance, as evidenced by its lower Normalized Root Mean Square Error
(nRMSE) and Normalized Mean Absolute Error (nMAE). This underscores its robustness and
reliability in comparison to conventional forecasting methodologies.</p>
      <p>In the study presented in [31], a new approach using transfer learning for predicting
dayahead PV power is introduced. This methodology relies on the fundamental idea of leveraging the
deep learning models trained on large historical datasets from existing PV power plants to
enhance the prediction accuracy for newly installed PV systems. The transfer learning framework
improves prediction accuracy by applying patterns and insights extracted from extensive
historical data to new situations where the historical data is limited.</p>
      <p>The datasets used in the study [31] include hourly historical data from two PV power farms
that are located in close proximity to each other. The first provides a more extensive dataset,
while the second farm provides more recent data. A comparative analysis of the developed
models: linear, dense, Convolutional Neural Network (CNN) and LSTM reveals the superior
performance of the transfer learning models over their new and untrained counterparts. For
example, the trained transfer LSTM model consistently outperformed their counterparts, with
improvements in MAE, MSE and RMSE reaching up to 41.42%, 69.45% and 45.91% respectively.
This demonstrates the potential of transfer learning in renewable energy forecasting
applications.</p>
      <p>The results of the machine learning models and techniques reviewed in related works, along
with their comparisons to traditional models, are presented in Table 1.</p>
      <p>The survey of related works [26, 27, 28, 29, 30 31] consistently underscores the advantage of
real-time adaptive learning methodologies over traditional forecasting models in enhancing the
accuracy of power generation predictions. These studies demonstrate that integrating adaptive
learning techniques can greatly improve the forecasting process by allowing models to
continuously update and adjust to new data. Specifically, the work presented in [31] offers a
strong foundation for developing an improved predictive model that takes into account the
architecture of a real HAS [21]. By integrating real-time learning and transfer learning
techniques, this model has the potential to significantly improve the accuracy of power
generation forecasts. This approach not only enhances accuracy but also improves the
operational efficiency of energy systems in constantly changing environmental conditions.</p>
    </sec>
    <sec id="sec-4">
      <title>4. An improved two-stage predictive model for enhanced forecasting accuracy with real-time data</title>
      <p>Following a detailed review of related works and considering the architecture of a real HAS [21],
an improved two-stage predictive model has been proposed. This will enhance the accuracy of
power generation predictions for solar panels and wind turbines using local weather data.</p>
      <p>
        The first stage involves the development of a predictive model that aims to bridge the gap
between general weather forecasts provided by online weather service and the specific local
weather conditions in a given area. This stage uses a predictive model f to convert the general
weather forecasts provided by an online service to local weather predictions. The general
forecast serves as the input features while the local historical data serves as the targets, enabling
a better understanding of how general weather forecasts correlate with local weather
phenomena, that can be expressed as follows (
        <xref ref-type="bibr" rid="ref3">3</xref>
        ):
      </p>
      <p>Wˆl (t) = f (Wg (t);) ,
where Wg (t) represents the general weather data at time t, Wˆl (t) represents the predicted
local weather conditions at time t, and  are the parameters of the model. The model f is trained
using historical data from both online service and local meteorological station. Once the model is
trained, it can be used to generate forecasts for local weather conditions based on the input from
an online service. This approach will provide more accurate predictions for specific areas where
a real HAS is located.</p>
      <p>
        The second stage involves the development of the LSTM model, which is trained exclusively
on historical weather data collected from a local meteorological station. Using the accurate and
relevant information provided by the local meteorological station, this model is specifically
designed to predict power generation based on the predicted local weather conditions obtained
from the first stage. The predictive model for power generation can be expressed as follows (
        <xref ref-type="bibr" rid="ref4">4</xref>
        ):
      </p>
      <p>
        Pˆ (t) = LSTM (Wˆl (t);) ,
where Pˆ(t) is the predicted power generation at time t, Wˆl (t) is the local weather prediction
derived from formula (
        <xref ref-type="bibr" rid="ref3">3</xref>
        ), and  represents the parameters of the LSTM model. This LSTM model
(
        <xref ref-type="bibr" rid="ref3">3</xref>
        )
(
        <xref ref-type="bibr" rid="ref4">4</xref>
        )
      </p>
      <p>Stage I
Pre-trained</p>
      <p>model
Incremental learning</p>
      <p>Incremental learning
Incremental
trained model</p>
      <p>Predicted local
weather</p>
      <p>Incremental
trained model
is specifically designed to predict power generation from these local weather predictions, thus
enabling more accurate forecasts of power generation and taking full advantage of the
understanding of local weather patterns established in the first stage.</p>
      <p>The architecture of the proposed predictive model is illustrated in Figure 10, providing a visual
representation of the two-stage model and its integration with real-time data for enhancing the
accuracy of power generation forecasts.</p>
      <p>Stage II
Pre-trained</p>
      <p>model
Predicted power
generation</p>
      <p>Real-time data</p>
      <p>Real-time data
Real-time data</p>
      <p>Local
meteorological</p>
      <p>data
Online weather</p>
      <p>forecast</p>
      <p>The data flow of the improved two-stage predictive model is illustrated in Figure 11, showing
interactions between various components, including historical data from different sources and
two predictive models. Significantly, it demonstrates the integration of historical weather and
power generation data, which are crucial for training the first predictive model and the LSTM
model, respectively, to accurately forecast power generation. The forecasted power generation is
used to provide recommendations in the developed intelligent support subsystem [21].</p>
      <p>Incorporating real-time data processing greatly enhances the accuracy of power generation
forecasts. By updating the models in real-time with the latest data from the local meteorological
station, the predictive models are guaranteed to adapt to the latest weather patterns. This
realtime approach allows for continuous learning and adjustment, which will significantly improve
the model's responsiveness to sudden weather changes and will enhance the accuracy of power
generation predictions. The integration of real-time data will not only refine the models'
predictive capabilities but will also ensure that the system remains relevant and accurate over
time, despite the inherent variability and unpredictability of weather conditions. This approach
provides a robust framework for reliably forecasting power generation from renewable energy
sources, leveraging the synergy between localized data collection and advanced machine learning
techniques.</p>
      <p>Online weather
data</p>
      <p>Local weather
data</p>
      <p>Power generation
data</p>
      <p>First predictive
model</p>
      <p>Second predictive
model (LSTM)</p>
      <p>Intelligent
support
subsystem
General weather data</p>
      <p>Local weather data</p>
      <p>Predicted local weather
Power generation data</p>
      <p>Power geneation forecast</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion</title>
      <p>As a result of the conducted research, it has been demonstrated that integrating real-time local
meteorological data with advanced machine learning techniques can significantly enhance the
accuracy of power generation forecasts for alternative energy sources. The proposed two-stage
predictive model, which combines general weather forecasts with specific local conditions, offers
a more precise understanding of how weather impacts power generation. This approach not only
overcomes the limitations of existing forecasting methods but also opens up the possibility for a
more efficient and reliable use of alternative energy sources in HAS. By incorporating real-time
data processing, the developed intelligent support subsystem [21] will be able to remain
adaptable and responsive to sudden weather changes, thereby improving the sustainability and
efficiency of energy use in HAS.</p>
      <p>The scientific novelty of the work lies in the development of an improved two-stage predictive
model that uses local weather data to improve forecasts of power generation from solar panels
and wind turbines. The improved architecture of this model, which combines real-time data
collection from local meteorological stations with advanced LSTM machine learning algorithms,
represents a significant advancement in the field of alternative energy forecasting. Furthermore,
the methodological approach of correlating general weather forecasts with local weather
phenomena to enhance forecast accuracy introduces a new paradigm in predictive modeling for
alternative energy sources.</p>
      <p>The practical significance of this work is that it provides an effective way to improve the
reliability and efficiency of using alternative energy sources, especially in HAS. With more
accurate forecasts for power generation, homeowners can better manage their energy
consumption, reducing their dependence on traditional power grids. This leads to cost savings
and supports environmental sustainability by promoting the adoption of clean energy.</p>
      <p>In future work, it is planned to implement the proposed two-stage model and then integrate it
into a real HAS. This step will allow to evaluate and fine-tune the model within a real-world
context, guaranteeing its effectiveness in optimizing energy management and forecasting
capabilities. Additionally, exploring the potential of incorporating advanced artificial intelligence
techniques to further improve the model's forecasting precision and operational performance is
planned.</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgements</title>
      <p>
        This work is partly carried out with the support of Erasmus + KA2 project WORK4CE
“Crossdomain competences for healthy and safe work in the 21st century”
(619034-EPP-1-2020-1-UAEPPKA2-CBHE-JP) and DAAD project ViMUk.
[14] K. Amarasinghe, D. L. Marino, M. Manic, Deep neural networks for energy load forecasting,
in: Proceedings of the IEEE 26th International symposium on Industrial electronics,
Edinburgh, UK, 2017, pp. 1483-1488. doi:10.1109/ISIE.2017.8001465.
[15] S. Mahjoub, L. Chrifi-Alaoui, B. Marhic, L. Delahoche, Predicting Energy Consumption Using
LSTM, Multi-Layer GRU and Drop-GRU Neural Networks, Sensors 22(
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) (2022) 1-20.
doi:10.3390/s22114062.
[16] S. Emshagin, W. K. Halim, R. Kashef, Short-term Prediction of Household Electricity
Consumption Using Customized LSTM and GRU Models, arXiv preprint 1(
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) (2022) 1-11.
doi:10.48550/arXiv.2212.08757.
[17] P. B. Gopikrishna, J. A. Mathew, Power Consumption Analysis and Prediction of a Smart Home
      </p>
      <p>
        Using ARIMA Model, SSRN 1(
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) (2021) 1-9 doi:10.2139/ssrn.3819512.
[18] M. Beigi, H. B. Harchegani, M. Torki, M. Kaveh, M. Szymanek, E. Khalife, J. Dziwulski,
Forecasting of power output of a PVPS based on meteorological data using RNN approaches,
Sustainability 14(
        <xref ref-type="bibr" rid="ref5">5</xref>
        ) (2022) 1-12. doi:10.3390/su14053104.
[19] J. Wojtkiewicz, M. Hosseini, R. Gottumukkala, T. L. Chambers, Hour-Ahead Solar Irradiance
Forecasting Using Multivariate Gated Recurrent Units, Energies 12(
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) (2019) 1-13.
doi:10.3390/en12214055.
[20] U. Singh, M. Rizwan, M. Alaraj, I. Alsaidan, A Machine Learning-Based Gradient Boosting
Regression Approach for Wind Power Production Forecasting: A Step towards Smart Grid
Environments, Energies 14(
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) (2021) 1-21. doi:10.3390/en14165196.
[21] Y. Horichenko, A. Parkhomenko, O. Pozdnyakov, A. Tulenkov, Y. Zalyubovskiy, O. Gladkova,
A. Parkhomenko, Research and Software Implementation of Intelligent Method of Energy
Consumption Control, CEUR Workshop Proceedings, vol. 3392 (2023). Online
http://ceurws.org/Vol-3392/paper9.pdf.
[22] Y. E. Horichenko, O. A. Pozdnyakov, A. V. Tulenkov, A. V. Parkhomenko, Research and
practical implementation of intelligent methods and models for controlling power
generation from alternative energy sources, Scientific works of DonNTU [Naukovi pratsi
DonNTU], 2(37) (2023) 22-32. doi:10.31474/1996-1588-2023-2-37-22-33.
[23] Weather API – OpenWeatherMap, 2024. URL: https://openweathermap.org/api.
[24] Understanding the differences between On-grid, Off-grid (Hybrid), and On-grid Solar
Inverters with Energy Storage Systems, 2024. URL:
https://prolink2u.com/blogs/discover/understanding-the-differences-between-on-grid-off-gridhybrid-and-on-grid-solar-inverters-with-energy-storage-systems.
[25] Z. Hyder, C. Lane, Compared: Grid-tied, off-grid, and hybrid solar systems, 2024. URL:
https://www.solarreviews.com/blog/grid-tied-off-grid-and-hybrid-solar-systems.
[26] H. Sheng, B. Ray, K. Chen, Y. Cheng, Solar Power Forecasting Based on Domain Adaptive
Learning (by HANMIN SHENG), IEEE Access 8(
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) (2020) 198580-198590.
doi:10.1109/ACCESS.2020.3034100.
[27] Y. Wang, Y. Shen, S. Mao, G. Cao, R. M. Nelms, Adaptive Learning Hybrid Model for Solar
Intensity Forecasting, IEEE Transactions on Industrial Informatics 14(
        <xref ref-type="bibr" rid="ref4">4</xref>
        ) (2018) 1635-1645.
doi:10.1109/TII.2017.2789289.
[28] X. Luo, D. Zhang, An Adaptive Deep Learning Framework for Day-ahead Forecasting of
Photovoltaic Power Generation, in: Sustainable Energy Technologies and Assessments 52(D)
(2022) 1-26. doi:10.1016/j.seta.2022.102326.
[29] E. Sarmas, S. Strompolas, V. Marinakis, F. Santori, M. A. Bucarelli, H. Doukas, An Incremental
Learning Framework for Photovoltaic Production and Load Forecasting in Energy
Microgrids, Electronics 11(23) (2022) 1-17. doi:10.3390/electronics11233962.
[30] R. J. Wai, P. X. Lai, Design of Intelligent Solar PV Power Generation Forecasting Mechanism
Combined with Weather Information under Lack of Real-Time Power Generation Data,
Energies, 15(
        <xref ref-type="bibr" rid="ref10">10</xref>
        ) (2022) 1-30. doi:10.3390/en15103838.
[31] S. M. Miraftabzadeh, C. G. Colombo, M. Longo, F. Foiadelli, A Day-Ahead Photovoltaic Power
Prediction via Transfer Learning and Deep Neural Networks, Forecasting 5(
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) (2023)
213228. doi:10.3390/forecast5010012.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>J.</given-names>
            <surname>Zhu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Lauri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Koukam</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Hilaire</surname>
          </string-name>
          ,
          <article-title>Scheduling optimization of smart homes based on demand response</article-title>
          ,
          <source>in: Proceedings of the 11th IFIP International Conference on Artificial Intelligence Applications</source>
          and Innovations, Bayonne, France,
          <year>2015</year>
          , pp.
          <fpage>223</fpage>
          -
          <lpage>236</lpage>
          . doi:
          <volume>10</volume>
          .1007/978-3-
          <fpage>319</fpage>
          -23868-5_
          <fpage>16</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>C.</given-names>
            <surname>Deng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Yao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Tan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <article-title>Two-stage optimization model for Smart House daily scheduling considering user perceived benefits</article-title>
          ,
          <source>in: Proceedings of the International conference on Mathematics, modelling, simulation and algorithms</source>
          , Chengdu, China,
          <year>2018</year>
          , pp.
          <fpage>64</fpage>
          -
          <lpage>68</lpage>
          . doi:
          <volume>10</volume>
          .2991/mmsa-
          <fpage>18</fpage>
          .
          <year>2018</year>
          .
          <volume>15</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Qu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Qu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Yin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Qu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Wang</surname>
          </string-name>
          , J. Han,
          <article-title>Multi-objective optimization model of electricity consumption behavior considering combination of household appliance correlation and comfort</article-title>
          ,
          <source>Journal of electrical engineering and technology 13(5)</source>
          (
          <year>2018</year>
          )
          <fpage>1821</fpage>
          -
          <lpage>1830</lpage>
          . doi:
          <volume>10</volume>
          .5370/JEET.
          <year>2018</year>
          .
          <volume>13</volume>
          .5.
          <year>1821</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>I.</given-names>
            <surname>Gupta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G. N.</given-names>
            <surname>Anandini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Gupta</surname>
          </string-name>
          ,
          <article-title>An hour wise device scheduling approach for demand side management in smart grid using particle swarm optimization</article-title>
          ,
          <source>in: Proceedings of the 19th National power systems conference, Bhubaneswar, India</source>
          ,
          <year>2016</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>6</lpage>
          . doi:
          <volume>10</volume>
          .1109/NPSC.
          <year>2016</year>
          .
          <volume>7858965</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Chen</surname>
          </string-name>
          , G. Xu,
          <string-name>
            <given-names>C.</given-names>
            <surname>Zheng</surname>
          </string-name>
          , M. Cheng,
          <article-title>Home energy management in smart grid with renewable energy resources</article-title>
          ,
          <source>in: Proceedings of the 16th International conference on Computer modelling and simulation</source>
          , Cambridge, United Kingdom,
          <year>2014</year>
          , pp.
          <fpage>351</fpage>
          -
          <lpage>356</lpage>
          . doi:
          <volume>10</volume>
          .1109/UKSim.
          <year>2014</year>
          .
          <volume>46</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>F.</given-names>
            <surname>Iqbal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Iqbal</surname>
          </string-name>
          ,
          <article-title>Optimal load scheduling using genetic algorithm to improve the load profile</article-title>
          ,
          <source>ADRRI Journal of engineering and technology 4(9)</source>
          (
          <year>2021</year>
          )
          <fpage>1</fpage>
          -
          <lpage>15</lpage>
          . doi:
          <volume>10</volume>
          .55058/adrrijet.
          <source>v4i9(3)</source>
          .
          <fpage>621</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>A.</given-names>
            <surname>Thivy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Thamini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Narmadha</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.S.</given-names>
            <surname>Vishaka</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.R.</given-names>
            <surname>Vairamani</surname>
          </string-name>
          ,
          <article-title>Demand side management in smart grid using heuristic algorithm</article-title>
          ,
          <source>in: Proceedings of the 2nd International conference on Emerging enhancement in engineering and technology, Tiruchirappalli</source>
          ,
          <year>2016</year>
          , pp.
          <fpage>361</fpage>
          -
          <lpage>365</lpage>
          . doi:
          <volume>10</volume>
          .1109/TSG.
          <year>2012</year>
          .
          <volume>2195686</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>E.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Bahn</surname>
          </string-name>
          ,
          <article-title>Electricity usage scheduling in Smart building environments using smart devices, The scientific</article-title>
          world journal (
          <year>2013</year>
          ) 11 p. doi:
          <volume>10</volume>
          .1155/
          <year>2013</year>
          /468097.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>M.</given-names>
            <surname>Taksir</surname>
          </string-name>
          ,
          <string-name>
            <surname>S.</surname>
          </string-name>
          <article-title>Aktar Data-driven time series-based prediction in smart home appliance energy consumption</article-title>
          ,
          <source>International journal of computer applications</source>
          <volume>178</volume>
          (
          <issue>15</issue>
          ) (
          <year>2018</year>
          )
          <fpage>41</fpage>
          -
          <lpage>46</lpage>
          . doi:
          <volume>10</volume>
          .5120/ijca2019918932.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>R. E.</given-names>
            <surname>Alden</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Gong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Ababei</surname>
          </string-name>
          ,
          <string-name>
            <surname>D.</surname>
          </string-name>
          <article-title>M. Ionel, LSTM forecasts for Smart home electricity usage</article-title>
          ,
          <source>in: Proceedings of the 9th International conference on Renewable energy research and application</source>
          , Glasgow, UK,
          <year>2020</year>
          , pp.
          <fpage>434</fpage>
          -
          <lpage>438</lpage>
          . doi:
          <volume>10</volume>
          .1109/ICRERA49962.
          <year>2020</year>
          .
          <volume>9242804</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>W.</given-names>
            <surname>Kong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z. Y.</given-names>
            <surname>Dong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. J.</given-names>
            <surname>Hill</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Luo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Hu</surname>
          </string-name>
          ,
          <article-title>Short-term residential load forecasting based on resident behaviour learning</article-title>
          ,
          <source>IEEE Transactions on power systems 33(1)</source>
          (
          <year>2017</year>
          )
          <fpage>1087</fpage>
          -
          <lpage>1088</lpage>
          . doi:
          <volume>10</volume>
          .1109/TPWRS.
          <year>2017</year>
          .
          <volume>2688178</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <article-title>A short-term residential load forecasting model based on LSTM recurrent neural network considering weather features</article-title>
          ,
          <source>Energies</source>
          <volume>14</volume>
          (
          <issue>10</issue>
          ) (
          <year>2021</year>
          )
          <fpage>1</fpage>
          -
          <lpage>13</lpage>
          . doi:
          <volume>10</volume>
          .3390/en14102737.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>O. D.</given-names>
            <surname>Diaz-Castillo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. E.</given-names>
            <surname>Puerto-Lara</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. A.</given-names>
            <surname>Saenz-Leguizamon</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Ducon-Sosa</surname>
          </string-name>
          ,
          <article-title>Prediction of electrical energy consumption through recurrent neural networks</article-title>
          ,
          <source>CEUR Workshop Proceedings</source>
          , vol.
          <volume>2992</volume>
          (
          <year>2021</year>
          ). Online http://ceur-ws.
          <source>org/</source>
          Vol-
          <volume>2992</volume>
          /icaiw_wssc_3.pdf.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>