IoT-Based Smart Building Environment Service for Occupants ’ Thermal Comfort

This paper presents an Internet of Things (IoT) platform for a smart building which provides human care services for occupants. The individual health profiles of the occupants are acquired by the IoT-based smart building, which uses the accumulated knowledge of the occupants to provide better services. To ensure the thermal comfort of the occupants inside the building, we propose a dynamic thermal model of occupants. This model is based on the heat balance equation of human body and thermal characteristics of the occupants. We implement this model in two smart building models with heaters controlled by a temperature and thermal comfort index using MATLAB/Simulink®. The simulation results show that the thermal comfort-based control is more effective to maintaining occupants’ thermal satisfaction and is therefore recommended for use providing human care services using IoT platforms in smart buildings.


Introduction
In a hyperconnected society, a human is linked to other people and machines, and machines are connected to other machines.This connectivity is formed by a physical and cybernetic linkage with the help of the sensing and communication technologies.These technologies make direct interactions among people, objects, and services that improve the productivity, efficiency, convenience, and security of our society [1].The Internet of Things (IoT), big data, cloud computing, digital platforms, machine-to-machine (M2M) communication, artificial intelligence (AI), and machine learning are emerging technologies that support a hyperconnected society [2].These smart technologies are applied to several domains including homes, factories, offices, transport systems, and other service and production areas.Objects and services are connected to individuals by personal communication devices and control applications that enable users to receive on-demand services.
Human care services are an example of these on-demand services.Human care services were initially explored in healthcare as a means to provide clinical services for patients who need help and care from others, such as infants and the elderly.Human care services include on-site treatment by caregivers at home or in clinical settings and long-distance treatment, also known as e-healthcare.The e-healthcare system improves the quality of patient care and reduces cost [3].Since the e-healthcare system is composed of sensors, electronic health records, and communication protocols which are easily integrated on a commonly retailed personal device such as a smartphone, the scope of the e-healthcare services can be expanded to include the general public.For example, wearable devices such as a smartphone and a smart band have biosensors and health applications for measuring the user's heart rate, stress index, oxygen saturation, sleeping hours, step count, and so on.Wearable devices and several applications check these and additional user health conditions.The collected individual health records are sent to some form of personal healthcare manager through health applications via the smart devices.The user receives a feedback based on manager analysis.Therefore, the general public has a more accessibility to experience the e-healthcare services with the development of the related technology.
However, healthcare services are not limited to medical treatment.They can be extended to environmental management.Ulrich [4] proposed that psychological and social needs influence the medical outcomes of patients.He classified several environmental attributes including noise, light, windows, flooring materials, furniture arrangement, and air quality.These factors influence human sense, recognition, and emotion.Ulrich found that the environment can have a positive or a negative effect on patient recovery.This finding demonstrates the importance of ambient condition management.Since patients spend more time inside a building than outside, indoor environment could encourage patient recovery.
As the demand for quality of life increases, the wellness of individuals becomes more important than ever before.Thus, Figure 1 depicts how the scope and the range of human care services extend to incorporate the general public, not only for healthcare services, including physical, mental, emotional, and aesthetic cares, but also for environmental care, such as indoor ambient care, and social, financial, and occupational cares.Human care services can be applied to the ambient condition management of home, office, factory, and farm environments using a smartphone and other connected smart technology.For example, the ambient condition of a building, including lighting, temperature, and humidity, could be controlled by a smartphone that integrates IoT technologies.Recently, smart appliances have been linked to users and operated using signals sent from a smartphone or an unmanned repeater.
To improve ambient conditions for both patients and the general publics, multisensing and communication infrastructures are required.With the development of Internet-based technologies, it is easy to connect the related systems and individuals that are necessary to control the ambient building conditions.Indoor ambient care improves occupant comfort and convenience.Since the environmental conditions of a building are the product of interactions between the building's outdoor and indoor environments and subsystems, it is crucial to understand building physics in addition to occupant preferences.There have been many studies on using thermal analysis of buildings' inform design of heating, ventilation, and air-conditioning (HVAC) systems to predict energy consumption and to improve energy performance of the buildings [5][6][7].However, there are few studies that concentrate on occupant activity as a meaningful influence on the thermal comfort of building occupants.
This study focuses on improving human care services provided by smart buildings as measured by increased occupant satisfaction with thermal conditions through the incorporation of considerations for occupant activity level in the analytical model.To accomplish this, Section 2 introduces the concept of the IoT platform of a smart building, which provides human care services including occupant comfort.Then, in Section 3, we suggest a thermal model of occupants and a control logic based on predicted mean vote (PMV).In Section 4, we integrate the proposed thermal comfort-based control logic into building models and obtain the indoor temperatures and the PMV values during different occupant activities.We compare the results of a PMV index-controlled heating system with those of a system thermally controlled by temperature.Finally, Section 5 relates our findings and conclusions.

IoT Platform of a Smart Building
A smart building is composed of automated building equipment and a communication infrastructure.The equipment includes HVAC systems, lighting systems, shading systems, window opening systems, elevators, air quality control systems, and other electrical devices and applications.Such dedicated equipment, categorized by functions, has been integrated with the smart building platform to facilitate real-time monitoring and controls using advanced technologies [8,9].However, these systems are not directly connected to each other due to the different communication protocols specified by their manufacturers.To solve this communication problem, there have been many attempts to standardize the protocols and to integrate them on the same platform.
A smart building is connected to users and rapidly replies to instantaneous demands of the users.Figure 2 shows the basic three-layer architecture of a smart building IoT platform including data sensing, data processing, and data reproduction.As depicted in Figure 2, the first layer covers the data collection of sensors.The data are composed of the individual conditions of users, operation states of appliances and equipment, and indoor ambient conditions such as temperature, illuminance, and humidity.These are transferred via an Internet-connected gateway and stored in a dedicated big data cloud.The next layer is the data processing.Data is classified and processed for the controlling actuators of the building.Comfort-related actuators such as the HVAC system, lighting system, and blind system require data from individual users.In the reproducing layer, classified and processed data are reproduced as information pertaining to each interaction between occupant and appliance.The data is accumulated in time series.The accumulated data becomes knowledge of the users and informs system efficacy and efficiency enhancements, providing better services for the occupants.
As stated in the previous section, building conditions are the product of building interactions with their environments and subsystems.To control actuators with a focus on user comfort requires additional data processing that considers user activity and its influence on building conditions. 2

Journal of Sensors
The following section proposes a thermal model of occupants that will improve human care services in IoT-based smart buildings.

Thermal Comfort of Occupants
3.1.Thermal Model of Occupants.The first step in conducting the thermal analysis of a building is to determine the internal heat gain of the building.Building internal heat gain is comprised of solar gain, metabolic heat gain, and heat gain produced by appliances.Metabolic heat gain, the heat gain profile of occupants, is a result of an occupant activity, such as resting, standing, and working.A heat gain model of occupants is deduced from the heat balance equation of the human body.The heat exchange of the human body in indoor conditions is expressed by the following equation [10,11]: where M is the metabolic rate of generation of heat in the body (W/m 2 ); S is the storage or the rate of net loss of heat due to lowering of body temperature (W/m 2 ), counted negative when the body gains heat; RL is the rate of radiative loss of heat to the environment (W/m 2 ), negative when the walls or other radiative surfaces are warmer than the skin; CL is the rate of convective loss of heat to the environment (W/m 2 ), negative when the air is warmer than the skin; and EL is the rate of loss of heat by evaporation in the lungs and from the skin (W/m 2 ).
Metabolic heat production expresses the rate of production of energy with time.Hence, M represents the units of power (W).Since this term is related to surface area of the body, its unit is generally expressed by W/m 2 .Moreover, the unit "MET" is sometimes used."1 MET" is equivalent to 50 kcal/m 2 /h = 58.2W/m 2 and is said to be the metabolic rate of a seated person at rest [12].The ISO 8996 standard [13] gives data for estimating the metabolic heat production of a human body.Table 1 shows the classification of metabolic rates by activity.It provides the fundamental support to ISO thermal comfort and other standards.
A static model is used as a conventional thermal model of occupants.In this model, the most important parameters are the number of occupants and their heat gains expressed as time series.However, this model does not reflect the fact that the metabolic heat flux varies over time, depending on both the occupants and their environment.Moreover, heat is transferred by multiple mechanisms, including conduction, convection, and radiation from body to environment.Therefore, we propose a dynamic thermal model of occupants to provide more accurate analysis and improve services.The heat transfer through body-clothing-environment can be expressed as follows: where ϕ core is the metabolic heat gain of human body (W), ϕ storage is the heat flux (W) for rising body temperature or stored heat flux within body, ϕ evaporation is the heat flux (W)  Very intense to maximum activity 3 Journal of Sensors evaporated in the lungs and from the skin, and ϕ dissipation is the dissipated heat flux (W) from body to environment.The body-clothing-environment heat transfer directly influences the thermal condition of environment, and this process is expressed as follows: where C body is the thermal capacitance (J/K) of the human body.R body is the thermal resistance ( °C/W) of the body.
T body is the temperature of the body.T indoor is the temperature ( °C) of indoor environment.This is a first-order RC thermal network model.For more detail, this model can be developed into a second-order model, as shown below: where ϕ body−clothing is the heat flux from body to clothing, and ϕ clothing−indoor is the heat flux from clothing to indoor environment.C clothing and R clothing are the thermal capacitance (J/K) and the thermal resistance ( °C/W) of the clothing of occupant, respectively.T clothing is the temperature ( °C) of clothing of the body.The proposed model implies thermal characteristics of building occupants, which informs an understanding of the impact of individual thermal dynamics of building occupants.Factoring in the thermal dynamics of occupants enables a more accurate analysis of the thermal performance of a building.If this analysis is applied to the thermal control of a building, it can increase occupant comfort in terms of temperature conditions.
3.2.Thermal Comfort.Thermal comfort is an important indicator of overall building performance.It is defined as "that expression of mind which expresses satisfaction with the thermal environment" by the American Society of Heating, Refrigerating, and Air-Conditioning (ASHRAE) [14].Since thermal comfort is personally determined and differs substantially between persons, it is not easy to quantify and analyze the value.Many researchers have investigated the parameters influencing thermal comfort in attempts to identify thermal comfort zones acceptable to the greatest number of people [15,16].
The PMV model developed by Fanger in 1970s is the most well-known thermal comfort model.The PMV model is still applied to HVAC designs and referenced in recent studies [17][18][19].To determine thermal comfort, this model evaluates six parameters: indoor air temperature, mean radiant temperature, relative humidity, air velocity, clothing, and metabolic rate of the occupant.The thermal comfort index is obtained as follows [20]: where where PMV is the value of the predicted mean vote index, M is the metabolic rate (W/m 2 ), L is the thermal load of human body (W/m 2 ), W is the rate of mechanical work (W/m 2 ) which is 0 in most activities, P a is the partial water vapor pressure (Pa), t a is the indoor air temperature ( °C), t cl is the surface temperature of clothing ( °C), t r is the mean radiant The proposed PMV-based control algorithm consists of following sequence of events.First, presence of an occupant is detected to judge the necessity of operation of heating/cooling systems.If an occupant is detected inside a target space, the PMV index is calculated by using (5).In this step, we use metabolic heat gain of a human body obtained by the proposed thermal model of occupants.Since the thermal conditions of the space are controlled by the PMV index, by extension, the control command signals used to operate thermal systems such as heating and air-conditioning are also determined by the PMV value.For example, during winter season, a heating system operates.If the PMV value is less than −0.2, a command signal for a heating system is given as "1."Else, the command signal is given as "0."During summer season, a cooling system is used.If the PMV value is greater than 0.2, a command signal to operate the cooling system is given as "1."Otherwise, the command is "0."A PMV-based control is expected to make occupants more comfortable and satisfied than a temperature-based control.

Case Study
To investigate the feasibility of thermal modeling of occupants and the influence of metabolic heat gain inside a building, we integrated the proposed thermal model of occupants with a simple RC-lumped building model using MATLAB/Simulink.Then, the metabolic heat gain obtained by the proposed thermal model, which considered different occupant activities, was applied to the building model as a heat source.The thermal conditions of the building, as controlled by temperature and by the PMV index, were compared to determine which control algorithm is more useful for providing human care services in smart buildings.
Table 3 describes the parameters of a building model.These parameters were used in the modelling process and the simulation of our case study.As the weather condition, we selected a cold weather.The outdoor temperature is varied against time and is given as a sinusoidal function of which amplitude is 3.The temperature varies from −3 to 3. In addition, we considered the case where the heating system is required to achieve a certain range of indoor temperature or PMV values.

Metabolic Heat Gain of Occupants.
To demonstrate how metabolic heat affects the indoor temperature of a building, we created a simple scenario of activities for a building occupant.The occupant stays in the building in a resting mode for most of the daily 24-hour period, dissipating metabolic heat of 115 W. For two hours and forty minutes, from 16:00 to 18:40, the occupant works with their hands and arms.This activity level increases dissipated metabolic heat gain to 295 W. We applied this scenario to the proposed thermal model of occupants.We developed two models in MATLAB/Simulink: (1) a static model and (2) a dynamic model.Figure 3 shows the developed thermal models of occupants integrated with a building model.The first model is a conventional model used for thermal analysis of buildings.It does not account for the thermal dynamics of users.The second model is the dynamic model proposed in Section 3. To describe the thermal characteristics of the human body, we used global thermal resistance and global thermal capacitance values of a human body as 30 W/m•K and 3770 J/kg/K, respectively.
After developing these models, we compared the influence of the heat gain generated by a static model and a dynamic model following the given occupant activity scenario inside the building.Figure 4 shows the simulated static and dynamic heat flux (ϕ dissipation ) dissipated by the occupant due to their specific activity.The heat gain simulated with a static model follows a constant value for each activity.In a resting mode, the metabolic heat gain of 115 W is dissipated by the occupant.While the occupant sustainably works with their arms and hands, the heat of 295 W is dissipated.The static model only shows a heat gain profile of the occupant in a steady state.However, the dynamic model describes a heat gain profile in a steady state and a transient state since this model considers thermal resistance and capacitance values of the occupant.In this model, heat is charged and discharged according to thermal characteristics of the occupant.
Since the occupant is thermally linked to the building, the activity of the occupant should be considered in the management of the thermal comfort and energy use of the building.Given the generated metabolic heat flux, the temperature    Despite the global decrease, note the significant temperature variation during the period from 40:00 to 42:40 or 16:00 to 18:40 of the second daily period, of the simulation.In the scenario, this is the period when the occupant continuously works with their arms and hands.While T a obtained from the static model shows the thermal dynamics of the building, T a given by the dynamic model depicts the dynamics of the occupant as well as that of the building.This demonstrates that the dynamic model describes a more accurate temperature evolution of the building.Consequently, the proposed model performs better, providing a more detailed thermal analysis, enabling an improved control strategy for thermal systems and increasing the thermal comfort of occupants.

8
Journal of Sensors Thermal controls based on temperature and PMV are both achieved based on the scenario of an occupant inside the building.Figure 7 shows the results of T a of the building and the PMV of an occupant in a resting mode.T a of model 1 is controlled between 19 °C and 24 °C, and the value of PMV of model 1 follows the variation of T a , ranging between −0.2 and 0.4.Model 2 bases control of the heater on the PMV index.If the PMV is smaller than its reference value, the heater is activated.Then, T a increases.If the PMV value is greater than its reference value, the heater ceases operations.Consequently, T a decreases.In both models, the indoor temperature and the PMV interact to each other because these are directly related to the operation of the heating system.Therefore, the trend of indoor temperature evolution is similar to that of PMV.
However, the heat dissipation of the occupant does not directly affect T a in model 1 because the heater of model 1 operates in accordance with T a as shown in Figure 8.Although the heat dissipation levels of the occupant become different as 115 W, 135 W, and 155 W, the range of T a does not change.Since thermal condition of the building is controlled by temperature, it is reasonable to obtain a fixed range of T a irrelevant to any activities of the occupant.Moreover, the considered metabolic heat gains of 115 W, 135 W, and 155 W are small enough to keep the temperature within the reference between 19 °C and 24 °C.It is why the temperature does not surpass 24 °C and that there was no requirement for a cooling system.However, it would be required to integrate the cooling system for the case where heat dissipation of occupants is high enough.
In the context of the PMV index, stronger activities cause higher metabolic heat dissipation and leads to different levels of occupant thermal comfort.Therefore, with higher metabolic heat, the value of PMV becomes higher in the same temperature condition of the building.Consequently, thermal comfort of the occupant is not assured when applying model 1 with a temperature-based controller.
Contrary to model 1, occupant thermal comfort is preferentially assured in model 2 which implements PMV-based control logic.Figure 9 depicts the T a and PMV obtained in model 2. While the range of T a is fixed from 19 °C to 24 °C for all three activities in model 1, the range of T a in model 2 shifts to account for the different heat dissipation levels of each activity.In model 2, the PMV range is fixed.To achieve PMV values within the optimum range of −0.2 and 0.2, the operation of the heater is controlled as specified in Section 3.3.Since greater heat dissipation induces the occupant to feel hotter, the range of T a is lower than when less metabolic heat dissipation occurs.This is demonstrated by the observation that the higher the metabolic heat, the lower the T a , while lower metabolic heat values result in higher T a .Since the heater operates in accordance with the PMV of the occupant, the ranges of the obtained indoor temperature under different quantity of metabolic heat gain of the occupant are differently determined while the ranges of the PMV are similar to each other.Moreover, the indoor temperature decreases when the heater is turned off because the amplitude of the outdoor temperature is between −3 and 3 °C, less than the indoor temperature.
We also implemented a scenario with different occupant activities in 24-hour cycles.The occupant rests during most of the daily cycle and dissipates metabolic heat of 115 W.However, from 16:00 to 18:40 of each 24 hour period, the occupant performs a low energy activity and dissipates metabolic heat of 180 W. Figure 10 presents the T a and PMV values for the two models over the course of two consecutive 24-hour cycles of the previously described scenario.The impact of increased occupant heat dissipation is observed in the slight increase in T a during occupant activity, despite a globally decreasing trend of T a in both models.Analogously, the increased heat gain also raises T a for both models under a globally increasing trend of T a .Note that the PMV of model 1 peaks farther from the ideal, neutral zero point than does model 2. As discussed before, these results show that increased satisfaction with human care services is achieved when comfort-based actuators are controlled on the basis of comfort-based indices.

Conclusions
To increase comfort and convenience, the scope of human care services has expanded to include ambient condition management.With the help of the sensing and communication technologies, individual occupant health profiles could be acquired and accumulated in an IoT-based smart building.The profiles would be analysed for occupant information, and the applied knowledge would enable improved services to be implemented.To achieve thermal comfort for building occupants, we proposed a dynamic thermal model of occupants based on the heat balance equation of human body and thermal characteristics of the occupants.We implemented this model in two smart building models with heaters controlled by temperature and by the PMV value, the most widely used thermal comfort index.The simulation results showed that PMV-based thermal control improves occupant thermal satisfaction when compared to temperature-based thermal control.Therefore, we suggest that PMV-based thermal control be integrated into the IoT-based smart building platform to enable improved human care services.

Figure 1 :
Figure 1: Types of human care services.

Figure 2 :
Figure 2: The basic architecture of an IoT platform in a smart building.

Figure 3 :Figure 4 :
Figure 3: Thermal models of occupants integrated in a building model: (a) static model and (b) dynamic model.

Figure 5 :
Figure 5: Indoor temperature of the building (blue broken line: static model; red line: dynamic model).

Figure 6 :
Figure 6: Important features of the building and its subsystems: (a) temperature-based controller and (b) PMV-based controller.

Table 1 :
Metabolic rates by activity.
[21] f cl is the clothing surface area factor, I cl is the thermal resistance of clothing (m 2°C /W), h c is the convective heat transfer coefficient (W/m 2°C ), v ar is the air velocity (m/s), and h r is the relative humidity (%).The PMV index is represented by 7 points from −3 to 3 as summarized in Table2.The optimal temperature is achieved when PMV is zero, indicating thermally neutral sensation, during different human activity level[21].
[22][23][24]d Control Algorithm.Thermal condition of the indoor environment is determined by maintaining a PMV in the range of −0.2 to 0.2.This range is one of the recommended thermal environments given by ISO EN 7730 and CEN standard EN 15251[22][23][24].These standards suggested the PMV value between −0.2 and 0.2 for a high level of expectation and for spaces occupied by very sensitive and fragile persons.Since our study is focused on human care services including a healthcare service, we should consider highest limitations on thermal comfort.It is why we limited the range of PMV from −0.2 to 0.2.The six parameters of PMV are measured by sensors installed in a target space and by personal wearable devices.

Table 3 :
A brief description of the used building.