1. Introduction
Worldwide energy consumption has increased awareness of fossil fuel depletion, climate change, and greenhouse effects. Therefore, searching for renewable energy has become a global policy. For example, the UK plans to achieve offshore wind power levels of 50 GW by 2030 [
1], while Japan aims to achieve a solar power generation capacity of 88 GW by 2030 [
2]. However, these forms of renewable energy are susceptible to weather variations. For this reason, hydrogen has become an increasingly attractive renewable energy source because it is independent of weather conditions. At present, the European Union intends to expand hydrogen production to have a hydrogen electrolysis capacity of 40 GW by 2025–2030 [
3]. Similarly, the US Department of Energy has pledged USD 8 billion to establish regional hydrogen energy centers [
4]. Nevertheless, the high cost of hydrogen production still limits its extensive use as an energy source.
One relatively simple way to offset the cost of hydrogen energy production is to use hydrogen as a backup system for green energy sources rather than as the sole energy source. For this purpose, the proton exchange membrane fuel cell (PEMFC) is an ideal supplementary system due to its favorable properties, including low operation temperature, fast power response, high power density, and long lifespan [
5], which enable system sustainability under unfavorable weather conditions. For example, Taghizadeh et al. [
6] proposed a hybrid standalone microgrid consisting of a wind turbine (WT), a PEMFC, photovoltaic cells (PVs), supercapacitors (SCs), and battery energy storage systems. Wind and solar energy were the primary power sources, while the PEMFC, SCs, and batteries were used in parallel to enhance the PEMFC performance and lifespan. Bornapour et al. [
7] modeled a microgrid composed of a PEMFC, a WT, and PVs and employed a multi-objective firefly algorithm to solve the stochastic energy optimal dispatch problem, thereby enhancing the system’s reliability. Shayan et al. [
8] conducted experimental and numerical analyses to explore the application of artificial roughness in outdoor solar air heaters. Zhao et al. [
9] proposed a hybrid system that combined solar-assisted methanol reformation and fuel cell power generation to boost the maximum system efficiency to 59.15%.
These hybrid systems require optimal component selections and settings, as the choices must consider both the climatic and economic conditions encountered in different regions. For instance, Rouhani et al. [
10] utilized the genetic algorithm and particle swarm optimization to optimize a hybrid power system consisting of PVs, WTs, batteries, and fuel cells to achieve system reliability while minimizing system costs. N’guessan et al. [
11] employed the non-dominated sorting genetic algorithm to find the optimal configuration for an off-grid power system composed of WTs, a PEMFC, electrolyzers, batteries, and supercapacitors. Lei et al. [
12] applied the seagull optimization algorithm to determine the optimal sizes of PVs, WTs, fuel cells, and electrolyzers. Šimunović et al. [
13] optimized the component sizes of a solar–hydrogen hybrid energy system for a grid-disconnected house and was able to ensure uninterrupted and reliable power. Therefore, PEMFCs are typically used to provide supplementary power in hybrid power systems, to satisfy system loads, and to prevent batteries from experiencing a low state of charge (SOC). However, primary green energy, such as solar and wind power, is sometimes sufficient to recharge the system battery [
14], raising the question of how to prevent unnecessary hydrogen consumption.
One solution is to predict the load and weather using machine learning. For example, Park et al. [
15] proposed a global solar radiation forecasting method based on a Light Gradient Boosting Machine (LightGBM), and achieved an RMSE of 0.249 and a shorter training time than was possible with other methods. Vu et al. [
16] built an eXtreme Gradient Boosting (XGBoost) model to predict short-term power demand for industrial customers and provided experimental results that confirmed the model’s robustness and performance. Bae et al. [
17] developed an XGBoost model for day-ahead load forecasting, and achieved a more than 21% improvement in accuracy using Korea’s power data.
Apart from the choice of system components, the power management strategy (PMS) and controller selection can also improve system reliability and costs. For example, Brka et al. [
18] proposed an intelligent PMS based on neural networks to control the overall power within a hybrid power system, thereby preventing power losses. Brka et al. [
19] also used an independent hybrid power system comprising WTs, batteries, and hydrogen energy to implement a predictive neural-network-based PMS that improved the system’s cost and renewable energy utilization. Nair et al. [
20] applied a PMS with model predictive control in a hybrid power grid comprising PVs, batteries, SCs, and fuel cells. Their simulation results demonstrated a 50% reduction in PV power and an 80% reduction in the need for dispatchable generators with their PMS. Kodakkal et al. [
21] designed a controller to work with an enhanced phase-locked loop algorithm to maintain the power quality at the load side of a renewable hybrid system, thereby ensuring that the source current was not affected during load fluctuations. Shayan et al. [
22] employed a dynamic decision algorithm to determine the optimal hybridization of local solar and wind energy, thereby optimizing electricity demand in residential units.
In this paper, we developed an extended-window method that regularly updates the prediction models and optimizes system components and PMS in hybrid power systems. We first used MATLAB to develop a hybrid power model to estimate system responses under different operating conditions. We then applied five machine learning methods to develop prediction models for our hybrid power system. Among them, the LightGBM and XGBoost models could forecast solar radiation and load profiles, respectively, with a higher than 97% accuracy. Therefore, we integrated these two models into a hybrid power system to investigate the impacts of extended-window optimization on system performance. The results showed that system costs can be reduced by 6.45% with model prediction and that applying extended-window optimization can further decrease system costs by 13.57%.
4. Discussion
This paper proposes extended-window algorithms for model prediction. We then applied them to a hybrid power system consisting of a PV, batteries, PEMFC, and chemical hydrogen production system. The proposed method enables the periodic adjustment of the system components and PMS based on accumulated data.
We applied MATLAB Simscape ElectricalTM to develop a hybrid power model that enables the estimation of system responses without extensive experimentation. We then applied five machine learning methods to develop prediction models for our hybrid power system. The results showed that the LightGBM and XGBoost models could forecast solar radiation and load profiles with a higher than 97% accuracy. Therefore, we integrated these two models into the hybrid power system to investigate the impacts of extended-window model prediction on system performance.
First, we assessed the impact of interval length M on system performance. The results showed that system cost and hydrogen consumption gradually decreased when we shortened the window size M to M = 1 week. Therefore, the regular modification of system components and power management could improve system performance. However, there was a limit. For example, setting M = 5 days slightly increased the system costs.
Second, we investigated the influences of replacement costs. The results showed that the system made fewer component adjustments when the replacement cost increased to avoid replacement expenses. Hence, increasing the replacement cost could eliminate the cost reduction afforded by the proposed extended-window model prediction. For instance, the cost reduction was 7.24% when and was 1.86% when .
Finally, we examined the integrated effects of interval length M and replacement cost ratio . The results indicated that M = 1 week is the optimal interval for reducing system costs and hydrogen consumption regardless of . Conversely, increasing the replacement cost ratio tended to demolish the merits of the extended-window method because the system tended to make fewer component changes.
To demonstrate the proposed method’s effectiveness and feasibility, we designed experiments using a hybrid power system that employs the extended-window optimization. The experiment configuration is shown in
Figure 7 and consists of real-time simulation and physical implementation.
The real-time simulation applied the optimal system settings of two periods when M = 5 days and : Period I is 16–20 April 2015 and Period II is 21–25 April 2015. In Period I, the optimal settings are (b, s) = (8, 5) and (SOClow, SOChigh) = (40%, 50%). With no extended-window model prediction, the optimal settings remained the same in Period II. With extended-window model prediction, the optimal settings became (b, s) = (10, 7) and (SOClow, SOChigh) = (40%, 50%) in period II. The practical implementation consists of a PEMFC and a loadmeter. When the system needed supplementary power, the simulation model sent current commands to the PEMFC, which was then physically activated to provide the required current. The original period was ten days; we applied a scale factor of 1/600 to shorten the experimental time to 24 min, with the initial SOC = 30%. We measured system signals, such as the currents and voltages, to detect signs of potentially declining efficiency.
The system responses are shown in
Figure 8 and
Table 6. Because the initial SOC was 30%, the system immediately predicted the system SOC for the following 24 h until
t = 87 s, when the system SOC exceeded a threshold SOC = 50%. At Period I, the predicted SOC for the next 24 h remained above 20%, indicating a sufficient power supply without the PEMFC. The system cost was USD 37.66 and the hydrogen consumption was zero. At
t = 720 s, the system reached the second interval; the original system settings (
b,
s) = (8, 5) gave a system cost of USD 81.06 and a hydrogen consumption of 17,740.8 L. Using the extended-window model prediction, the optimal system settings were updated as (
b,
s) = (10, 7), and the system cost became USD 54.04, with a hydrogen consumption of 3942.4 L. The extended-window optimization reduced the system costs and hydrogen consumption by 22.76% and 77.78%, respectively. Finally, the system was sustainable because the system SOC was maintained above 20% in both cases, as shown in
Figure 8b.
We also designed an energy module, as shown in
Figure 9a, to demonstrate the feasibility of adjusting system components in real time. The module consisted of a 48 V 22 Ah battery, a foldable 180 W PV panel, and a maximum power point tracking controller between the PV panels and the DC bus to maximize the output solar power. We used the ANCHI connector as a hot-wired component, as shown in
Figure 9b. The subsequent experiments showed that the module could share the load demands by hot plugging in real time. Suppose the load demand was 5 A; the system responses are shown in
Figure 9c,d. First, the primary battery provided the load of 5 A alone, so its SOC decreased at −0.0062%/s. At
t = 1200 s, its SOC dropped to 46.24%, and the energy module was hot plugging into the primary system through the ANCHI connector to provide the loads and raise the primary battery SOC at a rate of 0.0016%/s. Because the experiments were conducted indoors, we simulated the PV panel by applying a power supply, which provided a constant solar current
. Finally, the energy module was disconnected from the primary system in real time by hot swapping at
t = 2400 s. The primary system’s battery again provided a load of 5 A, with a decreasing rate of −0.0062%/s for the SOC. These results confirm the feasibility of operating a power system with periodic adjustments of the components.
5. Conclusions
This paper proposed the use of extended-window algorithms for model prediction with applications in hybrid power systems. We considered a PV, batteries, PEMFC, and chemical hydrogen production system. The proposed methods could periodically adjust system components and PMS based on solar energy and load predictions. We developed a hybrid power model to estimate system responses at different operational conditions. We then built five machine learning models and selected the LightGBM and XGBoost models to forecast solar radiation and load.
We applied a two-year dataset to investigate the merits of extended-window model prediction. Regarding the window size, the results showed that shortening the interval could reduce system costs, with an optimal interval of one week. Regarding the replacement costs, the system tended to make fewer replacements to decrease expenses when the replacement costs were higher. Combining these analyses, we concluded that weekly system updates yielded the lowest costs. The optimal cost and hydrogen reduction were 13.57% and 91.64%, respectively, compared to the system that did not employ the extended-window algorithms.
Finally, we designed experiments to demonstrate the feasibility of a hybrid power system employing extended-window model prediction. The experimental results showed that the extended-window optimization significantly reduced the system costs and hydrogen consumption by 22.76% and 77.78%, respectively. We also designed a renewable energy module that could hot plug into the system DC bus in real time to illustrate the feasibility of using hybrid power systems that adopt the proposed method.
In this paper, the system parameters were selected according to system loads. For example, in the first year, the maximum load and average daily power consumption were 6.83 kW and 15.91 kWh, respectively. Therefore, we applied a 3 kW PEMFC to guarantee system sustainability, and we set the PV modules in units of 1 kW and the battery modules in units of 48 V–100 Ah. These settings must be adjusted if the system’s power level changes [
30]. In addition, other components, such as supercapacitors [
30], might also be integrated with the hybrid power systems. Finally, we have not considered battery degradation to simplify system designs. When considering battery degradation, the battery needs to be replaced more frequently to maintain system sustainability so that the system costs will be increased. However, periodic adjustments of the prediction models based on accumulated data are potentially beneficial in reducing system costs because they can at least retain the same system settings and prediction models as those without employing the extended-window algorithms. The proposed extended-window algorithms can be applied to systems with different layouts and settings for performance improvement.