Keywords

1 Introduction

Internet of things and other intelligent monitoring techniques need sensors to be embedded with the devices under control. The sensor node localization would reduce the signal traffic which otherwise can lead to huge traffic of signals for location estimation and location update [1]. In most of the applications, the sensed information becomes meaningful only with the addition of location parameter [2].

Depending upon the application, the sensor nodes are connected in a topology to form wireless sensor networks (WSNs). The WSNs are used for applications such as forest fire detection, road traffic management, healthcare monitoring, animal habitat monitoring, precision agriculture, disaster management, military surveillance, and environmental monitoring [3].

The locations of sensor nodes can be predicted by analytical method. These methods are complex, and process becomes tedious with scalability of the network. So for this type of complex problems, nature-inspired algorithms are discussed in the literature. Because of the intelligence, robustness, flexibility, and simple implementation, nature-inspired algorithm is preferred [4].

Global positioning system (GPS) can be used for sensor node position detection. But GPS technique would consume more power from energy-constraint WSN. Moreover, every node has to connect with GPS which is costly [5]. This paper deals with a nature-inspired hybrid algorithm known as hybrid genetic algorithm–differential evolution localization algorithm (GADELA). This is a range-based distributed algorithm. A centralized algorithm requires sensor information to be transmitted to a centralized process. Therefore, the energy required compared to distributed algorithm is more. In distributed algorithm, the sensor location information need not be transmitted to a centralized process. Thus, the algorithm is energy efficient as the process is done locally [6]. In range-based algorithm, the distance is calculated by using radio signal strength indicator. The need for any extra hardware is not required for calculating the distance which is required for location estimation technique [7].

2 Localization Problem Modeling

A total of 50 nodes are taken within the solution space, in which 10 are the landmark nodes for which the location information in known priori and the remaining 40 are sensor nodes for which the location has to be found. Using trilateration method, the location of 40 sensor nodes is estimated by using the 10 landmark nodes as shown in Fig. 1.

Fig. 1
figure 1

Trilateration method

This type of estimation follows two steps: First step is the distance calculation, and the next one is the position estimation. The distance calculation is carried out by using the Eq. (1):

$$ {\text{d}}_{\text{ist}} = \sqrt {\left( {({\text{y}}_{\text{est}} - {\text{y}}_{\text{landmark}} )^{2} + ({\text{z}}_{\text{est}} - {\text{z}}_{\text{landmark}} )^{2} } \right)} $$
(1)

The position estimation is carried out by using Eq. (2):

$$ {\text{f}}({\text{y}}_{\text{u}} ,{\text{z}}_{\text{u}} ) = \left[ {\sqrt {({\text{y}}_{\text{est}} - {\text{y}}_{\text{landmark}} )^{2} + ({\text{z}}_{\text{est}} - {\text{z}}_{\text{landmark}} )^{2} } - {\text{d}}_{\text{ist}} } \right]^{2} $$
(2)

The average position estimation is calculated by using Eq. (3):

$$ {\text{f}}({\text{y}}_{\text{u}} ,{\text{z}}_{\text{u}} ) = \left[ {\sqrt {({\text{y}}_{\text{est}} - {\text{y}}_{\text{landmark}} )^{2} + ({\text{z}}_{\text{est}} - {\text{z}}_{\text{landmark}} )^{2} } - {\text{d}}_{\text{ist}} } \right]^{2} /{\text{N}} $$
(3)
  • \( {\text{y}}_{\text{act}} ,{\text{z}}_{\text{act}} \) is the actual y and z positions of sensor node, respectively.

  • \( {\text{y}}_{\text{est}} , {\text{z}}_{\text{est}} \) is the estimated y and z positions, respectively, of the sensor node which does not know the location.

  • \( {\text{y}}_{\text{landmark}} , {\text{z}}_{\text{landmark}} \) is the anchor or landmark of y and z positions, respectively.

  • N is the total sensor nodes.

3 Hybrid Genetic Algorithm–Differential Evolution (GADE) Localization Algorithm

Genetic algorithm (GA) solves nonlinear, nonconvex operation problems. It uses the nature’s concept of survival of fittest. For the localization of sensor node problem, four stages of optimization are carried out. The localization error is optimized, so that optimal localization information is estimated. The four stages are initialization, selection, crossover, and mutation. Initialization of sensor node population is carried out first. Genetic algorithm performs better selection operation and crossover operation. So these operations are carried out by genetic algorithm [8].

Differential evolution performs better mutation. So the mutation operation is carried out by differential evolution (DE). DE has the ability to solve non-continuous and non-differential real-world problems. DE performs better on mutation operation [9]. It mutates vector with other vectors within the given population which are randomly selected. Mutation operation leads to global optimization. So hybrid genetic algorithm and differential evolution would give better optimal location of sensor nodes. So this idea is implemented in this GA-based DE algorithm.

Following is the design procedure for hybrid genetic algorithm–differential evolution localization algorithm:

Step 1:

Control variables of localization of sensor nodes are selected as genes of a chromosome.

Step 2:

Create initial population of sensor nodes.

Step 3:

Find fitness of sensor node location information (chromosomes) by using the localization function.

Step 4:

Select location information using Roulette wheel selection for mating.

Step 5:

Perform crossover operation as in genetic algorithm.

Step 6:

Perform mutation operation as in differential evolution.

Step 7:

Select new population of location of sensor nodes for the next generation.

Step 8:

Repeat steps 4, 5, 6, and 7 for stopping the condition.

Step 9:

Print location estimate.

Design consideration for hybrid GADELA is recorded in Table 1. The flowchart of hybrid GADELA is shown in Fig. 2.

Table 1 Hybrid GADELA design parameters

4 Result Analysis

Hybrid GADELA is used to estimate the location. The outputs of hybrid GADE localization algorithm are shown in Figs. 3, 4, 5, 6, and 7.

Fig. 2
figure 2

Flowchart of hybrid GADE localization algorithm

Fig. 3
figure 3

Output of GADELA for 100 population vector size

Fig. 4
figure 4

Output of GADELA for 80 population vector size

Fig. 5
figure 5

Output of GADELA for 60 population vector size

Fig. 6
figure 6

Output of GADELA for 40 population vector size

The output of GADELA in terms of location error and average localization error is shown in Figs. 3, 4, 5, 6 and 7 for a population vector size of 100, 80, 60, 40 and 20 respectively.

Fig. 7
figure 7

Output of GADELA for 20 population vector size

The performance analysis of hybrid GADE localization algorithm with localization function is presented in Table 2. It presents the accuracy and time complexity of the hybrid algorithm for various population vector sizes under consideration with localization function. Similarly, Table 3 shows the accuracy and time complexity of the hybrid algorithm for various population vector sizes under consideration with average localization function. By comparison, it is found that the accuracy increases and the time complexity performance is better with the increase in population vector size. And also the hybrid GADE localization algorithm performs better with accuracy and time complexity if it uses average localization function instead of simple localization function.

Table 2 Performance analysis of hybrid GADE localization algorithm with localization function
Table 3 Performance analysis of hybrid GADE localization algorithm with average localization function

5 Conclusion

The hybrid GADELA is analyzed, designed, and implemented. In general, the algorithm shows better accuracy and it has better time complexity. The algorithm performs well in terms of accuracy and time complexity as the population vector size is increased. Further by using average localization function, the performance is further enhanced to get better accuracy and time complexity. The performance comparisons are provided. A careful selection of design parameters and better hybrid techniques might lead to improved performance and estimation accuracy.