Next Article in Journal
Multimodal Low Resolution Face and Frontal Gait Recognition from Surveillance Video
Next Article in Special Issue
Mitigation of the Effects of Network Outage on Video QoE Using a Sender Buffer
Previous Article in Journal
Antenna Array with TEM-Horn for Radiation of High-Power Ultra Short Electromagnetic Pulses
Previous Article in Special Issue
Impact of People’s Movement on Wi-Fi Link Throughput in Indoor Propagation Environments: An Empirical Study
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Review

Machine Learning in Wireless Sensor Networks for Smart Cities: A Survey

1
Department of Electronics & Communication Engineering, KIET Group of Institutions, Ghaziabad 201206, India
2
Advanced Power Electronics Research Lab, Department of Electrical Engineering, Jamia Millia Islamia, New Delhi 110025, India
3
Department of Energy Technology, Aalborg University, 9220 Aalborg Øst, Denmark
*
Author to whom correspondence should be addressed.
Electronics 2021, 10(9), 1012; https://doi.org/10.3390/electronics10091012
Submission received: 13 March 2021 / Revised: 18 April 2021 / Accepted: 21 April 2021 / Published: 23 April 2021
(This article belongs to the Special Issue 10th Anniversary of Electronics: Advances in Networks)

Abstract

:
Artificial intelligence (AI) and machine learning (ML) techniques have huge potential to efficiently manage the automated operation of the internet of things (IoT) nodes deployed in smart cities. In smart cities, the major IoT applications are smart traffic monitoring, smart waste management, smart buildings and patient healthcare monitoring. The small size IoT nodes based on low power Bluetooth (IEEE 802.15.1) standard and wireless sensor networks (WSN) (IEEE 802.15.4) standard are generally used for transmission of data to a remote location using gateways. The WSN based IoT (WSN-IoT) design problems include network coverage and connectivity issues, energy consumption, bandwidth requirement, network lifetime maximization, communication protocols and state of the art infrastructure. In this paper, the authors propose machine learning methods as an optimization tool for regular WSN-IoT nodes deployed in smart city applications. As per the author’s knowledge, this is the first in-depth literature survey of all ML techniques in the field of low power consumption WSN-IoT for smart cities. The results of this unique survey article show that the supervised learning algorithms have been most widely used (61%) as compared to reinforcement learning (27%) and unsupervised learning (12%) for smart city applications.

1. Introduction

A smart city is an urban area that uses remote sensors and the Internet of Things (IoT) enabling technologies to collect data from different locations and uses to enhance the quality of life of the people. The low power, low data rate wireless sensor networks (WSN) are used for monitoring and control applications in smart cities. The WSN nodes are used as the underlying technology infrastructure in the IoT. In the IoT, the “things” refer to the tiny embedded physical sensing devices (i.e., WSN nodes) connected to the internet to perform a specific application. Currently, a new revolutionary technique known as artificial intelligence (AI) and machine learning (ML) is evolving as the future of fully automated IoT applications. Machine learning is a part of AI, in which, the computer algorithms learn by themselves by improving from past experiences. A detailed survey of ML algorithms was performed in [1] until the year 2013. As the ML and IoT, technologies are emerging rapidly, therefore, the authors extend their survey work also. The IoT applications in smart cities are smart traffic monitoring [2], smart grids [3], smart waste management [4], smart agriculture [5], smart medical healthcare [6], etc. Table 1 provides a full form of all important abbreviations used in this paper.
The major problems in WSN based IoT (WSN-IoT) are fully autonomous operation, maximum network lifetime, energy efficiency, quality of service (QoS), cross-layer optimization, high bandwidth requirement, sensor data analysis, cloud computing, communication protocol design, etc. Currently, the industrial IoT (IIoT) or industry 4.0 is the biggest revolution for smart industries, smart manufacturing sector, automobile sector, smart cities and medical healthcare sector. Worldwide, various major companies like Microsoft, Google and Amazon are working on the development of AI and ML-based algorithms in advanced IoT applications for smart cities.
Machine learning can be applied in WSN-IoT for dynamic updating of routing tables in WSNs, node localization in mobile WSN-IoT nodes, identification and separation of faulty nodes for network optimization and prediction of the amount of energy harvesting in energy harvesting WSN (EH-WSN). Through this paper, the authors have tried to answer the following research questions: Why machine learning methods are used in WSN-IoT? What is its superiority of using ML over traditional optimization methods in WSN-IoT? Why is the smart city a typical use case of IoT applications?
IoT offers new opportunities for smart cities to use data to manage traffic, reduce pollution and make better use of infrastructure. The following are the advantages of using machine learning in traditional WSN-IoT:
  • WSNs are generally deployed in a dynamically changing environment. Therefore, self-adaption to the new environment is expected from a fully automated IoT scenario.
  • Unknown parameter monitoring requires automatic adjustment of network topology and configurations, e.g., temperature measurement in a glacier or volcano monitoring.
  • Lack of accurate mathematical models of the unknown parameters in WSN-IoT.
  • WSN-IoT deals with a large amount of sensor data, therefore the correlation between different data set may be of critical concern.
  • Integration of WSN in IoT using cloud-based services for better monitoring and control.
  • Future predictions and possible actions in WSN-IoT.
  • The IoT generates a large amount of data from millions of sensor nodes. Machine learning is powered by data and generates useful information from previous data. Machine learning uses past IoT data to identify hidden patterns and builds models that help predict future behavior and events.
As WSN-IoT are resource-limited (finite bandwidth and power availability) therefore, there are some limitations for running ML-based inferences on IoT nodes also such as:
  • A large number of computations are required to process the more amount of data, hence computation complexity increases.
  • Additional power consumption.
  • Training of WSN-IoT nodes for various ML algorithms requires complex operations and multi-domain skilled programmers.
The following are the contributions of this survey article in the field of WSN-IoT:
  • In this paper, ML techniques are proposed as an optimized solution for traditional WSN-IoT problems in smart cities.
  • Design guidelines of the WSN-IoT framework using AI and ML have been proposed.
  • An in-depth literature survey of WSN-IoT in smart cities is presented in detail for ML engineers and data scientists.
This paper is organized as follows: Section 2 provides operation of WSN-IoT in smart cities, Section 3 provides machine learning for WSN-IoT, Section 4 provides open research issues in WSN-IoT, which can be solved by machine learning techniques, Section 5 provides a literature survey of machine learning in WSN, Section 6 provides a summary of ML techniques in WSN-IoT, Section 7 provides the survey report and, finally, Section 8 provides the conclusion and future work.

2. Wireless Sensor Networks Based Internet of Things (WSN-IoT)

The operation of WSN-IoT in a smart city is shown in Figure 1. Here, the WSN nodes are deployed in smart city applications such as smart traffic monitoring, smart grids in buildings, remote health care monitoring, smart agriculture and industrial applications.
The function of an IoT-WSN node deployed in a smart city is to continuously monitor and control any physical quantity like temperature, humidity, pressure, acceleration, etc. The main function of these sensor nodes is to sense the data and send it to the main WSN-IoT gateway node. From the gateway node, the data is sent to the cloud server. At the IoT cloud, cloud computing takes place. The IoT cloud is directly connected to remote servers, user mobile phones, computers, mobile phone towers, etc. The IoT and machine learning tasks require a large amount of data processing and memory requirements. Therefore, the IoT cloud server is designed as a high processing, high-performance computer with huge storage capacity. However, the WSN end nodes have small computing capabilities with limited processing, small storage and finite non-rechargeable battery power supply.
The WSN-IoT end nodes based on the IEEE 802.15.4 standard have the maximum data rate of 250 kbps only. In WSN-IoT, the end nodes are powered by two AA-size batteries (1.5 volts, 1000 mAh), and the gateway is connected to the mains power supply. Furthermore, if the WSN-IoT nodes are powered by renewable energy harvesting power supplies [7], then machine learning algorithms can also be utilized to predict the future available energy in IoT-WSNs. In the battery management system, machine learning techniques can be used for tracking maximum power point technique (MPPT) algorithms [8,9]. As these WSN sensor nodes generate a lot of sensor data, therefore, machine learning algorithms can also be applied to them for data analysis, data prediction and other suitable tasks.
In smart cities, the WSN-IoT networks contain the connectivity technologies/protocols as shown in Table 2. Table 2 shows IoT communication technologies such as Bluetooth [10], based on IEEE 802.15.1 standards [11], RFID [12], IEEE 802.16 [13], ZigBee [14] based on IEEE 802.15.4 [15], Wi-Fi [16], based on IEEE 802.11 [17], LoRa-WAN [18] based on IEEE 802.11 series [19], 4G/5G cellular networks [20], based on WiMAX standard IEEE 802.16e [21] and 5G based on IEEE 1941 [22,23], respectively.
At the WSN-IoT node device level, the machine learning algorithms can be applied from the cloud for its autonomous operation. The IoT device sends the sensor data to the cloud server. From the IoT cloud, the user can monitor and control the application using a mobile phone, laptop or desktop PC and personal digital assistant. Currently, many popular cloud service companies provide free, but the limited amount of sensor data to be stored in their cloud storage. For example, Microsoft Azure IoT, Amazon web service (AWS), Google cloud platform, Cisco IoT cloud connect, IBM Watson IoT and Thing speak IoT by Mathworks Incorporation, USA. Table 3 shows open system interconnect (OSI) model layer data communication network protocols of an upper higher level separately. Some very popular higher-level IoT protocols are message query telemetry transport (MQTT) protocol [24], advanced message queuing protocol (AMQP) [25], constrained application protocol (CoAP) [26] and data distribution service (DDS) protocol [27]. These IoT protocols are based on the IEEE P1451-99 [28] standard for harmonization of internet of things (IoT) devices and systems. In smart city IoT applications, these protocols are used with TCP, UDP and cloud-based services. In WSN, a smart transducer interface protocol [29] is used for sensor management. It is based on an IEEE standard called the P21451 interoperability interface standard [30].

3. Preliminaries in Machine Learning for WSN-IoT

Machine learning is the field of artificial intelligence (AI) that provides systems the ability to automatically learn and improve from previous experience without being explicitly programmed. It aims to develop new computer programs, which can access data and use it to learn for themselves. Machine learning (ML) for WSNs means learning sensor nodes and networks from their past experiences and making predictions based on them. The main application of machine learning is at the IoT cloud for data analysis, device management, network management, network security and authentication services. At the user end, intelligent control techniques can be developed, in which human interaction is not required for example driverless cars, driverless trains, etc.
From the machine learning point of view, the data flow in WSN-IoT is shown in Figure 2. Here, the following are the steps for data flow: (1) sensor data acquisition, (2) data communication between end node to the gateway node, (3) data aggregation at the gateway, (4) data ingestion, storage and retrieval at the cloud, (5) data analysis, (6) sensor nodes connectivity (7) and data security tasks. In simple words, the ML techniques can be applied in WSN-IoT for localization, coverage, connectivity problems, MAC and routing layer issues, data aggregation, fault detection, event monitoring, energy harvesting, QoS and network security issues. Figure 3 shows a general flowchart for the machine learning, machine testing and WSN action process in the WSN-IoT scenario.

3.1. Training Process

Here, first of all, data is acquired from a particular application. The features are extracted from this raw data. For example, if the data is image data then the colors, pixels, brightness and contrast of all images database are extracted. Then the features are classified according to the requirement of the machine learning process. Now some training examples are applied to the basic initial algorithms for their learning or improvement. Thus, algorithms are trained and optimized according to the data patterns.

3.2. Testing Process

Now the next step is to deploy this trained WSN in any real-life application. In real life, the unknown data is taken as input and the features are extracted from it. These extracted features are applied to an already trained algorithm. The output of the trained algorithm is classified as data predictions.

3.3. WSN Actions

Finally, based on predicted output data the necessary actions by the WSN are decided.

4. Open Research Problems in WSN-IoT Which Can Be Solved by Machine Learning Techniques

The following are the currently open research issues in WSN-IoT, which can be solved by ML techniques.

4.1. IoT Node Localization

In a WSN scenario, the current location identification of a sensor node is called node localization. In mobile WSN nodes, path planning is a very important step. Node localization is considered a classification problem because all the nodes are divided (classified) into range-based and range-free nodes. Several ML algorithms like, SVM, K-NN and RL-based techniques (Q-learning, SARSA) are used in WSN-IoT for node localization as a classification problem [31].

4.2. IoT Node Coverage and Connectivity

In a WSN scenario, the sensing coverage is the field of interest (FOI), in which at least one sensor node covers all the points. Therefore, the optimal placement of sensor nodes is a design issue. To maximize the WSN lifetime, the connectivity should be proper between the neighbor nodes [32].

4.3. Routing Layer Issues

The processing for sending the data packets from one node to another via intermediate nodes is called routing. In the routing process, long routing tables are maintained by the gateway nodes, which consists of the source and destination address of all the packets in the network. In WSN, the sensed data is sent towards the main gateway node by the end nodes. If the routing path is very long then unnecessary energy is wasted in a WSN network. Therefore, smart routing algorithms need to be designed carefully to find the optimal routes between end node and gateway nodes. Several machine learning techniques such as decision tree, random forest, ANN, SVM and Bayesian learning are used to find the optimal path in WSNs [33].

4.4. MAC Layer Issues

The MAC layer controls the medium accessing technique in WSN. The sensor MAC (SMAC) protocol is generally used in WSN. Reinforcement learning (RL) based algorithms are used for MAC protocol design in WSN. The RL-MAC techniques control the sleep, wake, transmission and reception in sensor networks [34].

4.5. Sensor Data Aggregation

In a smart city, thousands of small sensor nodes are deployed to measure the same physical quantity, e.g., temperature, humidity, light, carbon dioxide (CO2) gases, etc. Several sensors may report the same information to the gateway. This large amount of data is difficult to handle by the gateway. Therefore, sensor data aggregation is important in WSNs for smart city applications. Data aggregation means collecting and summarizing useful information from multiple sources. In this process, the data redundancy and data accuracy are improved. Data aggregation saves the power consumption of WSN nodes and hence improves the network lifetime also. Machine learning is useful for data aggregation. The cluster aggregates the data from the cluster head and transmits it to the base station. ML techniques based on artificial neural networks (ANN) and quality (Q)-learning algorithms are useful for data aggregation tasks in WSN-IoT [35].

4.6. Event Monitoring and Target Detection

In a smart city application, the WSNs are deployed for event monitoring and target detection such as intrusion detection and traffic monitoring. In WSN, node failure, target recovery and tracking latency from sensing nodes are required. Various ML techniques like Bayesian, Q learning and genetic algorithms are used for event monitoring and target tracking in WSNs. Applying, ML techniques in WSNs can be useful to detect an event or target from the complex image sensor data [36].

4.7. Energy Harvesting

Energy harvesting is the process of extracting environmental energy from the sun, wind, tides, radio waves, etc., and converts it into the corresponding electrical energy. The broad objective of energy harvesting is to save our limited available fossil fuels (coal, oil and gases). However, in the smart city application, energy harvesting can also be used for achieving maximum network lifetime in rechargeable battery-based WSN-IoT nodes. Furthermore, the ML techniques are used in energy harvesting WSN-IoT for future available energy prediction tasks. The ML algorithms like regression technique and reinforcement learning techniques (Q-learning) are suitable for energy harvesting applications. Generally, solar energy, radio frequency (RF) waves and wind energy are used with rechargeable battery-based WSNs. Harvested energy prediction, battery power management are the tasks that can be optimized by using the ML algorithms in traditional WSN-IoT [37].

4.8. Node Query Processing

In WSNs, the end nodes, cluster heads and gateway nodes perform various types of queries such as sensor data aggregation, routing paths, synchronization and control operations, packet delivery with each other, etc. The k-nearest neighborhood (k-NN) based ML techniques are used for sensor data queries in WSN.
Table 4 shows some WSN-IoT research issues with ML-based solutions [38].

5. Literature Survey of Machine Learning in WSN-IoT

Our literature survey of machine learning algorithms for WSN-IoT is shown in Figure 4. Our literature survey is divided into the following categories:
  • Supervised Learning,
  • Unsupervised learning,
  • Reinforcement learning.

5.1. Literature Survey of Supervised Machine Learning for WSN–IoT

In supervisor learning, data are labeled. In other words, we provide an input data variable (x) to the system. The system predicts output data (y) depending upon the type of input and system function. The objective of supervised learning is to approximate the mapping function so that when a new unknown input data is applied then, the output (y) can be predicted [39,40].
y = f (x)
In this section, we will discuss various supervised learning algorithm, which can be applied in WSN-IoT applications. The supervised learning algorithms are used in WSN for target tracking, localization of Nodes, event monitoring, data security, fault detection, etc. There are two types of supervisor learning as regression and classification.

5.1.1. Regression

In regression, the output variable (y) has some continuous numerical value like rupees, height, weight, etc. Regression is applied to solve various issues in WSNs such as localization, connectivity problem, data aggregation and energy harvesting [41].

5.1.2. Classification

In classification, the output variable(y) is a category of objects like the type of colors (e.g., red or yellow), type of diseases (e.g., fever or fracture), etc. There are the following types of classification problems as k-NN, decision tree, ANN, Bayesian learning, etc [42].
(A). K-nearest neighborhood (k-NN) [43]: This is an instance-based supervised learning algorithm. Here, all training instances are stored in a master database. When a new instance query (xq) arrives then this new query is compared with the stored database and classified results are derived. In the k-NN algorithm the distance between each data points is calculated by using the Euclidian distance formula
d ( q , p ) = ( q 1 p 1 ) 2 + ( q 2 p 2 ) 2 + + ( q n p n ) 2 O r d ( q , p ) = i = 1 n ( q i p i ) 2
where q and p are data points and d is the distance between them. In [44] data streaming in IoT using the k-NN algorithm is proposed. The KNN algorithm is also used for the early detection of agriculture pests, diseases, sensor node failure and fault detection issues [45].
(B). Decision tree (DT) [46]: In the DT algorithm, the main task is to calculate the attribute of the root node from each level. This process is called attribute selection. There are two methods for attribute selection as information gain and Gini index. The average amount of information is called entropy and is given as
E n t r o p y = i = 1 n p i * l o g ( p i )
Gini index is a metric to measure how often a randomly chosen element would be incorrectly identified.
G i n i   I n d e x = 1 i = 1 n p i 2
where pi is the probability of occurrence of an ith event, n is the number of training examples. It is a classification method for predicting labels of data by iterating the input data through a learning tree. During this process, the feature properties are compared relative to decision conditions to reach a specific category. In WSNs, decision tree (DT) algorithms like ID3 are used to identify the link reliability, mean time to failure (MTTF) and mean time to repair (MTTR). Figure 5 shows an example of the DT algorithm, in which the decisions are taken by a WSN node system for different conditions. Here, if the 1st condition of WSN node battery voltage is greater than 2.7 volts (i.e., Vbattery > 2.7 volts) is not true, then all decision flows towards the left-hand side of the tree. On the left-hand side, the 2nd condition to be checked is supply availability. On the other hand, if the 1st condition (i.e., Vbattery > 2.7 volts) is true, then all decisions flow towards the right-hand side of the tree.
(C). Artificial neural networks (ANNs) [47,48,49]: ANN is inspired by the human brain architecture learning mechanism. The basic unit of AAN is perceptron, which is equivalent to a neuron in the human brain as shown in Figure 6. Backpropagation is most the common learning algorithm in ANN. An activation function is any step function, a cosine function or a sigmoid function, etc. The error ( E ) in backpropagation is calculated until the convergence meets as
E = i = 1 n 1 2 ( T k O k ) 2
where Tk is the target value, Ok is the actual output value and (n) is the number of training examples. In backpropagation algorithms, the learning is determined by the sum of weighted links between the inputs layer, middle layer and output layer.
Finally, the weights (w) are updated using the rule as:
w ( n e w ) = w ( o l d ) + Δ w
(D). Support Vector Machine (SVM) [50,51]: SVM is the most popular algorithm, which can be used for both classification and regression of data. Generally, it is used for classification in the WSN-IoT scenario. In SVM, we plotted each data value as a point in an n-dimensional X-Y plane as shown in Figure 7.
The SVM algorithm is based on the primal optimization problem as
M i n i m i z e   | | w | | 2 s u c h   t h a t ,             y i ( w . x i + b ) 1 0 a n d ,               y i ( w . x i + b ) + 1 0 f o r   i = 1 , 2 , 3 n
where, w is the width between two support vectors planes, (xi) is the data point value, (yi) is the assigned label to each data point respectively, (b) is the distance of hyperplane from the origin and (n) is the total number of training examples. In WSN, the SVM technique is used for the localization of mobile sensor nodes.
(E). Bayesian Learning [52,53,54]: Bayesian learning is an important statistical technique to calculate the conditional probability of an event. Bayesian learning is based on the very popular Bayes’ theorem for conditional probability as:
P ( A | B ) = P ( B | A ) × P ( A ) P ( B )
where, P(A) is called the probability of occurrence of event A, P(B) is called the probability of occurrence of event B, P(A|B) is called conditional probability of occurrence of event A if B is given and P(B|A) is called conditional probability of occurrence of event B if A is given earlier. In WSN, it is used for calibration, clustering and detecting outlier (i.e., outsider or different types) nodes in a group of several nodes deployment.

5.2. Literature Survey of Unsupervised Machine Learning for WSN–IoT

In unsupervised machine learning, only the input data variable (x) is known to the machine. The output data variable (y) is not known to the machine or system. The objective of unsupervised ML is to know the probability distribution model of input data [55].

Clustering Technique

In this method, the inherent groups in the data are identified, such as a particular type of customer database that purchases a specific type of goods from specified stores in smart cities. Figure 8 shows three clusters of class red, green and blue [56,57,58]. To make a cluster between data points of two vectors X and Y the Euclidian distance ( d ) is calculated as:
d ( X , Y ) = i = 1 n ( X i Y i ) 2
The k-means clustering [59,60,61], PCA [62,63,64] and ANN [65,66] algorithm are most widely used for clustering in WSN-IoT.

5.3. Literature Survey of Reinforcement Learning (RL) for WSN–IoT

In the reinforcement learning algorithm, there are two main components called the agent and the environment as shown in Figure 9 [67,68]. The agent refers to the WSN-IoT node and the environment refers to the type of application deployment, e.g., temperature monitoring, pollution monitoring, smart agriculture monitoring, etc [69]. The WSN-IoT node agent performs the actions (At) of sensing and actuation at time state (t). The application environment changes its state (St) and provides a reward (Rt) to the agent as shown in Figure 9. There are many types of reinforcement learning algorithms given as (A) Q-learning [70,71], (B) SARSA [72], temporal difference (TD) [73] and deep Q learning [74]. The Q value is defined as a sum of discounted rewards starting from the state (sk), taking action (ak) following any policy (π) as:
Q π ( s , a ) = E [ k = 0 N 1 γ k   r ( s k , a k ) ]
where, E = expectation, s = state, a = action, k = numerical integer value (0 to N-1), γ = discount rate and r = rewards value.

6. Summary of Literature Survey of ML Techniques for WSN-IoT

Finally, this section provides a summary of all machine learning (ML) techniques proposed as an optimized solution for WSN-IoT problems. In a smart city, the major challenges are as follows: smart education, smart classrooms, smart traffic monitoring, rain water harvesting, smart grids in smart buildings smart healthcare in hospitals, smart agriculture, industrial IoT (or Industry 4.0), smart waste management, smart governance, smart environment monitoring, etc. Now, we will map each problem of smart cities with the solution provided by machine learning algorithms in WSN-IoT. The WSN node localization problem is considered as a classification or multivariate regression task in the ML domain. Therefore, SVM classification [50] or SVM regression model [51] algorithms are applied as a solution for the node localization problems in WSN-IoT.
The security issues are tackled by correlation techniques and handled by using the Bayesian learning technique as [52,53,54]. Cluster head selection tasks in WSN-IoT are considered clustering tasks in the ML domain. The k-NN [59,60,61], PCA [62,63,64] and ANN [65,66] have been used for clustering. WSN node energy management is considered a prediction problem in the ML domain. The Q-Learning [71,72] has been applied to predict the energy issues. Similarly, in energy harvesting based WSN (EH-WSN) predicts future energy availability using reinforcement learning algorithms like Q-Learning [73], SARSA [74] and deep Q-learning [75] have been applied. Event monitoring and fault detection problems are considered as classification models. These are solved by SVM [76,77] and rule-based Learning [78,79,80,81] algorithms.
The routing of data packets in WSN-IoT is considered a classification problem in the domain of machine learning. The routing optimization algorithms such as genetic algorithms [82] and classification algorithms such as Markov decision process (MDP) in decision tree [83], random forest [84] and Q-learning (QELAR) [85] have been used.
At the MAC layer, the packet scheduling task is considered a regression task in the machine learning context. Therefore, SVM [86], deep neural networks [87] have been applied at the MAC layer. The QoS (latency, bandwidth and coverage) in IoT is considered a prediction problem in IoT. Therefore, Q-Learning, ANN [88] and SVM [89] have been used as the solution. Spectrum sharing in WSN-IoT is a self-learning problem, which can be solved by a deep reinforcement learning [90,91] technique. Data aggregation is a technique in which redundant information is removed before processing by the server. Data aggregation is treated as a regression problem and is solved by SVM [92] and reinforcement [93] respectively. Table 5 shows the summary of the literature survey of ML techniques for WSN-IoT.
The ML and WSN-IoT pair can act as a boon for the medical healthcare sector in smart hospitals in smart cities. For example, as per a world health organization (WHO) report [94], an international pandemic called corona virus disease (COVID-19) caused the death of 716,075 people worldwide until the end of the year 2020. In smart hospitals, the advanced ML techniques with efficiently deployed WSN-IoT can be applied for the treatment of infected patients placed in quarantine. The sensors attached to biomedical instruments can send patient’s data over the internet to the doctors for medical diagnosis. Thus, doctors need not go near to the patients and hence avoid/reduce the virus spread in the smart cities and society.

7. Our Survey Report of ML Techniques in WSN-IoT

We performed this survey task by visiting various websites, journals, magazines and research papers for machine learning in WSN-IoT for smart cities. By surveying on the internet for ML techniques addressing WSN-IoT problems, we included many papers available as shown in Table 6 from the year 2010 to 2021. Table 7 shows category-wise ML algorithms addressing WSN-IoT issues with percentage contribution. Figure 10 shows the graphical representation of major ML algorithms in WSN-IoT.
Figure 11 shows a quick look and easy to understand graphical representation of major ML algorithms used in WSN-IoT.
Table 8 shows the dominance of ML techniques in WSN-IoT problems. Figure 12 shows a quick graphical representation of dominance of RL, supervised and unsupervised learning algorithms in WSN-IoT.

8. Conclusions and Future Work

In this paper, we outlined various machine learning algorithms in WSN-IoT for smart city applications. In this paper, we performed a detailed survey of ML techniques in WSN-IoT for the smart city challenges. From this survey, it was concluded that the supervised learning algorithms have been used with the highest amount, i.e., 61% as compared to RL at 27% and unsupervised at 12% only. The ML algorithms are so versatile and powerful that a single type of ML algorithm can be used for multiple tasks in WSN-IoT in smart cities. For example, the powerful SVM algorithm can be used for classification and for regression tasks in WSN-IoT. In the future, a more powerful and complex algorithm will emerge, which minimizes human intervention. The futuristic IoT-based solution for smart cities will include machine learning techniques. For example, the heart stroke rehabilitation system [95] in smart health care using LDA, MLP and SVM algorithms. Next-generation smart cities will have ultra-dense cellular IoT networks using high-performance machine learning algorithms [96,97,98,99,100].

Funding

This research receives no external funding.

Acknowledgments

The authors are thankful to Electrical Engineering Department, Jamia Millia Islamia (a central govt. university), New Delhi, India, for the necessary support and guidance for this research work.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Alsheikh, M.A.; Lin, S.; Niyato, D.; Tan, H.-P. Machine learning in wireless sensor networks: Algorithms, strategies, and applications. IEEE Commun. Surv. Tutor. 2014, 16, 1996–2018. [Google Scholar] [CrossRef] [Green Version]
  2. Du, R.; Santi, P.; Xiao, M.; Vasilakos, A.V.; Fischione, C. The sensable city: A survey on the deployment and management for smart city monitoring. IEEE Commun. Surv. Tutor. 2019, 21, 1533–1560. [Google Scholar] [CrossRef]
  3. Morello, R.; Mukhopadhyay, S.C.; Liu, Z.; Slomovitz, D.; Samantaray, S.R. Advances on sensing technologies for smart cities and power grids: A review. IEEE Sens. J. 2017, 17, 7596–7610. [Google Scholar] [CrossRef]
  4. Anagnostopoulos, T.; Zaslavsky, A.; Kolomvatsos, K. Challenges and opportunities of waste management in IoT-enabled smart cities: A survey. IEEE Trans. Sustain. Comput. 2017, 2, 275–289. [Google Scholar] [CrossRef]
  5. Horng, G.-J.; Liu, M.-X.; Chen, C.-C. The smart image recognition mechanism for crop harvesting system in intelligent agriculture. IEEE Sens. J. 2020, 20, 2766–2781. [Google Scholar] [CrossRef]
  6. Pal, D.; Funilkul, S.; Charoenkitkarn, N.; Kanthamanon, P. Internet-of-things and smart homes for elderly healthcare: An end user perspective. IEEE Access 2018, 6, 10483–10496. [Google Scholar] [CrossRef]
  7. Zhang, D.; Chen, Z.; Ren, J.; Zhang, N.; Awad, M.K.; Zhou, H.; Shen, X.S. Energy-harvesting-aided spectrum sensing and data transmission in heterogeneous cognitive radio sensor network. IEEE Trans. Veh. Technol. 2017, 66, 831–843. [Google Scholar] [CrossRef] [Green Version]
  8. Sharma, H.; Haque, A.; Jaffery, Z.A. Solar energy harvesting wireless sensor network nodes: A survey. J. Renew. Sustain. Energy 2018, 10, 1–33. [Google Scholar] [CrossRef]
  9. Sharma, H.; Haque, A.; Jaffery, Z.A. Modelling and optimization of a solar energy harvesting system for wireless sensor network nodes. J. Sensor Actuator Netw. 2018, 7, 1–19. [Google Scholar]
  10. Mackey, A.; Spachos, P.; Plataniotis, K.N. Smart parking system based on bluetooth low energy beacons with particle filtering. IEEE Syst. J. 2020, 14, 1–12. [Google Scholar] [CrossRef] [Green Version]
  11. Nikoukar, A.; Raza, S.; Poole, A.; Güneş, M.; Dezfouli, B. Low-power wireless for the internet of things: Standards and applications. IEEE Access 2018, 6, 67893–67926. [Google Scholar] [CrossRef]
  12. Yan, Y.; Sharif, A.; Ouyang, J.; Zhang, C.; Ma, X. UHF RFID handset antenna design with slant polarization for IoT and future 5G enabled smart cities applications using CM analysis. IEEE Access 2020, 8, 22792–22801. [Google Scholar] [CrossRef]
  13. IEEE Standard for RFID. Local and metropolitan area networks IEEE 802.15.4: Low-rate wireless personal area networks (LR-WPANs). In Amendment 2: Active Radio Frequency Identification (RFID) System Physical Layer (PHY), IEEE Std 802.15.4; IEEE: Piscataway, NJ, USA, 2012. [Google Scholar]
  14. IEEE Standard for ZigBee. Low-Rate Wireless Networks—Amendment 3: Use of the 865 MHz to 867 MHz Band in India, Amendment to IEEE Std 802.15.4; IEEE: Piscataway, NJ, USA, 2017. [Google Scholar]
  15. Li, H.; Dong, W. Enhancing the performance of 802.15.4-based wireless sensor networks with NB-IoT. IEEE Internet Things J. 2020, 7, 3523–3534. [Google Scholar] [CrossRef]
  16. Pirayesh, H.; Kheirkhah, P. Coexistence of Wi-Fi and IoT communications in WLANs. IEEE Internet Things J. 2020, 7, 7495–7505. [Google Scholar] [CrossRef]
  17. Davoli, L.; Belli, L. From micro to macro IoT: Challenges and solutions in the integration of IEEE 802.15.4/802.11 and Sub-GHz technologies. IEEE Internet Things J. 2018, 5, 784–793. [Google Scholar] [CrossRef]
  18. Sundaram, J.P.S.; Du, W.; Zhao, Z. A Survey on LoRa networking: Research problems, current solutions, and open issues. IEEE Commun. Surv. Tutor. 2020, 22, 371–388. [Google Scholar] [CrossRef] [Green Version]
  19. Chang, T.-C.; Lin, C.-H. Traffic-aware sensor grouping for IEEE 802.11ah networks: Regression-based analysis and design. IEEE Trans. Mob. Comput. 2019, 18, 674–687. [Google Scholar] [CrossRef]
  20. Klymash, M.; Beshley, H. Improving architecture of LTE mobile network for IoT services provisioning. In Proceedings of the 2nd IEEE International Conference on Advanced Information and Communication Technologies (AICT), Lviv, Ukraine, 4–7 July 2017. [Google Scholar]
  21. Kolias, C.; Kambourakis, G.; Gritzalis, S. Attacks and Countermeasures on 802.16: Analysis and assessment. IEEE Commun. Surv. Tutor. 2013, 15, 487–514. [Google Scholar] [CrossRef] [Green Version]
  22. Rostami, S.; Heiska, K.; Puchko, O.; Leppanen, K.; Valkama, M. Pre-grant signaling for energy-efficient 5G and beyond mobile devices: Method and analysis. IEEE Trans. Green Commun. Netw. 2019, 3, 418–432. [Google Scholar] [CrossRef]
  23. Chettri, L.; Bera, R. A comprehensive survey on internet of things (IoT) toward 5G wireless systems. IEEE Internet Things J. 2020, 7, 16–32. [Google Scholar] [CrossRef]
  24. Lachtar, A.; Val, T.; Kachouri, A. Elderly monitoring system in a smart city environment using LoRa and MQTT. IET Wirel. Sens. Syst. 2020, 10, 70–77. [Google Scholar] [CrossRef]
  25. Luzuriaga, J.E.; Perez, M. A comparative evaluation of AMQP and MQTT protocols over unstable and mobile networks. In Proceedings of the 2015 12th Annual IEEE Consumer Communications and Networking Conference (CCNC), Las Vegas, NV, USA, 9–12 January 2015. [Google Scholar]
  26. Iglesias-Urkia, M.; Casado-Mansilla, D. Integrating electrical substations within the IoT using IEC 61850, CoAP, and CBOR. IEEE Internet Things J. 2019, 6, 7437–7449. [Google Scholar] [CrossRef]
  27. Beckmann, K.; Dedi, O. sDDS: A portable data distribution service implementation for WSN and IoT platforms. In Proceedings of the 12th IEEE International Workshop on Intelligent Solutions in Embedded Systems (WIS.ES), Ancona, Italy, 29–30 October 2015. [Google Scholar]
  28. IEEE P1451-99 Standard for Harmonization of Internet of Things (IoT) Devices and Systems. In IEEE Standards Activities in the Internet of Things (IoT); IEEE: Piscataway, NJ, USA, 2016.
  29. Higuera, J.E.; Polo, J. IEEE 1451 Standard in 6LoWPAN Sensor Networks Using a Compact Physical-Layer Transducer Electronic Datasheet. IEEE Trans. Instrum. Meas. 2011, 60, 2751–2758. [Google Scholar] [CrossRef]
  30. IEEE P21451-001/D4.0. IEEE Draft Recommended Practice for Signal Treatment Applied to Smart Transducers; IEEE: Piscataway, NJ, USA, 2017. [Google Scholar]
  31. Nguyen, C.L.; Georgiou, O.; Yonezawa, Y.; Doi, Y. The wireless localization matching problem. IEEE Internet Things J. 2017, 4, 1312–1326. [Google Scholar] [CrossRef]
  32. Kwon, M.; Lee, J.; Park, H. Intelligent IoT connectivity: Deep reinforcement learning approach. IEEE Sens. J. 2020, 20, 2782–2791. [Google Scholar] [CrossRef]
  33. Xu, C.; Xiong, Z.; Zhao, G.; Yu, S. An energy-efficient region source routing protocol for lifetime maximization in WSN. IEEE Access 2019, 7, 135277–135289. [Google Scholar] [CrossRef]
  34. Kumar, A.; Zhao, M.; Wong, K.-J.; Guan, Y.L.; Chong, P.H.J. A Comprehensive Study of IoT and WSN MAC protocols: Research issues, challenges and opportunities. IEEE Access 2018, 6, 76228–76262. [Google Scholar] [CrossRef]
  35. Shafique, K.; Khawaja, B.A.; Sabir, F.; Qazi, S.; Mustaqim, M. Internet of things (IoT) for next-generation smart systems: A review of current challenges, future trends and prospects for emerging 5G-IoT scenarios. IEEE Access 2020, 8, 23022–23040. [Google Scholar] [CrossRef]
  36. Gutiérrez-Madroñal, L.; La Blunda, L.; Wagner, M.F.; Medina-Bulo, I. Test Event generation for a fall-detection IoT System. IEEE Internet Things J. 2019, 6, 6642–6651. [Google Scholar] [CrossRef]
  37. Sharma, H.; Haque, A.; Jaffery, Z.A. Maximization of wireless sensor network lifetime using solar energy harvesting for smart agriculture monitoring. Adhoc Netw. J. 2019, 94. [Google Scholar] [CrossRef]
  38. Komai, Y.; Sasaki, Y.; Hara, T.; Nishio, S. K-NN query processing methods in mobile ad hoc networks. IEEE Trans. Mob. Comput. 2014, 13, 1090–1103. [Google Scholar] [CrossRef]
  39. Gupta, S.; Mittal, M. Predictive analytics of sensor data based on supervised machine learning algorithms. In Proceedings of the IEEE International Conference on Next Generation Computing and Information Systems (ICNGCIS), Jammu, India, 11–12 December 2017. [Google Scholar]
  40. Otoum, S.; Kantarci, B.; Mouftah, H.T. On the feasibility of deep learning in sensor network intrusion detection. IEEE Netw. Lett. 2019, 1, 68–71. [Google Scholar] [CrossRef]
  41. Joshitha, K.L.; Gangasri, A. On an effort to enhance the lifetime of a regression-based clustered network using candidate selection. In Proceedings of the International Conference on Trends in Electronics and Informatics (ICEI), Tirunelveli, India, 11–12 May 2017. [Google Scholar]
  42. Borges, L.M.; Velez, F.J.; Lebres, A.S. Survey on the characterization and classification of wireless sensor network applications. IEEE Commun. Surv. Tutor. 2014, 16, 1860–1890. [Google Scholar] [CrossRef]
  43. Xie, M.; Hu, J.; Han, S.; Chen, H.-H. Scalable hypergrid k-NN-based online anomaly detection in wireless sensor networks. IEEE Trans. Parallel Distrib. Syst. 2013, 24, 1661–1670. [Google Scholar] [CrossRef]
  44. Zhu, R.; Ji, X.; Yu, D.; Tan, Z.; Zhao, L.; Li, J.; Xia, X. KNN-based approximate outlier detection algorithm over IoT streaming data. IEEE Access 2020, 8, 42749–42759. [Google Scholar] [CrossRef]
  45. Javaid, A.; Javaid, N.; Wadud, Z.; Saba, T.; Sheta, O.E.; Saleem, M.Q.; Alzahrani, M.E. Machine learning algorithms and fault detection for improved belief function based decision fusion in wireless sensor networks. Sensors 2019, 19, 1334. [Google Scholar] [CrossRef] [Green Version]
  46. Sugiarto, B.; Sustika, R. Data classification for air quality on wireless sensor network monitoring system using decision tree (DT) algorithm. In Proceedings of the IEEE 2nd International Conference on Science and Technology-Computer (ICST), Yogyakarta, Indonesia, 27–28 October 2016. [Google Scholar]
  47. Mukherjee, A.; Jain, D.K.; Goswami, P.; Xin, Q.; Yang, L.; Rodrigues, J.J.P.C. BackPropagation artificial neural network (ANN) based cluster head identification in MIMO sensor networks for intelligent transportation systems. IEEE Access 2020, 8, 28524–28532. [Google Scholar] [CrossRef]
  48. Mehmood, A.; Lv, Z. ELDC: An artificial neural network (ANN) based energy-efficient and robust routing scheme for pollution monitoring in WSNs. IEEE Trans. Emerg. Top. Comput. 2020, 8, 106–114. [Google Scholar] [CrossRef]
  49. Gharghan, S.K.; Nordin, R.; Ismail, M.; Ali, J.A. Accurate wireless sensor localization technique based on hybrid PSO-ANN algorithm for indoor and outdoor track cycling. IEEE Sens. J. 2016, 16, 529–541. [Google Scholar] [CrossRef]
  50. Zidi, S.; Moulahi, T.; Alaya, B. Fault detection in wireless sensor networks through SVM classifier. IEEE Sens. J. 2018, 18, 340–347. [Google Scholar] [CrossRef]
  51. Tran, D.A.; Nguyen, T. Localization in wireless sensor networks based on support vector machines (SVM). IEEE Trans. Parallel Distrib. Syst. 2008, 19, 984–994. [Google Scholar] [CrossRef]
  52. Wang, Y.; Yang, A.; Li, Z.; Chen, X.; Wang, P.; Yang, H. Blind drift calibration of sensor networks using sparse bayesian Learning. IEEE Sens. J. 2016, 16, 1. [Google Scholar] [CrossRef]
  53. Liu, J.; Li, D.; Xu, Y. Collaborative online edge caching with bayesian clustering in wireless networks. IEEE Internet Things J. 2020, 7, 1548–1560. [Google Scholar] [CrossRef]
  54. Mohanraj, R.; Babulak, E. A secure energy-efficient IoT based fractional correlated bayesian data transmission in WSNs. J. Commun. Inf. Netw. 2019, 4, 54–66. [Google Scholar]
  55. Yasaratna, R.; Yahampath, P. Design of scalable decoders for sensor networks via Bayesian network learning. IEEE Trans. Commun. 2009, 57, 2868–2871. [Google Scholar] [CrossRef]
  56. Bangotra, D.K.; Singh, Y. Machine learning in wireless sensor networks: Challenges and opportunities. In Proceedings of the Fifth IEEE International Conference on Parallel, Distributed and Grid Computing (PDGC), Solan, India, 20–22 December 2018. [Google Scholar]
  57. Shahina, K.; Vaidehi, V. Clustering and data aggregation in wireless sensor networks using machine learning algorithms. In Proceedings of the 2018 International Conference on Recent Trends in Advanced Computing (ICRTAC), Chennai, India, 10–11 September 2018. [Google Scholar]
  58. Harb, H.; Makhoul, A.; Couturier, R. An enhanced K-means and ANOVA-based clustering approach for similarity aggregation in underwater wireless sensor networks. IEEE Sens. J. 2015, 15, 5483–5493. [Google Scholar] [CrossRef] [Green Version]
  59. Qin, J.; Fu, W.; Gao, H.; Zheng, W.X. Distributed k-means algorithm and fuzzy c-means algorithm for sensor networks based on multiagent consensus theory. IEEE Trans. Cybern. 2017, 47, 772–783. [Google Scholar] [CrossRef]
  60. Ray, A.; De, D. Energy efficient clustering protocol based on K-means (EECPK-means)-midpoint algorithm for enhanced network lifetime in wireless sensor network. IET Wirel. Sens. Syst. 2016, 6, 181–191. [Google Scholar] [CrossRef]
  61. Paek, J.; Ko, J. K-means clustering-based data compression scheme for wireless imaging sensor networks. IEEE Syst. J. 2017, 11, 2652–2662. [Google Scholar] [CrossRef]
  62. Yu, T.; Wang, X.; Shami, A. Recursive principal component analysis (PCA)-based data outlier detection and sensor data aggregation in IoT systems. IEEE Internet Things J. 2017, 4, 2207–2216. [Google Scholar] [CrossRef]
  63. Morell, A.; Correa, A.; Barceló, M.; Vicario, J.L. Data aggregation and principal component analysis (PCA) in WSNs. IEEE Trans. Wirel. Commun. 2016, 15, 2207–2216. [Google Scholar] [CrossRef]
  64. Ferng, H.-W.; Chuang, J.-S. Area-partitioned clustering and cluster head rotation for wireless sensor networks. In Proceedings of the International Conference on Machine Learning and Cybernetics (ICMLC), Ningbo, China, 9–12 July 2017; Volume 2. [Google Scholar]
  65. Sanhaji, F.; Satori, H.; Satori, K. Cluster head selection based on neural networks in wireless sensor networks. In Proceedings of the International Conference on Wireless Technologies, Embedded and Intelligent Systems (WITS), Fez, Morocco, 3–4 April 2019. [Google Scholar]
  66. Wu, J.; Li, G. Drift calibration using constrained extreme learning machine and kalman filter in clustered wireless sensor networks. IEEE Access 2020, 8, 13078–13085. [Google Scholar] [CrossRef]
  67. Chen, H.; Li, X.; Zhao, F. A Reinforcement learning-based sleep scheduling algorithm for desired area coverage in solar-powered wireless sensor networks. IEEE Sens. J. 2016, 16, 2763–2774. [Google Scholar] [CrossRef]
  68. Li, K.; Ni, W. Reinforcement learning for scheduling wireless powered sensor communications. IEEE Trans. Green Commun. Netw. 2019, 3, 264–274. [Google Scholar] [CrossRef]
  69. Su, Y.; Lu, X.; Zhao, Y.; Huang, L.; Du, X. Cooperative communications with relay selection based on deep reinforcement learning in wireless sensor networks. IEEE Sens. J. 2019, 19, 9561–9569. [Google Scholar] [CrossRef]
  70. Jiang, N.; Deng, Y.; Nallanathan, A.; Chambers, J.A. Reinforcement learning for real-time optimization in NB-IoT networks. IEEE J. Sel. Areas Commun. 2019, 37, 1424–1440. [Google Scholar] [CrossRef] [Green Version]
  71. Prabuchandran, K.J.; Meena, S.K.; Bhatnagar, S. Q-Learning Based Energy Management Policies for a Single Sensor Node with Finite Buffer. IEEE Wirel. Commun. Lett. 2013, 2, 82–85. [Google Scholar] [CrossRef]
  72. Kosunalp, S. A new energy prediction algorithm for energy-harvesting wireless sensor networks with Q-learning. IEEE Access 2016, 4, 5755–5763. [Google Scholar] [CrossRef]
  73. Aslam, N.; Xia, K.; Hadi, M.U. Optimal wireless charging inclusive of intellectual routing based on SARSA learning in renewable wireless sensor networks. IEEE Sens. J. 2019, 19, 8340–8351. [Google Scholar] [CrossRef]
  74. Chen, S.; Tang, W. A 64 × 64 pixels UWB wireless temporal-difference (TD) digital image sensor. In IEEE Transactions on Very Large Scale Integration (VLSI) Systems; IEEE: Piscataway, NJ, USA, 2012; Volume 20. [Google Scholar]
  75. Zhu, J.; Song, Y.; Jiang, D.; Song, H. A new deep-Q-learning-based transmission scheduling mechanism for the cognitive internet of things. IEEE Internet Things J. 2018, 5, 2375–2385. [Google Scholar] [CrossRef]
  76. Kim, W.; Stanković, M.S. A distributed support vector machine (SVM) learning over wireless sensor networks. IEEE Trans. Cybern. 2015, 45, 2599–2611. [Google Scholar] [CrossRef]
  77. Liu, S.; Xu, L. Fault diagnosis of water quality monitoring devices based on multiclass support vector machines (SVM) and rule-based decision trees. IEEE Access 2018, 6, 22184–22195. [Google Scholar] [CrossRef]
  78. Hodge, V.J.; O’Keefe, S.; Weeks, M.; Moulds, A. Wireless Sensor Networks for Condition Monitoring in the Railway Industry: A Survey. IEEE Trans. Intell. Transp. Syst. 2015, 16, 1088–1106. [Google Scholar] [CrossRef]
  79. Liang, L.; Gao, D.; Zhang, H.; Yang, O.W.W. Efficient event detecting protocol in event-driven wireless sensor networks. IEEE Sens. J. 2012, 12, 2328–2337. [Google Scholar] [CrossRef]
  80. Diddigi, R.B.; Prabuchandran, K.J. Novel sensor scheduling scheme for intruder tracking in energy efficient sensor networks. IEEE Wirel. Commun. Lett. 2018, 7, 712–715. [Google Scholar] [CrossRef]
  81. Hu, L.; Ni, Q. IoT-driven automated object detection algorithm for urban surveillance systems in smart cities. IEEE Internet Things J. 2018, 5, 747–754. [Google Scholar] [CrossRef] [Green Version]
  82. Yang, S.; Cheng, H.; Wang, F. Genetic algorithms with immigrants and memory schemes for dynamic shortest path routing problems in mobile Ad Hoc networks. IEEE Trans. Syst. Man Cybern. Part C Appl. Rev. 2010, 40, 52–63. [Google Scholar] [CrossRef] [Green Version]
  83. Rout, R.R.; Krishna, M.S.; Gupta, S. Markov Decision process-based switching algorithm for sustainable rechargeable wireless sensor networks. IEEE Sens. J. 2016, 16, 2788–2797. [Google Scholar] [CrossRef]
  84. Pramod, M.S.; Khurram, M. Random node deployment and route establishment in receiver-based routing protocol for WSNs. In Proceedings of the IEEE International Conference on Recent Trends in Electronics, Information & Communication Technology (RTEICT), Bangalore, India, 20–21 May 2016. [Google Scholar]
  85. Hu, T.; Fei, Y. QELAR: A machine-learning-based adaptive routing protocol for energy-efficient and lifetime-extended underwater sensor networks. IEEE Trans. Mob. Comput. 2010, 9, 796–809. [Google Scholar]
  86. Yang, B.; Cao, X.; Han, Z.; Qian, L. A machine learning enabled MAC framework for heterogeneous internet-of-things networks. IEEE Trans. Wirel. Commun. 2019, 18, 3697–3712. [Google Scholar] [CrossRef]
  87. Yang, B.; Cao, X.; Li, X.; Zhang, Q.; Qian, L. Mobile Edge Computing based hierarchical Machine Learning Task distribution for IIoT. IEEE Internet Things J. 2019, 7, 2169–2180. [Google Scholar] [CrossRef]
  88. Ozturk, M.; Akram, M. Novel QoS-aware proactive spectrum access techniques for cognitive radio using machine learning. IEEE Access 2019, 7, 70811–70827. [Google Scholar] [CrossRef]
  89. Shu, J.; Liu, S. Research on link quality estimation mechanism for wireless sensor networks based on support vector machine (SVM). Chin. J. Electron. 2017, 26, 377–384. [Google Scholar] [CrossRef]
  90. Li, X.; Fang, J.; Cheng, W.; Duan, H.; Chen, Z.; Li, H. Intelligent power control for spectrum sharing in cognitive radios: A deep reinforcement learning approach. IEEE Access 2018, 6, 25463–25473. [Google Scholar] [CrossRef]
  91. Mennes, R.; Claeys, M.; De Figueiredo, F.A.P.; Jabandzic, I.; Moerman, I.; Latre, S. deep learning-based spectrum prediction collision avoidance for hybrid wireless environments. IEEE Access 2019, 7, 45818–45830. [Google Scholar] [CrossRef]
  92. Frej, M.B.H.; Elleithy, K. Secure data aggregation model (SDAM) in wireless sensor networks. In Proceedings of the IEEE 14th International Conference on Machine Learning and Applications (ICMLA), Miami, FL, USA, 9–11 December 2015. [Google Scholar]
  93. Atoui, I.; Ahmad, A. Tree-based data aggregation approach in wireless sensor network using fitting functions. In Proceedings of the Sixth IEEE International Conference on Digital Information Processing and Communications (ICDIPC), Beirut, Lebanon, 21–23 April 2016. [Google Scholar]
  94. Coronavirus Disease 2019 (COVID-19) Pandemic Situation Report no. 89, a World Health Organisation (WHO) Report; WHO: Geneve, Switzerland, 2020.
  95. Yang, G.; Deng, J. An IoT-enabled stroke rehabilitation system based on smart wearable armband and machine learning. IEEE J. Transl. Eng. Health Med. 2018, 6. [Google Scholar] [CrossRef]
  96. Sharma, S.K.; Wang, X. Toward Massive Machine Type Communications in Ultra-Dense Cellular IoT Networks: Current Issues and Machine Learning-Assisted Solutions. IEEE Commun. Surv. Tutor. 2020, 22, 426–471. [Google Scholar] [CrossRef] [Green Version]
  97. Osifeko, M.O.; Hancke, G.P.; Abu-Mahfouz, A.M. Artificial Intelligence Techniques for Cognitive Sensing in Future IoT: State-of-the-Art, Potentials, and Challenges. J. Sens. Actuator Netw. 2020, 9, 21. [Google Scholar] [CrossRef]
  98. Tan, S.; Taeihagh, A. Smart city governance in developing countries: A systematic literature review. Sustainability 2020, 12, 899. [Google Scholar] [CrossRef] [Green Version]
  99. Alablani, I.; Alenazi, M. EDTD-SC: An IoT Sensor Deployment Strategy for Smart Cities. Sensors 2020, 20, 7191. [Google Scholar] [CrossRef]
  100. Impedovo, D.; Pirlo, G. Artificial intelligence applications to smart city and smart enterprise. Appl. Sci. 2020, 10, 2944. [Google Scholar] [CrossRef]

Short Biography of Authors

Electronics 10 01012 i001Dr. Himanshu Sharma, member IEEE, received the Ph.D. Degree in Wireless Sensor Networks (WSN) and Internet of Things (IoT) from Jamia Millia Islamia (a central Govt. University), New Delhi, India in 2019. He did his B.Tech. in Electronics and Communication Engineering (ECE) in 2008 and M.Tech (ECE) in 2014 from Dr. APJ Abdul Kalam Technical University (AKTU), Lucknow, U.P, India. His research interest includes Wireless Sensor Networks (WSN), Internet of Things (IoT), and Machine Learning algorithms. He has published many international books, SCI and Scopus Journals and conference papers including IEEE explore and Elsevier. He has published two Indian patents.
Electronics 10 01012 i002Dr. Ahteshamul Haque, Senior member IEEE, is Asst. Professor at Department of Electrical Engineering, Jamia Millia Islamia (a Central University), New Delhi, India. His area of research is Machine Learning and IoT in smart cities, power electronics and its application. He did B.Tech in Electrical Engineering from AMU, Aligarh, and M.Tech from Indian Institute of Technology (IIT), Delhi. He completed his Ph.D. from Jamia Millia Islamia. He has published many SCI and Scopus journal papers including IEEE journals and IEEE conference papers. He holds two US patents and four Indian patents granted. He has established state of the art Advance Power Electronics Research Lab. He is the recipient of IEEE Power and Energy Society Outstanding Engineer Award 2019.
Electronics 10 01012 i003Prof. Frede Blaabjerg is Fellow IEEE working at Department of Energy Technology, Aalborg University, Denmark. His current research interests include power electronics and its applications such as in wind turbines, PV systems, reliability, harmonics and adjustable speed drives. He has published more than 600 journal papers in the fields of power electronics and its applications. He is the co-author of four monographs and editor of ten books in power electronics and its applications. He has received 32 IEEE Prize Paper Awards, the IEEE PELS Distinguished Service Award in 2009, the EPE-PEMC Council Award in 2010, the IEEE William E. Newell Power Electronics Award 2014, the Villum Kann Rasmussen Research Award 2014, the Global Energy Prize in 2019, and the 2020 IEEE Edison Medal. He was the Editor-in-Chief of the IEEE Transactions on Power Electronics from 2006 to 2012. He has been Distinguished Lecturer for the IEEE Power Electronics Society from 2005 to 2007 and for the IEEE Industry Applications Society from 2010 to 2011 as well as 2017 to 2018. In 2019-2020 he serves a President of IEEE Power Electronics Society.
Figure 1. WSN-IoT using machine learning in a smart city.
Figure 1. WSN-IoT using machine learning in a smart city.
Electronics 10 01012 g001
Figure 2. Data flow in a typical WSN-IoT application.
Figure 2. Data flow in a typical WSN-IoT application.
Electronics 10 01012 g002
Figure 3. Process flow-chart of machine learning in WSN-IoT.
Figure 3. Process flow-chart of machine learning in WSN-IoT.
Electronics 10 01012 g003
Figure 4. Literature survey of ML algorithms for WSN-IoT.
Figure 4. Literature survey of ML algorithms for WSN-IoT.
Electronics 10 01012 g004
Figure 5. Decision tree (DT) algorithm flow at a WSN-IoT end node.
Figure 5. Decision tree (DT) algorithm flow at a WSN-IoT end node.
Electronics 10 01012 g005
Figure 6. A single perceptron in ANN.
Figure 6. A single perceptron in ANN.
Electronics 10 01012 g006
Figure 7. Data classification using SVM.
Figure 7. Data classification using SVM.
Electronics 10 01012 g007
Figure 8. Data clustering using similar attributes.
Figure 8. Data clustering using similar attributes.
Electronics 10 01012 g008
Figure 9. Reinforcement learning (RL) for WSN-IoT.
Figure 9. Reinforcement learning (RL) for WSN-IoT.
Electronics 10 01012 g009
Figure 10. WSN-IoT technology-wise research papers considered in this survey.
Figure 10. WSN-IoT technology-wise research papers considered in this survey.
Electronics 10 01012 g010
Figure 11. Graphical representation of major ML algorithms used in WSN-IoT.
Figure 11. Graphical representation of major ML algorithms used in WSN-IoT.
Electronics 10 01012 g011
Figure 12. Graphical representation of RL, supervised and unsupervised learning algorithms in WSN-IoT.
Figure 12. Graphical representation of RL, supervised and unsupervised learning algorithms in WSN-IoT.
Electronics 10 01012 g012
Table 1. List of abbreviations in alphabetical order.
Table 1. List of abbreviations in alphabetical order.
AcronymDescription
5G5th Generation Cellular Networks
6G6th Generation Cellular Networks
AMQP Advanced Message Queuing Protocol
ANNArtificial Neural networks
BLEBluetooth Low Energy
CoAPConstrained Application Protocol
DDSData Distribution Service
DLDeep Learning
DTDecision Tree
IoTInternet of Things
k-NNK Nearest Neighborhood
LDALinear Discriminant Analysis
LoRaWAN Long Ranged Wide Area Network
LTELong Term Evolution
MACMedium Access Control
MLMDPMachine LearningMarkov Decision Process
MLPMulti-Layer Perceptron
MQTTMessage Query Telemetry Transport
NB-IoTNarrowband IoT
PCAPrinciple Component Analysis
QoSQuality of Service
RLReinforcement Learning
RFIDRadio frequency Identification
SARSAState-Action-Reward-State-Acton
SVMSupport Vector Machines
TCPTransmission Control Protocol
UDPUser Datagram protocol
WSN-IoTWSN based IoT
WSNWireless Sensor Networks
Table 2. WSN-IoT technologies for smart cities.
Table 2. WSN-IoT technologies for smart cities.
S. No.IoT Technologies IEEE Standards Power/Energy ConsumptionData RateFrequency BandTypical Distance RangeSmart City Applications Services
1Bluetooth Low Energy (BLE) [10]IEEE 802.15.1 [11]Lowest Medium
24 Mbps
2.4 GHz Small (<5 m)Smart Home Automation, Smart Grids
2Radio Frequency Identification (RFID) [12]IEEE 802.15 [13]LowSmall
500 kbps
915 MHz10 m RFID Fast-Tags, Company Gates Entry/Exit
3ZigBee [14]IEEE 802.15.4 [15]LowSmall
(250 kbps)
2.4 GHz100 mTemperature Measurement
4Wi-Fi [16]IEEE 802.11 [17]High100 Mbps2.4 GHz1 kmLaptop/Mobile Phone, Internet Service
5Long Ranged Wide Area Network (LoRaWAN) [18]IEEE 802.11 ah [19]Low50 kbps868 MHz
(Europe),
15 MHz (America)
923 MHz (Asia)
10 kmConnecting Low Power devices in WAN
6Cellular Mobile Communication (4G/5G) [20]IEEE 802.16e WiMax (4G) [19]
IEEE 1914 New Radio (5G) [21,22,23]
High4G-100 Mbps, 5G-1 Gbps450 MHz–6 GHz100 km Remote monitoring and control using Smart Phones
Table 3. Higher-level communication protocols in WSN-IoT.
Table 3. Higher-level communication protocols in WSN-IoT.
S. No.Communication ProtocolsIEEE StandardRemarks
1.Message Query Telemetry Transport (MQTT) protocol [24]IEEE P1451-99 [28] Works with TCP for Data Security, Load Balancing
2.Advanced Message Queuing Protocol (AMQP) [25]IEEE P1451-99 [28]Works with TCP for Smart Electronics Gadgets, QoS
3.Constrained Application Protocol (CoAP) [26]IEEE P1451-99 [28]For Cloud Services
4.Data Distribution Service (DDS) protocol [27]IEEE P1451-99 [28]Works with UDP for Data Delivery, Machine to Machine Communication
5.Smart Transducer Interface protocol [29]IEEE P21451 [30] interoperability interfacesSensor Connectivity, interoperable communication
Table 4. WSN-IoT research issue with ML-based solution.
Table 4. WSN-IoT research issue with ML-based solution.
S. No.WSN-IoT Research IssueMachine Learning TechniqueSolution/Remarks
1IoT Node Localization [31]K-NN, Reinforcement Learning (RL)Efficient Distance Estimation, Range Estimation
2IoT Node Coverage and Connectivity [32]Decision trees, ANN, Evolutionary ComputationClassification of Connected and Failed Nodes in the sensor network, Identification nodes with poor and good connectivity
3Routing Layer Issues [33]Decision Tree, Random ForestPrediction of optimal routing path depending upon data traffic.
4MAC Layer Issues [34]SVM, Decision Tree, ANNEfficient channel assignment
5Sensor data aggregation [35]k-means, SVM, ReinforcementDecide optimal cluster head in WSN nodes, Dynamic configuration of WSN nodes
6Event Monitoring and Target Detection [36]PCA, Deep Learning, Evolutionary Computing, Bayesian LearningEfficient event monitoring and multiple target tracking
7Energy Harvesting [37]SVM, Deep Learning, Evolutionary ComputingTo predict the amount of battery energy required to maximize network lifetime, Prediction of energy harvesting availability in the future.
8Node Query processing [38]k-NNNode Beacon sending, Handshake for data transfer
Table 5. Summary of literature survey of ML techniques for WSN-IoT.
Table 5. Summary of literature survey of ML techniques for WSN-IoT.
S. No.Smart City ApplicationsWSN-IoT Issues in Smart CitiesAddressed ML Algorithms as Solutions by Researchers WorldwideOur Remarks
1Smart traffic MonitoringWSN Node LocalizationSVM Classification [50] and SVM regression model [51]Localization is considered as Classification and Multivariate Regression task in ML context.
2Rain Water HarvestingSecurity Issues in WSNBayesian Learning [52,53,54]Security is dealt with Correlation, Encoding, Decoding task in ML
3Smart Grids in Smart BuildingsNode Clustering, Cluster Head Selection, Data Pattern Analysisk-NN [59,60,61], PCA [62,63,64] and ANN [65,66]Classification problem
4Smart Healthcare in HospitalsWSN Node Energy Management Q-Learning [71,72]Energy Management is considered a Prediction task in ML
5Smart AgricultureEnergy HarvestingQ-Learning [73], SARSA [74] and Deep Q-Learning [75]The Energy Harvesting process is considered a Prediction task in ML
6Industrial IoT (Industry 4.0)Event/Condition Monitoring, Object/Fault Detection, SVM [76,77] and Rule based Learning [78,79,80,81]Event detection is handled by Classification techniques in the ML domain
7Smart Waste ManagementRouting of data packets Genetic algorithms [82], MDP in Decision Tree [83], Random Forest [84] and Q-Learning (QELAR) [85]Route optimization, Routing as a Classification problem in ML.
8Smart GovernanceScheduling and Heterogeneity at MAC LayerSVM [86] and Deep Neural Networks [87]Scheduling and Heterogeneity problems are Regression tasks in ML
9Quality of Life of PeopleQoS (Latency, Bandwidth, Coverage, Link Quality) in IoTQ-Learning and ANN [88], SVM [89]QoS in IoT is solved by Prediction, Classification tasks.
10Energy Efficient Street Lighting, Smart environment monitoringSpectrum SharingDeep Reinforcement Learning [90,91]Spectrum sharing is Self-learning, rewards system tasks in ML.
11Pandemic medical treatment (e.g., COVID-19 or Corona Virus)Data AggrigationSVM [92] and Reinforcement [93]Data Aggregation is treated as a Regression task in the ML context.
Table 6. WSN-IoT technology-wise research papers included in this survey.
Table 6. WSN-IoT technology-wise research papers included in this survey.
S. No.WSN-IoT ProblemNo. of Research
Papers Included
1Routing45
2Switching34
3Data Aggregation24
4Energy Harvesting12
5Node Localization15
6Security52
7QoS37
8Event Detection36
9Fault Detection56
10Congestion Control18
11Anomaly Detection117
12Connectivity27
Table 7. ML algorithms for WSN-IoT.
Table 7. ML algorithms for WSN-IoT.
S. No.ML Algorithms for WSN-IoT Percentage (%)
1Reinforcement 12%
2Q-Learning15%
3SVM18%
4ANN14%
5Bayesian9%
6Rule-based8%
7Decision Tree4%
8Random Forest2%
9k-NN6%
10k-means 8%
11PCA4%
Table 8. Conclusion of usage of ML techniques in WSN-IoT problems.
Table 8. Conclusion of usage of ML techniques in WSN-IoT problems.
S. No.ML Technique in WSN-IoTDominance
1.Reinforcement Learning27%
2.Supervised Learning61%
3.Unsupervised Learning12%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Sharma, H.; Haque, A.; Blaabjerg, F. Machine Learning in Wireless Sensor Networks for Smart Cities: A Survey. Electronics 2021, 10, 1012. https://doi.org/10.3390/electronics10091012

AMA Style

Sharma H, Haque A, Blaabjerg F. Machine Learning in Wireless Sensor Networks for Smart Cities: A Survey. Electronics. 2021; 10(9):1012. https://doi.org/10.3390/electronics10091012

Chicago/Turabian Style

Sharma, Himanshu, Ahteshamul Haque, and Frede Blaabjerg. 2021. "Machine Learning in Wireless Sensor Networks for Smart Cities: A Survey" Electronics 10, no. 9: 1012. https://doi.org/10.3390/electronics10091012

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