Next Article in Journal
High-Precision Tribometer for Studies of Adhesive Contacts
Next Article in Special Issue
Few-Shot User-Adaptable Radar-Based Breath Signal Sensing
Previous Article in Journal
Preliminary Results of a Structural Health Monitoring System Application for Real-Time Debonding Detection on a Full-Scale Composite Spar
Previous Article in Special Issue
An Embedded Framework for Fully Autonomous Object Manipulation in Robotic-Empowered Assisted Living
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

The Development of an Energy Efficient Temperature Controller for Residential Use and Its Generalization Based on LSTM

by
Tudor George Alexandru
1,
Adriana Alexandru
2,3,*,
Florin Dumitru Popescu
4 and
Andrei Andraș
4,*
1
Faculty of Industrial Engineering and Robotics, University Politehnica of Bucharest, 060042 Bucharest, Romania
2
National Institute for Research and Development in Informatics, 011455 Bucharest, Romania
3
Faculty of Electrical Engineering, Electronics and Information Technology, Valahia University of Targoviste, 130004 Targoviste, Romania
4
Faculty of Mechanical and Electrical Engineering, University of Petroșani, 332009 Petrosani, Romania
*
Authors to whom correspondence should be addressed.
Sensors 2023, 23(1), 453; https://doi.org/10.3390/s23010453
Submission received: 5 December 2022 / Revised: 24 December 2022 / Accepted: 27 December 2022 / Published: 1 January 2023

Abstract

:
Thermostats operate alongside intelligent home automation systems for ensuring both the comfort of the occupants as well as the responsible use of energy. The effectiveness of such solutions relies on the ability of the adopted control methodology to respond to changes in the surrounding environment. In this regard, process disturbances such as severe wind or fluctuating ambient temperatures must be taken into account. The present paper proposes a new approach for estimating the heat transfer of residential buildings by employing a lumped parameter thermal analysis model. Various control strategies are adopted and tuned into a virtual environment. The knowledge gained is generalized by means of a long short-term memory (LSTM) neural network. Laboratory scale experiments are provided to prove the given concepts. The results achieved highlight the efficiency of the implemented temperature controller in terms of overshoot and energy consumption.

1. Introduction

In studies and reports dealing with the energy consumption of buildings, it was determined that an important percentage of the world energy consumption and carbon dioxide (CO2) emissions is linked to the residential sector [1,2,3]. Heating, ventilation and air conditioning systems (HVAC) are responsible for the vast majority of the energy usage in dwellings [4,5,6]. To achieve energy savings, it is necessary to optimize the cooling or heating process in the inside environment by regulating the heat transfer in such a way that a subtle balance is achieved between energy consumption and the comfort of the occupants. Thus, the development of sustainable HVAC systems for new buildings, and their renovation with energy saving in mind for older buildings, represents a viable means of mitigate climate change and cutting carbon emissions in this sector [7,8,9].
Intelligent (smart) home automation systems for temperature control which increase comfort and decrease the energy consumption play an important role in the above desiderata. Modeling the dynamics of room temperature is the first step in the development of temperature controllers. Afram [10] and Rao [11] classify thermal modeling approaches into three types: the white-box (or physics based) approach, the black-box (or data driven) approach, and the grey-box (or hybrid) approach.
The first modeling type [12] is based on the detailed knowledge of the process and its physics, (i.e., energy balance, thermodynamic equations, laws of conservation, etc.) and the thermal model is mathematically detailed many times by employing dedicated simulation software such as Transys [13,14], EnergyPlus [15,16], COMSOL [17,18], or Modelica [19,20].
The second modeling type does not involve any specific physical or mathematical description of the process, but rather uses data measured over time. It applies methods such as neural networks [21,22,23], nonlinear autoregressive models [24,25,26,27], or fuzzy networks [28,29] to approximate the output and model the thermal phenomena.
Finally, the third type of modeling, the grey-box approach, is a combination of the first two, benefiting from both the data-driven and physics-based models as it builds the model structure using physics-based methods and estimates the parameters of the model using performance data of the systems. This approach provides better generalization capabilities than the data-driven models and has superior accuracy to the physics-based models.
Popular grey-box models can be described as the equivalent resistor capacitor (RC) networks [30,31,32] or through machine learning, including long short-term memory models [33,34,35]. Nowadays, to simplify the model description, grey-box approaches make use of lumped parameter modeling techniques, where several elements of a certain process are “lumped” into a unique node in order to simplify the model computations. This term was originally coined in the 1970s, and ever since, a plethora of applications of the lumped parameter model [36,37,38,39,40,41,42] applied to the representation of parts of the heating controls or systems in thermal simulations have emerged.
Based on the grey-box modeling principles, our paper proposes a new approach for the estimation of heat transfer in residential buildings, using a lumped parameter thermal analysis model. The scope of our research is to develop a temperature controller and its generalization using machine learning by means of a LSTM neural network. The original contribution consists of the actual model development, the analysis of the disturbances on the lumped conductance and capacitance of the system, and the control variable generalization based on the recorded weather data.
Future work will include correlating the data processed from the smart home systems, such as the occupants’ behavior patterns/templates and the controller model, in order to study their influence on the artificial intelligence algorithm.
The paper is organized as follows: Section 1 Reviews Literature On Modeling The room temperature control, with emphasis on grey-box methods, where our approach also fits; Section 2 introduces the theoretical considerations regarding heat transfer in residential buildings; and Section 3 describes the proposed approach, at first schematically and then by detailing the methodology step-by-step. In the first stage, a laboratory scale experimental setup is developed, including a thermostat circuit. A simulation model is proposed for recreating the heat transfer that occurs in the interior space of the enclosure. The lumped conductance and capacitance of the fluid domain are parameterized based on experiments that were carried out in a disturbance free environment. In the next stage, the thermal analysis module is coupled with a numerical computing environment for developing and tuning a proportional-integral-derivative (PID) temperature controller. Benchmarking of the resulting model was completed during November 2021. The experiments took place in the interior and exterior locations of the Laboratory of Prototypes, Building CF from the University Politehnica of Bucharest, Romania. A wide range of process disturbances were identified and correlated with the weather conditions of that month. Based on these findings, this paper proposes an improved control methodology. Its generalization is carried out using an LSTM neural network for facilitating its future use as part of smart home automation systems.
In the final section, discussion of the results takes place and concluding remarks are drawn.

2. Theoretical Aspects of Heat Transfer Inside Residential Buildings

Generally speaking, the thermal exchange between two systems is called heat transfer, occurring from the hot to the cold system. In the case of buildings, heat transfer inside them is important from the design phase, starting from choice of building material and the passive and active HVAC systems required to assure an optimal thermal condition with minimum resource consumption. Heat transfer happens by various mechanisms such as conduction, convection, and radiation of phase change, and the thermal behavior of a building or room is governed by a function of the dynamic relationship between these mechanisms. Usually, heat is transferred within solids by conduction, in fluids by conduction and convection, and in open space by radiation. In practice, these types of heat transfer may occur together.
In the case of rooms, heat energy is transferred by conduction, convection, and radiation. Conduction describes heat transfer through walls, the floor, ceiling, and furniture, convection describes heat transfer in the internal air inside the room, and radiation describes the heat coming from the outside through the windows but mostly from heat sources (radiators, stoves, etc.) to objects in the room.
In the case of radiation from the heat sources in a room, if the environment has objects inside that are both transparent (windows, doors, glass, etc.) and opaque (furniture, appliances, walls, etc.), surface-to-surface type radiation is assumed. Thus, the radiative heat flux can be defined for both opaque and transparent surfaces.

2.1. Radiative Heat Flux in the Case of Opaque Surfaces

Consider a body with an opaque surface which transmits no radiation. For its surface with absorptivity α, emissivity ε, diffuse reflectivity ρd, specular reflectivity ρs, refractive index n, and temperature T, if we consider a point P on that surface, there is an incoming radiative flux G called irradiation and an outgoing radiative flux J called radiosity [43], as represented in Figure 1.
Radiosity is defined as the quantity of emitted radiation summed with the diffusely reflected radiation:
J = ε e b ( T ) + ρ d G
where e b ( T ) is the total radiated power across all wavelengths. Based on the Stefan-Boltzmann law, this is dependent on the fourth power of the temperature T:
e b ( T ) = T 4 n 2 σ
where n is the refractive index, and σ = 5.67 · 10−8 W/m2K4 is the Stefan–Boltzmann constant.
Then, the net inward radiative heat flux Q results as the difference between irradiation and outgoing radiation (i.e., specular reflected radiation summed with radiosity):
Q = G ( ρ s G + J )
which can be also expressed as:
Q = ( 1 ρ s ) G J .
The radiosity J can be removed from equations 1 to 4, thus a general expression of the net inward heat flux can be written based on G and T for opaque bodies, as:
Q = [ 1 ( ρ d + ρ s ) ] G ε e b ( T ) .
Since most opaque bodies behave as ideal gray bodies, the emissivity and absorptivity are equal, and then the reflectivity ( ρ d + ρ s ) can be derived from the equation:
ε = α = 1 ( ρ d + ρ s ) .
So, for the ideal gray bodies, the inward radiative heat flux q can be expressed as:
Q = ε ( G e b ( T ) ) .

2.2. Radiative Heat Flux in the Case of Semi-Transparent Surfaces

Consider a body with a semi-transparent surface which transmits some radiation. For such a body, we consider a point P on this surface, with upper side emissivity εu, diffuse reflectivity ρd,u, specular reflectivity ρs,u, refractive index nu, temperature Tu, lower side emissivity εd, diffuse reflectivity ρd,d, specular reflectivity ρs,d, refractive index nd, and temperature Td as shown in Figure 2.
For this point P, there is an incoming radiative flux called irradiation as shown in Figure 2a., noted with Gu on the upper side and Gd on the lower side, and a total diffuse outgoing radiative flux called radiosity and noted with Ju on the upper side (Figure 2b) and Jd on the lower side. This radiosity is the sum of emitted radiation, transmitted radiation, and diffusively reflected radiation from the other side of the semi-transparent body:
J u = ε u e b , u ( T u ) + ρ d , u G u
J d = ε d e b , d ( T d ) + ρ d , d G d .
The net inward radiative heat fluxes on the upper and lower side, Qu and Qd, respectively, are given as the difference between the irradiation and the radiosity:
Q u = ( 1 ρ s , u τ u ) G u J u
Q d = ( 1 ρ s , d τ d ) G d J d .
Bodies behave like ideal gray bodies, so the emissivity is equal to the absorptivity. Hence, the reflectivity ρs can be obtained from equations:
ε u + ρ d , u = 1 ρ s , u τ u
ε d + ρ d , d = 1 ρ s , d τ d .
If Ju and Jd are eliminated from Equations (8) to (13), a general expression of the net inward heat fluxes can be written, based on Gu, Gd, Tu, and Td for semi-transparent bodies:
Q u = ε u ( G u e b , u ( T u ) )
Q d = ε d ( G d e b , d ( T d ) ) .
So, for the ideal gray bodies, the inward radiative heat flux Q can be expressed as:
Q = ε u ( G u e b , u ( T u ) ) + Q d = ε d ( G d e b , d ( T d ) ) .
Regardless of the transmittance of the surface, rays incident at an angle (measured between the ray and its normal to the surface) bigger than the critical angle θc are not transmitted but have a contribution to the total reflection. As a result, a coefficient of directional transmissivity can be defined:
τ ( θ ) = { τ   f o r   θ θ c 0   f o r   θ > θ c .
Based on the equation:
ρ s ( θ ) + τ ( θ ) = 1 ( ε + ρ d )
it can be written that:
ρ s ( θ ) = { ρ s   f o r   θ θ c ρ s + τ   f o r   θ > θ c .
Surface to surface radiation modeling uses the radiosity method, where temperature and wavelength depend on surface properties. The ray-shooting approach is used to estimate emissivity, specular reflectivity, and transmissivity, which are dependent on the incident angle. Next, the azimuth and polar angles can be defined as θ∈[0, π/2] and φ∈[−π, π] as shown in Figure 3. The directional surface properties can be decomposed as sums and defined as functions of θ, φ, and also other quantities such as temperature or spatial coordinates.
Emissivity (Equation (20)), transmissivity (Equation (21)), and specular reflectivity (Equation (22)) can be expressed, respectively, as:
ε t o t ( θ , φ , T , x ) = f ε ( θ , φ ) + ε ( T , x )
τ t o t ( θ , φ , T , x ) = f τ ( θ , φ ) + τ ( T , x )
ρ s , t o t ( θ , φ , T , x ) = 1 ρ d ε t o t ( θ , φ , T , x ) τ t o t ( θ , φ , T , x ) .

2.3. Evalation of the View Factor

A view factor is a measure of the influence of radiosity in a given part of a boundary on the irradiation at a different part. The total irradiation G at a given point is the sum of three contributing irradiations: the mutual irradiation Gm that comes from other boundaries, the irradiation from external sources Gext, and the ambient irradiation Gamb. It can be written as:
G = G m + G e x t + G a m b = G m + G e x t + ε a m b F a m b e b ( T ) .
The radiosity J is a function of Gm, so the radiation balance equation can be written as:
J = ρ d ( G m ( J ) + G e x t + G a m b ) + ε e b ( T ) .
In Equation (23), Famb is the ambient view factor and Gm is the integral of the differential view factor on all visible points times the radiosity of the source point of the radiation. If we consider a point P on a surface as represented in Figure 4, it is visible by points such as P on other surfaces such as S and also from the ambient surroundings Samb.
If it is assumed that points on surface S have a radiosity noted J and that the ambient surroundings have a constant temperature noted Tamb, then the mutual irradiation Gm at point P is expressed by the integral:
G m = S ( n r ) ( n r ) π | r | 4 J d s .
The heat flux arriving from P depends on the radiosity J projected on P, where the projection is calculated using normal vectors n and n’ and vector r pointing from P to P’. Similarly, the ambient view factor Famb can be determined from the integral of the surfaces S’ and can be written as:
F a m b = 1 F = 1 S ( n r ) ( n r ) π | r | 4 d s .

3. Materials and Methods

3.1. A Schematic Representation of the Proposed Approach

The proposed methodology consists of five layers of abstraction that divide the problem of thermal modeling and control in distinct hardware and software practices. Figure 5 depicts a schematic representation of the approach with an emphasis on the information exchanges that take place.
A description of the abstraction layers is discussed below:
  • The experimental layer stands at the core of the approach, comprising a laboratory scale experimental setup that is employed for capturing both the heat transfer and temperature control problems of interior spaces that are found in residential buildings. In this regard, temperature sensing hardware and a thermostat circuit are included. The interaction between the two materializes a closed-loop controller;
  • The simulation layer includes the software that is required for modeling the plant (the combination between the experimental setup and its heating system) by means of a lumped parameter simulation model. Experimental data is used for parameterizing the conductance and capacitance of the fluid domain that is found in the interior space of the enclosure. A numeric computing environment is employed for developing and tuning a PID temperature controller. This objective is achieved at first in a disturbance free environment and then by repeating the experiments in the exterior for one month. The conductance and capacitance of the fluid domain are adjusted to account for process disturbances due to weather conditions. Thus, an improved control methodology can be achieved;
  • The process disturbance layer materializes two physical environments: one interior environment that is characterized by no disturbing factors (i.e., temperature variations or fluctuating heat transfer due to forced convection) and the exterior environment that is subjected to process disturbances due to the weather conditions. Both environments are used for developing and tuning an adequate control methodology;
  • The generalization layer: the knowledge gained throughout the research can be encompassed in sequential data that characterizes the response of the improved control methodology when subjected to process disturbances. Thus, a LSTM recurrent neural network can be employed to generalize the behavior of the controller for any given scenario;
  • The smart home automation layer: machine learning is a constitutive part of smart home automation. Thus, the LSTM model developed in the previous layer can interact with such domestic systems. Furthermore, multiple features can be included in the supervised learning process for widening the sources of process disturbances.

3.2. The Experimental Platform

A laboratory scale experimental setup is employed for recreating the heat transfer that occurs in residential buildings. In this regard, a 300 × 300 × 250 mm enclosure is developed by employing common building materials.
The setup consists of a poplar plywood enclosure that is held together by means of 4 cornices. The exterior walls of the structure are insulated by polystyrene panels. Plexiglas windows are positioned in the centroid of two opposing walls. The heating of the internal space is achieved by employing ceramic resistors as heating elements.
As seen in Figure 6, monitoring and control of the thermostat circuit is carried out by means of a microcontroller and an acquisition PC.
The main components of the experimental setup are emphasized in Figure 7 with detailed description, name, and numbering described in Table 1.
The control and monitoring of the internal temperature of the enclosure are achieved with the support of an external circuit, which is represented schematically in Figure 8.
Temperature feedback is provided by a Tc-k thermocouple that is connected to a MAX6675 amplifier for cold junction compensation. The output signal achieved by means of the serial peripheral interface (SPI) communication protocol is fed to the digital input pins of the thermostat microcontroller (Sparkfun Red Board).
The maximum power that is dissipated by the resistors is controlled by means of a power metal–oxide–semiconductor field-effect transistor (MOSFET). An active cooling system is employed to maintain the temperature of the MOSFET below its operational limits. The actuating signal is generated by employing the pulse-width modulation (PWM) technique on the digital output pins of the microcontroller.
A switching power supply is used for powering up the thermostat and the heating elements. An AC power meter is employed for benchmarking the energy usage of the thermostat circuit.

3.3. The Simulation Model

A lumped parameter model is developed for capturing the thermal behavior of both fluid and solid domains of the enclosure. This objective is achieved by employing a 2D heat transfer finite element method (FEM) approach. The governing equation of heat conduction is expressed by [44]:
x ( k T x ) + y ( k T y ) + G = 0
where T represents the nodal temperatures, k the thermal conductivity, and G the internal heat generation.
Only a section of the entire structure is analyzed, comprising a planar representation of the side walls, windows, and the heating elements. The air inside the enclosure is modeled by membrane elements. Thermal contact conductance (TCC) is included for limiting the thermal flux that occurs at the boundary between the solid and fluid domains [45]:
q = k c ( T i T j )
where q represents the thermal flux, ke the thermal contact conductance, and Ti,j the temperatures at the contacting nodes.
The capacitance (Cth) of the fluid domain is modeled by employing a 0D thermal mass element that is characterized by the specific heat matrix [46]:
[ C e t ] = [ C t h ]
where Cth represents the lumped capacitance of the element.
Equations (28) and (29) are employed to overcome the unrealistic solid representation of the fluid domain.
Given the fact that thermal analysis by FEM materializes a first order system, a lumped parameter behavior can be imposed by matching the time constant and temperature gain of the system with experimentally derived values. Symmetry is used to lower the computational demands of the solving process. The vertical planes of the exterior walls materialize the cold plate. In this regard, isothermal natural convection is assumed, the value of the film coefficient being dependent on the environmental temperature.
Figure 9 depicts the simulation model and an example of temperature gradients that occur at the fluid domain level when the heating elements are switched on at full power, with an ambient temperature of 18 °C.
The following software were used for completing the study:
  • MSC Patran 2007: a general purpose pre- and postprocessor which was used in the first stage for the graphical definition of the finite elements that materialize the experimental setup. Sections of the simulation input file (i.e., the material data or the heat transfer conditions) were defined based on an automated procedure. After solving the equations, the result files were processed as tabular data and fringe plots;
  • LMS SAMCEF v15.1: a finite element analysis solver package which includes an extended library of macro elements. Using it, lumped parameter modeling can be carried out for a wide range of thermal and mechanical problems. Another advantage of this software suite is its direct interfacing ability with numerical computing environments, such as MATLAB. Therefore, the solver can operate either standalone (when an input file is provided) or as co-simulation (when results of the analysis are used as input for the numerical computing environment or vice-versa).

3.4. Identifying the Lumped Parameters of the Simulation Model

TCC and Cth can only be identified by evaluating the step response of the real-world experimental setup. To this end, the PWM signal is set to its limit value. This change takes place in one second, causing the heat that is dissipated by the resistors to max out. The objective of the experiment is to evaluate the temperature of the fluid domain inside the enclosure, until an equilibrium value is reached. The study was carried out in an open space environment that has a constant ambient temperature of 18 °C throughout the test sequence. Figure 10a depicts the shape of the actuating signal while Figure 10b illustrates the time vs. temperature curve.
Afterwards, the time constant and temperature gain of the resulting curve are evaluated.
In the next stage, the TCC (Figure 11a) and Cth (Figure 11b) of the simulation model are decided based on a sensitivity study that highlights the relationship between the two variables and the response of the system.
Given the linear relationship between the values, the baseline TCC was decided as 1.04 W/m2·°C, while the Cth that matches the time constant of the system was estimated as 1 · 106 J/°C.

3.5. Development of a PID Thermostat

The development of the PID thermostat requires, in the first stage, coupling the lumped parameter simulation model with a numerical computing environment for developing and tuning a temperature control methodology. MATLAB Simulink was chosen as the ideal candidate. On one hand, it has the ability to exchange information with finite element solvers. On the other, its toolboxes ease the control methodology development process. Furthermore, data acquisition can be carried out with the thermostat microcontroller to implement the controller in the real-world environment.
A co-simulation approach is proposed by coupling SAMCEF Thermal with MATLAB Simulink. This objective is achieved with the support of an S-function [47]:
F ( x , y , t ) = ( f ( x ; y , t ) g ( y ; x , t ) ) = ( 0 0 )
where x represents the nodal temperature of the fluid domain from the SAMCEF environment and y represents the actuating signal that is generated by the closed-loop controller in MATLAB Simulink. In Equation (27), f(x; y, t) = 0 and g(y; x, t) = 0 are solved for the unknown x for a given value of y and t.
Figure 12 depicts the schematic representation of the Simulink model used for developing and tuning the PID thermostat.
The data transfer between Simulink and SAMCEF occurs based on one input (the power dissipation at the level of the resistors) and one output (the nodal temperature of the fluid domain). For achieving convergence, the exchange time step was adjusted to 0.01 s. The PID Thermostat subsystem includes the PID controller definition in the parallel form [48]:
C = K p + K i s + K d s T f s + 1
where Kp represents the proportional gain, Ki the integral gain, Kd the derivative gain, and Tf the first-order derivative filter time constant.
Saturation limit is imposed at the maximum output of the PWM signal. On the other hand, the clamping method is employed to avoid integral windup [49].
Tuning of the controller gains is carried out by employing the PID tuner toolbox to achieve a balance between performance and robustness [50]. For the given plant, the tuning constants were decided as: Kp = 23.95, Ki = 0.15, and Kd = −219, with a filtered derivative coefficient of 0.009. Based on the defined gains, the controller has a rise time of 271 s, a settling time of 964 s, and an overshoot of 7.9%.

3.6. Ideal Environment Simulation

In the next stage, the Simulink environment is set up to interactively communicate with the microcontroller of the thermostat. Thus, the output of the PID controller is converted into a PWM signal that will adjust the input voltage of the heating elements. The temperature change in the plant is measured by means of SPI data acquisition that is carried out from the MAX6675 amplifier. An S-function is defined for this purpose. Figure 13 depicts the information exchange between the physical hardware and the Simulink PID controller.
The thermostat is tested for a setpoint value of 20 °C. Figure 14 emphasizes the behavior of the controller in terms of input (amplitude of the PWM signal) and output values (the temperature inside of the enclosure).

3.7. Simulation in the Exterior Environment

The exterior environment of residential buildings represents a source of heat transfer disturbances for thermostats; for example, changes in the wind speed or direction cause the forced convection film coefficients of the external walls to change. On the other hand, the amount of cloud covering the sky limits or enhances the thermal gradients occurring on the exterior surface of windows due to radiation heat transfer. Therefore, the performances of the temperature controller can only be verified by testing the operation of the experimental setup in the exterior environment. To this end, the enclosure and its electronics were positioned outside of the building as shown in Figure 15.
The circuit of the thermostat was insulated to prevent its damage due to moisture or low temperatures. Moreover, the acquisition PC and the switching power supply were kept inside. Experiments were conducted between the 1 and 30 November 2021 at the Laboratory of Prototypes, Building CF from the Politehnica University of Bucharest. The set point temperature was decided as 20 °C. Figure 16 depicts the time vs. temperature graph and the shape of the PWM actuating signal for the entire simulation period.

3.8. Evaluation of the Process Disturbances

While the controller proved the ability to maintain the temperature inside the enclosure at 20 °C, an overshoot of +1 °C can be noticed on the 18 November. On the other hand, an undershoot value of −0.8 °C can be noticed on the 10 November. In total, the Digital AC Power Meter has recorded a 10.56 KWh power draw for the entire period, and the maximum instantaneous power draw recorded was 0.041 KW when the thermostat circuit was operating at full capacity.
These events were correlated with the weather conditions that were extracted from the Ido.ro website (Table 2) [51].
A recurring pattern can be noticed between the minimum, maximum, and average values. For example, the average temperature difference between the two days is 8.35 °C. On the other hand, the average humidity difference between the two days is 43%. Furthermore, the average wind speed difference is 12 Km/h while the average pressure difference is 3.4 mmHg.
To quantify these process disturbances, the actuating signal derived from the controller for the 18 November is transferred to the SAMCEF simulation model. Given the fact that the environment surrounding the enclosure is a catalyst for heat removal (by natural or forced convection) or heat generation (by radiation), it is important to take such influences into account. In the ideal simulation model, heat is removed from the enclosure by isothermal natural convection. For the maximum output of the resistors, the nodal reaction occurring on the exterior walls is depicted in Figure 17.
The resulting curve can be approximated by means of a transfer function with a single pole and no zeroes by employing the system identification roolbox from MATLAB [52]:
G ( s ) = 0.0013 s + 0.000094 .
A 95% match was achieved between the nodal reaction of the simulation model and the step response of the derived first order system.
In the next stage, the inverse of the resulting transfer function is carried out by multiplying the inverted G(s) with a fast dynamics second order transfer function:
G ( s ) i n v e r t e d = 1 G ( s ) 1 0.01 s 2 + 0.2 s + 1 .
Thus, a correlation can be achieved between the actuating signal and the heat that is absorbed or released through the external walls of the enclosure.
In the next stage, the energy that is dissipated by the resistors is scheduled in the lumped parameter model, alongside the power that is exchanged through the external walls, to recreate the behavior of the system for the 18 November (Figure 18).
By comparing the experimental values with the ones achieved by simulation, the impact of the process disturbances is clearly visible in case of the minimum and maximum temperatures. A parametric study is developed to limit such error sources by employing an algorithm that is based on the bisection method (Figure 19).
In the first stage, the maximum and minimum temperatures are extracted from the initial experimental and simulation results. The bisection method is employed to update the TCC of the fluid domain in the simulation model if the identified values have differences between them that exceed 2%. This process is carried out until convergence is achieved. In the next stage, the same approach is employed for evaluating the time step at which the minimum and maximum temperature values occur. For the present study, corrections of −4.97% were applied to the initial conductance of the model. On the other hand, corrections of +6.23% were required for the initial capacitance of the model. Due to these changes, the behavior of the plant is different compared to the ideal environment. Thus, the controller gains require retuning. The new values are: Kp = 2.04, Ki = 0.001, and Kd = −277.9 with a filter coefficient of 0.009.
To estimate the energy savings due to the tuned control methodology, the amplitude of the actuating signal is correlated with the maximum instantaneous power draw from the thermostat circuit (0.041 KW from the log of the Digital AC Power Meter). In this case, the improved methodology demands 0.325 KWh while the original controller required 0.344 KWh. Thus, energy savings of 2.63% can be achieved. Furthermore, the controller managed to maintain the setpoint temperature, the maximum error being +0.1 °C instead of +0.8 °C (Figure 20).
Based on these findings, the methodology was extended for the entire month. Table 3 depicts the TCC and Cth corrections and the tuned controller gains for a selection of days with high process disturbances.
In the next stage, a multiple linear regression analysis is attempted for predicting the tuned controller gains in accordance with the weather conditions. A linear relationship can be observed between the average temperature of each day and the Kp, Ki, and Kd gains (Figure 21).
Linear relationships can also be noticed between the average humidity and the controller gains, as well as average wind speed and the controller gains. On the other hand, no linear relationship was identified between the average atmospheric pressure and the controller gains. Thus, the average atmospheric pressure is removed from the analysis. The results of the multiple linear regression are presented in Table 4.
The Multiple R value is greater than 0.9 for all predicted controller gains, emphasizing a high degree of linear relationship among the variables. On the other hand, the coefficient of determination (R Square) has a minimum value of 0.82 for Kp, meaning that 82% variation in the dependent variable can be explained by the independent one. The adjusted R Square value has a minimum value of 0.80 for Kp, confirming the fact that 80% of the points fit the regression line. Overall, the precision of the multiple regression analysis is characterized by a maximum standard error of 1.49% in case of the Kd gains.
Based on the general form of the regression analysis [53]:
Y = β 0 + β 1 X 1 + β 2 X 2 + β 3 X 3 .
The intercept (β0) and each corresponding coefficients (β1…3) are presented in Table 5 for predicting the Kp, Ki, or Kd gains (Y) by knowing the average temperature (X1), average humidity (X2), and average wind speed (X3) for a given day.

3.9. LSTM Generalization

The next objective of the present work consists of generalizing the behavior of the tuned control methodology for any given weather conditions. In this way, the approach can be implemented successfully as part of smart home automation systems.
The LSTM recurrent neural network is employed to generalize the behavior of the actuating signal based on the weather conditions and interior temperature. In the proposed model, the input layer consists of a 3D array comprising sequential data regarding the ambient temperature (°C), humidity (%), wind speed (Km/h), and interior temperature (°C). All features were normalized by employing the min–max scaling technique. A stack of two LSTM layers is added to capture the abstract concepts in the sequences. The rectified linear unit is used as activation function. The generalization ability of the model is improved by employing the dropout regularization method. Thus, LSTM units are randomly excluded during the training process. The choice of hidden units and dropout rates that ensure an optimal convergence were decided as: 100 hidden units for both layers, having a dropout rate of 10% (Figure 22).
In the output layer, a continuous value is predicted that corresponds to the behavior of the actuating signal. The iterative update of the weights is achieved by employing the Adam optimizer. Typical to a regression problem, the mean squared error is used for evaluating the convergence of the model.
The response of the thermostat is recreated by considering a wide range of operational scenarios in the Simulink–SAMCEF environment:
  • Ideal conditions occur when the weather is found in an equilibrium state for long time periods. In this scenario, the effort of the controller to maintain the set point value is low;
  • Step response occurs due to the sudden change of the weather conditions (i.e., varying ambient temperature or wind speeds). This state is characterized by spikes in the actuating signal that compensate the disturbances;
  • Limit response is characterized by severe weather conditions (i.e., days with average high wind speeds and low temperatures). In this operational state, the actuating signal is close to its saturation limit;
  • Limit overshot represents an operational state in which the weather conditions cause the controller to switch off (i.e., ambient temperatures that exceed the set point value). During such periods, the actuating signal decreases to 0 while overshoot from the set point occurs due to the external factors.
The aim of the simulation study is not to accurately recreate weather conditions, but rather to provide examples of the actuating signal behavior under different cases of disturbances for facilitating the supervised learning process. In total, 90,000 rows are provided for training and test purposes.
Of the values, 70% are used for training the model and the remaining 30% are used for evaluating the prediction accuracy. TensorFlow 2.0 with Keras machine learning library is employed for defining the LSTM architecture. A total number of 5 epochs is chosen for training. During each epoch, the mean square error loss function is monitored for evaluating the prediction accuracy of the model. After the first epoch, the loss function had a value of 0.0495 while at epoch 5 the value was minimized to 0.0060.
The accuracy of the model is tested by comparing the predicted actuating signal by the LSTM with the tuned control methodology for the 18 November. Figure 23 depicts the resulting curves.
The findings indicated that the actuating signal predicted by the LSTM neural network has the ability to recreate the behavior of the actuating signal that is generated by the tuned control methodology with high fidelity. The following error metrics confirm the accuracy of the model:
  • Mean Absolute error: 0.0025;
  • Mean Squared error: 1.60 · 10−5;
  • Root Mean Squared Error: 0.004.
The LSTM methodology is further employed for predicting the behavior of the tuned controller for November 2021.To this end, the inputs of the model consist of the weather condition and the temperatures recorded inside the enclosure (derived from the simulation model). The information is extracted for intervals of 30 min. Thus, the resulting test dataset includes a total of 1440 rows. Figure 24 depicts the shape of the predicted actuating signal and the temperatures achieved by simulation for the given inputs.

4. Results and Discussion

The power draw of the generalized controller can be estimated as 10.15 KWh. From this perspective, the proposed approach achieves 4% more power efficiency compared to the initial thermostat that was tuned in an ideal environment. Furthermore, the overshoot was minimized, given the maximum temperature error of +0.21 °C that occurred on the 27 November.
However, Figure 24 emphasizes localized situations when the actuating signal exceeds the lower saturation limit bounds (also on the 27 November). In this case, the PWM signal has a negative value of –0.15 that cannot occur in practice. Changes are required to the proposed algorithm for filtering such values.
The reliability of the study and outcomes from the simulation model are verified in three stages:
  • By matching the conductance and capacitance of the lumped parameter model with the experimental data. In this regard, the temperatures derived from the simulation model match the temperature curves derived from the experiments under step-loading;
  • By testing the control methodology that was developed with the support of the simulation model on a physical thermostat circuit. In this regard, the ability of the PID controller to maintain its setpoint value proves the accuracy of the simulated vs. real-world plant;
  • By generalizing the behavior of the actuating signal that was derived by the improved control methodology. The stable operation and increased power efficiency of the thermostat confirms the validity of the given concepts.
A wide amount of literature on the thermal modeling of residential buildings is available. The described approaches rely less on experimental data in the development stage, as compared to this work. However, they involve high computation demands because they rely on computational fluid dynamics software. Thus, their use in conjunction with numerical computing environments is limited. In comparison, the approach presented in this paper can be employed for extended simulation studies given the efficiency of the reduced order model. Even so, computational fluid dynamics software is employed most of the time for explicitly modeling the fluid flow and its impact on the thermal behavior of the living space. From this perspective, the existing methodologies take into account the 3D representation of both solid and fluid domains of the problem. Therefore, the computational demands of such methodologies are high. Furthermore, their use in conjunction with numerical computing environments is limited.
Limitations of the work: As seen in the previous section, the LSTM model does not fully take into account the lower saturation bounds. Another important limitation of the research is the fact that the experimental setup does not fully recreate the heat transfer that occurs in residential buildings, given the living habits of the occupants.
Future work: Future work will focus on developing an algorithm that can improve the LSTM predictions by filtering the actuating signal values that exceed the saturation limits of the actuator. Moreover, the neural model can be modified to include the behavioral patterns of occupants in the learning process. Thus, the approach can be correlated directly with a smart home automation system.

5. Conclusions

The present paper proposes a new approach for estimating the heat transfer in residential buildings by employing a lumped parameter simulation model. Both the fluid and the solid domains of the problem are captured by means of 2D membrane elements. A laboratory scale experimental setup is developed, comprising common building and insulation materials. The thermal behavior of the interior space is evaluated under step-load heating in a disturbance free environment. Given the first-order representation of the process, thermal contact conductance and capacitance are included at the fluid domain levels for replicating the temperature gain and time constants of the experimentally derived temperature curves. The results achieved confirm the ability of the lumped parameter simulation model to recreate the heat transfer that occurs in real-world conditions. Coupling between MATLAB Simulink and the SAMCEF solver is carried out for developing and tuning a PID thermostat. The experimental setup is tested in exterior conditions for one month. Changes in the behavior of the plant occur due to the varying weather. Therefore, superior controller efficiency can be achieved for each calendar day by retuning the controller gains. A multiple linear regression analysis is developed, considering the average temperature, wind speed, and humidity for one day as independent variables, and the tuned controller gains as the dependent ones. The improved methodology was verified for the 18 November, given the high process disturbances of that date. Compared to the initial controller, the proposed approach achieved 4% more energy efficiency while minimizing the temperature error from +0.8 °C to +0.25 °C. In the next stage, multiple operational scenarios were simulated in the Simulink–SAMCEF environment. The results were used to train an LSTM recurrent neural network. In this way, the actuating signal of the improved controller can be predicted in accordance with the weather data and the interior temperature.

Author Contributions

Conceptualization, T.G.A., A.A. (Adriana Alexandru) and F.D.P.; methodology, T.G.A.; software, T.G.A., A.A. (Andrei Andraș).; writing—original draft preparation, A.A. (Andrei Andraș)., T.G.A., F.D.P.; writing—review and editing, T.G.A., A.A. (Adriana Alexandru). 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

Data used in this study is available on request from the first author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Santamouris, M.; Vasilakopoulou, K. Present and future energy consumption of buildings: Challenges and opportunities towards decarbonisation. e-Prime-Adv. Electr. Eng. Electron. Energy 2021, 1, 100002. [Google Scholar] [CrossRef]
  2. IEA. Global Status Report for Buildings and Construction 2019; IEA: Paris, France, 2019; Available online: https://www.iea.org/reports/global-status-report-for-buildings-and-construction-2019 (accessed on 12 October 2022).
  3. IEA. Energy Technology Perspectives 2020; IEA: Paris, France, 2020; Available online: https://www.iea.org/reports/energy-technology-perspectives-2020 (accessed on 12 October 2022).
  4. Cao, X.; Dai, X.; Liu, J. Building energy-consumption status worldwide and the state-of-the-art technologies for zero-energy buildings during the past decade. Energy Build. 2016, 128, 198–213. [Google Scholar] [CrossRef]
  5. Franco, A.; Miserocchi, L.; Testi, D. HVAC Energy Saving Strategies for Public Buildings Based on Heat Pumps and Demand Controlled Ventilation. Energies 2021, 14, 5541. [Google Scholar] [CrossRef]
  6. Simpeh, E.K.; Pillay, J.-P.G.; Ndihokubwayo, R.; Nalumu, D.J. Improving energy efficiency of HVAC systems in buildings: A review of best practices. Int. J. Build. Pathol. Adapt. 2022, 40, 165–182. [Google Scholar] [CrossRef]
  7. Eichhammer, W.; Fleiter, T.; Schlomann, B.; Faberi, S.; Fioretto, M.; Piccioni, N.; Lechtenböhmer, S.; Schüring, A.; Resch, G. Study on the Energy Savings Potentials in EU Member States, Candidate Countries and EEA Countries: Final Report for the European Commission Directorate-General Energy and Transport; Fraunhofer Institute for Systems and Innovation Research ISI: Karlsruhe, Germany, 2011. [Google Scholar]
  8. CEU. European Council-Conclusions-EUCO (169/14); CEU: Brussels, Belgium, 2014. [Google Scholar]
  9. Ruparathna, H.K.; Sadiq, R. Improving the energy efficiency of the existing building stock: A critical review of commercial and institutional buildings. Renew. Sustain. Energy Rev. 2016, 53, 1032–1045. [Google Scholar] [CrossRef]
  10. Afram, A.; Janabi-Sharifi, F. Review of modeling methods for HVAC systems. Appl. Thermal Eng. 2014, 67, 507–519. [Google Scholar] [CrossRef]
  11. Rao, D.V.; Ukil, A. Modeling of room temperature dynamics for efficient building energy management. IEEE Trans. Syst. Man Cybern.-Syt. 2017, 50, 717–725. [Google Scholar] [CrossRef]
  12. Foucquier, A.; Robert, S.; Suard, F.; Stéphan, L.; Jay, A. State of the art in building modeling and energy performance prediction: A review. Renew. Sustain. Energy Rev. 2013, 23, 272–288. [Google Scholar] [CrossRef] [Green Version]
  13. Milanowski, M.; Cazorla-Marín, A.; Montagud-Montalvá, C. Energy Analysis and Cost-Effective Design Solutions for a Dual-Source Heat Pump System in Representative Climates in Europe. Energies 2022, 15, 8460. [Google Scholar] [CrossRef]
  14. TRNSYS. Transient System Simulation Tool. Available online: http://www.trnsys.com (accessed on 15 October 2022).
  15. EnergyPlus. Available online: https://energyplus.net (accessed on 15 October 2022).
  16. Jeon, B.-K.; Kim, E.-J. White-Model Predictive Control for Balancing Energy Savings and Thermal Comfort. Energies 2022, 15, 2345. [Google Scholar] [CrossRef]
  17. Popescu, F.D.; Radu, S.M.; Andraș, A.; Brînaș, I.; Budilică, D.I.; Popescu, V. Comparative Analysis of Mine Shaft Hoisting Systems’ Brake Temperature Using Finite Element Analysis (FEA). Materials 2022, 15, 3363. [Google Scholar] [CrossRef] [PubMed]
  18. Andras, A.; Brînaș, I.; Radu, S.M.; Popescu, F.D.; Popescu, V.; Budilică, D.I. Investigation of the Thermal Behaviour for the Disc-Pad Assembly of a Mine Hoist Brake Using COMSOL Multiphysics. Acta Tech. Napoc.-Ser. Appl. Math. Mech. Eng. 2021, 64, 227–234. [Google Scholar]
  19. Jorissen, F.; Helsen, L. Integrated Modelica Model and Model Predictive Control of a Terraced House Using IDEAS. In Proceedings of the 13th Modelica Conference, Regensburg, Germany, 4–6 March 2019. [Google Scholar]
  20. Modelica. Available online: https://modelica.org (accessed on 15 October 2022).
  21. Macas, M.; Moretti, F.; Fonti, A.; Giantomassi, A.; Comodi, G.; Annunziato, M.; Pizzuti, S.; Capra, A. The role of data sample size and dimensionality in neural network based forecasting of building heating related variables. Energy Build. 2016, 111, 299–310. [Google Scholar] [CrossRef]
  22. Afram, A.; Janabi-Sharifi, F.; Fung, A.S.; Raahemifar, K. Artificial neural network (ANN) based model predictive control (MPC) and optimization of HVAC systems: A state of the art review and case study of a residential HVAC system. Energy Build. 2017, 141, 96–113. [Google Scholar] [CrossRef]
  23. Bile, A.; Tari, H.; Grinde, A.; Frasca, F.; Siani, A.M.; Fazio, E. Novel Model Based on Artificial Neural Networks to Predict Short-Term Temperature Evolution in Museum Environment. Sensors 2022, 22, 615. [Google Scholar] [CrossRef] [PubMed]
  24. Ríos-Moreno, G.J.; Trejo-Perea, M.; Castañeda-Miranda, R.; Hernández-Guzmán, V.M.; Herrera-Ruiz, G. Modelling temperature in intelligent buildings by means of autoregressive models. Automat. Constr. 2007, 16, 713–722. [Google Scholar] [CrossRef]
  25. Delcroix, B.; Ny, J.L.; Bernier, M.; Azam, M.; Qu, B.; Venne, J.S. Autoregressive neural networks with exogenous variables for indoor temperature prediction in buildings. Build. Simul. 2021, 14, 165–178. [Google Scholar] [CrossRef]
  26. Thilker, C.A.; Bacher, P.; Cali, D.; Madsen, H. Identification of non-linear autoregressive models with exogenous inputs for room air temperature modelling. Energy AI 2022, 9, 100165. [Google Scholar] [CrossRef]
  27. Aliberti, A.; Bottaccioli, L.; Macii, E.; Di Cataldo, S.; Acquaviva, A.; Patti, E. A Non-Linear Autoregressive Model for Indoor Air-Temperature Predictions in Smart Buildings. Electronics 2019, 8, 979. [Google Scholar] [CrossRef] [Green Version]
  28. Killian, M.; Mayer, B.; Kozek, M. Effective fuzzy black-box modeling for building heating dynamics. Energy Build. 2015, 96, 175–186. [Google Scholar] [CrossRef]
  29. Chen, K.; Jiao, Y.; Lee, E.S. Fuzzy adaptive networks in thermal comfort. Appl. Math. Lett. 2006, 19, 420–426. [Google Scholar] [CrossRef]
  30. Bacher, P.; Madsen, H. Identifying suitable models for the heat dynamics of buildings. Energy Build. 2011, 43, 1511–1522. [Google Scholar] [CrossRef] [Green Version]
  31. Coffman, A.R.; Barooah, P. Simultaneous identification of dynamic model and occupant-induced disturbance for commercial buildings. Build. Environ. 2018, 128, 153–160. [Google Scholar] [CrossRef] [Green Version]
  32. Cui, B.; Fan, C.; Munk, J.; Mao, N.; Xiao, F.; Dong, J.; Kuruganti, T. A hybrid building thermal modeling approach for predicting temperatures in typical, detached, two-story houses. Appl. Energy 2019, 236, 101–116. [Google Scholar] [CrossRef]
  33. Ellis, M.J. Machine learning enhanced grey-box modeling for building thermal modeling. In Proceedings of the 2021 American Control Conference (ACC), New Orleans, LA, USA, 25–28 May 2021; pp. 3927–3932. [Google Scholar]
  34. Xu, C.; Chen, H.; Wang, J.; Guo, Y.; Yuan, Y. Improving prediction performance for indoor temperature in public buildings based on a novel deep learning method. Build Environ. 2019, 148, 128–135. [Google Scholar] [CrossRef]
  35. Elmaz, F.; Eyckerman, R.; Casteels, W.; Latré, S.; Hellinckx, P. CNN-LSTM architecture for predictive indoor temperature modeling. Build Environ. 2021, 206, 108327. [Google Scholar] [CrossRef]
  36. Cotta, R.M.; Mikhailov, M.D. Heat Conduction–Lumped Analysis, Integral Transforms, Symbolic Computation; John Wiley and Sons: Chichester, UK, 1997. [Google Scholar]
  37. Sadat, H. A general lumped model for transient heat conduction in one-dimensional geometries. Appl. Therm. Eng. 2005, 25, 567–576. [Google Scholar] [CrossRef]
  38. Zarrella, A.; Prataviera, E.; Romano, P.; Carnieletto, L.; Vivian, J. Analysis and application of a lumped-capacitance model for urban building energy modelling. Sustain. Cities Soc. 2020, 63, 102450. [Google Scholar] [CrossRef]
  39. Panão, M.J.O.; Santos, C.A.; Mateus, N.M.; da Graça, G.C. Validation of a lumped RC model for thermal simulation of a double skin natural and mechanical ventilated test cell. Energy Build. 2016, 121, 92–103. [Google Scholar] [CrossRef]
  40. Underwood, C.P. An improved lumped parameter method for building thermal modeling. Energy Build. 2014, 79, 191–201. [Google Scholar] [CrossRef] [Green Version]
  41. Dimitriou, V.; Firth, S.K.; Hassan, T.M.; Kane, T.; Coleman, M. Data-driven simple thermal models: The importance of the parameter estimates. Energy Procedia 2015, 78, 2614–2619. [Google Scholar] [CrossRef]
  42. Ramallo-González, A.P.; Eames, M.E.; Coley, D.A. Lumped Parameter Models for Building Thermal Modelling: An Analytic Approach to Simplifying Complex Multi-Layered Constructions. Energy Build. 2013, 60, 174–184. [Google Scholar] [CrossRef] [Green Version]
  43. Incropera, F.P.; DeWitt, D.P.; Bergman, T.L.; Lavine, A.S. Fundamentals of Heat and Mass Transfer, 8th ed.; John Wiley & Sons: Hoboken, NJ, USA, 2018. [Google Scholar]
  44. Woodbury, K.A.; Najafi, H.; Beck, J.V. Exact analytical solution for 2-D transient heat conduction in a rectangle with partial heating on one edge. Int. J. Therm. Sci. 2017, 112, 252–262. [Google Scholar] [CrossRef]
  45. Kumar, A.; Rana, S.; Gori, Y.; Sharma, N.K. Thermal Contact Conductance Prediction Using FEM-Based Computational Techniques. In Advanced Computational Methods in Mechanical and Materials Engineering; CRC Press: Boca Raton, FL, USA, 2021; pp. 183–217. [Google Scholar]
  46. Rincon-Tabares, J.S.; Velasquez-Gonzalez, J.C.; Ramirez-Tamayo, D.; Montoya, A.; Millwater, H.; Restrepo, D. Sensitivity Analysis for Transient Thermal Problems Using the Complex-Variable Finite Element Method. Appl. Sci. 2022, 12, 2738. [Google Scholar] [CrossRef]
  47. Samtech, S.A. SAMCEF User Manuals; Crouzier Régis: Liege, France, 2013; pp. 1–94. [Google Scholar]
  48. Chaturvedi, M.; Juneja, P.K.; Chauhaan, P. Effect of implementing different PID algorithms on controllers designed for SOPDT process. In Proceedings of the 2014 International Conference on Advances in Computing, Communications and Informatics (ICACCI), Delhi, India, 24–27 September 2014; IEEE: Piscataway, NJ, USA, 2014; pp. 853–858. [Google Scholar]
  49. Nath, U.M.; Dey, C.; Mudi, R.K. Designing of anti-windup feature for internal model controller with real-time performance evaluation on temperature control loop. In Proceedings of the 2019 2nd International Conference on Intelligent Computing, Instrumentation and Control Technologies (ICICICT), Kannur, India, 5–6 July 2019; Volume 1, pp. 787–790. [Google Scholar]
  50. Shein, W.W.; Tan, Y.; Lim, A.O. PID controller for temperature control with multiple actuators in cyber-physical home system. In Proceedings of the 2012 15th International Conference on Network-Based Information Systems, Melbourne, Australia, 26–28 September 2012; pp. 423–428. [Google Scholar]
  51. Wheather in Bucharest and Ilfov County (Vremea în București și județul Ilfov). Available online: https://vremea.ido.ro/Bucuresti.htm (accessed on 7 November 2022).
  52. Royer, S.; Thil, S.; Talbert, T.; Polit, M. A procedure for modeling buildings and their thermal zones using co-simulation and system identification. Energy Build. 2014, 78, 231–237. [Google Scholar] [CrossRef]
  53. Kothapalli, S.; Totad, S.G. A real-time weather forecasting and analysis. In Proceedings of the 2017 IEEE International Conference on Power, Control, Signals and Instrumentation Engineering (ICPCSI), Chennai, India, 21–22 September 2017; pp. 1567–1570. [Google Scholar]
Figure 1. Representation of irradiation G and radiosity J.
Figure 1. Representation of irradiation G and radiosity J.
Sensors 23 00453 g001
Figure 2. (a) Representation of upper side and lower side incoming radiation Gu, Gd and (b) upper side outgoing radiosity Ju.
Figure 2. (a) Representation of upper side and lower side incoming radiation Gu, Gd and (b) upper side outgoing radiosity Ju.
Sensors 23 00453 g002
Figure 3. Polar and azimuth angle representation.
Figure 3. Polar and azimuth angle representation.
Sensors 23 00453 g003
Figure 4. Geometry representation for surface-to-surface radiation.
Figure 4. Geometry representation for surface-to-surface radiation.
Sensors 23 00453 g004
Figure 5. The proposed approach and its layers of abstraction.
Figure 5. The proposed approach and its layers of abstraction.
Sensors 23 00453 g005
Figure 6. The experimental setup and its main subsystems.
Figure 6. The experimental setup and its main subsystems.
Sensors 23 00453 g006
Figure 7. Description of the laboratory scale test platform.
Figure 7. Description of the laboratory scale test platform.
Sensors 23 00453 g007
Figure 8. Schematic representation of the thermostat and temperature acquisition circuits.
Figure 8. Schematic representation of the thermostat and temperature acquisition circuits.
Sensors 23 00453 g008
Figure 9. Representation of the 2D heat transfer simulation approach.
Figure 9. Representation of the 2D heat transfer simulation approach.
Sensors 23 00453 g009
Figure 10. (a) Step input PWM signal and (b) output response temperature.
Figure 10. (a) Step input PWM signal and (b) output response temperature.
Sensors 23 00453 g010
Figure 11. (a) Matching the TCC and (b) Cth of the model to the behavior of the physical system.
Figure 11. (a) Matching the TCC and (b) Cth of the model to the behavior of the physical system.
Sensors 23 00453 g011
Figure 12. Simulink–SAMCEF co-simulation strategy.
Figure 12. Simulink–SAMCEF co-simulation strategy.
Sensors 23 00453 g012
Figure 13. The connection between Simulink and the physical hardware.
Figure 13. The connection between Simulink and the physical hardware.
Sensors 23 00453 g013
Figure 14. (a) Time vs. temperature graph and (b) shape of actuating signal.
Figure 14. (a) Time vs. temperature graph and (b) shape of actuating signal.
Sensors 23 00453 g014
Figure 15. The experimental setup employed in the exterior environment.
Figure 15. The experimental setup employed in the exterior environment.
Sensors 23 00453 g015
Figure 16. (a) Temperature inside the enclosure and (b) actuating signal of the controller.
Figure 16. (a) Temperature inside the enclosure and (b) actuating signal of the controller.
Sensors 23 00453 g016
Figure 17. Nodal reaction heat flow of the convection boundary condition.
Figure 17. Nodal reaction heat flow of the convection boundary condition.
Sensors 23 00453 g017
Figure 18. Experimental vs. simulation temperature curves for the 18 November.
Figure 18. Experimental vs. simulation temperature curves for the 18 November.
Sensors 23 00453 g018
Figure 19. Flowchart of the algorithm employing for quantifying the process disturbances.
Figure 19. Flowchart of the algorithm employing for quantifying the process disturbances.
Sensors 23 00453 g019
Figure 20. (a) Temperature inside the enclosure for the original control methodology and (b) temperature inside the enclosure for the tuned control methodology.
Figure 20. (a) Temperature inside the enclosure for the original control methodology and (b) temperature inside the enclosure for the tuned control methodology.
Sensors 23 00453 g020
Figure 21. Linear relationship between the ambient temperature and the tuned controller gains.
Figure 21. Linear relationship between the ambient temperature and the tuned controller gains.
Sensors 23 00453 g021
Figure 22. Graphical representation of the LSTM and its hyperparameters.
Figure 22. Graphical representation of the LSTM and its hyperparameters.
Sensors 23 00453 g022
Figure 23. The response of the LSTM actuating signal in comparison with the tuned control methodology for the 18 November.
Figure 23. The response of the LSTM actuating signal in comparison with the tuned control methodology for the 18 November.
Sensors 23 00453 g023
Figure 24. (a) The actuating signal predicted by LSTM and (b) the simulated temperatures.
Figure 24. (a) The actuating signal predicted by LSTM and (b) the simulated temperatures.
Sensors 23 00453 g024
Table 1. Detailed specifications of the elements of the laboratory scale test platform (Figure 7).
Table 1. Detailed specifications of the elements of the laboratory scale test platform (Figure 7).
NumberName of the ComponentDescription
1Side walls polystyrene insulation15 mm thickness expanded polystyrene insulation panels
2Plexiglas window100 × 100 × 3 mm Plexiglas panel
3Poplar plywood celling/floor6 mm thickness
4Poplar plywood walls
5Steel elbow2 mm thickness standard steel
6Group of resistors30 W total power dissipation
7PVC cornice0.5 mm thickness
8Tc-k thermocouple±0.25 °C resolution
Table 2. Data regarding weather conditions for the 10 and 18 November 2021.
Table 2. Data regarding weather conditions for the 10 and 18 November 2021.
DateTemperature (°C)Humidity (%)Wind Speed (Km/h)Pressure (mmHg)
MinMaxAvg.MinMaxAvg.MinMaxAvg.MinMaxAvg.
10 November 202108.884.365310081.11.614.47.3768771770
18 November 20211.118.95.56549374.3011.26.23759.7763.5760.8
Table 3. A selection of different TCC and Cth corrections.
Table 3. A selection of different TCC and Cth corrections.
DayAverage Temperature (°C)Average Humidity (%)Average Wind Speed (Km/h)Average Pressure (mmHg)CorrectionsTuned Gains
TCC (%)Cth (%)KpKiKd
1 November 202110.0485.43.97753.8−4.23+5.5126.3930.178−228.965
5 November 202113.7378.63.52753.9+0.08+2.3424.4850.161−219.555
10 November 20214.3681.17.3770−6.2+7.727.4890.190−233.453
13 November 20215.2388.87.51759−7.00+7.5927.7190.191−235.467
18 November 20215.5674.36.23760.8−4.97+6.2326.7750.182−230.648
24 November 20213.0086.34.76762.1−6.7+6.8127.4130.188−234.830
26 November 20212.9985.35.86748.4−7.55+6.6827.6420.189−236.997
29 November 20217.8889.1811.7738.5−8.95+9.1228.7130.201−240.261
30 November 20213.1386.711.7744.7−10.6+10.129.5040.208−244.545
Table 4. Results of the multiple linear regression analysis.
Table 4. Results of the multiple linear regression analysis.
Regression Statistics
Prediction for KpPrediction for KiPrediction for Kd
Multiple R0.9100.9130.964
R Square0.8280.8340.930
Adjusted R Square0.8090.8150.922
Standard Error0.5320.0051.493
Observations30
Table 5. Intercept and coefficients of the multiple linear regression analysis.
Table 5. Intercept and coefficients of the multiple linear regression analysis.
Intercept and Coefficients
Prediction for KpPrediction for KiPrediction for Kd
Intercept20.9240.136−194.030
Average temperature (°C)−0.150−0.0010.917
Average humidity (%)0.0690.001−0.431
Average wind speed (Km/h)0.2960.003−1.107
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

Alexandru, T.G.; Alexandru, A.; Popescu, F.D.; Andraș, A. The Development of an Energy Efficient Temperature Controller for Residential Use and Its Generalization Based on LSTM. Sensors 2023, 23, 453. https://doi.org/10.3390/s23010453

AMA Style

Alexandru TG, Alexandru A, Popescu FD, Andraș A. The Development of an Energy Efficient Temperature Controller for Residential Use and Its Generalization Based on LSTM. Sensors. 2023; 23(1):453. https://doi.org/10.3390/s23010453

Chicago/Turabian Style

Alexandru, Tudor George, Adriana Alexandru, Florin Dumitru Popescu, and Andrei Andraș. 2023. "The Development of an Energy Efficient Temperature Controller for Residential Use and Its Generalization Based on LSTM" Sensors 23, no. 1: 453. https://doi.org/10.3390/s23010453

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