Shikhar Suryavansh1, Abu Benna2, Chris Guest3, Somali Chaterji4. 1. Cisco Systems, San Jose, USA. 2. Beaconchain, Calgary, Canada. 3. LightBug, Bristol, England. 4. Purdue University, West Lafayette, IN, USA. schaterji@purdue.edu.
Abstract
Data transmission accounts for significant energy consumption in wireless sensor networks where streaming data is generated by the sensors. This impedes their use in many settings, including livestock monitoring over large pastures (which forms our target application). We present Ambrosia, a lightweight protocol that utilizes a window-based timeseries forecasting mechanism for data reduction. Ambrosia employs a configurable error threshold to ensure that the accuracy of end applications is unaffected by the data transfer reduction. Experimental evaluations using LoRa and BLE on a real livestock monitoring deployment demonstrate 60% reduction in data transmission and a 2 [Formula: see text] increase in battery lifetime.
Data transmission accounts for significant energy consumption in wireless sensor networks where streaming data is generated by the sensors. This impedes their use in many settings, including livestock monitoring over large pastures (which forms our target application). We present Ambrosia, a lightweight protocol that utilizes a window-based timeseries forecasting mechanism for data reduction. Ambrosia employs a configurable error threshold to ensure that the accuracy of end applications is unaffected by the data transfer reduction. Experimental evaluations using LoRa and BLE on a real livestock monitoring deployment demonstrate 60% reduction in data transmission and a 2 [Formula: see text] increase in battery lifetime.
There has been a tremendous growth in the number of IoT devices deployed worldwide. These IoT devices comprise of a network of dedicated physical objects (things) that contain embedded technology to interact with the external environment. According to Cisco, the number of networked devices is expected to reach 27.1 billion in 2021, i.e., about 3.5 devices per human on the planet. These IoT wireless nodes typically consist of a microcontroller, transceiver, memory unit, power source, and one or more sensors for sensing the ambient environment. Examples of such sensors include accelerometers, and sensors for vibration, temperature, and humidity. Wireless sensor networks are widely used in environmental monitoring[1-3], industrial control[4-7], infrastructure security, and other fields[8,9]. Data collected by the sensors is either processed locally or sent to a server for analysis[10]. This is meant to support algorithmic processing of sensor data for varied use cases like anomaly detection and object detection for end user applications in self-driving cars[11], digital agriculture[12], smart factories[7], etc.Since the sensor nodes are constrained in terms of their computational capacity and energy budget, the processing of the collected data usually takes place at a nearby connected edge server. Edge servers can include devices such as Raspberry Pis, wireless routers, or low to mid-range servers installed close to the sensor nodes to reduce latency in data transmission. Low latency is important because the data may be used to trigger real-time responses, in addition to monitoring purposes, such as activating cooling procedures if the temperature of an industrial plant operation rises above a threshold.Several wireless network technologies can be utilized for data transfer between the sensor nodes and the edge server. These include Bluetooth Low Energy (BLE), IEEE 802.11 power saving mode, IEEE 802.15.4/e, as well as long-range technologies such as LoRa and SIGFOX. Low energy consumption is a critical requirement for IoT sensor nodes since they are usually battery operated. In order to increase battery life, energy consumption of these sensor nodes have been optimized using techniques such as efficient routing[13], data compression[14], duty cycling[15], mobility[16], and approximate computing[17,18]. Energy harvesting[19,20] to power the sensor nodes is another approach that has been used to prolong the battery life in the field of wireless gas sensors for air quality monitoring.For any application, the sensor nodes need to perform the following tasks: sense events, locally process the sensed data (if needed), and transmit the data to the server[21,22]. Each of these tasks contribute to the energy consumption at the sensor node and thereby influence the battery lifetime. The total energy consumption therefore consists of the circuit energy consumption (sensing and processing) and the transmission energy consumption. However, for a wide majority of sensor networks, the radio chip is the most power hungry component and hence most of the energy consumption occurs because of data transmissions[23,24]. For such networks, irrespective of the wireless network technology used, data transfer accounts for at least of the total energy consumption[25]. A comparison of the energy consumption of various network technologies obtained from[26] has been provided in Table 1. The percentage is much higher for long-range technologies such as LoRa and SIGFOX, where data transmission can consume as high as of the available energy. Therefore, reduction in data transmission from the sensor nodes to the edge nodes or to the cloud (as the case may be for the processing requirement) can significantly reduce the energy consumption and increase battery lifetimes. It must be noted that there exist such wireless sensor networks in which the sensor itself is the most energy consuming and not the radio chip. For example, if we consider wireless gas sensor networks, the main consumer of energy would be the gas sensor[27,28]. Reducing data transmission for such sensor networks would still result in a lower energy consumption but the impact would not be as significant.
Table 1
Power consumption of various network technologies (assuming all the states are equally likely; for high data rate, the likelihood of sensor node being in Tx or Rx would be greater than the other states resulting in an even higher percentage power consumption for data transfer).
Power consumption comparison of wireless network technologies
Wireless technology
Hardware platform
P_Tx (mW)
P_Rx (mW)
P_Idle (mW)
P_Sleep (μW)
Percentage power consumption for data transfer
802.11 PSM
G2M5477
699.6
170
66
13.2
92.9
BLE
nRF51822
37.2
42.3
13.2
7.8
85.8
802.15.4
SmartMeshIP
24.11
20.87
4.67
4.32
90.6
LoRa
GreenNet
158.4
44.06
–
4.32
99.9
SIGFOX
GreenNet
147
39
–
4.32
99.9
Power consumption of various network technologies (assuming all the states are equally likely; for high data rate, the likelihood of sensor node being in Tx or Rx would be greater than the other states resulting in an even higher percentage power consumption for data transfer).In this paper, we propose Ambrosia, an efficient technique for reducing the data transmission from the sensor nodes to the servers. In ancient Greek mythology, Ambrosia is the food and drink of the Greek gods, conferring longevity to whoever consumes it. In our work, we aim at increasing the lifetime of the IoT sensor nodes by reducing the bulk of data transfer. The key intuition behind Ambrosia is that the data samples whose values can be accurately predicted at the edge server do not need to be transmitted from the sensor nodes to the backend servers. Ambrosia utilizes a simple window-based prediction scheme to decide which data samples need to be transmitted from the sensor node to the server. Since the sensor nodes have limited resources, a computationally intensive technique for data reduction, no matter how accurate, would be sub-optimal. Executing a compute-intensive technique on the sensor node would overshadow the advantage accrued from data reduction. Further, a computationally intensive algorithm may not be able to keep pace with the rate at which streaming data is being generated resulting in missing timing deadlines. Thus, we design Ambrosia to be sufficiently lightweight to be able to easily execute on the constrained sensor nodes, as well as designed toward reduced data transmission to the edge servers while meeting the user-defined accuracy bounds.The impact of errors in the transmitted data on the accuracy is different for different types of applications. Hence, the optimal value of the error threshold would depend upon the specific application under consideration. For example, a sensitive application such as operating a medical equipment based on the sensor readings would be susceptible to even a small error in the data. On the other hand, applications such as anomaly detection can tolerate a higher magnitude of error in the transmitted data. We utilized data collected from different production-grade sensor nodes in a livestock monitoring deployment on a large farm. We measured the effectiveness of Ambrosia in different application settings with different tolerances for errors. In particular, for the anomaly detection application, Ambrosia is hugely effective in reducing the amount of data transmitted from the sensor nodes to the edge servers.This problem statement of reducing transmission in sensor networks has seen significant work (as pointed out with categorization above[13-16,29]). However, our approach is novel in that it creates a very lightweight approach, one that can run even on the most constrained of sensor nodes, like ear tags on livestock. Further, no prior work has looked at the interplay between short-range and long-range wireless technologies (BLE and LoRa respectively) and has not shown the effect of the error threshold on anomaly detection—we use a recent approach from the ML literature for application-agnostic anomaly detection[30].The main contributions of this paper are: The rest of the paper is organized as follows: Section “Background and related work” presents the background on wireless sensor networks and their energy consumption. Section “System model” provides the details of our system model and the proposed protocol. Section “Experimental setup” presents the experimental setup and section “Evaluation” the evaluation results. Finally, section “Conclusion” concludes the paper.We propose Ambrosia, a lightweight protocol that can reduce the number of data samples that need to be transmitted from the IoT sensor node to the edge server in a wireless sensor network, thereby reducing energy consumption. We show that Ambrosia can reduce the data transmission by at least thereby increasing lifetime by at least for low traffic intensities and for high traffic.We take into consideration the variation in the error tolerance of different applications and design our technique in a way that ensures that the accuracy of the applications is not compromised because of reduction in the data transmission. For an error-sensitive application like displacement computation, we obtain
reduction in data transfer whereas for an error-tolerant application like anomaly detection, the reduction in data transfer is more significant [
].We perform evaluation with multiple sensors (such as MEMS vibration sensors, temperature and humidity sensors) and applications, including a real-world deployment in a production livestock farm, to demonstrate that Ambrosia is applicable to a wide range of sensors and applications.
Background and related work
Power consumption of different wireless technologies
Different wireless communication technologies can be used for data transmission in an IoT sensor node depending upon the required data rate, data size, and range. We present a comparison of the power consumption of the IoT sensor node using various wireless technologies in Table 1 obtained from[26].From Table 1, it is evident that majority of the power is consumed for data transmission and reception for all the technologies. Moreover, for long-range technologies such as LoRa and SIGFOX, the amount of power consumed for data transmission is higher than that for low-range technologies such as BLE ( ( versus ). Thus, Ambrosia can be more beneficial in energy savings when deployed for long-range technologies.
Time-series forecasting
State space models (SSMs) provide a principled framework for modeling and learning time series patterns, with prominent examples being ARIMA models and exponential smoothing. SSMs predict the future values of data streams indexed by time, based on previously observed values. In a forecasting method without online tuning (offline mode), the predicted values of previous samples are used for future predictions. In contrast, with online tuning, future samples are always predicted using the true values of the previous samples. Online means the model is re-calibrated based on the actual values observed at runtime. In the online mode, it is assumed that the true values of the samples would be available after prediction. For our data-reduction protocol, we propose a window-based forecasting technique (“Window-based forecasting”) that utilizes a combination of the online and offline modalities. A popular and widely used technique for time-series forecasting is the AutoRegressive Integrated Moving Average (ARIMA) model. Time-series forecasting plays an important role in our data-reduction protocol. We provide a comparison of our window-based forecasting protocol vis-à-vis ARIMA in section “Comparison of window-based and ARIMA forecasting”. There are other neural network-based models, e.g.[31,32] that can extract higher-order features and complex patterns within and across time series, but these models are too compute-intensive for our purposes.
Anomaly detection using Robust Random Cut Forest Algorithm (RRCF)
RRCF[30] is a scheme that utilizes an ensemble, robust random-cut data structure, for detecting anomalies from IoT sensor data streams. RRCF does not have a preconceived notion of anomaly. It defines anomalies from the viewpoint of model complexity and determines a point as anomalous if the complexity of the model increases substantially with the inclusion of that point in the data stream. The anomaly score of a data point is obtained using its Collusive Displacement (CoDISP) with the outliers resulting in large CoDISP values. A point is labeled an anomaly if its anomaly score exceeds a threshold.
Software stack optimization for edge or cloud analytics
The software stack, such as of the database itself, or of cloud-hosted database instances can be reconfigured in the face of rapidly changing IoT workloads, as done for on-premise NoSQL DBs[33] or for cloud-hosted or serverless infrastructure in the face of changing workloads[34,35]. This reconfiguration can result in performance benefits whether in terms of the more conventional throughput-based metrics (e.g., for genomics workloads) or for latency-based metrics (e.g., p95 or p99 latency). These systems are often designed to help achieve cost and performance efficiency for cloud-hosted databases, rightsizing resources to benefit both the cloud vendors who do not have to aggressively over-provision their cloud-hosted servers for fail-safe operations and to the clients because the data center savings can be passed on them. Such optimized software stacks can improve the end-to-end performance of IoT pipelines.
System model
Network architecture
Network architecture.The network architecture consists of multiple IoT sensor nodes connected wirelessly to an edge server using BLE or LoRa network as shown in Fig. 1. The edge server is in turn connected to the cloud. Data collected by the IoT sensor nodes is sent to the edge server for analysis. From the edge server, the data can be sent to the cloud for storage and further analysis as needed. Henceforth, when we refer to a “server”, we mean an edge server, rather than a cloud server (unless explicitly mentioned otherwise).
Figure 1
Network architecture.
Ambrosia ’s rationale and features
The main goal of our protocol Ambrosia is to reduce the amount of data that is sent from the sensor node to the edge server thereby conserving power and increasing battery life. The animating intuition is that the sensor node does not need to send the data samples whose values can be predicted accurately at the server—accurately implies within the bounds of a specified error threshold. If the sensor node can track the sample values that will be predicted successfully at the edge server even if the data sample is not sent, then the sensor node can make an informed decision as to whether or not to send those data samples to the server. This decision would be based on the error between the true sample and the predicted sample value.Figure 2 shows the system model for our protocol Ambrosia, showing the steps performed at the sensor node and the edge server. The first w (window size) true samples collected by the sensor node are sent to the server. For every sample after that, the sensor node predicts its value and compares the predicted value with the collected true value. The true sample is sent to the server only if the absolute difference between the true and the predicted samples is greater than a user-specified (equivalently, application-specific) error threshold . A simple window-based forecasting scheme (described in section “Window-based forecasting”) is used for prediction. The same prediction scheme is used at the server. This assures that if the true sample is not sent, the value predicted by the server would be within the value generated by the sensor node ± the error threshold.
Figure 2
Proposed protocol—Ambrosia: is the window size and is the error threshold.
There is another important construct of the protocol needed to assure that there is no mismatch between predicted values at the sensor node and those at the server. When the sensor node decides not to send the true value of a particular sample to the server, it uses the predicted value of that sample for future predictions and not the true value although it has access to the true value. This is to replicate the settings at the server, namely, the server does not have the true value of that sample and can only use the predicted value for future predictions.Hence, the proposed protocol—Ambrosia—has two important features:True samples are sent from the sensor to the server only when required, i.e., when the difference between the true and predicted sample values crosses the error threshold.The samples for which the true value is not sent from the sensor to the server, the predicted value at the server is the same as the value that was predicted at the sensor (using which it was decided whether to send that sample or not). Hence, when the true sample is not sent, the predicted sample at the server never crosses the error threshold.Proposed protocol—Ambrosia: is the window size and is the error threshold.Data sent for various error thresholds. Expectedly, as the threshold becomes higher, fewer data points are sent and the deviation between the true data and the processed data also increases.
Window-based forecasting
The forecasting technique should be simple enough to run on the energy- and memory-constrained sensor nodes without incurring high costs. It may not be feasible to run a computationally intensive algorithm on the sensor nodes for a slightly improved prediction. This rules out using algorithms like Recurrent Neural Networks (RNN), which have been used for time-series prediction but have also been found to be rather resource intensive[32]. Further, for certain applications, an approximate prediction may be sufficient. We propose a window-based forecasting technique for predicting the next sample using the past samples. The next sample is predicted by adding the average of the difference between w adjacent previous samples to the current sample. The parameter w is the window size. In section “Comparison of window-based and ARIMA forecasting”, we compare the performance of this scheme with ARIMA, a traditional approach for time-series forecasting and one which is heavier weight than our calculation. Our window-based forecasting method simplifies as follows:The next sample is predicted using the current sample and wth past sample. A lower value of w implies that a more recent sample is used for the prediction of the next sample. Also, the normalization by w guarantees that if a recent past sample is used, its contribution to the prediction is higher. The optimal value of w would depend upon the IoT data collected and the application.
Experimental setup
The hardware used in this experiment consisted of 2 parts: Tag nodes attached to the animals, and gateways connected to a PC. The tag nodes were standard Lightbug LoRa GPS trackers modified to run custom firmware and encased in 3D printed plastics with ear tag attachment. The electronic component of these devices consisted of a LoRa modem (Semtech SX1726 chipset), pig tail helical antenna, atmel 8-bit microcontroller and MPU6050 6 axis accelerometer.Once configured, the devices could be set to an “active” state. In this mode, they streamed sampled inertial and GPS data to the gateway over LoRa. Quaternions were computed on the device using instantaneous unfiltered data and only sent at 1 Hz to reduce data transmission size. Data was buffered locally and then transmitted in batches to the gateway over LoRa at a data rate of approximately 1 kB/s, in chunks of 60 bytes (due to module/band licensing restrictions).Once the animals were tagged with devices, they were released into a small enclosure to ensure they could be observed and stayed within transmission range. Data was then recorded for activities like walking, eating, or running. In the following section, we present our evaluation results on the acceleration dataset. Similar results were also obtained for other datasets such as temperature, humidity, and vibration [not shown due to space constraints].
Evaluation
Anomaly detection for various error thresholds. For threshold up to 1.2, the accuracy of the anomaly detection application is not affected.
Reduction in data transfer
We now present the effectiveness of our approach in reducing the amount of data that needs to be sent from the sensor node to the server. Figure 3 shows the transmission reduction for first 200 samples of the acceleration data collected by the sensor node. We evaluated the impact of changing on the percentage of true samples that need to be sent to the server. In Fig. 3a,b, ‘Processed data’ are the samples stored at the server. It includes the true samples (marked in blue) received from the sensor node and the samples predicted (marked in red) by the server when the true sample is not received. For clarity, marking in the figures is done for every other sample.
Figure 3
Data sent for various error thresholds. Expectedly, as the threshold becomes higher, fewer data points are sent and the deviation between the true data and the processed data also increases.
From Fig. 3a, we can see that even a small can reduce the percentage of samples sent to , thereby providing a reduction in transmission energy consumption. Notably, the processed data is remarkably close to the true data with a normalized Mean Squared Error (MSE) between them = 0.05. For as high as 2.0, only of the data needs to be sent. However, the normalized MSE in this case is very high (= 1.03) and a substantial distinction can be spotted between the true and processed data (in Fig. 3b). This high an error may not be suitable for most applications and hence it is important to choose an optimal value of the error threshold.The optimal value of would depend upon a lot of factors such as how sensitive is the desired application to the errors in data samples, how much reduction in the power consumption is required (based on an energy budget) or what is the maximum normalized MSE that can be tolerated. Applications such as anomaly detection are more immune to the errors in data samples and can endure a high value. On the other hand, applications such as sensor tracking of health devices require every individual data sample to be very accurate. Such applications would require to be low.Data reduction and normalized error comparison between window forecasting and ARIMA (p = 3, d = 1, q = 0) forecasting; number of samples = 200.Comparison between the execution time of Ambrosia ’s window-based and ARIMA forecasting. The slope of the ARIMA plot is higher than that of ours.States of the sensor node during a Transmission Interval (TI).Increase in IoT sensor node lifetime due to reduction in data transmission; TI is the transmission interval, thus we have low traffic intensity (TI = 1 h) to high traffic intensity (5 s in BLE, 30 s in LoRa). The gain of Ambrosia is significantly higher for higher traffic intensity and is available for both wireless technologies LoRa and BLE.
Impact on application: anomaly detection
We have evaluated the impact of reducing data transmission on the accuracy of RRCF anomaly detection application. The aim is to determine if a reduction in the percentage of samples sent negatively impacts the application’s performance. Figure 4 shows a comparison between the anomaly scores of the true data (when all the data samples are sent) and the processed data for different error thresholds ( for Fig. 4a; for Fig. 4b).
Figure 4
Anomaly detection for various error thresholds. For threshold up to 1.2, the accuracy of the anomaly detection application is not affected.
We are interested in finding out whether the peaks are preserved or not as they are used to detect anomalies. In short, there should not be any false positives (introduction of a false peak) or missed detections (failure to detect a peak) because of the limited data samples sent. We observed that for low values of error threshold, the anomaly score curve for the processed data is comparable to the curve for the true data. For instance, all the anomaly peaks are preserved for , as shown in Fig. 4a. We observed similar behaviour as increases up to 1.2, beyond which the correlation between the two curves reduces. Figure 4b shows the introduction of false positives and missed detection when .It is desirable to have the value of as high as possible (since it reduces the percentage of samples sent), until it starts (negatively) impacting the application’s performance. We saw that for anomaly detection, this value is 1.2, which requires only of the data to be sent from the sensor node to the server. It must be noted that if the application’s performance is more sensitive to the accuracy of individual data samples, then the desirable for that application would be lower. One such application is displacement computation.
Comparison of window-based and ARIMA forecasting
As mentioned in section “Window-based forecasting”, we use a simple window-based forecasting method for prediction at the sensor nodes and the server. In this section, we compare the performance of our window-based method with the well known ARIMA forecasting technique. In Table 2, the two forecasting methods are compared based on the percentage of data sent and the normalized MSE for different values of . It is evident from the table that the performance of both the methods is similar in terms of the amount of data sent and normalized MSE. This means that both the methods result in a similar increase in the lifetime of the sensor nodes. However, window-based forecasting is computationally much simpler vis-à-vis ARIMA, making it more feasible to be implemented on the resource-constrained sensor nodes.
Table 2
Data reduction and normalized error comparison between window forecasting and ARIMA (p = 3, d = 1, q = 0) forecasting; number of samples = 200.
In Fig. 5, we compare the execution time of the two methods for different number of data samples. From the figure, we can observe that the execution time for ARIMA is significantly higher than that of the window-based method. Also, the slope of the ARIMA plot is higher than that of Ambrosia ’s window-based forecasting method. The longer execution time of ARIMA indicates that it cannot sustain a high data rate of incoming samples from the sensor node. Hence, it is preferable to use window-based forecasting method as it provides matched performance with much lower execution time than ARIMA.
Figure 5
Comparison between the execution time of Ambrosia ’s window-based and ARIMA forecasting. The slope of the ARIMA plot is higher than that of ours.
Reason for using ARIMA as baseline
Our goal is to use lightweight technique so that it can run on an embedded microcontroller. Thus, we do not want to use more complex models like neural network models. We choose ARIMA as this is a superset of many time series models and specific time series models can be derived from it by setting appropriate values for its three parameters. For the baseline evaluation, we optimize the values of the parameters of ARIMA.Further, ARIMA despite being an old technique, continues to be successfully applied to time series prediction and is found to be especially suitable for lightweight computation. Publications highlighting this aspect of ARIMA continue to appear till now with regularity[36-38].
Increase in sensor node battery lifetime
In this section, we utilize the technique illustrated in[26] to correlate the reduction in the amount of data transmitted by the sensor node to the increase in the battery lifetime of the node. We performed the evaluations for LoRa and BLE wireless network technologies. For each wireless technology, we consider varying traffic intensities controlled by the transmission interval (TI) which is the interval between two instances of data transmission. A high value of TI indicates that data is transmitted less frequently thereby corresponding to a low traffic intensity. TI is divided into four states. The first state is the transmission state () during which data is transmitted from the sensor node to the server. Let D be the data size in bits (b) sent every TI and R be the data transmission rate in bits/s (b/s). Then, . After that, the node waits to receive the ACK. This state between the data transmission and ACK reception is the idle state (). Next is the reception state () during which the ACK is received. Finally, the node goes to the sleep state () which continues until the start of the next transmission interval. Figure 6 shows the different states of the sensor node during a transmission interval.
Figure 6
States of the sensor node during a Transmission Interval (TI).
To compute the battery lifetime of the node, we start with an initial energy corresponding to two AAA batteries (1.5 V, 1250 mAh each). Therefore, = 2 (1.5 V) (1.25 Ah) (3600 s) = 13,500 J = 13.5 kJ. The energy consumed during a TI is computed using the energy consumption model in Eq. (3) derived from[26]. Lifetime (L) of the node is computed using the total number of TIs possible until the initial energy () is exhausted as shown in Algorithm 1.We computed the lifetime of the sensor node for LoRa and BLE wireless technologies for varying data sizes (D) which depends upon the percentage of data transmitted. We aim to demonstrate the effectiveness of transmitting a lower percentage of data on the increase in the lifetime of the node. Figure 7 shows the lifetime of the sensor node battery for different values of TI as the percentage of data sent varies. For our experiments, data transmission corresponds to 8 kb of data. The data transmission rate (R) considered for LoRa and BLE is 11 kb/s and 2 Mb/s respectively.
Figure 7
Increase in IoT sensor node lifetime due to reduction in data transmission; TI is the transmission interval, thus we have low traffic intensity (TI = 1 h) to high traffic intensity (5 s in BLE, 30 s in LoRa). The gain of Ambrosia is significantly higher for higher traffic intensity and is available for both wireless technologies LoRa and BLE.
For LoRa (Fig. 7a), if data sent is reduced to , the lifetime increases by (from 3.5 to 6 years) for low traffic intensity (TI = 1 h) and by (from 0.02 to 0.08 years) for high traffic intensity (TI = 30 s). LoRa is an expensive technology as long range transmissions consume more energy. If the traffic intensity is high, transmitting of the data would drain the battery very quickly. Therefore, we obtain a higher percentage increase in the lifetime by reducing the data transmission for high traffic intensity. For BLE (Fig. 7b), if data sent is reduced to , the lifetime increases by (from 29.18 to 29.60 years) for low traffic intensity (TI = 1 h) and by (from 1.5 to 3 years) for high traffic intensity (TI = 5 s). BLE does not consume as much power as LoRa, especially if the traffic intensity is low. For low traffic, even with data transmission, the device has a very high battery lifetime of 29.18 years. Hence, for low traffic, reducing the amount of data sent does not result in a significant percentage increase in the lifetime. However, in many scenarios, BLE is used for streaming data and with a reasonable rate of data, the total data volume can be quite larger and in those cases Ambrosia has significant benefit.
Second application: displacement computation for livestock
We now present the impact of reduction in data transmission on a different application, namely, displacement computation, to track the movement of the animals with ear tags attached. In this application, we used the acceleration data to compute the displacement by double integration. Figure 8 shows a comparison between the displacement computation for the true data (when all the samples are sent) and for the processed data with various error thresholds ( = 0.3, 0.5, and 1.0 m/s). Unlike the anomaly detection application, this application is more sensitive to the accuracy of individual samples. Therefore, we expect the desirable value of to be lower for this application. The intuition behind this is that the accuracy of this application relies highly upon the numerical values of the samples being accurate compared to the anomaly detection application. In the anomaly detection application, the accuracy depends more on the aberration patterns in the sample values and not much on the numerical values of the samples.
Figure 8
Displacement computation for various error thresholds. For threshold up to 0.3 m/s, the accuracy of displacement computation is not affected.
Displacement computation for various error thresholds. For threshold up to 0.3 m/s, the accuracy of displacement computation is not affected.We measured the performance of displacement computation for different values by comparing their displacement curves with the true displacement curve. We quantified the error in terms of normalized MSE. From Fig. 8, we can see that the displacement curve for = 0.3 m/s is comparable to the true displacement curve and the normalized MSE is very low. For higher values of , there is a visible disparity between the curves and the normalized MSE is considerably high. For instance, for = 1.0 m/s, the normalized MSE is 42.34 m. Therefore, the desired value of for this application is around 0.3 m/s, which requires 64.62% of the data to be sent from the sensor node to the server, i.e., 35.38% lesser data transmission than baseline. Recall that for the anomaly detection application, we could obtain a higher reduction (68%) in data transmission. This goes on to show that the optimal value of (and hence, the reduction in data transmission obtained) depends highly upon the application under consideration and how sensitive the application quality is to the accuracy of the individual samples.
Conclusion
Here we presented Ambrosia, a lightweight protocol for reducing the amount of data transmissions from IoT sensors to the server resulting in an increase in the battery lifetime of the sensor nodes. We introduced a window-based time series forecasting mechanism that forms a key element of our data reduction protocol and can be easily implemented on even the most resource constrained sensor nodes, such as ear tags put on livestock. Compared to the state-of-the-art ARIMA forecasting, Ambrosia is considerably faster ( lower execution time) while providing similar data reduction. We evaluated Ambrosia on different wireless network technologies such as LoRa and BLE and obtained more than reduction in data transmission (almost increase in sensor node battery lifetime). We identified the correlation between the data reduction and error tolerance of different applications and provide a configurable error threshold to ensure that the accuracy of the end applications is not impacted by the reduction in data transmissions.
Authors: Juan Aponte-Luis; Juan Antonio Gómez-Galán; Fernando Gómez-Bravo; Manuel Sánchez-Raya; Javier Alcina-Espigado; Pedro Miguel Teixido-Rovira Journal: Sensors (Basel) Date: 2018-01-10 Impact factor: 3.576
Authors: Mahmoud Salem; Ahmed Elkaseer; Islam A M El-Maddah; Khaled Y Youssef; Steffen G Scholz; Hoda K Mohamed Journal: Sensors (Basel) Date: 2022-09-01 Impact factor: 3.847