<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Public Health</journal-id>
<journal-title>Frontiers in Public Health</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Public Health</abbrev-journal-title>
<issn pub-type="epub">2296-2565</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fpubh.2023.1086671</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Public Health</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>The use of deep learning for smartphone-based human activity recognition</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name><surname>Stampfler</surname> <given-names>Tristan</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="author-notes" rid="fn002"><sup>&#x02020;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/2035854/overview"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name><surname>Elgendi</surname> <given-names>Mohamed</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="corresp" rid="c001"><sup>&#x0002A;</sup></xref>
<xref ref-type="author-notes" rid="fn002"><sup>&#x02020;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/499556/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Fletcher</surname> <given-names>Richard Ribon</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/773647/overview"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name><surname>Menon</surname> <given-names>Carlo</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="corresp" rid="c002"><sup>&#x0002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/76764/overview"/>
</contrib>
</contrib-group>
<aff id="aff1"><sup>1</sup><institution>Biomedical and Mobile Health Technology Lab, Department of Health Sciences and Technology, ETH Zurich</institution>, <addr-line>Zurich</addr-line>, <country>Switzerland</country></aff>
<aff id="aff2"><sup>2</sup><institution>Mobile Technology Group, Department of Mechanical Engineering, Massachusetts Institute of Technology (MIT)</institution>, <addr-line>Cambridge, MA</addr-line>, <country>United States</country></aff>
<aff id="aff3"><sup>3</sup><institution>Department of Psychiatry, Massachusetts General Hospital</institution>, <addr-line>Boston, MA</addr-line>, <country>United States</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: Teodora Sandra Buda, Meta Platforms, Inc., Spain</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: Sen Qiu, Dalian University of Technology, China; Sakorn Mekruksavanich, University of Phayao, Thailand; Ivan Miguel Pires, Universidade da Beira Interior, Portugal</p></fn>
<corresp id="c001">&#x0002A;Correspondence: Mohamed Elgendi <email>moe.elgendi&#x00040;hest.ethz.ch</email></corresp>
<corresp id="c002">Carlo Menon <email>carlo.menon&#x00040;hest.ethz.ch</email></corresp>
<fn fn-type="other" id="fn001"><p>This article was submitted to Digital Public Health, a section of the journal Frontiers in Public Health</p></fn>
<fn fn-type="equal" id="fn002"><p>&#x02020;These authors have contributed equally to this work and share first authorship</p></fn></author-notes>
<pub-date pub-type="epub">
<day>28</day>
<month>02</month>
<year>2023</year>
</pub-date>
<pub-date pub-type="collection">
<year>2023</year>
</pub-date>
<volume>11</volume>
<elocation-id>1086671</elocation-id>
<history>
<date date-type="received">
<day>01</day>
<month>11</month>
<year>2022</year>
</date>
<date date-type="accepted">
<day>27</day>
<month>01</month>
<year>2023</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x000A9; 2023 Stampfler, Elgendi, Fletcher and Menon.</copyright-statement>
<copyright-year>2023</copyright-year>
<copyright-holder>Stampfler, Elgendi, Fletcher and Menon</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p></license> </permissions>
<abstract>
<p>The emerging field of digital phenotyping leverages the numerous sensors embedded in a smartphone to better understand its user&#x00027;s current psychological state and behavior, enabling improved health support systems for patients. As part of this work, a common task is to use the smartphone accelerometer to automatically recognize or classify the behavior of the user, known as human activity recognition (HAR). In this article, we present a deep learning method using the Resnet architecture to implement HAR using the popular UniMiB-SHAR public dataset, containing 11,771 measurement segments from 30 users ranging in age between 18 and 60 years. We present a unified deep learning approach based on a Resnet architecture that consistently exceeds the state-of-the-art accuracy and F1-score across all classification tasks and evaluation methods mentioned in the literature. The most notable increase we disclose regards the leave-one-subject-out evaluation, known as the most rigorous evaluation method, where we push the state-of-the-art accuracy from 78.24 to 80.09% and the F1-score from 78.40 to 79.36%. For such results, we resorted to deep learning techniques, such as hyper-parameter tuning, label smoothing, and dropout, which helped regularize the Resnet training and reduced overfitting. We discuss how our approach could easily be adapted to perform HAR in real-time and discuss future research directions.</p></abstract>
<kwd-group>
<kwd>digital health</kwd>
<kwd>deep learning</kwd>
<kwd>data science</kwd>
<kwd>public health</kwd>
<kwd>smartphone</kwd>
<kwd>activity recognition</kwd>
<kwd>physical activity</kwd>
<kwd>wearable technology</kwd>
</kwd-group>
<counts>
<fig-count count="7"/>
<table-count count="6"/>
<equation-count count="4"/>
<ref-count count="37"/>
<page-count count="11"/>
<word-count count="6622"/>
</counts>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<title>Introduction</title>
<p>Human activity recognition (HAR) is an emerging field in health research that seeks to better understand human movements and behaviors (<xref ref-type="bibr" rid="B1">1</xref>). Researchers are increasingly working on HAR systems to translate measurements from wearable devices and smartphones into physical activity (<xref ref-type="bibr" rid="B2">2</xref>, <xref ref-type="bibr" rid="B3">3</xref>). Analyzing data collected <italic>via</italic> the HAR systems remain challenging (<xref ref-type="bibr" rid="B4">4</xref>, <xref ref-type="bibr" rid="B5">5</xref>). Moreover, understanding and modeling HAR data across different situations are needed for more personalized and effective interventions to improve health and wellbeing (<xref ref-type="bibr" rid="B6">6</xref>).</p>
<p>Digital phenotyping is defined as the moment-by-moment quantification of the individual-level human phenotype <italic>in situ</italic> using data from personal digital devices (<xref ref-type="bibr" rid="B7">7</xref>). Smartphones have become the device of choice for conducting digital phenotyping (<xref ref-type="bibr" rid="B6">6</xref>), as they have become a growing trend concerning the adoption rate over the last decade, even among senior adults (<xref ref-type="bibr" rid="B8">8</xref>). Beyond the pervasiveness of the smartphone, it has also improved many dimensions that make digital phenotyping with it increasingly convenient, notably its quantity and diversity of sensors, its sensor accuracy, its connectivity, its computing power, and its memory.</p>
<p>Studies have determined that users have their smartphones on them on average 36% of the daytime, a rate that increases when considering movement phases (<xref ref-type="bibr" rid="B9">9</xref>). Thus, the smartphone can easily transform into a convenient monitoring tool whose usage can be used in the form of apps covering several areas, such as mental health (<xref ref-type="bibr" rid="B9">9</xref>), regular health (<xref ref-type="bibr" rid="B10">10</xref>), or even fitness (<xref ref-type="bibr" rid="B11">11</xref>). The review by Straczkiewicz et al. (<xref ref-type="bibr" rid="B2">2</xref>) on HAR underlines the importance of finding a method that has the potential to generalize well, for example, from subjects in the laboratory to a free-living setting. It was also pointed out that HAR research should use make a more systemic use of publicly available dataset to benchmark their HAR recognition approach, a hint that we chose to follow for our study.</p>
<p>Some research also follows a multi-sensor approach for HAR, where the outputs of multiple sensors are conjointly analyzed to classify an activity (<xref ref-type="bibr" rid="B12">12</xref>). While this approach is likely to offer, in theory, a better performance perspective, it needs to be more practical. We will focus on a dataset employing the smartphone exclusively as a sensor.</p>
<p>In parallel, machine learning has greatly evolved during the last decade regarding performance and accessibility. Digital phenotyping revolves around types of tasks that machine learning is particularly well suited to tackle in a systematic way, such as regression or classification. In terms of time-series analysis, the focus of this article, deep learning architectures have replaced the paradigm of handcrafted feature engineering. Different families of neural net architectures such as CNN and RNN have been shown to outperform classical methods on benchmarks of more than 128 time-series datasets (<xref ref-type="bibr" rid="B13">13</xref>). As neural nets have evolved to deeper and more complex architectures, new architectures, such as Resnet, have emerged that incorporate features such as connecting non-contiguous activation layers, to address numerical problems such as vanishing or exploding gradient calculations. Therefore, we sought to optimize Resnet for HAR using data from a smartphone&#x00027;s accelerometer.</p>
<p>Developing robust models for HAR is challenging, and here, we attempt to optimize the development of these models. In this study, we will explore the use of deep learning for HAR and how it can be brought to improve state-of-the-art results. We will additionally discuss the challenges and limitations of our approach. The essential steps to conducting a deep learning-based HAR system will be addressed to pave the future development of this field.</p></sec>
<sec id="s2">
<title>Method</title>
<p>We present below a description of the data and the deep learning architecture used for this research.</p>
<sec>
<title>Dataset choice</title>
<p>We chose to work with the UniMiB-SHAR dataset (<xref ref-type="bibr" rid="B14">14</xref>), whose data were collected in 2016. A prompt comparison with other popular datasets for human activity recognition from the literature is found in <xref ref-type="table" rid="T1">Table 1</xref>. Our main motivations for choosing the UniMiB-SHAR dataset are the following:</p>
<list list-type="simple">
<list-item><p><bold>Popularity</bold>: It has over 300 citations, which indicates its intrinsic quality and provides a good opportunity to benchmark our results.</p></list-item>
<list-item><p><bold>Subjects</bold>: It has a relatively high number of subjects and includes older people.</p></list-item>
<list-item><p><bold>Data quantity</bold>: It contains 11,771 segments of both human activity and falls, covering nine classes of cleaned activity of daily living and eight classes of falls in total.</p></list-item>
<list-item><p><bold>Data quality</bold>: It provides pre-processed data that are formatted, cleaned, and labeled.</p></list-item>
<list-item><p><bold>Availability</bold>: It is publicly available and downloadable directly from the following website: <ext-link ext-link-type="uri" xlink:href="http://www.sal.disco.unimib.it/technologies/unimib-shar/">http://www.sal.disco.unimib.it/technologies/unimib-shar/</ext-link>.</p></list-item>
</list>
<table-wrap position="float" id="T1">
<label>Table 1</label>
<caption><p>Most popular datasets for human activity recognition and fall detection with accelerometer data.</p></caption>
<table frame="box" rules="all">
<thead>
<tr>
<th valign="top" align="left" style="background-color:#919497;color:#ffffff"><bold>Dataset</bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold>Year</bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold>Nr. Of citations<sup>&#x0002A;</sup></bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold>ADLs</bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold>Falls</bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold>Nr. Of Subjects</bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold>Age</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">MobiFall (<xref ref-type="bibr" rid="B15">15</xref>)</td>
<td valign="top" align="center">2014</td>
<td valign="top" align="center">104</td>
<td valign="top" align="center">Yes</td>
<td valign="top" align="center">Yes</td>
<td valign="top" align="center">24</td>
<td valign="top" align="center">22&#x02013;47</td>
</tr> <tr>
<td valign="top" align="left">tFall (<xref ref-type="bibr" rid="B16">16</xref>)</td>
<td valign="top" align="center">2013</td>
<td valign="top" align="center">151</td>
<td valign="top" align="center">Yes</td>
<td valign="top" align="center">Yes</td>
<td valign="top" align="center">10</td>
<td valign="top" align="center">20&#x02013;42</td>
</tr> <tr>
<td valign="top" align="left">MobiAct (<xref ref-type="bibr" rid="B17">17</xref>)</td>
<td valign="top" align="center">2016</td>
<td valign="top" align="center">173</td>
<td valign="top" align="center">Yes</td>
<td valign="top" align="center">Yes</td>
<td valign="top" align="center">57</td>
<td valign="top" align="center">20&#x02013;47</td>
</tr> <tr>
<td valign="top" align="left">RealWorld (<xref ref-type="bibr" rid="B18">18</xref>)</td>
<td valign="top" align="center">2016</td>
<td valign="top" align="center">215</td>
<td valign="top" align="center">Yes</td>
<td valign="top" align="center">No</td>
<td valign="top" align="center">16</td>
<td valign="top" align="center">16&#x02013;62</td>
</tr> <tr>
<td valign="top" align="left"><bold>UniMiB-SHAR</bold> (<xref ref-type="bibr" rid="B14">14</xref>)</td>
<td valign="top" align="center"><bold>2016</bold></td>
<td valign="top" align="center"><bold>321</bold></td>
<td valign="top" align="center"><bold>Yes</bold></td>
<td valign="top" align="center"><bold>Yes</bold></td>
<td valign="top" align="center"><bold>30</bold></td>
<td valign="top" align="center"><bold>18&#x02013;60</bold></td>
</tr></tbody>
</table>
<table-wrap-foot>
<p>We selected the most popular containing falls in terms of the number of citations. &#x0002A;According to Google Scholar search on 5 August 2022.</p>
<p>Bold values emphasize the dataset we picked for our study.</p>
</table-wrap-foot>
</table-wrap>
<p>This dataset was built from scratch by researchers from the University of Milano Bicocca. They asked volunteers to place a smartphone in their pant pockets and to perform a series of activities and falls according to the protocol they established. Experiments were supervised by the researchers, and a queen-sized mattress was laid on the ground to prevent volunteers from injuring themselves by falling. Elders were excluded from falling activities due to safety concerns.</p>
<p>The recording device was a Samsung Galaxy Nexus I9250 with Android Version 5.1.1 equipped with a Bosh BMA220 acceleration sensor. The Android OS limits the acceleration range, and the sampling rate is capped at 50 Hz. The smartphone was alternatively placed in the front right and front left pant pockets.</p></sec>
<sec>
<title>Data segmentation</title>
<p>Once time series were recorded, the researchers extracted the 3-s time windows from them to create segments for each activity or fall type. The rule followed was to search for a peak of 1.5 g in the data and to center a time window when one was found. If several consecutive values were above 1.5 g, the time window was centered on the first one. Notably, such preprocessing has one consequence to consider for the rest of the study: data leakage. Indeed, different segments can partially overlap and share common timestamps, which can lead to data leakage between the training and test sets. This point has been overlooked by all studies that have not performed leave-one-subject-out to assess the results.</p>
<p>We first introduced the data from the UniMiB-SHAR dataset in <xref ref-type="fig" rid="F1">Figure 1</xref> with a plot of a few segments from the dataset. The acceleration value was plotted against the time (total duration of 3 s) and varied based on the movements of the phone carrier. The segments are centered on a maximum acceleration. One can already notice significant differences in patterns between ADLs and falls.</p>
<fig id="F1" position="float">
<label>Figure 1</label>
<caption><p>Acceleration segments from the UniMiB-SHAR dataset (<xref ref-type="bibr" rid="B14">14</xref>). Patterns and amplitudes variations are significantly different across various activities. For example, the walking activity features low amplitude and periodic patterns, whereas the falling back activity features a sudden burst of acceleration.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpubh-11-1086671-g0001.tif"/>
</fig>
<p>Subsequently, we counted the number of segments for the nine classes of activities of daily living (ADLs) and eight classes of falls on two separate plots. <xref ref-type="fig" rid="F2">Figure 2</xref> shows how many segments from each ADL were in the dataset and how many ADL segments corresponded to each subject. We noticed a strong class imbalance. Cumbersome activities have fewer segments than the easiest ones, such as walking or running. Such imbalance will be addressed later by our choice of evaluation method. <xref ref-type="fig" rid="F3">Figure 3</xref> depicts how many segments from each fall type are in the dataset and how many fall segments correspond to each subject. There is only a minor class imbalance in the case of falls here. To cross-check whether each subject performed enough of each activity, we can dive one level of granularity deeper and plot the count of each ADL and fall per subject. <xref ref-type="fig" rid="F4">Figure 4</xref> demonstrates this distribution using a heat map. Beyond some strong class imbalances, we also notice that subjects 4, 7, 8, 10, 12, 18, 26, 27, 28, and 30 are missing at least one type of ADL or fall. We again noticed that walking and running were the activities with the most segments in the dataset.</p>
<fig id="F2" position="float">
<label>Figure 2</label>
<caption><p>Distribution of daily living activities, with a strong class imbalance. Daily activities that are less cumbersome to perform are predominant (walking, running, going up, and downstairs).</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpubh-11-1086671-g0002.tif"/>
</fig>
<fig id="F3" position="float">
<label>Figure 3</label>
<caption><p>Distribution of fall activities. Classes are fairly balanced as all falls are about equivalent to perform.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpubh-11-1086671-g0003.tif"/>
</fig>
<fig id="F4" position="float">
<label>Figure 4</label>
<caption><p>Heat map of the number of segments for each ADL or fall and subject. Subjects 4, 7, 8, 10, 12, 18, 26, 27, 28, and 30 are missing at least one type of ADL or fall. Walking, running and going downstairs are clearly the predominant activities by the number of segments.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpubh-11-1086671-g0004.tif"/>
</fig></sec>
<sec>
<title>Statistical analysis</title>
<p>Since segments are in the form of time-series data, we can conduct a statistical analysis to better grasp the differences between the ADLs and the fall groups. The core insight is that the maximum acceleration (i.e., the maximum magnitude value that can be found in a 3-s segment) tends to be higher for falls, especially on the <italic>x</italic>-axis and <italic>z</italic>-axis. We illustrate this with a boxplot of these maximum values for the whole dataset in <xref ref-type="fig" rid="F5">Figure 5</xref>. Notably, because of the Android recording limitations, acceleration recordings are capped at 2 g, while some values could have been higher. The means of the three maximum distributions are rigorously compared with a <italic>t</italic>-test (<xref ref-type="bibr" rid="B19">19</xref>) in <xref ref-type="table" rid="T2">Table 2</xref>, which confirms falls that have higher accelerations.</p>
<fig id="F5" position="float">
<label>Figure 5</label>
<caption><p>Boxplots of the maximum acceleration value along the <italic>x</italic>-, <italic>y</italic>-, and <italic>z</italic>-axis for each type of ADL and falls. Falls have significantly higher maximum accelerations than ADLs. Moreover, the direction of the fall is reflected in the differences of <italic>x</italic>-, <italic>y</italic>-, and <italic>z</italic>-axis accelerations.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpubh-11-1086671-g0005.tif"/>
</fig>
<table-wrap position="float" id="T2">
<label>Table 2</label>
<caption><p><italic>t</italic>-test of the means of maximum acceleration values for ADLs and falls, split by axis.</p></caption>
<table frame="box" rules="all">
<thead>
<tr>
<th valign="top" align="left" style="background-color:#919497;color:#ffffff"><bold>Accelerometer axis</bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold>ADL mean (<italic>n</italic> = 7,579)</bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold>Fall mean (<italic>n</italic> = 4,192)</bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold><italic>T</italic>-test</bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold><italic>p</italic>-value</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left"><italic>x</italic></td>
<td valign="top" align="center">7.72</td>
<td valign="top" align="center">12.31</td>
<td valign="top" align="center">&#x02013;40.69</td>
<td valign="top" align="center">&#x0003C; 1e-6</td>
</tr> <tr>
<td valign="top" align="left"><italic>y</italic></td>
<td valign="top" align="center">10.10</td>
<td valign="top" align="center">12.89</td>
<td valign="top" align="center">&#x02013;18.65</td>
<td valign="top" align="center">&#x0003C; 1e-6</td>
</tr> <tr>
<td valign="top" align="left"><italic>z</italic></td>
<td valign="top" align="center">7.22</td>
<td valign="top" align="center">13.56</td>
<td valign="top" align="center">&#x02013;61.04</td>
<td valign="top" align="center">&#x0003C; 1e-6</td>
</tr></tbody>
</table>
<table-wrap-foot>
<p>The two groups are significantly different.</p>
</table-wrap-foot>
</table-wrap>
<p>Leveraging these distinctions is not sufficient to build a classification algorithm. Some ADL segments may still have high maximum acceleration values; similarly, some fall segments may still have low maximum acceleration values. This is enough to rule out a classification approach entirely based on thresholds despite such an approach being present in the literature, as seen in the literature review.</p></sec>
<sec>
<title>Deep learning Architecture</title>
<p>We leverage deep learning to tackle this complex classification task. Deep neural networks have demonstrated remarkable performance across various datasets, such as image datasets. One family of deep networks, known as Resnets (<xref ref-type="bibr" rid="B20">20</xref>), often achieves state-of-the-art results on benchmark datasets. They enable better backpropagation in deeper architectures using skip connection over Resnet blocks. Ismail Fawaz et al. (<xref ref-type="bibr" rid="B13">13</xref>) have investigated a wide range of deep learning architectures for time-series classification, and they have proven that a Resnet would deliver the best results in most cases. After using a CNN, a Resnet, an encoder, and hybrid architectures, we chose a Resnet as our classifier for fall detection (binary classification) or human activity recognition (17 classes classification). The network architecture is shown in <xref ref-type="fig" rid="F6">Figure 6</xref>, and it was originally published by Ismail Fawaz et al. (<xref ref-type="bibr" rid="B13">13</xref>). It differs from previously published Resnet architectures (<xref ref-type="bibr" rid="B21">21</xref>&#x02013;<xref ref-type="bibr" rid="B23">23</xref>) benchmarked on the UniMiB-SHAR dataset in two main points: (i) Skip connections implement Conv1D operations (instead of a simple addition) to expand the number of channels and (ii) the kernels analyze more timestamps at once as we made them bigger (we use kernel of sizes 8 and 7 instead of the usual sizes 5 and 3). We call our approach optimized Resnet due to these changes and the further optimizations we introduced, which are detailed in the Discussion Section.</p>
<fig id="F6" position="float">
<label>Figure 6</label>
<caption><p>Neural architecture for our optimized Resnet. This is similar to both binary and multi-class classifications. The number of filters and the kernel sizes are different from the original architecture from Ismail Fawaz et al. (<xref ref-type="bibr" rid="B13">13</xref>). BN, batch-normalization; Conv1D, convolution 1D; ReLU, rectified linear unit; Conv1D(F, K), conv 1D with F filters and kernel size K.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpubh-11-1086671-g0006.tif"/>
</fig></sec>
<sec>
<title>Training and evaluation procedure</title>
<p>We leverage cloud computing on the Google Cloud platform to train our models. We created a notebook on the AI platform, running on the following software and hardware environment:</p>
<list list-type="bullet">
<list-item><p>Tensorflow Environment: Tensorflow 2.8</p></list-item>
<list-item><p>Machine Type: 8 vCPUs, 30 GB RAM</p></list-item>
<list-item><p>GPU: One NVIDIA Tesla T4</p></list-item>
</list>
<p>Several factors justify the need for cloud computing on a GPU for this task. From a deep learning perspective, the depth of the network, the use of dropouts, the number of segments (11,771), and the number of epochs (120) lead to high training time. From an evaluation perspective, cross-validation, and especially leave-one-subject-out (LOO), is time expensive, as the network may need to be retrained up to 30 times. Overall, the training and evaluation for each method can range from an hour to 2 days in the LOO case.</p></sec></sec>
<sec sec-type="results" id="s3">
<title>Results</title>
<p>We now expose evaluation methods used and results and show our approach exceeds the current state of the art.</p>
<sec>
<title>Evaluation of binary and multi-class classifications</title>
<sec>
<title>Binary classification</title>
<p>The binary classification is straightforward to explain; the network attempts to classify segments into two categories: ADL (0) and falls (1), while disregarding the activity or fall type. Obtaining high accuracy here is less challenging than in multi-class classification because there are only two possible output classes. As is often the case in the literature (as seen in the literature review) regarding human activity recognition, rather high figures can be achieved for the metrics presented. Our results are presented against various possible evaluation metrics in <xref ref-type="table" rid="T3">Table 3</xref>. The metrics are defined below for binary classification:</p>
<table-wrap position="float" id="T3">
<label>Table 3</label>
<caption><p>Benchmark for binary classification of ADLs and falls.</p></caption>
<table frame="box" rules="all">
<thead>
<tr>
<th valign="top" align="left" style="background-color:#919497;color:#ffffff"><bold>Evaluation method</bold></th>
<th valign="top" align="left" style="background-color:#919497;color:#ffffff"><bold>Method</bold></th>
<th valign="top" align="left" style="background-color:#919497;color:#ffffff"><bold>Algorithm</bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold>Accuracy (%)</bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold>F1 (%)</bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold>Sensitivity</bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold>Specificity</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left" rowspan="3">5-fold CV</td>
<td valign="top" align="center">Micuci et al. (<xref ref-type="bibr" rid="B14">14</xref>)</td>
<td valign="top" align="center">SVM</td>
<td valign="top" align="center">98.71</td>
<td valign="top" align="center">N/A</td>
<td valign="top" align="center">N/A</td>
<td valign="top" align="center">N/A</td>
</tr>
 <tr>
<td valign="top" align="left">Proposed method</td>
<td valign="top" align="left">MLP</td>
<td valign="top" align="center">99.31</td>
<td valign="top" align="center">99.31</td>
<td valign="top" align="center">98.90</td>
<td valign="top" align="center">99.54</td>
</tr>
 <tr>
<td valign="top" align="left"><bold>Proposed method</bold></td>
<td valign="top" align="left"><bold>Opt. Resnet</bold></td>
<td valign="top" align="center"><bold>99.87</bold></td>
<td valign="top" align="center"><bold>99.87</bold></td>
<td valign="top" align="center"><bold>99.90</bold></td>
<td valign="top" align="center"><bold>99.85</bold></td>
</tr> <tr>
<td valign="top" align="left">LOO</td>
<td valign="top" align="left"><bold>Proposed method</bold></td>
<td valign="top" align="center"><bold>Opt. Resnet</bold></td>
<td valign="top" align="center"><bold>98.48</bold></td>
<td valign="top" align="center"><bold>98.48</bold></td>
<td valign="top" align="center"><bold>97.70</bold></td>
<td valign="top" align="center"><bold>98.84</bold></td>
</tr></tbody>
</table>
<table-wrap-foot>
<p>Our approach yielded higher accuracy than the original UniMiB-SHAR article.</p>
<p>CV, cross-validation; LOO, leave-one-out; SVM, support vector machine; MLP, multi-layer perceptron; Opt. Resnet, optimized Resnet.</p>
<p>Bold values emphasize report results from our method.</p>
</table-wrap-foot>
</table-wrap>
<p>We write <italic>m</italic> the total number of segments. We use the following notations: True positive (TP): A fall is correctly classified as a fall. True negative (TN): A non-fall activity is correctly classified as a non-fall activity. False positive (FP): A non-fall activity is incorrectly classified as a fall. False negative (FN): A fall is incorrectly classified as a non-fall activity.</p>
<disp-formula id="E1"><mml:math id="M1"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mtext class="textrm" mathvariant="normal">Accuracy</mml:mtext><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mtext class="textrm" mathvariant="normal">TP</mml:mtext><mml:mo>&#x0002B;</mml:mo><mml:mtext class="textrm" mathvariant="normal">TN</mml:mtext></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:mfrac><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mtext class="textrm" mathvariant="normal">F1-score</mml:mtext><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mtext class="textrm" mathvariant="normal">TP</mml:mtext></mml:mrow><mml:mrow><mml:mtext class="textrm" mathvariant="normal">TP</mml:mtext><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mtext class="textrm" mathvariant="normal">FP</mml:mtext><mml:mo>&#x0002B;</mml:mo><mml:mtext class="textrm" mathvariant="normal">FN</mml:mtext></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:mfrac></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext class="textrm" mathvariant="normal">Sensitivity</mml:mtext><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mtext class="textrm" mathvariant="normal">TP</mml:mtext></mml:mrow><mml:mrow><mml:mtext class="textrm" mathvariant="normal">TP</mml:mtext><mml:mo>&#x0002B;</mml:mo><mml:mtext class="textrm" mathvariant="normal">FN</mml:mtext></mml:mrow></mml:mfrac><mml:mtext>&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mtext class="textrm" mathvariant="normal">Specificity</mml:mtext><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mtext class="textrm" mathvariant="normal">TN</mml:mtext></mml:mrow><mml:mrow><mml:mtext class="textrm" mathvariant="normal">TN</mml:mtext><mml:mo>&#x0002B;</mml:mo><mml:mtext class="textrm" mathvariant="normal">FP</mml:mtext></mml:mrow></mml:mfrac></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>We benchmark our approach against the results from Micuci et al. in the original article with the UniMiB-SHAR dataset. For further reference, we share metrics obtained for leave-one-subject-out (LOO). The implementation difference between cross-validation and LOO is that, in cross-validation, segments are randomly assigned between the train and validation set whereas in the LOO case, we ensure additionally that the train and validation sets of subjects (each subject has several recorded segments) are rigorously disjoint. In short, in LOO, the validation set is exclusively made of segments whose subjects were not in the train set. Thus, the LOO evaluation setting better represents the generalization potential of the algorithm as it faces entirely new data from entirely new subjects in the validation set.</p>
<p>However, these results should still be taken with a grain of salt. Indeed, a specificity that is not 100% will lead to the detection of false positives. For instance, in a case in which someone never falls, one false alarm will be triggered every 100 analyses. This rate can be computed simply by rewriting the formula that gives the sensitivity in the case of only negative segments, whereas in this case, <italic>m</italic> &#x0003D; <italic>TN</italic>&#x0002B;<italic>FP</italic>:</p>
<disp-formula id="E2"><mml:math id="M2"><mml:mtext class="textrm" mathvariant="normal">Sensitivity</mml:mtext><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mtext class="textrm" mathvariant="normal">TN</mml:mtext></mml:mrow><mml:mrow><mml:mtext class="textrm" mathvariant="normal">TN</mml:mtext><mml:mo>&#x0002B;</mml:mo><mml:mtext class="textrm" mathvariant="normal">FP</mml:mtext></mml:mrow></mml:mfrac><mml:mo>&#x021D2;</mml:mo><mml:mtext class="textrm" mathvariant="normal">FP</mml:mtext><mml:mo>=</mml:mo><mml:mi>m</mml:mi><mml:mo>&#x000D7;</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:mtext class="textrm" mathvariant="normal">Sensitivity</mml:mtext></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></disp-formula>
</sec>
<sec>
<title>Multi-class classification</title>
<p>We move to the case where we do not have two but 17 classes to classify. There are nine types of activities of daily living and eight types of falls. Classifying that many classes is more challenging and introduces more discrepancies into the literature. Near-perfect results of over 99% are far more challenging to attain, especially with the most rigorous evaluation methods. We use the two most common metrics that can be found in the literature, that is, accuracy and the weighted F1-score, which are defined later. We use the following notation: correctly classified (CC): The segment has been classified in its correct class. weight of class <italic>i</italic> (wi): Proportion of segments labeled <italic>i</italic> in the dataset. F1-score of class <italic>i</italic> (F1-score<sub><italic>i</italic></sub>): F1-score considering class <italic>i</italic> as positive and the rest as negative.</p>
<disp-formula id="E3"><mml:math id="M3"><mml:mtext class="textrm" mathvariant="normal">Accuracy</mml:mtext><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mtext class="textrm" mathvariant="normal">CC</mml:mtext></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:mfrac><mml:mtext class="textrm" mathvariant="normal">&#x000A0;&#x000A0;&#x000A0;&#x000A0;Weighted F1-score</mml:mtext><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>17</mml:mn></mml:mrow></mml:munderover></mml:mstyle><mml:msub><mml:mrow><mml:mi>w</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&#x000B7;</mml:mo><mml:msub><mml:mrow><mml:mtext class="textrm" mathvariant="normal">F1-score</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></disp-formula>
<p>We benchmark our results to compare approaches in <xref ref-type="table" rid="T4">Table 4</xref> for the UniMiB-SHAR dataset. We structure and regroup the results from the literature based on their evaluation methods and compare them with our results. We found our approach to be state of the art in all cases.</p>
<table-wrap position="float" id="T4">
<label>Table 4</label>
<caption><p>Benchmark of multi-class classification on the UniMiB-SHAR dataset.</p></caption>
<table frame="box" rules="all">
<thead>
<tr>
<th valign="top" align="left" style="background-color:#919497;color:#ffffff"><bold>Evaluation method</bold></th>
<th valign="top" align="left" style="background-color:#919497;color:#ffffff"><bold>Details</bold></th>
<th valign="top" align="left" style="background-color:#919497;color:#ffffff"><bold>Authors</bold></th>
<th valign="top" align="left" style="background-color:#919497;color:#ffffff"><bold>Algorithm</bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold>Accuracy (%)</bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold>Weighted F1 (%)</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left" rowspan="7">Validation set</td>
<td valign="top" align="left" rowspan="7">30% validation</td>
<td valign="top" align="left">Tang et al. (<xref ref-type="bibr" rid="B21">21</xref>)</td>
<td valign="top" align="left">Triplet attention Resnet</td>
<td valign="top" align="center">N/A</td>
<td valign="top" align="center">78.55</td>
</tr>
 <tr>
<td valign="top" align="left">Tang et al. (<xref ref-type="bibr" rid="B24">24</xref>)</td>
<td valign="top" align="left">Lego CNN</td>
<td valign="top" align="center">72.80</td>
<td valign="top" align="center">74.46</td>
</tr>
 <tr>
<td valign="top" align="left">Gao et al. (<xref ref-type="bibr" rid="B25">25</xref>)</td>
<td valign="top" align="left">SK-CNN</td>
<td valign="top" align="center">76.84</td>
<td valign="top" align="center">N/A</td>
</tr>
 <tr>
<td valign="top" align="left">Teng et al. (<xref ref-type="bibr" rid="B23">23</xref>)</td>
<td valign="top" align="left">Local Resnet</td>
<td valign="top" align="center">80.90</td>
<td valign="top" align="center">80.66</td>
</tr>
 <tr>
<td valign="top" align="left">Al-qaness et al. (<xref ref-type="bibr" rid="B22">22</xref>)</td>
<td valign="top" align="left">Multi-ResAtt RNN</td>
<td valign="top" align="center">84.99</td>
<td valign="top" align="center">85.06</td>
</tr>
 <tr>
<td valign="top" align="left">Cheng et al. (<xref ref-type="bibr" rid="B26">26</xref>)</td>
<td valign="top" align="left">Conditional CNN</td>
<td valign="top" align="center">88.63</td>
<td valign="top" align="center">N/A</td>
</tr>
 <tr>
<td valign="top" align="left"><bold>Proposed method</bold></td>
<td valign="top" align="left"><bold>Opt. Resnet</bold></td>
<td valign="top" align="left"><bold>96.18</bold></td>
<td valign="top" align="left"><bold>96.17</bold></td>
</tr> <tr>
<td valign="top" align="left" rowspan="4">Test set</td>
<td valign="top" align="left" rowspan="2">10% test</td>
<td valign="top" align="left">Tang et al. (<xref ref-type="bibr" rid="B27">27</xref>)</td>
<td valign="top" align="left">HS-CNN</td>
<td valign="top" align="center">79.02</td>
<td valign="top" align="center">79.19</td>
</tr>
 <tr>
<td valign="top" align="left"><bold>Proposed method</bold></td>
<td valign="top" align="left"><bold>Opt. Resnet</bold></td>
<td valign="top" align="left"><bold>98.71</bold></td>
<td valign="top" align="left"><bold>98.71</bold></td>
</tr>
 <tr>
<td valign="top" align="left" rowspan="2">20% test</td>
<td valign="top" align="left">Xu et al. (<xref ref-type="bibr" rid="B28">28</xref>)</td>
<td valign="top" align="left">Deformable Resnet</td>
<td valign="top" align="center">80.02</td>
<td valign="top" align="center">N/A</td>
</tr>
 <tr>
<td valign="top" align="left"><bold>Proposed method</bold></td>
<td valign="top" align="left"><bold>Opt. Resnet</bold></td>
<td valign="top" align="left"><bold>98.64</bold></td>
<td valign="top" align="left"><bold>98.65</bold></td>
</tr> <tr>
<td valign="top" align="left" rowspan="7">CV</td>
<td valign="top" align="left" rowspan="5">5-fold</td>
<td valign="top" align="left">Huang et al. (<xref ref-type="bibr" rid="B29">29</xref>)</td>
<td valign="top" align="left">Shallow CNN</td>
<td valign="top" align="center">75.42</td>
<td valign="top" align="center">N/A</td>
</tr>
 <tr>
<td valign="top" align="left">Teng et al. (<xref ref-type="bibr" rid="B30">30</xref>)</td>
<td valign="top" align="left">Layer-wise CNN</td>
<td valign="top" align="center">78.07</td>
<td valign="top" align="center">77.82</td>
</tr>
 <tr>
<td valign="top" align="left">Mekruksavanich et al. (<xref ref-type="bibr" rid="B31">31</xref>)</td>
<td valign="top" align="left">LSTM-XGB</td>
<td valign="top" align="center">92.59</td>
<td valign="top" align="center">N/A</td>
</tr>
 <tr>
<td valign="top" align="left">Lv et al. (<xref ref-type="bibr" rid="B32">32</xref>)</td>
<td valign="top" align="left">ConvLSTM</td>
<td valign="top" align="center">95.30</td>
<td valign="top" align="center">97.30</td>
</tr>
 <tr>
<td valign="top" align="left"><bold>Proposed method</bold></td>
<td valign="top" align="left"><bold>Opt. Resnet</bold></td>
<td valign="top" align="left"><bold>97.39</bold></td>
<td valign="top" align="left"><bold>97.45</bold></td>
</tr>
 <tr>
<td valign="top" align="left" rowspan="2">10-fold</td>
<td valign="top" align="left">Vong et al. (<xref ref-type="bibr" rid="B33">33</xref>)</td>
<td valign="top" align="left">XGBoost</td>
<td valign="top" align="center">91.22</td>
<td valign="top" align="center">86.40</td>
</tr>
 <tr>
<td valign="top" align="left"><bold>Proposed method</bold></td>
<td valign="top" align="left"><bold>Opt. Resnet</bold></td>
<td valign="top" align="left"><bold>98.07</bold></td>
<td valign="top" align="left"><bold>97.98</bold></td>
</tr> <tr>
<td valign="top" align="left" rowspan="4">LOO</td>
<td valign="top" align="left" rowspan="4">30-fold</td>
<td valign="top" align="left">Lv et al. (<xref ref-type="bibr" rid="B32">32</xref>)</td>
<td valign="top" align="left">ConvLSTM</td>
<td valign="top" align="center">N/A</td>
<td valign="top" align="center">78.40</td>
</tr>
 <tr>
<td valign="top" align="left">Li et al. (<xref ref-type="bibr" rid="B34">34</xref>)</td>
<td valign="top" align="left">Hybrid CNN-LSTM</td>
<td valign="top" align="center">77.03</td>
<td valign="top" align="center">75.93</td>
</tr>
 <tr>
<td valign="top" align="left">Jin et al. (<xref ref-type="bibr" rid="B35">35</xref>)</td>
<td valign="top" align="left">CNN-D</td>
<td valign="top" align="center">78.24</td>
<td valign="top" align="center">77.59</td>
</tr>
 <tr>
<td valign="top" align="left"><bold>Proposed method</bold></td>
<td valign="top" align="left"><bold>Opt. Resnet</bold></td>
<td valign="top" align="left"><bold>80.09</bold></td>
<td valign="top" align="left"><bold>79.36</bold></td>
</tr></tbody>
</table>
<table-wrap-foot>
<p>Our approach outperforms the state-of-the-art approach across all kinds of evaluation methods. CV, cross-validation; LOO, leave-one-out; CNN, convolutional neural network; SK, selective kernel; Multi-ResAtt, multi-level residual network with attention; RNN, recurrent neural network; Opt. Resnet, optimized Resnet; LSTM, long-short term memory; XGB, extreme gradient boosting; CNN-D, CNN with distance loss.</p>
<p>Bold values emphasize report results from our method.</p>
</table-wrap-foot>
</table-wrap></sec></sec></sec>
<sec sec-type="discussion" id="s4">
<title>Discussion</title>
<p>We discuss here the key differences and improvements our approach brings compared with other approaches from our benchmark. We eventually underline some machine-learning-related limitations.</p>
<sec>
<title>Optimization and deployability of deep learning</title>
<p>We started from the base Resnet architecture of Ismail Fawaz et al. (<xref ref-type="bibr" rid="B13">13</xref>), which is available at the following GitHub repository: <ext-link ext-link-type="uri" xlink:href="https://github.com/hfawaz/dl-4-tsc">dl-4-tsc</ext-link>. We only considered the architecture and did not perform in any kind of transfer learning. Subsequently, we conducted a series of hyperparameter optimizations, which are summarized in <xref ref-type="table" rid="T5">Table 5</xref>. A simple ablation study to show the contributions of the different techniques used is given in <xref ref-type="table" rid="T6">Table 6</xref>, for the case of leave-one-subject-out as this is the most challenging case to regularize. For optimizations regarding the network, we mostly increased the number of parameters of the filters and the kernels from 581,698 parameters for the standard Resnet to 11,567,362 parameters for our optimized Resnet. This mostly made training and evaluation time rise (the 30-fold cross-validation took approximately 36 h to complete). However, despite 11 million parameters being seemingly daunting for deployment purposes, our model could still be successfully run live with no prediction delays when we deployed it on a Samsung Galaxy A22 5G smartphone running Android 11. For optimizations regarding training, we found increasing the number of epochs necessary due to the higher number of parameters, and we could partially compensate for the training time by increasing the batch size (i.e., the number of segments given simultaneously to the network during the training phase). Smoothing labels is a common trick to boost deep learning network performance. The idea is to change the one-hot vector class representation to a probabilistic representation where other classes have small yet non-zero probabilities. Consequently, the following has been demonstrated:</p>
<table-wrap position="float" id="T5">
<label>Table 5</label>
<caption><p>Our hyperparameters tuning of the proposed optimized Resnet network.</p></caption>
<table frame="box" rules="all">
<thead>
<tr>
<th valign="top" align="left" style="background-color:#919497;color:#ffffff"><bold>Category</bold></th>
<th valign="top" align="left" style="background-color:#919497;color:#ffffff"><bold>Element</bold></th>
<th valign="top" align="left" style="background-color:#919497;color:#ffffff"><bold>Description</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left" rowspan="2">Network</td>
<td valign="top" align="left">Conv1D</td>
<td valign="top" align="left">Increased filter sizes from (64,128,128) to (256, 512, 512) for all Resnet blocks</td>
</tr>
 <tr>
<td valign="top" align="left">Conv1D</td>
<td valign="top" align="left">Increased kernel sizes from (8,5,3) to (8,7,7) in all Resnet blocks</td>
</tr> <tr>
<td valign="top" align="left" rowspan="4">Training</td>
<td valign="top" align="left">Labels</td>
<td valign="top" align="left">Smoothed labels with &#x003B1; = 0.1</td>
</tr>
 <tr>
<td valign="top" align="left">Batch size</td>
<td valign="top" align="left">Increased training batch size to 256</td>
</tr>
 <tr>
<td valign="top" align="left">Dropout</td>
<td valign="top" align="left">Introduced Dropout with rate = 0.5</td>
</tr>
 <tr>
<td valign="top" align="left">Epochs</td>
<td valign="top" align="left">Set training epochs to 120</td>
</tr></tbody>
</table>
<table-wrap-foot>
<p>We found these values to yield the best accuracy and F1-score.</p>
</table-wrap-foot>
</table-wrap>
<table-wrap position="float" id="T6">
<label>Table 6</label>
<caption><p>Simple ablation study on multi-class classification with LOO evaluation for the optimized Resnet.</p></caption>
<table frame="box" rules="all">
<thead>
<tr>
<th valign="top" align="left" style="background-color:#919497;color:#ffffff"><bold>Evaluation method</bold></th>
<th valign="top" align="left" style="background-color:#919497;color:#ffffff"><bold>Authors</bold></th>
<th valign="top" align="left" style="background-color:#919497;color:#ffffff"><bold>Steps</bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold>Accuracy (%)</bold></th>
<th valign="top" align="center" style="background-color:#919497;color:#ffffff"><bold>F1 (%)</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left" rowspan="4">LOO</td>
<td valign="top" align="left">Ismail Fawaz et al. (<xref ref-type="bibr" rid="B13">13</xref>)</td>
<td valign="top" align="left">Resnet base architecture</td>
<td valign="top" align="center">77.89</td>
<td valign="top" align="center">76.85</td>
</tr>
 <tr>
<td valign="top" align="left">-</td>
<td valign="top" align="left">&#x0002B; Increase kernel and filter sizes</td>
<td valign="top" align="center">79.02</td>
<td valign="top" align="center">78.17</td>
</tr>
 <tr>
<td valign="top" align="left">-</td>
<td valign="top" align="left">&#x0002B; Label smoothing</td>
<td valign="top" align="center">79.33</td>
<td valign="top" align="center">78.54</td>
</tr>
 <tr>
<td valign="top" align="left"><bold>Proposed method</bold></td>
<td valign="top" align="left">&#x0002B; Dropout</td>
<td valign="top" align="center"><bold>80.09</bold></td>
<td valign="top" align="center"><bold>79.36</bold></td>
</tr></tbody>
</table>
<table-wrap-foot>
<p>Epochs are 120, and batch size is 256. The biggest improvement is brought by increasing the number of parameters (in kernels and filters) in the network.</p>
<p>Bold values emphasize report results from our method.</p>
</table-wrap-foot>
</table-wrap>
<p>Label smoothing influences representations learned by the penultimate layer of the network and encourages representations of training examples from the same class for grouping in tight clusters (<xref ref-type="bibr" rid="B36">36</xref>). This results in the network&#x00027;s enhanced ability to distinguish classes. The principle for label smoothing is to change the encoding of classes from one-hot vectors to smooth vectors (<xref ref-type="bibr" rid="B36">36</xref>). Smoothing can be seen as a function <italic>f</italic><sub>&#x003B1;</sub>, with smoothing parameter &#x003B1;, that for a one-hot vector <italic>v</italic><sub><italic>k</italic></sub>: &#x0003D; (<sub>&#x003B4;<sub><italic>i, k</italic></sub>)<italic>i</italic></sub> representing class <italic>k</italic> (among <italic>K</italic> possible classes) returns <inline-formula><mml:math id="M4"><mml:mover accent="true"><mml:mrow><mml:msub><mml:mrow><mml:mi>v</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover></mml:math></inline-formula>, the &#x003B1;-smoothed vector. In our case, we found the case &#x003B1; &#x0003D; 0.1 to yield the best results.</p>
<disp-formula id="E4"><mml:math id="M5"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>&#x003B1;</mml:mi></mml:msub><mml:mo>:</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mo stretchy='false'>(</mml:mo><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mn>...</mml:mn><mml:mo>,</mml:mo><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mn>...</mml:mn><mml:mo>,</mml:mo><mml:mn>0</mml:mn><mml:mo stretchy='false'>)</mml:mo><mml:mo>&#x02192;</mml:mo><mml:msub><mml:mover accent='true'><mml:mi>v</mml:mi><mml:mo>&#x002DC;</mml:mo></mml:mover><mml:mi>k</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mo stretchy='false'>(</mml:mo><mml:mfrac><mml:mi>&#x003B1;</mml:mi><mml:mi>K</mml:mi></mml:mfrac><mml:mo>,</mml:mo><mml:mn>...</mml:mn><mml:mo>,</mml:mo><mml:mfrac><mml:mi>&#x003B1;</mml:mi><mml:mi>K</mml:mi></mml:mfrac><mml:mo>,</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x02212;</mml:mo><mml:mi>&#x003B1;</mml:mi><mml:mo>+</mml:mo><mml:mfrac><mml:mi>&#x003B1;</mml:mi><mml:mi>K</mml:mi></mml:mfrac><mml:mo>,</mml:mo><mml:mfrac><mml:mi>&#x003B1;</mml:mi><mml:mi>K</mml:mi></mml:mfrac><mml:mo>,</mml:mo><mml:mn>...</mml:mn><mml:mo>,</mml:mo><mml:mfrac><mml:mi>&#x003B1;</mml:mi><mml:mi>K</mml:mi></mml:mfrac><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:math></disp-formula>
<p>Dropout is an another common supervised deep learning trick that prevents the network from overfitting (<xref ref-type="bibr" rid="B37">37</xref>). Randomly dropping activation units during the training phase forces the network to not be overreliant on only a few of them and makes it more robust. We found it very useful in our case; accuracy on the training set was always near 100% at the end of the training but much lower on the validation set.</p></sec>
<sec>
<title>Related work from benchmark</title>
<p>Our benchmark regroups head-to-head 17 articles (<xref ref-type="bibr" rid="B21">21</xref>&#x02013;<xref ref-type="bibr" rid="B35">35</xref>) by sharing their approach concerning the human activity recognition task evaluated on the UniMiB-SHAR dataset. Deep learning was the method of choice in almost every case (<xref ref-type="bibr" rid="B21">21</xref>&#x02013;<xref ref-type="bibr" rid="B26">26</xref>, <xref ref-type="bibr" rid="B28">28</xref>&#x02013;<xref ref-type="bibr" rid="B32">32</xref>, <xref ref-type="bibr" rid="B34">34</xref>, <xref ref-type="bibr" rid="B35">35</xref>) to try to achieve state-of-the-art results. Only Vong et al. (<xref ref-type="bibr" rid="B33">33</xref>) employed a more standard machine learning and feature engineering approach. When choosing deep learning, the focus of studies was split into two parts. First, the developed classification method should achieve the highest accuracy or F1-score known to the authors. Second, some authors mentioned that their deep learning architecture should be kept reasonable in terms of memory consumption and computation time (<xref ref-type="bibr" rid="B23">23</xref>, <xref ref-type="bibr" rid="B24">24</xref>, <xref ref-type="bibr" rid="B26">26</xref>, <xref ref-type="bibr" rid="B29">29</xref>, <xref ref-type="bibr" rid="B30">30</xref>). This is only logical from an operational perspective, as the final goal of the algorithm is to be embedded into a portable device and to run live, which some studies have tested with their solutions (<xref ref-type="bibr" rid="B21">21</xref>, <xref ref-type="bibr" rid="B26">26</xref>, <xref ref-type="bibr" rid="B28">28</xref>, <xref ref-type="bibr" rid="B29">29</xref>).</p>
<p>The question of feature representation in the case of human activity recognition was also raised as is often the case in deep learning studies. Li et al. argued that their hybrid CNN-LSTM allowed the extraction of both long- and short-term dependencies in the data (<xref ref-type="bibr" rid="B34">34</xref>). Tang et al. and Al-qaness et al. both leveraged attention mechanisms in their network (<xref ref-type="bibr" rid="B21">21</xref>, <xref ref-type="bibr" rid="B22">22</xref>), and Lv et al. designed a module to specifically maximize information through the network by adding connections (<xref ref-type="bibr" rid="B32">32</xref>). Kernels and filters are hyperparameters found in CNN or LSTM architectures and are particularly appropriate for analyzing time-series data. Filters were the focus of a dimensional optimization by Tang et al. (<xref ref-type="bibr" rid="B24">24</xref>) and Gao et al. (<xref ref-type="bibr" rid="B25">25</xref>) introduced a selective kernel mechanism for convolutions.</p>
<p>Beyond architecture and operations, training loss was researched, and a clear trend toward building local losses and layer-wise training appeared in three selected studies (<xref ref-type="bibr" rid="B23">23</xref>, <xref ref-type="bibr" rid="B24">24</xref>, <xref ref-type="bibr" rid="B30">30</xref>). The creation of a clustering loss, the class anchor clustering (CAC) loss, was published in Jin et al. (<xref ref-type="bibr" rid="B35">35</xref>)</p>
<p>Finally, despite the UniMiB-SHAR dataset being seen as a benchmark dataset by all of the aforementioned studies, discrepancies remain between evaluation methods. This means that the results and metrics reported by one study cannot always be rigorously compared with all the others, as they must use the same evaluation methods. The evaluation methods featured in these articles are as follows: the evaluation of a validation set (<xref ref-type="bibr" rid="B21">21</xref>&#x02013;<xref ref-type="bibr" rid="B26">26</xref>), the evaluation of a test set (<xref ref-type="bibr" rid="B27">27</xref>, <xref ref-type="bibr" rid="B28">28</xref>), cross-validation (<xref ref-type="bibr" rid="B29">29</xref>&#x02013;<xref ref-type="bibr" rid="B32">32</xref>), and leave-one-subject-out (<xref ref-type="bibr" rid="B32">32</xref>, <xref ref-type="bibr" rid="B34">34</xref>, <xref ref-type="bibr" rid="B35">35</xref>).</p></sec>
<sec>
<title>Hyperparameters and performance</title>
<p>The benchmark from <xref ref-type="table" rid="T4">Table 4</xref> shows that no <italic>a priori</italic> performance ranking of the various algorithms could be made solely based on the type of neural network architecture. Despite our optimized Resnet coming always first, the second best option (where more than three are present) is dependent on the case either based around a CNN architecture (<xref ref-type="bibr" rid="B26">26</xref>, <xref ref-type="bibr" rid="B35">35</xref>) or a hybrid-LSTM architecture (<xref ref-type="bibr" rid="B32">32</xref>).</p>
<p>This reinforces the claim that hyperparameter search, beyond neural architecture, is key to tune a network specifically to a given dataset and make it reach its best performance. Such hyperparameter studies have systematically been in the focus of top performers (<xref ref-type="bibr" rid="B26">26</xref>, <xref ref-type="bibr" rid="B32">32</xref>, <xref ref-type="bibr" rid="B35">35</xref>). They all conducted ablation studies, did trial and errors, or followed best practices from the literature to tune optimally their respective chosen architectures. Cheng et al. found similar results in that regard than our study, that is adding complexity to the network, such as by increasing kernel sizes, leads to higher accuracy and F1-score (<xref ref-type="bibr" rid="B26">26</xref>). Lv et al. studied as well as influence of the kernel sizes, the number of layers, and possible fusion modes of outputs of analyzing modules of their hybrid network (<xref ref-type="bibr" rid="B32">32</xref>). Jin et al. research mostly focused on designing a custom loss for HAR, the anchor-based loss function that has two loss components balanced by a simple scalar hyperparameter &#x003BB; that has been investigated and optimized (<xref ref-type="bibr" rid="B35">35</xref>).</p></sec>
<sec>
<title>Continuous time classification</title>
<p>Thus far, we have built a classification method based on pre-formatted segments that displays good performance with this framework. We would like to provide perspectives on how a deep learning classifier can be adapted to analyze accelerometer signals in continuous time. We describe the steps of our proposal in <xref ref-type="fig" rid="F7">Figure 7</xref>. This step must be iterated with the desired frequency for real-time analysis. Significantly, the proper implementation of this live analysis could already be tested only with the dataset. All that needs to be done is to concatenate segments of activities beside each other to gain a longer time series featuring multiple activities. For the concatenation to go smoothly and not have abrupt changes, we ensure that distances between the last <italic>x</italic>, <italic>y</italic>, and <italic>z</italic> values of the acceleration of the current time series are near the first ones of the next time series.</p>
<fig id="F7" position="float">
<label>Figure 7</label>
<caption><p>One-step in our proposal for real-time fall detection. This step can then be re-executed at the desired frequency, up to the smartphone&#x00027;s computing power limitations.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpubh-11-1086671-g0007.tif"/>
</fig></sec>
<sec>
<title>Limitations</title>
<p>Using machine learning for human activity recognition brings up several limitations. First, there is potential for bias in the training data. If the data used to train the model are not representative of the diverse range of activities and individuals, the model may lack robustness and generalizability. A second limitation is a dependence on the quality of the sensors and processing used for recognition. Factors such as noise, sensor placement, and data resolution can all impact the model&#x00027;s accuracy. The third limitation is the computing resources requirement, which corresponds to a machine learning model, to be trained and run effectively. Finally, a fourth limitation revolves around ethical consideration, where privacy, fairness, and transparency should be as carefully considered as performance when deploying such systems running on personal data. In addressing these limitations, it is also important to consider the power consumption implications of using the internal sensors and also processing the data.</p></sec></sec>
<sec sec-type="conclusions" id="s5">
<title>Conclusion</title>
<p>Our research has highlighted the main steps in conceptualizing a deep learning-based human activity recognition classifier. We showed that our optimized Resnet was remarkably fit for this task and that deep learning best practices such as dropout and label smoothing worked well to improve accuracy and the F1-score for fall detection. Our approach raised the state-of-the-art accuracy to 80.09% on the UniMiB-SHAR dataset using the rigorous leave-one-subject-out evaluation method. However, there are still challenges to be addressed on a more global scale, such as collecting data <italic>via</italic> different types of smartphones and diverse populations to reduce bias and increase generalizability.</p></sec>
<sec sec-type="data-availability" id="s6">
<title>Data availability statement</title>
<p>The original contributions presented in the study are included in the article/supplementary material, further inquiries can be directed to the corresponding authors.</p></sec>
<sec sec-type="author-contributions" id="s7">
<title>Author contributions</title>
<p>ME designed and led the study. TS, ME, RF, and CM conceived the study. All authors approved the final manuscript.</p></sec>
</body>
<back>
<sec sec-type="funding-information" id="s8">
<title>Funding</title>
<p>Open access funding provided by the ETH Zurich.</p>
</sec>
<sec sec-type="COI-statement" id="conf1">
<title>Conflict of interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="disclaimer" id="s9">
<title>Publisher&#x00027;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<label>1.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Stampfler</surname> <given-names>T</given-names></name> <name><surname>Elgendi</surname> <given-names>M</given-names></name> <name><surname>Fletcher</surname> <given-names>RR</given-names></name> <name><surname>Menon</surname> <given-names>C</given-names></name></person-group>. <article-title>Fall detection using accelerometer-based smartphones: where do we go from here?</article-title> <source>Front Public Health</source>. (<year>2022</year>) <volume>10</volume>:<fpage>996021</fpage>. <pub-id pub-id-type="doi">10.3389/fpubh.2022.996021</pub-id><pub-id pub-id-type="pmid">36324447</pub-id></citation></ref>
<ref id="B2">
<label>2.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Straczkiewicz</surname> <given-names>M</given-names></name> <name><surname>James</surname> <given-names>P</given-names></name> <name><surname>Onnela</surname> <given-names>JP</given-names></name></person-group>. <article-title>A systematic review of smartphone-based human activity recognition methods for health research</article-title>. <source>NPJ Digit Med</source>. (<year>2021</year>) <volume>4</volume>:<fpage>1</fpage>&#x02013;<lpage>15</lpage>. <pub-id pub-id-type="doi">10.1038/s41746-021-00514-4</pub-id><pub-id pub-id-type="pmid">34663863</pub-id></citation></ref>
<ref id="B3">
<label>3.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zhang</surname> <given-names>S</given-names></name> <name><surname>Li</surname> <given-names>Y</given-names></name> <name><surname>Zhang</surname> <given-names>S</given-names></name> <name><surname>Shahabi</surname> <given-names>F</given-names></name> <name><surname>Xia</surname> <given-names>S</given-names></name> <name><surname>Deng</surname> <given-names>Y</given-names></name> <etal/></person-group>. <article-title>Deep learning in human activity recognition with wearable sensors: a review on advances</article-title>. <source>Sensors</source>. (<year>2022</year>) <volume>22</volume>:<fpage>1476</fpage>. <pub-id pub-id-type="doi">10.3390/s22041476</pub-id><pub-id pub-id-type="pmid">35214377</pub-id></citation></ref>
<ref id="B4">
<label>4.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Melissa</surname> <given-names>R</given-names></name> <name><surname>Lama</surname> <given-names>M</given-names></name> <name><surname>Laurence</surname> <given-names>K</given-names></name> <name><surname>Sylvie</surname> <given-names>B</given-names></name> <name><surname>Jeanne</surname> <given-names>D</given-names></name> <name><surname>Odile</surname> <given-names>V</given-names></name> <etal/></person-group>. <article-title>Physical activity in eating disorders: a systematic review</article-title>. <source>Nutrients</source>. (<year>2020</year>) <volume>12</volume>:<fpage>183</fpage>. <pub-id pub-id-type="doi">10.3390/nu12010183</pub-id><pub-id pub-id-type="pmid">31936525</pub-id></citation></ref>
<ref id="B5">
<label>5.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Usman Sarwar</surname> <given-names>M</given-names></name> <name><surname>Rehman Javed</surname> <given-names>A</given-names></name> <name><surname>Kulsoom</surname> <given-names>F</given-names></name> <name><surname>Khan</surname> <given-names>S</given-names></name> <name><surname>Tariq</surname> <given-names>U</given-names></name> <name><surname>Kashif Bashir</surname> <given-names>A</given-names></name></person-group>. <article-title>Parciv: recognizing physical activities having complex interclass variations using semantic data of smartphone</article-title>. <source>Software: Pract Exp</source>. (<year>2021</year>) <volume>51</volume>:<fpage>532</fpage>&#x02013;<lpage>49</lpage>. <pub-id pub-id-type="doi">10.1002/spe.2846</pub-id></citation>
</ref>
<ref id="B6">
<label>6.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Javed</surname> <given-names>AR</given-names></name> <name><surname>Faheem</surname> <given-names>R</given-names></name> <name><surname>Asim</surname> <given-names>M</given-names></name> <name><surname>Baker</surname> <given-names>T</given-names></name> <name><surname>Beg</surname> <given-names>MO</given-names></name></person-group>. <article-title>A smartphone sensors-based personalized human activity recognition system for sustainable smart cities</article-title>. <source>Sustain Cities Soc</source>. (<year>2021</year>) <volume>71</volume>:<fpage>102970</fpage>. <pub-id pub-id-type="doi">10.1016/j.scs.2021.102970</pub-id></citation>
</ref>
<ref id="B7">
<label>7.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Torous</surname> <given-names>J</given-names></name> <name><surname>Kiang</surname> <given-names>MV</given-names></name> <name><surname>Lorme</surname> <given-names>J</given-names></name> <name><surname>Onnela</surname> <given-names>JP</given-names></name> <etal/></person-group>. <article-title>New tools for new research in psychiatry: a scalable and customizable platform to empower data driven smartphone research</article-title>. <source>JMIR Mental Health</source>. (<year>2016</year>) <volume>3</volume>:<fpage>e5165</fpage>. <pub-id pub-id-type="doi">10.2196/mental.5165</pub-id><pub-id pub-id-type="pmid">27150677</pub-id></citation></ref>
<ref id="B8">
<label>8.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Anderson</surname> <given-names>M</given-names></name> <name><surname>Perrin</surname> <given-names>A</given-names></name></person-group>. <source>Technology Use Among Seniors</source>. <publisher-loc>Washington, DC</publisher-loc>: <publisher-name>Pew Research Center for Internet &#x00026; Technology</publisher-name> (<year>2017</year>).</citation>
</ref>
<ref id="B9">
<label>9.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bakker</surname> <given-names>D</given-names></name> <name><surname>Kazantzis</surname> <given-names>N</given-names></name> <name><surname>Rickwood</surname> <given-names>D</given-names></name> <name><surname>Rickard</surname> <given-names>N</given-names></name> <etal/></person-group>. <article-title>Mental health smartphone apps: review and evidence-based recommendations for future developments</article-title>. <source>JMIR Mental Health</source>. (<year>2016</year>) <volume>3</volume>:<fpage>e4984</fpage>. <pub-id pub-id-type="doi">10.2196/mental.4984</pub-id><pub-id pub-id-type="pmid">26932350</pub-id></citation></ref>
<ref id="B10">
<label>10.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>BinDhim</surname> <given-names>NF</given-names></name> <name><surname>Hawkey</surname> <given-names>A</given-names></name> <name><surname>Trevena</surname> <given-names>L</given-names></name></person-group>. <article-title>A systematic review of quality assessment methods for smartphone health apps</article-title>. <source>Telemed e-Health</source>. (<year>2015</year>) <volume>21</volume>:<fpage>97</fpage>&#x02013;<lpage>104</lpage>. <pub-id pub-id-type="doi">10.1089/tmj.2014.0088</pub-id><pub-id pub-id-type="pmid">25469795</pub-id></citation></ref>
<ref id="B11">
<label>11.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Millington</surname> <given-names>B</given-names></name></person-group>. <article-title>Smartphone apps and the mobile privatization of health and fitness</article-title>. <source>Crit Stud Media Commun</source>. (<year>2014</year>) <volume>31</volume>:<fpage>479</fpage>&#x02013;<lpage>93</lpage>. <pub-id pub-id-type="doi">10.1080/15295036.2014.973429</pub-id></citation>
</ref>
<ref id="B12">
<label>12.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Qiu</surname> <given-names>S</given-names></name> <name><surname>Zhao</surname> <given-names>H</given-names></name> <name><surname>Jiang</surname> <given-names>N</given-names></name> <name><surname>Wang</surname> <given-names>Z</given-names></name> <name><surname>Liu</surname> <given-names>L</given-names></name> <name><surname>An</surname> <given-names>Y</given-names></name> <etal/></person-group>. <article-title>Multi-sensor information fusion based on machine learning for real applications in human activity recognition: state-of-the-art and research challenges</article-title>. <source>Inform Fusion</source>. (<year>2022</year>) <volume>80</volume>:<fpage>241</fpage>&#x02013;<lpage>65</lpage>. <pub-id pub-id-type="doi">10.1016/j.inffus.2021.11.006</pub-id></citation>
</ref>
<ref id="B13">
<label>13.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ismail Fawaz</surname> <given-names>H</given-names></name> <name><surname>Forestier</surname> <given-names>G</given-names></name> <name><surname>Weber</surname> <given-names>J</given-names></name> <name><surname>Idoumghar</surname> <given-names>L</given-names></name> <name><surname>Muller</surname> <given-names>PA</given-names></name></person-group>. <article-title>Deep learning for time series classification: a review</article-title>. <source>Data Min Knowl Disc</source>. (<year>2019</year>) <volume>33</volume>:<fpage>917</fpage>&#x02013;<lpage>63</lpage>. <pub-id pub-id-type="doi">10.1007/s10618-019-00619-1</pub-id></citation>
</ref>
<ref id="B14">
<label>14.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Micucci</surname> <given-names>D</given-names></name> <name><surname>Mobilio</surname> <given-names>M</given-names></name> <name><surname>Napoletano</surname> <given-names>P</given-names></name></person-group>. <article-title>Unimib shar: a dataset for human activity recognition using acceleration data from smartphones</article-title>. <source>Appl Sci</source>. (<year>2017</year>) <volume>7</volume>:<fpage>1101</fpage>. <pub-id pub-id-type="doi">10.3390/app7101101</pub-id></citation>
</ref>
<ref id="B15">
<label>15.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Vavoulas</surname> <given-names>G</given-names></name> <name><surname>Pediaditis</surname> <given-names>M</given-names></name> <name><surname>Spanakis</surname> <given-names>EG</given-names></name> <name><surname>Tsiknakis</surname> <given-names>M</given-names></name></person-group>. <article-title>The MobiFall dataset: An initial evaluation of fall detection algorithms using smartphones</article-title>. In: <source>13th IEEE International Conference on BioInformatics and BioEngineering</source>. <publisher-loc>Chania</publisher-loc>: <publisher-name>IEEE</publisher-name> (<year>2013</year>). p. <fpage>1</fpage>&#x02013;<lpage>4</lpage>.</citation>
</ref>
<ref id="B16">
<label>16.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Medrano</surname> <given-names>C</given-names></name> <name><surname>Igual</surname> <given-names>R</given-names></name> <name><surname>Plaza</surname> <given-names>I</given-names></name> <name><surname>Castro</surname> <given-names>M</given-names></name></person-group>. <article-title>Detecting falls as novelties in acceleration patterns acquired with smartphones</article-title>. <source>PLoS ONE</source>. (<year>2014</year>) <volume>9</volume>:<fpage>e94811</fpage>. <pub-id pub-id-type="doi">10.1371/journal.pone.0094811</pub-id><pub-id pub-id-type="pmid">24736626</pub-id></citation></ref>
<ref id="B17">
<label>17.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Vavoulas</surname> <given-names>G</given-names></name> <name><surname>Chatzaki</surname> <given-names>C</given-names></name> <name><surname>Malliotakis</surname> <given-names>T</given-names></name> <name><surname>Pediaditis</surname> <given-names>M</given-names></name> <name><surname>Tsiknakis</surname> <given-names>M</given-names></name></person-group>. <article-title>The mobiact dataset: recognition of activities of daily living using smartphones</article-title>. In: <source>International Conference on Information and Communication Technologies for Ageing Well and e-Health. vol. 2</source>. <publisher-loc>Rome</publisher-loc>: <publisher-name>SciTePress</publisher-name> (<year>2016</year>). p. <fpage>143</fpage>&#x02013;<lpage>51</lpage>.<pub-id pub-id-type="pmid">27225579</pub-id></citation></ref>
<ref id="B18">
<label>18.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Sztyler</surname> <given-names>T</given-names></name> <name><surname>Stuckenschmidt</surname> <given-names>H</given-names></name></person-group>. <article-title>On-body localization of wearable devices: An investigation of position-aware activity recognition</article-title>. In:. <source>2016 IEEE International Conference on Pervasive Computing and Communications (PerCom)</source>. <publisher-loc>Sydney</publisher-loc>, <publisher-name>NSWL IEEE</publisher-name> (<year>2016</year>). p. <fpage>1</fpage>&#x02013;<lpage>9</lpage>.</citation>
</ref>
<ref id="B19">
<label>19.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kim</surname> <given-names>TK</given-names></name></person-group>. <article-title>T test as a parametric statistic</article-title>. <source>Korean J Anesthesiol</source>. (<year>2015</year>) <volume>68</volume>:<fpage>540</fpage>&#x02013;<lpage>6</lpage>. <pub-id pub-id-type="doi">10.4097/kjae.2015.68.6.540</pub-id></citation>
</ref>
<ref id="B20">
<label>20.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>He</surname> <given-names>K</given-names></name> <name><surname>Zhang</surname> <given-names>X</given-names></name> <name><surname>Ren</surname> <given-names>S</given-names></name> <name><surname>Sun</surname> <given-names>J</given-names></name></person-group>. <article-title>Deep residual learning for image recognition</article-title>. In: <source>Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition</source>. <publisher-loc>Las Vegas, NV</publisher-loc>: <publisher-name>IEEE</publisher-name> (<year>2016</year>). p. <fpage>770</fpage>&#x02013;<lpage>8</lpage>.<pub-id pub-id-type="pmid">32166560</pub-id></citation></ref>
<ref id="B21">
<label>21.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Tang</surname> <given-names>Y</given-names></name> <name><surname>Zhang</surname> <given-names>L</given-names></name> <name><surname>Teng</surname> <given-names>Q</given-names></name> <name><surname>Min</surname> <given-names>F</given-names></name> <name><surname>Song</surname> <given-names>A</given-names></name></person-group>. <article-title>Triple cross-domain attention on human activity recognition using wearable sensors</article-title>. <source>IEEE Trans Emerg Top Comput Intell</source>. (<year>2022</year>) <volume>6</volume>: <fpage>1167</fpage>&#x02013;<lpage>76</lpage>. <pub-id pub-id-type="doi">10.1109/TETCI.2021.3136642</pub-id></citation>
</ref>
<ref id="B22">
<label>22.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Al-qaness</surname> <given-names>MA</given-names></name> <name><surname>Dahou</surname> <given-names>A</given-names></name> <name><surname>Abd Elaziz</surname> <given-names>M</given-names></name> <name><surname>Helmi</surname> <given-names>A</given-names></name></person-group>. <article-title>Multi-resatt: multilevel residual network with attention for human activity recognition using wearable sensors</article-title>. <source>IEEE Trans Ind Inform</source>. (<year>2022</year>) <volume>19</volume>: <fpage>144</fpage>&#x02013;<lpage>52</lpage>. <pub-id pub-id-type="doi">10.1109/TII.2022.3165875</pub-id></citation>
</ref>
<ref id="B23">
<label>23.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Teng</surname> <given-names>Q</given-names></name> <name><surname>Zhang</surname> <given-names>L</given-names></name> <name><surname>Tang</surname> <given-names>Y</given-names></name> <name><surname>Song</surname> <given-names>S</given-names></name> <name><surname>Wang</surname> <given-names>X</given-names></name> <name><surname>He</surname> <given-names>J</given-names></name></person-group>. <article-title>Block-wise training residual networks on multi-channel time series for human activity recognition</article-title>. <source>IEEE Sens J</source>. (<year>2021</year>) <volume>21</volume>:<fpage>18063</fpage>&#x02013;<lpage>74</lpage>. <pub-id pub-id-type="doi">10.1109/JSEN.2021.3085360</pub-id></citation>
</ref>
<ref id="B24">
<label>24.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Tang</surname> <given-names>Y</given-names></name> <name><surname>Teng</surname> <given-names>Q</given-names></name> <name><surname>Zhang</surname> <given-names>L</given-names></name> <name><surname>Min</surname> <given-names>F</given-names></name> <name><surname>He</surname> <given-names>J</given-names></name></person-group>. <article-title>Layer-wise training convolutional neural networks with smaller filters for human activity recognition using wearable sensors</article-title>. <source>IEEE Sens J</source>. (<year>2020</year>) <volume>21</volume>:<fpage>581</fpage>&#x02013;<lpage>92</lpage>. <pub-id pub-id-type="doi">10.1109/JSEN.2020.3015521</pub-id></citation>
</ref>
<ref id="B25">
<label>25.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gao</surname> <given-names>W</given-names></name> <name><surname>Zhang</surname> <given-names>L</given-names></name> <name><surname>Huang</surname> <given-names>W</given-names></name> <name><surname>Min</surname> <given-names>F</given-names></name> <name><surname>He</surname> <given-names>J</given-names></name> <name><surname>Song</surname> <given-names>A</given-names></name></person-group>. <article-title>Deep neural networks for sensor-based human activity recognition using selective kernel convolution</article-title>. <source>IEEE Trans Instrument Meas</source>. (<year>2021</year>) <volume>70</volume>:<fpage>1</fpage>&#x02013;<lpage>13</lpage>. <pub-id pub-id-type="doi">10.1109/TIM.2021.3102735</pub-id><pub-id pub-id-type="pmid">33803891</pub-id></citation></ref>
<ref id="B26">
<label>26.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Cheng</surname> <given-names>X</given-names></name> <name><surname>Zhang</surname> <given-names>L</given-names></name> <name><surname>Tang</surname> <given-names>Y</given-names></name> <name><surname>Liu</surname> <given-names>Y</given-names></name> <name><surname>Wu</surname> <given-names>H</given-names></name> <name><surname>He</surname> <given-names>J</given-names></name></person-group>. <article-title>Real-time human activity recognition using conditionally parametrized convolutions on mobile and wearable devices</article-title>. <source>IEEE Sens J</source>. (<year>2022</year>) <volume>22</volume>:<fpage>5889</fpage>&#x02013;<lpage>901</lpage>. <pub-id pub-id-type="doi">10.1109/JSEN.2022.3149337</pub-id></citation>
</ref>
<ref id="B27">
<label>27.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Tang</surname> <given-names>Y</given-names></name> <name><surname>Zhang</surname> <given-names>L</given-names></name> <name><surname>Min</surname> <given-names>F</given-names></name> <name><surname>He</surname> <given-names>J</given-names></name></person-group>. <article-title>Multi-scale deep feature learning for human activity recognition using wearable sensors</article-title>. <source>IEEE Trans Ind Electron</source>. (<year>2022</year>) <volume>70</volume>:<fpage>2106</fpage>&#x02013;<lpage>16</lpage>. <pub-id pub-id-type="doi">10.1109/TIE.2022.3161812</pub-id></citation>
</ref>
<ref id="B28">
<label>28.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Xu</surname> <given-names>S</given-names></name> <name><surname>Zhang</surname> <given-names>L</given-names></name> <name><surname>Huang</surname> <given-names>W</given-names></name> <name><surname>Wu</surname> <given-names>H</given-names></name> <name><surname>Song</surname> <given-names>A</given-names></name></person-group>. <article-title>Deformable convolutional networks for multimodal human activity recognition using wearable sensors</article-title>. <source>IEEE Trans Instrument Meas</source>. (<year>2022</year>) <volume>71</volume>:<fpage>1</fpage>&#x02013;<lpage>14</lpage>. <pub-id pub-id-type="doi">10.1109/TIM.2022.3158427</pub-id></citation>
</ref>
<ref id="B29">
<label>29.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Huang</surname> <given-names>W</given-names></name> <name><surname>Zhang</surname> <given-names>L</given-names></name> <name><surname>Gao</surname> <given-names>W</given-names></name> <name><surname>Min</surname> <given-names>F</given-names></name> <name><surname>He</surname> <given-names>J</given-names></name></person-group>. <article-title>Shallow convolutional neural networks for human activity recognition using wearable sensors</article-title>. <source>IEEE Trans Instrument Meas</source>. (<year>2021</year>) <volume>70</volume>:<fpage>1</fpage>&#x02013;<lpage>11</lpage>. <pub-id pub-id-type="doi">10.1109/TIM.2021.3091990</pub-id></citation>
</ref>
<ref id="B30">
<label>30.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Teng</surname> <given-names>Q</given-names></name> <name><surname>Wang</surname> <given-names>K</given-names></name> <name><surname>Zhang</surname> <given-names>L</given-names></name> <name><surname>He</surname> <given-names>J</given-names></name></person-group>. <article-title>The layer-wise training convolutional neural networks using local loss for sensor-based human activity recognition</article-title>. <source>IEEE Sens J</source>. (<year>2020</year>) <volume>20</volume>:<fpage>7265</fpage>&#x02013;<lpage>74</lpage>. <pub-id pub-id-type="doi">10.1109/JSEN.2020.2978772</pub-id></citation>
</ref>
<ref id="B31">
<label>31.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Mekruksavanich</surname> <given-names>S</given-names></name> <name><surname>Jantawong</surname> <given-names>P</given-names></name> <name><surname>Jitpattanakul</surname> <given-names>A</given-names></name></person-group>. <article-title>LSTM-XGB: a new deep learning model for human activity recognition based on LSTM and XGBoost</article-title>. In: <source>2022 Joint International Conference on Digital Arts, Media and Technology with ECTI Northern Section Conference on Electrical, Electronics, Computer and Telecommunications Engineering (ECTI DAMT</source> &#x00026; <italic>NCON)</italic>. <publisher-loc>Chiang Rai</publisher-loc>: <publisher-name>IEEE</publisher-name> (<year>2022</year>). p. <fpage>342</fpage>&#x02013;<lpage>5</lpage>.</citation>
</ref>
<ref id="B32">
<label>32.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lv</surname> <given-names>T</given-names></name> <name><surname>Wang</surname> <given-names>X</given-names></name> <name><surname>Jin</surname> <given-names>L</given-names></name> <name><surname>Xiao</surname> <given-names>Y</given-names></name> <name><surname>Song</surname> <given-names>M</given-names></name></person-group>. <article-title>A hybrid network based on dense connection and weighted feature aggregation for human activity recognition</article-title>. <source>IEEE Access</source>. (<year>2020</year>) <volume>8</volume>:<fpage>68320</fpage>&#x02013;<lpage>32</lpage>. <pub-id pub-id-type="doi">10.1109/ACCESS.2020.2986246</pub-id></citation>
</ref>
<ref id="B33">
<label>33.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Vong</surname> <given-names>C</given-names></name> <name><surname>Theptit</surname> <given-names>T</given-names></name> <name><surname>Watcharakonpipat</surname> <given-names>V</given-names></name> <name><surname>Chanchotisatien</surname> <given-names>P</given-names></name> <name><surname>Laitrakun</surname> <given-names>S</given-names></name></person-group>. <article-title>Comparison of feature selection and classification for human activity and fall recognition using smartphone sensors</article-title>. In: <source>2021 Joint International Conference on Digital Arts, Media and Technology with ECTI Northern Section Conference on Electrical, Electronics, Computer and Telecommunication Engineering</source>. <publisher-loc>Cha-am</publisher-loc>: <publisher-name>IEEE</publisher-name> (<year>2021</year>). p. <fpage>170</fpage>&#x02013;<lpage>3</lpage>.</citation>
</ref>
<ref id="B34">
<label>34.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Li</surname> <given-names>F</given-names></name> <name><surname>Shirahama</surname> <given-names>K</given-names></name> <name><surname>Nisar</surname> <given-names>MA</given-names></name> <name><surname>K&#x000F6;ping</surname> <given-names>L</given-names></name> <name><surname>Grzegorzek</surname> <given-names>M</given-names></name></person-group>. <article-title>Comparison of feature learning methods for human activity recognition using wearable sensors</article-title>. <source>Sensors</source>. (<year>2018</year>) <volume>18</volume>:<fpage>679</fpage>. <pub-id pub-id-type="doi">10.3390/s18020679</pub-id><pub-id pub-id-type="pmid">29495310</pub-id></citation></ref>
<ref id="B35">
<label>35.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Jin</surname> <given-names>L</given-names></name> <name><surname>Wang</surname> <given-names>X</given-names></name> <name><surname>Chu</surname> <given-names>J</given-names></name> <name><surname>He</surname> <given-names>M</given-names></name></person-group>. <article-title>Human activity recognition machine with an anchor-based loss function</article-title>. <source>IEEE Sens J</source>. (<year>2021</year>) <volume>22</volume>:<fpage>741</fpage>&#x02013;<lpage>56</lpage>. <pub-id pub-id-type="doi">10.1109/JSEN.2021.3130761</pub-id></citation>
</ref>
<ref id="B36">
<label>36.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>M&#x000FC;ller</surname> <given-names>R</given-names></name> <name><surname>Kornblith</surname> <given-names>S</given-names></name> <name><surname>Hinton</surname> <given-names>GE</given-names></name></person-group>. <article-title>When does label smoothing help?</article-title> In: <source>Advances in Neural Information Processing Systems, Vol. 32</source>. (<year>2019</year>).</citation>
</ref>
<ref id="B37">
<label>37.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Srivastava</surname> <given-names>N</given-names></name> <name><surname>Hinton</surname> <given-names>G</given-names></name> <name><surname>Krizhevsky</surname> <given-names>A</given-names></name> <name><surname>Sutskever</surname> <given-names>I</given-names></name> <name><surname>Salakhutdinov</surname> <given-names>R</given-names></name></person-group>. <article-title>Dropout: a simple way to prevent neural networks from overfitting</article-title>. <source>J Mach Learn Res</source>. (<year>2014</year>) <volume>15</volume>:<fpage>1929</fpage>&#x02013;<lpage>58</lpage>.</citation>
</ref>
</ref-list> 
</back>
</article> 