Evolutionary Computing Approach to Optimize Superframe Scheduling on Industrial Wireless Sensor Networks
Gandeva Bayu Satrya, Soo Young Shin

TL;DR
This paper explores evolutionary algorithms like PSO and GA to optimize superframe scheduling in industrial wireless sensor networks, aiming to reduce defect times and improve deadline adherence.
Contribution
It introduces the application of PSO, orthogonal learning PSO, and modified GA for superframe scheduling, comparing them with traditional deadline monotonic scheduling.
Findings
GA and modified GA outperform other methods in reducing idle time
Evolutionary algorithms improve deadline adherence in superframe scheduling
Simulation results demonstrate enhanced performance with proposed methods
Abstract
There has been a paradigm shift in the industrial wireless sensor domain caused by the Internet of Things (IoT). IoT is a thriving technology leading the way in short range and fixed wireless sensing. One of the issues in Industrial Wireless Sensor Network-IWSN is finding the optimal solution for minimizing the defect time in superframe scheduling. This paper proposes a method using the evolutionary algorithms approach namely particle swarm optimization (PSO), Orthogonal Learning PSO, genetic algorithms (GA) and modified GA for optimizing the scheduling of superframe. We have also evaluated a contemporary method, deadline monotonic scheduling on the ISA 100.11a. By using this standard as a case study, the presented simulations are object-oriented based, with numerous variations in the number of timeslots and wireless sensor nodes. The simulation results show that the use of GA and…
| Nodes | (ms) | (ms) | (ms) | (ms) |
|---|---|---|---|---|
| Beacon | 0 | 10 | 10 | 250 |
| Node 1 | 10 | 20 | 20 | 150 |
| Node 2 | 20 | 20 | 80 | 80 |
| Node 3 | 30 | 30 | 100 | 100 |
| Node 4 | 40 | 10 | 50 | 50 |
| Slot number | [1] | … | [43] | [44] | [45] | [46] | [47] | [48] | [49] | [50] | [51] | [52] | [53] | [54] | … | [75] |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Executed node | 0 | … | 2 | 2 | 4 | 3 | 1 | 1 | 3 | 4 | 0 | 2 | 2 | 3 | 4 | |
| Beacon 0 | 0 | … | 0 | |||||||||||||
| Node 1 | … | 1 | 1 | |||||||||||||
| Node 2 | … | 2 | 2 | 2 | 2 | |||||||||||
| Node 3 | … | 3 | 3 | ▼ | ▼ | 3 | ||||||||||
| Node 4 | … | 4 | 4 | 4 | ||||||||||||
| Missed Deadline | 1 (80 ms) for node 3 | |||||||||||||||
| Idle | 8 (80 ms) | |||||||||||||||
| Total Defect time | 160 ms | |||||||||||||||
| Note: Symbol ▼, means there is a missed deadline. | ||||||||||||||||
| Parameter | Value |
|---|---|
| GA population size | 50-100 |
| Number of generations | 1000 iterations |
| Selection method | Tournament / Truncate |
| Offspring Fraction | 0.4 |
| Crossover method | Single Point Crossover (0.2) |
| Multi Point Crossover (0.2 / 2 - 10) | |
| Mutation method | Gaussian Mutator (0.00001 - 0.001) |
| Max Phenotype Age | No Phenotype Age |
| No | No. of Ts | No. of Node | Defect time (ms) | |||||
|---|---|---|---|---|---|---|---|---|
| EDF [19] | DMS [10] | PSO | OLPSO [28] | GA | MGA | |||
| 1 | 100 | 4 | 2220 | 2180 | 2214 | 2199 | 2100 | 2010 |
| 2 | 100 | 7 | 3090 | 3330 | 3321 | 3457 | 2764 | 2279 |
| 3 | 100 | 10 | 6770 | 5080 | 6391 | 6940 | 5071 | 4898 |
| 4 | 100 | 100 | 84970 | 85070 | 82961 | 83295 | 79688 | 79703 |
| 5 | 200 | 4 | 4720 | 4520 | 4834 | 5237 | 4366 | 4062 |
| 6 | 200 | 7 | 7190 | 7120 | 8025 | 8388 | 6054 | 4882 |
| 7 | 200 | 10 | 14850 | 11590 | 16071 | 16728 | 12463 | 10901 |
| 8 | 200 | 100 | 184050 | 184220 | 180745 | 182236 | 174675 | 174427 |
| 9 | 500 | 4 | 11800 | 11360 | 13673 | 14555 | 11876 | 10432 |
| 10 | 500 | 7 | 17190 | 18300 | 22977 | 24002 | 17355 | 14015 |
| 11 | 500 | 10 | 39480 | 29020 | 44182 | 46203 | 36266 | 28263 |
| 12 | 500 | 100 | 481130 | 481640 | 475533 | 480237 | 471593 | 465529 |
| Metrics | EDF | DMS | PSO | OLPSO | GA | MGA |
|---|---|---|---|---|---|---|
| Defect time | Fair | Fair | Good | Fair | Good | Very Good |
| Memory consumption | Very Good | Very Good | Poor | Poor | Good | Good |
| Processing Time | Very Good | Very Good | Poor | Poor | Good | Good |
| Test Case | Experiment | Defect Time (ms) | |||
| PSO | OLPSO | GA | MGA | ||
| 3 | 1 | 6600 | 6660 | 5520 | 4830 |
| 2 | 6160 | 6940 | 5010 | 4910 | |
| 3 | 6880 | 6660 | 4690 | 4890 | |
| 4 | 6340 | 7000 | 4890 | 4910 | |
| 5 | 6090 | 7070 | 4910 | 4840 | |
| 6 | 6410 | 7460 | 5340 | 4910 | |
| 7 | 6250 | 6890 | 5210 | 4980 | |
| 8 | 6290 | 6540 | 4980 | 5080 | |
| 9 | 6640 | 6960 | 5090 | 4810 | |
| 10 | 6250 | 7220 | 5070 | 4820 | |
| Mean | 6391 | 6940 | 5071 | 4898 | |
| 245.33197 | 276.68674 | 237.92856 | 83.10635 | ||
| Test Case | Experiment | Defect Time (ms) | |||
| PSO | OLPSO | GA | MGA | ||
| 6 | 1 | 8060 | 8740 | 6240 | 4960 |
| 2 | 8070 | 8270 | 6180 | 4930 | |
| 3 | 8010 | 8460 | 6120 | 4810 | |
| 4 | 8310 | 8090 | 6070 | 4990 | |
| 5 | 8570 | 8750 | 5920 | 4820 | |
| 6 | 7460 | 8130 | 5970 | 4850 | |
| 7 | 8060 | 8500 | 6140 | 4910 | |
| 8 | 8150 | 8130 | 5850 | 4810 | |
| 9 | 7630 | 8300 | 6040 | 4870 | |
| 10 | 7930 | 8510 | 6010 | 4870 | |
| Mean | 8025 | 8388 | 6054 | 4882 | |
| 313.20032 | 242.93574 | 120.75687 | 63.56099 | ||
| Test Case | Experiment | Defect Time (ms) | |||
| PSO | OLPSO | GA | MGA | ||
| 9 | 1 | 14000 | 14550 | 12000 | 10520 |
| 2 | 13500 | 14470 | 11700 | 10540 | |
| 3 | 13700 | 14270 | 11990 | 10310 | |
| 4 | 13820 | 15050 | 12090 | 10390 | |
| 5 | 13620 | 14520 | 12130 | 10330 | |
| 6 | 14040 | 14720 | 11840 | 10400 | |
| 7 | 13130 | 14110 | 12020 | 10420 | |
| 8 | 13990 | 14900 | 11680 | 10490 | |
| 9 | 13320 | 14350 | 11650 | 10510 | |
| 10 | 13610 | 14610 | 11660 | 10410 | |
| Mean | 13673 | 14555 | 11876 | 10432 | |
| 301.95842 | 283.63709 | 190.85771 | 79.97221 | ||
| Test Case | Experiment | Defect Time (ms) | |||
| PSO | OLPSO | GA | MGA | ||
| 12 | 1 | 474990 | 480370 | 464330 | 465450 |
| 2 | 475930 | 480160 | 472360 | 466490 | |
| 3 | 474730 | 480590 | 471850 | 465080 | |
| 4 | 475750 | 481480 | 472240 | 465140 | |
| 5 | 476000 | 479630 | 473200 | 465290 | |
| 6 | 476040 | 480020 | 472880 | 465340 | |
| 7 | 475470 | 479790 | 472210 | 466460 | |
| 8 | 474220 | 480230 | 471870 | 465030 | |
| 9 | 476830 | 480350 | 472110 | 465130 | |
| 10 | 475370 | 479750 | 472880 | 465880 | |
| Mean | 475533 | 480237 | 471593 | 465529 | |
| 749.53392 | 533.18852 | 2591.52486 | 555.14662 | ||
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Evolutionary Computing Approach to Optimize Superframe Scheduling on Industrial Wireless Sensor Networks
Gandeva Bayu Satrya, and Soo Young Shin,
IT Convergence Engineering, Kumoh National Institute of Technology
Abstract
There has been a paradigm shift in the industrial wireless sensor domain caused by the Internet of Things (IoT). IoT is a thriving technology leading the way in short range and fixed wireless sensing. One of the issues in Industrial Wireless Sensor Network-IWSN is finding the optimal solution for minimizing the defect time in superframe scheduling. This paper proposes a method using the evolutionary algorithms approach namely particle swarm optimization (PSO), Orthogonal Learning PSO, genetic algorithms (GA) and modified GA for optimizing the scheduling of superframe. We have also evaluated a contemporary method, deadline monotonic scheduling on the ISA 100.11a. By using this standard as a case study, the presented simulations are object-oriented based, with numerous variations in the number of timeslots and wireless sensor nodes. The simulation results show that the use of GA and modified GA can provide better performance for idle and missed deadlines. A comprehensive and detailed performance evaluation is given in the paper.
Index Terms:
IoT, superframe, IWSN, ISA 100.11a, scheduling, optimization, genetic algorithm, evolutionary programming.
I Introduction
IoT is an innovative paradigm that developed rapidly in industrial wireless systems [1][2]. For instance, when IoT is applied in a smart factory scenario, an intelligent automated production system can be tracked through wireless sensor nodes, outputs can be monitored, and subsequent optimization in production can be possible for the future. Industrial wireless sensor networks consist of hundreds of sensor nodes, and the adjacent sensor nodes can have the same data [3]. With the success of IWSN technology, the functionality and efficiency of wireless technology can be improved. The development of wireless technology has also developed IWSN protocol such as Zigbee, WirelessHART [4], Wireless network for Industrial Automation-Process Automation (WIA-PA) [5][6] and ISA 100.11a [7]. This paper will use ISA 100.11a protocol. The advantage of ISA 100.11a protocol is that it can fulfill industry needs in providing a secure and robust protocol in the communication process when applied in the field [8]. However, according to previous studies, ISA 100.11a still needs some development such as optimizing time allocation for certain devices, delay restriction, and minimizing the packet drop [9].
In ISA 100.11a, the physical layer and the lower data link layer use the IEEE 802.15.4, while the upper data link layer implements TDMA (time division multiple access)[3][10][8]. Based on IEEE 802.15.4, ISA 100.11a can operate either in a beacon enabled or a non-beacon enabled mode. The non-beacon enabled mode is useful for light traffic between the network nodes. The channel access and contention are performed using an unslotted CSMA-CA mechanism. In a beacon enabled network, the coordinator sends periodic beacons containing information that allows network nodes to synchronize their communications, and information on the data pending for the different network nodes. Together, all of the timeslots form what is called a superframe [9]. The timeslot durations are 10 ms to 12 ms in communication networks. Thus, the schedulability of superframes becomes an interesting research topic to be investigated.
Research in recent years particularly in IWSN scheduling problems has been developed in various aspects. IETF created the 6TiSCH working group to standardize the scheduling in the IEEE 802.15.4e TSCH networks (Request for Comments-RFC 7554). In this RFC, authors discussed one of nine problems and goals in [11] which scheduling mechanisms can be envisioned and could possibly coexist in IEEE 802.15.4e. Saifullah et al. [12] proposed effective schedulability tests for WirelessHART networks based on a branch-and-bound technique which provides safe and reasonably tight upper bounds of the end-to-end delays of real-time flows. Duquennoy et al. [13] proposed Orchestra (Robust Mesh Networks Through Autonomously Scheduled TSCH) which is to provision a set of slots for different traffic planes, and to define the slots in such a way that they can be automatically installed/removed as the RPL (routing protocol for low-power) topology evolves. Xu et al. have proposed an optional polling slots allocation method in the subnetworks to maximize the reliability and integrity of communication on WSN [14].
Furthermore, Dobslaw et al. introduced SchedEx, a generic scheduling algorithm extension which gives reliability guarantees for topologies with guaranteed lower-bounded node-to-node packet reception rates in WSN [15]. Zhang et al. have proposed distributed and dynamic TDMA channel scheduling (DDCS) algorithm in WIA-PA network with multiple channels. DDCS algorithm aims to overcome interference among clusters by adopting an adaptive channel scheduling mechanism which performs channel scheduling according to actual channel conditions [16]. In addition, Dinh & Kim have evaluated the ISA 100.11a CSMA-CA by simulation [17], and Rezha & Shin have evaluated the ISA 100.11a on three metrics, namely throughput, average delay, and energy consumption (superframe) [7]. Research and analysis of ISA 100.11a is still necessary for evaluation, and analysis is needed to assist various levels of the Quality of Service (QoS) [9].
Oka and Shin [10] proposed a DMS (deadline monotonic scheduling) that reduces the overhead without degrading the network performance using off-line scheduling rules and all of tasks were assumed to have static priority. Paper [10] also showed that DMS can only reduce the number of beacons and can optimize miss-deadline for a limited 500ms simulation duration. In this paper, we showed that the DMS [10] method in optimizing superframe scheduling still has a miss-deadline of 500ms-750ms. The problems we addressed are timeslot optimization on superframe, avoiding miss-deadline, and using evolutionary algorithms approach for RTS scenarios.
We propose that using evolutionary computing approach, which are PSO, Orthogonal Learning PSO (OLPSO), GA, and Modified GA (MGA), can optimize superframe on IWSN. PSO is part of swarm intelligence where each particle has a position vector and velocity vector. PSO [18] consists of a swarm of particles, where it is initialized with a population of random solution candidates while GA aims to mimic the approach of natural evolution in computing. GA has three main components, namely selection, crossover, and mutation which is very different from PSO. It was indicated that in [18] GA was very suitable for discrete cases, and since the problem in timeslot optimization on IWSN is also a discrete case, we propose the use of GA that is a metaheuristic inspired by the process of natural selection.
A modified version of GA by combining GA with DMS is presented, where DMS is used as an input to GA by using the shortest deadline for timeslot scheduling. Once the shortest deadline is retrieved through sorting, we need to enhance the timeslot by using the processes of GA namely selection, crossover, and mutation, to provide the best offspring (solution). In practical, GA directly evaluates each candidate solution using its defect time and calculates the corresponding fitness value. Then, by using object-oriented simulations, we compare EDF (earliest deadline first) [19], DMS [10], PSO, OLPSO, GA, and MGA with variations on time duration and sensor nodes. We list our contributions as follows:
We demonstrate the drawback of DMS algorithm, which follows the network model and system model of ISA 100.11a. 2. 2.
We propose an optimal GA for optimizing superframe scheduling in IWSN with detailed configuration. 3. 3.
We define algorithms that are the transformation of TDMA based on the genetics form (genotype and phenotype) and simulated it based on object-oriented programming. 4. 4.
We evaluate and prove that GA and MGA outperform the existing benchmark techniques (EDF, DMS, PSO, and OLPSO).
The rest of this paper is organized as follows. Section II will review relevant literatures. Section III discusses the design of the proposed system that uses GA based on ISA 100.11a standard. Section IV presents the case study and simulation results. Section V consists of the analysis and discussions. Section VI suggests future work and extensions for this paper. Finally, section VII provides the conclusion and future work from this paper.
II Literature review
II-A Scheduling in ISA 100.11a
Dewanta et al. [20], proposed message scheduling on the dedicated time slot of ISA 100.11a to satisfy real time property. A superframe is designed to accommodate periodic real time (PRT) messages, aperiodic real time (alarm) messages, and non-real time (NRT) messages. Superframe will be divided into dedicated time slot (DTS) which is used to send PRT messages and shared time slot (STS) which is used to send alarm and NRT messages. This approach is achieved by employing superframe and multi-superframe to accommodate those PRT-messages without neglecting NRT and alarm messages. However, the results show that using the message scheduling technique requires more beacons in the system and increases overhead.
Oka and Shin [10] proposed a DMS’s scheme that has been used to check schedulability of superframe with beacon-enabled mode in ISA 100.11a networks. A new application of deadline monotonic scheduling is proposed to check and test superframe scheduling and to reduce the overhead without degrading the network performance in ISA 100.11a IWSN. The simulation results showed that the proposed method required fewer beacons, compared to message scheduling. However, that scenario only works in the case of four sensors and static parameters (release, computation, deadline, and periodic time).
A different approach from Nhon and Kim proposed two new message scheduling methods on shared timeslots of the ISA 100.11a standard to enhance real-time performance, namely, traffic-aware message scheduling (TAMS) and contention window size adjustment (CWSA) [21]. In TAMS, instead of competing to transmit sporadic messages in consecutive cycles, end-nodes are divided into groups, which then access the channel in specific cycles when the probability of timeslots getting involved in collisions exceeds a specified threshold. Conversely, in CWSA, the contention window is adjusted when the probability of timeslots getting involved in collisions exceeds the threshold. The results of simulations conducted indicate that these two proposed methods provide performance improvements in terms of success probability and end-to-end delay. However, this paper can only be applied to star topologies and limited simulation time.
II-B Artificial intelligence based
Meanwhile using the artificial intelligence approach, Norouzi et al. investigated GA as a dynamic technique to find optimum states for lifetime and energy consumption of WSNs [22]. These two competing objectives have a deep influence over the service qualification of networks and according to recent studies, cluster formation is an appropriate solution for their achievement. To transmit aggregated data to the Base Station (BS), logical nodes called Cluster Heads (CHs) are required to relay data from the fixed-range sensing nodes located on the ground to high altitude aircraft. The simulation diagrams indicate that using a GA-based cluster formation algorithm extends the lifetime of the network through equally distributed clustering. However, in this paper there is no packet priority scenario and the environment used was WSN.
Ziari et al. [23], proposed a hybrid of GA and PSO based on TDMA Scheduling in wireless sensor networks. Protocol TDMA in these networks is a suitable one for saving nodes energy. In this protocol, time was divided into time slots of equal length. The purpose of TDMA scheduling is to assign time slots into nodes in a way that minimizes the total number of time slots for sending data packages and energy consumption. However, in this paper there is no packet priority scenario and the environment used was WSN.
Other papers state that GA has been successfully applied in WPS (Weapon Production Scheduling) in the category of flexible job shop scheduling [24]. Furthermore, GA has also helped in container handling operations at the Patrick AutoStrad container terminal located in Brisbane Australia [25]. Along with those four papers that used GA as their basis [24][25][22][23], this paper would also apply the ISA 100.11a using GA in the optimization of packet scheduling of multiple sensors with different priorities and deadlines as the most important attribute.
III Design topology and algorithm
III-A Network model
Our proposed scheme is an improvement and development of [10]. For network modeling adopted from [10], there has been little development of the wireless sensor nodes and the amount used is up to ten nodes. This paper focuses on single-channel and adopts star networking topology, as seen in Fig. 1 which is the maximum area of a gateway is and sensor nodes vary from node-1 until node-n. Each wireless sensor node represents different sensors and information as shown in Table I. The main problem that we want to show is that each wireless sensor node has periodic transmission and deadline generated by the node due to the unpredictable bursty nature of the traffic. The use of genetic algorithms to solve the problems of scheduling is based on the deadline of each sensor. A service network model is created to serve a monitoring system in industrial areas. As described in [10], we also adopt a standard for industrial wireless namely ISA 100.11a as a sample case study.
Table I is the detailed information of each node on the network topology. The scenario starts data traffic on the gateway which acts as a coordinator that will send a beacon periodically on the network. We assume that is a periodic message for each node, . is a periodic message for gateway that send beacons. is a periodic message for node 1. In this case study, the beacon is the highest priority in the calculation of deadlines. In short, we place a beacon as the top priority in the calculation of the conditional expression.
III-B Review of DMS method in [10]
In Oka & Shin’s paper, DMS (as can be seen on Fig. 2) is used for reducing the number of beacons, which is an improvement on the method used by the message scheduling by Dewanta et al. The scenarios used in the paper [10] were only valid for one superframe, where one superframe consists of 25 timeslots (ts) and 1 ts = 10ms. Table II shows three superframes, (message for the nodes 3) is delayed between the second and third superframe. In accordance with the data in the Table I, node 3 has 30 ms of computation time and 100 ms of deadline time. Hence, node 3 should be executed at ts-52 or ts-53. Ts-54 is the fifth period (the allocation of subsequent periods) for node 3. As seen in Table II with DMS, node 3 was only executed twice, while it should be executed 3 times in one period. In summary, node 3 was delayed in the second superframe (ts-52 and ts-53).
Based on this outcome (as presented in Table II), DMS is not schedulable for the superframe scheduling test. Hence, DMS is not suitable when applied to a real-time case. In addition, on IWSN, especially ISA 100.11a such systems will be run for 24 hours every day. The proposed solution of this paper uses genetic algorithm combined with DMS to build a more intelligent IWSN. It will compare and evaluate EDF, DMS, traditional GA, traditional PSO and the latest version of PSO which is OLPSO.
III-C Proposed algorithm
According to [26]’s recommendations in the book entitled ”Adaptation in Natural and Artificial Systems”, any problems in the form of adaptation can be formulated in biological processes. Based on this, we are trying to modify GA by adding DMS algorithm as an aid to solve problems in the IWSN superframe scheduling. Our proposed MGA is presented in Algorithm 1 and the design flowchart in Fig. 3. We put the DMS at the beginning of population establishment. The best results of DMS which are sorted by the smallest deadline will be the input of GA (as can be seen in Algorithm 1 step 6). Reasons for modifying GA is that the best population will be acquired from the best parents in the biological process. It is expected to assist in optimizing the timeslots and missed deadlines in a superframe scheduling case (as illustrated in Algorithm 1 step 14). The notations used in Algorithm 1 are as follows. is the population index, is an individual that has been obtained from DMS, is a collection of individual survivors in the index , and is a collection of offspring individuals in the index .
III-C1 Genetic representation
The first stage in building a GA is to decide the genetic representation for the population along with the candidate solution to a problem. It involves the design of genotype and phenotype. The first step from the point of view of automated problem-solving is to decide how possible solutions should be specified and stored in a way that can be manipulated by a computer. We say that objects forming possible solutions within the original problem context are referred to as phenotypes, while their encoding, that is, the individuals within the EA (Evolutionary Algorithms), are called genotypes.
In many cases, there will be plenty of choices and to get proper representation is the hardest thing in designing GA. In this case study, we use integer representation as shown in Fig. 6 and we also define the values in Table I. Individuals are represented in integer. The integer in each gene expresses the index number of the nodes, in addition to the beacon, the length of genes (number of timeslots - timeslots for beacon), and the position of the gene sequence signifies the execution.
Based on previous exposure, the gene length = 4 for slots for the beacon (B) = 0, i.e. at the first slot, and the possible values that can be filled on each gene between the grades 0-3 are declared node 0 for index 0, the nodes one for index 1, and so on. So, that individual representation is as shown in Fig. 4.
III-C2 Fitness function
Fitness function is the function given to calculate the quality of one (or multiple) genotypes. The role of this function is to represent the fitness of the population requirements that should describe the optimal convergence rate. The population must adapt to meet the criteria indicated by the evaluation function. Simplifying the real world evolution concepts, individuals with high fitness value will survive, while those with a low fitness value will die. Each feasible solution can be characterized by the fitness value for the problems.
In this case, we want the best scheduling. We define that the best schedule has the smallest defect time (). Defect time is the sum of idle time () and lateness time (). Genetic representation does not apply to the beacon, because according to the requirements of data transfer on the IEEE 802.15.4 the beacon is a particular priority in the synchronization phase [9]. Based on Eq. 1 if the defect time = 0, where there are no idle and missed deadlines, then the value of fitness in Eq. 2 is 1. The expected value of fitness is no delay or idle in each timeslot.
[TABLE]
So, the fitness value is
[TABLE]
Fig. 5 is the implementation of ’defect time’ calculation on GA as a fitness value. Based on Eq. 1, which calculates the missed deadline values, different parameters are considered such as for release time, for deadline time, for periodic time, and for computation time (as shown in Table I). Now to calculate these missed deadlines, this paper follows the theorem proposed in [10] which states that superframe can only be scheduled if comply to .
The N and B notations are nodes to be executed and beacon, respectively. Completion time is the total of time needed for the system for executing nodes. Based on [20] beacon timeslot is used by gateway to inform timeslot occupation to all nodes which has been illustrated in Fig 4. More explanation for calculating the defect time can be seen in Fig 5. First, initially we set i = 0 and slot = 1. Second, if the beacon is ready and has not been finished executing, then execute beacon on the current timeslot. Third, If node at the is ready and has not been finished executing, then the node will be executed on the current timeslot and increment i. Fourth, otherwise, set idle on the current timeslot. Fifth, Check if there is tardiness on the node. Sixth, increment the timeslot. Seventh, If all genes have been executed, then end the process. Otherwise, go to second step again.
III-C3 Encoding genotype
Based on the case presented in individual representation, if there are individuals, for example , then the resulting schedule is as shown in Fig. 6.
III-C4 Recombination
Recombination is a process of establishing a new individual for the information contained in the two (or more) parent solutions. Recombination is often also called a crossover, which is motivated by the analogy of biology. Recombination operators are applied based on the crossover rate . Suppose two elected parents and two offspring are produced in the recombination probability of two parents with a . In other words, copying parents with probability . Integer representation could be using one-point crossover, n-point crossover and uniform crossover [27]. All of these types, will be tested on this system. Not all of the chromosomes in a population will sustain the process of recombination. The possibility of a chromosome sustaining the recombination process is based on the probability of crossover that has been predetermined.
III-C5 Mutation
The mutation process occurs after the process of recombination by selecting chromosomes that will be mutated randomly, and then determining the point of mutation in the chromosomes randomly. The number of mutated chromosomes will be calculated based on the probability of mutation that has been predetermined. Selecting the position of the mutated genes, can be done by generating a random integer number, between 1 to total_gen. If the random number generated is smaller than the variable mutation_rate then it selects the position as a sub-chromosome to be mutated. For example if is set at 10%, it is expected that 10% of a total_gen will be mutated.
Integer representation, can use the ’random resetting’ and ’creep mutation’ which will mutate each gene independently with probability predetermined by the user. These systems will use the ’random resetting’ because ’creep mutation’ is only used for ordinal attributes whereas this case is in the form of cardinal attributes. For further explanation about ordinal and cardinal attributes refer to [27].
III-C6 Termination condition
GA and other EA are stochastic and mostly no warranty will achieve optimal value, there could be a situation that this condition will never be reached, and the algorithm can not be stopped [27]. Therefore we have to design and predict if these conditions will occur and how to create a condition in which the algorithm will stop. In our system, searching for a new individual process will stop if the fitness value does not increase again on 1000 generations.
IV Case study and simulation
We have already explained DMS in sub-section III-B. In this section, we focus on GA and MGA. We also compare all algorithms with EDF as other representative of non-metaheuristic. Based on the details of the parameters in Table I and the topology in the Fig. 1, the following is a configuration of a GA that we used. Explanation of the terms we use in Table III are given in sub-section III-C above. As a comparison in EA classification we use PSO with 50 particles as an evaluation. During the iteration time t, the update of the velocity from the previous velocity to the new velocity is determined by Eq 3. The new position is then determined by the sum of the previous position and the new velocity by Eq. 4.
[TABLE]
[TABLE]
where,
[TABLE]
For a more comprehensive comparison, OLPSO will be used as the latest development of the PSO [28][29] family. In OLPSO, the new mechanism is introduced as the OED (orthogonal experimental design) process. The processes at OED replace the learning processes in traditional PSO with calculation as follows:
[TABLE]
where, the current particle is between its personal best position and its neighborhood’s best position . Vector stores only the index of and , not the copy of the real position values. That is, only indicates that the dimension is guided by or . The OLPSO simulations still used 50 particles and 1000 iterations.
These simulations were run using Java [30] with JDK 1.8.0_151 as the implementation of its development. For evolutionary algorithms and the genetic programming library, we used Jenetics (jenetics.io). Whereas for the programming editor, we have used NetBeans 8.2 64bits for Windows. The simulations that have been built used a variation of timeslot numbers i.e. 100, 200, and 500. For nodes count, we used 1 node as the beacon while the number of wireless sensor nodes vary between 4, 7, 10, and 100 nodes.
Results from the test with four sensor nodes and one beacon were explained in Table II above on DMS review. We proved that DMS failed to handle miss deadline on the third superframe. Here were some sample results for 7, 10, and 100 sensor nodes. The total results of this experiment would be presented in section V.
IV-A Simulation result for 7 nodes
Below are four results (Figs. 7, 8, 9, and 10) of 60 scenarios that were carried out. This experiment used one beacon, seven wireless sensor nodes, 200 ts (or 2000ms). Fig. 10 is a simulation of results using MGA. When compared with traditional PSO, OLPSO and GA, MGA produces much better defect-time performances.
Basically, PSO has a different character from GA. In PSO, particle refers to one solution which according to it is better, then it will change its direction. On the contrary, if there is no solution found, then it will keep the previous vector. This timeslot optimization case is a combinatorial and discrete case. If we look at the characteristics of PSO which is continuous, PSO will convert its iteration results into discrete form. However, the characteristics of GA are very suitable for combinatorial cases, if a bad gene were found, then it can do selection, mutation, or crossover.
The characteristics of OLPSO are slightly different with traditional PSO in term of searching the best position with OED (orthogonal experimental design). As seen in Fig. 8, the defect time of OLPSO is better than that of PSO but worse than the defect time of EDF, DMS, GA and MGA. This is because of too many particles and generations in narrow searching space that is 7 sensor nodes. In other words, OLPSO is not suitable for simple cases with low number of sensors and small timeslots.
In addition, we make modifications to the GA by combining DMS with GA or what we call MGA. Based on the simulation, we found that the MGA is much better than conventional DMS or conventional GA. This is because in the evaluation for population, we combined the output of DMS as a new individual for GA. This means that GA has a population with a good fitness, and so when those good individuals are mated (crossover) with other individuals, the results would be better than before the mating.
IV-B Simulation result for 10 nodes
The following Figs. 11, 12, 13, and 14 are the four scenarios’ test results out of 60 scenarios’ tests that were carried out. This experiment used one beacon, 10 wireless sensor nodes, 500 ts (or 5000 ms). With the same description as in the previous explanation, in this test, the number of nodes given were more complex. The purpose of this test is to determine how well the GA is able to perform optimization on the superframe scheduling. As previously explained, the parameter for sensor nodes such as release time, computation time, deadline time, and periodic time will be generated randomly. In short, GA and MGA are capable of handling sensor data in any quantity, with the condition to keep watching the fitness values and parameters of the GA that will be set (see Table III). This way, it can help to discover a better solution for GA that is categorized with stochastic algorithms. Stochastic is a random occurrence where the appearance of an individual cannot be predicted [27], however, when measured from the distribution throughout the observation, it will usually follow a pattern. From here, it requires accuracy in the individual selection, mutation and crossover.
Fig. 11 shows that PSO was not optimal in optimizing the timeslot because there were still many empty ’ts’. If we look at idle time, PSO has 266 ts, GA has 105 ts, and MGA has 3 ts. Idle time is one of the evaluation metric of fitness value in the most optimal calculation. In these cases, the timeslot showed that PSO may easily get trapped in local optima which led to bad solution. Besides, MGA has been proved to be the best for combinatorial cases like this compared to PSO and GA.
However, the experiment using 10 SN showed that OLPSO is worse than EDF, DMS, PSO, GA, and MGA. Without the loss of generality, the mechanism on OLPSO, based on Equation 5, uses floating point arithmetic. As explained in X, is a guidance vector consists of combinations of and . In every generation, particle i will update its own velocity and position. To the best of authors knowledge, in the OLPSO algorithm, when or changes to a better position, the new information will be adopted immediately by the particle through .
IV-C Simulation result for 100 nodes
Figs. 15, 16, 17, and 18 show a case study with a sufficiently large number of sensors that is 100 SN. We test this 100 SN in 3 categories 100 ts, 200 ts, and 500 ts. This sub-section would describe the 200 ts for 100 SN. Fig. 15 was the result for PSO, Fig. 16 was the result for OLPSO, Fig. 17 was the result for GA, while Fig. 18 was the result for MGA.
Metaheuristic algorithms are able to find the optimum solution in a search process in real time to generate better solutions [18]. We used PSO and GA in this paper. In addition, we made improvements for GA that we called the MGA. PSO in this scenario is still less able to provide an optimum solution when working with timeslots. The idle time value for PSO of 11 ts (110ms) is far more than GA 8 ts (80 ms) and MGA 3 ts (30ms). Indeed our fitness calculations are not only based on idle time, but also the number of miss-deadlines. PSO is still less than optimal for case 100 SN.
For the large scale experiment in this scenario which used 100 SN, the OLPSO still performed with almost the same performance as in the 10 SN scenario. It also enhanced the evidences that OLPSO is less suited for superframe scheduling case on ISA 100.11a. This is due to the characteristics of OLPSO which are vector based as in traditional PSO while this case is TDMA-superframe based (discrete based). Although OEM was proposed to solve problems on local optima, in this case OLPSO still produced a premature coverage that showed the existence of some idle timeslots.
From Fig. 17 and 18, GA and MGA are more adaptive to this combinatorial and discrete chassis. In accordance with the explanations in section I, PSO and GA are the same metaheuristic algorithms, but have different search space solutions. For GA in each iteration there will always be an optimum solution, because of the three components (selection, mutation, and crossover). The PSO algorithm uses particles and velocities which follow the direction of the fitness value. However, for case optimization of timeslots on this IWSN, PSO is often hampered in discovering the global optimum solution, and this is seen from the idle-time results, as previously discussed.
V Results and summary
V-A Analysis of defect time
The PSO and OLPSO modeled here consists of a swarm of 50 particles initialized with a population of random candidate solutions. Each particle has a position represented by position vector and a velocity represented by velocity vector. For fitness values, we use as a positive constant, called coefficient of self-recognition component, and as the positive constant, called coefficient of social component. The results from 60 scenarios produced by PSO and OLPSO are better than by DMS, but worse than by GA, because the searching process of global minima on PSO and OLPSO is continuous, while the case of timeslot scheduling on IWSN is a discrete case.
GA is an algorithm which seeks the best solution from the population based on natural gene selection and recombination. The recombination is done in a random process. The result of the defect-time calculation is obtained from crossover and mutation from a few of the best candidates from the population. It really depends on the crossover probability () and the mutation rate () value. In short, the defect-time values heavily depend on the attributes of GA and MGA that will be set or used. Based on our experiments, the optimum configurations for IWSN case study are as shown in Table III.
V-B Analysis of complexity and stability
Figs. 20 and 21, illustrate complexity and stability comparison in terms of memory consumption and processing time respectively. It can be seen that EDF and DMS comparatively demonstrate lower complexity and higher stability, considering its small memory consumption and less processing time. This is because EDF and DMS are non-metaheuristic algorithms. The impact of computational complexity and time stability on the application of evolutionary computing approach in superframe scheduling at IWSN i.e., PSO, OLPSO, GA, and MGA, is explained para wise as follows.
As shown in Fig. 20, which presents the case study of 60 scenarios, GA and MGA demonstrate less complexity compared to PSO and OLPSO. To the best of authors knowledge, there are three reasons behind the lower complexity of GA and MGA. Firstly, PSO and GA have different calculations for producing new population; calculation of PSO is based on speed and direction, whereas GA uses crossover and mutation. Secondly, the process of generating new solutions (offspring) in PSO and GA is based on fitness value, as described in the Sec. III. Lastly, through more insight, it can be seen that PSO always compare its current best solution with the previous one and keeps the best of the two, whereas in GA, there is no process of storing. The GA directly performs crossover and mutation process of the gene that has low fitness.
The stability analysis is used for calculating the processing time of each scenario. As can be seen in Figure 21, GA and MGA have faster processing time than PSO and OLPSO. Some primary reasons causing GA and MGA to have good processing time are detailed as follows. Firstly, because the PSO is vector-based optimization, if one or more of the neighbors assume that the i-th solution (even premature) is best, this is often referred to as trapped within local optima. Secondly, this case study proves that PSO always produce homogeneous solutions (shown in Fig. 15); several generations of defect time referred to the same values in several timeslots. Lastly, the equations of PSO and OLPSO have more detailed parameters in the searching process, but the authors conclude that this feature is not suitable to be implemented on discrete cases. In summary, GA and MGA have better processing time than PSO and OLPSO for scheduling superframe in IWSN.
V-C Validation of the algorithms
There are 12 different types of data scenarios seen in Table IV with each tested with PSO, OLPSO, GA, and MGA respectively. In [18] chapter 9 in particular, it is said that all algorithms belonging to metaheuristics will produce different solutions for each algorithm being executed. Therefore, to ensure validation of all such valid heuristic algorithms the iteration must be repeated between 10 and 100 times. In this paper, repetition of 10 times is used as recommended in [18]. It aims to ensure a high success rate in finding a global minima and that a report of fitness value is not met by chance. For the validation of these four algorithms, several test cases are enclosed in Appendix A. For each test we also calculate the mean and standard deviation () as the measurements.
We do not repeat iterations for DMS and EDF because they are belong to non-metaheuristic methods, which in its calculations use the priority assignment policy [19][31]. If a repetitive iteration was done on DMS and EDF, it will produce the same value, and vice versa on metaheuristic algorithms.
V-D Brief summary of results
Table IV shows the results of all the experiments that have been carried out. With variations in timeslots, wireless sensor nodes, and algorithms that we used, there are 60 experiments in total. Each experiment takes approximately 30 minutes per simulation. The authors propose using GA and MGA for optimizing superframe scheduling on IWSN (especially ISA 100.11a). These proposals are strengthened by comparing EDF [19] & DMS [10] as representatives of non-metaheuristic methods with PSO & OLPSO as representatives of metaheuristic methods. The simulation results show that MGA is better than conventional EDF, DMS, PSO, OLPSO and GA. GA is a metaheuristics algorithm with two components: exploitation for searching and exploration for generating the solutions. Therefore, we need to be careful in setting the parameters and the fitness value.
Based on the three results of analyses and validation of proposed algorithm, we provide conclusions for the experiments of the performance of each algorithm in Table V. The credit score that we provide are categorized as bad, poor, fair, good, or very good. The evaluation was taken based on the average of 12 experiments that have been conducted. To the best of author’s knowledge, GA or MGA can be applied in IWSN especially for smart factory.
VI Future work and extensions
The work presented in this paper is the initial work that has considered GA for scheduling in the industrial networks. Therefore, we have considered a basic scenario for all findings. Since this work is based on heuristic approach, new parameters and environments are required to prove the supremacy of this algorithm in industrial networks with diverse scenarios. Thus, authors have planned to work further on this approach with future directions as mentioned below.
Based on system scenarios that have been established using offline testing, it will be valuable if GA can be applied to the real system. For large-scale testing, it is possible to try it using thousands of sensor nodes and to use more than one gateway. There are still needs of improvisation for defect time, complexity, and stability based on Table IV. The configuration in this paper is specifically for scheduling on the IWSN problems. For other optimization problem, particular configuration of attributes is required to obtain a better solution. Furthermore, it can be used in combination with other optimization algorithms.
VII Conclusion
This paper successfully demonstrated the use of the presented methods for DMS problems in scheduling superframes. As an alternative solution and enhancement to current methods, we recommend the use of GA for optimizing scheduling in IWSN superframes. We have presented GA and MGA by using Java programming for ease of development, and because it is supported by multiple platforms. We have presented PSO and OLPSO as a comparative study with EA. From 60 scenarios tested above, the PSO and OLPSO are not suitable for discrete cases, however PSO and OLPSO are better for continuous cases. Timeslot optimization in IWSN, as used in this paper, is an example of a discrete case. This paper also provides recommendations for the configurations of GA attributes that need to be set. This paper concludes that MGA is the best in optimizing the defect time for scheduling superframes in IWSN, especially in ISA 100.11a. This supports the theory that GA can provide a solution for superframe scheduling problems in IWSN.
Acknowledgment
Acknowledgment.
Appendix A Testing accuracies PSO, OLPSO, GA, and MGA
The 12 scenarios that have been explained in Section V will also be run on these four algorithms. Below are the results of four out of those 12 scenarios, which are scenario 3, 6, 9 and 12.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] L. D. Xu, W. He, and S. Li. Internet of things in industries: A survey. IEEE Transactions on Industrial Informatics , 10(4):2233–2243, Nov 2014.
- 2[2] Z. Bi, L. D. Xu, and C. Wang. Internet of things for enterprise systems of modern manufacturing. IEEE Transactions on Industrial Informatics , 10(2):1537–1546, May 2014.
- 3[3] Márcio S Costa and Jorge LM Amaral. Analysis of wireless industrial automation standards: Isa-100.11 a and wirelesshart. In Tech Magazine , 2012.
- 4[4] Paolo Ferrari, Alessandra Flammini, Mattia Rizzi, and Emiliano Sisinni. Improving simulation of wireless networked control systems based on wirelesshart. Computer Standards & Interfaces , 35(6):605–615, 2013.
- 5[5] IEC. Industrial communication network–fieldbus specifications wia-pa (communication network and communication profile), 2011.
- 6[6] Wei Liang, Xiaoling Zhang, Yang Xiao, Fuqiang Wang, Peng Zeng, and Haibin Yu. Survey and experiments of wia-pa specification of industrial wireless network. Wireless Communications and Mobile Computing , 11(8):1197–1212, 2011.
- 7[7] Fadillah Purnama Rezha and Soo Young Shin. Performance evaluation of isa 100.11a industrial wireless network. IET Conference Proceedings , pages 587–592(5), January 2013.
- 8[8] Fadillah Purnama Rezha, Oka Danil Saputra, and Soo Young Shin. Extending can bus with isa 100. 11a wireless network. Computer Standards & Interfaces , 42:32–41, 2015.
