I. Introduction
Nowadays, Industrial 4.0 has become a hot topic of research as it has revolutionized the industrial sector. In Industrial 4.0, different cutting edge technologies such as Industrial Internet of Things (IIoT), industrial wireless sensor networks (IWSNs), and machine learning are used for the advancement and automation of traditional industrial processes [1]. Industry 4.0 introduces smart machines such as autonomous robots, expert systems, and intelligent assistants. Smart machines significantly increase the productivity and safety of an industry. As per the current report [2], the global smart machine market will reach $32.5 billion by 2027. In this industrial revolution, heterogeneous sensors are deployed to monitor different physical parameters of the industrial environment. Different sensor nodes form a wireless sensor network that can directly assist different IIoT applications. Intelligent wireless sensor networks (WSNs) find different applications in Industry 4.0 including healthcare [3], safety [4], and smart manufacturing [5]. Intelligence is introduced in IIoT with the use of artificial intelligence (AI). As per the Internet of Things (IoT) Tech news report [6], the annual growth rate of incorporation of AI in IIoT is expected to be 57.2% over the next five years.