2
Towards Cognitive Device Management: A Testbed to Explore Autonomy for Constrained IoT Devices Anders Eivind Braten, Nattachart Tamkittikhun, Frank Alexander Kraemer and Doreid Ammar Department of Information Security and Communication Technology NTNU, Norwegian University of Science and Technology, Trondheim, Norway {anders.e.braten, nattachart.tamkttikhun, kraemer, doreid.ammar}@ntnu.no ABSTRACT Providing constrained IoT devices with more intelligence is important to make them work optimally with regard to energy consumption and quality of data. To overcome the constraints of the sensors, we place cognition, i.e., learning and planning, in the cloud. In this demonstration paper, we present a testbed for exploring autonomy for constrained sensor nodes. ACM Classification Keywords K.6.4 System Management: I.2.11Distributed Artificial Intel- ligence Author Keywords Internet of Things; Solar Energy Harvesting; Autonomous Device Management; Machine Learning MOTIVATION: AUTONOMOUS CONSTRAINED NODES Miorandi et al. [2] emphazise the importance of including self- management and autonomic capabilities in devices connected to the Internet of Things (IoT). Often, the purpose of such devices is to collect as much data as possible, with the best possible quality. Since data collection requires energy, which is a scarce resource in most IoT systems, many devices harvest energy from their environment. However, they run the risk of depleting their battery if they lack knowledge of their energy budget, i.e., energy intake vs. energy consumption. This is a challenge since IoT devices often are too constrained in regard to both computation and communication to learn and plan ahead. Constrained devices usually also lack access to con- textual data, like weather forecasts. Such data can contribute to better estimations. Outsourcing the estimation process to the cloud is a countermeasure to these constraints. We have built a lab to explore how to make constrained sensor nodes able to operate more autonomously. The lab has two goals: 1) to explore autonomous resource management for IoT devices using machine learning; and 2) to make the learning process itself autonomous. Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]. IoT’17, October 22–25, 2017, Linz, Austria © 2017 Copyright held by the owner/author(s). Publication rights licensed to ACM. ISBN 978-1-4503-5318-2. DOI: 10.1145/3131542.3140282 Figure 1. Sensor nodes used for testing in real weather conditions. SYSTEM OVERVIEW AND ARCHITECTURE In our testbed, we use Libelium Waspmotes to collect data. They are connected to The Things Network (TTN) via Lo- RaWAN antennas. We have three distinguished sets of nodes, deployed in different ways. Some are placed in various loca- tions in the city of Trondheim. These are used for long-term data collection. We also have equipment to do high-precision measurements of energy consumption in the lab. Our most prominent sensor nodes are the 8 solar powered sensor nodes we have deployed on the roof, as shown in Figure 1. These are used for experimentation and testing under real weather condi- tions. The sensor nodes provide sensor data such as CO 2 level, sound level and temperature, as well as energy-related meta data, e.g., battery level and solar charging current. The data is uploaded to TTN via an antenna located approximately 400 meters away. An overview of the architecture of the testbed is shown in Figure 2. We also collect the latest local weather forecast from the Norwegian Meteorological Institute. The collected data is stored as .csv files and then pre-processed in the cloud using Python and Pandas. Our ultimate goal is to build a system (using Scikit-Learn) that continuously learns, predicts and plans the energy budget for each device. To meet such requirements, we train a machine learning model every day. The model uses the most recent data (i.e., weather fore- cast and the position of the sun) as input to predict the energy intake per sensor node for the next 24 hours. Later, we use the predictions to identify the optimal sensing mode for each sensor device, i.e., instruct the sensor to send as much data as it can while keeping the battery level as stable as possible.

Towards Cognitive Device Management: A Testbed …folk.ntnu.no/kraemer/2017-iot-braten.pdfSYSTEM OVERVIEW AND ARCHITECTURE In our testbed, we use Libelium Waspmotes to collect data

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Towards Cognitive Device Management: A Testbed …folk.ntnu.no/kraemer/2017-iot-braten.pdfSYSTEM OVERVIEW AND ARCHITECTURE In our testbed, we use Libelium Waspmotes to collect data

Towards Cognitive Device Management:A Testbed to Explore Autonomy for Constrained IoT Devices

Anders Eivind Braten, Nattachart Tamkittikhun, Frank Alexander Kraemer and Doreid AmmarDepartment of Information Security and Communication Technology

NTNU, Norwegian University of Science and Technology, Trondheim, Norway{anders.e.braten, nattachart.tamkttikhun, kraemer, doreid.ammar}@ntnu.no

ABSTRACTProviding constrained IoT devices with more intelligence isimportant to make them work optimally with regard to energyconsumption and quality of data. To overcome the constraintsof the sensors, we place cognition, i.e., learning and planning,in the cloud. In this demonstration paper, we present a testbedfor exploring autonomy for constrained sensor nodes.

ACM Classification KeywordsK.6.4 System Management: I.2.11Distributed Artificial Intel-ligence

Author KeywordsInternet of Things; Solar Energy Harvesting; AutonomousDevice Management; Machine Learning

MOTIVATION: AUTONOMOUS CONSTRAINED NODESMiorandi et al. [2] emphazise the importance of including self-management and autonomic capabilities in devices connectedto the Internet of Things (IoT). Often, the purpose of suchdevices is to collect as much data as possible, with the bestpossible quality. Since data collection requires energy, whichis a scarce resource in most IoT systems, many devices harvestenergy from their environment. However, they run the risk ofdepleting their battery if they lack knowledge of their energybudget, i.e., energy intake vs. energy consumption. This is achallenge since IoT devices often are too constrained in regardto both computation and communication to learn and planahead. Constrained devices usually also lack access to con-textual data, like weather forecasts. Such data can contributeto better estimations. Outsourcing the estimation process tothe cloud is a countermeasure to these constraints. We havebuilt a lab to explore how to make constrained sensor nodesable to operate more autonomously. The lab has two goals: 1)to explore autonomous resource management for IoT devicesusing machine learning; and 2) to make the learning processitself autonomous.Permission to make digital or hard copies of all or part of this work for personal orclassroom use is granted without fee provided that copies are not made or distributedfor profit or commercial advantage and that copies bear this notice and the full citationon the first page. Copyrights for components of this work owned by others than theauthor(s) must be honored. Abstracting with credit is permitted. To copy otherwise, orrepublish, to post on servers or to redistribute to lists, requires prior specific permissionand/or a fee. Request permissions from [email protected].

IoT’17, October 22–25, 2017, Linz, Austria

© 2017 Copyright held by the owner/author(s). Publication rights licensed to ACM.ISBN 978-1-4503-5318-2.

DOI: 10.1145/3131542.3140282

Figure 1. Sensor nodes used for testing in real weather conditions.

SYSTEM OVERVIEW AND ARCHITECTUREIn our testbed, we use Libelium Waspmotes to collect data.They are connected to The Things Network (TTN) via Lo-RaWAN antennas. We have three distinguished sets of nodes,deployed in different ways. Some are placed in various loca-tions in the city of Trondheim. These are used for long-termdata collection. We also have equipment to do high-precisionmeasurements of energy consumption in the lab. Our mostprominent sensor nodes are the 8 solar powered sensor nodeswe have deployed on the roof, as shown in Figure 1. These areused for experimentation and testing under real weather condi-tions. The sensor nodes provide sensor data such as CO2 level,sound level and temperature, as well as energy-related metadata, e.g., battery level and solar charging current. The data isuploaded to TTN via an antenna located approximately 400meters away. An overview of the architecture of the testbedis shown in Figure 2. We also collect the latest local weatherforecast from the Norwegian Meteorological Institute. Thecollected data is stored as .csv files and then pre-processed inthe cloud using Python and Pandas. Our ultimate goal is tobuild a system (using Scikit-Learn) that continuously learns,predicts and plans the energy budget for each device. To meetsuch requirements, we train a machine learning model everyday. The model uses the most recent data (i.e., weather fore-cast and the position of the sun) as input to predict the energyintake per sensor node for the next 24 hours. Later, we usethe predictions to identify the optimal sensing mode for eachsensor device, i.e., instruct the sensor to send as much data asit can while keeping the battery level as stable as possible.

Page 2: Towards Cognitive Device Management: A Testbed …folk.ntnu.no/kraemer/2017-iot-braten.pdfSYSTEM OVERVIEW AND ARCHITECTURE In our testbed, we use Libelium Waspmotes to collect data

LoRaWANGateway

Uplink:- sensor data- meta data

Downlink:- sensing mode update- configurations

…1 2 n

Device ManagerWeather Forecast

TTN

…1 2 8

Testbed nodes (on the roof)Deployed nodes (in the city) Lab for high-precision measuring of energy consumption

Figure 2. Deployment of the autonomous sensor testbed lab.

Through the TTN downlink, we instruct the sensor node toapply the identified sensing mode. The downlink is also usedto update general configuration parameters, when necessary.

ENERGY AND SENSING CYCLEThe sensor node can adapt its own behavior by adjusting ac-tivities in different phases in its sensing cycle. We define thephases as sensing, data processing, transmitting data, and go-ing to sleep for a period. The energy consumption of eachphase can be adjusted by varying the execution time. Thisway, we can instruct the nodes to use different sensing modesto adjust their energy consumption behaviors. For instance,one sensing mode performs frequent sensing and calculates amean to reduce the risk of errors, while another mode acquiresthe data sparingly to conserve energy. However, this comeswith the tradeoff of lower data quality.

FINDINGSBy means of our testbed, we have made these discoveries:

• The energy consumption of applications running on a con-strained device can be estimated with high precision usinga generalized model of different sensing modes [3].

• Constrained devices can outsource research-intensive ma-chine learning to a device manager located in the cloud.This is possible even when the communication channelsthemselves are constrained [1].

• To predict energy intake properly, it is important that theelectronics of the sensor nodes reveal more data regardingthe system operations, such as the current that is producedby a solar panel and the state of the charger [1].

To assist a system that also does the learning autonomously,we additionally need the following:

• Device management will have to manage, among otherthings, the process of knowledge gathering explicitly. Thismeans that it also needs to take knowledge and learning intoaccount, hence evolving into cognitive device management.

• To collect better training data, sensor nodes have to ac-cept commands that override their normal operation. For

instance, to gather more knowledge, they need to be ableto switch on or off the charging, measuring short circuitcurrents, and switch to a different sensing mode on com-mand. This way, the central device manager can choose toprioritize learning over normal operation in a period after adevice has been deployed.

DEMONSTRATION SETUPIn the demonstration, we will: a) present an overview of ourlab; b) give a real-time demonstration of how we are using theWaspmotes for noise detection; c) show interactive charts thatvisualize the collected data and the predictions that are madeusing machine learning; d) play time-lapse videos that showsthe sensor nodes under real weather conditions.

ACKNOWLEDGEMENTSWe thank David Palma and Pål Sæther for their help in settingup the lab, and Dirk Ahlers and Fredrik Anthonisen for theirsupport with the Waspmotes through the Carbon Track andTrace project.

REFERENCES1. Frank Alexander Kraemer, Doreid Ammar,

Anders Eivind Braten, Nattachart Tamkittikhun, andDavid Palma. 2017. Solar Energy Prediction forConstrained IoT Nodes Based on Public WeatherForecasts. In The 7th International Conference on theInternet of Things (IoT 2017). ACM, Linz, Austria.

2. Daniele Miorandi, Sabrina Sicari, Francesco DePellegrini, and Imrich Chlamtac. 2012. Internet of things:Vision, applications and research challenges. Ad HocNetworks 10, 7 (2012), 1497 – 1516.

3. Nattachart Tamkittikhun, Amen Hussain, andFrank Alexander Kraemer. 2017. Energy ConsumptionEstimation for Energy-Aware, Adaptive SensingApplications. In International Conference on MobileSecure and Programmable Networking (MSPN 2017)(LNCS), Bouzefrane et al. (Eds.), Vol. 10566. Springer,Paris, France, 247–260.