<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Smart Home Systems Design Approach with the Thermal Management Problem Example</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>ITMO University</institution>
          ,
          <addr-line>Kronverksky prospekt 49, Saint Petersburg, 197101, Russian Federation</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>The aim of the research is to develop a new approach to shaping and implementation of functionality of middle price range smart home systems. The approach being developed is based on the ideas of a cyber-physical systems design paradigm and deep insights of distributed embedded systems architecture. The current state of the smart home automation systems market and issues of available products are discussed. The classi cation of smart home automation systems is given. The promising way to solve applied issues of smart home systems is demonstrated with a simple example of the thermal identi cation of an object. A brief description of the distributed LMT4Home platform used in the experiments is given.</p>
      </abstract>
      <kwd-group>
        <kwd>smart home cyber-physical systems energy e ciency object identi cation embedded systems design</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Cyber-physical systems are a modern stage of automation and embedded systems
development, which is characterized by a new level of sensors, actuators, and
computing components integration with the object under control and with each
other, as well as their high computational performance. This stage enables a
quantum leap to a signi cant increase in the complexity of the solved task using
relatively low amounts of resources and to signi cantly improve the properties
of the created systems.</p>
      <p>Within the area of smart home systems, the application of the cyber-physical
approach and its elements allows us to solve problems that previously required
expensive speci c equipment and were present only in mission-critical industrial
systems. At the same time, during the design process it is necessary to consider
the speci c features of low-cost o -the-shelf systems for the wide market and
to nd a balance between the complexity of the applied tasks, the computing
resources required, and the cost of the necessary hardware.</p>
      <p>Copyright c 2019 for this paper by its authors. Use permitted under Creative
Commons License Attribution 4.0 International (CC BY 4.0).</p>
      <p>Thus, some of the key stages in the development of modern smart home
systems are to reveal meaningful applied problems and to nd their solutions
that t the composition of embedded controllers with limited resources connected
to cloud devices (servers and terminals) via unreliable communication channels.</p>
      <p>The paper provides a brief overview of the smart home products market,
provides an example of thermal management problem solving using the limited
computing resources of home automation controllers.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Home and building automation systems</title>
      <p>The topic of home automation has been developing since the mid-'70s of the
last century. Over the past time, a huge number of solutions have been proposed
and implemented. Standards, protocols, families of hardware modules, embedded
software, SCADA, management, and service software have been developed.</p>
      <p>
        Today, a large number of diverse products related to the smart home
segment are presented on the market. Here are some examples: Wiren Board [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ],
Ksytal [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], nooLite from Nootekhnika [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. There are systems from \big
companies" such as Google, Apple (Apple Home Kit), Amazon, Xiaomi (Xiaomi
Smart Home Kit) and several others. Russian IT and telecommunication
companies such as Yandex, Rostelecom, Megafon, MTS actively develop smart home
products. House and building automation systems based on standard industrial
automation solutions (e.g. ABB i-bus R KNX and ABB-free@home R ) are still
present on the market. Technologies based on a number of standards for
industrial wired and wireless networks dominate at this market segment. For example,
KNX is the open international building automation standard (ISO/IEC
145433). Wi-Fi, ZigBee, LoRaWAN and other network standards are widely used. A
lot of various Internet services with di erent specialization and functionality are
presented for PCs, tablets, and smartphones. These products range from the
simplest hardware consoles (\Logika doma" { \Home logic" application,
Bluetooth Terminal HC-05), integration applications (IFTTT [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]) to energy analysis
services (Bidgely [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]), monitoring systems (\Nardony Monitoring" project [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ])
and full- edged SCADA (ISaGRAF , SAYMON, iRidium).
      </p>
      <p>
        From this brief overview we can conclude that the \smart home systems"
class can be divided into a number of categories:
1. The simplest devices of local automation (\smart socket").
2. Devices with remote control (\GSM socket").
3. Centralized and distributed automation devices with limited functionality
(simplest applied algorithms, no user programming).
4. Distributed systems with \deep" programmability (are often based on
industrial automation solutions).
5. Scalable intelligent systems with exible functionality, which should be based
on the principles of cyber-physical systems design [
        <xref ref-type="bibr" rid="ref7 ref8">7, 8</xref>
        ].
      </p>
      <p>Let us brie y note the main issues of today smart home systems. In the
segment of simple solutions, there is essentially no integration of functions, only
the simplest scenarios and algorithms are available. In fact, there are no
programming capabilities for the consumer. In the segment of expensive systems,
the user almost completely depends on third-party integration companies if it is
necessary to change or expand the system.</p>
      <p>Thus, the possible goal for the designers of smart home platforms today can
be the creation of exible, intelligent and end-user-customizable home
automation tools in the class of mid-range o -the-shelf solutions.
3</p>
    </sec>
    <sec id="sec-3">
      <title>LMT4Home platform</title>
      <p>
        The LMT4Home system [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] is designed for the intelligent control of various
devices in a cottage (country house), o ce or enterprise area with remote control
and monitoring of the object. Due to the unique LMT4HomeFusion technology,
the system provides a high level of various sensors and actuators integration in
automated control tasks, as well as exibility in operation algorithms tuning and
good scalability. A variant of the appearance of the controller is shown in Fig. 1.
      </p>
      <p>LMT4Home is a cyber-physical system, ready for integration into the Internet
of Things (IoT) and it already actively uses the principles of distributed
architecture, supports a variety of communication channels and cloud services. Reliable
autonomous intelligent control is provided by LMT4Home built-in algorithms,
while cloud-based monitoring, analysis, and prognosis allow expanding the
capabilities and make the person's communication with smart home automation
as comfortable and e cient as possible. LMT4HomeFusion technology is aimed
at providing functional integration of smart home services.</p>
      <p>The system allows you to combine a wide range of devices from smart sockets
and electricity meters to smartphones and tablets. The LMT4Home hardware
platform is built with highly reliable components, allowing operation in a wide
temperature range ({40...55 C). The application of industrial design and
implementation standards guarantees reliable operation of the system over a long
period of time (more than 10 years).</p>
      <p>LMT4Home is permanently evolving. This primarily refers to the expanding
base of applied algorithms. The main topics here are a set of thermal
management tasks, electrical energy management, improving the exibility and
convenience of a human-machine interface (HMI).
4</p>
    </sec>
    <sec id="sec-4">
      <title>Smart home systems implementation principles</title>
      <p>The most important principles that should be implemented in a system designed
using the proposed approach can be stated:
1. Implementation of adaptive algorithms that correct their behavior with
respect to the system working history.
2. The smallest possible amount of required initial setup and con guration, the
optimal \average" mode of operation must be preset.
3. At least two sets of parameters: a simple set for the novice user, and an
advanced set for ne-tuning.
4. High level of fault tolerance and survivability, adaptation to failures and
graceful degradation of applied functions.
5. Self-diagnosis, issuing warnings about the present and potential problems,
recommendations for improving the system and the controlled object.</p>
      <p>Formal approaches and methods that can be used to analyze data about the
object and the control system: analytical models, spline interpolation, neural
networks, fuzzy logic, statistical processing, ontologies, and others. Today, they
are more often united under the title of \Big Data Analysis". The designer's
goals are to look for a solution with minimal algorithmic complexity for a
resident implementation (in the controller) for time-critical functions and to provide
extensive cloud support for advanced analysis.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Thermal management problems</title>
      <p>As an example, let us consider a set of thermal management problems
relevant to a country house (a cottage) with a full-time or partial-time year-round
inhabitation. This is the segment of cottage settlements and summer cottage
cooperatives.</p>
      <p>The following typical subtasks can be de ned:
1. Object identi cation.
2. Object monitoring:
{ short-term monitoring for real-time control;
{ long-term monitoring for identi cation of degradation processes,
evaluation of the e ectiveness of cottage repairs, etc.;
{ emergency or failure detection.
3. Energy-e cient transfer of the object to a given thermal regime by a given
time (heating, cooling).
4. The thermal regime maintenance (stabilization).
5. Energy-e cient \safe mode" of the object (standby and conservation regimes).
6. Prediction of the state of the object in the future (short-term, long-term
prognosis).
7. Management in an emergency (failure) situation (minimization of the
damage, estimation of risks).</p>
      <p>Some of these subtasks overlap with other areas such as electrical energy
management, security, etc., but this article deals with their thermal aspect.</p>
      <p>While requesting a minimum amount of information from the user, it is
necessary to obtain the characteristics of the object for the subsequent use of
this model in energy-e cient heaters management.</p>
      <p>The developed approach is aimed at obtaining the necessary data about the
object without detailed room blueprints and thermal models provided by the
user. This will allow implementing a user application interface that has
reasonable complexity and solves thermal problems with limited controller resources,
in o ine mode, if necessary.
6</p>
    </sec>
    <sec id="sec-6">
      <title>Example of thermal identi cation of an object for a cottage</title>
      <p>Let us show an example of applying the proposed approach to the problems
of thermal management in a cottage using the LMT4Home controller. Thermal
sensors are connected to the controller to monitor the temperature inside and
outside the building. Also controller drive heater control relays.</p>
      <p>We use a simple thermal model of the room based on the electrothermal
analogy. We simulate the room as an RC circuit that can receive, accumulate
and give away heat (thermal energy). We need to calculate the thermal
resistance of the walls in the room and the rate of cooling/heating using the real
monitoring data. For this experiment, we have chosen a room with dimensions
of 2.8x1.4x2.5 m, with an electric heater with a power of 0.35 kW . The area of
the walls, ceiling, and oor of the room is 28 m2.</p>
      <p>The coe cient of thermal resistance that shows the resistance of a wall with
an area of 1 m2 can be calculated as follows:</p>
      <p>R =
(t1</p>
      <p>t2) S
Qavg
;
(1)
where S is the area of all the surfaces of the room, t1 and t2 are the
temperatures on the outer and inner surfaces of the wall, Qavg is the average power of
the heater.</p>
      <p>The controller maintains a constant temperature in the room, turning the
heater on and o in thermostat mode. As a result, the required average heater
power is determined by the temperature di erence inside and outside the room.</p>
      <p>Table 1 shows the monitoring data and calculated R values for three time
periods during October 2019. Fig. 2. shows the experimental data used for the
second case. The calculated R values are quite close to each other. As the value
of the coe cient of thermal resistance for further use, we take the average value
of the results obtained: Rexp = 3:346 m2W C .</p>
      <p>Let us also calculate thermal resistance for this wall according to the reference
data using the formula R = h= as we know the composition and properties of
the materials. h is the thickness of the layer of wall materials and is the
coe cient of their thermal conductivity.</p>
      <p>The wall consists of a layer of wood with a thickness of h = 0:05 m ( =
0:05 mWC ) and mineral wool with a thickness of h = 0:15 m ( = 0:045 mWC ).
The resistances of the individual layers of the material should be summed up.
As a result, we get Rtheor = 3:666 m2W C .</p>
      <p>A comparison of the theoretical and experimental values of thermal resistance
shows a good correlation and demonstrate the applicability of this method for
processing real monitoring data.</p>
      <p>As a next step, we determine the rate of temperature change in the room.
Thermal engineering used in the construction of buildings utilize a variant of the
classical Newton's law of cooling to determine the time needed to change the
temperature of an object in a medium with a constant temperature:
R =
ln tenv
tenv
t1 ;
t2
(2)
where tenv { environment temperature, C; t1 { the initial temperature of an
object, C; t2 { the temperature of an object after z hours, C; { coe cient
of heat accumulation of a building, hours; z { time, hours.</p>
      <p>The most reliable, su ciently accurate and simple way to determine the
coe cient of heat accumulation is the practical measurement of the air
temperature change in the room with the heating turned o and with stable outdoor
temperature in cloudy, calm, windless weather without precipitations. Table 2
shows the calculation data for two time periods during October 2019. The
formula for calculating is derived from (2).</p>
      <p>The average value of exp = 41:85 hours. Now, the calculated data can be
used to predict the temperature in the room, as well as the time necessary for
heating and cooling, amount of energy to warm up the room at the required
time, energy consumption optimization.</p>
      <p>Let us verify this by calculating the time required to warm up the room,
and following comparison with the experimental data. From the perspective of
the above calculation formulas, turning on the heater in the room is equivalent
to increasing the outdoor temperature by the amount of temperature di erence
between the room and environment that the heater can maintain. This di erence
can be calculated as derived from (1): t = (R Q)=S, and in this case (with
Q = 350 W ) it equals to 41.8 C. Then the formula (2) can be used as:
R = ln tenv + t t1 ; (3)</p>
      <p>tenv + t t2</p>
      <p>Let us provide the real conditions for warming up the room for the formula
(3): tenv = 6 C, t1 = 11 C, t2 = 23 C. The calculated time is 16.5 hours.
However, according to real data, 10 hours have passed.</p>
      <p>As can be seen from this test, the results di er by more than 1.5 times, but
for the simplest model used this is already a pretty good result. To improve the
quality of calculations, more complex models can be used. For example, it should
be taken into account that when a room cools down, the walls give heat away
rst, and the air cools later. But when a room is warmed up with a heater, things
are vice versa: the air warms up rst. Using the current model, the results can
be signi cantly improved by using the separate value of calculated during the
heating of the room. As another option, an average value calculated for cooling
and heating can be used.</p>
      <p>The presented example shows that simple models with a minimum of data
about the object are acceptable and meet the requirements of practical
applications. The user only needs to set the location of the temperature sensors and
assign a relay to control the heater. The heater power and room area are not
required in this model, because it is enough to calculate the complex parameter
(R Q)=S using the formula (1) with information about the fraction of the heater
active time in thermostat mode.</p>
      <p>Permanent monitoring of the object during the system operation allows the
system to re ne the parameters of the models and adapt to changes of the
object (sensor relocation, heater change or room redevelopment), as well as give
recommendations to the user on the power of the heater, improving the thermal
insulation of the room, etc.</p>
    </sec>
    <sec id="sec-7">
      <title>Conclusion</title>
      <p>While the problems of country house automation may seem to be solved, the
practice shows an extensive range of open problems. The real needs
(expectations) of the user from the low-cost smart home system greatly di er from what
the market o ers. Research and development activities, some examples of which
are presented in this work, certainly are promising.</p>
      <p>Application of the proposed principles for implementing the smart home
automation features demonstrates the ability to achieve a su ciently high level
of user service with limited resources. The LMT4Home platform selected for
experiments met expectations as an e ective solution for real automation of
objects and as a rather powerful and convenient tool.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Wiren</given-names>
            <surname>Board</surname>
          </string-name>
          . URL: https://wirenboard.com.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Ksytal</surname>
          </string-name>
          . URL: https://ksytal.ru.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Nootekhnika</surname>
          </string-name>
          . URL: https://www.noo.com.by.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>4. IFTTT. URL: https://ifttt.com.</mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Bidgely</surname>
          </string-name>
          . URL: https://www.bidgely.com.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6. \
          <article-title>Narodny Monitoring" project</article-title>
          . URL: https://narodmon.ru.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Lee</surname>
          </string-name>
          ,
          <source>Edward. "Cyber Physical Systems: Design Challenges"</source>
          . University of California, Berkeley.
          <source>Technical Report No. UCB/EECS-2008-8. Retrieved</source>
          <year>2008</year>
          -
          <volume>06</volume>
          -07.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Edward</surname>
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Lee</surname>
            and
            <given-names>Sanjit A.</given-names>
          </string-name>
          <string-name>
            <surname>Seshia</surname>
          </string-name>
          ,
          <article-title>Introduction to Embedded Systems, A CyberPhysical Systems Approach</article-title>
          , Second Edition, MIT Press,
          <source>ISBN 978-0-262-53381-2</source>
          ,
          <year>2017</year>
          . URL: http://LeeSeshia.org
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>LMT</given-names>
            <surname>Ltd</surname>
          </string-name>
          . URL: http://lmt.spb.ru.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>