Open Access
This article is

- freely available
- re-usable

*Energies*
**2018**,
*11*(9),
2304;
doi:10.3390/en11092304

Article

QoE-Aware Smart Home Energy Management Considering Renewables and Electric Vehicles

^{1}

Department of Electrical Engineering, School of Electrical and Computer Engineering, College of Engineering, Chang Gung University, Guishan District, Taoyuan 33302, Taiwan

^{2}

Neuroscience Research Center, Chang Gung Memorial Hospital, Linkou, Guishan District, Taoyuan City 33305, Taiwan

^{*}

Author to whom correspondence should be addressed.

Received: 13 August 2018 / Accepted: 30 August 2018 / Published: 1 September 2018

## Abstract

**:**

To reduce the peak load and electricity bill while preserving the user comfort, a quality of experience (QoE)-aware smart appliance control algorithm for the smart home energy management system (sHEMS) with renewable energy sources (RES) and electric vehicles (EV) was proposed. The proposed algorithm decreases the peak load and electricity bill by deferring starting times of delay-tolerant appliances from peak to off-peak hours, controlling the temperature setting of heating, ventilation, and air conditioning (HVAC), and properly scheduling the discharging and charging periods of an EV. In this paper, the user comfort is evaluated by means of QoE functions. To preserve the user’s QoE, the delay of the starting time of a home appliance and the temperature setting of HVAC are constrained by a QoE threshold. Additionally, to solve the trade-off problem between the peak load/electricity bill reduction and user’s QoE, a fuzzy logic controller for dynamically adjusting the QoE threshold to optimize the user’s QoE was also designed. Simulation results demonstrate that the proposed smart appliance control algorithm with a fuzzy-controlled QoE threshold significantly reduces the peak load and electricity bill while optimally preserving the user’s QoE. Compared with the baseline case, the proposed scheme reduces the electricity bill by 65% under the scenario with RES and EV. Additionally, compared with the method of optimal scheduling of appliances in the literature, the proposed scheme achieves much better peak load reduction performance and user’s QoE.

Keywords:

dynamic electricity prices; electric vehicles (EV); fuzzy control; home energy management system (HEMS); peak load; quality of experience (QoE); renewable energy## 1. Introduction

To reduce energy consumption and carbon emission, several works had proposed various energy management systems [1,2] for smart grids [3] or smart homes [4]. The main purposes of original energy management systems are to reduce the energy consumption, peak load, and electricity cost. One popular method for reducing the peak load and electricity cost is shifting the power demand from peak to off-peak hours. For example, the results in [5] revealed that 37.9% of refrigerator’s demand in peak period can be shifted to other periods and annual electricity bills for customers can be reduced by 11.4%. In [6], the authors investigated the cost minimization problem in which the electrical appliances allow different levels of delay tolerance. The work [7] evaluated the performance of a wireless sensor network (WSN)-based in-home energy management (iHEM) application whose objective is to minimize the energy expenses of the consumers and reduce the peak load of the household by scheduling the appliances. Additionally, Collotta et al. [8,9] proposed a bluetooth low energy (BLE) and fuzzy-based solution for the smart energy management system, in which the consumer is involved in the choice of switching on/off of home appliances, to reduce peak load and electricity bill by shifting the appliance’s operation. However, shifting the power demand may degrade the user comfort. For instance, delaying the starting time of an electric oven or a microwave oven to shift the power demand, the user may become hungry because of deferring his mealtime, resulting in user comfort degradation. On the contrary, delaying the starting time of an automatic washing machine, the user comfort may be rarely degraded. Hence, related problems such as the user comfort, reduction in electricity bill, electrical appliance scheduling, and required addition of renewable energy sources (RES) had been surveyed in [3]. Undoubtedly, a modern home energy management system (HEMS) must not only decrease the power consumption and electricity bill, but also preserve the user comfort.

To resolve the defects of conventional HEMSs, Floris et al. [10] presented a quality of experience (QoE)-aware HEMS. The degree of satisfaction perceived, in terms of the mean opinion score (MOS) [11], when the starting times of appliances are delayed was investigated using subjective tests which are time-consuming and costly. To evaluate the user comfort under power demand shifting, Chen et al. [12] introduced the concept of operational comfort level (OCL) and proposed the OCL models for several smart appliances. Additionally, the authors in [12] proposed a min-max load scheduling (MMLS) algorithm in order to minimize the peak-to-average ratio (PAR) while optimizing the OCL of users. The inconvenience experienced by users when decreasing the power consumption is necessary under the control of an HEMS was also studied in [13]. Another study [14] proposed an intelligent HEMS algorithm for residential demand response applications and investigated the impact of the HEMS operation on the user comfort. However, there is still no cost-efficient QoE evaluation method proposed in the literature for an HEMS. Thus, in order to efficiently evaluate the user’s QoE, several QoE mapping functions for delay-tolerant appliances and the heating, ventilation, and air conditioning (HVAC) were introduced in [15]. Additionally, a QoE-aware smart appliance control algorithm was designed in [15] to effectively reduce the peak load and electricity bill while guaranteeing the user’s QoE never less than a given threshold.

In the work [15], a fixed QoE threshold was used so that the setting of the QoE threshold becomes an annoying problem. For example, in a season of high power demand, lowering the QoE threshold significantly reduces the peak load and electricity bill. However, in a season of low power demand, lowering the QoE threshold has a little effect on the reduction of peak load and electricity bill while significantly degrading the user’s QoE. Therefore, how to determine a proper QoE threshold for the smart appliance control algorithm to perform well under various scenarios of different power demands becomes a challenging issue. It is well known that fuzzy logics have been popularly used in an HEMS [16,17,18]. Thus, one aim of this paper is to design a fuzzy logic controller to dynamically adjust the QoE threshold for the proposed smart appliance control algorithm performing well under different profiles of power demands.

Recently, the development and deployment of microgrids with RES have been rapidly increasing all over the world. The contribution of renewable energy to the energy supply has also been increasing. However, to ensure the operation of microgrids, microgrids are always connected to the main grid [19,20]. Therefore, it is necessary to take RES into consideration in designing a smart home energy management system (sHEMS). On the other hand, electric vehicles (EV) have been regarded as an effective way to reduce carbon emissions. Additionally, EV batteries can be used for regulating the grid demand by properly scheduling EV charging and discharging to decrease the user’s electricity bill [21,22,23]. Thus, designing a QoE-aware smart appliance control algorithm for the sHEMS considering RES and EV is mandatory.

To summarize, the main contributions of this work are fourfold. First, several QoE mapping functions for delay-tolerant appliances and HVAC are derived to efficiently evaluate the user comfort. Second, a QoE-aware smart appliance control algorithm is proposed to reduce the peak load and electricity bill while preserving the user’s QoE. Thirdly, a fuzzy logic controller for dynamically setting the QoE threshold is designed to resolve the trade-off problem between the user’s QoE and reduction performance of peak load and electricity bill. Finally, the effects of power allocation of RES and EV batteries on the peak load, electricity bill, and user’s QoE are evaluated as well.

The rest of this paper is organized as follows. Section 2 describes the architecture of a smart microgrid system. Section 3 introduces the classification of home appliances, defines the QoE functions of home appliances, and describes the designed QoE-aware smart appliance control algorithm for the sHEMS with RES and EV. Section 4 presents the fuzzy logics and inference rules to dynamically adjust the QoE threshold. Section 5 evaluates and compares the performance of the proposed QoE-aware smart appliance control algorithm and other existing schemes. Finally, the concluding remarks are made in Section 6.

## 2. Smart Microgrid System

In this paper, the smart microgrid system that consists of home appliances, EV, RES, energy storage system, smart meter, smart home network, and sHEMS, as shown in Figure 1, is considered. RES such as photovoltaics (PV) and wind turbines can generate the power that is temporarily stored in the storage system for later use. The smart meter records and monitors the power consumption of home appliances. The smart home network may include the TCP/IP network, WSN, and power line communication network [24]. The sHEMS collects (1) the environmental data such as temperature and illuminance sensed by sensors, (2) statuses of home appliances, storage system, and EV, and (3) power consumption information from the smart meter via the smart home network. In Figure 1, the red lines indicate the power lines while the green lines indicate the network path to the Internet. As to the dashed lines, they represent logical communication connections. However, practical communications must be accomplished using physical communication links and diverse communication protocols such as the wired Ethernet, Wi-Fi, power line communication, and ZigBee protocols can be used. The purpose of the sHEMS is to properly control the operations of home appliances to optimize the energy usage and electricity bill subject to the user comfort constraint. To optimize the energy usage and electricity bill, a smart appliance control algorithm must be designed for the sHEMS.

As mentioned above, the goal of the sHEMS is to minimize the energy usage and electricity bill while preserving the user comfort. It is well known that shifting the starting times of electrical appliances from peak to off-peak hours can reduce the peak load. However, deferring the starting times of home appliances may degrade the user’s QoE. While the impact of deferring the starting times of home appliances on the user’s QoE is rarely studied in the literature. Hence, this paper proposes several QoE functions for efficiently evaluating the user comfort and a QoE-aware smart appliance control algorithm for the sHEMS with RES and EV to reduce the peak load and electricity bill while preserving the user’s QoE. Additionally, a fuzzy logic controller for dynamically adjusting the QoE threshold to improve the user’s QoE is designed.

## 3. QoE-Aware Smart Appliance Control Algorithm for sHEMS

In this section, the classification of home appliances is first introduced. Next, the QoE mapping functions are designed to evaluate the user comfort. Finally, a QoE-aware smart appliance control algorithm is proposed for the sHEMS with RES and EV.

#### 3.1. Classification of Home Appliances

Similarly to our previous work [15], home appliances are categorized into three types: delay-tolerant, delay-intolerant with essential load, and delay-intolerant with flexible load [6,12,13]. For delay-tolerant appliances, their starting times can be shifted from peak to off-peak hours to decrease the peak load. Such delay-tolerant appliances consist of the electric oven, microwave oven, water heater, dishwasher, washing machine, clothes dryer, and so on. For appliances of delay-intolerant with essential load, shifting their starting times is not allowed and the variation of their working loads among various states is usually negligible. The LED bulbs, fans, TV, and computers are this type of delay-intolerant with essential load. As for the appliances of delay-intolerant with flexible load, users may change their working states to save energy consumption and shave peak load. This type of appliances consists of the water dispenser, refrigerator, and HVAC. The classification of home appliances is listed in Table 1.

#### 3.2. Evaluation of the User Comfort

Although shifting the starting times of electrical appliances from peak hours to off-peak hours can reduce the peak load, the user comfort may be degraded. To study the impact of deferring the starting time of a home appliance on the user comfort, Floris et al. [10] conducted subjective tests on users’ satisfactions about deferring starting times of home appliances. The degree of the user comfort is evaluated by means of mean opinion score (MOS) [11]. MOS is a measure used in the domain of QoE and telecommunications engineering, representing overall quality of a stimulus or system. It is usually expressed as a rational number, typically in the range of 1 to 5, which maps ratings between Bad and Excellent to numbers between 1 and 5, as shown in Table 2. In [10], time-consuming and costly subjective tests were used and only some discrete data points ($delay$, $MOS$) were investigated so that the applications of their results are limited. Hence, in this paper, cost-efficient QoE mapping functions are proposed to evaluate the user comfort. According to the findings in [25], most of the QoE functions behave like an exponential function. Hence, the following piecewise exponential function
is adopted to be the QoE mapping function of delay d (in hours) for most electrical appliances. Given the piecewise exponential QoE mapping function in Equation (1) and the data points (d, $MOS$) obtained in [10] using questionnaires of subjective tests, the decaying exponent parameter a and the offset parameter b can be easily obtained using the nonlinear regression approach. The derived parameters a and b for various electrical appliances in weekdays and days off are listed in Table 3. The derived QoE mapping functions for the dishwasher and washing machine are plotted in Figure 2a,b.

$$\mathrm{QoE}\left(d\right)=\{\begin{array}{cc}5,\hfill & d\le b,\hfill \\ 5{e}^{-a(d-b)},\hfill & d>b,\hfill \end{array}$$

As to the setting of target temperature of HVAC, it is determined by the QoE mapping function of temperature for HVAC. In this work, the Gaussian-like function
is employed to represent the QoE function of the target temperature T (${}^{\circ}$C) for HVAC [15]. Notably, in this paper, the most comfortable temperature is assumed to be 27 ${}^{\circ}$C. Additionally, the QoE is assumed to be 3 when T is 24 or 30 ${}^{\circ}$C. The designed QoE mapping function for the HVAC is plotted in Figure 2c. Notably, users may change the most comfortable temperature 27 ${}^{\circ}$C to any other values they prefer, but the corresponding parameters in Equation (2) must be refitted.

$$\mathrm{QoE}\left(T\right)=5{e}^{-0.0568{(T-27)}^{2}}$$

#### 3.3. Proposed QoE-Aware Smart Appliance Control Algorithm

Figure 3 plots the flowchart of the proposed QoE-aware smart appliance control algorithm for the sHEMS with RES and EV. ${P}^{L}\left(t\right)$ represents the total load of currently working appliances in the considered microgrid system at time t. ${P}^{G}\left(t\right)$ is the power supplied by the main grid at time t. ${P}^{R}\left(t\right)$ is the generating power of the RES at time t. ${P}^{B}\left(t\right)$ and ${P}^{E}\left(t\right)$ are the available output powers of the RES storage system and EV battery, respectively, at time t. ${P}_{i}$ indicates the working power of Appliance i. According to Figure 3, if the generating power ${P}^{R}\left(t\right)$ of RES is enough for supporting the requested appliance and all working appliances, the requested Appliance i starts immediately and no battery and grid power is required; otherwise, the energy stored in the storage system of RES may be required. If the generating power ${P}^{R}\left(t\right)$ plus the available output power ${P}^{B}\left(t\right)$ of the RES storage system is not less than ${P}^{L}\left(t\right)+{P}_{i}$, the requested appliance starts immediately; otherwise, the state of the EV battery is checked. If the generating power ${P}^{R}\left(t\right)$ plus the available output power ${P}^{B}\left(t\right)+{P}^{E}\left(t\right)$ of the RES storage system and EV battery is not less than ${P}^{L}\left(t\right)+{P}_{i}$, the requested appliance also starts immediately; otherwise, the grid power is required. That is, the RES generating power has the highest use priority while the grid power has the lowest use priority. Such a strategy is to minimize the electricity bill resulting from the energy consumption supplied by the grid. Notably, the state of the EV battery depends on the schedule of charging and discharging, and state of charge (SOC) of the battery.

Subsequently, the starting time of the requested appliance is determined according to the type of the requested appliance and the present time slot. If the requested appliance belongs to the type of delay-intolerant with essential load or the power consumption ${P}^{G}\left(t\right)+{P}_{i}$ supplied by the main grid is less than the power constraint ${P}_{0}$, the requested appliance starts immediately. When a request for starting a delay-tolerant appliance arrives at peak hours and the power consumption ${P}^{G}\left(t\right)+{P}_{i}$ is larger than the power constraint ${P}_{0}$, the starting of the appliance may be deferred if the resulting QoE is not below the threshold value. When a request for starting a delay-tolerant appliance arrives at off-peak hours and the power consumption ${P}^{G}\left(t\right)+{P}_{i}$ is larger than ${P}_{0}$, the starting of the requested appliance is shifted to the time slot with the lowest price if the resulted QoE is not below the threshold value. The allowable delay time d of the starting of an electrical appliance relies on the QoE mapping function, QoE threshold, power consumption supplied by the grid, and power constraint. Notably, the longer the delay time is, the worse the user’s QoE is.

When a request for turning on the HVAC arrives, the HVAC is turned on immediately. At peak hours, the HVAC is set to the highest target temperature ${T}^{*}$, where QoE$\left({T}^{*}\right)=Threshold$, in order to reduce the working load. During the off-peak hours, if the power consumption ${P}^{G}\left(t\right)+{P}_{i}$ exceeds the power constraint ${P}_{0}$, the HVAC is set to a higher target temperature T, where 27 ${}^{\circ}$C < T≤T${}^{*}$, in order to meet the power constraint; otherwise, the HVAC is set to the normal target temperature 27 ${}^{\circ}$C to achieve the most comfortable environment for users.

## 4. Fuzzy-Controlled QoE Threshold

According to the experiments, a higher QoE threshold used in the proposed QoE-aware smart appliance control algorithm usually results in a better user’s QoE, but a worse reduction in peak load and electricity bill. However, in the case of low power demand, increasing the QoE threshold barely degrades the reduction performance in the peak load and electricity bill while significantly enhancing the user’s QoE. Therefore, the QoE threshold must adapt to different power demands. For example, the QoE threshold decreases as the power demand grows while it increases as the power demand decreases. Hence, in this paper, both the instantaneous power consumption and the power deviation are used to determine a proper QoE threshold. Since the fuzzy theory has been well applied to several different applications [16,17,18], this paper proposes a fuzzy logic control method to determine a proper QoE threshold for the proposed smart appliance control algorithm in Figure 3.

First, the instantaneous power consumption $P\left(t\right)$ supplied by the main grid at time slot t and the power deviation ${P}_{D}\left(t\right)$ between $P\left(t\right)$ and ${P}_{ave}\left(t\right)$ are used to decide the optimal QoE threshold $Threshold\left(t\right)$. Notably, in this paper, the power consumption is observed at the beginning of each time slot of equal length. The average power consumption ${P}_{ave}\left(t\right)$ is computed based on the power consumption of the M most recent time slots using the moving average. That is,

$${P}_{ave}\left(t\right)=\frac{1}{M}\sum _{k=t-M+1}^{t}P\left(k\right).$$

The power deviation ${P}_{D}\left(t\right)$ is defined by

$${P}_{D}\left(t\right)=P\left(t\right)-{P}_{ave}\left(t\right).$$

According to the fuzzy logic theory, the membership functions of $P\left(t\right)$, ${P}_{D}\left(t\right)$, and the variation $\Delta Q$ of QoE threshold must be first defined. This paper categorizes the instantaneous power consumption $P\left(t\right)$ into three levels: H (High), M (Medium), and L (Low). The membership function of $P\left(t\right)$ is given by Figure 4a. The power deviation ${P}_{D}\left(t\right)$ is categorized into P (Positive), Z (Zero), and N (Negative), and its membership function is given by Figure 4b. Similarly, $\Delta Q$ is categorized into P (Positive), Z (Zero), and N (Negative), and its membership function is plotted in Figure 4c.

Second, the Mamdani-type inference rules [26] to determine the variation $\Delta Q$ of QoE threshold based on $P\left(t\right)$ and ${P}_{D}\left(t\right)$ are listed in Table 4. The AND operation in the fuzzy logic rule A AND B is defined to be the minimum value of two operands ${\mu}_{1}\left({x}_{1}\right)$ and ${\mu}_{2}\left({x}_{2}\right)$, where ${\mu}_{i}\left({x}_{i}\right)$ is a membership function and ${x}_{1}\in A$ and ${x}_{2}\in B$. In the aggregation process, the max rule is used in deriving the overall output. After the aggregation process, the centroid of area is computed in the defuzzification process to find a crisp value $\Delta Q$. Finally, the QoE threshold $Threshold\left(t\right)$ at time slot t is determined as follows:

$$Threshold\left(t\right)=Threshold(t-1)+\Delta Q.$$

The block diagram of the proposed fuzzy logic controller is plotted in Figure 5.

## 5. Numerical Results

In this paper, C++ simulation programs are created to evaluate the performance of the proposed QoE-aware smart appliance control algorithm with a fuzzy-controlled QoE threshold. The considered delay-tolerant appliances consist of the electric oven, microwave oven, dishwasher, and washing machine. The appliances of delay-intolerant with essential load consist of the TV, fan, computer, and LED bulb. The appliances of delay-intolerant with flexible load consist of the refrigerator, water dispenser, and HVAC. However, in simulations, the refrigerator and water dispenser are treated as the background appliances that are always ON (switching randomly between working and standby states) and no control on them. The mean working powers of the refrigerator and water dispenser are 70 W and 660 W, respectively. The reasons for treating the refrigerator and water dispenser as always ON are explained as follows. First, the refrigerator must always keep its inside temperature within a predefined range such as 3 to 7 ${}^{\circ}$C to keep the food, fruits, and vegetables fresh. If the refrigerator is turned OFF, its inside temperature may increase over the predefined range, maybe resulting in corruption of food, fruits, and vegetables. Second, users may need to have warm or hot water for drink or making tea at any time. If the water dispenser is turned OFF, users may not have warm or hot water for use at their request instant. Therefore, almost all the households keep the refrigerators and water dispensers always ON.

As to the operation of HVAC, it is governed by the following Equation [27]:
where ${T}_{in}\left(t\right)$ and ${T}_{out}\left(t\right)$ are the indoor and outdoor temperatures, respectively, at time t. The curve of outdoor temperature ${T}_{out}\left(t\right)$ used in simulations is given in Figure 6 [28]. The parameter $\tau $ is the sampling interval of temperature. E is an increasing factor of temperature per unit time and is set to 0.0408 [27] in simulations. The parameter $\varphi $ is the cooling efficiency of HVAC in working state and is set to 3.8 in simulations. Finally, ${S}_{HVAC}\left(t\right)$ is the status of HVAC at time t. Whenever the indoor temperature ${T}_{in}\left(t\right)$ is higher than the target temperature of the HVAC by 1 ${}^{\circ}$C, the HVAC starts working, i.e., ${S}_{HVAC}\left(t\right)=1$, to cool down until ${T}_{in}\left(t\right)$ is less than the target temperature. Whenever ${T}_{in}\left(t\right)$ is less than the target temperature, the HVAC stays at the standby state of ${S}_{HVAC}\left(t\right)=0$ until ${T}_{in}\left(t\right)$ exceeds the target temperature by 1${}^{\circ}$ C again. Under the QoE-aware smart control, the target temperature of the HVAC is automatically controlled by Equation (2) and the power constraint ${P}_{0}=2200$ W. The moving average parameter M for calculating the average power consumption ${P}_{ave}\left(t\right)$ in Equation (3) is set to 5. In simulations, the length of each time slot is set to 15 min. Other simulation parameters of home appliances in summer and winter are given in Table 5, where the request arrival time during a given interval follows the uniform distribution. The simulation parameters of home appliances in summer and winter are almost similar except that fans and HVAC are always OFF in winter. The duration of 100 days is simulated both in summer and winter, and the average of the measured parameter is taken over 100 days. According to the dynamic electricity prices [29] given by Figure 7, the peak period ranges from 12:00 p.m. to 7:00 p.m.

$${T}_{in}\left(t\right)={T}_{in}(t-1)+\tau \{E[{T}_{out}\left(t\right)-{T}_{in}\left(t\right)]-\varphi {S}_{HVAC}\left(t\right)\},$$

To investigate the performance of the proposed QoE-aware smart appliance control algorithm, the scenario without RES nor EV is first considered. Figure 8 shows the average power consumption in a day. The baseline in Figure 8 represents the scheme without any control on home appliances or HVAC, i.e., a home appliance is turned on immediately at its request arrival instant and the HVAC always has the setting of normal target temperature (27 ${}^{\circ}$C). The optimal scheduling of appliances presented in [30] is also simulated for comparison. In the optimal scheduling scheme, the HVAC always has the setting of normal target temperature (27 ${}^{\circ}$C) and the starting times of delay-tolerant appliances are determined by solving the optimization problem of minimizing the electricity bill, subject to the constraint that the starting time of an appliance must fall within the interval between the request arrival instant t and $t+{d}^{*}$, where QoE$\left({d}^{*}\right)=3$. In the proposed with fixed QoE TH scheme, the proposed QoE-aware smart appliance control algorithm is simulated and the QoE threshold is fixed at 3. As to the proposed with fuzzy-controlled QoE TH scheme, the proposed QoE-aware smart appliance control algorithm and the fuzzy-controlled QoE threshold are used. In Figure 8, whether using a fixed or fuzzy-controlled QoE threshold, the peak load significantly decreases under the proposed QoE-aware smart appliance control algorithm, relative to the baseline case. As to the optimal scheduling scheme, it is worse than the proposed QoE-aware smart appliance control algorithm in terms of the peak load reduction performance.

The cumulative electricity bill per day is plotted in Figure 9. In summer days, the proposed QoE-aware smart appliance control algorithm achieves a lower electricity bill, compared with the baseline and optimal scheduling schemes. In winter days, the optimal scheduling scheme achieves the lowest electricity bill. However, the difference among various schemes is very minor because the power consumption in winter days is lower. Thus, sacrificing a user’s QoE may not significantly reduce the electricity bill in winter days. To further evaluate the performance of different schemes, the user’s QoE under different schemes must be compared.

Figure 10 shows the user’s average QoE under different schemes. The average QoE $Qo{E}_{ave}\left(t\right)$ at time slot t is computed according to the following equation:
where $N\left(t\right)$ is the number of requested appliances (delay-tolerant appliances or HVAC) waiting to start or in ON at time slot t. For a delay-tolerant appliance, QoE${}_{i}\left(t\right)$ equals 5 if the appliance has been ON and is computed according to Equation (1) if the appliance is waiting to start. For the HVAC, QoE${}_{i}\left(t\right)$ is computed according to Equation (2). According to Figure 10, the proposed QoE-aware smart appliance control algorithm with a fuzzy-controlled QoE threshold significantly outperforms the other schemes in terms of the user’s QoE, especially in winter days. Although the optimal scheduling scheme achieves the lowest electricity bill in winter days, compared with other schemes, it results in the worst user’s QoE.

$${\mathrm{QoE}}_{ave}\left(t\right)=\frac{1}{N\left(t\right)}\sum _{i=1}^{N\left(t\right)}{\mathrm{QoE}}_{i}\left(t\right),$$

According to the results in Figure 8, Figure 9 and Figure 10, the following conclusions are made. First, compared with the baseline and optimal scheduling schemes, the proposed QoE-aware smart appliance control algorithm effectively shaves the peak load, demonstrating that the proposed control algorithm with a power constraint ${P}_{0}$ is outstanding. Second, compared to the QoE-aware smart appliance control algorithm with a fixed QoE threshold scheme, the one with a fuzzy-controlled QoE threshold can achieve similar reduction performance in the peak load and electricity bill while significantly improving the user’s QoE, demonstrating the superiority of the proposed fuzzy logic controller for setting the QoE threshold. Finally, compared with the baseline and optimal scheduling schemes, the proposed control algorithm for the HVAC can further decrease the electricity bill in summer days.

Next, the scenario of the sHEMS with RES and EV in summer days is simulated. In this section, the renewable energy sources only include the PV. Twelve solar panels of CS6P-255P of 255 W are assumed in simulations. The generating power profile of these 12 solar panels is shown in Figure 11 [31]. The schedule of EV charging and discharging is given in Table 6, where the SOC constraint of the EV battery is set to the range of 60% to 100%. Since the lowest electricity price is at 3:00 according to Figure 7, the charging of EV battery starts randomly between 2:00 to 3:00. The discharging of EV battery to the load starts at the time of the highest electricity price, i.e., 15:00. The capacity of the EV battery is assumed to be 16 kWh and the charging power rate is set to 1.92 kW/hr [32]. The setting of other simulation parameters is similar to the first scenario without RES nor EV. The baseline in Figure 12 is the case that does not consider PV or EV and does not have any appliance control. The proposed QoE-aware smart appliance control algorithm with a fuzzy-controlled QoE threshold is considered in Figure 12.

Figure 12a shows the power consumption supplied by the grid under different schemes. Obviously, PV significantly reduces the power consumption supplied by the grid during the periods with high electricity prices, yielding a significant reduction in the electricity bill, as shown in Figure 12b. Additionally, observing the difference between the proposed scheme with PV and the proposed scheme with PV+EV in Figure 12b,c, one can conclude that a proper scheduling for EV battery charging and discharging results in a further reduction in the electricity bill and an increase in the user’s QoE. Compared with the baseline case, the proposed scheme reduces the electricity bill by 65% under the scenario with RES and EV. Compared with the optimal scheduling scheme, the proposed scheme achieves better reduction performance in the peak load and electricity bill, and has a better user’s QoE, as shown in Figure 12. Finally, compared with Figure 8, Figure 9 and Figure 10, the electricity bill and power consumption supplied by the grid significantly decrease while the user’s QoE substantially increases under the scenario with PV or EV, as shown in Figure 12. All these results validate the superiorities of the proposed QoE-aware smart appliance control algorithm with a fuzzy-controlled QoE threshold and the power allocation strategy for RES and EV batteries.

## 6. Conclusions

In this work, a QoE-aware smart appliance control algorithm with a fuzzy-controlled QoE threshold for the sHEMS with RES and EV to shave the peak load, reduce the electricity bill, and optimize the user’s QoE is proposed. According to the simulation results, the proposed QoE-aware smart appliance control algorithm significantly decreases the peak load and electricity bill. Additionally, the designed fuzzy logic controller for dynamically adjusting the QoE threshold can optimize the user’s QoE while preserving the reduction performance in the peak load and electricity bill. Moreover, under the case of high power demand, the proposed QoE-aware smart appliance control algorithm with a fuzzy-controlled QoE threshold significantly outperforms the optimal scheduling scheme [30] in terms of the peak load, electricity bill, and user’s QoE. Finally, numerical results show that integrating RES and EV into the sHEMS and properly scheduling the EV charging and discharging can further decrease the peak load and electricity bill, and improve the user’s QoE. Compared with the baseline case, the proposed scheme reduces the electricity bill by 65% under the scenario with RES and EV, demonstrating that the proposed scheme is outstanding.

## Author Contributions

M.L. designed the QoE functions, QoE-aware smart appliance control algorithm, and wrote the paper; G.-Y.L. designed the QoE-aware smart appliance control algorithm and experiments, and analyzed data; H.-R.C. designed the fuzzy logics of QoE threshold and experiments, and analyzed data; C.-W.J. designed the QoE-aware smart appliance control algorithm and did the curve fittings of QoE functions.

## Funding

This research received no external funding.

## Acknowledgments

This work was supported by the Ministry of Science and Technology of Taiwan under Grants MOST105-2221-E-182-055 and MOST106-2221-E-182-012-MY2 .

## Conflicts of Interest

The authors declare no conflict of interest.

## References

- Pipattanasomporn, M.; Kuzlu, M.; Rahman, S. An algorithm for intelligent home energy management and demand response analysis. IEEE Trans. Smart Grid
**2012**, 3, 2166–2173. [Google Scholar] [CrossRef] - Shareef, H.; Ahmed, M.S.; Mohamed, A.; AI Hassan, E. Review on home energy management system considering demand responses, smart technologies, and intelligent controllers. IEEE Access.
**2018**, 6, 24498–24509. [Google Scholar] [CrossRef] - Mahmood, A.; Ahmad, A.; Javed, H.T.; Mehmood, Z.; Khan, Z.A.; Qasim, U.; Javaid, N. A survey of ’user comfort’ in home energy management systems in smart grid. In Proceedings of the IEEE 29th International Conference on Advanced Information Networking and Applications Workshops, Gwangiu, South Korea, 24–27 March 2015; pp. 36–43. [Google Scholar]
- Chen, S.; Liu, T.; Gao, F.; Ji, J.; Xu, Z.; Qian, B.; Wu, H.; Guan, X. Butler, not servant: A human-centric smart home energy management system. IEEE Commun. Mag.
**2017**, 55, 27–33. [Google Scholar] [CrossRef] - Zehir, M.A.; Bagriyanik, M. Demand side management by controlling refrigerators and its effects on consumers. Energy Convers. Manag.
**2012**, 64, 238–244. [Google Scholar] [CrossRef] - Chen, S.; Shroff, N.B.; Sinha, P. Heterogeneous delay tolerant task scheduling and energy management in the smart grid with renewable energy. IEEE J. Select. Areas Commun.
**2013**, 31, 1258–1267. [Google Scholar] [CrossRef] - Erol-Kantarci, M.; Mouftah, H. Wireless sensor networks for cost-efficient residential energy management in the smart grid. IEEE Trans. Smart Grid
**2011**, 2, 314–325. [Google Scholar] [CrossRef] - Collotta, M.; Pau, G. A solution based on bluetooth low energy for smart home energy management. Energies
**2015**, 8, 11916–11938. [Google Scholar] [CrossRef] - Collotta, M.; Pau, G. A novel energy management approach for smart homes using bluetooth low energy. IEEE J. Select. Areas Commun.
**2015**, 33, 2988–2996. [Google Scholar] [CrossRef] - Floris, A.; Meloni, A.; Pilloni, V.; Atzori, L. A QoE-aware approach for smart home energy management. In Proceedings of the IEEE Global Communications Conference (GLOBECOM), San Diego, CA, USA, 6–10 December 2015; pp. 1–6. [Google Scholar]
- International Telecommunication Union. Mean Opinion Score (MOS) Terminology; International Telecommunication Union: Geneva, Switzerland, March 2003. [Google Scholar]
- Chen, Y.; Lin, R.P.; Wang, C.; Groot, M.D.; Zeng, Z. Consumer operational comfort level based power demand management in the smart grid. In Proceedings of the 3rd IEEE PES Innovative Smart Grid Technologies Europe (ISGT Europe), Berlin, Germany, 14–17 October 2012; pp. 1–6. [Google Scholar]
- Hassan, N.U.; Khalid, Y.I.; Yuen, C.; Huang, S.; Pasha, M.A.; Wood, K.L.; Kerk, S.G. Framework for minimum user participation rate determination to achieve specific demand response management objectives in the residential smart grids. Int. J. Electri. Power Energy Syst.
**2016**, 74, 91–103. [Google Scholar] [CrossRef] - Kuzlu, M. Score-based intelligent home energy management (HEM) algorithm for demand response applications and impact of HEM operation on customer comfort. IET Gener. Transm. Distrib.
**2015**, 9, 627–635. [Google Scholar] [CrossRef] - Li, M.; Jiang, C.-W. QoE-aware and cost-efficient home energy management under dynamic electricity prices. In Proceedings of the IEEE ninth International Conference on Ubiquitous and Future Networks (ICUFN 2017), Milan, Italy, 4–7 July 2017; pp. 498–501. [Google Scholar]
- Ali, D.; Yohanna, M.; Puwu, M.I.; Garkida, B.M. Long-term load forecast modelling using a fuzzy logic approach. Pac. Sci. Rev. A Nat. Sci. Eng.
**2016**, 18, 123–127. [Google Scholar] [CrossRef] - Aviles, D.A.; Pascual, J.; Marroyo, L.; Sanchis, P.; Guinjoan, F. Fuzzy logic-based energy management system design for residential grid-connected microgrids. IEEE Trans. Smart Grid
**2016**, 9, 530–543. [Google Scholar] [CrossRef] - Bissey, S.; Jacques, S.; Le Bunetel, J.-C. The fuzzy logic method to efficiently optimize electricity consumption in individual housing. Energies
**2017**, 10, 1701. [Google Scholar] [CrossRef] - Rahbar, K.; Xu, J.; Zhang, R. Real-time energy storage management for renewable integration in microgrid: An off-line optimization approach. IEEE Trans. Smart Grid
**2015**, 6, 124–137. [Google Scholar] [CrossRef] - Rahbar, K.; Chai, C.C.; Zhang, R. Energy cooperation optimization in microgrids with renewable energy integration. IEEE Trans. Smart Grid
**2018**, 9, 1482–1493. [Google Scholar] [CrossRef] - Berthold, F.; Ravey, A.; Blunier, B.; Bouquain, D.; Williamson, S.; Miraoui, A. Design and development of a smart control strategy for plug-in hybrid vehicles including vehicle-to-home functionality. IEEE Trans. Transp. Electrif.
**2015**, 2, 168–177. [Google Scholar] [CrossRef] - Mouli, G.R.C.; Kefayati, M.; Baldick, R.; Bauer, P. Integrated PV charging of EV fleet based on energy prices, V2G and offer of reserves. IEEE Trans. Smart Grid
**2017**. [Google Scholar] [CrossRef] - Yang, Y.; Jia, Q.-S.; Deconinck, G.; Guan, X.; Qiu, Z.; Hu, Z. Distributed coordination of EV charging with renewable energy in a microgrid of buildings. IEEE Trans. Smart Grid
**2017**. [Google Scholar] [CrossRef] - Li, M.; Lin, H.-J. Design and implementation of smart home control systems based on wireless sensor networks and power line communications. IEEE Trans. Ind. Electron.
**2015**, 62, 4430–4442. [Google Scholar] [CrossRef] - Li, M.; Lee, C.-Y. A cost-effective and real-time QoE evaluation method for multimedia streaming services. Telecommun. Syst.
**2015**, 59, 317–327. [Google Scholar] [CrossRef] - Mamdani, E.H.; Assilian, S. An experiment in linguistic synthesis with a fuzzy logic controller. Int. J. Man-Mach. Stud.
**1975**, 7, 1–13. [Google Scholar] [CrossRef] - Arora, M.; Chanana, S.; Kumar, A. A real time price based optimal scheduling mechanism for centralized air conditioning load. In Proceedings of the 2014 Eighteenth National Power Systems Conference (NPSC), Guwahati, India, 18–20 December 2014; pp. 1–5. [Google Scholar]
- Central Weather Bureau of Taiwan. Available online: http://e-service.cwb.gov.tw/HistoryDataQuery/index.jsp (accessed on 29 July 2016).
- Real-Time Pricing. Available online: https://www2.ameren.com/RetailEnergy/RtpDownload (accessed on 13 July 2016).
- Setlhaolo, D.; Xia, X.; Zhang, J. Optimal scheduling of household appliances for demand response. Electr. Power Syst. Res.
**2014**, 116, 24–28. [Google Scholar] [CrossRef] - Vilar, B.; Affonso, C.M. Residential energy management system with photovoltaic generation using simulated annealing. In Proceedings of the 2016 13th International Conference on the European Energy Market (EEM), Porto, Portugal, 6–9 June 2016; pp. 1–6. [Google Scholar]
- Mozafar, M.R.; Amini, M.H.; Moradi, M.H. Innovative appraisement of smart grid operation considering large-scale integration of electric vehicles enabling V2G and G2V systems. Electr. Power Syst. Res.
**2018**, 154, 245–256. [Google Scholar] [CrossRef]

**Figure 6.**Outdoor temperature [28].

**Figure 7.**Dynamic electricity prices [29].

**Figure 11.**Generating power of 12 solar panels [31].

Type | Home Appliances |
---|---|

Delay-Tolerant | Dishwasher, Washing Machine, Clothes Dryer, Water Heater, Electric Oven, Microwave Oven |

Delay-Intolerant with Essential Load | TV, LED Bulb, Fan, Computer |

Delay-Intolerant with Flexible Load | Refrigerator, Water Dispenser, HVAC |

**Table 2.**Definitions of MOS [11].

MOS | Quality | Impairment |
---|---|---|

5 | Excellent | Imperceptible |

4 | Good | Perceptible but not annoying |

3 | Fair | Slight annoying |

2 | Poor | Annoying |

1 | Bad | Very annoying |

Appliances | Weekdays | Days Off | ||
---|---|---|---|---|

a | b | a | b | |

Dishwasher (DW) | 0.242 | 0.100 | 0.343 | 0.420 |

Water heater (WH) | 0.677 | 0.392 | 0.018 | 0 |

Electric oven (EO) | 0.694 | 0 | 0.676 | 0.405 |

Microwave oven (MO) | 0.910 | 0.470 | 0 | 0 |

Washing machine (WM) | 0.495 | 0.491 | 0 | 0 |

Clothes dryer (CD) | 0.356 | 0.906 | 0.601 | 0.933 |

Rule | P(t) | AND | P${}_{\mathit{D}}$(t) | $\mathbf{\Delta}$Q |
---|---|---|---|---|

1 | H | AND | P | N |

2 | H | AND | Z | N |

3 | H | AND | N | Z |

4 | M | AND | P | N |

5 | M | AND | Z | Z |

6 | M | AND | N | P |

7 | L | AND | P | Z |

8 | L | AND | Z | P |

9 | L | AND | N | P |

Appliances | Power (W) | Summer | Winter | ||
---|---|---|---|---|---|

Request Arrival Time | Working Time (h) | Request Arrival Time | Working Time (h) | ||

TV | 150 | 7:00–8:00 | 4 | 7:00–8:00 | 4 |

13:00–14:00 | 13:00–14:00 | ||||

18:00–20:00 | 18:00–20:00 | ||||

Fan | 80 | 7:00–8:00 | 3 | - | - |

13:00–14:00 | - | - | |||

Computer | 450 | 11:00–13:00 | 12 | 11:00–13:00 | 12 |

LED bulbs | 200 | 6:30–7:00 | 18 | 6:30–7:00 | 18 |

LED bulbs | 50 | Poisson: rate 0.2/h | 4 | Poisson: rate 0.2/h | 4 |

Dishwasher | 1300 | 9:00–10:00 | 1 | 9:00–10:00 | 1 |

15:00–16:00 | 15:00–16:00 | ||||

19:00–19:30 | 19:00–20:30 | ||||

Electric oven | 1500 | 7:00–9:00 | 0.5 | 7:00–9:00 | 0.5 |

14:00–16:00 | 14:00–16:00 | ||||

17:00–18:00 | 17:00–18:00 | ||||

Microwave oven | 1000 | 7:00–9:00 | 0.2 | 7:00–9:00 | 0.2 |

12:00–14:00 | 12:00–14:00 | ||||

18:00–19:00 | 18:00–19:00 | ||||

Washing machine | 500 | 20:30–21:30 | 2 | 20:30–21:30 | 2 |

HVAC/Bedroom | 1380 | 21:00–22:00 | 11 | - | - |

HVAC/Living Room | 1380 | 10:30–11:00 | 10 | - | - |

Battery Status | Start Time | SOC Constraint of Battery |
---|---|---|

Charging | Random over (2:00, 3:00) | ≤100% |

Discharging | 15:00 | ≥60% |

© 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).