Next Article in Journal
A Systematic Literature Review of Machine Unlearning Techniques in Neural Networks
Previous Article in Journal
Advancing Predictive Healthcare: A Systematic Review of Transformer Models in Electronic Health Records
Previous Article in Special Issue
Optimal Selection of Sampling Rates and Mother Wavelet for an Algorithm to Classify Power Quality Disturbances
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Enhancing Smart Home Efficiency with Heuristic-Based Energy Optimization

1
United States-Pakistan Center for Advanced Studies, University of Engineering & Technology, Peshawar 25000, Pakistan
2
Information Technology Department, Faculty of Computing and Information Technology, King Abdul Aziz University, Jeddah 21589, Saudi Arabia
3
Department of Computer Systems Engineering, University of Engineering & Technology, Peshawar 25000, Pakistan
4
Department of Computer Science, Faculty of Physical and Numerical Sciences, University of Swat (Shangla Campus), Shangla 22050, Pakistan
5
Computer Science Department, Faculty of Computing and Information Technology, King Abdul Aziz University, Jeddah 21589, Saudi Arabia
*
Author to whom correspondence should be addressed.
Computers 2025, 14(4), 149; https://doi.org/10.3390/computers14040149
Submission received: 12 February 2025 / Revised: 20 March 2025 / Accepted: 2 April 2025 / Published: 16 April 2025

Abstract

:
In smart homes, heavy reliance on appliance automation has increased, along with the energy demand in developing urban areas, making efficient energy management an important factor. To address the scheduling of appliances under Demand-Side Management, this article explores the use of heuristic-based optimization techniques (HOTs) in smart homes (SHs) equipped with renewable and sustainable energy resources (RSERs) and energy storage systems (ESSs). The optimal model for minimization of the peak-to-average ratio (PAR), considering user comfort constraints, is validated by using different techniques, such as the Genetic Algorithm (GA), Binary Particle Swarm Optimization (BPSO), Wind-Driven Optimization (WDO), Bacterial Foraging Optimization (BFO) and the Genetic Modified Particle Swarm Optimization (GmPSO) algorithm, to minimize electricity costs, the PAR, carbon emissions and delay discomfort. This research investigates the energy optimization results of three real-world scenarios. The three scenarios demonstrate the benefits of gradually assembling RSERs and ESSs and integrating them into SHs employing HOTs. The simulation results show substantial outcomes, as in the scenario of Condition 1, GmPSO decreased carbon emissions from 300 kg to 69.23 kg, reducing emissions by 76.9%; bill prices were also cut from an unplanned value of 400.00 cents to 150 cents, a 62.5% reduction. The PAR was decreased from an unscheduled value of 4.5 to 2.2 with the GmPSO algorithm, which reduced the value by 51.1%. The scenario of Condition 2 showed that GmPSO reduced the PAR from 0.5 (unscheduled) to 0.2, a 60% reduction; the costs were reduced from 500.00 cents to 200.00 cents, a 60% reduction; and carbon emissions were reduced from 250.00 kg to 150 kg, a 60% reduction by GmPSO. In the scenario of Condition 3, where batteries and RSERs were integrated, the GmPSO algorithm reduced the carbon emission value to 158.3 kg from an unscheduled value of 208.3 kg, a reduction of 24%. The energy cost was decreased from an unplanned value of 500 cents to 300 cents with GmPSO, decreasing the overall cost by 40%. The GmPSO algorithm achieved a 57.1% reduction in the PAR value from an unscheduled value of 2.8 to 1.2.

1. Introduction

Global energy demand has risen in recent years, putting more emphasis on renewable and sustainable energy resources (RSERs). Smart homes (SHs) equipped with energy management systems are one viable solution for optimizing energy use. The world’s energy needs have grown during the last few decades. In the past, fossil fuels were used to generate most power. However, scientists have been creating innovative and real-time data-driven and machine learning-based methods of producing electricity to meet the growing need for power while emitting the fewest greenhouse gases possible, such as using renewable and sustainable energy resources [1]. Figure 1 depicts the statistics of electricity generation from various renewable energy sources from 2022 till 2030; RSERs are crucial to halting climate change, cutting greenhouse gas emissions and using fewer fossil fuels. Thus, combining energy storage systems (ESSs) with RSERs and adopting a machine learning (ML) method is a practical way to improve energy efficiency and lessen environmental effects and user discomfort [2].
Artificial intelligence (AI) and machine learning (ML)-based models can be used for energy prediction, anomaly detection and automated load scheduling in smart grids (SGs) and optimal household energy management schedulers (OHEMSs), for the purpose of energy management and saving [3]. These developments enable consumers and utility corporations to improve grid stability, optimize energy usage patterns and reduce peak loads. However, bill costs, carbon emissions and hybrid models of algorithms are not considered in these approaches. Moreover, there is a gap in providing comprehensive and user-centric energy management, because current OHEMS systems frequently ignore user comfort and preferences. Previously, the authors of this study investigated ML models, including supervised and unsupervised learning, to predict energy demand, detect inefficiencies and automate power scheduling. Their results showed that ML-driven systems can reduce energy waste, lower electricity costs and improve energy efficiency, while maintaining user comfort [4]. Their experiments demonstrated that this method is effective in reducing energy waste while maintaining optimal indoor conditions. By considering real-time pricing, user preferences, and renewable energy availability, the proposed system followed a multi-dimensional approach to optimize appliance scheduling and energy resource operation, improving both efficiency and sustainability [5]. The simulation results demonstrated the system’s effectiveness in significantly reducing energy costs, the PAR and carbon emissions, while maintaining optimal user comfort. However, ESSs and renewable energy and solar PV integration were not modeled in their work. Figure 2 illustrates the SH features managed by the OHEMS to achieve these objectives, considering their importance levels.
This study aims to develop a reliable and cost-effective OHEMS for efficient energy optimization in SHs. The proposed solution tackles rising energy demands, peak loads and inefficient usage, while maintaining user comfort [7]. The studies in [8,9] investigated the use of various ML techniques, such as the GA, BPSO, WDO, BFO and GmPSO, to create an intelligent energy management system for SHs. The GmPSO algorithm, in particular, excelled in optimizing appliance scheduling and energy consumption, leading to notable decreases in energy costs, carbon emissions and the PAR. This research contributes to the advancement of energy management, reveals important challenges and proposes heuristic-based optimization approaches, while providing practical implications for the implementation of green energy sources in SHs. The results not only open the door to new smart energy systems, but also offer valuable insights to academics and the industry. The objectives and novel contributions of this paper are as follows:
  • To develop an optimized home energy management system for SHs to manage energy efficiently.
  • To reduce the costs of energy consumption, the PAR and carbon emissions, while preserving users’ comfort.
  • To efficiently integrate RSERs and ESSs into SHs employing energy management.
  • For appliance scheduling and load shift control, to utilize advanced heuristic-based techniques, such as the GA, BPSO, WDO and GmPSO.
  • To allow the system to respond quickly to RTP and consider user preferences for more intelligent usage of energy.
  • To demonstrate the significance of GmPSO’s superiority over some prominent optimization techniques with respect to cost, carbon emissions and the reduction of the measured PAR.
The structure of this paper is as follows: In Section 2, we evaluate relevant literature to provide context for our research. Section 3 describes the procedures employed to perform our research. In Section 4, we look more closely at the evaluation criteria and simulations we used. Section 5 explains how combining RSERs with ESSs can result in more efficient energy management. Section 5 presents our results and compares various optimization strategies, followed by a discussion of the important discoveries and contributions of our proposed framework. Finally, Section 6 concludes the work by summarizing the key findings and making suggestions for future research.
This study thus provides a good contribution overall to the domain of SH energy management. Fusing cutting-edge techniques with real-world applications and critical perspectives, it tackles urgent issues in the field of energy optimization [10]. In addition to aiding advancements in SH technologies, the findings can inform utility companies, policymakers and technology developers. This study is an attempt to bridge the gap by addressing the pressing need for user-focused load management that is widely applicable in both residential and non-residential areas.

2. Literature Review

In smart homes, load and energy management has garnered a lot of attention due to the steady increase in linked devices and energy use in recent years [11]. In this paper, emphasis is placed on highlighting gaps in the literature, critically analyzing the important theoretical and experimental works on the issue, and demonstrating how the proposed study on optimization algorithms for load management in houses contributes to the body of knowledge already in existence. One of the important works in load management is the study in [12], which suggests a demand response framework for smart homes to reduce energy bill costs. However, the PAR, carbon emissions and comfort level are not taken into consideration. The authors emphasize how important it is to manage load and lower peak demand by utilizing price mechanisms and user preferences. They develop a load management system that optimizes appliance schedules to lower energy use, based on machine learning approaches [13]. Real-time pricing, appliance prioritization and consumer preferences are all considered in their approach. Although load control is the focus of these studies, user comfort and preferences are disregarded in favor of energy efficiency and peak load reduction. To bridge this gap, recent research by [14] proposes a load control algorithm that considers user comfort as well as energy efficiency. Using an RL framework, the authors adjust appliance schedules based on user preferences and comfort levels. Similarly, Ref. [15] provides a load management approach that enhances thermal comfort by accounting for user preferences and temperature fluctuations. These studies show that load management algorithms are increasingly taking user comfort into account, but further investigation and improvement are still required. The study in [16] builds on the body of current literature by developing ML approaches that bridge the load management gap by considering energy efficiency as well as customer comfort and preferences. Nevertheless, the overall energy bill cost, ESS and PV integration, comfort in terms of delay and PAR reduction are ignored. The authors of [17] provide an overview of the most recent developments in DR and HEMSs in the home market. There is also discussion of the significance of HEMSs for load restriction and relocation. They provide information on current optimization methods, such as heuristic algorithms, mathematical optimization and model predictive control. Additionally, the effects of timing consideration, device heterogeneity, computational limitations and uncertainty prediction on optimization algorithm design are covered. Nevertheless, there is no discussion of appliance waiting times or UC. The writers of [18] provide a succinct overview of the most recent developments in HEMSs. The difficulties of putting HEMSs into practice are discussed, along with new findings on DR, DSM, appliance scheduling and single- or multiple-objective optimizations. However, user comfort in SHs, ESS and PV integration and PAR reduction are ignored, and are not deduced from energy bill savings.
Table 1 illustrates the comparison between smart grids and traditional grids. As evident from the table, smart grids offer numerous advantages over traditional grids.
In [21], the authors discuss the importance of energy planning and management in SCs. This study is a review of SC energy system optimization and planning. The SC energy system’s four components—generation, storage, transmission and end users—are thoroughly covered. However, in grid events, an ESS is included to accommodate residential load. However, there is no discussion of how to adjust the load and ESS or schedule appliances in response to the power market’s dynamic pricing. The writers of [22] provide information about the methods and practices that make it easier to integrate RESs and DGs into SGs, and the idea of SCs is thoroughly discussed. In [23], SG and SH inclinations are thoroughly examined by the authors. They look into the efficiency of several communication methods, such as Ethernet protocols, Wi-Fi, Z-Wave and Zig-Bee. Both the benefits and drawbacks of the present technologies and goods are highlighted by the writers. The usage of communication technology in SGs and SHs is also addressed, along with its advantages, drawbacks and prospects. The authors of [24] provide an illustration of an REMS. For the sake of demonstration, three SHs that are powered by a residential PV system, or RES, are examined. A comprehensive study of LF, present LF techniques in the electricity system, future trends and its importance for future SG deployment is given by Bektas et al. [25]. They go into great length into the two primary categories of LF mathematical modeling and computational models based on artificial intelligence, as well as their variants. By charging the ESS during off-peak hours and discharging it during peak hours, the LP foundation of the REMS lowers power expenses and the PAR. Although charging the ESS directly from the grid is not a cost-effective strategy, it is not believed that RESs should be incorporated into the residential sector. In order to rearrange shiftable appliances from peak to off-peak hours, the authors of [26] suggest an ILP-based HEMS with integrated RESs. To create the best operating patterns for appliances, the authors of [27] suggested a hybrid approach that combines the ANN and LSA. MATLAB/SIMULINK (R2019a) is used to model and construct four appliances, each having user-specified preferences. In [28], the authors exhibit a fully automated RL energy management system. By adding more intelligence to the EMS, the OLA algorithm solves the problems of energy management and appliance scheduling. The suggested method considerably lowers the PAR and expense, but UC is jeopardized. The writers of [29] address the issue of peak demand at specific hours. The idea of smart charging and clustering is presented to optimize the advantages in terms of UC and cost savings. Through the scheduling of the ESS and appliances, an efficient EMS based on the GA is built for the clusters. In [30], the author provides a distributed system that uses the greedy iterative approach for grid optimization and the REMS. The authors in [31] propose an energy management system that automatically manages SH power requirements based on utility constraints and user priorities. As illustrated in Figure 3, the system’s architecture facilitates two-way communication between the service provider and its clients. It is important to keep in mind that the energy service provider, acting as the program administrator, is often responsible for funding the necessary infrastructure and supporting technology.
Table 2 illustrates the differences between traditional and heuristic algorithms. As evident from the table, heuristic optimization techniques such as the GA, BPSO, WDO, BFO and GmPSO are effective at optimizing electricity bills, the PAR and the carbon footprint in intelligent homes. These algorithms provide rapid and computationally efficient solutions for appliance scheduling and energy optimization. However, they are vulnerable to local optima and require parameter fine-tuning for peak performance. RL-based solutions, on the other hand, adaptively adjust energy scheduling in response to real-time demand and user preferences, providing greater flexibility at the expense of high computational power and extensive training data sets. LP and MILP give exact optimization results, and have been utilized to minimize energy expenses and peak demand, but are computationally costly when managing large-scale, non-linear smart home energy systems. However, hybrid strategies, such as the GmPSO algorithm proposed in this work, combine the benefits of heuristic algorithms like the GA and PSO with strong optimization methods, providing a more adaptive, balanced and scalable approach to optimizing energy consumption and reducing dependence on grid energy and fossil fuels, while taking into consideration user comfort and preferences.

3. Proposed Research Methodology

Due to increased usage of household electronic appliances, energy consumption has significantly increased, and the residential sector now consumes more than 40% of all electricity generated. Because fossil fuels now supply the bulk of the world’s electricity, efforts to limit greenhouse gas emissions must be measured against the rising demand for electricity. To this end, scientists have been studying innovative methods of energy production, such as methods that harness RSERs. The integration of RSERs with ESSs can be highly advantageous, according to studies. However, the large-scale integration of RSERs poses a potential risk to the stability of traditional power grids that are already under stress from excessive loads. To address this, scholars are working on distributed SG applications, making OHEMSs necessary to optimize the use of energy in home appliances. Thus, we are developing an OHEMS.
The main objectives of our research are two-fold:
  • To enable the use of ESSs and RSERs in the residential sector.
  • To develop appliance scheduling to control resource usage and energy consumption.

3.1. PV System Energy Generation Model

A rooftop PV system serves as the RSER for a smart prosumer’s house, which is integrated into the proposed OHEMS. Among other sources of renewable energy, such as wind, tidal, geothermal, biomass and biogas, solar energy is the most abundant and accessible. Essentially cost-free, as there is little operational and maintenance cost, it is the best possible solution for residential energy systems. The upper atmosphere of Earth receives about 174,000 TW of solar radiation. Roughly 30% of this energy is reflected back into space, with the remaining 70% absorbed by clouds, oceans and land masses. Most regions around the globe experience daily solar insolation levels between 150 and 300 watts/m2, equivalent to 3.5 to 7.0 kWh/m2 [39]. Given this widespread availability, the proposed OHEMS leverages the PV system to maximize its benefits.
This system is set up to accomplish multiple goals:
  • Reduce household electricity bills.
  • Abate carbon emissions to meet sustainable energy goals.
  • Decrease the PAR for better energy distribution.
To calculate the output power of a PV system Y p v t , expressed in kilowatts at a given time t, the following formula in Equation (1) can be used [40].
Y p v t = n p v . A p v . I r t . 1 0.005 T ß t 25        t
  • n p v = the energy conversion efficiency of the PV system.
  • A p v = the state of the generator zone (m2).
  • I r t = the solar radiation at time t (kW/m2).
  • Tβ(t) = the external temperature (°C) at time t.
  • 25 degrees centigrade is the standard temperature.
  • 0.005 = the factor used for temperature adjustment.
The Equation also considers changes in sunlight and temperature that affect how much output power it will provide. The solar irradiation Ir(t), which means the solar energy available at a certain time of year, varies by an hour. These distributions are often bicomodal, and can be expressed as mixtures of two unimodal distribution functions. The unimodal distribution functions can be modeled using the Weibull probability density function, expressed as in Equation (2):
f I r t = ζ α 1 β 1 I r t β 1 α 1 1 e I r β 1 α 1 + 1 ζ α 2 β 2 I r t β 2 α 2 1 e I r β 2 α 2 , 0 < I r t <
In this formula,
  • ζ is a weighted component that shows each distribution’s contribution.
  • α1 and α2 are distribution shape parameters.
  • The scale parameters for the distributions are β1 and β2.

3.2. Energy Storage Model

The ESS stores some of the energy generated by the PV system and uses it later to maximize energy efficiency with minimal space consumption. The ESS only stores energy when its current charge level is below the maximum charge capacity. The energy stored in the ESS at a certain time t is given by an equation that accounts for the amount of energy charged and discharged, as well as the self-discharge rate of the system, ensuring that the energy available for consumption at a given point in time is correctly represented. It also considers energy losses that happen during all the charging and discharging processes; such losses have an effect on the overall performance of the ESS. This is known as the ESS turnaround efficiency, and allows the model to capture a realistic view of energy time management in the system through the constraints of energy storage described in Equation (3).
E S t = E S t 1 + k . n E S S . E P Z H t k . E P D Z H t n E S S        t
In this model,
  • Κ is the time slot duration (in hours).
  • E P Z H is the power (kW) that the ESS receives from the RSER at a certain point in time.
  • E P D Z H is the power (kW) that the ESS delivers to meet the load demand at a given point in time.
  • n E S S is the efficiency of the ESS, accounting for energy losses during charging and discharging.
One of the most significant controls for improving the ESS’s longevity and dependability is operation within the manufacturer’s suggested ranges for charge and discharge rates, as well as for stored energy levels. Following these recommendations helps to avoid the system being too full (which would damage the system) and too empty (which can degrade battery performance). Proper management ensures the long-term reliability and performance of the ESS, as expressed by the constraints in Equations (4) to (6).
E P Z H t E P U B Z H
E P t D Z H E P L B D Z H
E S ( t ) E S U B Z H
In this context,
  • E P L B D Z H represents the ESS discharge rate’s lower limit.
  • E P U B Z H shows the ESS charge rate’s maximum limit.
  • E U B Z H specifies the ESS’s maximum permitted energy storage capacity.

3.3. Model of Energy Consumption

Household appliances are divided into two categories and utilized to realistically model the demand behavior of an intelligent user. Breaking down energy usage in this way allows the household to obtain context for their energy bill, or to look for opportunities for some simple optimization. This classification could additionally facilitate the deployment of optimized scheduling strategies and the steady combination of renewable power resources, which will improve energy efficiency, minimize costs and enable energy management of future SG systems.
  • Shiftable Appliances (Set A): these appliances, represented as A = {a1, a2, a3, am}, can be scheduled to operate during low-price time slots to reduce energy costs.
  • Non-Shiftable Appliances (Set B): represented as B = {b1, b2, b3, bn} these appliances operate at user-specified times, and are not influenced by dynamic pricing.
This smart integration of resources and scheduling ensures optimal energy usage for both prosumers and utilities, as shown in Table 3.
The system does this by tracking the allocated future consumption of shiftable appliances and, where possible, scheduling the consumption of the shiftable appliances alongside the already-fixed-in-place consumption of the non-shiftable appliances, as shown mathematically by Equations (7) and (8).
E a = t = 1 24 ( A = 1 a E t a , a A ) = E t 1 a , a A + E t 2 a , a A + + E t 24 a , a A                    
E b = t = 1 24 ( B = 1 b E t b , b B = E t 1 b , b B + E t 2 b , b B + + E t 24 b , b B                    
The energy usage of the smart prosumer’s appliances is represented as follows:
  • E t 1 a , a in A,…, E t 24 a , a in A indicates the energy consumption of shiftable appliances (A) over a 24 h period.
  • E t 1 b , b in B, E t 2 b , b belongs B,…, E t 24 b ,b in B represents the energy consumption of non-shiftable appliances (B) in each specific time slot t.
A formula that adds up the energy used by both shiftable and non-shiftable appliances during the day is used to determine the prosumer’s load’s total daily energy consumption, as expressed by Equation (9). This computation offers a thorough understanding of the energy requirements and permits efficient cost and energy efficiency optimization.
E t o t a l = t = 1 24 ( A = 1 a E t a , a A + M n E t b , b B )

3.4. PAR

The PAR is a metric that estimates the ratio between the highest load consumed within a specific timeslot t and the average of all loads used throughout the entire scheduling period (t = 1 to t = 24). The PAR is an important control variable for utilities because it reflects the energy consumption patterns of users. This can have significant impacts on the efficiency and cost of energy production, particularly on high-peak-demand power plants with resulting high PAR values. With a lower PAR, the utility and consumer are both able to maintain supply and demand operating limits, which removes stress from the power grid.
By minimizing the PAR, the energy consumption becomes more consistent, leading to a more efficient and stable energy system, given below in Equation (10).
P A R = max E t o t a l t 1 T t = 1 T E t o t a l ( t )
For multiple users, denoted as M, the PAR can be computed by aggregating the energy consumption across all users and then applying the same formula. Specifically, the PAR for multiple users can be calculated with Equation (11):
P A R = max E t o t a l t , m 1 / T n = 1 M E t o t a l t , m
where
  • n in M represents each individual user.
  • The peak load for each user is compared against their average load over the full scheduling period (24 h).

3.5. Model of Energy Pricing

To determine the energy cost for a given day, a variety of power tariffs are available, including PP, ToUP, DAP, CPP and RTP. Because RTP complicates communication, most appliance scheduling systems assume DAP or ToUP electricity rates. In addition, ToUP divides the pricing horizon in half and establishes a fixed price for every block. We employ RTP in this situation, where the hourly electricity price fluctuates and stays the same for a particular hour. Equations are used to calculate the daily power bills for the moveable appliances E P X and the immovable devices E P Y , as given by Equations (12) to (17).
E P X = t = 1 24 ( M = 1 m E m x m M t × X X M M t × P R T P t )
E p y = t = 1 24 N = 1 n ( E n y N t × P R T P t )
E p t o t a l = E P X + E p y = t = 1 24 ( M = 1 m ( E M X M ( t ) × X m X M ( t ) × N = 1 n ( E n y N t × X n y N t ×       P R T P t ) )      + N = 1 n ( E n y N t × X n y N t × P R T P t ) )
X m x M ( t ) = 1   i f   s h i f t a b l e   a p p l i o a n c e   i s   o n 0   i f   s h i f t a b l e   a p p l i a n c e   i s   o f f  
X n y N ( t ) = 1   i f   n o n s h i f t a b l e   a p p l i a n c e   i s   o n 0   i f   n o n   s h i f t a b l e   a p p l i a n c e   i s   o f f
Here, X m x in M (t) displays the ON/OFF state of a shiftable appliance M, and X n y , belonging to N (t), shows the ON/OFF state of a non-shiftable appliance N. Additionally, for a given time slot T, P R T P T is RTP. After accounting for the RSER and ESS, the electricity bill EP (t) for any time slot t is determined as follows:
E p t = E x t + E y t E R τ × P R T P ( t ) )
The time slot with the highest bill between T = 8 and T = 10 is denoted by τ.

3.6. Scheduling of Appliances

Through better appliance scheduling and less reliance on costly backup generators, this project aims to reduce electricity expenditures and the peak-to-average ratio (PAR). To maintain balanced power consumption, appliances are controlled by an OHEMS using binary choices and limitations (Equations (18)–(21)):
m i n ( ( E x t + E y t E p v t E R τ ) × P R T P ( t )
subject to
E T o t a l t E g r i d t + E p v t + E R τ , 1 t 24
E t o t a l t E   min unsch ( t )
       τ 0 τ s c h τ max
The maximum permitted load withdrawal is determined by Egrid(t), and effective energy management is ensured by scheduling parameters (τ0, τsch and τmax).

3.7. Proposed System Architecture

The OHEMS optimizes energy utilization to reduce electricity bills and the PAR, while Demand-Side Management (DSM) and DR are implemented in smart networks to increase stability. Using the OHEMS to dynamically schedule appliances based on market rates, smart prosumers effectively manage their energy by combining grid electricity, an ESS and an RSER. A PV system, a DC/AC inverter, an ESS, an SM, an SS, an MC and a variety of appliances are the main elements of the suggested system architecture, as illustrated in Figure 4.
Solid lines in the diagram denote energy flow, whereas dotted lines show information flow. For smooth data sharing, Advanced Metering Infrastructure (AMI) incorporates Information and Communication Technology (ICT) into the grid. By processing pricing signals and DR directives and monitoring energy consumption, the Smart Meter (SM) serves as a link between utilities and smart homes. Through the use of an inverter, RSERs like solar photovoltaic systems lessen dependency on fossil fuels by transforming sunlight into usable AC electricity.
  • The ESS acts as a sink, as well as acting as a source. Therefore, it constitutes an efficient approach in integrating RSERs with distribution and residential networks.
  • Scattered between the SM and MC scenario is an SS, which involves heuristic-based programming. The MC implements the per-appliance ideal/best energy usage patterns that the SS develops.
  • The MC, which is the main module of the OHEMS, saves energy and optimizes usage by managing the ESS and home appliances’ actions in agreement with the timings generated by the SS.

4. Optimization Algorithms

In appliance scheduling, evolutionary algorithms like the GA, BPSO, WDO, BFO and GmPSO are introduced here. These algorithms perform better than more conventional techniques like DP, ILP, LP and MILP. By avoiding local optima and improving scheduling efficiency, these sophisticated algorithms offer powerful optimization possibilities.

4.1. Genetic Algorithm

Natural genetic processors serve as the inspiration for the heuristic optimization method known as the GA. In order to avoid premature convergence, it employs crossover (with a 90% chance) and mutation to generate new solutions, while using binary-coded chromosomes to describe appliance states. The finest solutions are chosen for the generation following examination, guaranteeing ongoing progress. Table 6 provides specifics about the algorithm’s parameters.

4.2. BPSO

By monitoring particle position, velocity, personal best and global best, BPSO, an optimization method inspired by nature, determines the optimal solution. In order to achieve the best outcome, it iteratively updates velocities using Equation (22), after initializing a population. The particles modify their velocities according to Equation (22) in each iteration.
t = 1 24 j = 1 ` 1 v j t + 1 = t = 1 24 j = 1 1 w V q t q + z 1 t 1 X f b e s t , j q x j t q + z 2 t 2 X d b e s t , j q x j t q
The velocity of the particle (appliance) in the next time slot is represented by v(t+1); w is the factor of inertia, v(t) is the current velocity, X(t) is the current particle position; X d b e s t is the global best position, and X f b e s t is the local best position; and using Equation (23), t1 and t2, respectively, represent the local pull Z1 and the global pull Z2. Using the sigmoid function (from the following equation) allows us to map the particle speeds between 0 and 1.
s i g V t j + 1 q = 1 / 1 + e x p ( V t j + 1 q )
A binary-coded population is produced by comparing the random values allocated to each particle in the population using the sigmoid function.
x t j + 1 = 1       s i g V t j + 1 q < t j q 0               o t h e r w i s e ,

4.3. WDO

Using the four main forces of gravity, friction, pressure gradient and Coriolis, Wind-Driven Optimization (WDO) simulates the motion of air parcels to identify the best solutions. Equations (25)–(30) define these forces, which direct the optimization process.
H k l = ρ δ v
H M = 2 × μ
H N = ρ δ v × g
H O = ρ δ μ
Here, Ω indicates earth rotation, µ is the wind velocity vector, H N is the vertical force exerted on the Earth’s surface, g is the acceleration due to gravity, H O is the friction force and α is the friction coefficient. Where ρ is the air density, δv is the finite air volume and Hm is the Coriolis force. Each cycle updates the position and velocity of the air packets.
V n e w = ( 1 α V o l d z x o l d + P m a x P o l d S L X m a x X o l d H V o l d P o l d
x n e w = x o l d + V n e w × t
In order to enhance appliance scheduling, WDO continuously compares fitness values and changes air parcel velocities, while taking opposing, gravitational and Coriolis forces into account.

4.4. BFO

Inspired by the foraging habits of Escherichia coli bacteria, Bacterial Foraging Optimization (BFO) maximizes solutions by means of swimming, chemotaxis, reproduction and elimination–dispersion. It refines the results by updating the placement of the bacteria within the solution matrix after assessing appliance statuses.
θ i q + i , M , t = θ i q , M , t + L ( i ) ( i ) \ t ( i ) ( q )
With the i-th bacterium at stage (q, M, t) traveling in a random direction ∆ within the range [−1, 1] with a step size L(i), the air pressure for each particle is computed.
Q C C ( θ , S i , k , t = q = 1 n Q t t θ q , θ q , h , t = j n [ i a t t r a c t i o n e x p ( X a t t r a c t a n t b = 1 a θ b θ b j 2 ) ] + q = 1 n [ C r e p e l l e n t e x p ( X r e p e l l e n t b a θ b θ b j 2 ) ]
The objective function is as follows: Qcc (θ, S (q, h, t)), where θ = (θ1, θ1,…, θa) is an a-dimensional search space, a is the number of appliances and n is the total number of germs. There is a variety of coefficients (e.g., iattractant, Xattractant, Crepellant, Xrepellant).

4.5. Our Proposed GmPSO

We propose a GmPSO algorithm, which uses the product characteristics of the GA and BPSO algorithms to minimize the PAR, power bill cost and carbon emissions simultaneously. The selected two algorithms are employed as a hybrid, because BPSO can effectively reduce the electricity cost, while the GA can better reduce the PAR. In the first step of GmPSO, PSO techniques are used, and then mutation and crossover of the GA phase are employed to find the current global best position of PSO, named P p g b e s t t 1 .Performing crossover and mutation at the right time for velocity updating of PSO produces better results than applying them to a random population. The proposed and benchmark algorithm are evaluated in terms of time complexity and convergence rate in simulations. Our proposed method/algorithm achieves better results compared to others in terms of the fitness functions and convergence rate in the desired scenarios. The computational cost of both the proposed and existing algorithms is evaluated based on two key factors, execution time and convergence rate: (a) execution time refers to how long an algorithm takes to achieve the desired objectives while managing energy, and (b) the convergence rate indicates how quickly an algorithm reaches a particular iteration to find the global optimal solution. An algorithm is considered computationally efficient if it has a shorter execution time and converges faster. The execution time is measured in seconds, while the convergence rate is determined by the number of iterations. The computational costs of the algorithms are detailed in Table 4. The flowchart in Figure 5 represents the GmPSO process for optimizing smart home energy management by minimizing cost, the PAR and carbon emissions. It begins with initializing the RTP signals, temperature, appliance operation patterns and energy resources (RSERs) of the ESS, along with setting GA and PSO parameters. The algorithm iterates through evaluating the fitness function, updating velocity and position, and assigning the personal best pgbest solution. The hybrid approach integrates GA operations like crossover and mutation to enhance global search, while objective calculations determine the cost, PAR and emissions based on user comfort and billing. The system assesses whether the current fitness is superior, and updates the best solution accordingly. The process repeats until convergence is reached, ensuring a balanced trade-off between cost-effectiveness, energy efficiency and carbon emissions in smart home energy management.

4.6. Price Forecasting Technique

In order to estimate energy prices in smart homes and help with cost management and appliance scheduling optimization, this study investigates Support Vector Regression (SVR) and auto-regressive models (AR1, AR2 and AR3). The study discusses their advantages, while pointing out their drawbacks in terms of offering real-time price information for efficient energy management.
Z t = ß 0 + ß 1 Z t 1 + ß 2 Z t 2 + ß 3 Z t 3 + u
Z t = ß 0 + ß 1 Z t 1 + ß 2 Z t 2 + ß 3 Z 3 t 3 + m = 1 12 k M k , t + u t
Z t = ß 0 + ß 1 Z t 1 + ß 2 Z t 2 + ß 3 Z t 3 + Ύ m B m , t + m = 1 12 m m , t + u t
SVR is another important technique. This machine learning method is good for prediction, because it can handle non-linear correlations in the data, a necessary feature for forecasting dynamic and variable energy prices. Given SVR’s strong generalization to complicated scenarios, it further enables the energy management system to effectively respond to real-time pricing signals and enhances energy usage optimization.
Z t , Q C R = Q C R Z t 1 , Z t 2 , Z t 3
In addition, the framework is augmented with the implementation of ANFIS. ANFIS is primarily used for load and energy optimization; however, due to its predictive ability, it is also employed for price forecasting. This hybrid approach leverages the strengths of fuzzy logic and neural networks, which are expected to improve decision making under the scenario of energy price volatility.
The main objective of the proposed price forecasting method is to support energy efficiency and SH cost reduction. By applying these innovative techniques, this study demonstrates how machine learning can enhance the efficacy and sustainability of energy management systems. Figure 6 shows a flowchart illustrating the of operations of the proposed ANFIS feedback algorithm.

5. Results and Discussion

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.
The suggested GmPSO algorithm was created and tested using MATLAB R2019a. Rather than using common MATLAB toolboxes, the simulation was run using a proprietary framework written in MATLAB. The implementation involved writing scripts for initializing parameters, executing optimization iterations and analyzing the performance of the scheduling policy. The simulations used the parameters given in Table 5 for each algorithm. The initial inertia weight w i for BPSO was set to 1.0, which gradually decreased to a final value of 0.4. The mutation rate p m in the GA was set to 0.1 to maintain population diversity and prevent premature convergence. The crossover probability p c in the GA was set to 0.9, enabling a more thorough exploration of the search space. The swarm size H s w a r m was set to 500 particles during the optimization phase, and the algorithm was run for 200 iterations n i t r a to ensure convergence. Velocity constraints were set with a maximum velocity v m a x of 4, and a minimum velocity v m i n of −4. To ensure reproducibility, simulations for all instances were run using random seed values as constants, allowing the results to be replicated.
The algorithm’s computational complexity, computational cost and convergence rate are given in Table 4, which provides a comparative evaluation of the computational cost of various optimization techniques, highlighting their efficiency in terms of iterations, time complexity and convergence rate. Among the listed algorithms, the GA, BFO and WDO exhibit higher time complexity and slower convergence rates, indicating their computational inefficiency in large-scale optimization problems. BPSO demonstrates a moderate improvement, reducing time complexity slightly while enhancing convergence. However, the superiority of GmPSO is evident, as it achieves the lowest time complexity (130 s) and the fastest convergence rate (85), making it the most efficient technique. This efficiency stems from GmPSO’s enhanced exploration–exploitation balance, enabling faster convergence without being trapped in local optima, thus outperforming traditional heuristic methods in SH energy management and other complex optimization tasks. In addition, using high-quality exogenous grid signal-type RTPs, forecasted temperature and solar irradiance data, which were fed from the EMS, were used for energy pricing and compensation of the user’s load.

5.1. Condition 1: Without PV and ESS Appliance Scheduling

In Condition 1, energy optimization is achieved with a scheduling algorithm alone, without the consideration of the PV and ESS. The solution aims to reduce the energy cost, PAR and carbon emissions by optimizing appliance utilizations. The data set contains various household appliances that are classified as shiftable (appliances are scheduled to run during low-cost hours) and non-shiftable appliances (appliances run at certain fixed time). In order to achieve this goal, some optimization methods, such as the GA, BPSO, WDO, BFO and GmPSO, are used.

5.2. Condition 2: Integration of PV Systems

In Condition 2, PV systems, as a renewable energy source, are integrated into the energy management system. Solar energy is the primary household energy source that powers appliances and reduces dependency on grid electricity and fossil fuels. The condition-based scheduling algorithms designed in Condition 2 are used to maximize the consumption of solar energy and to schedule appliances. The integration is then assessed based on several metrics (energy costs, PAR, carbon emissions).

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/m2, while the x-axis shows the time in hours. The sun radiation graph indicates that it reaches its highest value of 1200 W/m2 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 CO2 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 CO2 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 CO2 emissions under Condition 2, unscheduled + RES, measured in KGs. The x-axis indicates the hour of the day, while the y-axis displays CO2 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 CO2 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 CO2 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 CO2 emissions for Condition 3—Unscheduled + RES + ESS—in KGs. The x-axis indicates the hour of the day, while the y-axis shows CO2 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 CO2 emissions throughout all hours, indicating that even with optimization, emissions remain high. The optimization approaches (WDO, BFO, BPSO and GmPSO) considerably decrease CO2 emissions compared to the unplanned scenario. GmPSO (green bars) has the lowest CO2 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.
AlgorithmCost (Cents)Difference (Cents)Reduction (%)
Unscheduled400.00--
WDO25015037.5%
BPSO30010025%
GA3505012.5%
BFO20020050%
GmPSO15025062.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.

6. Conclusions and Future Work

This study explores heuristic-based algorithms to manage energy consumption in SHs. With the growing popularity of smart appliances, the study highlights that these possible novel energy management approaches are needed to nearly eliminate customer discomfort, as well as to significantly reduces peak energy demand. The study finds that achieving this goal forces us to integrate ESSs and RSERs, and the OHEMS system developed in this study investigates the contributions of these integrations to the PAR and energy costs, showing significant improvements. The simulations still confirm that the use of heuristic advance techniques, such as WDO, GA, BPSO and BFO, and our hybrid of the GA and PSO, GmPSO, lead to better energy efficiency performance in SHs. This research analyzes the best energy optimization cases under three conditions: scenario 1 emphasizes the scheduling of household appliances with the help of heuristic algorithms, without considering RSERs, and providing significant savings in terms of energy bill costs, carbon emissions and the PAR. Using solar energy, scenario 2 incorporates a PV system to raise energy efficiency, and GmPSO shows excellent reductions in cost, the PAR and emissions. Finally, scenario 3 is a configuration that consists of a PV system and an ESS, which can supply the remainder of the solar energy that may have been generated during peak demand even if solar energy is scarce, thus allowing solar energy to be stored for later use, and adjusting the load distribution, reducing the amount of energy purchased from the grid, reducing costs and enhancing the reliability of the grid. These conditions showcase the advantages of combining renewable energy and storage with heuristic-based algorithms progressively. The simulation results demonstrate significant improvements. Under scenario 1, GmPSO lowered carbon emissions from 4.40 kg to 0.70 kg, bringing them down to 84.09%; GmPSO also cut prices from an unplanned value of 871.00 to 93.73, resulting in an 89.23% reduction percentage. The GmPSO method reduced the PAR by 68.03%, from an unplanned value of 1.55 to 0.4955. In scenario 2, GmPSO reduced the PAR from an unscheduled value of 0.4078 to 0.0140, resulting in a 96.57% reduction; further, GmPSO reduced the costs from 250.00 cents to 8.00 cents, achieving a 96.80% reduction; and finally, GmPSO reduced the carbon emissions from 4797.4734 kg to 5.9413kg, resulting in a 99.88% reduction. The GmPSO algorithm generated an ideal carbon emission value of 5999.15 kg from an unplanned value of 7581.58 kg when batteries and renewable energy sources were combined in scenario 3, resulting in a reduction percentage of 20.85%. GmPSO also achieved a 19.89% cost reduction, bringing energy expenses down from an unplanned value of 378.27 to 303.00. GmPSO obtained a reduction percentage of 90.12% and decreased the PAR value from an unplanned value of 1.519 to 0.150. These results highlight how heuristic-based optimization algorithms, such as GmPSO, can provide SH energy management that is sustainable.
This study offers significant insights for stakeholders, including energy companies, regulators and SH device manufacturers, by enhancing energy efficiency and advancing SH energy management through RSER and ESS integration. Future work will focus on implementing advanced ML algorithms to improve the accuracy of price, load and user behavior predictions, while adapting to dynamic user preferences. Additionally, real-world deployment of the proposed OHEMS will be conducted to evaluate its practical effectiveness across diverse populations and climate conditions. Our proposed system can be adopted in energy management systems beyond a single SH. While the proposed approach effectively optimizes energy consumption in an SH, its applicability to larger settings, such as smart cities and commercial buildings, presents additional challenges. These include increased computational complexity, communication overhead and the need for seamless integration with diverse energy sources and user behaviors. Future work should explore scalable architectures, distributed optimization techniques and edge computing solutions to enhance the system’s adaptability for large-scale deployment, while maintaining efficiency and responsiveness.

Author Contributions

Conceptualization, Y.A.K., A.U.R. and A.S.K.; methodology, S.J. and F.Q.K.; software, F.K. and A.N.A.; validation, Y.A.K., A.U.R. and S.J.; formal analysis, Y.A.K.; investigation, F.K.; resources, S.J.; data curation, A.U.R.; writing and A.N.A.—original draft preparation, Y.A.K.; writing—review and editing, A.U.R. and A.S.K.; visualization, F.Q.K.; supervision, S.J.; project administration, S.J.; funding acquisition, F.K. All authors have read and agreed to the published version of the manuscript.

Funding

This project was funded by the Deanship of Scientific Research (DSR) at King Abdulaziz University, Jeddah, under grant no. GPIP 1969-611-2024. The authors, therefore, acknowledge, with thanks, the DSR for the technical and financial support.

Data Availability Statement

Data will be made available upon request to the corresponding author.

Acknowledgments

The authors acknowledge the support of the Deanship of Scientific Research (DSR) at King Abdulaziz University, Jeddah, Kingdom of Saudi Arabia.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Ahmad, H.B.; Asaad, R.R.; Almufti, S.M.; Hani, A.A.; Sallow, A.B.; Zeebaree, S.R.M. Smart home energy saving with big data and machine learning. J. Ilm. Ilmu Terap. Univ. Jambi 2024, 8, 11–20. [Google Scholar] [CrossRef]
  2. Aldahmashi, J.; Ma, X. Real-Time Energy Management in Smart Homes Through Deep Reinforcement Learning; IEEE Access: Piscataway, NJ, USA, 2024. [Google Scholar] [CrossRef]
  3. Ikegwu, A.C.; Obianuju, O.J.; Nwokoro, I.S.; Kama, M.O.; Ebem, D.U. Investigating the Impact of AI/ML for Monitoring and Optimizing Energy Usage in Smart Home. Artif. Intell. Evol. 2025, 6, 30–43. [Google Scholar] [CrossRef]
  4. Khan, M.A.; Sabahat, Z.; Farooq, M.S.; Saleem, M.; Abbas, S.; Ahmad, M.; Mazhar, T.; Shahzad, T.; Saeed, M.M. Optimizing smart home energy management for sustainability using machine learning techniques. Discov. Sustain. 2024, 5, 430. [Google Scholar] [CrossRef]
  5. Kumar, N.; Sundaram, K.; Reena, R.; Madhumathi, S. Optimizing energy consumption in smart homes using machine learning techniques. E3S Web Conf. 2023, 387, 02002. [Google Scholar] [CrossRef]
  6. Lin, M.; Peng, L.; Liu, T.; Zhang, L. Novel approach to energy consumption estimation in smart homes application of data mining and optimization techniques. Front. Energy Res. 2024, 12, 1361803. [Google Scholar] [CrossRef]
  7. Pinthurat, W.; Surinkaew, T.; Hredzak, B. An overview of reinforcement learning-based approaches for smart home energy management systems with energy storages. Renew. Sustain. Energy Rev. 2024, 202, 114648. [Google Scholar] [CrossRef]
  8. Raj, N.; Sinha, A.; Bharddwaj, S.; Yadav, A.L. AI-Powered Energy Consumption Optimization for Smart Homes Using IoT. In Proceedings of the 2024 International Conference on Computational Intelligence and Computing Applications (ICCICA), Samalkha, India, 23–24 May 2024; IEEE: Piscataway, NJ, USA, 2024. [Google Scholar] [CrossRef]
  9. Ben Slama, S.; Mahmoud, M. A deep learning model for intelligent home energy management system using renewable energy. Eng. Appl. Artif. Intell. 2023, 123, 106388. [Google Scholar] [CrossRef]
  10. Abdelhameed, E.H.; Abdelraheem, S.; Mohamed, Y.S.; Diab, A.A.Z. Effective hybrid search technique based constraint mixed-integer programming for smart home residential load scheduling. Sci. Rep. 2023, 13, 21870. [Google Scholar] [CrossRef] [PubMed]
  11. Iqbal, S.; Sarfraz, M.; Allahloh, A.S. Intelligent residential load scheduling for smart home. In Proceedings of the Smart Grid & Electric Vehicle, Chennai, India, 3–4 April 2023; AIP Publishing: Long Island, NY, USA, 2023. [Google Scholar] [CrossRef]
  12. Hussain, H.M. Heuristic-Based Packetized Energy Management for Residential Electricity Demand; LUT University: Lappeenranta, Finlanda, 2023. [Google Scholar]
  13. Irfan, M.; Hassan, C.A.U.; Althobiani, F.; Ayub, N.; Khan, R.J.U.H.; Ghandourah, E.I.; Almas, M.A.; Ghonaim, S.M.; Shamji, V.R.; Rahman, S. Power Scheduling with Max User Comfort in Smart Home Performance Analysis and Tradeoffs. Comput. Syst. Sci. Eng. 2023, 46, 1723–1740. [Google Scholar] [CrossRef]
  14. Jasim, B.H.; Al-Aaragee, A.M.J.; Alawsi, A.A.A.; Dakhil, A.M. A heuristic optimization approach for the scheduling home appliances. Bull. Electr. Eng. Informatics 2023, 12, 1256–1266. [Google Scholar] [CrossRef]
  15. Khan, Q.W.; Ahmad, R.; Rizwan, A.; Khan, A.N.; Lee, K.; Kim, D.H. Optimizing energy efficiency and comfort in smart homes through predictive optimization A case study with indoor environmental parameter consideration. Energy Rep. 2024, 11, 5619–5637. [Google Scholar] [CrossRef]
  16. Mahmood, Z.; Cheng, B.; Butt, N.A.; Rehman, G.U.; Zubair, M.; Badshah, A.; Aslam, M. Efficient scheduling of home energy management controller (HEMC) using heuristic optimization techniques. Sustainability 2023, 15, 1378. [Google Scholar] [CrossRef]
  17. Minardi, A. Heuristic Optimization Approaches for the Smart Home Appliance Scheduling Problem. Ph.D. Thesis, Politecnico di Torino, Torino, Italy, 2022. [Google Scholar]
  18. Youssef, H.; Kamel, S.; Hassan, M.H. Meta-heuristic-based home energy management system for optimizing smart appliance scheduling and electricity cost reduction in residential complexes. Neural Comput. Appl. 2024, 36, 23077–23102. [Google Scholar] [CrossRef]
  19. Youssef, H.; Kamel, S.; Hassan, M.H.; Yu, J.; Safaraliev, M. A smart home energy management approach incorporating an enhanced northern goshawk optimizer to enhance user comfort, minimize costs, and promote efficient energy consumption. Int. J. Hydrogen Energy 2024, 49, 644–658. [Google Scholar] [CrossRef]
  20. Albogamy, F.R.; Paracha, M.Y.I.; Hafeez, G.; Khan, I.; Murawwat, S.; Rukh, G.; Khan, S.; Khan, M.U.A. Real-Time Scheduling for Optimal Energy Optimization in Smart Grid Integrated with Renewable Energy Sources; IEEE Access: Piscataway, NJ, USA, 2022; pp. 35498–35520. [Google Scholar]
  21. Basnet, S.; Deschinkel, K.; Le Moyne, L.; Péra, M.C. A review on recent standalone and grid integrated hybrid renewable energy systems System optimization and energy management strategies. Renew. Energy Focus 2023, 46, 103–125. [Google Scholar] [CrossRef]
  22. Bektas, Z.; Kayalıca, M.O.; Kayakutlu, G. A hybrid heuristic algorithm for optimal energy scheduling of grid-connected micro grids. Energy Syst. 2021, 12, 877–893. [Google Scholar] [CrossRef]
  23. Fan, H.; Wu, H.; Li, S.; Han, S.; Ren, J.; Huang, S.; Zou, H. Optimal Scheduling Method of Combined Wind–Photovoltaic–Pumped Storage System Based on Improved Bat Algorithm. Processes 2025, 13, 101. [Google Scholar] [CrossRef]
  24. Khalil, M.; Sheikh, S.A. Advancing Green Energy Integration in Power Systems for Enhanced Sustainability A Review; IEEE Access: Piscataway, NJ, USA, 2022. [Google Scholar]
  25. Khan, H.W.; Usman, M.; Hafeez, G.; Albogamy, F.R.; Khan, I.; Shafiq, Z.; Khan, M.U.A.; Alkhammash, H.I. Intelligent Optimization Framework for Efficient Demand-Side Management in Renewable Energy Integrated Smart Grid; IEEE Access: Piscataway, NJ, USA, 2021; pp. 124235–124252. [Google Scholar]
  26. Kumar, K.K.P.; Soren, N.; Latif, A.; Das, D.C.; Hussain, S.M.S.; Al-Durra, A.; Ustun, T.S. Day-ahead DSM-integrated hybrid-power-management-incorporated CEED of solar thermal/wind/wave/BESS system using HFPSO. Sustainability 2022, 14, 1169. [Google Scholar] [CrossRef]
  27. Revathi, R.; Senthilnathan, N. Hybrid optimization approach for power scheduling with PV-battery system in smart grids. Energy 2024, 290, 130051. [Google Scholar]
  28. Tamilselvan, K.; Kaliappan, L.; Kandasamy, P. An Optimal Selection and Placement of Distributed Energy Resources Using Hybrid Genetic Local Binary Knowledge Optimization. J. Circuits, Syst. Comput. 2023, 32, 2350307. [Google Scholar] [CrossRef]
  29. Toro, J.A.R.; Saquicela, J.L.S.; Suryasa, I.W.; Solórzano, L.E.H.; Cervantes, X.L.G.; Quiñónez, B.F.C. Optimal scheduling of renewable energy resources in energy management systems using hybrid genetic algorithm and particle swarm optimization. Acta Innov. 2024, 52, 19–27. [Google Scholar] [CrossRef]
  30. Almazroi, A.A.; Hassan, C.A.U. Nature-inspired solutions for energy sustainability using novel optimization methods. PLoS ONE 2023, 18, e0288490. [Google Scholar] [CrossRef] [PubMed]
  31. Alsadie, D. Advancements in heuristic task scheduling for IoT applications in fog-cloud computing challenges and prospects. PeerJ Comput. Sci. 2024, 10, e2128. [Google Scholar] [CrossRef]
  32. Balavignesh, S.; Kumar, C.; Sripriya, R.; Senjyu, T. An enhanced coati optimization algorithm for optimizing energy management in smart grids for home appliances. Energy Rep. 2024, 11, 3695–3720. [Google Scholar] [CrossRef]
  33. Khan, A.N.; Rizwan, A.; Ahmad, R.; Kim, D.H. An OCF-IoTivity enabled smart-home optimal indoor environment control system for energy and comfort optimization. Internet Things 2023, 22, 100712. [Google Scholar] [CrossRef]
  34. Li, C.; Chen, L. Optimization for energy-aware design of task scheduling in heterogeneous distributed systems a meta-heuristic based approach. Computing 2024, 106, 2007–2031. [Google Scholar] [CrossRef]
  35. Prum, P.; Charoen, P.; Khan, M.A.; Bayati, N.; Charoenlarpnopparut, C. Energy management scheme for optimizing multiple smart homes equipped with electric vehicles. Energies 2024, 17, 254. [Google Scholar] [CrossRef]
  36. Raza, A.; Jingzhao, L.; Ghadi, Y.; Adnan, M.; Ali, M. Smart home energy management systems: Research challenges and survey. Alex. Eng. J. 2024, 92, 117–170. [Google Scholar] [CrossRef]
  37. Xu, W.; Tu, J.; Xu, N.; Liu, Z. Predicting daily heating energy consumption in residential buildings through integration of random forest model and meta-heuristic algorithms. Energy 2024, 301, 131726. [Google Scholar] [CrossRef]
  38. Jindal, A.; Bhambhu, B.S.; Singh, M.; Kumar, N.; Naik, K.; Naik, S. A heuristic-based appliance scheduling scheme for smart homes. IEEE Trans. Ind. Informatics 2020, 16, 3242–3255. [Google Scholar] [CrossRef]
  39. Maraveas, C.; Asteris, P.G.; Arvanitis, K.G.; Bartzanas, T.; Loukatos, D. Application of Bio and Nature-Inspired Algorithms in Agricultural Engineering. Arch. Comput. Methods Eng. 2023, 30, 1979–2012. [Google Scholar] [CrossRef]
  40. Ahmad, A.; Khan, A.; Javaid, N.; Hussain, H.M.; Abdul, W.; Almogren, A.; Alamri, A.; Niaz, I.A. An Optimized Home Energy Management System with Integrated Renewable Energy and Storage Resources. Energies 2017, 10, 549. [Google Scholar] [CrossRef]
Figure 1. Statistics of electricity generation of renewable energy sources.
Figure 1. Statistics of electricity generation of renewable energy sources.
Computers 14 00149 g001
Figure 2. SH intelligent features [6].
Figure 2. SH intelligent features [6].
Computers 14 00149 g002
Figure 3. A smart distribution network.
Figure 3. A smart distribution network.
Computers 14 00149 g003
Figure 4. SH architecture overview.
Figure 4. SH architecture overview.
Computers 14 00149 g004
Figure 5. Our proposed algorithm flow chart.
Figure 5. Our proposed algorithm flow chart.
Computers 14 00149 g005
Figure 6. A flowchart illustrating the operation of the proposed ANFIS feedback algorithm.
Figure 6. A flowchart illustrating the operation of the proposed ANFIS feedback algorithm.
Computers 14 00149 g006
Figure 7. (a) Solar irradiance; (b) daily temperature forecast; (c) battery charging; (d) calculated and estimated generation of solar RSER; (e) RTP signal.
Figure 7. (a) Solar irradiance; (b) daily temperature forecast; (c) battery charging; (d) calculated and estimated generation of solar RSER; (e) RTP signal.
Computers 14 00149 g007
Figure 8. (a) Optimizing costs in microgrids. (b) Microgrid energy savings. (c) Comparison of hourly electricity costs. (d) Benefits of load management. (e) Microgrid Strategies for load management. (f) Peak load control in microgrid. (g) Carbon emissions for Condition 1. (h) Carbon emissions for Condition 2. (i) Carbon emissions for Condition 3.
Figure 8. (a) Optimizing costs in microgrids. (b) Microgrid energy savings. (c) Comparison of hourly electricity costs. (d) Benefits of load management. (e) Microgrid Strategies for load management. (f) Peak load control in microgrid. (g) Carbon emissions for Condition 1. (h) Carbon emissions for Condition 2. (i) Carbon emissions for Condition 3.
Computers 14 00149 g008aComputers 14 00149 g008b
Figure 9. (a) Microgrid distribution of load. (b) Condition 1: PAR. (c) Condition 2: PAR (d) Condition 3: PAR.
Figure 9. (a) Microgrid distribution of load. (b) Condition 1: PAR. (c) Condition 2: PAR (d) Condition 3: PAR.
Computers 14 00149 g009
Figure 10. (a) Condition 3: cost minimization. (b) Condition 2: cost minimization. (c) Condition 1: cost minimization. (d) Energy consumption in microgrid system.
Figure 10. (a) Condition 3: cost minimization. (b) Condition 2: cost minimization. (c) Condition 1: cost minimization. (d) Energy consumption in microgrid system.
Computers 14 00149 g010
Table 1. Comparison between traditional grid and smart grid [19,20].
Table 1. Comparison between traditional grid and smart grid [19,20].
InfrastructureTraditional GridSmart Grid
Electrical systemCentralized production.
Energy flows from the utility to the customers in only one direction.
Decentralized production. The utility and its consumers exchange energy in both directions.
Absence of PowerInadequate storage capacity and a centralized design lead to high power losses.Significantly lowers the power losses caused by DGs at the distribution level; in other words, DGs eliminate communication system losses.
System of information An outdated monitoring and metering system. SCADA with an advanced metering and monitoring system (AMI).
System of communication Technology that is wired.Both wireless and wired technologies.
ESSThere are pump hydro-power plants for storage.Makes it easier to integrate scattered ESSs.
RSERsComprises dispatchable RESs (hydro-power plants) in the main system.Gives RSERs (such as solar, wind, tidal, geothermal and biomass energy) decentralized control.
Self-repairResponds to prevent additional harm. The focus is on safeguarding assets after system malfunctions.Automatically detects and responds to both current and potential situations. Prevention is the main focus.
Asset optimizationInadequate integration of scarce operational data with technology and procedures for asset management. Time-based upkeep.Grid technologies are closely linked with asset management procedures to efficiently manage costs and assets. Condition-based upkeep.
Engagement of consumersCustomers are not properly involved in DSM and DR activities. Offers net metering, dynamic pricing and other incentive-based programs.
Quality of PowerJust concentrates on minimizing disruptions and failures.Assures electrical quality so that delicate electronics equipment and devices run smoothly.
Table 2. Comparison of home energy systems and SG energy management techniques.
Table 2. Comparison of home energy systems and SG energy management techniques.
MethodDomainTargeted GoalResultsObservations
LP [32]REMSsLower the PAR and electricity expensesDuring off-peak hours, the ESS is charged, and during peak hours, it is discharged.With this approach, no RSERs are used.
ILP [33]RSERsLower peak loads and electricity billsIncorporating RSERs significantly reduces electricity costs and peak loads.ESSs and UC are not factored into the optimization.
MILP [34]Integration of RSERs, OHEMSs and grid systemsMinimize costs and the PARAchieves a reduction in electricity costs and the PAR.Not feasible for small-scale residential users.
PSO-ANN and LSA-ANN [35]Appliance scheduling and OHEMSsCompare LSA-ANN with PSO-ANN to reduce energy costsLSA-ANN outperforms PSO-ANN, significantly reducing electricity costs.Does not address UC or PAR reductions.
PSO, K-WDO, and WDO [36]Appliance schedulingOptimize UC and lower energy costsK-WDO delivers the best balance between UC and cost.RESs are underutilized in this method.
RL [37]Fully automated energy management systemsOptimize appliance operation times and lower the PARReduces expenses and prevents the creation of new peaks.Does not consider RSERs or UC in optimization.
GARenewable Energy Management SystemsLower electricity costs and the PARClusters appliances to prevent the formation of new peaks.RSERs are ignored, and UC is compromised.
PSO and GA [38]Appliance schedulingOptimize appliance operation times to cut costsGA-based scheduling uses less computing power and saves money.Minimizing electricity costs involves trade-offs with UC.
Table 3. Classification of household appliances based on load shift ability.
Table 3. Classification of household appliances based on load shift ability.
Shiftable LoadsNon-Shiftable Loads
Washing machinePersonal computers
Air-conditioningCCTV
Clothes dryerMicrowave oven
DishwasherTelevision
Table 4. Computation cost evaluation of the proposed and existing techniques.
Table 4. Computation cost evaluation of the proposed and existing techniques.
AlgorithmsIterationsTime Complexity (s)Convergence Rate
GA200150110
BFO200180130
WDO20017095
BPSO200160120
GmPSO20013085
Table 5. Algorithm parameters.
Table 5. Algorithm parameters.
AlgorithmsParametersValues
GAMax. iterations200
Size of population500
Zn → Crossover rate0.1
Mn → Mutation rate0.8
N → Number of elites10
BPSONumber of reruns200
Size of swarm500
Vmax → Maximum velocity4
Vmin → Minimum velocity−4
Xf → Inertia weight upper bound1
XD → Inertia weight lower bound0.6
Z1 → Cognitive component4
Z2 → Social component3
WDONumber of reruns200
Quantity of individuals500
DimMin → Minimum dimension boundary−6
Vmin → Minimum velocity7
Vmax → Maximum velocity−0.4
SL → Local search factor0.2
N → Number of dimensions3
G → Gravitational constant10
ᾳ → Air resistance coefficient0.3
BFOMaximum generation200
Se → Total bacteria in population24
Sr → Reproducing bacteria7
SL(i) → Swim length for bacterium i5
Ss → Number of steps30
Sn → Number of nutrients2
L(i) → Step size of bacterium i0.01
Ped → Elimination and dispersal probability0.5
θ → Chemotaxis step size0.3
Table 7. Carbon emission comparison for Condition 1.
Table 7. Carbon emission comparison for Condition 1.
AlgorithmCarbon Emissions (Kg)Difference (Kg)Reduction (%)
Unscheduled300--
WDO2703010%
BPSO83.08216.9272%
GA96.92203.0867.6%
BFO2406020%
GmPSO69.23230.7776.9%
Table 8. PAR for Condition 1.
Table 8. PAR for Condition 1.
AlgorithmPARDifferenceReduction (%)
Unscheduled4.5--
BPSO3.21.328.8%
WDO31.533.33%
BFO2.81.737.77%
GA3.5122.2%
GmPSO2.22.351.1%
Table 9. Cost reduction for Condition 2.
Table 9. Cost reduction for Condition 2.
AlgorithmCost (Cents)Difference (Cents)Reduction (%)
Unscheduled500--
BFO30020040%
WDO5015030%
BPSO40010020%
GA4505010%
GmPSO20030060%
Table 10. PAR for Condition 2.
Table 10. PAR for Condition 2.
AlgorithmPARDifferenceReduction (%)
Unscheduled0.5--
GA0.450.0510%
WDO0.30.240%
BPSO0.460.048%
GmPSO0.20.360%
Table 11. Carbon emissions for Condition 2.
Table 11. Carbon emissions for Condition 2.
AlgorithmCarbon Emissions (Kg)Difference (Kg)Reduction (%)
Unscheduled250.00--
BFO187.562.525%
WDO208.341.716.68%
BPSO158.391.736.68%
GA166.783.333.32%
GmPSO150.0015060%
Table 12. Cost reduction for Condition 3.
Table 12. Cost reduction for Condition 3.
AlgorithmCost (Cents)Difference (Cents)Decrease (%)
Unscheduled500--
GA40010020%
BFO33017034%
WDO35015030%
BPSO38012024%
GmPSO30020040%
Table 13. PAR reduction for Condition 3.
Table 13. PAR reduction for Condition 3.
AlgorithmPARDifferenceReduction (%)
Unscheduled2.8--
GA2.50.310.7%
BFO1.8135.7%
BPSO2.20.621.42%
GmPSO1.21.657.1%
Table 14. Carbon emissions for Condition 3.
Table 14. Carbon emissions for Condition 3.
AlgorithmCarbon Emissions (Kg)Difference (Kg)Reduction (%)
Unscheduled208.3--
WDO187.520.89.9%
BPSO166.741.619.9%
BFO179.828.513.6%
GA170.837.518%
GmPSO158.35024%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Khan, Y.A.; Kateb, F.; Rehman, A.U.; Khan, A.S.; Khan, F.Q.; Jan, S.; Alkhathlan, A.N. Enhancing Smart Home Efficiency with Heuristic-Based Energy Optimization. Computers 2025, 14, 149. https://doi.org/10.3390/computers14040149

AMA Style

Khan YA, Kateb F, Rehman AU, Khan AS, Khan FQ, Jan S, Alkhathlan AN. Enhancing Smart Home Efficiency with Heuristic-Based Energy Optimization. Computers. 2025; 14(4):149. https://doi.org/10.3390/computers14040149

Chicago/Turabian Style

Khan, Yasir Abbas, Faris Kateb, Ateeq Ur Rehman, Atif Sardar Khan, Fazal Qudus Khan, Sadeeq Jan, and Ali Naser Alkhathlan. 2025. "Enhancing Smart Home Efficiency with Heuristic-Based Energy Optimization" Computers 14, no. 4: 149. https://doi.org/10.3390/computers14040149

APA Style

Khan, Y. A., Kateb, F., Rehman, A. U., Khan, A. S., Khan, F. Q., Jan, S., & Alkhathlan, A. N. (2025). Enhancing Smart Home Efficiency with Heuristic-Based Energy Optimization. Computers, 14(4), 149. https://doi.org/10.3390/computers14040149

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop