In this section, we introduce the results and analysis associated with the proposed Smart Home Machine Learning Techniques system. Specifically, the system determines the coupling of RESs and an ESS, and analyzes the effectiveness and robustness of the GmPSO algorithm for achieving this goal. To adapt Smart Home Machine Learning Techniques, simulations were carried out in MATLAB, treating six passive sectors as appliances and the ESS as the source.
5.3. Condition 3: Integration of PV and ESS
The third condition combines the PV system and the ESS together to use more energy and ensure energy efficiency. The PV system generates renewable energy during sunlight hours, while the ESS stores this surplus energy for periods of high demand or when there is a lack of sunlight. This enables dynamic load balancing between the grid, the PV system and the ESS, optimizing energy usage while reducing reliance on grid energy.
The primary determinants of photovoltaic system power generation are sun irradiation and ambient temperature. Each scheduling window is calculated using 90% of the total RE. Furthermore, 30% of the 90% of the total RE is used to charge the ESS throughout each time period. An example of sun radiation during a 24 h period is depicted in
Figure 7a. The Figure’s y-axis shows the sun radiance in W/m
2, while the x-axis shows the time in hours. The sun radiation graph indicates that it reaches its highest value of 1200 W/m
2 at noon or between 11 AM and 3 PM. Sunlight intensity progressively drops throughout the day, and by midnight, it is almost completely gone. This is a normal pattern for solar radiation throughout the day, with peak levels at midday and a decrease in the early morning and late afternoon.
Figure 7b illustrates the charging behavior of a battery over a 24 h period. The x-axis displays the time in hours, while the y-axis displays the battery storage level in Ah.
Figure 7b shows that the battery starts charging at a relatively slow rate, gradually increasing its storage level until around 11 AM. From 11 AM to 19 PM, the charging rate appears to accelerate, with the battery storage level increasing rapidly. After 19 PM, the charging rate slows down again, and the battery’s storage level stabilizes at around 275 Ah. This pattern suggests that the battery may have reached its maximum capacity, or is being charged at a reduced rate to prevent overheating or damage.
Figure 7c shows the predicted ambient temperature during a 24 h period. The temperature rises steadily from its starting point of about 20 °C to a peak of about 30 °C between the hours of 1400 and 1600. Following this, the temperature gradually drops until it reaches about 20 °C by the end of the day. With warmer temperatures during the midday and cooler temperatures at night, this pattern represents the normal daily temperature cycle.
Figure 7d shows the amount of RE generated and used during a 24 h period. Time is shown on the x-axis in hours, and RE generation is represented on the y-axis in WH. The estimated generation of RE is depicted by the red line, which peaks at midday and progressively decreases towards dusk. The 90% of the predicted RE is shown by the black line, which shows how much RE is still usable once losses are taken into consideration. After the BSS is charged, the blue line displays the amount of RE that is left over and can be stored for later use or put to other uses. According to the graph, the BSS efficiently absorbs excess RE at times of peak generation, guaranteeing that a sizable amount of the energy produced is accessible for use or storage.
Figure 7e displays the RTP for power over a 24 h period. Time is plotted on the x-axis in hours, while electricity costs are plotted on the y-axis in Cents/kWh.
The hourly electricity prices of different load control techniques in a microgrid are compared in
Figure 8a. Although the peak costs of all strategies range from 12 to 15 h, optimization-based methods such as the GA, PSO and WDO show notable decreases in peak costs when compared to uncontrolled scheduling. A key component in reducing peak prices and balancing the total electricity cost profile is the battery storage system. These results demonstrate how well optimization-based scheduling strategies work to control electricity prices in microgrids that have battery storage and renewable energy sources. The
Figure 8b compares hourly electricity prices for various load management schemes. It demonstrates that electricity costs peak between hours 7 and 10, with the “Unsch cost/hour” scenario (red line) being the most expensive. When RES is included, as shown in the “Unsch + RES cost/hour” scenario (blue line), costs decrease, but there are still occasional peaks. Introducing a BSS, as shown in the "Unsch + RES + BSS cost/hour" scenario (magenta line), further smoothes out the cost profile, lowering the peak and increasing overall cost control. This demonstrates how using renewable energy and battery storage can substantially reduce electricity prices, especially during peak demand periods.
The
Figure 8c depicts how power costs fluctuate during the day for various load management strategies, with a focus on optimization techniques and the usage of renewable energy in conjunction with battery storage. The red line, which represents the “Unsch + RES + BSS cost/hour” scenario, serves as the baseline, with costs being relatively high throughout the day. However, when optimization algorithms such as GA (black), PSO (blue), WDO (magenta), and GmPSO (green) are implemented, electricity prices fall significantly, particularly during peak hours. Among these, the GmPSO approach consistently produces the lowest expenses over a 24-hour period. These findings show that optimization strategies, when combined with renewable energy and battery storage, can significantly reduce electricity expenditures, especially during peak demand periods.
The load management options in a microgrid are compared in
Figure 8d with respect to their total electricity costs. The most notable cost savings are found with scheduling that incorporates battery storage systems and renewable energy sources; however, there is a minor cost decrease with uncontrolled scheduling as well. According to these results, microgrid systems’ overall electricity costs can be decreased through the use of efficient load control techniques.
Figure 8e shows how different load control techniques in a microgrid compare in terms of hourly energy consumption. All strategies have peak loads that range from 12 to 15 h, although optimization-based approaches, such as the GA, PSO, WDO, BFO and GmPSO, show better peak load control than uncontrolled scheduling. In order to reduce peak loads and even out the total energy consumption profile, the battery storage system is essential. The efficiency of optimization-based scheduling strategies in controlling energy consumption in microgrids with battery storage and renewable energy sources is demonstrated by these results.
Figure 8f compares the hourly energy usage of several microgrid load control strategies. Even when the overall energy usage for all strategies remains constant, optimization-based techniques like the GA, PSO and WDO demonstrate superior peak load management compared to uncontrolled scheduling. In order to level out the total energy consumption profile and reduce peak loads, the battery storage system is essential. These results demonstrate how well optimization-based scheduling strategies work to control energy consumption in microgrids with battery storage and renewable energy sources.
Figure 8g compares the hourly CO₂ emissions to those of strategies without an RES and ESS, measured in KGs. The x-axis indicates the hour of the day, and the y-axis depicts CO₂ emissions in KGs. The graph contains many bars representing various optimization techniques, as specified by the legend: unscheduled load, WDO, BFO, BPSO and GmPSO. The visualization clearly demonstrates that unscheduled load (light-blue bars) leads to the highest CO
2 emissions throughout all hours, suggesting the need for optimization to reduce emissions. WDO (brown bars), BFO (yellow bars), BPSO (red bars) and GmPSO (green bars) have lower emissions than the unplanned load. GmPSO (green bars) has the lowest CO
2 emissions compared to other optimization approaches, suggesting superior efficacy in lowering carbon production. The general trend is that utilizing optimization algorithms for load scheduling can significantly cut carbon emissions, with GmPSO being the most efficient. This comparison emphasizes the role of efficient energy management in reducing effects on the environment, especially in the absence of renewable energy sources.
Figure 8h compares hourly CO
2 emissions under Condition 2, unscheduled + RES, measured in KGs. The x-axis indicates the hour of the day, while the y-axis displays CO
2 emissions in KGs. The legend depicts various optimization strategies, including unscheduled load with an RES, WDO, BFO, BPSO and GmPSO. Unscheduled + RES (light-blue bars) has the greatest CO
2 emissions across all hours, indicating that without adequate scheduling, emissions remain extremely high, even with RES integration. Optimization approaches (WDO, BFO, BPSO and GmPSO) lower emissions when compared to unscheduled loads. GmPSO (green bars) has the lowest CO
2 emissions, making it the most efficient algorithm for reducing emissions when an RES is included. The overall trend demonstrates that using optimization approaches helps to cut emissions at all hours, stressing the necessity of intelligent load scheduling in improving energy efficiency.
Figure 8i compares the hourly CO
2 emissions for Condition 3—Unscheduled + RES + ESS—in KGs. The x-axis indicates the hour of the day, while the y-axis shows CO
2 emissions (in KGs). The legend distinguishes between several instances, including unscheduled load with RES + ESS and optimization approaches (WDO, BFO, BPSO and GmPSO). Unscheduled + RES + ESS (light-blue bars) has the greatest CO
2 emissions throughout all hours, indicating that even with optimization, emissions remain high. The optimization approaches (WDO, BFO, BPSO and GmPSO) considerably decrease CO
2 emissions compared to the unplanned scenario. GmPSO (green bars) has the lowest CO
2 emissions, indicating its success in reducing emissions through optimal energy management. A consistent pattern is seen over all hours, where each optimization technique gradually reduces emissions, with GmPSO performing the best, followed by BPSO, BFO and WDO.
Figure 9a compares the load distribution across the BSS, RES and utility grid for different microgrid configurations. As the microgrid complexity increases from “Utility” to “Utility + RES + BSS”, the load on the RES and BSS increases, but the load on the utility grid decreases significantly. This implies that battery storage systems and renewable energy sources effectively reduce reliance on the utility grid, leading to a more cost-effective and environmentally friendly microgrid.
The PAR for several microgrid load management techniques is contrasted in
Figure 9b. The y-axis shows the PAR value, while the x-axis depicts the various strategies. The findings demonstrate that adding a BSS and RES to the microgrid, particularly when scheduling is employed, considerably lowers the PAR value. This suggests that with the right load control technology, peak loads can be successfully reduced, resulting in more reliable and effective grid operations. The PAR for several microgrid load management techniques is contrasted in
Figure 9c. The y-axis shows the PAR value, while the x-axis depicts the various strategies. The findings demonstrate that adding a BSS and renewable energy sources (RESs) considerably lowers the microgrid’s PAR value, particularly when optimization-based scheduling strategies like the GA, PSO and WDO are used. This suggests that with the right load control technology, peak loads can be successfully reduced, resulting in more reliable and effective grid operation. The PAR for several microgrid load management techniques is contrasted in
Figure 9d. The y-axis shows the PAR value, while the x-axis depicts the various strategies. The findings demonstrate that adding a BSS and RES considerably lowers the microgrid’s PAR value, particularly when optimization-based scheduling strategies like the GA, PSO, WDO and GmPSO are used. This suggests that with the right load control technology, peak loads can be successfully reduced, resulting in more reliable and effective grid operations.
Figure 10a illustrates how much electricity costs overall for various load control techniques in a microgrid. The various strategies are shown on the x-axis, while the total cost in cents is shown on the y-axis. The findings demonstrate that, in comparison to uncontrolled scheduling using renewable energy sources and battery storage systems (Unsch + RES + BSSGA), optimization-based scheduling strategies such as PSO, WDO, BFO and GmPSO significantly lower total costs. This suggests that in microgrid systems, optimal load management techniques can efficiently control energy usage and lower electricity prices.
Figure 10b illustrates how much electricity costs overall for various load control techniques in a microgrid. The various strategies are shown on the x-axis, while the total cost in cents is shown on the y-axis. The findings demonstrate that, in comparison to uncontrolled scheduling using renewable energy sources and battery storage systems (Unsch + RES + BSSGA), optimization-based scheduling strategies such as PSO, WDO and GmPSO significantly lower total costs. This suggests that in microgrid systems, optimal load management techniques can efficiently control energy usage and lower electricity prices.
Figure 10c compares the electricity prices of several optimization methods used in a smart home energy management system. The UNSCH (unscheduled load) has the greatest electricity cost, showing inefficiency until optimized. As optimization procedures are implemented, the cost gradually falls. The GA cuts prices marginally, followed by BPSO and WDO, which also enhance cost-effectiveness. BFO achieves even lower prices, while GmPSO provides the greatest cost decrease, indicating its efficiency in reducing electricity costs. Uncontrolled scheduling (Unsch), uncontrolled scheduling with renewable energy sources (Unsch + RES) and uncontrolled scheduling with renewable energy sources and a battery storage system (Unsch + RES + BSS) are the three different load management strategies in a microgrid that are compared in
Figure 10d. Each technique’s hourly energy consumption is displayed. The findings demonstrate that adding battery storage devices and renewable energy sources considerably lowers peak energy use and balances the load profile overall. This suggests that microgrid systems can increase grid stability and energy efficiency by including battery storage and renewable energy sources.
Table 6 contrasts how well the various optimization algorithms perform in lowering energy expenses in cents under specific circumstances. Without any optimization, the baseline cost of 400 cents is shown by the “Unscheduled” row. The cost attained by a particular algorithm is displayed in each succeeding row, together with the percentage decrease and the cost difference from the unscheduled cost. With the lowest cost of 150 cents, GmPSO produces the greatest decrease of 62.5% among the algorithms. The cost is also significantly reduced to 250 cents from unscheduled 400 cents in the case of the WDO algorithm, which achieves a percentage reduction of 37.5%. The BFO algorithm decreases the price from 400 cents to 200 cents, and achieves a reduction of 50%. The GA decreases the price from 400 cents to 350 cents, and achieves a reduction of 12.5%. Similarly, BPSO decreases the price from 400 cents to 300 cents, and achieves a percentage reduction of 25%. For a given situation,
Table 7 examines how well various algorithms reduce carbon emissions (measured in kg). With a unscheduled carbon emission of 300 kg, the “unscheduled” row depicts the situation in which no optimization is performed. The emissions produced by a certain algorithm are shown in each succeeding row, together with the percentage decrease in carbon emissions and the difference compared to the carbon emissions of the unscheduled scenario. With carbon emissions down to 69.23 kg from the unscheduled value of 300 kg, the GmPSO achieves a percentage reduction of 76.9% in carbon emissions; as such, GmPSO exhibits the largest reduction in carbon emissions among the algorithms. Additionally, BFO reduces carbon emissions by 20%, followed by BPSO and the GA, which reduce emissions by 72% and 67.6%, respectively. WDO has the lowest decrease of all the optimized methods, at 10%. This suggests that the best algorithm for reducing carbon emissions in this situation is GmPSO. The PAR values for several algorithms and an unscheduled scenario under Condition 1 are compared in
Table 8. The highest PAR value, 4.5, is seen in the unscheduled scenario. GmPSO achieves the biggest reduction of 51.1%, followed by the GA (22.2%), WDO (33.55%) and BPSO (28.8%), while all the other algorithms show little reduction in PAR. BFO displays a 37.7% decrease. This suggests that, in comparison to the unscheduled scenario, the algorithms, in particular, GmPSO and the GA, are more successful in lowering the PAR.
Table 6.
Cost comparison of scenario 1.
Table 6.
Cost comparison of scenario 1.
Algorithm | Cost (Cents) | Difference (Cents) | Reduction (%) |
---|
Unscheduled | 400.00 | - | - |
WDO | 250 | 150 | 37.5% |
BPSO | 300 | 100 | 25% |
GA | 350 | 50 | 12.5% |
BFO | 200 | 200 | 50% |
GmPSO | 150 | 250 | 62.5% |
A comparison of the costs in cents for the different algorithms under Condition 2 is shown in
Table 9. At a cost of 500 cents, the unscheduled scenario acts as a baseline. The expenses of all the other algorithms are lower than those of the unscheduled scenario. Interestingly, GmPSO reduces costs the most, by 60%, followed by the GA (10%) and WDO (30%). Additionally, there are notable 40% and 20% decreases for BFO and BPSO, respectively. These findings imply that, under the given circumstances, the GmPSO algorithm is particularly successful in minimizing costs.
Table 10 compares the PAR for different algorithms under Condition 2, to determine how well they lessen energy usage imbalances. The baseline is the unscheduled value of PAR, which is 0.5. With a noteworthy 10% reduction, the GA lowers the PAR to 0.45 from unscheduled value of 0.5, with a 10% reduction, WDO reduces it by 40%, and BPSO further reduces it by 8%. With a phenomenal 60% decrease and a PAR brough down to 0.2 from an unscheduled value of 0.5, the GmPSO approach is the most successful. These findings demonstrate how GmPSO is better than other methods at maximizing energy distribution.
Under Condition 2, the carbon emissions in KGs from several methods are compared in
Table 11. As a baseline, the unscheduled scenario emits 250 kg of carbon dioxide. In comparison to the unscheduled scenario, all other algorithms show a decrease in carbon emissions. Notably, the GA (33.32%), BFO (25%), WDO (16.68%) and GmPSO (60%) obtain the largest reductions. BPSO reduces carbon emissions to 36.68%. These findings imply that, under the given circumstances, the algorithms, particularly GmPSO, are quite successful at reducing carbon emissions. A comparison of the costs in cents for the different algorithms under Condition 3 is shown in
Table 12. At 500 cents, the unscheduled scenario acts as a baseline. The expenses of all the other algorithms are lower than those of the unscheduled scenario. Notably, the GA reduces costs the most (20%), followed by WDO (30%), BPSO (24%) and GmPSO (40%). At 34%, BFO also exhibits a decline. These findings imply that, under the given circumstances, the GmPSO algorithm is particularly efficient at minimizing costs.
The PAR values for several algorithms and an unscheduled scenario under Condition 3 are compared in
Table 13. The highest PAR value, 2.8, is found in the unscheduled scenario. The GmPSO algorithm shows the highest reduction in PAR, which is 57.1%, and BPSO shows a 21.42% reduction in PAR, while BFO reduces the PAR to 35.7%, and the GA reduces the PAR value to 10.7%. The carbon emissions, in KGs, from several algorithms and the unscheduled scenario under Condition 3 are compared in
Table 14. At 208.3 kg, the unscheduled scenario has the highest carbon emissions. In comparison to the unscheduled scenario, all the other algorithms show a decrease in carbon emissions. Remarkably, GmPSO attains the greatest reduction of 24%, with the GA (18%), WDO (9.9%) and BPSO (19.9%) following behind. BFO shows a reduction in carbon emissions of 13.6%. These findings imply that, under the given circumstances, the algorithm GmPSO is successful in reducing carbon emissions. Although this work focuses on the optimization of energy management for a single smart home, the GmPSO algorithm’s scalability to larger environments, such as smart neighborhoods, office buildings, or smart cities, remains an unanswered question. GmPSO’s decentralized nature makes it an acceptable alternative for scalability; yet, several concerns arise, such as its higher computing complexity, increased communication cost and heterogeneity in load demand variation. Future research should look into multi-agent energy management systems and cloud-based optimization methodologies to enable effective real-time scheduling in large applications. Furthermore, the integration of distributed renewable energy sources (PV + Wind) on a larger scale will demand additional changes to the current optimization model to maintain system stability and cost-effectiveness.