Next Article in Journal
Design and Test of an Integrated Measurement System for Multi-Hole Probe Calibration and Vortex Measurement
Next Article in Special Issue
Securing Fog Computing with a Decentralised User Authentication Approach Based on Blockchain
Previous Article in Journal
Designing a Reliable and Low-Latency LoRaWAN Solution for Environmental Monitoring in Factories at Major Accident Risk
Previous Article in Special Issue
Data-Driven Techniques for Low-Cost Sensor Selection and Calibration for the Use Case of Air Quality Monitoring
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Dynamic Data Streams for Time-Critical IoT Systems in Energy-Aware IoT Devices Using Reinforcement Learning

1
School of Computing, Newcastle University, Newcastle upon Tyne NE1 7RU, UK
2
Alkamil College of Computer Science, University of Jeddah, Jeddah 21959, Saudi Arabia
3
Institute of Computer Science, AGH University of Science and Technology, 30-059 Krakow, Poland
4
College of Computer Science and Engineering, Taibah University, Madinah 42353, Saudi Arabia
5
Department of Computer Science, University of Bradford, Bradford BD7 1DP, UK
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(6), 2375; https://doi.org/10.3390/s22062375
Submission received: 15 February 2022 / Revised: 9 March 2022 / Accepted: 17 March 2022 / Published: 19 March 2022

Abstract

:
Thousands of energy-aware sensors have been placed for monitoring in a variety of scenarios, such as manufacturing, control systems, disaster management, flood control and so on, requiring time-critical energy-efficient solutions to extend their lifetime. This paper proposes reinforcement learning (RL) based dynamic data streams for time-critical IoT systems in energy-aware IoT devices. The designed solution employs the Q-Learning algorithm. The proposed mechanism has the potential to adjust the data transport rate based on the amount of renewable energy resources that are available, to ensure collecting reliable data while also taking into account the sensor battery lifetime. The solution was evaluated using historical data for solar radiation levels, which shows that the proposed solution can increase the amount of transmitted data up to 23%, ensuring the continuous operation of the device.

1. Introduction

The Internet of Things is a concept beginning to be a natural element of human development and technological progress. IoT devices are used in many areas of everyday life, including smart homes, factories and cities [1]. IoT devices are also used in time-critical systems, i.e., where it is essential to obtain data processing results in the shortest possible time [2]. Examples of such systems are various solutions used during natural disasters, such as fires or floods. The key factor of such systems is the processing of up-to-date, non-delayed data from sensors installed in IoT devices. To achieve this, devices should be ready to transmit a data stream with necessary requirements.
Unfortunately, transferring a significant amount of data from sensors is associated with high demand for energy to make the measurements and then send the data to the edge and computing clouds. However, this can be difficult to achieve for IoT devices with limited computing and power resources. Especially when they are powered by renewable energy sources such as solar energy. However, the device can respond to changes in the availability of renewable energy by changing the frequency of collecting and transmitting measurement data. The paper proposes dynamic data streams, which can be changed to consume the device’s available resources accordingly.
Nevertheless, dynamic data streams in time-critical systems are related to the intelligent management of their parameters. Therefore, we propose to use the concept based on autonomic computing [3] to manage their parameters through dedicated management agents that can monitor and plan adaptation actions. It is also important that the purpose of device adaptation may depend on the system’s operating goal. For example, in a flood risk situation, the system should work with the most up-to-date data possible, paying less attention to maintaining the system’s lifetime. On the other hand, during normal operation, the system should strive to maintain as long a lifetime as possible to prepare for emergency situations. The implementation of the autonomic computing concept in IoT devices is complex since they have very limited resources. Therefore, we propose the usage of cooperating osmotic agents associated with devices and the edge datacenters [4]. The agents operating on the devices send data regarding the device operation, e.g., battery level, current configuration, while the edge agent plans device reconfiguration actions, which are then sent in response to be executed on the devices.
The agent’s logic could be implemented in the form of decision rules specifying actions that will be performed in specific situations. However, it would require having a particular model of the device and the environment in which it works. Therefore, in the paper we propose to implement the agent’s logic based on reinforcement learning. It is used in systems where, based on the observation of the system operation and the actions taken, their effectiveness in the form of a reward can be assessed. In summary, the following are the paper’s primary contributions:
  • we formulated the limitation of the power resources problem in the IoT device,
  • we proposed reinforcement learning-based dynamic data streams for time-critical IoT systems in energy-aware IoT devices,
  • we evaluated our proposed approach performance using a levee monitoring system in river flood scenario.
The paper is organized as follows. The second section deals with an overview of state of the art. The third section discusses the motivation, while fourth describes the formal model and problem definition. Section five presents the proposed concept based on reinforcement learning, which is then evaluated in Section six. Finally, the paper is summarized and future work is discussed.

2. Related Work

Adaptation of IoT devices with the help of reinforcement learning (RL) is widely described in the literature. In [5] different cases of RL applied to IoT ecosystems are presented. IoT devices can use adaptation mechanisms in different layers of the systems, e.g., a smart vehicle, in the perception layer, can decide on velocity, driving direction, or avoiding obstacles. In the application layer, on edge/cloud servers, decisions about scheduling tasks, caching data or resources of virtual machines allocation can be made. Finally, RL algorithms can control the bandwidth or rate of data sent in the network layer.
RL algorithms can be applied to improve outcomes of sensing coverage tasks [6]. For example, many sensors may cover the most extensive possible area maintaining low battery consumption. Basically, the large area coverage by the single sensor, results in substantial battery consumption. In multi-agent systems, where each device communicates with another, RL can be used to optimise device operations for sensing applications and decrease the overall battery consumption. For that purpose, Q-Learning algorithm can be modified by e.g., distributed value function [7] improving up the learning process in a distributed environment.
Authors in [8] compare three different approaches to maintaining the highest possible amount of data transferred from an IoT device with limited battery capacity. Two of them are online/offline optimisation which assumes that the upcoming energy and state of the environment is known. In contrast, the RL based approach, which is more likely to be held in real life scenarios, knows about energy and system state only casually. Results show that with time, the learning-based approach yields results compared to those using optimisation-based approaches. In [9], RL is used in the case of many battery powered user equipment communicating via limited access channels to the single base station. The goal was to maintain the highest possible bandwidth of data sent from equipment to the base station while keeping the device battery alive. In each time slot, the station receives state information from selected equipment. Then such a state is used to choose an action based on learnt policy, and then such action is broadcasted to the user equipment. As the action and state spaces were large, the Deep RL algorithms based on Long Short-Term Memory (LSTM) was used to estimate Q-values.
In mobile edge computing (MEC) RL can be used for adapting processor frequency [10]. In such a scenario, an RL agent is implemented on an edge server in order to reduce processing time for incoming requests. When a request arrives, the edge server checks the current state of CPU loads and battery and decides whether such a request should be processed at all. If accepted, the CPU frequency should be set to a higher operational frequency, requiring more energy resources. Experiments show that the server learns how to handle requests of different sizes in different states (e.g., battery state) by using RL. This yields better results than rule based methods, e.g., best/worst fit approaches or other learning solutions such as sliding windows.
A combination of RL with LSTM neural networks can be utilised for scenarios when an RL agent must decide whether sensors have to be turned on to sense actual data or the value can be predicted based on the historical measurements [11]. It is used to preserve balance between energy consumption and the accuracy of the measurements. Both the RL agent and LSTM network are pretrained and two approaches are compared-model-free and model-based RL algorithms. Experiments show that such algorithms allow turning off sensors when predictions are accurate enough to preserve battery lifetime.

3. Motivation

Consider the system for monitoring the condition of the levees built along the river, as shown in Figure 1. Its purpose is to detect situations that may result in the breakage of the levee during a flood and cause significant material and human losses.
IoT devices are located along the river and measure the physical parameters of flood barriers, including temperature, humidity and its displacement. The sensor data streams are then preprocessed in the edge station located in close proximity. The aggregated results are then sent to the cloud datacenter for further analysis. Communication between devices and the edge server is carried out using the wireless network.
The size of the data stream from sensors depends on the frequency with which the devices take measurements. However, increasing the amount of data transferred results in an increased demand for energy [12]. The devices are self-powered, thanks to the fact that they are equipped with photovoltaic panels and rechargeable batteries.
In the case of time-critical systems, it is necessary to send data as frequently as possible because, in the event of a flood hazard, actual sensor data are required [13]. Unfortunately, this can lead to a complete battery discharge, causing the device to be inactive until the next day and the next recharging cycle from soler panels. In a situation where there is no risk of damage to the embarkment, too frequent data transmission from sensors results in deep discharging cycles of the batteries, which contributes to the rapid degradation of their capacity and is undesirable.
The research problem concerns the adaptive management methods of the data stream from sensors in the presented class of systems. The research considers two scenarios. The first involves the operation of the IoT system under normal operating conditions. In this case, the purpose of adaptation is to ensure the longest possible operation of the system on the batteries and to reduce the complete discharge cycles. The second assumes the operation of the system during exceptional situations, requiring constant and frequent monitoring of the environment and sending data from sensors.

4. Formal Model

We begin by presenting the required definition and system description to represent our research problem in Section 4.1. We formulate our problem using these definitions (Section 4.2). The Abbreviations part lists all of the notations that were used in the paper.

4.1. System Description and Definition

The infrastructure system X, which is represented as a quintuple O , P V , D , E , C . O is a set of Osmotic Agents that respond to communication between the devices and is denoted by O o = { i d o } , where i d o represent the identifier of the Osmotic Agents O o . P V is a set of Photovoltaic panels located in each IoT device D i and is denoted by P V p = { i d p } , where i d p represent the identifier of the Photovoltaic panels P V p . D is a set of IoT devices D i and is denoted by D i = { i d i , δ i , b i , r i , o i } , i d i represents the identifier of the IoT device D i , δ i represents the sensing rate of IoT device D i , so, each IoT device observes its surroundings continuously over a given time interval, b i represents the battery of IoT device D i , r i represents the renewable energy from the Photovoltaic P V panels, o i represents the osmotic agent of the IoT device D i . E is a set of edge devices E e , each E e is represented as E e = { i d e , h e } . Where i d e and h e represent the identifier and the set of host machines h e 1 , h e 2 , … for the edge device E e , respectively. C is a set of cloud data centres C c , and is denoted by C c = { i d c , h c } where i d c is the identifier of the datacentre and h c is the set of host machines h c 1 , h c 2 , … for the cloud data center C c , respectively.
An IoT application A i is defined as a directed acyclic graph (DAG) of microservice A i = { A i μ 1 , A i μ 2 , . . . } in which each A i μ j represents a microservice to be execute. Each A i μ j has its own set of software ( S W ), hardware ( H W ), and quality of service ( Q ) requirements. The combined requirements R ( A i μ j ) for a microservices are shown in Equation (1).
R ( A i μ j ) = S W μ j + H W μ j + Q μ j
In Equation (2), the total requirements of any application A i is given by the sum up the requirements of all the microservices.
R ( A i ) = j R ( A i μ j )
Data are generated by IoT devices D i on a regular basis. The IoT device is treated as a passive entity, which means it does not handle data and instead sends it to the edge device. Each IoT device D i have a battery b i and a Photovoltaic panel P V i that will recharge the IoT device D i battery b i continuously. The total battery capacity B t o t a l is computed as given in Equation (3).
B t o t a l = b a v l + P V a v l
where b a v l is the IoT device D i available battery capacity, and P V a v l is the IoT device D i available Photovoltaic panel charging capacity. When the IoT device generates the data from the surrounding environment and sends it to the edge datacenter E e , that process will consume the battery. So, to calculate the overall battery consumption BC for each IoT device using Equation (4).
BC = 1 s r · t r
where the s r is sensing rate of the environment and t r is draining rate of sending the data to the edge datacenter E e .

4.2. Problem Definition

Definition 1.
Given an infrastructure X = { O , P V , D , E , C } and a set of IoT applications A = { A 1 , A 2 , . . . } , a suitable deployment solution Δ m is defined as a mapping for A i A to X ( Δ m : A i X A i ) if and only if:
1.
A i μ j A i , ( A i μ j v h ) where, h { h e h c }
2.
A i μ j A i , if A i μ j v h , then H W μ j v h H W and S W μ j v h S W
3.
μ j H W μ j v h H W and μ j S W μ j v h S W
All the requirements to find a suitable deployment solution are considered in the definition given above. Requirement 1 indicates that a mapping between A i μ j and a virtual environment v h | h { h e h c } must exist for every microservice belonging to the IoT application A i . Requirement 2 confirms that the hardware and software requirements of the microservice must be satisfied by v h if a microservice A i μ j is deployed to a virtual environment v h . Finally, requirement 3 limits the number of microservices a virtual environment can execute at any time t.
The primary goal of this study is to find the best solution for all applications A i such that the overall battery consumption BC A i is minimum. As given these requirements, we can represent the problem as shown below.
minimize BC A i + minimize s r i subject to : i A i , j μ j ( A i μ j v h )
The constraint states that all of the application’s microservices A i μ j must be executed in a virtual environment (Equation (5)).

5. Osmotic Agents with RL

In the proposed solution, we leverage the osmotic agents [4] concept. Each device has an agent associated with it that manages the device’s resources. In a classic approach to RL, it is assumed that there is an agent-environment interaction in which there is a critic who can evaluate the actions taken. However, the proposed solution assumes two environments—one internal that is a shadow representation of the device and the other external that is a real device. First, the state of the internal environment is updated based on observation of the external device. Then, the assessment of the actions taken on external device is carried out based on the state of the internal environment.
We also assume that in the case of a network of IoT devices forming a sensor network, they are functionally similar and operate analogously. In other words, they are independent, but with a similar state distributions. This means that the internal environment represents a generic IoT device that is part of the system, and the knowledge update process may include observations from a set of devices.
In the solution as presented in Figure 2, agents of different devices can communicate and create a multi-agent system. Due to the fact that the IoT device has limited computing and memory resources, the logic of the device adaptation is controlled by an agent running in the edge datacenter.
The internal environment used by the edge agent can be enriched with additional information from external sources. In our case, it is information about the weather forecast and forecast cloud cover for the current and next day.

5.1. QLearning Algorithm

We decided to use the classic Q-Learning algorithm to implement the RL logic of the agents managing the sensing rate. It is a model-free algorithm that learns the value of an action performed in a particular state. In our solution, the actions that can be performed on the device are the same as choosing the sensing rate, i.e., A = { s r } . Hence, the function Q is defined as:
Q : S × A R
Updating the value of the Q function is done using the Bellman function as an iterative update using the weighted average of the old and new values:
Q n e w ( s t , a t ) = Q ( s t , a t ) + α · [ r t + γ · a r g m a x a Q ( s t + 1 , a ) Q ( s t , a t ) ]
The α parameter is responsible for the learning rate, i.e., how much new values during learning affect updating the current values. The γ parameter is responsible for the discount factor, i.e., how important long-term rewards are compared to short-term ones. Parameter values influence the learning process and are application dependent. Typically α = 0.1 and γ = 0.8 are assumed.

5.2. State Discretization

The number of possible states representing the environment requires a discussion. Initial analysis indicates that an RL problem with ample state space can be solved using DeepRL [9] methods. However, in the solution, we decided to limit the space states through their discretization, which is justified in reducing the resources needed for training the algorithm and implementation in real IoT devices. The possible states values for the presented problem are presented in Table 1.

5.3. Reward Function

The RL algorithm is based on the value of the reward obtained in response to the chosen actions. In our system, the reward function is a weighted average of two factors, where the β parameter determines the weight:
r i = β · b i + ( 1 β ) · m i n ( s r i ) s r i i f b i 0.05 0 i f b i < 0.05
The first component concerns the device’s battery level and assumes values in the range [ 0 ; 1 ] . The second component involves the sensing rate of the device. The more often the device collects data, the higher the value is. The second component also takes values in the range [ 0 ; 1 ] .
In the case of the discussed systems, the amount of data transferred from the device is important, but the more important issue is to prevent the situation of a complete discharge of the batteries. Therefore, the reward function is 0 if the device has a critical battery level of less than 5%, and the β parameter was set to 0.2 to include battery level in the reward function.
We have set the critical battery level as 5% due to the possible inaccuracy of the battery capacity measurement and the potential need for a safe device’s system shutdown. Therefore, we assumed that the RL agent receives a penalty if the battery level reaches the indicated value.

6. Evaluation

The solution was assessed using the IoT-SimOsmosis [14] simulator extended with a module enabling renewable energy analysis from photovoltaic panels. We assumed that the IoT devices monitor the dyke temperature, and its specification is presented in the Table 2. The simulation was carried out for historical data of solar radiation levels in 2016 obtained from the PVGIS database.
We have conducted experiments with various device management profiles regarding sensor data streams, including both constant and adaptive ones based on RL. The results achieved will be discussed in the following subsections.

6.1. Constant Data Streams

In the case of constant management profiles, it was assumed that the device had a constant sensing rate value of 60 s, 90 s, 120 s, 150 s, 180 s and 210 s, respectively. We observed changes in the device’s battery levels during the experiment. The results grouped by months are presented in the Figure 3. We also counted during how many days in a year the device completely discharged the batteries. The results are presented in the Table 3. For measurements performed every 60 s, there were 166 days a year that the sensor stopped working due to a lack of energy, while the mean battery level was 47%. Most often, such situations occur during winter and spring seasons where solar radiation is lower than during summer periods. On the other hand, with measurements taken every 210 s, the device ran all year round without interruption having 89% of battery on average.
One of the solutions to assure frequent sensing is to oversize the size of the PV panels and the battery capacity, but this raises costs and is not very economical. However, we propose dynamic data stream management for the IoT device to solve this problem. The goal is to manage IoT devices to avoid a situation where the devices stop working due to a lack of energy and provide relevant sensor data required by the flood predictions.

6.2. Dynamic Data Streams

In the case of dynamic data streams, we assumed that the system should learn online which of the actions taken receive the greatest reward during its operation. However, too much exploration may result in unexpected operation of the device. It can be observed in the example where random management actions, i.e., change in sensing rate, affect the operation of the device, as shown in Figure 4. As a result, there were 57 days during which the device stopped working due to battery discharge.
Therefore, the exploration process was limited to a random generation of the Q table during system initialization. As a result, the initial adaptation actions taken by the device were random, which allowed for state exploration. It is especially visible in the Figure 4 for the beginning months of the year (exploration resulting from a random Q table) where battery was discharged. During the ending months of the year, the system has already developed an adaptation policy and thus preventing battery discharge.
The evaluation was continued for the same historical data and the system was still carrying out the learning process. Still, the actions taken only improved the previously used policy in this case. As a result, continuous operation of the device was achieved throughout the year, with an average sensing rate of 170 s. During this time, the batteries in the device were not discharged and there was a 23% increase in the amount of data sent from the device compared to the constant 210 s profile as presented in Table 3.

7. Summary and Future Work

In the paper, we introduced the concept of dynamic data streams that change the data transfer rate according to the available energy resources. Thanks to the use of reinforcement learning, it is possible to adapt to the expected amount of energy obtained from renewable energy sources—from photovoltaic panels.
In the evaluation, we compare two different methods of managing data streams from IoT devices. In the simplest case for constant data streams, the user selects their parameters. If it is important to optimize battery consumption, the user can choose the highest possible sensing rate, i.e., sending data as rarely as possible. On the contrary, if it is essential to obtain detailed data about the monitored environment, the user can choose to transmit the data as often as possible. In this case, however, it may result in a complete discharge of the device.
In the second case, the proposed dynamic data streams represent the tradeoff between the described operational modes. It employs the Q-Learning algorithm to adjust the data transport rate based on the amount of renewable energy resources available, to ensure reliable collecting data while also taking into account the sensor battery lifetime. The solution was evaluated using historical data for solar radiation levels, which shows that the proposed solution can increase the amount of transmitted data up to 23% ensuring the continuous operation of the device.
Discussed data stream operation modes, i.e., highest sensing rate, minimal battery consumption and RL based dynamic one, can be activated depending on the user’s requirements and the intended purpose of the IoT system.
As future work, the development of the presented works can be twofold. The first aspect concerns the possibility of cooperation of the devices themselves while gaining experience and knowledge in device management. Then, RL agents can operate independently on each of the devices and exchange messages containing the type of action taken in a specific system state and possibly the achieved reward. The second aspect includes domain analysis of the monitored environment in which the devices forming the sensor network are placed. It is then possible to selectively monitor the environment so that devices take measurements alternately instead of simultaneously.

Author Contributions

Conceptualization, F.H.; Data curation, T.S.; Formal analysis, F.H.; Investigation, T.S.; Methodology, F.H., T.S. and L.K.; Project administration, F.H.; Resources, T.S. and L.K.; Supervision, R.R.; Validation, F.H., T.S. and L.K.; Visualization, F.H.; Writing—original draft, F.H.; Writing—review & editing, A.N., D.T., G.M. and R.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research presented in this paper was funded by the EPSRC project, Sustainable urban power supply through intelligent control and enhanced restoration of AC/DC networks, EPSRC-NSFC Call in Sustainable Power Supply, 2019–2022, EP/T021985/1. The research was also supported by the National Science Centre, Poland under Grant No. MINIATURA/2021/05/X/ST6/00414 and by the University of Jeddah through the Saudi Arabian Cultural Bureau (SACB) in the United Kingdom.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
SymbolDescription
XThe system infrastructure
OA set of Osmotic Agents
P V A set of Photovoltaic panels
Dset of IoT devices
EA set of Edge devices
CA set of Cloud data centers
hA set of host machines
vVirtual environment
δ The data rate of IoT device
bIoT device battery
rThe renewable energy from the Photovoltaic panels P
A An IoT application
S W A software
H W A hardware
Q Quality of Service
R Requirements
B t o t a l The total battery capacity
b a v l the IoT device D i available battery capacity
P a v l the IoT device D i available Photovoltaic panel P charging capacity.
BC The overall battery consumption
s r Sensing rate of the environment
t r A draining rate of sending the data to the edge datacenter E
Q           Q function
AAn actions
SA states
R A reward
α Learning rate
γ Discount factor
β The weight

References

  1. Botta, A.; de Donato, W.; Persico, V.; Pescapé, A. Integration of Cloud computing and Internet of Things: A survey. Future Gener. Comput. Syst. 2016, 56, 684–700. [Google Scholar] [CrossRef]
  2. Ranjan, R.; Phengsuwan, J.; James, P.; Barr, S.; van Moorsel, A. Urban Risk Analytics in the Cloud. IT Prof. 2017, 19, 4–9. [Google Scholar] [CrossRef] [Green Version]
  3. Brazier, F.M.T.; Kephart, J.O.; Parunak, H.V.D.; Huhns, M.N. Agents and Service-Oriented Computing for Autonomic Computing: A Research Agenda. IEEE Internet Comput. 2009, 13, 82–87. [Google Scholar] [CrossRef] [Green Version]
  4. Carnevale, L.; Celesti, A.; Galletta, A.; Dustdar, S.; Villari, M. Osmotic computing as a distributed multi-agent system: The Body Area Network scenario. Internet Things 2019, 5, 130–139. [Google Scholar] [CrossRef]
  5. Lei, L.; Tan, Y.; Zheng, K.; Liu, S.; Zhang, K.; Shen, X. Deep Reinforcement Learning for Autonomous Internet of Things: Model, Applications and Challenges. IEEE Commun. Surv. Tutor. 2020, 22, 1722–1760. [Google Scholar] [CrossRef] [Green Version]
  6. Hribar, J.; Costa, M.; Kaminski, N.; DaSilva, L.A. Using Correlated Information to Extend Device Lifetime. IEEE Internet Things J. 2019, 6, 2439–2448. [Google Scholar] [CrossRef]
  7. Schneider, J.; Wong, W.K.; Moore, A.; Riedmiller, M. Distributed Value Functions. In Proceedings of the Sixteenth International Conference on Machine Learning, San Francisco, CA, USA, 27–30 June 1999; pp. 371–378. [Google Scholar]
  8. Blasco, P.; Gunduz, D.; Dohler, M. A Learning Theoretic Approach to Energy Harvesting Communication System Optimization. IEEE Trans. Wirel. Commun. 2013, 12, 1872–1882. [Google Scholar] [CrossRef] [Green Version]
  9. Chu, M.; Li, H.; Liao, X.; Cui, S. Reinforcement Learning-Based Multiaccess Control and Battery Prediction with Energy Harvesting in IoT Systems. IEEE Internet Things J. 2019, 6, 2009–2020. [Google Scholar] [CrossRef] [Green Version]
  10. Huang, T.; Lin, W.; Li, Y.; Wang, X.; Wu, Q.; Li, R.; Hsu, C.H.; Zomaya, A.Y. Adaptive Processor Frequency Adjustment for Mobile Edge Computing with Intermittent Energy Supply. arXiv 2021, arXiv:2102.05449. [Google Scholar] [CrossRef]
  11. Laidi, R.; Djenouri, D.; Balasingham, I. On Predicting Sensor Readings With Sequence Modeling and Reinforcement Learning for Energy-Efficient IoT Applications. IEEE Trans. Syst. Man Cybern. Syst. 2021, 1–12. [Google Scholar] [CrossRef]
  12. Szydlo, T.; Nawrocki, P.; Brzoza-Woch, R.; Zielinski, K. Power aware MOM for telemetry-oriented applications using GPRS-enabled embedded devices-levee monitoring use case. In Proceedings of the 2014 Federated Conference on Computer Science and Information Systems, Warsaw, Poland, 7–10 September 2014; Ganzha, M., Maciaszek, L.A., Paprzycki, M., Eds.; IEEE: Piscataway, NJ, USA, 2014; Volume 2, pp. 1059–1064. [Google Scholar] [CrossRef] [Green Version]
  13. Balis, B.; Brzoza-Woch, R.; Bubak, M.; Kasztelnik, M.; Kwolek, B.; Nawrocki, P.; Nowakowski, P.; Szydlo, T.; Zielinski, K. Holistic approach to management of IT infrastructure for environmental monitoring and decision support systems with urgent computing capabilities. Future Gener. Comput. Syst. 2018, 79, 128–143. [Google Scholar] [CrossRef]
  14. Alwasel, K.; Jha, D.N.; Habeeb, F.; Demirbaga, U.; Rana, O.; Baker, T.; Dustdar, S.; Villari, M.; James, P.; Solaiman, E.; et al. IoTSim-Osmosis: A framework for modeling and simulating IoT applications over an edge-cloud continuum. J. Syst. Archit. 2021, 116, 101956. [Google Scholar] [CrossRef]
Figure 1. Levee monitoring system.
Figure 1. Levee monitoring system.
Sensors 22 02375 g001
Figure 2. System architecture.
Figure 2. System architecture.
Sensors 22 02375 g002
Figure 3. Battery levels of the device for various constant sensing rates. Colors of the boxes are related to the mean value of battery level.
Figure 3. Battery levels of the device for various constant sensing rates. Colors of the boxes are related to the mean value of battery level.
Sensors 22 02375 g003
Figure 4. Battery levels and the selected sensing rates for the devices in RL based data stream management. Blue area represents min and max values of sensing rate, while the chart represent mean sensing rate value for the particular month.
Figure 4. Battery levels and the selected sensing rates for the devices in RL based data stream management. Blue area represents min and max values of sensing rate, while the chart represent mean sensing rate value for the particular month.
Sensors 22 02375 g004
Table 1. Discretized states used in the RL algorithm.
Table 1. Discretized states used in the RL algorithm.
ObservationNumber of StatesState Discretization
Today Forecast3cloudy; partly cloudy; sunny
Next Day Forecast3cloudy; partly cloudy; sunny
Month3 { 1 , 2 , 11 , 12 } { 3 , 4 , 9 , 10 } { 5 , 6 , 7 , 8 }
Table 2. IoT device specification used in the evaluation.
Table 2. IoT device specification used in the evaluation.
Device TypeBattery CapacityInitial EnergyBattery VoltageSolar PanelCharging Current
Temperature Sensor3000 mAh2000 mAh3.7 V10 W500 mA
Table 3. Data stream management profiles used in the evaluation.
Table 3. Data stream management profiles used in the evaluation.
MethodMean Sensing RateLow Batt DaysMean Batt Level
Constant 60 s60 s16647%
Constant 90 s90 s10562%
Constant 120 s120 s5772%
Constant 150 s150 s2679%
Constant 180 s180 s585%
Constant 210 s210 s089%
Random actions135 s5772%
RL first iteration162 s883%
RL second iteration170 s085%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Habeeb, F.; Szydlo, T.; Kowalski, L.; Noor, A.; Thakker, D.; Morgan, G.; Ranjan, R. Dynamic Data Streams for Time-Critical IoT Systems in Energy-Aware IoT Devices Using Reinforcement Learning. Sensors 2022, 22, 2375. https://doi.org/10.3390/s22062375

AMA Style

Habeeb F, Szydlo T, Kowalski L, Noor A, Thakker D, Morgan G, Ranjan R. Dynamic Data Streams for Time-Critical IoT Systems in Energy-Aware IoT Devices Using Reinforcement Learning. Sensors. 2022; 22(6):2375. https://doi.org/10.3390/s22062375

Chicago/Turabian Style

Habeeb, Fawzy, Tomasz Szydlo, Lukasz Kowalski, Ayman Noor, Dhaval Thakker, Graham Morgan, and Rajiv Ranjan. 2022. "Dynamic Data Streams for Time-Critical IoT Systems in Energy-Aware IoT Devices Using Reinforcement Learning" Sensors 22, no. 6: 2375. https://doi.org/10.3390/s22062375

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop