Next Article in Journal
Design of a Current Sensing System with TIA Gain of 160 dBΩ and Input-Referred Noise of 1.8 pArms for Biosensor
Previous Article in Journal
Better Data from AI Users: A Field Experiment on the Impacts of Robot Self-Disclosure on the Utterance of Child Users in Home Environment
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Improved Optimization Function to Integrate the User’s Comfort Perception into a Smart Home Controller Based on Particle Swarm Optimization and Fuzzy Logic

by
Jonatha Rodrigues da Costa
1,*,
Giovanni Cordeiro Barroso
1,
Darielson Araújo de Souza
2,
Josias Guimarães Batista
3,
Antonio Barbosa de Souza Junior
4,
Clauson Sales do Nascimento Rios
1,
Felipe José de Sousa Vasconcelos
1,
José Nogueira do Nascimento Júnior
1,
Ismael de Souza Bezerra
1,
Alanio Ferreira de Lima
1,
Killdary Aguiar de Santana
1 and
José Raimundo de Oliveira Júnior
1
1
Department of Electrical Engineering, Federal University of Ceará, Fortaleza 60455-760, CE, Brazil
2
Department of Computing, Federal Institute of Ceará—IFCE Campus Maracanaú, Maracanaú 61925-315, CE, Brazil
3
Department of Industry, Federal Institute of Ceará—IFCE Campus Fortaleza, Fortaleza 60040-215, CE, Brazil
4
Department of Industry, Federal Institute of Ceará—IFCE Campus Maracanaú, Maracanaú 61925-315, CE, Brazil
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(6), 3021; https://doi.org/10.3390/s23063021
Submission received: 17 February 2023 / Revised: 4 March 2023 / Accepted: 8 March 2023 / Published: 10 March 2023
(This article belongs to the Section Intelligent Sensors)

Abstract

:
Scheduling residential loads for financial savings and user comfort may be performed by smart home controllers (SHCs). For this purpose, the electricity utility’s tariff variation costs, the lowest tariff cost schedules, the user’s preferences, and the level of comfort that each load may add to the household user are examined. However, the user’s comfort modeling, found in the literature, does not take into account the user’s comfort perceptions, and only uses the user-defined preferences for load on-time when it is registered in the SHC. The user’s comfort perceptions are dynamic and fluctuating, while the comfort preferences are fixed. Therefore, this paper proposes the modeling of a comfort function that takes into account the user’s perceptions using fuzzy logic. The proposed function is integrated into an SHC that uses PSO for scheduling residential loads, and aims at economy and user comfort as multiple objectives. The analysis and validation of the proposed function includes different scenarios related to economy–comfort, load shifting, consideration of energy tariffs, user preferences, and user perceptions. The results show that it is more beneficial to use the proposed comfort function method only when the user requires SHC to prioritize comfort at the expense of financial savings. Otherwise, it is more beneficial to use a comfort function that only considers the user’s comfort preferences and not their perceptions.

1. Introduction

In the context of DR, measures to improve the energy chain unfold in two areas: SSM and DSM. The first area aims to improve the generation, transmission, and distribution of electricity, while the second area aims to influence the consumption profile of households through flexible tariffs or energy bonuses [1,2]. In this scenario, residential consumers can use SHC to take advantage of benefits offered by the utility [3]. These controllers may incorporate residential comfort functions [4,5,6], residential load modeling, the ability to manage DG associated with ESS and EV, and a collaborative/non-collaborative relationship between prosumers [7].
Specifically in the context of DSM, residential load modeling and user comfort modeling are presented as one of the important measures that fulfill the above idea. The modeling of residential loads is based on the successive measurement of electrical quantities associated with residential loads connected to the electrical power grid. On the other hand, user comfort modeling comprises both psychological and physiological issues. Psychological issues are related to the perceptions of human beings regarding their way of feeling and responding to stimuli felt by the human body [8,9]. This perception can affect an individual’s mood, emotional state, and satisfaction to the point of making them uncomfortable in an environment that is pleasant for others, or vice versa [10,11,12]. Physiological aspects, on the other hand, are related to well-being and safety, including thermal comfort, visual comfort, and ambient air quality [13,14,15]. In this context, the modeling of residential loads and user comfort may be characterized by disjoint metrics resulting from different indices and by parameters separated from each other.
However, for a multi-objective SHC system, residential loads can have their own comfort index that measures overall comfort associated with load scheduling and user preferences. Thus, it is reasonable to state that there is a gap in the SHC state-of-the-art in relation to the incorporation of the user’s perception of residential comfort, as the algorithms proposed for managing residential loads associated with SHC do not consider the user’s perceptions of comfort, only their preferences. Therefore, an SHC in this configuration can present comfort indices that do not correspond to the user’s real perception of comfort, because users’ psychological factors can influence their perception by making them feel uncomfortable in a comfortable environment, or vice versa [10]. This may result in the need for manual intervention using the SHC for comfort adjustment, thereby increasing electrical energy consumption and leading to loss of controller configuration, comfort, accuracy SHC, and other benefits offered by the utility. In addition, from the perspective of home office work discomfort can influence user/worker productivity. For these reasons, this article proposes the modeling of a comfort function that considers user perceptions of comfort through fuzzy logic.
The proposed comfort function is integrated in an SHC that uses PSO, as in [6,16], to schedule residential loads with the dual aims of savings and comfort. The analysis and validation of the proposed function includes different scenarios in terms of economy–comfort and load displacement, and considers energy tariffs, preferences, and user perceptions.
Thus, in this paper we present the following contributions to the state-of-the-art with respect to residential comfort analysis:
  • Introduction of a novel residential comfort function capable of integrating parameters associated with the human perceptions of temperature and humidity.
  • Proposal of a multi-objective SHC model that relies on PSO for scheduling the residential loads and integrates the proposed comfort function by means of fuzzy logic.
  • Improvement of thermal comfort indices, the computational burden of the SHC, the efficiency of the PSO algorithm, and economic savings when compared with [5,6].
  • Supplemental materials are available at GitHub® through https://github.com/jonathacosta/SmartGrid/tree/main/SCC-SHC accessed on 15 February 2023, including our source codes, allowing prompt reproduction of our results.
The remainder of this paper is organized as follows. Section 2 presents a brief overview of the theoretical foundations. Section 3 presents the PSO and fuzzy principles along with mathematical definitions. Section 4 describes the methodology used to obtain the new comfort function and incorporate it into the SHC. Section 5 presents the results obtained under different scenarios. A discussion of the results is presented in Section 6 and our final considerations are provided in Section 7.

2. Demand-Side Management (DSM)

Among the main programs, DSM stands out for the response to tariff signals offered by the concessionaire to end users, namely, time of use (ToU), CPP, and RTP [17].
In the Brazilian market, the “white-rate tariff” is a term for the ToU [18] tariff, as mentioned above. In this scenario, low-voltage consumers, called group B, are informed of energy costs based on the day and time of consumption. Such a program provides significant benefits by shifting consumption from peak periods to times when the power distribution system has spare capacity.
Table 1 shows that as more loads are shifted to off-peak hours and the difference between the CT and ToU tariffs increases, the savings for consumers increase as well [18]. Otherwise, high energy costs may be incurred, which is why the use of SHC is of great importance in this scenario.

2.1. Smart Home Controllers (SHCs)

The basic definition of an SHC is based on the search for the best control strategy, considering the aim of scheduling household loads while minimizing cost and maximizing user comfort. In this sense, residential loads have a certain degree of flexibility in terms of duty cycle, power, and on/off times. These loads are part of the SH, which can exchange information with the utility in response to DSM programs. At this point, it should be emphasized that SH can include DG units with or without ESS and EV to support the optimization goal of SHC.
In this context, in [19] the authors proposed a simulation tool for residential load scheduling that uses BPSO and allows the proper selection of DG units. However, the mathematical model proposed in the tool does not have a function to evaluate the comfort level of the user. In [3], an event-based controller using PLI was proposed to minimize residential energy consumption while considering the variation in the electricity tariff and the average consumption of scheduled loads. However, the authors did not present user comfort metrics, and the proposed approach does not minimize consumption peaks, although it uses a restriction to avoid network overloads.
The authors of [20,21] employed a mixed PLI to optimize the operation of residential loads based on consumer preferences, which were modeled in a LSSW of HVAC equipment. The assessed scenarios combined DG, ESS, and EV. In [21], a thermodynamic comfort model for thermostatic loads was incorporated using PL, where the index PMV was used to measure the thermal comfort. However, this work did not consider users’ overall comfort level.
The authors of [22,23] proposed a dynamic parameter selection process to improve the performance of an HVAC controller designed for load balancing within one hour. However, comfort and consumption optimization functions were not included. In [24], MINLP is used while taking into account changes in the intraday energy price and user preferences for thermal comfort in order to minimize daily energy demand. The authors did not examine overall user comfort and did not consider perceived user comfort.
A linear aggregation function with weights in the range [ 0 , 1 ] was incorporated into the load controller by [4] to correlate the consumption and comfort functions; however, the authors did not address the perceived comfort of users. In [25], the authors introduced an equilibrium parameter and a comfort model using the Taguchi loss function. Their proposal relied on convex optimization, and they studied the rate scenarios DAP and FP. The authors did not investigate the users’ perceptions of comfort, and only considered pre-configured devices registered in the SHC. The controller evaluated in [26] used GA, TLBO and PL for load scheduling, and the authors proposed a novel optimization technique based on the combination of GA and TLBO called TLGO. The proposed technique presents a satisfaction cost index depending on the time and the type of device, where the user can use more electrical devices or use the same device for a longer period of time. The studies reported in [27] present a HIC based on the ubiquity concept to enable SH users to monitor residential loads and comfort metrics, as well as consumption and operational status related to fault alerts. The multi-objective controller described in [5] includes a global comfort function, while the work in [4] evaluated multiple fare scenarios associated with DG. The authors considered the user’s comfort level based on the relevance of each load to that comfort level. In these proposals, however, the relevance of loads was fixed and the user’s perceived comfort was not examined. The method introduced in [5] was reformulated in [28] by implementing an GA-based approach. This approach applies Pareto front approximation for the automatic definition of load activation, and provides users with options that take into account both energy consumption and residential comfort. According to [6], it is possible to associate PSO with the mathematical formulation of comfort and loads presented in [5], where it is possible to obtain a maximum consumption threshold modeled by an inverted Gaussian. Similarly, the authors did not address the users’ perception of comfort.
In [29], the authors presented a residential controller that optimizes the charge/discharge scheduling of local ESS in SH with DG. It aims to it aims to minimize the cost of local energy consumption and to enable the negotiation of excess energy between prosumers and between prosumers and the utility. The authors used an objective function based on MOGWO and compared the results with PSO. The authors did not, however, examine users’ perceptions of comfort
A coordination model involving a central controller, local controllers, and residential consumers was proposed in [30]. The hierarchical structure aims to reduce demand through competitive bidding. The authors modeled the consumption of air conditioners and water heaters using an optimization function based on MILP to minimize the total reward at each bid.
Lyapunov optimization based on virtual queue stability was used in [31]. This work aimed to study energy optimization in an SH with HVAC loads, DG, and an ESS. The proposed algorithm creates and controls four queues for indoor temperature, EV charging, and ESS. System implementation is conducted by convex programming. The authors of [32] employed fuzzy logic to determine the estimated comfort and cost–benefit ratio in the near future, and used SA to determine the set point for battery bank operation. Their focus was on maximizing the monthly profit from energy sales. In turn, the study of [33] presented an algorithm that reduces the consumption of HVAC loads. The resulting energy surplus enables the adjustment of the illuminance set point in the range of 0–500 lux to maximize the user’s visual comfort. Both of the aforementioned controls are based on fuzzy logic. Finally, in [34], a controller was proposed that considers DG and ESS to minimize the energy cost. The load schedule results from the proposed algorithm based on ACO and TLBO. The authors studied comfort in terms of thermal and lighting preferences, though they did not consider the user’s perception of comfort.

2.2. Comfort Analysis Strategy

Based on the above, residential comfort can be classified into three categories: (a) Conceptual Comfort, which refers to the wellbeing of the user and the perception of less effort. An example is communication and automatic configuration between IoT devices in a SH that does not require specific knowledge of the user, as in [27]. This type of convenience, by its nature, does not include quantitative metrics. (b) Individual Comfort, which refers to the individual measurement of variables associated with user comfort, that is, temperature, humidity, lighting, noise, and CO 2 levels, among others. Each variable can be analyzed under a specific metric, as in [31,33]. (c) Global Comfort, which refers to a numerical index representing the sum of the individual values associated with each residential load enabled according to user preferences, as in [5,6,25]. In this category, each residential load ( x i ) is assigned a value representing its relevance level ( w i ), which can be expressed as the sum of the products x i × w i .
Therefore, in the above research, it can be seen that while SHC algorithms and current strategies consider user preferences in comfort modeling, they do not consider user perceptions. The user’s comfort preferences have been considered when registering household loads in the SHC. On the other hand, the user’s comfort perception varies throughout the day and has not been considered in SHC modeling in the aforementioned studies. It is worth noting that the present work focuses on global comfort and aims at optimizing residential comfort by incorporating user-perceived variables, as presented in Section 1.

3. Computer Algorithms

The strategy presented in this paper to minimize energy costs and maximize user comfort consists of a combination of fuzzy logic and PSO. Below, we present the mathematical bases of PSO and fuzzy logic.

3.1. Principles of Fuzzy Sets and Logic

In classical (binary) logic, sets of elements are called crisp sets, in which it is defined that an element x belongs to a set A and not to a set B, as there is a well-defined boundary to decide whether or not element x belongs to a set, expressed in the following form: x A and x B . In fuzzy logic, sets of elements are called fuzzy sets, in which an element x has degrees of membership in set A and in set B, as the above boundary decision is not present. The degree of membership of an element x in a set A is expressed by μ A ( x ) , which takes continuous values in the closed interval [0,1]. Thus, an element x can be described by its degrees of membership in the sets A and B, which can be expressed, for example, in the form μ A ( x ) = 0.4 and μ B ( x ) = 0.6 .
Furthermore, a linguistic variable is defined as a variable with values that are fuzzy set names (U), as in: U = {“cold”, “warm”, “very warm”}. Such variables refer to the diffuse human perception of measurable quantities, and may contain sets of logical connectives (negation: no, connectives: and/or), modifiers (much, little), and delimiters (such as parentheses). Otherwise, a function that establishes a relationship between crisp values and linguistic variables is defined as a membership function ( u A ( x ) ) in fuzzy logic. This function expresses a priori knowledge about the behavior of the analyzed variable, and can be modeled by a profile: triangular, trapezoidal, Gaussian, generalized bell, sigmoidal, and others.
That said, mapping an input with a precise value (not fuzzy through membership functions ( u A ( x ) ) is called the fuzzy step of a fuzzy inference system. This step processes rules in the linguistic variables to derive the output values, for which it uses the Mamdani or Takagi–Sugeno method. The first method returns a fuzzy set, while the second method returns a real number. The last step of a fuzzy inference system is called defuzzification, and can use one of several well-known methods for it: centroid, first-of-maximum, maximum criterion, angle bisector, and others.

3.1.1. Formalization

Formally, a fuzzy set A in X is expressed as a set of ordered pairs, as shown in Equation (1):
A = { x , u A ( x ) w i t h x X }
where u A ( x ) is the membership function of element x in the set A, which can be represented as in Equation (2) (triangular format), Equation (3) (trapezoidal format), Equation (4) (Gaussian format), and Equation (5) (generalized bell format):
t r i m f ( x ; a , b , c ) = m a x m i n x a b a , c x c b , 0
t r a p m f ( x ; a , b , c , d ) = m a x m i n x a b a , 1 , d x d c , 0
g a u s s m f ( x ; a , b , c ) = e 1 2 x c σ 2
g b e l l m f ( x ; a , b , c ) = 1 1 + | x c b | 2 b
where: a , b , c , d represent the limits of functions on the Cartesian axis.

3.1.2. Application

Fuzzy inference systems are commonly used in many areas, for example, in the development of control systems for air conditioners, washing machines and vehicles. In the context of this paper, Figure 1 illustrates human perception of temperature in a residential environment. The fuzzy degrees of membership in the “cold” and “warm” groups are represented by the hatching in the Gaussian lines in the center of the figure.
Note that the values corresponding to a temperature of ≈30 °C (a value of crisp on the ordinate axis) have a membership degree of μ m i l d ( t e m p ) 0.26 , μ h o t ( t e m p ) 0.49 , and μ v e r y _ h o t ( t e m p ) 0.15 on the vertical axis (‘membership degree’).
Direct application of LF and a link to the implemented source codes are provided for those involved in related research. In addition, modeling and control of systems with fuzzy logic are available in [35,36], and introductory concepts and a methodology for applying fuzzy logic in the context of DSM are presented in [37,38,39].

3.2. Principles of Particle Swarm Optimization (PSO)

PSO is a stochastic population optimization method based on the collective behavior of animals, such as schooling or flocking [40]. The algorithm attempts to find the best solution using a population of particles, and is based on the concept of collective cooperation.

3.2.1. Formalization

In the PSO algorithm, a particle i is defined by the vectors of position ( x i ), velocity ( v i ), and best individual position ( p b e s t ). A vector with the best global position of the swarm ( g b e s t ) is the result of the individual positions of n particles in this cluster. The elements of the algorithm are:
A
        The population of particles
x i
        The position vector of particle i in the solution space
f 
        The evaluation function (fitness)
v i
        The velocity vector of particle i
p b e s t i
 The vector of the best individual position of particle i, corresponding to the position in the search space where particle i has the best value of the evaluation function f.
g b e s t i
 The vector of the best global position of the particle, corresponding to the position that provides the best value among all p b e s t i .

3.2.2. Updating Individual and Global Best Positions

Equations (6) and (7) specify how p b e s t i and g b e s t i are updated with time t. The swarm is said to have n particles in a minimization problem of a function f such that:
p b e s t i ( t + 1 ) = p b e s t i ( t ) if f ( p b e s t i ( t ) ) f ( x i ( t + 1 ) ) x i ( t + 1 ) if f ( p b e s t i ( t ) ) > f ( x i ( t + 1 ) ) ,
g b e s t i ( t + 1 ) = m i n { f ( p b e s t ) , f ( g b e s t ) } ,
where p b e s t { p b e s t 0 ,   p b e s t 1 ,   ,   p b e s t n } .

3.2.3. Updating the Velocity and Position of a Particle

In addition, the velocity ( v ) for a particle i is defined by the inertia parameter, the cognitive parameter, and the social parameter. The first (inertia parameter) is the previous velocity of the swarm, which causes the particle to continue to move in the same direction as it already is. The second (cognitive parameter) expresses the particle’s individual experience of where the solution lies, and influences the particle to move to a better position than its current one. The third parameter (social parameter) represents the experience of the swarm, and influences the particle to follow in the direction of its best neighbors. Equations (8) and (9) respectively describe how the velocity and position of the ith particle are updated:
v i ( t + 1 ) = w v i ( t ) + c 1 r 1 ( p b e s t i x i ) + c 2 r 2 ( g b e s t i x i )
x i ( t + 1 ) = x i ( t ) + v i ( t + 1 )
where c 1 and c 2 are positive constants representing the cognitive and social parameters, respectively, the variables r 1 and r 2 are random numbers [ 0 , 1 ] , and w is the inertia weight.

3.2.4. Application

General aspects regarding the development of the PSO algorithm, along with discussion of the constraint factors, inertia weights, dynamic tracking systems, adaptive parameter adjustments, and more, are available in [41,42]. In addition, [16,43,44,45] provide examples of the use of PSO and fuzzy strategies in other applications.

4. Proposed Method: Holistic Architecture

Figure 2 summarizes the results shown up to this point, and shows the user interaction of the SHC model.
Note the first decision block of the flowchart; after loading the user’s preference and perception values, PSO can achieve a tradeoff between savings and comfort using the comfort conventional concept according to user preferences or the new comfort concept according to user perception.

4.1. SHC Structure Diagram

Figure 3 provides an overview of the model proposed in this paper.
The SHC receives information about utility billing (T), residential loads ( L m ), residential load activation preferences ( L m b e s t ), and comfort level ( C L m ). The residential loads considered here ( L m ) include: (a) schedulable loads that can be directly activated by smart outlets at a specified time interval, such as air conditioners, heaters, and pool filter pumps, among others; and (b) non-schedulable loads that cannot be directly controlled, such as multimedia equipment, microwave ovens, toasters, vacuum cleaners, etc. The PSO algorithm is used for multi-objective optimization of schedulable loads. For this purpose, the data comprising the residential loads, consumption profile ( f 1 ), and residential comfort profile ( f 2 ) are modeled, leading to an appreciation of consumption (a), savings (b), and comfort (c) by a day-ahead load schedule (d) considering both asynchronous operation and synchronous operation throughout the same day.

4.2. Mathematical Modeling

The mathematical model of the SHC is represented as a discrete-time system operating at a sampling rate T s that allows the management of controllable and non-controllable loads according to the residential consumption profile. In the proposed approach, the cost function ( f 1 ) and the comfort function ( f 2 ) define the financial savings and the comfort relevance level, respectively, according to Figure 3. Table 2 defines the variables used in the modeling.

4.2.1. Cost Model—f 1

This paper uses the mathematical definitions of residential load at the grid level, as presented in [3]. The mathematical model of residential loads corresponds to Equation (10), considering the following premises: m schedulable loads, N daily samples, and a sampling rate T s , as well as the notation described in Table 2, as follows:
f F c o s t = m = 1 M k = I C m I C m + N m ( P ¯ m [ k ] T s 60 C [ k ] )
subject to the following constraints:
I S m I C m I E m
k = 1 N ( m = 1 M P ¯ m [ k ] ) P k
The constraints in Equation (11) state that the schedule for activation of the m-th load must be within the minimum and maximum flexibility intervals defined by the user, while the loads must not exceed the threshold demand at the k-th time of activation according to the constraints of Equation (12).
The cost function ( f 1 ) defines the economic savings due to SHC. The first and second terms in Equation (13) correspond to the costs resulting from the user preference profile and the SHC scheduling, respectively:
f 1 = m = 1 M i = I B m I B m + N m ( P ¯ m [ i ] T s 60 C [ i ] ) i = I C m I C m + N m ( P ¯ m [ i ] T s 60 C [ i ] )
where f 1 0 , meaning that the schedule proposed by the SHC is accepted by the algorithm as a valid solution for the user.

4.2.2. Comfort Model—f 2

The comfort model proposed in [5] considers the comfort relevance level of a load m as a fixed value and defines user preferences. It takes into account the user’s perception of comfort, for example, in terms of temperature and humidity. Such parameters may change the relevance that the user assigns to a given load m when registering it through the SHC. Considering the above, the second objective function ( f 2 ) defines the relevance of comfort ( C L m ) using fuzzy logic.
For this purpose, the user should register the residential loads that can be scheduled in SHC, as well as the comfort relevance values ( 0 C L m 1 ) and the load onset times in terms of minimum ( I S m ), maximum ( I E m ), and preferred ( I B m ) values. The C L m value of each load is updated using fuzzy logic taking into account the user’s perception of comfort.
Equation (14) represents the comfort function. The first term corresponds to the activation window of a load m with respect to the user’s preferences; thus, this value is used as a reference for calculating the comfort. The second term defines the distance between the time instant ( I C m ) selected by SHC and the time preferred by the user ( I B m ), which is weighted by the comfort relevance of the m-th load.
f 2 = m a x ( I S m I B m , I E m I B m ) C L m I C m I B m
For a given load m with a comfort relevance of C L m = 1 , this parameter takes the maximum value when the SHC’s scheduled time converges with the user’s preferred time ( I C m I B m ). Otherwise, if I C m I S m (or I C m I E m at the other end of the load activation window), the comfort is minimal, as the operation cycle starts at the time farthest from the one the user has specified as their preferred time.

4.2.3. Fuzzification of Comfort Relevance Level

Figure 4 represents the fuzzification process of the comfort relevance level ( C L m ) considering user perception.
The values denoting the user’s perception of temperature and humidity are the inputs of the fuzzy system by means of the linguistic variables τ and υ , respectively. The fuzzy system uses rules to calculate a new relevance value ( ω ) for a load m, then updates the value of C L m from Equation (14).
The values of τ and υ can be loaded automatically or passed to the SHC by the user. In the first case, the proposed algorithm accesses the weather data available at https://pt.weatherspark.com/ and https://tempo.inmet.gov.br/TabelaEstacoes/82397, accessed on 15 February 2023, to load the temperature and humidity values associated with τ and υ , respectively. In the second case, SHC interacts with the user through voice commands to collect information about the user’s temperature and humidity perceptions, then assigns values to the respective variables. The user’s perceptions are fuzzy variables that can be handled with the linguistic variables defined in Table 3. When the user starts interacting with the SHC, a timer is activated to ensure that the first mode of operation is loaded in the event that the process is not completed because the user gives up or times out. The comfort relevance stage update phase ( ω ) is the first stage to be executed by the SHC algorithm. The update from C L m to ω is performed according to the criterion defined by Equation (15), meaning that only the registered loads with priorities close to the maximum relevance value ( C L m = 1.0 ) are activated.
C L m = ω , C L m 0 0.5
where C L m 0 is the initial value of the relevance comfort level of the m-th load registered by the user and ω is the value of the relevance comfort level comprising the fuzzy sets of the user’s perception.

4.3. Comfort Fuzzification Model

The values of C L m obtained from Equation (14) are updated considering fuzzy sets for the perception of thermal comfort ( τ ) and humidity ( υ ), the linguistic variables of which are defined by the corresponding notation and normalized range shown in Table 3.
The linguistic variables of the fuzzy sets were quantitatively distributed using the intuitive method to investigate different combinations between them while considering the following definitions: τ = { t 1 , t 2 , t 3 , t 4 , t 5 } , υ = { υ 1 , υ 2 , υ 3 } . The ranges of linguistic variables for each fuzzy set ( τ , υ , ω ) were determined using Gaussian, trapezoidal, and triangular membership functions such that the thresholds converge with those defined by the corresponding standards of the ABNT (NBR 16401-2/2008) and the ASHRAE [46]. The adjustment of the membership functions and the choice of generators for each membership function were accomplished by considering successive simulations using the exhaustive search method for each function and domain.
The fuzzy rules were created both by directly combining the two input variables and combinations between them. Thus, comfort relevance, that is, the output variable ω , always takes into account the influence of the input variables. Next, we incorporate the following rules.
  • If τ t 2 and υ , or if τ = t 3 and υ = u 3 , then ω = c 1
  • If t 3 τ t 4 and u 1 υ u 2 , then ω = c 2
  • If τ = t 5 and υ , or if τ = t 4 and υ = u 3 , then ω = c 3
It can be observed that the output of the “low” ( c 1 ) comfort level ( ω ) in (1) is when the user considers the ambient temperature as “cold” or “very cold” ( τ t 2 ), regardless of the perceived humidity ( ϵ ). In this way, the rule establishes a relationship between user-perceived temperature and humidity, meaning that it provides the SHC with the flexibility to schedule loads by reducing them ( ω ). The remaining rules follow the same reasoning for creating the inference system.
Figure 5 shows a surface map based on the relationship between user perception and the comfort adjustments made in the SHC.
The user’s comfort level is determined by defuzzification of the temperature and humidity variables perceived by the user. Following the fuzzification rules presented in this section, the surface map in Figure 5 is obtained. It is worth noting that the axes represent temperature, humidity, and comfort. In addition, user perception allows the comfort level to be adjusted even in fuzzy modeling, providing the SHC with the flexibility to reduce energy consumption in residential energy usage contexts.
Figure 6 shows the behavior of the fuzzy set representing the temperature. The domain corresponds to the range between 0 and 40 °C, while the membership function is between 0.0 and 1.0 .
The fuzzy input ‘very cold’ is modeled by a trapezoidal function starting at 0 °C and decreasing from 10 to 18 °C. The fuzzy input ‘cold’ is modeled by a Gaussian function centered at 18 °C with a deviation of 3 °C. The fuzzy input ‘mild’ is modeled by a Gaussian function centered at 25 °C and deviating by 3 °C. The fuzzy input ‘hot’ is modeled by a Gaussian function centered at 35 °C and differing by 4 °C. The fuzzy input ‘very hot’ is modeled by a Gaussian function centered at 38 °C and differing by 4 °C. The shaded areas represent the sets of membership corresponding to the crisp input of 38 °C. This input is represented by the vertical bar on the abscissa axis, for which the projection on the ordinate axis represents its membership in the sets that contain it, that is, μ h o t ( τ ) 0.75 and μ v e r y h o t ( τ ) 1.0 .
Figure 7 shows the behavior of the fuzzy set named ‘humidity’. The domain corresponds to the range between 0 and 100 % of the RH, while the amplitude includes the membership values between 0 and 1.
The ‘low’ input is modeled by a trapezoidal function that starts at 0 and decreases between 40 and 50 % RH. The ‘medium’ input is modeled by a triangular function centered at 55 % RH and bounded between 40 and 70 % RH. The ‘high’ input is modeled by a trapezoidal function that starts at 60, increases to 70% RH, and remains constant at 75 % RH. The shaded area represents the membership set defining the crisp input of 60 % RH. This input corresponds to the vertical bar on the abscissa axis, and its projection on the ordinate axis represents the membership of the sets containing it, that is, μ m e d i u m ( υ ) 0.65 .
Figure 8 displays the behavior of the fuzzy set called ‘comfort’. Both the domains and the amplitude range between 0.0 and 1.0 .
The ‘low’ input is modeled by a trapezoidal function that starts at 0 and decreases between 0.2 and 0.4 . The ’medium’ input is modeled by a trapezoidal function that starts at 0.2 , increases to 0.4 , remains constant at 0.6 , and decreases to 0.8 . The ‘high’ input is modeled by a trapezoidal function that starts at 0.6 , increases to 0.8 , and remains constant at 1.0 . Unlike the previous graphs, the shaded area represents the membership sets corresponding to the crisp output of 0.83. This value is represented by the vertical bar on the abscissa axis, and its projection on the ordinate axis represents the membership of the sets containing it, that is, μ c o m f o r t ( ω ) = 1.0 .
The proposed fuzzy modeling relies on an OOP approach. The source code was written in the Python® language using the Scikit-Fuzzy, numpy, and random modules. The developed classes and methods are appropriately commented in the code for proper understanding of the programming logic, which includes a simulation field for new values of the fuzzy variables. The source code is available at https://raw.githubusercontent.com/jonathacosta/SmartGrid/main/SCC-SHC/Codes/ModConfFz.py, accessed on 15 February 2023.
The following definitions identify each of the scenarios assessed in the simulations described in Section 5:
  • fz-comf: employs fuzzy variables to assign a new value to the comfort relevance level according to Equation (15)—user’s perceptions.
  • nfz-comf: a fixed value for the comfort relevance level is used, which is specified by the user when registering the loads in the SHC—user’s preferences.
  • PSO & nfz-comf: the algorithm proposed in [6], which relies on PSO and the comfort function proposed in [5], which uses nfz-comf.
  • PSO & fz-comf: the algorithm introduced in this paper, combining PSO and the comfort function proposed.
  • PSO & nfz-tag-comf: the algorithm proposed in [6], which relies on PSO and the comfort function proposed in [25], which uses nfz-comf.
  • PSO & fz-tag-comf: the algorithm presented in this paper combining PSO and the comfort function proposed in [25], with the addition of fuzzy comfort (fz-comf).

4.4. Multi-Objective SHC Function

The evaluation function of the solutions obtained with the SHC consists of the functions f 1 and f 2 . The first defines the resulting financial savings, while the second represents the user’s comfort level. Equation (16) represents a total cost function F that consolidates f 1 and f 2 , corresponding respectively to Equations (13) and (14).
F = α · f 1 + ( α 1 ) · f 2
where α [ 0 , 1 ] . The values adopted for α are directly related to the relationship between consumption and user comfort. Comfort is maximal for the maximum threshold α = 0.0 , resulting in minimal or no savings. Conversely, comfort is minimal for α = 1.0 , while savings are maximal.
The pseudocode of SHC which applies the proposed comfort function is shown in Algorithm 1.
Algorithm 1: Pseudocode of SHC based on fuzzy logic
    Input   :Loads, Tariff(T), Population(P), Iterations(It), c1, c2
    Output:  gBest
1  begin
2         for i = 1 t o ( L o a d s ) do
3               if C l m > 0.5 then
4                     C l m ω ;
5         pop ← iniPop(Loads)
6         fitness ← calcFitness()
7         Determine pbest and gbest
8          k 0
9          o u t p u t 0 /*Convergence*/
10        while k < = I t & output = 0 do
11               w = diw_InertialTechnique()
12               for i = 1 t o P do
13                          ( if f i t n e s s i > g B e s t then
14                                  ( g b e s t p o p i ;
15                                  l a s t k
16                         if f i t n e s s i > p B e s t then
17                                  ( p b e s t p o p i ;
18                          r 1 , r2 r a n d ( )
19                         Update p o p i · V and p o p i · X
20                          f i t n e s s c a l c F i t n e s s ( )
21                         if ( k l a s t ) > ( 0.1 × I t ) then
22                                 if k < = ( 0.2 × I t ) then
23                                         /* Restart P keeping the current gbest as the worst solution */
                                             p o p i n i P o p ( L o a d s ) ;
24                                          f i t n e s s c a l c F i t n e s s ( ) ;
25                                          p a r g m i n ( f i t n e s s ) ;
26                                          p o p p g b e s t
27                                 else
28                                          ( o u t p u t 1 /*Convergence*/
29                    k k + 1
To ensure performance, note that the convergence criterion is 20 % of the maximum iterations, with the population restarted if no improvement in the solution is achieved after 10 % of the iterations.

5. Results

5.1. Simulation Scenarios and Analysis Criteria

The characteristics common to all simulation scenarios are: (a) sampling rate ( T s ) 5.0 min; (b) daily demand threshold 4.0 kW, represented by an inverted Gaussian centered at 18:30 h with an amplitude of 1.0 kW to simulate a decrease in the demand threshold; (c) the ToU tariffs; and (d) the household loads described in Table 4 and detailed in [5].

5.1.1. Simulation Parameters

Reference loads are identified by the operating cycle, time per cycle ( Δ t ) in minutes, average power ( P ¯ ) in kW, maximum power ( P ^ ) in kW, best start time, minimum time, maximum time, and comfort relevance level ( C L m ). In addition, certain loads have two values for the best start time. Our simulations were performed with the same parameters presented in [6] to allow for a more fair comparison, considering the following aspects: (a) swarm size of ten particles, with each particle representing one possible solution of the algorithm, i.e., the total number of loads; (b) the weight change technique (w) and inertial weight (DIW); (c) the cognitive and social parameters ( c 1 = 2 and c 2 = 2, respectively); (d) a maximum number of iterations of 10,000. Each solution in each scenario was executed 30 times.

5.1.2. Analysis Criteria

Each solution was evaluated based on the results of the simulated scenarios. The same simulation parameters were used for each scenario, with a single variable being changed each time to allow for fair comparison of the results. For this purpose, the fitness function, financial savings, relative comfort, expected consumption, total consumption of household loads, execution time, and standard deviation were analyzed for each solution. The scenarios were evaluated against the above metrics using load scheduling diagrams and exploratory data analysis according to the model developed by the authors. The corresponding source code is available at https://raw.githubusercontent.com/jonathacosta/SmartGrid/main/SCC-SHC/Codes/ModEDA.py, accessed on 15 February 2023.

5.2. Analysis of Comfort Relevance Level

From Table 4, it is apparent that air conditioners have a relevant comfort level of ( C L m ) 1.0 . This means that the SHC must prioritize the activation of these loads at the time chosen by the user in order to satisfy the user’s comfort preferences. However, the user’s comfort perception may vary over the course of days due to both climatic and psychological aspects. This means that the previously established comfort preferences may not match the individual’s actual comfort perception at a given time. For example, the relevance of air conditioning must be adjusted to the user’s comfort perception. Table 5 shows the variation in the relevance of user comfort level ( C L m ) for an air conditioner along with the fuzzy variables involved.
It can be observed that the temperature ( τ ) and humidity ( υ ) perceptions were chosen under extreme conditions of the domain ranges. In addition, all loads are scheduled to ensure comfort. However, because C L m is assigned with the value of ω , the load scheduling algorithm has the flexibility to shift loads to times close to peak hours, maximizing user comfort while simultaneously allowing for improvement of the cost–comfort ratio.

5.3. Analysis of Residential Scenarios

The simulations in this scenario consider the most critical tariff costs published by a regulatory agency in northeastern Brazil, namely, USD 0.3047 for green flag tariffs, USD 0.3073 for yellow flag tariffs, and USD 0.3230 for red flag tariffs [47].
It is useful to note that the use of the white tariff (ToU) allows an additional adjustment of the cost–comfort ratio by α according to Equation (16). This parameter was used in this simulation as [ 0.25 , 0.50 , 0.75 ] to highlight different SHC configuration conditions between two houses with the same loads and the same fuzzy parameters. With the parameter α = 0.25 , according to Equation (16), the user sets SHC to 0.25 for cost savings and 0.75 for comfort. Therefore, the user configures the system to prioritize user comfort over savings in load scheduling. The reverse is true for α = 0.75 , and for α = 0.5 there is an even threshold.

5.3.1. ToU Scenario com α = 0.25

With the parameter α = 0.25 , the user sets the SHC to 0.25 for cost savings and 0.75 for comfort. This configures the system to favor comfort over cost savings when scheduling loads. Table 6 shows the results of the simulations with the above parameters.
Table 6 shows the values and compares two different comfort functions, the first originally proposed by [5] and the second proposed by [25]. Note that the average user’s comfort level is higher when the SHC uses the fz-comf comfort function instead of the nfz-comf comfort function. Even when the ω parameter tends to 0.0 , the user continues to gain comfort. The same relationship is observed when the SHC sets fz-tag-comf instead of nfz-tag-comf. In this scenario, it can be seen that the use of the proposed comfort function provides further benefits, as it takes into account the user’s perception of comfort in load scheduling instead only the user’s preferences.

5.3.2. ToU Scenario com α = 0.50

Otherwise, using the parameter α = 0.50 , the user sets the SHC to 0.50 for cost savings and 0.50 for comfort. In this way, the system can be configured to balance cost savings and comfort in load scheduling. Table 7 shows the result of the simulations for the above parameters.
It can be observed that the use of the proposed comfort function in this scenario is more beneficial when the SHC operates with the fz-tag-comf function, as it takes into account the user’s comfort perception, increases the average comfort, and reduces the load scheduling cost.

5.3.3. ToU Scenario com α = 0.75

Otherwise, with the parameter α = 0.75 , the user sets the SHC to 0.75 for cost savings and 0.25 for comfort. This configures the system to prioritize cost savings over comfort when scheduling loads. Table 8 shows the results of the simulations with the above parameters.
Thus, in this scenario where cost savings are the main concern, it is advantageous for the SHC to use only the nfz-tag-comf comfort function, as it provides the greatest savings at the highest comfort level. This means that the SHC does not take into account the user’s perception of comfort, only their preferences as predefined in the load registration, guaranteeing an average comfort level while focusing on reducing the cost when scheduling loads.

6. Discussion

Simulations were performed considering all possible combinations between ToU energy tariffs, user preferences in terms of cost–comfort, user perception, and number of loads in a residence. The results confirm our initial hypothesis that the use of a comfort function integrating the above variables allows user comfort to be maximized without affecting cost.
In addition, improved performance leads to more flexible load scheduling, which allows shifting loads to times closer to user preferences. Figure 9a,b shows the load scheduling graphs for scenarios with and without fuzzy comfort considering the tariff ToU, α = 0.25 , and 10 loads. The range in the graphs between 17:00 (5 PM) and 22:00 (10 PM) corresponds to the highest tariff costs. Therefore, SHC should reduce energy consumption during critical periods and/or shift loads to off-peak hours.
The red area in Figure 9a,b represents an air conditioner (‘F2 AC’) that should be put into operation at 17:00 (see Figure 9a). The application of fz-comf allows the load to be shifted to near 20:00, where 20:00 is the user’s preferred time according to Table 4 (Id 7), maximizing thermal comfort. This process occurs at the algorithm level; a comfort relevance level mitigation factor is calculated from Equation (15) to increase the comfort function f 2 in Equation (14), and consequently the fitness evaluation function of each PSO solution according to Equation (16).
In general, in keeping with the initial hypothesis, the integration of user perception variables (humidity and temperature) results in an SHC model with fuzzy comfort than can lead to significant gains in the evaluated scenarios.

Overview and Other Possible Scenarios

Figure 10a,b provides an overview of the tradeoff between comfort and cost for the features originally proposed in [5,25]. Figure 10a shows the user’s comfort gain when the SHC is operated with different comfort functions, while Figure 10b shows the corresponding cost, optimizing the cost–comfort threshold defined for the SHC in each scenario. Thus, it is fair to say that the use of the proposed comfort function allows the SHC to maximize the user’s comfort while including their perception of temperature and humidity and reducing the cost of load scheduling.
Graphs showing the remaining combinations of α with and without considering the user’s comfort perceptions are available on GitHub® at https://github.com/jonathacosta/SmartGrid/tree/main/SCC-SHC/Results/Figures, accessed on 15 February 2023.

7. Conclusions

In previous studies, SHCs have been proposed that interact with users’ comfort preferences; however, the dynamics of users’ comfort perceptions have not been studied before. In this context, the present work addresses the problem of modeling user perception of home comfort. Our main objective was to mathematically model the dynamics of user perception of home comfort using fuzzy logic. Based on this model, we analyzed the proposed functions for the housing cost–comfort ratio and compared them with other comfort functions under the same conditions.
The results show that it is more beneficial to use our proposed fz-comfort comfort function in cases when the user asks the SHC to prioritize comfort over financial savings. In other cases, it is more beneficial to use a comfort function that only considers the user’s comfort preferences, i.e., tag-comfort, and not the user’s perceptions. This study makes an initial contribution to modeling users’ comfort perceptions relative to their comfort preferences. A limitation of this study is the context of home comfort, which for the purposes of this study is associated with a single user interacting with the SHC. As a suggestion for future research, there remains a need to analyze user perceptions in multi-user scenarios, such as condominiums or houses, where a single SHC is operated by multiple users.

Author Contributions

Conceptualization, J.R.d.C. and G.C.B.; methodology, J.R.d.C. and G.C.B.; software, J.R.d.C., J.G.B. and D.A.S.; validation, G.C.B.; investigation, J.R.d.C.; resources, J.R.d.C., D.A.S., J.G.B., A.B.d.S.J., C.S.d.N.R., F.J.d.S.V., J.N.d.N.J., I.d.S.B., A.F.d.L., K.A.d.S. and J.R.d.O.J. writing—review and editing, J.R.d.C.; visualization, C.S.d.N.R., F.J.d.S.V., J.N.d.N.J., I.d.S.B., A.F.d.L., K.A.d.S. and J.R.d.O.J.; supervision, G.C.B.; All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available upon request from the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
DAPday-ahead price
CPPcritical peak pricing
RTPreal-time price
FPflat price
CTconventional tariff
DGdistributed generation
LSSWload schedule sliding window
LPlinear programming
ILPinteger linear programming
MINLPmixed-integer nonlinear programming
MILPmixed-integer linear programming
BPSObinary particle swarm optimization
TLGOteacher learning genetic optimization
TLBOteacher learning-based optimization
GAgenetic algorithm
PSOparticle swarm optimization
FLfuzzy logic
SAsimulated anneling
ACOant colony optimization
MOGWOmulti-objective grey wolf optimization
IoTinternet of things
HIChome interactive interface
DRdemand response
ToUtime-of-use
SSMsupply-side management
DSMdemand-side management
SGsmart grid
RHrelative humidity
OOPobject-oriented programming
SHCsmart home controller
HVACheating, ventilation, and air conditioning
ABNTBrazilian Association of Technical Standards
ASHRAEAmerican Society of Heating, Refrigerating, and Air Conditioning Engineers
fz-comffuzzy comfort
nfz-comfnon-fuzzy comfort
ESSenergy storage system
EVelectric vehicle
PMVpredicted mean vote

References

  1. ANEEL [Agência Nacional de Energia Elétrica]. Resolução Normativa N° 414, de 9 de setembro, 2010. Estabelece as Condições Gerais de Fornecimento de Energia Elétrica de Forma Atualizada e Consolidada. Available online: https://www.camara.leg.br/proposicoesWeb/prop_mostrarintegra?codteor=1259869 (accessed on 15 February 2023).
  2. Esther, B.P.; Kumar, K.S. A survey on residential demand side management architecture, approaches, optimization models and methods. Renew. Sustain. Energy Rev. 2016, 59, 342–351. [Google Scholar] [CrossRef]
  3. Di Giorgio, A.; Pimpinella, L. An event driven smart home controller enabling consumer economic saving and automated demand side management. Appl. Energy 2012, 96, 92–103. [Google Scholar] [CrossRef]
  4. Bezerra Filho, P.; Albuquerque, P.; Prata, B.; Barroso, G. A smart home controller using an integer programming approach for the optimization of consumer economic saving and comfort. In Proceedings of the XII SBAI Simpósio Brasileiro de Automação Inteligente (Brazilian Symposium in Intelligent Automation), Natal-RN, Brazil, 25 October 2015. [Google Scholar]
  5. Albuquerque, P.; Ohi, D.d.A.; Pereira, N.; Prata, B.d.A.; Barroso, G. Proposed Architecture for Energy Efficiency and Comfort Optimization in Smart Homes. J. Control. Autom. Electr. Syst. 2018, 29, 718–730. [Google Scholar] [CrossRef]
  6. Dos Santos, S.A.B. Utilização da Meta-heurística PSO para otimização Multiobjetivo de um Smart Home Controller. Master’s Thesis, Universidade Federal do Ceará, Fortaleza-CE, Brazil, 2019. [Google Scholar]
  7. Rajasekhar, B.; Pindoriya, N.; Tushar, W.; Yuen, C. Collaborative energy management for a residential community: A non-cooperative and evolutionary approach. IEEE Trans. Emerg. Top. Comput. Intell. 2019, 3, 177–192. [Google Scholar] [CrossRef]
  8. Anderson, J.R.; Crawford, J. Cognitive Psychology and Its Implications; WH Freeman: San Francisco, CA, USA, 1980. [Google Scholar]
  9. Eysenck, M.W.; Keane, M.T. Manual de Psicologia Cognitiva-7; Artmed Editora: Porto Alegre-RS, Brazil, 2017. [Google Scholar]
  10. Marszał-Wiśniewska, M.; Nowicka, M. Individual differences in mood changes. J. Happiness Stud. 2018, 19, 1415–1438. [Google Scholar] [CrossRef]
  11. Sanders, J.L.; Brizzolara, M.S. Relationships between weather and mood. J. Gen. Psychol. 1982, 107, 155–156. [Google Scholar] [CrossRef] [PubMed]
  12. Howarth, E.; Hoffman, M.S. A multidimensional approach to the relationship between mood and weather. Br. J. Psychol. 1984, 75, 15–23. [Google Scholar] [CrossRef] [PubMed]
  13. Enescu, D. A review of thermal comfort models and indicators for indoor environments. Renew. Sustain. Energy Rev. 2017, 79, 1353–1379. [Google Scholar] [CrossRef]
  14. Aduda, K.; Labeodan, T.; Zeiler, W.; Boxem, G.; Zhao, Y. Demand side flexibility: Potentials and building performance implications. Sustain. Cities Soc. 2016, 22, 146–163. [Google Scholar] [CrossRef]
  15. Ogunjuyigbe, A.; Ayodele, T.; Akinola, O. User satisfaction-induced demand side load management in residential buildings with user budget constraint. Appl. Energy 2017, 187, 352–366. [Google Scholar] [CrossRef]
  16. Ahmed, E.M.; Rathinam, R.; Dayalan, S.; Fernandez, G.S.; Ali, Z.M.; Abdel Aleem, S.H.E.; Omar, A.I. A Comprehensive Analysis of Demand Response Pricing Strategies in a Smart Grid Environment Using Particle Swarm Optimization and the Strawberry Optimization Algorithm. Mathematics 2021, 9, 2338. [Google Scholar] [CrossRef]
  17. Gellings, C.W.; Samotyj, M. Smart Grid as advanced technology enabler of demand response. Energy Effic. 2013, 6, 685–694. [Google Scholar] [CrossRef]
  18. ANEEL [Agência Nacional de Energia Elétrica]. Tarifa Branca. 2022. Available online: https://antigo.aneel.gov.br/web/guest/tarifa-branca (accessed on 15 February 2023).
  19. Gudi, N.; Wang, L.; Devabhaktuni, V.; Depuru, S.S.S.R. Demand response simulation implementing heuristic optimization for home energy management. In Proceedings of the North American Power Symposium 2010, Arlington, TX, USA, 26–28 September 2010; pp. 1–6. [Google Scholar]
  20. Hubert, T.; Grijalva, S. Modeling for Residential Electricity Optimization in Dynamic Pricing Environments. IEEE Trans. Smart Grid 2012, 3, 2224–2231. [Google Scholar] [CrossRef]
  21. Chen, C.; Wang, J.; Heo, Y.; Kishore, S. MPC-Based Appliance Scheduling for Residential Building Energy Management Controller. IEEE Trans. Smart Grid 2013, 4, 1401–1410. [Google Scholar] [CrossRef]
  22. Zhang, Y.; Lu, N. Parameter Selection for a Centralized Thermostatically Controlled Appliances Load Controller Used for Intra-Hour Load Balancing. IEEE Trans. Smart Grid 2013, 4, 2100–2108. [Google Scholar] [CrossRef]
  23. Yoon, J.H.; Baldick, R.; Novoselac, A. Dynamic Demand Response Controller Based on Real-Time Retail Price for Residential Buildings. IEEE Trans. Smart Grid 2014, 5, 121–129. [Google Scholar] [CrossRef]
  24. Althaher, S.; Mancarella, P.; Mutale, J. Automated Demand Response From Home Energy Management System Under Dynamic Pricing and Power and Comfort Constraints. IEEE Trans. Smart Grid 2015, 6, 1874–1883. [Google Scholar] [CrossRef]
  25. Ma, K.; Yao, T.; Yang, J.; Guan, X. Residential power scheduling for demand response in smart grid. Int. J. Electr. Power Energy Syst. 2016, 78, 320–325. [Google Scholar] [CrossRef]
  26. Manzoor, A.; Javaid, N.; Ullah, I.; Abdul, W.; Almogren, A.; Alamri, A. An intelligent hybrid heuristic scheme for smart metering based demand side management in smart homes. Energies 2017, 10, 1258. [Google Scholar] [CrossRef]
  27. Pizzagalli, S.; Spoladore, D.; Arlati, S.; Sacco, M.; Greci, L. HIC: An interactive and ubiquitous home controller system for the smart home. In Proceedings of the 2018 IEEE 6th International Conference on Serious Games and Applications for Health (SeGAH), Vienna, Austria, 16–18 May 2018; pp. 1–6. [Google Scholar] [CrossRef]
  28. De Albuquerque, P.U.B. Estudo e Desenvolvimento de Abordagens Multiobjetivo Baseadas em Programação Linear e em Metaheurísticas para Otimização do Custo com Energia Elétrica e do Conforto do Usuário. Ph.D. Thesis, Universidade Federal do Ceará, Fortaleza-CE, Brazil, 2018. [Google Scholar]
  29. Haseeb, M.; Kazmi, S.A.A.; Malik, M.M.; Ali, S.; Bukhari, S.B.A.; Shin, D.R. Multi Objective Based Framework for Energy Management of Smart Micro-Grid. IEEE Access 2020, 8, 220302–220319. [Google Scholar] [CrossRef]
  30. Paudyal, P.; Munankarmi, P.; Ni, Z.; Hansen, T.M. A Hierarchical Control Framework With a Novel Bidding Scheme for Residential Community Energy Optimization. IEEE Trans. Smart Grid 2020, 11, 710–719. [Google Scholar] [CrossRef]
  31. 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 2022, 10, 35498–35520. [Google Scholar] [CrossRef]
  32. Kivanç, Ö.C.; Akgün, B.T.; Bilgen, S.; Öztürk, S.; Baysan, S.; Tuncay, R.N. Residential energy management system based on integration of fuzzy logic and simulated annealing. Turk. J. Electr. Eng. Comput. Sci. 2022, 30, 3864. [Google Scholar] [CrossRef]
  33. Ain, Q.U.; Iqbal, S.; Mukhtar, H. Improving Quality of Experience Using Fuzzy Controller for Smart Homes. IEEE Access 2022, 10, 11892–11908. [Google Scholar] [CrossRef]
  34. Ali, S.; Rehman, A.U.; Wadud, Z.; Khan, I.; Murawwat, S.; Hafeez, G.; Albogamy, F.R.; Khan, S.; Samuel, O. Demand Response Program for Efficient Demand-Side Management in Smart Grid Considering Renewable Energy Sources. IEEE Access 2022, 10, 53832–53853. [Google Scholar] [CrossRef]
  35. Kosko, B. Fuzzy Engineering; Prentice Hall: Hoboken, NJ, USA, 1997. [Google Scholar]
  36. Nguyen, H.T.; Sugeno, M. Fuzzy Systems Model Control; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2012; Volume 2. [Google Scholar]
  37. Ravibabu, P.; Praveen, A.; Chandra, C.V.; Reddy, P.R.; Teja, M.K.R. An approach of DSM techniques for domestic load management using fuzzy logic. In Proceedings of the 2009 IEEE International Conference on Fuzzy Systems, Jeju Island, Korea, 20–24 August 2009; pp. 1303–1307. [Google Scholar]
  38. Hong, Y.Y.; Lin, J.K.; Wu, C.P.; Chuang, C.C. Multi-objective air-conditioning control considering fuzzy parameters using immune clonal selection programming. IEEE Trans. Smart Grid 2012, 3, 1603–1610. [Google Scholar] [CrossRef]
  39. Wu, Z.; Zhou, S.; Li, J.; Zhang, X.P. Real-time scheduling of residential appliances via conditional risk-at-value. IEEE Trans. Smart Grid 2014, 5, 1282–1291. [Google Scholar] [CrossRef]
  40. Luke, S. Essentials of Metaheuristics, 2nd ed.; Lulu: Morrisville, NC, USA, 2013. [Google Scholar]
  41. Ratnaweera, A.; Halgamuge, S.K.; Watson, H.C. Self-organizing hierarchical particle swarm optimizer with time-varying acceleration coefficients. IEEE Trans. Evol. Comput. 2004, 8, 240–255. [Google Scholar] [CrossRef]
  42. Xu, G. An adaptive parameter tuning of particle swarm optimization algorithm. Appl. Math. Comput. 2013, 219, 4560–4569. [Google Scholar] [CrossRef]
  43. Spiliotis, M.; Sordo-Ward, A.; Garrote, L. Estimation of Fuzzy Parameters in the Linear Muskingum Model with the Aid of Particle Swarm Optimization. Sustainability 2021, 13, 7152. [Google Scholar] [CrossRef]
  44. Shouran, M.; Alsseid, A. Particle Swarm Optimization Algorithm-Tuned Fuzzy Cascade Fractional Order PI-Fractional Order PD for Frequency Regulation of Dual-Area Power System. Processes 2022, 10, 477. [Google Scholar] [CrossRef]
  45. Lei, T.; Wang, Y.; Jin, X.; Min, Z.; Zhang, X.; Zhang, X. An Optimal Fuzzy Logic-Based Energy Management Strategy for a Fuel Cell/Battery Hybrid Power Unmanned Aerial Vehicle. Aerospace 2022, 9, 115. [Google Scholar] [CrossRef]
  46. Ashrae, A.H. Fundamentals, Système International (SI) ed.; American Society of Heating, Refrigerating and Air-Conditioning Engineers: Atlanta, GA, USA, 2017. [Google Scholar]
  47. ENEL-CE Tarifa de Fornecimento-Baixa Tensão. 2021. Available online: https://www.enel.com.br/content/dam/enel-br/megamenu/taxas,-tarifas-e-impostos/Tarifas-ENEL-CE%20bandeira-VERDE_%20Maiol22%20REH-3026_220422.pdf (accessed on 15 February 2023).
Figure 1. Perceived temperature.
Figure 1. Perceived temperature.
Sensors 23 03021 g001
Figure 2. Flowchart of the combined PSO and fuzzy algorithm.
Figure 2. Flowchart of the combined PSO and fuzzy algorithm.
Sensors 23 03021 g002
Figure 3. Proposed SHC model.
Figure 3. Proposed SHC model.
Sensors 23 03021 g003
Figure 4. Fuzzification of the comfort relevance level.
Figure 4. Fuzzification of the comfort relevance level.
Sensors 23 03021 g004
Figure 5. Fuzzy control surface as a function of user perception.
Figure 5. Fuzzy control surface as a function of user perception.
Sensors 23 03021 g005
Figure 6. Perceived temperature.
Figure 6. Perceived temperature.
Sensors 23 03021 g006
Figure 7. Perceived humidity.
Figure 7. Perceived humidity.
Sensors 23 03021 g007
Figure 8. Comfort level.
Figure 8. Comfort level.
Sensors 23 03021 g008
Figure 9. Load scheduling performed by the SHC using the ToU tariff and α = 0.25 .
Figure 9. Load scheduling performed by the SHC using the ToU tariff and α = 0.25 .
Sensors 23 03021 g009
Figure 10. Comfort functions.
Figure 10. Comfort functions.
Sensors 23 03021 g010
Table 1. Comparison between CT and ToU.
Table 1. Comparison between CT and ToU.
PeriodTariffCTToU
Mode(US$/kWh)(US$/kWh)
00:00 to 16:30Off-peak0.1360.112
16:30 to 17:30Intermediate0.1360.187
17:30 to 20:30Peak0.1360.294
20:30 to 21:30Intermediate0.1360.187
21:30 to 00:00Off-peak0.1360.112
Table 2. List of symbols.
Table 2. List of symbols.
IdDescription
mTotal amount of schedulable loads
NTotal amount of samples
P ¯ m Average power vector of m-th load
P ^ m Maximum power vector of m-th load
N m Duration of the m-th load at sampling
I S m Sample associated with the minimum starting time of the m-th load
I E m Sample associated with the maximum end time of the m-th load
I B m Sample associated with the best starting time of the m-th load
I C m Scheduled start time of the m-th load.
C L m Comfort relevance level of m-th load
P k Peak limit at k-th time instant
CVector referring to the cost of electrical energy during the period.
T s Consumption sampling rate expressed in minutes
τ Perception of ambient temperature by the user.
υ Perception of relative humidity by the user
ω Comfort relevance level of m-th load with user’s perception of τ , υ
Table 3. Linguistic variables, terms, and fuzzy domain.
Table 3. Linguistic variables, terms, and fuzzy domain.
Thermal Perception ( τ )
Linguistic ValueNotationDomain
Very cold t 1 [0.00–0.45]
Cold t 2 [0.23–0.68]
Mild t 3 [0.40–0.85]
Hot t 4 [0.58–1.00]
Very hot t 5 [0.65–1.00]
Humidity Perception ( υ )
Linguistic ValueNotationDomain
Low u 1 [0.35–0.50]
Medium u 2 [0.40–0.70]
High u 3 [0.60–0.75]
Comfort Relevance Level ( ω )
Linguistic ValueNotationDomain
Low c 1 [0.0– 0.4]
Medium c 2 [0.2–0.8]
High c 3 [0.6–1.0]
Table 4. Reference loads in an actual residence.
Table 4. Reference loads in an actual residence.
IDLoadCycles Δ t (min) P ¯ [kw] P ^ [kw]BestMinMax C Lm
TimeTimeTime
1Booster pump120238 h or 16 h7 h17 h0.1
2Pool pump11200.751.28 h7 h17 h0.1
3Washing machine810,10, 4, 6, 2, 2, 2, 70.13, 0.50, 0.30, 0.26, 0.15, 0.15, 0.15, 0.220.70, 0.50, 0.30, 0.26, 0.15, 0.15, 0.15, 0.308 h7 h17 h0.5
4External lighting12700.30.318 h17 h24 h0.3
5Internal lighting12700.150.318 h17 h23 h0.7
6Air conditioning 114[10, 5, 5, …, 5, 5][1.3, …, 1.3][1.7, 1.3, ⋯, 1.3]16 h or 20 h15 h24 h1.0
7Air conditioning 27[30, 20, 5, ⋯, 5, 5][2, ⋯, 2][2.1, ⋯, 2.1]20 h17 h24 h1.0
8Air conditioning 312401.11.220 h17 h24 h1.0
9Air conditioning 47[10, 10, 5, ⋯, 5][0.9, ⋯, 0.9][1.1, ⋯, 1.1]20 h17 h24 h1.0
10Dis hwashing mac hine55, 10, 15, 5, 100.03, 1.76, 0.03, 1.76, 0.030.03, 1.76, 0.03, 1.76, 0.0321 h18 h22 h0.3
Table 5. Updating the load relevance from fuzzy inputs.
Table 5. Updating the load relevance from fuzzy inputs.
IdLoad C L m τ υ ω Gain
1Air cond.1.015 °C40%0.1639
2Air cond.1.025 °C45%0.4788
3Air cond.1.038 °C60%0.8443
Table 6. Comparative results between different fuzzy and non-fuzzy comfort functions using the ToU tariff and α = 0.25 .
Table 6. Comparative results between different fuzzy and non-fuzzy comfort functions using the ToU tariff and α = 0.25 .
Comfortnfz-comf fz-comf nfz-tag-comf fz-tag-comf
ω 0.160.560.840.160.560.84
f i t m i n 1.181.201.201.181.201.211.201.21
f i t a v g 1.221.231.221.221.231.241.231.23
f i t m a x 1.241.261.251.241.261.271.261.26
Deviation0.0150.0160.0150.0180.0160.0150.0170.013
kW/h16.416.416.416.416.416.416.416.4
US$2.5932.6662.6182.6142.6142.5702.7002.619
C o m f a v g 84.13%93.14%88.07%84.99%92.70%95.84%95.28%92.98%
t a v g 4.173.283.362.863.113.102.892.99
Table 7. Comparative results between different fuzzy and non-fuzzy comfort functions using the ToU tariff and α = 0.50 .
Table 7. Comparative results between different fuzzy and non-fuzzy comfort functions using the ToU tariff and α = 0.50 .
Comfortnfz-comf fz-comf nfz-tag-comf fz-tag-comf
ω 0.160.560.840.160.560.84
f i t m i n 1.141.151.131.121.131.151.161.16
f i t a v g 1.191.211.191.191.121.211.211.22
f i t m a x 1.241.261.241.251.261.251.251.26
Deviation0.0270.0290.0300.0300.0350.0280.0270.026
kW/h16.416.416.416.416.416.416.416.4
US$2.5932.5812.6102.6192.6192.5752.5832.510
C o m f a v g 82.43%93.06%88.43%84.19%91.25%95.17%93.13%92.89%
t a v g 2.782.682.842.442.512.822.592.47
Table 8. Comparative results between different fuzzy and non-fuzzy comfort functions using the ToU tariff and α = 0.75 .
Table 8. Comparative results between different fuzzy and non-fuzzy comfort functions using the ToU tariff and α = 0.75 .
Comfortnfz-comf fz-comf nfz-tag-comf fz-tag-comf
ω 0.160.560.840.160.560.84
f i t m i n 1.071.051.081.071.051.071.081.11
f i t a v g 1.171.161.171.171.181.181.171.17
f i t m a x 1.251.261.261.241.241.251.251.24
Deviation0.0470.0490.0490.0450.0430.0470.0390.039
kW/h16.416.416.416.416.416.416.416.4
US$2.5892.6282.5802.5872.5722.5802.5952.585
C o m f a v g 81.80%92.70%87.88%84.47%92.39%95.40%93.27%92.07%
t a v g 2.862.562.522.592.852.782.972.67
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

Costa, J.R.d.; Barroso, G.C.; Souza, D.A.d.; Batista, J.G.; Souza Junior, A.B.d.; Rios, C.S.d.N.; Vasconcelos, F.J.d.S.; Júnior, J.N.d.N.; Bezerra, I.d.S.; Lima, A.F.d.; et al. An Improved Optimization Function to Integrate the User’s Comfort Perception into a Smart Home Controller Based on Particle Swarm Optimization and Fuzzy Logic. Sensors 2023, 23, 3021. https://doi.org/10.3390/s23063021

AMA Style

Costa JRd, Barroso GC, Souza DAd, Batista JG, Souza Junior ABd, Rios CSdN, Vasconcelos FJdS, Júnior JNdN, Bezerra IdS, Lima AFd, et al. An Improved Optimization Function to Integrate the User’s Comfort Perception into a Smart Home Controller Based on Particle Swarm Optimization and Fuzzy Logic. Sensors. 2023; 23(6):3021. https://doi.org/10.3390/s23063021

Chicago/Turabian Style

Costa, Jonatha Rodrigues da, Giovanni Cordeiro Barroso, Darielson Araújo de Souza, Josias Guimarães Batista, Antonio Barbosa de Souza Junior, Clauson Sales do Nascimento Rios, Felipe José de Sousa Vasconcelos, José Nogueira do Nascimento Júnior, Ismael de Souza Bezerra, Alanio Ferreira de Lima, and et al. 2023. "An Improved Optimization Function to Integrate the User’s Comfort Perception into a Smart Home Controller Based on Particle Swarm Optimization and Fuzzy Logic" Sensors 23, no. 6: 3021. https://doi.org/10.3390/s23063021

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