<!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>Deep Learning and Machine Learning Techniques for Change Detection in Behavior Monitoring</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Giovanni Diraco</string-name>
          <email>giovanni.diraco@cnr.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alessandro Leone</string-name>
          <email>alessandro.leone@cnr.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andrea Caroppo</string-name>
          <email>andrea.caroppo@cnr.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pietro Siciliano</string-name>
          <email>pietro.siciliano@le.imm.cnr.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>CNR-National Research Council of Italy, IMM-Institute for Microelectronics and Microsystems</institution>
          ,
          <addr-line>Lecce 73010</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2020</year>
      </pub-date>
      <abstract>
        <p>Nowadays, smart living environments are equipped with various kinds of sensors which enable enhanced assisted living services. The availability of huge data volumes coming from heterogeneous sources, together with emerging of novel artificial intelligence methods for data processing and analysis, yields a wide range of actionable insights with the aim to help older adults to live independently with minimal supervision and/or support from others. In this scenario, there is a growing demand for technological solutions to monitor human activities and physiological parameters in order to early detect abnormal conditions and unusual behaviors. The aim of this study is to compare state-ofthe-art machine learning and deep learning approaches suitable for detecting early changes in human behavior. At this purpose, specific synthetic datasets are generated, which include activities of daily living, home locations and vital signs. The achieved results demonstrate the superiority of deep-learning techniques over traditional supervised/semi-supervised ones in terms of detection accuracy and lead-time of prediction.</p>
      </abstract>
      <kwd-group>
        <kwd>Change prediction</kwd>
        <kwd>machine learning</kwd>
        <kwd>deep learning</kwd>
        <kwd>ambient assisted living</kwd>
        <kwd>human behavior</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Frail subjects, such as elderly or disabled people, may be at risk when their health
conditions are amenable to change, as it is quite common in case of chronic
conditions. That risk can be reduced by early detecting changes in behavioral and/or
physical state, through sensing and assisted living technologies, nowadays available in
smart-living environments. Such technologies, indeed, are able to collect huge
amounts of data by days, months, and even years, providing important information
useful for early detection of changes. Moreover, early change detection makes it
possible to alert formal/informal caregivers and health-care personnel in advance when
significant changes or anomalies are detected, before critical levels are reached and so
preventing chronic diseases. The huge amounts of heterogeneous data collected by
different devices require automated analysis; thus there is a growing interest in
automatic systems for detecting abnormal activities and behaviors in the context of smart
living and elderly monitoring [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Health monitoring can benefit from knowledge held
in long-term time series of daily activities and behaviors as well as physiological
parameters [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. A lot of research has been done in the general area of human behavior
understanding, and more specifically in the area of daily activity/behavior recognition
and classification as normal or abnormal [
        <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
        ]. However, very little work is reported
in the literature regarding the evaluation of machine learning (ML) techniques
suitable for data analytics in the context of long-term elderly monitoring in smart living
environments. The purpose of this paper is to investigate the most representative
classical machine learning and deep learning (DL) techniques, by comparing them in
detecting/predicting changes in human behavior.
      </p>
      <p>The rest of this paper is organized as follows. The following Section 2 contains
related works, some background and state-of-the-art in abnormal activity/behavior
detection, with special attention paid to elderly monitoring through heterogeneous data
collected with multi-sensor systems distributed over indoor environments. Section 3
describes materials and methods used in this study, and provides an overview of the
system architecture, the long-term data generation, and the ML/DL techniques. The
findings are presented and discussed in Section 4 and Section 5, respectively. Finally,
Section 6 draws conclusions and some final remarks.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related Work</title>
      <p>
        Today’s available sensing technologies enable long-term continuous monitoring of
activities of daily living (ADLs) and physiological parameters (e.g., heart rate,
respiration rate, blood pressure, etc.) in the home environment. Normally, both wearable
and ambient sensing are used, either alone or combined, as multi-sensor systems.
Wearable motion sensors incorporate low-cost accelerometers, gyroscopes and
compasses, whereas physiological parameter sensors are based on some kind of
skincontact biosensors (e.g., heart and respiration rates, blood pressure,
electrocardiography, etc.) [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. These sensors need to be attached to a wireless wearable node, carried
or worn by the user, needed to process raw data and to transmit/store detected
events/signals. Although wearable devices have the advantage of being usable
anywhere and their detection performance is generally good (if the signal-to-noise ratio is
sufficiently high), nevertheless their usage is extremely limited by battery life time
(shortened by the intensive use of wireless communication and on-board processing,
both high energy-demanding tasks) [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], by the need to remember to wear a device,
and by the discomfort of the device itself.
      </p>
      <p>
        On the other hand, ambient sensing devices are not intrusive in terms of body
obstruction, since they require the installation of sensors around the home environment,
such as cameras (monocular/stereo, time-of-flight, Lidar, etc.), microphones, sonars,
pyroelectric infrared (PIR) sensors, radar sensors, and pressure/vibration sensors.
Such solutions, blending into the home environment, are generally well-accepted by
end-users [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
      </p>
      <p>
        The learning setups for detecting/predicting behavioral changes can be categorized
into three main categories: supervised, semi-supervised, and unsupervised
approaches. In the supervised case, abnormalities (i.e., changes) are detected via binary
classification in which both normal and abnormal behaviors (i.e., activity sequences) are
labelled and used to learn a model [
        <xref ref-type="bibr" rid="ref10 ref8 ref9">8, 9, 10</xref>
        ]. This model is then applied on real-life
data in order to classify unlabeled behaviors as normal or abnormal. The problem
with this approach is that abnormal behaviors are extremely rare in practice, and thus
the easiest way to collect them is the laboratory simulation or synthetic generation. In
the semi-supervised case, only one kind of labels, i.e., normal behaviors, are used to
train a one-class classifier [
        <xref ref-type="bibr" rid="ref11 ref12">11, 12</xref>
        ]. Behaviors that do not comply with the learned
model are labeled as outliers during the testing phase. The advantage here is that
normal behaviors, i.e., real-life data, observed during the execution of common ADLs,
are used to train the semi-supervised model (and not simulated or synthetic data as
needed in the supervised case). The last but not least important category includes
unsupervised classifiers, whose training phase does not need any labeling information
(i.e., neither normal nor abnormal behaviors) and any separation into a training and
testing phase [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. In unsupervised learning, only a small fraction of the observed
behaviors are assumed to be outliers which exhibit a rather different nature than
normal behaviors. In this case, the PRO is that unsupervised-based detection can easily
adapt to various real-life environmental and user’s conditions (where no labeling
information is available); but the disadvantage is that the unsupervised-based detection
requires a quite large amount of initial observations to be fully operational [
        <xref ref-type="bibr" rid="ref14 ref15">14, 15</xref>
        ].
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Materials and Methods</title>
      <p>For each category of learning setup, i.e., supervised, semi-supervised, and
unsupervised, one ML-based and one DL-based technique are evaluated and compared in
terms of detection performance and prediction lead-time at the varying of both normal
behaviors (NB) and abnormal behaviors (AB). All investigated ML and DL
techniques are summarized in Table 1. For that purpose, synthetic datasets are generated
by referring to common ADLs and taking into account how older people perform such
activities at their home environment (i.e., instructions and suggestions provided by
geriatricians and leading researches were taken in careful consideration). The
synthetic dataset includes six basic ADLs, four home locations in which these activities
usually take place, and five levels of basic vital signs (i.e., heart and respiratory rates)
associated with the execution of each ADL. The six ADLs are activity of eating (AE),
housekeeping (AH), physical exercise (AP), resting (AR), sleeping (AS), toileting
(AT). The considered home locations (LOCs) are bedroom (BR), kitchen (KI), living
room (LR), toilet (TO). Regarding vital signs, for simplicity and without loss of
generality, the only hear rate signal has been considered by dividing it into five levels
(HRLs): very low (VL) &lt; 50 beats/min, low (LO) ∈ [50–80] beats/min, medium (ME)
∈ [80–95] beats/min, high (HI) ∈ [95–110] beats/min, very high (VH) &gt; 110
beats/min.</p>
      <p>The objective of this study is to deeply evaluate the learning techniques reported in
Table 1 by considering abnormal datasets, obtained by including the following
perturbations:
1. Changing of the starting time of one ore more activities (St). This is a change in the
starting time of an activity, e.g., having breakfast at 9 AM instead of 7 AM as
usual.
2. Changing of the duration of one or more activities (Du). This change refers to the
duration of an activity, e.g., resting for 3 hours in the afternoon, instead of 1 hour
as usual.
3. Disappearing of one or more activities (Di). In this case, after the change, one
activity is no more performed by the user, e.g., having physical exercises in the
afternoon.
4. Swapping of two activities (Sw). After the change, two activities are per-formed in
reverse order, e.g., resting and then housekeeping instead of housekeeping and
resting.
5. Changing the location of one or more activities (Lo). One activity usually
performed in a home location (e.g., having breakfast in the kitchen), after the change
is performed in a different location (e.g., having breakfast in bed).
6. Changing in heartrate levels when performing one or more activities (Hr). This is a
change in heartrate during an activity, e.g., changing from a low to a high heartrate
during the resting activity in the afternoon.</p>
      <p>Although, the sporadic presence of above mentioned changes is not enough to
determine an abnormal condition, nonetheless a sustained change over days or months in
activities, locations, and heartrate levels may be linked to an AB. Hence, the aim of
this study is to evaluate, the ability of ML and DL techniques in predicting such
sustained changes, with the objective to notify caregivers/doctors who can use historical
sensor data to make decisions within the application domain of ambient assisted
living.</p>
      <p>In this study, both normal and abnormal long-term (1-year) datasets are
realistically generated by using a probabilistic model based on Hidden Markov Model (HMM)
and Gaussian process (GP). The evaluation metrics adopted in this study are
sensitivity (SEN) and specificity (SPE), defined as follows:
, 
=</p>
      <p>+
where TP is the number of true positives, FP is the number of false positives, TN is
the number of true negatives, and FN is the number of false negatives.
The lead-time of prediction (LTP) is defined as follows: maximum number of days,
before the day at which the change becomes stable, within which the future change
can be predicted with the highest performance, i.e., maximizing TP and TN, and
minimizing FP and FN. Thus, the higher the lead-time (in number of days), the better is
the overall prediction performance.
3.1</p>
      <sec id="sec-3-1">
        <title>Data Generation</title>
        <p>
          In this study, since HMM is used for data generation (in contrast to other studies
where HMM is used for detection purposes [
          <xref ref-type="bibr" rid="ref16 ref17">16, 17</xref>
          ]), the probabilistic model should
be able to take into account the influence of circadian rhythms on motivated behaviors
(e.g., sleep, hunger, exercise, etc.) [
          <xref ref-type="bibr" rid="ref18">18</xref>
          ]. Although suitability of HMM to model ADLs
is encouraged by previous authors’ findings [
          <xref ref-type="bibr" rid="ref19">19</xref>
          ], nonetheless further research is
needed to confirm this choice. The user’s physical state bearing diverse ADLs during
the daily circadian cycle is modelled by using three hidden states, i.e., Tired (T),
Hungry (H), and Energized (E), as depicted in Figure 1. Furthermore, each state can
lead to different activities depending on the time of the day (e.g., the state Tired may
lead to Sleeping activity in the night and to Resting activity in the afternoon). Each
arrow of the graph reported in Figure 1 is associated with a probability parameter,
which determines the probability that one state   follows another state   − 1, i.e., the
transition probability:
 
=  (  =  │  − 1 =  ),
(2)
where  ,  ∈ { ,  ,  }. The HMM output is a sequence of triples ( ,  ,  ) ∈  ×
 ×  , with ADL={AE,AH,AP,AR,AS,AT}, LOC={BR,KI,LR,TO}, and
HRL={VL,LO,ME,HI,VI} representing, respectively, all possible ADLs, home
locations, and HR levels as previously discussed.
        </p>
        <p>The temporal dependency of activities generated from hidden states is handled by
subdividing a day into four time intervals and modeling the activities in each time
interval with a dedicated HMM sub-model. For each sub-model   , thus, the first
state being activated starts at a time   modeled as a GP, while the other states within
the same sub-model   start in consecutive time slots whose durations are also
modeled as GPs.</p>
        <p>The ADL, LOC and HRL signals are, normally, sampled at different rates
according to the specific variability during day time of each signal. For example, the
minimum duration of ADLs is of about 10 min, so it is not useful to sample the ADL
signal at 1 min interval. Nonetheless, a unique sampling rate can be adopted for all
measurements. In this study, the sampling rate of 0.2 sample/min (i.e., 5 min interval
between two samples) is selected for all signals. Each dataset is represented in matrix
form with rows and columns equal to the total amount of observed days (i.e., 365
days) and to the total amount of samples per day (i.e., 288 samples), respectively. For
each dataset, the matrix cells can take 120 different values obtained by combining 6
ADLs, 4 locations, and 5 HR levels. For example, the cell value AE-KI-ME indicates
that the subject is eating her meal in the kitchen and her HR level is medium (i.e.,
between 80 and 95 beats/min). Finally, each 1-year dataset is represented by an image
of 365 × 288 pixels with 120 levels of which an example is reported in Figure 2.
Additionally, for the sake of understanding, each dataset can be represented by splitting
it into three different images, referring to ADLs (6 levels), locations (4 levels), and
HR (5 levels), as shown in Figure 3.</p>
        <p>Furthermore, to assess the ability of ML and DL techniques (reported in Table 1)
to detect behavioral abnormalities and changes, the model parameters (i.e., transition
probabilities, emission probabilities, starting times, and durations) were randomly
perturbed in order to generate various kind of abnormal datasets. Without loss of
generality, each abnormal dataset included only one of the abovementioned changes (i.e.,
St, Du, Di, Sw, Lo, Hr) at a time or pairs of them, taken without repetitions (i.e.,
StDu, StDi, StSw, StLo, StHr, etc.).</p>
        <p>In order to evaluate the detection performance of ML and DL techniques in Table
1, the HMM parameters (e.g., transition and emission probabilities, starting time and
duration of activities, etc.) are gradually perturbed between the 90th and 180th day,
by randomly interpolating the parameters of the normal and abnormal models. The
resulting perturbed dataset consists of three parts: the first one, ranging from day 1 to
day 90, is referred to normal behavior; the second one, from day 90 to 180, is
characterized by gradual changes, becoming progressively more accentuated; the third one,
starting from day 180, is very different from the initial normal period, the change rate
is low or absent, and the subject’s behavior moves into another stability period. An
abnormal dataset, referred to the St change type, is reported in Figure 4.</p>
        <p>As already anticipated, the learning problem can be addressed by means of
different learning setups, depending on the label availability. Correspondingly, there are
three main detection approaches, i.e., supervised, semi-supervised and unsupervised,
and which are taken into account in this study as discussed below.</p>
      </sec>
      <sec id="sec-3-2">
        <title>Supervised detection</title>
        <p>
          Supervised detection is based on learning techniques (i.e., classifiers) requiring
fully labelled data for training. This means that both positive samples (i.e., ABs) and
negative samples (i.e., normal behaviors) must be observed and labelled during the
training phase. However, the two label classes are typically strongly unbalanced,
since abnormal events are extremely rare in contrast to normal patterns that instead
are abundant. As a consequence, not all classification techniques are equally effective
for this situation. In practice, some algorithms are not able to deal with unbalanced
data, whereas others are more suitable thanks to their high generalization capability,
such as support vector machine (SVM) [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ] and artificial neural networks especially
those with many layers like convolutional neural networks (CNNs) which have
reached impressive performances in detection of AB from videos [
          <xref ref-type="bibr" rid="ref21">21</xref>
          ].
        </p>
      </sec>
      <sec id="sec-3-3">
        <title>Semi-supervised detection.</title>
        <p>
          In real-world applications, the supervised detection workflow described above is
not applicable due to the assumption of fully labelled data, on the basis of which
abnormalities are known in advance and correctly labeled. However, dealing with
elderly monitoring, abnormalities are not known in advance and obviously cannot be
purposely performed to train the detection algorithms. Semi-supervised detection is
usually achieved by introducing the concept of one-class classification, whose
state-ofthe-art implementations—as experimented in this study—are one-class SVM
(OCSVM) [
          <xref ref-type="bibr" rid="ref22">22</xref>
          ] and auto-encoders (AEs) [
          <xref ref-type="bibr" rid="ref23">23</xref>
          ] within ML and DL fields, respectively. DL
techniques learn features in a hierarchical way: high-level features are derived from
low-level ones by using layer-wise pre-training, in such a way structures of every
higher level are represented in higher layers of the network. After pre-training, a
semi-supervised training provides a fine-tuning adjustment of the network via
gradient descent optimization. Thanks to that greedy layer-wise pre-training followed by
semi-supervised fine-tuning [
          <xref ref-type="bibr" rid="ref24">24</xref>
          ], features can be automatically learned from large
datasets containing only one-class label, associated with normal behavior patterns.
        </p>
      </sec>
      <sec id="sec-3-4">
        <title>Unsupervised Detection.</title>
        <p>The most flexible workflow is that of unsupervised detection. It does not require
that abnormalities are known in advance but, conversely, they can occur during the
testing phase and are modelled as novelties with respect to normal (usual)
observations. The main idea is that extracted features are scored solely on the basis of their
intrinsic properties. In order to decide what is normal and not, unsupervised detection
is based on appropriate metrics of either distance or density. The distance used in this
study is defined as follows:</p>
        <p>( ̅) = ∑ =1|  | ln( ),
(3)
where  = 288 and  ̅ = ( 1,  2, … ,   ) ∈ ℝ is a day of observation, i.e., a row of
the matrix dataset.</p>
        <p>
          Clustering techniques can be applied in unsupervised detection. In particular,
Kmeans is one of the simpler unsupervised algorithms that address the clustering
problem by grouping data based on their similar features into K disjoint clusters. However,
K-means is affected by some shortcomings: (1) sensitivity to noise and outliers; (2)
initial cluster centroids (seeds) are unknown (randomly selected); and (3) there is no
criterion for determining the number of clusters. The Weighted K-Means [
          <xref ref-type="bibr" rid="ref25">25</xref>
          ], also
adopted in this study, provides a viable way to approach clustering of noisy data. The
last two problems are addressed by implementing the intelligent K-means suggested
by [
          <xref ref-type="bibr" rid="ref26">26</xref>
          ], in which the K-means algorithm is initialized by using the so-called
anomalous clusters, extracted before running the K-means itself.
3.3
        </p>
      </sec>
      <sec id="sec-3-5">
        <title>Experimental setting</title>
        <p>For the experimental purpose, 31500 datasets were generated, i.e., 1500 random
instances for each of the 21 abnormalities, obtained by considering the abnormalities
(St, Du, Di, Sw, Lo, Hr), together with all pairs of these abnormalities taken without
repetitions. Each dataset represented a 1-year data collection, as a matrix (image) of
365 rows (days) and 288 columns (samples lasting 5 min each), for a total amount of
105120 values (pixels) through 120 levels. The feature extraction process was carried
Copyright © 2020 for this paper by its authors. Use permitted under Creative
Commons License Attribution 4.0 International (CC BY 4.0).
out by considering a 50%-overlapping sliding window lasting 25 days, then leading to
a feature space of dimension D = 7200.</p>
        <p>Each dataset was divided into three parts: Upper (1st–90th days), middle (90th–
180th days), and lower (180th–365th days) regions. The feature vectors (i.e.,
ACTLOC-HRL sequences) belonging to the upper regions were negative samples (i.e.,
normal behavior), whereas those belonging to the lower regions were positive ones
(i.e., AB). The middle regions were, instead, considered as prediction regions,
characterized by gradual changes becoming progressively more accentuated. The aim is to
classify the feature vectors belonging to the middle regions in order to predict the
likelihood of a future change which will become increasingly relevant and stable from
the 180th day onwards (lower region).</p>
        <p>In both supervised and semi-supervised settings, regarding the SVM classifier, a
radial basis function (RBF) kernel was used. The kernel scale was automatically
selected using a grid search combined with cross-validation on randomly subsampled
training data. Regarding the CNN-based supervised detection, the network structure
included eight layers: four convolutional layers with a kernel size of 3 × 3, two
subsampling layers, and two fully connected layers. Finally, the two output units
represented, via binary logical regression, the probability of normal and abnormal pattern
behaviors.</p>
        <p>The stacked auto-encoder (SAE) network was structured in four hidden layers, and
the sliding-window feature vectors were given as input to the first layer, which thus
included 7200 units. The second hidden layer was of 900 units, corresponding to a
compression factor of 8 times. The following two hidden layers were of 180 and 60
units, respectively, with compression factors of 5 and 3 times. In supervised detection
settings, the six abnormal datasets were joined in order to perform a 6-fold
crossvalidation scheme. In semi-supervised detection settings, instead, only normal data
from the same dataset were used for training, while testing was carried out using data
from day 90 onwards.</p>
        <p>
          Regarding the convolutional auto-encoder (CAE) structure, the encoder included
three convolutional layers with a kernel size of five, five, and three, respectively,
followed by a fully connected layer. The decoder structure was a mirror of the
encoder one. All experiments were performed on an Intel i7 3.5 GHz workstation with
16GB DDR3 and equipped with GPU NVidia Titan X using Keras [
          <xref ref-type="bibr" rid="ref27">27</xref>
          ] with Theano
[
          <xref ref-type="bibr" rid="ref28">28</xref>
          ] toolkit for DL approaches, and Matlab [
          <xref ref-type="bibr" rid="ref29">29</xref>
          ] for ML approaches.
4
        </p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Results and discussion</title>
      <p>The achieved results are reported in Table 2 in terms of specificity, sensitivity and
LTP for all learning techniques evaluated in the present study. Note that the latter is
related to SEN and SPE since LTP refers to the average number of days, before the
180th day (from which the changed behavior becomes stable), at which the change
can be detected with such sensitivity and specificity. The longer the LTP the earlier
the change can be predicted.</p>
      <p>Generally, detecting ABs by using supervised methods presents the shortcoming of
requiring both positive samples (i.e., changing activity sequences) and negative
samples (i.e., habitual activity sequence) for model training. The SVM-based and
CNNbased detection have been evaluated by training models with positive and negative
samples taken from different datasets, in order to reproduce more accurately the
reallife conditions mentioned above. Due to the lack of real data for training discussed
above, the supervised approaches achieved the lowest detection performances.</p>
      <p>The problem of training data availability is mitigated with semi-supervised
techniques, since only negative samples (i.e., normal behaviors) are required, which are
quite abundant in everyday activities. However, the main difficulty is to select
training samples that are most representative of normal behaviors. The semi-supervised
approaches evaluated in this study, i.e., OC-SVM and SAE, achieved intermediary
detection performances, although with lower prediction performance (LTP) due to the
difficulty selection of suitable (negative) samples for training.</p>
      <p>
        The most promising results were obtained with the unsupervised learning methods,
i.e., K-means (KM) and DC, in which no labeled data were necessary, allowing the
easy adaptability to different environmental conditions as well as to users’ physical
characteristic and habits [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. The KM detection, however, required an initial
observation period during which the system was unable to detect changes from usual
activity, negatively affecting the resulting prediction performance.
      </p>
      <p>Classical ML methods, such as SVM and OC-SVM, have to deal with the problem
of learning a probability distribution from a set of samples, which generally means to
learn a probability density that maximizes the likelihood on given data. Conversely,
such density does not always exist, as what happens when data lie on
lowdimensional manifolds, which is the case of change types involving a narrow range of
values (e.g., if the change regards only few heartrate levels), or when training and
testing data come from a different probability distribution (e.g., as in the case of
supervised learning). Under such a point of view, conversely, DL methods are more
effective because they follow an alternative approach. Instead of attempting to
estimate a density, which may not exist, they define a parametric function (deep network)
able to generate samples closer to data samples taken from the original data
distribution (by hyper-parameter tuning).</p>
      <p>The contribution of this study is twofold. First, a common data model able to
represent and process simultaneously ADLs, home locations and vital signs as image
matrices is presented. Second, the performance of state-of-the-art ML-based and
DLbased detection techniques have been evaluated by considering large datasets,
synthetically generated, including both normal and abnormal behaviors. The achieved
results are promising and show the superiority of DL-based techniques in dealing with
huge datasets characterized by different kinds of data distribution. Future and ongoing
activities are focused on the evaluation of ML/DL learning techniques in different
domains, such as clinical decision support system and predictive maintenance.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Sharma</surname>
          </string-name>
          , R.;
          <string-name>
            <surname>Nah</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Sharma</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Katta</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Pang</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Yong</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <article-title>Smart living for elderly: De-sign and human-computer interaction considerations</article-title>
          .
          <source>Lect. Notes Comput. Sci</source>
          .
          <year>2016</year>
          ,
          <volume>9755</volume>
          ,
          <fpage>112</fpage>
          -
          <lpage>122</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Parisa</surname>
          </string-name>
          , R.;
          <string-name>
            <surname>Mihailidis</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <article-title>A survey on ambient-assisted living tools for older adults</article-title>
          .
          <source>IEEE J. Biomed. Health Inform</source>
          .
          <year>2013</year>
          ,
          <volume>17</volume>
          ,
          <fpage>579</fpage>
          -
          <lpage>590</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Mabrouk</surname>
            ,
            <given-names>A.B.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Zagrouba</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          <article-title>Abnormal behavior recognition for intelligent video surveillance systems: A review</article-title>
          .
          <source>Expert Syst. Appl</source>
          .
          <year>2018</year>
          ,
          <volume>91</volume>
          ,
          <fpage>480</fpage>
          -
          <lpage>491</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Bakar</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Ghayvat</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ; Hasanm,
          <string-name>
            <given-names>S.F.</given-names>
            ;
            <surname>Mukhopadhyay</surname>
          </string-name>
          ,
          <string-name>
            <surname>S.C.</surname>
          </string-name>
          <article-title>Activity and anomaly detection in smart home: A survey</article-title>
          .
          <source>Next Gener. Sens. Syst</source>
          .
          <year>2015</year>
          ,
          <volume>16</volume>
          ,
          <fpage>191</fpage>
          -
          <lpage>220</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Taraldsen</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Chastin</surname>
            ,
            <given-names>S.F.M.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Riphagen</surname>
            ,
            <given-names>I.I.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Vereijken</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Helbostad</surname>
            ,
            <given-names>J.L.</given-names>
          </string-name>
          <article-title>Physical activity monitoring by use of accelerometer-based body-worn sensors in older adults: A systematic literature review of current knowledge and applications</article-title>
          .
          <source>Maturitas</source>
          <year>2012</year>
          ,
          <volume>71</volume>
          ,
          <fpage>13</fpage>
          -
          <lpage>19</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Min</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Kang</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Yoo</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Cha</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ; Choi,
          <string-name>
            <given-names>S.</given-names>
            ;
            <surname>Oh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            ;
            <surname>Song</surname>
          </string-name>
          ,
          <string-name>
            <surname>J.</surname>
          </string-name>
          <article-title>Exploring current practices for battery use and management of smartwatches</article-title>
          .
          <source>In Proceedings of the ISWC '15 Proceedings of the 2015 ACM International Symposium on Wearable Computers</source>
          , Osaka, Japan,
          <fpage>07</fpage>
          -
          <issue>11</issue>
          <year>September 2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Stara</surname>
          </string-name>
          , V.;
          <string-name>
            <surname>Zancanaro</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ;
          <string-name>
            <given-names>Di</given-names>
            <surname>Rosa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ;
            <surname>Rossi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            ;
            <surname>Pinnelli</surname>
          </string-name>
          ,
          <string-name>
            <surname>S.</surname>
          </string-name>
          <article-title>Understanding the Interest Toward Smart Home Technology: The Role of Utilitaristic Perspective</article-title>
          . In ForItAAL; Springer: Berlin, Germany,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Miao</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Song</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <article-title>Abnormal Event Detection Based on SVM in Video Surveillance</article-title>
          .
          <source>In Proceedings of the IEEE Workshop on Advance Research and Technology in Industry Applications</source>
          , Ottawa, ON, Canada,
          <fpage>29</fpage>
          -
          <issue>30</issue>
          <year>September 2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Forkan</surname>
            ,
            <given-names>A.R.M.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Khalil</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Tari</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Foufou</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Bouras</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <article-title>A context-aware approach for long-term behavioural change detection and abnormality prediction in ambient assisted living</article-title>
          .
          <source>Pattern Recognit</source>
          .
          <year>2015</year>
          ,
          <volume>48</volume>
          ,
          <fpage>628</fpage>
          -
          <lpage>641</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Krizhevsky</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Sutskever</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ; Hinton,
          <string-name>
            <surname>G.E.</surname>
          </string-name>
          <article-title>Imagenet classification with deep convolutional neural networks</article-title>
          .
          <source>In Proceedings of the Advances in neural information processing systems</source>
          , Lake Tahoe, Nevada,
          <fpage>3</fpage>
          -
          <issue>6</issue>
          <year>December 2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Hejazi</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Singh</surname>
            ,
            <given-names>Y.P.</given-names>
          </string-name>
          <article-title>One-class support vector machines approach to anomaly detection</article-title>
          .
          <source>Appl. Artif. Intell</source>
          .
          <year>2013</year>
          ,
          <volume>27</volume>
          ,
          <fpage>351</fpage>
          -
          <lpage>366</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Krizhevsky</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Hinton</surname>
            ,
            <given-names>G.E.</given-names>
          </string-name>
          <article-title>Using very deep autoencoders for content-based image retrieval</article-title>
          .
          <source>In Proceedings of the 19th European Symposium on Artificial Neural Networks</source>
          , Bruges, Belgium,
          <fpage>27</fpage>
          -
          <lpage>29</lpage>
          April
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Otte</surname>
            ,
            <given-names>F.J.P.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Saurer</surname>
            ,
            <given-names>R.B.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Stork</surname>
            ,
            <given-names>W. Unsupervised</given-names>
          </string-name>
          <article-title>Learning in Ambient Assisted Living for Pattern and Anomaly Detection: A Survey</article-title>
          .
          <source>CCIS</source>
          <year>2013</year>
          ,
          <volume>413</volume>
          ,
          <fpage>44</fpage>
          -
          <lpage>53</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>De</surname>
            <given-names>Amorim</given-names>
          </string-name>
          , R.C.;
          <string-name>
            <surname>Mirkin</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <article-title>Minkowski metric, feature weighting and anomalous cluster initializing in K-Means clustering</article-title>
          .
          <source>Pattern Recognit</source>
          .
          <year>2012</year>
          ,
          <volume>45</volume>
          ,
          <fpage>1061</fpage>
          -
          <lpage>1075</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Chiang</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.M.T.</surname>
          </string-name>
          ;
          <string-name>
            <surname>Mirkin</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <article-title>Intelligent choice of the number of clusters in k-means clustering: An experimental study with different cluster spreads</article-title>
          .
          <source>J. Classif</source>
          .
          <year>2010</year>
          ,
          <volume>27</volume>
          ,
          <fpage>3</fpage>
          -
          <lpage>40</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Forkan</surname>
            ,
            <given-names>A.R.M.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Khalil</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Tari</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Foufou</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Bouras</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <article-title>A context-aware approach for long-term behavioural change detection and abnormality prediction in ambient assisted living</article-title>
          .
          <source>Pattern Recognit</source>
          .
          <year>2015</year>
          ,
          <volume>48</volume>
          ,
          <fpage>628</fpage>
          -
          <lpage>641</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Kim</surname>
          </string-name>
          , E.;
          <string-name>
            <surname>Helal</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Cook</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <article-title>Human activity recognition and pattern discovery</article-title>
          .
          <source>IEEE Pervasive Comput</source>
          .
          <year>2010</year>
          ,
          <volume>9</volume>
          .1,
          <fpage>48</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Antle</surname>
            ,
            <given-names>M.C.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Silver</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <article-title>Circadian insights into motivated behavior</article-title>
          . In Behavioral Neuroscience of Motivation; Springer: Berlin, Germany,
          <year>2015</year>
          ; pp.
          <fpage>137</fpage>
          -
          <lpage>169</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <surname>Caroppo</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Diraco</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ; Rescio,
          <string-name>
            <given-names>G.</given-names>
            ;
            <surname>Leone</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            ;
            <surname>Siciliano</surname>
          </string-name>
          ,
          <string-name>
            <surname>P.</surname>
          </string-name>
          <article-title>Heterogeneous sensor platform for circadian rhythm analysis</article-title>
          .
          <source>In Proceedings of the 6th IEEE International Workshop on Advances in Sensors and Interfaces (IWASI)</source>
          ,
          <source>Gallipoli, Italy, 10 August</source>
          <year>2015</year>
          , pp.
          <fpage>187</fpage>
          -
          <lpage>192</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <string-name>
            <surname>Hu</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ; Liao,
          <string-name>
            <given-names>Y.</given-names>
            ;
            <surname>Vemuri</surname>
          </string-name>
          ,
          <string-name>
            <surname>V.R.</surname>
          </string-name>
          <article-title>Robust anomaly detection using support vector machines</article-title>
          .
          <source>In Proceedings of the international conference on machine learning</source>
          , Los Angeles, California (USA),
          <fpage>23</fpage>
          -
          <lpage>24</lpage>
          June 2003; pp.
          <fpage>282</fpage>
          -
          <lpage>289</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          21.
          <string-name>
            <surname>Sabokrou</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Fayyaz</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Fathy</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Moayed</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Klette</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <article-title>Deep-anomaly: Fully convolutional neural network for fast anomaly detection in crowded scenes</article-title>
          .
          <source>Comput. Vis. Image Underst</source>
          .
          <year>2018</year>
          ,
          <volume>172</volume>
          ,
          <fpage>88</fpage>
          -
          <lpage>97</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          22.
          <string-name>
            <surname>Hejazi</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Singh</surname>
            ,
            <given-names>Y.P.</given-names>
          </string-name>
          <article-title>One-class support vector machines approach to anomaly detection</article-title>
          .
          <source>Appl. Artif. Intell</source>
          .
          <year>2013</year>
          ,
          <volume>27</volume>
          ,
          <fpage>351</fpage>
          -
          <lpage>366</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          23.
          <string-name>
            <surname>Krizhevsky</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Hinton</surname>
            ,
            <given-names>G.E.</given-names>
          </string-name>
          <article-title>Using very deep autoencoders for content-based image retrieval</article-title>
          .
          <source>In Proceedings of the 19th European Symposium on Artificial Neural Networks</source>
          , Bruges, Belgium,
          <fpage>27</fpage>
          -
          <lpage>29</lpage>
          April
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          24.
          <string-name>
            <surname>Erhan</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ; Bengio,
          <string-name>
            <given-names>Y.</given-names>
            ;
            <surname>Courville</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            ;
            <surname>Manzagol</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.A.</given-names>
            ;
            <surname>Vincent</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            ;
            <surname>Bengio</surname>
          </string-name>
          ,
          <string-name>
            <surname>S.</surname>
          </string-name>
          <article-title>Why does unsupervised pre-training help deep learning?</article-title>
          <source>J. Mach. Learn. Res</source>
          .
          <year>2010</year>
          ,
          <volume>11</volume>
          ,
          <fpage>625</fpage>
          -
          <lpage>660</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          25.
          <string-name>
            <surname>De</surname>
            <given-names>Amorim</given-names>
          </string-name>
          , R.C.;
          <string-name>
            <surname>Mirkin</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <article-title>Minkowski metric, feature weighting and anomalous cluster initializing in K-Means clustering</article-title>
          .
          <source>Pattern Recognit</source>
          .
          <year>2012</year>
          ,
          <volume>45</volume>
          ,
          <fpage>1061</fpage>
          -
          <lpage>1075</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          26.
          <string-name>
            <surname>Chiang</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.M.T.</surname>
          </string-name>
          ;
          <string-name>
            <surname>Mirkin</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <article-title>Intelligent choice of the number of clusters in k-means clustering: An experimental study with different cluster spreads</article-title>
          .
          <source>J. Classif</source>
          .
          <year>2010</year>
          ,
          <volume>27</volume>
          ,
          <fpage>3</fpage>
          -
          <lpage>40</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          27.
          <string-name>
            <surname>Chollet</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Keras</surname>
          </string-name>
          . GitHub repository. Available online: https://github.com/fchollet/keras (accessed
          <source>on February 12</source>
          ,
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          28.
          <string-name>
            <surname>Bastien</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Lamblin</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Pascanu</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ; Bergstra,
          <string-name>
            <given-names>J.</given-names>
            ;
            <surname>Goodfellow</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.J.</given-names>
            ;
            <surname>Bergeron</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            ;
            <surname>Bouchard</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            ;
            <surname>Bengio</surname>
          </string-name>
          ,
          <string-name>
            <surname>Y.</surname>
          </string-name>
          <article-title>Theano: New Features and Speed Improvements</article-title>
          .
          <source>Deep Learning and Unsupervised Feature Learning NIPS Workshop:</source>
          Lake Tahoe, California/Nevada (USA)
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref29">
        <mixed-citation>
          29.
          <string-name>
            <surname>Matlab</surname>
            <given-names>R2014</given-names>
          </string-name>
          ;
          <article-title>The MathWorks</article-title>
          , Inc.: Natick, MA, USA. Available online: https://it.mathworks.
          <source>com (accessed on March 21</source>
          ,
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>