<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Edge-Assisted Sensor Control in Healthcare IoT</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>12/01/2018</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10091623</idno>
					<idno type="doi">10.1109/GLOCOM.2018.8647457</idno>
					<title level='j'>2018 IEEE Global Communications Conference (GLOBECOM)</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Delaram Amiri</author><author>Arman Anzanpour</author><author>Iman Azimi</author><author>Marco Levorato</author><author>Amir M. Rahmani</author><author>Pasi Liljeberg</author><author>Nikil Dutt</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[The Internet of Things is a key enabler of mobilehealth-care applications. However, the inherent constraints ofmobile devices, such as limited availability of energy, can impairtheir ability to produce accurate data and, in turn, degrade theoutput of algorithms processing them in real-time to evaluate thepatient’s state. This paper presents an edge-assisted framework,where models and control generated by an edge server informthe sensing parameters of mobile sensors. The objective is tomaximize the probability that anomalies in the collected signalsare detected over extensive periods of time under battery-imposedconstraints. Although the proposed concept is general, the controlframework is made specific to a use-case where vital signs –heart rate, respiration rate and oxygen saturation – are extractedfrom a Photoplethysmogram (PPG) signal to detect anomaliesin real-time. Experimental results show a 16.9% reduction insensing energy consumption in comparison to a constant energyconsumption with the maximum misdetection probability of 0.17in a 24-hour health monitoring system.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I. INTRODUCTION</head><p>Recent advances in low-cost wearable sensing devices open new avenues to build innovative platforms for healthcare applications <ref type="bibr">[1]</ref>. However, continuously collecting and processing physiological signals imposes a severe burden to inherently resource-constrained sensor nodes in terms of storage, computation load, and energy consumption. The 3-tier sensor-edgecloud Internet of Things (IoT) architecture <ref type="bibr">[2]</ref> can mitigate this issue by integrating the sensors within a larger -more capable -communication and processing infrastructure, where interconnected sensors can delegate some functionalities to edge or cloud devices <ref type="bibr">[3]</ref>. However, healthcare applications that require high quality signals and high precision representations may still impose a considerable energy consumption to battery-powered sensors due to the need for continuous signal acquisition and data transmission.</p><p>Various approaches to reduce the energy consumption of sensors have been proposed in prior literature, including sensor sleep scheduling <ref type="bibr">[4]</ref>, <ref type="bibr">[5]</ref>, <ref type="bibr">[6]</ref> and power aware cognitive communication protocols <ref type="bibr">[7]</ref>. <ref type="bibr">[8]</ref>, <ref type="bibr">[9]</ref> mainly focus on the optimization of the energy used by the sensor node to transmit the collected signal. One of the key contributions of our work is the development of an edge-assisted framework for the dynamic control of sensing energy, and thus accuracy, as a function of the current "context", here defined as the activity of the monitored person. Related to the present work, activity-based optimization frameworks was proposed in <ref type="bibr">[10]</ref>, <ref type="bibr">[11]</ref>, <ref type="bibr">[12]</ref>. However, the objective of these frameworks, based on Markov Decision Process theory, is that of detecting the activity itself. Furthermore, their main assumption is that the gateway -a smartphone in their scenario -is the energy bottleneck of the system. In contrast, our approach uses the estimated activity to control sensing accuracy in an edge-based architecture to maximize the lifetime of the sensor.</p><p>Our overall objective is to dynamically adapt sensing accuracy, and thus the energy consumption, to maximize the sensor's lifetime. The key idea behind our approach is that different "contexts" in which the signal is captured, require different energy levels to achieve a certain accuracy of estimation and/or detection. Thus, a context-aware adaptation at run-time can possibly reduce energy expense while meeting a predefined performance of signal analysis. A critical challenge, then, is to build an effective analysis loop which enables such adaptation. Due to limited processing capabilities and partial view of the system, sensors are not typically suitable devices to extract context and perform optimization. At the other end of the infrastructure, cloud servers have sufficient computation power and a global view, but typically incurs a large, and unpredictable, delay due to multi-hop data propagation through the Internet. Topological as well as geographic proximity of sensors and edge servers grants a fast response time of the system <ref type="bibr">[13]</ref>, making edge servers a perfect location to host multi-sensor analysis and optimization algorithms.</p><p>We apply our approach to a use-case focused on the detection of abnormalities in the vital signs extracted from Photoplethysmogram (PPG) signals. PPG is an optical signal presenting blood volume variations at the microvascular level <ref type="bibr">[14]</ref> which allows the estimation of vital signs such as heart rate, heart rate variability, respiration rate and blood oxygen saturation (SpO 2 ). PPG measurements are obtained using a non-invasive and low-cost miniaturized sensor which can be integrated in wearable sensors (e.g., fitness trackers, smart watches) to continuously capture vital signs.</p><p>Importantly, the noise level of the captured signal is sensitive to the monitored subject's activity (e.g., "Sleeping" or "Running"). For instance, noise during "Sleeping" state is significantly smaller to that during "Running". Thus, a considerably smaller energy budget can be used to achieve the same estimation accuracy when acquiring the signal in the former case compared to the latter. Additionally, the monitored Fig. <ref type="figure">1:</ref> The upper part of the figure shows the system architecture while the lower part shows the closed loop of interactions between the sensor, edge, and cloud layers. subject's activity can influence the "abnormal" region of vital parameters: a person "Sitting" has a smaller baseline heart rate compared to the same person "Running". Using real-world data collected using a PPG-based sensor node, we show that our framework, by adapting the sensing parameters based on the activity, can reduce sensing energy consumption by 16.9% over a daily cycle compared to the non-adaptive case meeting a predefined threshold of maximum detection error.</p><p>The rest of the this paper is organized as follows. Section II describes the layered architecture of the system. The monitoring and detection frameworks are presented in Section III. Section IV presents and discusses numerical results, and Section V concludes the paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. SYSTEM ARCHITECTURE</head><p>Herein, we present the 3-layer (sensor-edge-cloud) structure of the proposed , with the edge layer enabling system adaptivity in real-time, illustrated in Figure <ref type="figure">1</ref>.</p><p>The edge layer controls the configuration used by the sensor to acquire the signal, which is transmitted to the edge processor. The gateway device in the edge layer stores collected data temporarily and performs a local analysis to extract the context, which is then used to determine a new configuration. This procedure realizes a closed-loop control which dynamically adapts the sensing parameters to the context. The cloud server receives the data and builds and maintains a signal model used to optimize the configuration at the edge layer.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Case Study: PPG Sensor-based IoT system</head><p>We now present a case study of the deployed PPG sensorbased IoT system, and begin by defining different layers of the 3-layer architecture.</p><p>Sensor layer: The sensor node is a wireless device which includes a PPG sensor, a wireless transmitter and a Micro-Controller Unit (MCU): i) The PPG sensor measures the reflection amplitude of infrared (IR) and red lights from the microvascular bed of tissues via two light emitter diodes (LEDs) and two light sensors, providing a 50 Hz-digitized signal through I 2 C communication bus. ii) The wireless transmitter is a Wi-Fi module which enables communication to the edge layer to deliver the raw signals and receive configuration settings. iii) The MCU is an 80MHz 32-Bits RISC microprocessor with 96KB RAM. The microprocessor manages data collection, data writing on a 4MB QSPI flash memory and data transmission to the edge. The MCU is programmed to dynamically tune the current level of PPG sensor's LEDs (i.e., sensing setups) according to the configuration received from the edge processor upon request. In the recording mode, the PPG sensor uses five different current levels for driving the LEDs: 0.8mA, 3.5mA, 6.2mA, 9.3mA, and 12mA. Table <ref type="table">I</ref> shows these current levels with their corresponding recording sensing power levels.</p><p>Edge layer: The gateway is a Linux-based device, providing three functionalities through an Apache web server. 1) Real-time adaptation control: this functionality aims at minimizing sensing power consumption while satisfying a predefined level of accuracy. The edge server receives context data and vital signs (e.g., heart rate, respiration rate and SpO 2 ) to generate configuration settings for the sensor layer.</p><p>2) Local data storage: the edge server receives data from the sensor layer, stores them in a MySQL database and periodically synchronizes with the cloud layer.</p><p>3) Local data analysis: the stored data are analyzed to extract heart rate, respiration rate and SpO 2 from the raw PPG signal, as well as the contextual information.</p><p>Local data analysis to extract vital signs can be partitioned into two main modules: i) bio-signal extraction and ii) vital signs detection <ref type="bibr">[15]</ref> (see Figure <ref type="figure">2</ref>): i) Bio-signal extraction: Various techniques have been proposed to extract these bio-signals <ref type="bibr">[15]</ref>. However, some of the existing techniques are not suitable to the considered application due to the presence of noise in the signal induced by some activities.</p><p>The respiratory signal can be obtained leveraging two main techniques, known as feature-based <ref type="bibr">[16]</ref> and filter-based <ref type="bibr">[17]</ref> extraction. Feature-based techniques derive certain features  such as pulse strength variations and baseline variations to derive the respiratory signal <ref type="bibr">[16]</ref>. In contrast, filter-based techniques filter the raw signal to eliminate frequency components irrelevant to the respiratory signal <ref type="bibr">[17]</ref>. Note that filter-based techniques can also be used to extract heartbeat signals.</p><p>In our system, we designed two band-pass filters (i.e., filter based techniques) to automatically extract respiratory and heartbeat signals during the monitoring period. We select the cutoff frequencies based on peak values in the power spectral density (PSD) of the PPG signal <ref type="bibr">[18]</ref>. Figure <ref type="figure">3</ref> shows the PSD of a one-minute PPG signal while the user is sleeping. The peak in the heart rate frequency range (i.e., 0.5-3.0 Hz) corresponds to heartbeat frequency, and the peak in respiration rate frequency range (i.e., 0.1-1 Hz) indicates respiratory frequency. Note that the respiration rate frequency range might contain the heart rate frequency peak (see Figure <ref type="figure">3</ref>). Therefore, to extract the respiratory signal, first the heart rate frequency peak should be removed. ii) Vital signs detection: A peak detection algorithm is applied to the filtered bio signals. The distance between two consecutive peaks corresponds to the respiration and heartbeat cycles. To estimate oxygen saturation (SpO 2 ), we extract 4 features from the IR and red signals (Figure <ref type="figure">4</ref>). Then, SpO 2 is calculated as:</p><p>where A, B and &#915; are constants determined by the sensor's <ref type="bibr">[19]</ref>.</p><p>Cloud layer: The cloud layer is deployed on a Virtual Private Server (VPS) running an Apache web server on Ubuntu Linux operating system. The web server receives data from the edge layer, the OS file system stores collected data, and a MySQL database stores patient information and file indexes related to each patient, eventually creating a medical history of the patient and a model for her/his daily activities to be used in the edge layer for better state detection.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>III. REAL-TIME ADAPTATION FRAMEWORK</head><p>Our two-fold goal is to minimize energy expense of the sensor node while satisfying the requirement in terms of abnormality detection. Both the signal and the probability of an abnormal signal are function of the context, here defined as the following activities: "Sleeping", "Sitting", "Walking", "Jogging" and "Running". As the first step to formulate the optimization problem, we model the fidelity of sensor output as a function of the different activities and energy levels. In Section III-B, a Gaussian model for calculating error from vital signs is proposed. Section III-A discusses the method to solve the proposed optimization problem.</p><p>The first step is to evaluate the accuracy of the sensor compared to a ground truth signal in different operating conditions to build a model, which will be used to optimize the sensing energy. To this aim, the PPG signal from the sensor is preprocessed and the features oxygen saturation (SpO 2 ), heart rate, and respiration rate are evaluated for each combination of current level U and activity X. We use an ECG sensor as a reference for heart rate, an airflow sensor for respiration reference, and another PPG sensor with higher signal quality as a reference for SpO 2 .</p><p>Based on this reference, we compute the error vectors of the three features: heart rate error e 1 (U, X), respiration rate error e 2 (U, X) and oxygen saturation error e 3 (U, X). We calculate the weighted total error vector e(X, U ) = {&#947; 1 e 1 (U, X) + &#947; 2 e 2 (U, X) + &#947; 3 e 3 (U, X)}. The variables &#947; 1 , &#947; 2 , &#947; 3 are positive weights such that &#947; 1 +&#947; 2 +&#947; 3 =1. The control parameter U specifies the PPG sensor current. Note that the joint probability density function of error of extracted features as a result of activity state X &#8712; {Sleeping, Sitting, Walking, Jogging, Running} and current level U &#8712; {U 1 , U 2 , ..., U 5 } follows &#961;(e(U, X) | U = u, X = x) &#8764; N (0, &#963;(U, X)). In this formulation, &#963;(U, X) is the variance of error in the vector e given current level U and activity state X. In this case, the error probability can be calculated as the tail probability of the standard normal distribution as a function of the threshold T corresponding to the maximum total RM SE in the estimated vital signs.</p><p>A. Optimization The model derived in the previous section can be used to calculate the abnormality misdetection probability. Let's first define the probability density function of vital signs heart rate, y 1 , respiration rate, y 2 and oxygen saturation y 3 . We assume that the combined features y = &#947; 1 y 1 + &#947; 2 y 2 + &#947; 3 y 3 follow a Gaussian distribution with mean &#181; n = &#8721; 3 i=1 &#181; n,i &#947; i and variance &#963; 2 n = &#8721; 3 i=1 &#963; 2 n,i &#947; 2 n,i for normal vital signs. Abnormal vital signs follow a Gaussian distribution with mean &#181; a = &#8721; 3 i=1 &#181; a,i &#947; i and variance &#963; 2 a = &#8721; 3 i=1 &#963; 2 a,i &#947; 2 a,i .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Accuracy Model</head><p>We set a detection threshold &#964; = &#8721; 3 i=1 &#964; i &#947; i over the thresholds {&#964; 1 , &#964; 2 , &#964; 3 } for each feature dividing divides normal from abnormal vital signs. We, then, define P DE as the misdetection probability of normal vs abnormal vital signs. In fact, the probability density functions of abnormal vital signs (e.g. f a (y|U, X)) and error (e.g. &#961;(e|U, X) in Section III-B) follow independent Gaussian distributions.</p><p>Let P DE = P(&#945;, &#946;, &#951;) be the abnormality misdetection probability with the following events:</p><p>&#8226; sensor's error tolerance &#945; = {e(U, X) &lt; T},</p><p>&#8226; region of abnormal vital signs &#946; = {y &gt; &#964; }, and &#8226; activity and current level &#951; = {X = x, U = u}. The joint misdetection probability can be written as,</p><p>(</p><p>Consider the upper bound for the P(&#951;), with no prior knowledge about U and X,</p><p>Note that abnormal vital signs are functions of the activity but independent of sensor's current level,</p><p>Assuming P(&#945; | &#951;(U, X)) &#8764; N (0, &#963;) and P(&#946; | X = x) &#8764; N (&#181; a , &#963; a ) we obtain</p><p>By substituting error probability in the sensor from Eq. 2, we finally obtain</p><p>We can now formulate the optimization problem as the trade off between sensing power consumption C TX and the probability P UB as follows minimize U C TX (U ) subject to P UB &#8804; &#952; or, equivalently,</p><p>We define the Lagrangian multiplier &#955; to solve the equivalent optimization problem,</p><p>Taking the derivative w.r.t. the sensor's current level,</p><p>we obtain a linear relation between power consumption and current level:</p><p>Given the Gaussian PDF of &#945; and linearity between &#945; and U , we have</p><p>The optimal (U * , &#955; * ) can be then calculated as</p><p>The edge processor periodically determines in real-time the lowest sensor's current setting such that the maximum error probability is below the desired threshold. Assuming N possible current levels, the complexity this search is O(N ). The algorithm is summarized in 1).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Algorithm 1 Sensor current control loop</head><p>1: procedure SOLUTION(&#964;, T ) &#9667; &#964; and T are thresholds at a given time t</p><p>Extract Activity level X 3:</p><p>Calculate the variance of the error e(U, X).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>5:</head><p>Calculate tail Gaussian P(e | U = u, X = x) 6:</p><p>Estimate P DE using P UB .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>7:</head><p>if P UB &lt; &#964; then return u until the system is terminated</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. NUMERICAL RESULTS</head><p>We now illustrate the characteristics of the vital sign signals and the performance of the proposed system. We use the total variance of RM SE to determine the parameters of the Gaussian distribution modeling misdetection. As shown in Figure <ref type="figure">5</ref> (a), as expected the variance decreases when the current level is increased. This is more apparent in vigorous activities, such as "Jogging" or "Running".</p><p>Figure <ref type="figure">6</ref> shows the PDF of two activities with the calculated error variance. Higher values of variance in lower current levels lead to higher values of the error probability P error . The shaded regions in Figures <ref type="figure">6 (a</ref>) and 6 (b) correspond to P error with a threshold of RM SE, T = 2 (see Section III-B). Note that the error probability in vigorous states decreases significantly with higher current levels. We observe that the error probability during "Running" or "Jogging" with the minimum current level of 0.8mA is one. In other words, none of the features, including heart rate, respiration rate or SpO 2 can be extracted from the noisy signal. High noise levels often affect signal acquisition in wearable devices when users engage in vigorous physical activities. In our system, the consequence is that of 3.5mA is the lowest acceptable current level is such activities.</p><p>In order to evaluate our edge-assisted control platform, a healthy individual was monitored for 24-hour. The user's physical activity is estimated using the 3D acceleration signal. Placing the accelerometer sensor at the user's hand, we use hand movements to extract user's steps. The acceleration data is filtered, and steps are counted in each time interval. In addition, when no steps are detected, the orientation of the user is leveraged to differentiate between sitting and sleeping activities. Figure <ref type="figure">7</ref> (a) shows the activity level labeled "Sleeping", "Sitting", "Walking", "Jogging" and "Running" as {1, 2, 3, 4, 5} respectively.</p><p>Considering T = 2 as the predefined threshold of RM SE, we calculated the error probability for each current level. At each given time, based on the activity level, we are able to choose the lowest current level that satisfies the misdetection probability P UB shown in Equation <ref type="formula">8</ref>. High activity levels necessitate accurate monitoring that require choosing high In contrast, low activity levels, can fulfill the same threshold of probability of error with lower current levels. In the experiment shown in Figure <ref type="figure">7</ref> (a), we set the maximum probability of error to &#950; = 0.17 and set the weights as &#947; 1 = 0.25, &#947; 2 = 0.35, &#947; 3 = 0.4. In the results, we define the mean and variance of abnormal vital signs for each activity. In particular, the aggregate of normal vital signs y follows the distribution N (&#181; n , &#963; n ) with &#181; n = {57.72, 60.43, 74.29, 83.97, 91.53} and &#963; n = {0.25, 0.73, 1.17, 1.45, 0.62} in the order of "Sleeping", "Sitting", "Walking", "Jogging" and "Running", respectively.</p><p>In   <ref type="formula">8</ref>). The threshold &#952; = {0.09, 0.11, 0.12, 0.13, 0.17} corresponds to the desired upper bound of misdetection probability P UB for each activity.</p><p>Figure <ref type="figure">7</ref> (b) illustrates the comparison between our proposed methodology, and static current levels corresponding to the lowest and the highest sensing power. The lowest sensing power consumption in the sensor leads to unacceptably high error probability, while the highest current level leads to an excessively high energy consumption. During the 24hour experiment, we measured 5983.4J and 7721.4J consumed by the lowest and highest sensing power, respectively. Our energy efficient algorithm reduced the energy consumption to 6417.5J. Average sensing power consumption of 74.32mW was observed which amounts to a 16.9% reduction compared to 89.43mW of the highest sensing power level. Figure <ref type="figure">7 (c)</ref> shows the error probability associated with each current level. Note that using the lowest current level leads to an unacceptable P error = 1 during "Jogging" and "Running".</p><p>Using the same scenario of 24-hour activity, we measured the tradeoff between the maximum error probability and energy consumption, which is illustrated in Figure <ref type="figure">8</ref>. Our system can detect abnormalities with tolerance of RM SE = 50 by choosing the lowest current level, leading to an energy expense equal to 5983.4J. If we set the maximum error tolerance to RM SE = 0.1 or less, we have a large probability of error for all current levels during any activity. Therefore, no matter what we determine as the maximum error probability threshold, the system will choose the highest current level and the total sensing energy consumption during a 24-hour activity monitoring is 7721.4J. Settings between these two extreme cases determine the maximum probability of error and the necessary energy consumption. The energy expense over the 24h period decreases as the maximum tolerable probability increases. Similarly, reducing the tolerable RM SE variance decreases energy expense.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>V. CONCLUSIONS</head><p>This paper proposes a context-aware control system for healthcare applications. The IoT infrastructure, and in particular edge and cloud servers, assist local sensors to dynamically adapt sensing parameters. The use-case we considered focuses on abnormality detection using PPG signals. We demonstrated that by adapting sensing accuracy, and thus energy consumption, to the user's activity, the lifetime of the sensor can be considerably extended. We leave to future work the development of predictive control strategies evaluating the long-term trajectory of users' daily activities.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>Recording mode: LEDs setting: 9.3mA 84.15mWRecording mode: LEDs setting: 12mA 89.43mW</p></note>
		</body>
		</text>
</TEI>
