Next Article in Journal
New Considerations for Collecting Biomechanical Data Using Wearable Sensors: How Does Inclination Influence the Number of Runs Needed to Determine a Stable Running Gait Pattern?
Previous Article in Journal
An Electrical Capacitance Array for Imaging of Water Leakage inside Insulating Slabs with Porous Cells
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Performance of Elephant Herding Optimization and Tree Growth Algorithm Adapted for Node Localization in Wireless Sensor Networks

1
Faculty of Informatics and Computing, Singidunum University, Danijelova 32, 11010 Belgrade, Serbia
2
Faculty of Organizational Sciences, University of Belgrade, Jove Ilica 154, 11010 Belgrade, Serbia
*
Author to whom correspondence should be addressed.
Sensors 2019, 19(11), 2515; https://doi.org/10.3390/s19112515
Submission received: 31 March 2019 / Revised: 18 May 2019 / Accepted: 20 May 2019 / Published: 1 June 2019
(This article belongs to the Section Sensor Networks)

Abstract

:
Wireless sensor networks, as an emerging paradigm of networking and computing, have applications in diverse fields such as medicine, military, environmental control, climate forecasting, surveillance, etc. For successfully tackling the node localization problem, as one of the most significant challenges in this domain, many algorithms and metaheuristics have been proposed. By analyzing available modern literature sources, it can be seen that the swarm intelligence metaheuristics have obtained significant results in this domain. Research that is presented in this paper is aimed towards achieving further improvements in solving the wireless sensor networks localization problem by employing swarm intelligence. To accomplish this goal, we have improved basic versions of the tree growth algorithm and the elephant herding optimization swarm intelligence metaheuristics and applied them to solve the wireless sensor networks localization problem. In order to determine whether the improvements are accomplished, we have conducted empirical experiments on different sizes of sensor networks ranging from 25 to 150 target nodes, for which distance measurements are corrupted by Gaussian noise. Comparative analysis with other state-of-the-art swarm intelligence algorithms that have been already tested on the same problem instance, the butterfly optimization algorithm, the particle swarm optimization algorithm, and the firefly algorithm, is conducted. Simulation results indicate that our proposed algorithms can obtain more consistent and accurate locations of the unknown target nodes in wireless sensor networks topology than other approaches that have been proposed in the literature.

1. Introduction

As an emerging paradigm of networking and computing, wireless sensor networks (WSNs) have been relevant and applicable in diverse fields such as medicine, military, environmental control, climate forecasting, surveillance, etc. Consistent development and advances in networks have significantly extended and enabled broad application of WSNs. Recently, WSNs have been integrated with other concepts, like with the concept of the internet of things (IoT) [1].
A WSN is a network infrastructure that consists out of vast number of minuscule, diminutive, inexpensive autonomous devices denoted as sensor nodes, which monitor and detect the environment in order to compile data [2]. The data which is collected from the environment is afterwards sent to the sink node, a destination where data can be processed locally or redirected to other networks for different uses [3]. Due to their accessible deployment, node communication, data transfer, and self-organization, WSNs have many advances and usage, however, they also experience some challenges.
There are numerous challenges in WSNs’ implementation process, such as node localization, coverage, energy consumption of sensor nodes, data routing issues, etc. Despite all of these challenges and issues, the most significant one is determining the location of sensor nodes. In order for data to be effectively collected from the environment, the locations of all sensor nodes ought to be known and valid. If altered, the data cannot be relevant for other utilization and processes. Because of the terrain deployment and different outdoor climates and indoor environments, some sensor nodes cannot be reached, and for that problem there has to be a communication and connection structure where at each moment all sensor nodes are visible and obtained for collecting and transferring data for future use. There are some approaches that consider using global positioning system (GPS) for each sensor node that is deployed, but it can result in malfunction of the nodes, energy consumption for data transfer and node usage, as well as cost and size.
Considering these challenges and deployment structure in environment that is monitored, the preferred alternative is to localize deployed nodes. The WSNs localization problem can be defined as the process of finding exact locations of the unknown target sensor nodes that are randomly deployed in the monitoring environment by using the existing precise locations of sensor nodes, denoted as anchor nodes, which are utilized to obtain the distance and positions of target nodes with methods such are triangulation [4], time of arrival (ToA) [5], radio signal strength (RSS) [6,7,8], angle of arrival (AoA) [9], etc. In most cases, anchor nodes are equipped with GPS system and their location can be precisely determined. For this type of GPS and non-GPS sensor nodes, many localization algorithms and methods exist, and they can be classified as range-based and range-free approaches [10]. As its name implies, range-based localization algorithms utilize distance assessment and/or angle-based techniques between unknown target nodes and anchor nodes, whose positions are known. When the distance between unknown target nodes and anchor nodes is assessed, the triangulation (or trilateration) techniques can be applied to find coordinates of unknown target nodes. Range-free localization algorithms are based on topological data and could provide more precision in finding the positions of the target nodes. However, previously conducted research showed that these algorithms are not affordable and economic in practical implementations [11].
Since the WSNs are often deployed in indoor environments that contain walls, interference, multi-path effect, humidity and temperature variations, it is important to emphasize significance of node localization in such surroundings. In such scenarios, sensors could find their positions inside a floor of a building using wireless local area network (WLAN) technology [6]. In this area, an extensive research has been performed by the prominent authors, who have developed state-of-the-art approaches for self-location of wireless sensors in indoor environments [6,12,13].
The goal of node localization is to obtain geographical coordinates for all distributed sensor nodes which locations are unknown in the monitoring environment. Following [14,15], the problem which is considered in these papers consists of WSN with sensor nodes randomly deployed in two-dimensional (2D) monitoring environment. Each distributed sensor node has a transmission range r. The WSN can be defined as an Euclidean graph G = ( V , E ) , where V represents the group of sensor nodes ( i , j ) E , while the distance between the i-th and the j-th sensor node is r. Unknown target nodes are denoted as the set of M, and localized nodes, whose positions are acquired with localization technique, are represented as the set of L. Anchor nodes are defined as set N, with positions ( x n , y n ), for all n N . The goal of the localization problem is to find the positions ( x m , y m ) of as many as possible target nodes m M , where unknown target nodes are resolved into a localized L set of nodes.
The node localization problem belongs to the group of NP-hard optimization, due to its complexity and many instances [3,16]. Since deterministic algorithms could not solve NP hard optimization problems within reasonable computational time, non-deterministic (stochastic), metaheuristics methods can be employed. Despite of the fact that the optimal solution could not be assured, when implemented, metaheuristics methods can achieve a suboptimal acceptable solution within a suitable time-frame.
As a subgroup of metaheuristics algorithms, swarm intelligence approaches simulate groups of wide variety of organisms from the nature, such are flock of birds, hives of bees, colonies of ants, groups of bats, herds of elephants, etc., by following natural principles. These natural principles are based on group intellectual communication not on individual, because the measure of the intellectual resourcefulness is seen through group unification, not as an individual entity. Swarm intelligence metaheuristic algorithms are population-based and iterative search methods that utilize positive feedback, negative feedback, multiple interactions, and fluctuation among individuals in the search process [17].
By analyzing available sources from the literature, it can be seen that the swarm algorithms are able to obtain promising results in the domain of WSNs node localization [15,16,18]. The research that is presented in this paper is aimed towards achieving further improvements in solving the WSNs localization problem by applying swarm intelligence algorithms. This also represents the basic focus of this paper.
To achieve further improvements in unknown sensor nodes localization in WSNs topology, in terms of localization accuracy and precision, we have improved existing versions (implementations) of the tree growth algorithm (TGA) and the elephant herding optimization (EHO) swarm intelligence metaheuristics (EHO and TGA metaheuristics were devised by Wang and Cheraghalipour, respectively, and as such they existed prior to our version of these approaches). We have applied proposed improved swarm algorithms in solving the node localization problem in WSNs and enhanced results that have been previously obtained by other swarm intelligence approaches that have been tested on the same localization problem instance. When tackling node localization, we have included a multi-stage localization approach, which indicates that all unknown sensor devices are localized in multiple stages of the algorithm’s execution.
According to the literature survey, there are no previous implementations of any TGA based algorithm for the node localization problem in WSNs, while the original EHO has been previously adapted for tackling similar (not the same) problem instances [4,19].
The scientific contribution of this paper is twofold: improvements in solving the WSNs localization problem are established and the original versions of the TGA and EHO swarm intelligence metaheuristics are improved.
According to the above statements, the basic research question that is addressed in this paper can be formulated as follows: “Is it possible to achieve further improvements in solving the WSNs localization problem by applying swarm intelligence metaheuristics?”.
The details of all algorithm’s implementations, as well as the details of the control parameters’ adjustments and experimental conditions, are fully provided in this paper, so the researcher who wants to implement proposed approaches and to run simulations has more than enough information to do this on her/his own.
The rest of the paper is organized as follows. In Section 2 we have secluded a review of swarm intelligence metaheuristics and its applications in the domain of WSNs. Section 3 presents mathematical formulation of the node localization problem in WSNs that was utilized in the research conducted for the purpose of this paper. Section 4 presents the original TGA version, and our improved version adjusted for the node localization problem. In Section 5, we have presented details of the original and hybridized EHO algorithms for node localization. Conducted empirical simulations and obtained results, along with full details of the experimental setup, are shown and depicted in Section 6, which is followed by the final Section 7, which concludes this paper, and provides remarks and references for future research and work.

2. Review of Swarm Intelligence Metaheuristics for Wireless Sensor Networks

In this section we present literature review of swarm intelligence approaches for node localization in WSNs. Due to its importance on solving NP hard problems, at the beginning of this section we also show brief review of genetic algorithms application for this problem.
Real life problems such as WSNs node localization, transportation problems, portfolio optimization, can be modeled as optimization tasks. Optimization presents one of the most researched domains. Metaheuristic algorithms are widely implemented for practical NP hard problems, as can be seen in the literature.
Metaheuristics inspired by the nature can be in general divided into two groups: evolutionary algorithms (EA) and swarm intelligence. One of the most well-known representatives of EA is genetic algorithm (GA). GA proved to be capable of solving large number of NP hard problems, including problems from the domain of WSNs.
In Ref. [20], the authors proposed a distributed range-free node localization algorithm for three- dimensional WSNs based on the GA. Similarly, in Ref. [21], by applying the localization algorithm that employs GA, the localization accuracy of unknown nodes in WSNs was improved. Also, recently, a novel range free localization algorithm based on GA and connectivity was proposed [22].
One of the first swarm intelligence approaches that has been presented in the literature was particle swarm optimization (PSO) [23]. PSO metaheuristics conducts the search process by simulating flocks of birds and fish. This metheuristics has been widely applied to the domain of node localization in WSNs. In Ref. [24] the authors have proposed optimal parameter selection for nine PSO variants and six types of swarm topologies for tackling the WSNs localization problem. Besides those mentioned, there are also many other PSO implementations for node localization problems, for example, in Ref. [25] velocity adaptation based PSO for this problem was proposed, while in Ref. [26] localization accuracy was significantly improved by using a localization algorithm based on the PSO metaheuristics. Besides those mentioned, there are also hybridized PSO implementations for this problem [27]. In the literature survey, there are also variants of the PSO metaheuristics adapted for sink node localization. For example, in Ref. [28], the authors presented adaptive PSO (APSO) approach for determining the best location for a sink node in WSN topology.
One of the swarm intelligence metaheuristics with most implementations for various NP-hard optimization tasks is artificial bee colony (ABC), which has many applications for both, benchmark [29], and practical tasks [30,31]. According to the literature survey, many implementations of the ABC metaheuristics in the domain of WSNs localization can be found [32,33]. Firefly algorithm (FA) is another well-known swarm algorithms representative, which mimics the lighting properties of fireflies. According to the results presented in the literature, FA has robust metaheuristics for tackling various kinds of NP hard optimization problems in modified [34,35] and hybridized versions [36]. The FA approach has many applications to node localization of WSNs [15,37]. For example, in Ref. [38], the authors proposed implementation of the FA for a concept of projecting virtual anchor nodes for moving target node localization. Obtained results of the FA metaheuristics were compared with the results achieved by biogeography based optimization (BBO), PSO, and h-best PSO.
Monarch butterfly optmization (MBO) is a relatively novel swarm algorithms approach that was proposed in 2015 by Wang and Deb [39]. In this very first paper, the MBO’s creators proved that this metaheuristic has huge potential in dealing with NP-hard tasks. The MBO metaheuristics also has its implementations for the localization problem in WSNs, where it obtained promising results. For example, in Ref. [40], MBO was employed in multi-stage localization approach, by localizing all nodes in multiple stages of algorithm’s execution. A similar approach, named butterfly optimization algorithm (BOA), was also adapted for node localization [15]. Moth search (MS) algorithm is another relatively new swarm intelligence metaheuristics that was inspired by the phototaxis and Lévy flights of the moths. This metaheuristics was proposed in 2016 by Wang [41]. MS proved to be state-of-the-art method for tackling global optimization benchmark problems [41], as well as real world problems like drone placement problem [42] and WSN node localization [43].
Cuckoo search (CS) algorithm, which was inspired by the obligate brood parasitism of some cuckoo species, was developed in 2009 by Yang and Deb [44]. This swarm intelligence approach proved to be capable of solving variety of NP hard optimization problems [45]. Adaptations of CS for node localization can also be found in the literature survey [16]. In Ref. [18], an effective CS algorithm for node localization was proposed and an extensive experimental study, which measures the effects of parameters such as node and anchor density and communication range with respect to average localization error and success ratio, is shown. Another prominent representative of swarm intelligence is bat algorithm (BA), which has many successful applications to benchmark [46] and real world problems [47]. The BA approach was also applied to node localization [48].
In the review section of this paper it is also worth mentioning that the swarm algorithms were also applied to other problems from the WSNs domain. For example, in Ref. [49], a pigeon-based self-deployment algorithm (PSA) was proposed for underwater WSN with the aim of overcoming limitations of the existing algorithms. In Ref. [50], a low energy PSO approach was utilized for node location in optical WSN. The authors considered the impact of node position on energy consumption during the communication process over the network. PSO metaheuristics was also used for maximization of a WSN network lifetime [51]. To address routing problems in heterogeneous WSNs environments, a novel PSO based approach was presented in Ref. [52]. Also, in the domain of clustering WSN, many swarm intelligence algorithms were applied. Comprehensive literature review of optimization clustering algorithms for large WSNs can be found in Ref. [53].

3. Problem Statement

In this section of the paper we give mathematical formulation of the node localization problem instance that we utilized in the conducted research.
The objective of node localization in WSNs is the assessment of coordinates of the unknown target sensor nodes randomly distributed in the monitoring environment, with the goal to minimize the objective function. The evaluation of target node position is concluded with the range-based distributed localization technique, which is performed in two phases: the ranging phase and the position estimation phase.
For assessing the distance between target nodes and anchor nodes in the first phase, the intensity of the received signal was considered. Due to the fact that the signal is corrupted by Gaussian noise, the precise measurements could not be obtained. In the second phase, positions of target nodes are estimated by using geometric approach, trilateration method. The position estimation phase uses the previous obtained information from the ranging phase. Many different techniques for calculating the positions (coordinates) of target nodes exist, however in this particular problem statement, the trilateration method was utilized. Due to the measurement imprecision in these two phases, swarm intelligence algorithms can be implemented to minimize the localization error.
In a two-dimensional (2D) WSN monitoring environment, M target sensor nodes and N anchor nodes are randomly deployed, with the transmission range R. Measured distance between each target and anchor node are revised with the Gaussian noise variable. For each target node, the distance between anchor nodes in its range is calculated by using equation d ^ i = d i + n i , where n i is an additive Gaussian noise, and d i is the actual distance that is measured by using the Equation (1):
d i = ( x x i ) 2 + ( y y i ) 2 ,
where the position of target node is denoted as ( x , y ) , and the position of the anchor node is represented as ( x i , y i ) .
The variance of n i , as the noise that affects the measured distance between target and anchor nodes is given in Equation (2):
σ d 2 = β 2 · P n · d i ,
where P n is the percentage noise in distance measurement d i ± d i ( P n 100 ) , and β is a parameter whose value is usually set to 0.1 in practical implementations.
In the trilateration method for estimating the position of the unknown sensor node, the target node is defined as localized if there are minimum three anchor nodes with the known coordinates A ( x a , y a ) , B ( x b , y b ) , and C ( x c , y c ) , within its transmission range R, and with distance d i from the target node n. By utilizing the trigonometric principles of sines and cosines, the position of the target node can be calculated. This minimizes the error between actual distance and the estimated distance. The trilateration method is depicted in Figure 1.
The swarm intelligence metaheuristics which are implemented in this research are executed independently for each localizable target node to obtain its position. The agents are initialized within centroid of the anchor nodes that are located within the range of the localizable target node by using the following expression:
( x c , y c ) = 1 N i = 1 N x i , 1 N i = 1 N y i ,
where N presents the total number of anchor nodes within transmission range of target node that is subject to localization.
Furthermore, the swarm intelligence algorithms aim to find the coordinates ( x , y ) of the target sensor node with the goal to minimize the localization error. The objective function f ( x , y ) of node localization problem is formulated as the mean square distance between the target node and the anchor node. Mathematical formulation of the objective function is given in Equation (4).
f ( x , y ) = 1 N i = 1 N ( x x i ) 2 + ( y y i ) 2 2 ,
where N 3 (the trilateration principle requires at least three anchor nodes within transmission range R of the localazable target node).
Localization error E L is determined after finding the positions of all target nodes N L . It is calculated as the mean of square of the distance between the estimated node coordinates ( X i , Y i ) and the real node coordinates ( x i , y i ) which is presented in the Equation (5):
E L = 1 N L i = 1 N ( x i X i ) 2 + ( y i Y i ) 2
The efficiency of the localization algorithm is measured by the average localization error E L and the number of sensor nodes which have not been localized N N L , where N N L = M N L . The lower the values of E L and N N L , the better the performance and efficiency of the algorithm.

4. Original and Dynamic Search Tree Growth Algorithm

As stated in Section 1, the basic focus of the research that is presented in this paper is achieving further improvements in solving the WSNs localization problem by applying swarm algorithms. As the first step in accomplishing this goal, we improved original TGA swarm algorithm.
In our TGA’s implementation, the balance between exploration and exploitation is dynamically adjusted during the algorithm’s execution. Our proposed approach is named dynamic search TGA (dynsTGA).
In this section, we present both the original (that was devised and implemented before our research) and improved version of the TGA, along with the critical analysis and performance discussion.
The TGA algorithm, created by Armin Cheraghalipour and Mostafa Hajiaghaei-Keshteli in 2017 [54], was inspired by the competition among the trees for absorbing food resources. TGA has diverse implementations in vast domains such as global optimization benchmark, engineering constrained benchmarks [55].
At the starting point of the TGA algorithm’s execution, the entire population of solutions is separated into three populations (subpopulations), defined as N 1 , N 2 , and N 3 . Each iteration of the algorithm’s run is divided into four phases. The first phase indicates that the N 1 better solutions are chosen from the population for conducting the local search procedure. In the second phase N 2 solutions are moved to the distance between the close best solutions under different α angles. N 3 worst solutions are rejected from the population in the third phase and replaced by random generated solution from the suitable domain of the search space. Fourth phase is executed by creating N 4 new randomly distributed solutions. Each solution that is distributed is altered by implementing the mask operator to the best solutions in the population N 1 that represents the collection of the best solutions, respectively.
The TGA algorithm is executed in the following order. First, the initial population of N solutions that are randomly allocated is generated amongst upper and lower paramaters’ bounds, with the fitness value that is calculated for each individual. After this, the entire population of N solutions is arranged with respect to the fitness value, where the current best solution T G B j in the j-th iteration is defined. The local search for all the individuals in the subpopulation N 1 is executed by using the Equation (6), where its adapted for each parameter of solution i:
T i j + 1 = T i j θ + r T i j ,
where T i j and T i j + 1 present the i-th solution in the subpopulation N 1 in the iteration j (old solution i) and j + 1 (new solution i), respectively, θ represents the reproduction rate parameter, and r [ 0 , 1 ] is pseudo-random number.
When the new solution is created, the greedy selection is conducted between the old and the new solution, where all the solutions which values are lower are rejected from the population.
Afterwards all the solution from the N 2 subpopulation are guided towards the two proximate solutions from the N 1 population under divergent α angles. In order to obtain the closest solutions Equation (7) is considered to all solutions’ parameters.
d i = i = 1 N 1 ( T N 2 j T i j ) 2 , w h e r e d i = d i , i f T N 2 j T i j , i f T N 2 j = T i j
When distance d i is calculated, solutions x 1 and x 2 which have the minimal distance from each solution T N 2 j are segregated for creating linear combination by utilizing the Equation (8):
y = λ x 1 + ( 1 λ ) x 2 ,
where λ [ 0 , 1 ] presents the control parameter.
All the solutions T N 2 j from N 2 subpopulation are conveyed in the direction between the two adjacent solutions with different α angles according to Equation (9).
T N 2 j = T N 2 j + α i y
When it comes to the subpopulation N 3 , the worst populations are discarded from the population. They are replaced with evenly solutions generated from the feasible domain of the search space. Then, the new population is generated N, where it combines N = N 1 + N 2 + N 3 . The relatively new N 4 subpopulation which consists of random solutions created and modified by mask operator in respect to the best solution in subpopulation N 1 . When mask operator is implemented, all the solutions from the N 4 subpopulation are joined with the population N.
The created extended population N + N 4 is defined by the fitness, where the best N solutions are pointed and chosen as the initial population for the next iteration of the TGA algorithm’s run. For this process the roulette wheel selection process is employed.

Dynamic Search TGA Metaheuristics

Every swarm intelligence metaheuristics performs the search guided by two basic processes: the exploitation (intensification) and exploration (diversification). The algorithm will obtain satisfying results only if the trade-off between these two process is well adjusted.
If the balance between diversification and intensification is not properly adjusted, the algorithm may fail to obtain satisfying results according to two different scenarios. In the first case, if the balance is set in favor to exploitation, the metaheuristics may converge to the sub-optimal part of the search space in early iterations. As a consequence, the search process may be trapped in the local optimum. This behavior is in the literature known as the premature convergence. In the second scenario, if the exploitation exploration balance is adjusted in favor to exploration, in most cases, the algorithm will find the part of the search region where an optimal or satisfying solutions reside, but will fail to hit those solutions due to the deficiency in exploitation power.
In the basic implementation of the TGA approach, the trade-off between intensification and diversification is adjusted by using two control parameters θ and λ , and the number of solutions in the subpopulation N 3 . Recall from Section 4, the subpopulation N 3 is comprised of the worst solutions that are discarded from the population in each algorithm’s iteration.
Both parameters, θ and λ , control the process of exploitation. Parameter θ directs the local search process, while the basic function of the λ parameter is to direct solutions towards better solutions in the population. On the other hand, with the number of solutions in N 3 subpopulation, the process of exploration is adjusted.
In the original TGA implementation, all three parameters are static during the whole course of algorithm’s execution.
By performing experimental tests on standard unconstrained benchmarks, we came to the conclusion that the performance in terms of convergence speed and the solution’s quality of the original TGA approach can be improved by introducing dynamical adjustments of the values for θ and N 3 control parameters.
In the early iterations of algorithm’s execution, the value of the parameter θ should be lower, and the novel solution should not be too close to the current solution (Equation (6)). The basic assumption behind this theory is that in the beginning of execution, the algorithm did not hit the right part of the search space, hence the exploitation should be decreased. In later iterations, the value of the parameter θ should be higher with the assumption that the algorithm has found the part of the search space where an optimum solution resides.
Also, in the beginning of the algorithm’s execution, the number of solutions that are removed from the population (subpopulation N 3 ) should be higher, because in this phase more exploration power is needed. Since the change of the N 3 value has direct implications to the values of N 1 , and N 2 , these parameters should be adjusted as well.
Thus, during the course of the algorithm’s execution, the value of θ is gradually increased, while the number of solutions in the subpopulation N 3 is gradually decreased.
By conducting experimental simulations, we concluded that value of the λ parameter should be static during the whole course of algorithm’s execution (Equation (8)). We came to this conclusion in a “trial and error” manner, by conducting experiments with dynamic λ adjustments. On average, when the λ was dynamically adjusted, the results were worse than in the cases with static λ value.
With the introduction of dynamic behavior of θ and N 3 into basic TGA implementation, we devised improved dynsTGA metaheuristics. The dynsTGA pseudo-code is presented in Algorithm 1.
Algorithm 1 Pseudo code of the dynsTGA metaheuristics
Initialization. Generate random initial population, set the iteration counter t to 1, the value of maximum iteration number ( M a x I t e r ), and the initial values of θ and N 3 control parameters
while t < M a x G e n do
  Evaluate all solutions in the population and sort them according to their fitness value
  for all solutions in N 1 do
   Conduct local search by utilizing Equation (6)
   Apply greedy selection mechanism to choose between the old and the new solution
  end for
  for all solutions in N 2 do
   Move solutions towards the closest best solutions in N 1 by using Equations (7)–(9)
   Apply greedy selection mechanism to choose between the old and the new solution
  end for
  Remove N 3 worst solutions from the population and replace them with randomly solutions from the search domain
  Generate N 4 randomly distributed solutions and modify each solution in respect to the best solutions in N 1 by using the mask operator
  Evaluate all solutions in the population and sort them according to their fitness value
  Choose N best solutions as initial population for the next iteration
  Recalculate the values of θ and N 3 along with N 2 and N 1 control parameters
end while
return The best solution from the population

5. Original and Hybridized Elephant Herding Optimization Metaheuristics

Similarly, as in the case of the TGA metaheuristics, as the second step to achieve the goal of making further improvements in solving the WSNs localization problem by applying swarm algorithms, we improved original EHO metaheuristics by hybridization.
In this section, we present both the original (that was devised and implemented before our research) and hybridized version of the EHO, along with the critical analysis and performance discussion.
Elephant herding optimization (EHO) algorithm, proposed and created by Wang et al. in 2015 for solving global optimization tasks [56], was inspired by the social communication and behavior of elephants in herds. EHO has many implementation in different domains, such as node localization in WSNs [4], standard benchmark problems [57], static drone placement problem [58], multilevel image threshold [59], etc. The general-purpose heuristic search is designed to indicate the social coexistence of the elephants in herds under the leadership of a matriarch, whence fully grown male calves leave the clan to live independently, but still communicate with the rest of the herd.
Because of this independence and structural communication between elephants in the same clan, and outside of the clan, there are two different environments: the first environment where elephants communicate and function under the influence of a matriarch, and the second environment where male calves leave the herd. These environments are defined as updating and separating operators.
In the population, each individual is presented as an integer number vector with the dimension 2 N , where N indicates the number of sensor nodes randomly distributed in the monitoring field. Each population is detached into n clans.
Then each solution j in each clan c i in the EHO algorithm is updated by its present position and matriarch c i through an updating operator. Afterwards, the population dissimilarity is enhanced through the separating operator at the next generations of the algorithm’s execution.
The population is divided into n clans. The updating operator is defined by changing the position of each solution j in the clan c i by the impact of the matriarch c i which has the best fitness value in generation which can be seen in Equation (10):
x n e w , c i , j = x c i , j + α × ( x b e s t , c i x c i , j ) × r ,
where x n e w , c i , j is the new position of the individual j in the clan c i , and x b e s t , c i is the best solution in the clan c i found at this time, where x c i , j represents the old position of the individual j in the clan c i . Parameter α [ 0 , 1 ] is a scale indicator that designates the authority of the matriarch c i on x c i , j , and r [ 0 , 1 ] is a random variable with uniform distribution. To update the fittest solution in each clan c i :
x n e w , c i , j = β × x c e n t e r , c i ,
where β [ 0 , 1 ] presents the factor that impact the x c e n t e r , c i on the updated individual.
As D indicates the total dimension of the search space, following is the calculation of the center of the clan c i , x c e n t e r , c i , d for d t h dimension problem:
x c e n t e r , c i , d = 1 n c i × j = 1 d x c i , j , d ,
where 1 < x c e n t e r , c i < d , n c i is the number of elephants in clan c i , and x c i , j , d is the d-th of the elephant individual x c i , j .
The separating operator can be modeled as:
x w o r s t , c i = x m i n + ( x m a x x m i n + 1 ) × r a n d ,
where x m a x and x m i n are upper and lower bound of the position of the individual, respectively. x w o r s t , c i is the worst individual in clan c i , and r a n d [ 0 , 1 ] is a random number chosen by uniform distribution.

Hybridized Elephant Herding Optimization

By conducting empirical tests on standard unconstrained and constrained benchmarks of the basic EHO metaheuristics, we have noticed some deficiencies in the algorithms’ performance.
As already mentioned above, robustness and solution’s quality of any swarm intelligence approach depends on the balance between the exploitation and the exploration. In the original EHO approach, the process of intensification is performed by the updating operator, and the new position (solution) depends of the current best solution in the population (see Equations (10)–(12)). The process of diversification is modeled by separating operator (Equation (13)).
According to the performed practical tests on standard unconstrained and constrained benchmarks, we concluded that the basic EHO metaheuristics suffers from inappropriate trade off between exploitation and exploration. Utilization of the separating operator, which performs exploration, is not enough, and this balance is shifted towards exploitation. As a consequence of inadequately established balance, in some runs, the algorithm could not hit region of the search space where an optimal solution resides, and it gets stuck in a suboptimal domain. Such behavior has direct implications to the worse mean values of the objective function that is subject to the optimization process. On the other hand, in some runs, the original EHO is lucky, and manages to find the right part of the search space. Thus, we concluded that the basic EHO has two drawbacks: the lack of exploration power and inadequate balance between exploration and exploitation.
To overcome these deficiencies, we hybridized EHO with the well-known ABC swarm intelligence metaheuristics [60]. We introduced another criteria for discarding solutions from the population—the number of cycles (iterations) in which a particular solution cannot be improved by the process of exploitation. For this purpose, we adopted a l i m i t parameter from the ABC metaheuristics, similar to Ref. [61].
For describing solution in the population, in our hybridized approach we used l i m i t as an additional attribute. In each iteration of algorithm’s execution, when a solution cannot be improved, the value of its l i m i t parameter is incremented by one. When a value of the l i m i t for a particular solution reaches a threshold ( t h ) value, the solution is discarded from the population and replaced with the pseudo-random solution. The replacing solution is generated by using Equation (13).
By incorporating the l i m i t parameter from the ABC approach, hybridized EHO obtains better intensification-diversification balance by increasing the intensity of exploration.
At the beginning of algorithm’s execution, since for modeling exploration two mechanisms are used, the trade off of exploitation-exploration is slightly more shifted towards exploration. The basic assumption is that at these early iterations, the algorithm still did not find the right part of the search space, and more exploration is needed. However, in later iterations, with the preposition that the algorithm has converged to an optimal region, more intensive exploitation is needed and the balance should be shifted towards exploitation. In order to accomplish such behavior, the value of the l i m i t parameter in early iterations (cycles) is is lower, and then as the execution approaches the termination condition (the maximum number of iterations), the value of the l i m i t is gradually increasing. In this way, in later iterations, the solutions are rarely discarded from the population and the balance between exploitation and exploration is shifted towards exploitation.
We named our approach hybridized EHO (HEHO). The pseudo-code is given in Algorithm 2.
Algorithm 2 Pseudo code of the HEHO algorithm
Initialization. Generate the individuals in population; divide population into n clans; calculate fitness for each individual; set generation counter t = 1 , maximum generation M a x G e n , and the initial value of the l i m i t parameter
while t < M a x G e n do
  Arrange all solutions according to their fitness
  for all clans c i do
   for all solution j in the clan c i do
    Update x c i , j and generate x n e w , c i , j using Equation (10)
    Select and obtain better solution between x c i , j and x n e w , c i , j
    Update x b e s t , c i and generate x n e w , c i , j using Equation (11)
    Select and retain better solution between x b e s t , c i and x n e w , c i , j
   end for
  end for
  for all clans c i in the population do
   Replace the worst solution in clan c i using Equation (13)
   Replace the solutions that violate l i m i t value by using Equation (13)
  end for
  Analyze population and calculate fitness
  Recalculate the value of the l i m i t parameter
end while
return the best solution among all clans

6. Empirical Results and Analysis

The experimental section of this paper is divided into two parts. In the first part, since the WSNs localization problem can be formulated as bound-constrained optimization, we show testing results and analysis of the dynsTGA and HEHO metaheuristics for standard bound-constrained (unconstrained) optimization benchmarks. In the second part we show empirical results for the WSNs localization problem along with comparative analysis with other state-of-the-art metaheuristics, theoretical analysis, and discussion.

6.1. Testing Results for Unconstrained Benchmarks

As already mentioned in Section 4 and Section 5, we first tested devised approaches dynsTGA and HEHO on standard unconstrained (bound constrained) benchmarks. We wanted to measure improvements in terms of robustness and solutions’ quality of our modified versions over basic implementations of the TGA and EHO metaheuristics.
Since the WSN localization problem belongs to the group of NP hard problems, if devised approaches perform better than the original ones in the case of unconstrained benchmarks, the logical assumption is that they will also obtain better results in the case of WSNs localization.
Details of some benchmark functions that were used for validation of our approaches are given in Table 1.
All tests for both algorithms are executed in 30 independent algorithm runs, each starting with different pseudo-random number seed.

6.1.1. TGA and dynsTGA Control Parameter Setup and Testing Results

For evaluating performance of the TGA and dynsTGA we employed similar control parameter settings as in Refs. [54,55]. The initial population size (N) was set to 100, and the values for N 1 and N 2 were set to 20. The value for N 3 was set to 60 ( N 3 = N ( N 1 + N 2 ). The value of N 4 was set to 40, while the maximum iteration number ( M a x I t e r ) was set to 250. The other control parameters were adjusted as follows: λ = 0.5 and θ = 0.2 . This yields to the total number of 35,000 function evaluations.
The dynsTGA approach utilized similar values to the control parameters described above, with few modifications. In the first 210 iterations, the values of N 1 , N 2 , and N 3 were static. After, in every of the iterations between 210 (inclusive) and 250 (inclusive), the value of N 3 was decremented by one, and the values of N 1 and N 2 were incremented by 1 in even and odd iterations, respectively. The value for control parameter N 4 was static during the whole course of algorithm’s execution. The initial value of the θ parameter was set to 0.2. However, the θ value was adjusted in each iteration according the expression θ j + 1 = θ j · 1.002 , until the threshold value 1.5 is reached.
Comparative analysis between the original TGA and dynsTGA for unconstrained tests is given in Table 2. As performance indicators, we used best (best solution obtained in a set of 30 independent algorithm runs), mean (the average of all bests obtained in each of 30 runs), and standard deviation (standard deviation of all bests obtained in each of 30 runs). In Table 2, the best results obtained for each performance indicator are marked bold.
As can be seen from Table 2, in the case of most tests for all three indicators, the dynsTGA significantly outperformed the original TGA implementation.

6.1.2. EHO and HEHO Control Parameter Setup and Testing Results

Both approaches EHO and HEHO were adjusted as follows: the number of clans n was set to 5, and the number of solutions in each clan n c i was set to 10, similarly to Refs. [56,57]. Each run of algorithms was executed in 700 iterations, yielding a total number of 35,000 objective function evaluations. The values for the scale factors α and β were set to 0.5 and 0.1, respectively.
In the case of the HEHO approach, the initial value of the l i m i t parameter was set to 5. Then, in each even iteration, the l i m i t value was incremented by one. In this way, in early iterations, the solutions that cannot be improved were discarded from the population often and exploration power is higher. However, in later iterations with the increase of the l i m i t parameter value, solutions were discarded from the population with lesser frequency, and the trade-off between exploitation and exploration is shifted in favor of exploitation.
Comparative analysis between the original EHO and the HEHO for standard bound-constrained benchmarks is given in Table 3. Similarly, as in the case of Table 2, the best results for each category of performance indicators are marked bold in Table 3.
From Table 3 it can be concluded that in all tests, except for the benchmark F 8 , the HEHO obtains better performance than the original EHO approach. Also, if we compare results of the dynsTGA and HEHO (Table 2 vs. Table 3), it can be seen that the dynsTGA performs slightly better in most benchmark cases. Since the WSN localization problem is categorized as NP hard with bound constraints (like presented benchmark functions), in this phase of the research we expected that the dynsTGA will also outperform the HEHO approach when tackling this problem.

6.1.3. Comparative Analysis with Other Metaheuristics

In the final part of testing dynsTGA and HEHO metaheuristics on standard bound-constrained benchmarks, we performed comparative analysis with other state-of-the-art algorithms that have been tested on the same problem instances. We also wanted to perform side-by-side comparison between the dynsTGA and HEHO approaches, so we included results for both proposed approaches into single comparison table.
Comparative analysis was performed with the iterative best performance algorithm (IBPA), largest absolute difference algorithm (LADA), taboo search (TS), and weighted superposition attraction (WSA) metaheuristics. Simulation results for the algorithms that are included in comparative analysis were taken from Refs. [55,62].
Comparative analysis is shown in Table 4. The best results for each performance metrics are marked bold.
From the presented comparative analysis it can be concluded that on average the dynsTGA metaheuristics performs better than all other approaches included in comparisons. For example, in the case of the F 3 benchmark, the dynsTGA obtained better mean and standard deviation results than all other approaches, while both proposed metaheuristics, dynsTGA and HEHO, managed to accomplish optimal solutions. Also, in the F 6 test, the dynsTGA showed the best performance for best, as well as for the mean indicator, while the HEHO obtained the best value for the standard deviation metric.
Moreover, as it has already been pointed out in Section 6.1.2, when performing comparison between the dynsTGA and the HEHO, it can be seen that in most benchmark cases, the dynsTGA performs slightly better, and at this point of conducted research we expected that the dynsTGA will also outperform the HEHO approach when tackling the WSNs localization challenge.
In order to make better insights into the proposed algorithms’ performance, convergence speed graphs for F 1 , F 3 , F 5 , and F 8 benchmarks for the dynsTGA the HEHO are shown in Figure 2 and Figure 3, respectively. From the presented figures, it can be clearly seen that the dynsTGA metaheuristics achieves better convergence speed and converges faster to the global optimum. This further means that the dynsTGA has better exploitation (intensification) ability than the HEHO. Also, at some points of execution, the HEHO gets trapped in suboptimal domains of the search space. For example, in simulations with F 1 , F 3 , and F 5 benchmarks, the dynsTGA obtained its global optimum after 20,000 objective function evaluations, while it took around 25,000 objective function evaluations for the HEHO to achieve its global optimum in the same tests.

6.2. WSN Localization Problem

In this subsection, we first present the setup of experimental environment for the WSN localization problem and the control parameters’ adjustments for EHO, HEHO, TGA, and dynsTGA metaheuristics that were employed in the conducted experiments. After we show details of conducted simulations, as well as comparative analysis with other state-of-the-art approaches found in the literature that were tested on the same problem instance under the same experimental conditions.

6.2.1. Experimental Setup and Parameter Adjustments

In this and the subsequent subsection, we have provided exhaustive details of the control parameters’ adjustments and experimental conditions, so researchers who wants to implement the proposed approaches and to run simulations have more than enough information to do this on their own.
For the experimental setup of this paper we have constructed a simulation topology which includes a two-dimensional ( 2 D ) WSN monitoring environment (deployment area) with a size of 100 U × 100 U , where U represents unit of measurement. Within this monitoring environment, static target sensor nodes and anchor nodes with coordinates ( x , y ) are randomly deployed between the lower and the upper boundary of the WSN monitoring domain, using pseudo-random number generator.
We conducted experiments with different number of target nodes M and anchors nodes N. We wanted to see how algorithms behave in different test scenarios. In performed all simulations, the number of target nodes varies in the range [ 25 , 150 ] , while the number of anchor nodes in all simulations is between 8 and 35 (inclusive). In every run of the algorithm, the network topology was generated randomly. Similar experiments were conducted in Ref. [15].
As explained in Section 3, the range measurement is blurred with the additive Gaussian noise d ^ i = d i + n i . The parameter σ d , which represents the standard deviation of the measured distance, influences the performance of localization (see Equation (2)). Two essential parameters that affect the localization error E l are density of anchor nodes per U 2 and sensors’ transmission range R. The transmission range is set to 30 U in all simulations.
Also, in all conducted experiments with all algorithms (TGA, dynsTGA, EHO, and HEHO), the size of population N and the maximum generation number ( M a x G e n ) were set to 30 and 200, respectively. The same parameter adjustments were used in Ref. [15]. In Ref. [15], swarm intelligence approaches that are used for the purpose of comparative analysis in this paper are presented. By utilizing this set of parameters, a comparative analysis presented in this study is more objective and represents real performance comparison between different swarm algorithms approaches.
The basic TGA and dynsTGA control parameters were adjusted as follows: initial population size (N) was set to 25, the values for N 1 and N 2 were set to 6, while the value for N 3 was adjusted to 13. Also, in every iteration, additional 5 solutions were evaluated ( N 4 = 5 ). This in total yields 30 solutions in the population, like in Ref. [15]. For other control parameters we set the following values: λ = 0.5 and θ = 0.2 .
In the case of dynsTGA experiments, the value of N 4 was fixed during the whole course of algorithm’s execution. Also, the values for N 1 , N 2 , and N 3 were static in the first 180 iterations. In the final stages of algorithm’s execution, the value of N 3 was decremented by one until a threshold value of N 3 = 1 is reached, and the values of N 1 and N 2 were incremented by 1 in even and odd iterations, respectively. Finally, in the latest iterations, parameters N 1 and N 2 reached the value of 12.
At the beginning of the dynsTGA execution, the value of θ was set to 0.2. In every iteration, setting for the θ was adjusted by utilizing expression θ j + 1 = θ j · 1.002 , until the threshold value 1.5 is reached. Similar was performed in dynsTGA’s tests for bound-constrained benchmarks (see Section 6.1.1 ).
The basic EHO and HEHO control parameters were set as follows: the number of clans n was set to 5, and the number of solutions in each clan n c i was set to 6. The values for the scale factors α and β were set to 0.5 and 0.1, respectively.
The adjustments for the l i m i t parameter in the case of HEHO approach were the same as in unconstrained tests (see Section 6.1.2). The initial value of the l i m i t parameter was set to 5. Then, in each even iteration, the l i m i t value was incremented by 1. In this way, in early iterations, the solutions that cannot be improved were discarded from the population often and exploration power is higher. However, in later iterations with the increase of the l i m i t parameter value, solutions were discarded from the population with lesser frequency, and the trade-off between exploitation and exploration is shifted in favor to exploitation.
In all conducted simulations presented in Section 6.2.2 we utilized Intel CoreTM i7-4770K processor @4GHz with 32GB of RAM memory, Windows 10 Professional x64 operating system, and Java Development Kit 11 (JDK 11) and IntelliJ integrated development environment (IDE).

6.2.2. Empirical Results, Comparative Analysis, and Discussion

In the research conducted for the purpose of this paper we performed two sets of experiments in order to measure real performance of our proposed approaches.
In the first set of experiments, we wanted to measure the influence of the noise percentage ( P n ) in distance measurement on the localization accuracy. For this purpose we ran original and upgraded/hybridized TGA and EHO metaheuristics with the value of P n set to 2 and 5, respectively. In this case we used 40 target nodes ( M = 40 ), and 8 anchor nodes ( N = 8 ) randomly deployed in the WSN domain.
With each particular value of P n we executed all algorithms in 30 independent runs, and for each run we used different pseudo-random number seed. As performance indicators, we took the following metrics: the mean number of non-localized nodes ( N N L ) and the mean localization error ( E L ). Values of performance indicators were averaged over 30 runs.
The same parameter setup, as well as the performance indicators were used in Ref. [15].
Experimental results are summarized in Table 5. Best results from each category (mean N N L , mean E L , computation time) are marked bold.
From the results presented in Table 5, it can be noticed that the influence of the percentage noise ( P n ) on localization accuracy is obvious and significant. When the P n was decreased from 5 to 2, in all test case for all approaches, the localization error decreased, while the number of localized nodes increased (number of non-localized nodes decreased).
From the results presented in Table 5 it can be concluded that the dynsTGA metaheuristics obtains the best results. This was expected since dynsTGA also performed the best in the case of conducted tests on standard bound-constrained benchmarks (refer to Table 2 and Table 3). The dynsTGA outperformed other approaches in both performance indicators: it managed to localize most target nodes with low localization error.
Basic TGA and HEHO performed similarly. For example, in the case of the test with P n set to 5, the HEHO localized more targets, but TGA obtained lower localization error. Also, in the case of P n = 2 test, the difference between these two approaches is insignificant. Finally, original EHO metaheuristics was significantly worse than all other approaches presented in this paper.
When analyzing computational costs in terms of execution speed, it is obvious that the dynsTGA is the most expensive approach, while the basic TGA implementation proved to be light-weight and executed faster than other metaheuristics. These results are expected since the dynsTGA at the end of each iteration performs dynamical adjustment of the control parameters N 1 , N 2 , N 3 , and θ .
In Ref. [15], the same tests were performed (with P n = 2 and P n = 5 ) under the same experimental conditions and under the same problem instance. In this paper, the authors proposed butterfly optimization algorithm (BOA) and compared it with the particle swarm optimization (PSO) and the firefly algorithm (FA).
We wanted to see how approaches presented in this paper perform related to approaches showed in Ref. [15], and for this purpose we conducted comparative analysis. A side by side comparison is presented in Table 5 and Table 6.
The comparison could be made only for the mean number of non-localized nodes ( N N L ) and the mean localization error ( E L ) metrics. Comparative analysis for the computational time indicator could not be performed, since the approaches presented in Ref. [15] were tested on different computational platforms. In the presented table, the best results from each category are marked bold.
According to the results presented in Table 6, a general conclusion is that the dynsTGA proved to be the best approach. In both cases, for P n = 2 and P n = 5 the dynsTGA obtained better results than all other metaheuristics included in comparative analysis. The second best approach is BOA. For example, when P n was set to 5, the dynsTGA managed on average to localize 35.5 targets, while BOA successfully localized 35.3 targets. Also, the dynsTGA obtained lower localization error (0.19 vs. 0.28).
Similar results are obtained in the case of P n = 2 test, where the dynsTGA on average could not localize 4.3 targets, while BOA could not find the position of 4.5 nodes. Also, in this test, the dynsTGA localized targets with a localization error that is almost 24% lower than BOA (0.16 vs. 0.21).
Also, from Table 6 it can be seen that the third best performing algorithm included in comparative analysis are TGA and HEHO. These two approaches share the third place. A more detailed comparison between the TGA and HEHO is given above.
The fourth best performing approach is PSO. In both tests, the PSO proved to be the average performing metaheuristics method for this type of problem. Finally, the last place is shared between the FA and the EHO. It should be also noted that the FA performed slightly better than EHO, but this difference is negligible. For example, in the test with P n set to 2, both algorithms on average managed to localize 33.8 out of 40 targets, where the FA obtained slightly lower localization error (0.69 vs. 0.71).
In the second set of experiments, we utilized different numbers of target nodes (M) and sensor nodes (N). We wanted to perform more detailed analysis of robustness and solutions’ quality of proposed approaches. In all tests the value of P n was set to 2, and each experiment is conducted in five independent runs.
Other experimental and metaheuristics control parameters were adjusted as shown in Section 6.2.1.
In Table 7, we show detailed results for all five runs in all conducted experiments. The annotations used in the results table are the following: number of localized nodes, localization error, and execution time measured in seconds are represented with N L , E L , and T E , respectively.
Since the proposed localization algorithms are stochastic, different results are obtained in different runs and the best results from each category of tests could not be emphasized.
As can be seen from the presented table, the results vary from run to run. For example, in the test with 25 targets and 10 anchor nodes, the EHO meatheuristics managed to localize between 17 and 21 targets, while the dynsTGA localized 23, 24, or 25 nodes with the unknown position. Also, in this test, the localization error in all runs is uniformly better in the case of dynsTGA metaheuristics, than in the case of other approaches. Metaheuristics HEHO and TGA perform similarly, and the performance difference is negligible, like in the test with 40 target and 8 anchor nodes (please refer to Table 5).
In the experiment with 125 target and 30 anchor nodes, the EHO localized between 121 and 125 targets, and dynsTGA in almost every run managed to determine positions of unknown nodes. The EHO and TGA localized between 123 and 125 targets. Also, in this test in almost all runs, the dynsTGA obtained the lowest localization error.
Regarding the execution speed, the most expensive approach is dynsTGA, while the algorithm that consumes the least amount of computational resources is TGA. Since the HEHO incorporates l i m i t parameter from the ABC metaheuristics, this approach utilizes slightly more resources that its basic implementation.
Similar conclusions can be drawn from all other tests. Considering both performance indicators (number of localized nodes and localization error), the worst performing metaheuristics is EHO, while the algorithm that obtained the best solution quality is the dynsTGA. Metaheuristics HEHO and TGA generate nearly same results in all test instances.
A visualization of the results in the test with 50 target and 15 anchor nodes, in the case when all presented approaches managed to localize all 50 unknown sensors, is given in Figure 4 and Figure 5. From the presented figures it can be clearly seen that the dynsTGA obtains the lowest localization error, while the basic EHO approach localized all 50 targets with the least precision and accuracy.
As already mentioned above, in Ref. [15] the implementation of BOA for the same problem instance and under the same experimental conditions was presented. Also, in Ref. [15] detailed analysis of results for the five algorithms’ runs was given. In Table 8, we show comparative analysis between our HEHO and dynsTGA implementations and BOA, FA, and PSO showed in Ref. [15].
By carefully analyzing Table 8, it can be seen that dynsTGA performs better than all other approaches included in comparative analysis. The second best metaheuristics is BOA, while TGA and HEHO outperform the FA and PSO algorithms. Similar deduction was drawn in tests with varying P n values (please refer to Table 6).
For example, in tests on problem instances with {50 targets, 15 anchors}, {100 targets, 25 anchors}, and {150 targets and 35 anchors} the BOA approach on average obtained localization errors of 0.30, 0.24, and 0.55, respectively. For the same tests, the dynsTGA-based localization localized unknown targets with the localization errors of 0.25, 0.22, and 0.47, which is significantly better than in the case of BOA. At the same time, on average, both algorithms managed to localize the same number of target nodes.
Contrarily, the HEHO metaheuristics, which outperform the PSO and FA approaches, for the same problem instances, obtained localization error of 0.37, 0.35, and 0.78, respectively. Thus, the HEHO-based localization estimated the locations of unknown targets with lesser accuracy when compared to the dynsTGA approach.
Side-by-side comparisons of convergence speed between the dynsTGA and the HEHO on problem instances with {50 targets, 15 anchors}, {100 targets, 25 anchors}, and {150 targets and 35 anchors} are shown in Figure 6, Figure 7, and Figure 8, respectively. For visualization purposes, the averaged results over 30 independent algorithms’ runs are taken.
From the presented figures, it can be clearly seen that the dynsTGA obtains much better performance and convergence speed than the HEHO approach. In the case of the problem instance with 150 targets and 35 anchor nodes (Figure 8), in early generations the dynsTGA converges slower to the optimum part of the search space. However, in later generations, the converges speed of the dynsTGA is improved due to the dynamical adjustments of N 3 and θ control parameters.

6.2.3. Additional Tests

Finally, we have also performed additional experiments with varying transmission range, number of anchor nodes, and number of generations. We wanted to measure the impact of experimental conditions changes on the obtained results and to better establish performances of the proposed metaheuristics. As in the previously conducted experiments, results are averaged over 30 independent algorithms’ runs, each starting with different pseudo-random number seed.
In the experiments with varying transmission range, we executed algorithms several times with different values for anchor nodes’ transmission range (from 10 U to 30 U ). From the conducted simulations, it is evident that with the increase in the transmission range of the anchor nodes, the number of localized sensors also increases. Visual representation of results for the problem instance with 25 anchor and 100 target nodes is shown in Figure 9.
With the increase of anchor node density, the location estimation accuracy, as well as the number of localized nodes increase. To prove this, we have executed algorithms several times with varying number of anchor nodes (from 3 to 15) on the problem instance with 50 target nodes. Visual representation of the obtained results (percentage of localized nodes vs. number of anchor nodes) is given in Figure 10.
With the goal to measure the performances of the proposed approaches with greater accuracy, we have also performed experimental simulations with varying number of generations on the WSN topology with 50 target and 15 anchor nodes. With the increase in generation number, the number of localized nodes also increases, and the localization error decreases. The dynsTGA-based localization obtained the least localization error compared to other proposed approaches and proved to be the best metaheuristics when tackling this problem. However, as it can be seen from Table 7, the dynsTGA is the most expensive in terms of execution time and the utilization of computing resources. Visual representation of results (number of generations vs. localization error) is given in Figure 11.

7. Conclusions and Future Work

The research presented in this paper is aimed towards achieving further improvements in solving the WSNs localization problem by employing swarm intelligence algorithms. To accomplish this goal, we have improved the basic versions of the TGA and EHO swarm intelligence metaheuristics and applied them in determining the locations of unknown sensor nodes with greater accuracy and precision than other similar algorithms.
The scientific contribution of this paper is twofold: improvements in solving the WSNs localization problem are established and the original versions of the TGA and EHO swarm intelligence metaheuristics are improved.
In the basic TGA, with the goal to enhance exploitation-exploration balance, we introduced dynamic behavior and devised dynsTGA metaheuristics. We have also enhanced the original EHO approach by incorporating the l i m i t control parameter from the ABC swarm algorithm, which controls the process of diversification. We named our approach HEHO.
Both proposed algorithms (dynsTGA and HEHO) were first tested on standard unconstrained (bound-constrained) benchmarks with the objective to measure improvements over the original (unmodified) versions.
With the goal to improve the localization accuracy of unknown targets, we have conducted empirical experiments on different sizes of sensor networks ranging from 25 to 150 target nodes, whose distance measurements are corrupted by Gaussian noise. To establish whether we accomplished our objective, we performed comparative analysis with other state-of-the-art swarm intelligence algorithms, the BOA, PSO, and FA, which have been already tested on the same localization problem instance and under the same experimental conditions. As a general conclusion, the dynsTGA metaheuristics showed the best performance, solution quality, and robustness when tackling the node localization problem and improved results of the previously tested algorithms.
All the details, including descriptions of the algorithms’ implementations, experimental environment setup, and control parameters’ adjustments, are fully provided, so researchers who wants to implement the proposed approaches and to conduct simulations on their own could do so based on the information provided in this paper.
As part of the future research in this domain we will adapt and test the proposed metaheuristics on other problems and challenges from the domain of WSNs as well. Moreover, we will also implement and improve other swarm approaches and adapt them for tackling the same an similar problems that should be addressed in WSNs implementation.
Since many challenges from the WSNs research area belong to the group of NP hard optimization, and due to the fact that the swarm intelligence metaheuristics proved to be robust methods for solving these kinds of problems, this area of research is prosperous and many opportunities for improvements exist. First, we will try to adapt the dynsTGA and the HEHO metaheuristics, which are proposed in this paper, for other WSNs problems, such as energy-based localization, deployment, coverage, and routing. Moreover, we also plan to perform experiments with different kinds of WSNs, like indoor, under water, under ground, and networks with mobile sensor nodes.
On the other hand, in the swarm intelligence research domain, there are also many opportunities for improvements. In general, swarm algorithms may be improved by applying minor and/or major changes/modifications. Minor improvements may be implemented by changing the value or behavior of control parameters, and/or changing some components of the exploitation or exploration search equations. Major improvements are in general performed by applying hybridization with other algorithms or metaheuristics.
In this context, we also plan to conduct research on existing swarm intelligence approaches improvements, and to adapt them to different kinds of WSNs challenges. When WSNs and swarm intelligence are combined, a huge research potential exists and this potential should be exploited and investigated.

Author Contributions

I.S. and M.T. proposed the idea. I.S. and N.B. worked on the algorithm’s implementation and adaptation. The entire research project was conceived and supervised by M.T. and M.M. Original draft was written by I.S. and N.B.; review & editing was performed by M.T. and M.M. All authors participated in the conducted experiments and in discussion of the experimental results.

Funding

This research is supported by Ministry of Education and Science of Republic of Serbia, Grant No. III-44006.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Boubiche, D.E.; Pathan, A.K.; Lloret, J.; Zhou, H.; Hong, S.; Amin, S.O.; Feki, M.A. Advanced Industrial Wireless Sensor Networks and Intelligent IoT. IEEE Commun. Mag. 2018, 56, 14–15. [Google Scholar] [CrossRef]
  2. Akyildiz, I.; Vuran, M.C. Wireless Sensor Networks; John Wiley & Sons, Inc.: New York, NY, USA, 2010. [Google Scholar]
  3. Rawat, P.; Singh, K.D.; Chaouchi, H.; Bonnin, J.M. Wireless sensor networks: A survey on recent developments and potential synergies. J. Supercomput. 2014, 68, 1–48. [Google Scholar] [CrossRef]
  4. Strumberger, I.; Beko, M.; Tuba, M.; Minovic, M.; Bacanin, N. Elephant Herding Optimization Algorithm for Wireless Sensor Network Localization Problem. In Technological Innovation for Resilient Systems; Camarinha-Matos, L.M., Adu-Kankam, K.O., Julashokri, M., Eds.; Springer International Publishing: Cham, Switzerland, 2018; pp. 175–184. [Google Scholar]
  5. Tomic, S.; Beko, M. Target Localization via Integrated and Segregated Ranging Based on RSS and TOA Measurements. Sensors 2019, 19, 230. [Google Scholar] [CrossRef] [PubMed]
  6. Garcia-Pineda, M.; Tomas, J.; Boronat, F.; Lloret, J. The Development of Two Systems for Indoor Wireless Sensors Self-location. Ad Hoc Sens. Wirel. Netw. 2009, 8, 235–258. [Google Scholar]
  7. Tomic, S.; Beko, M.; Dinis, R.; Tuba, M.; Bacanin, N. RSS-AoA-Based Target Localization and Tracking in Wireless Sensor Networks, 1st ed.; River Publishers: Aalborg, Denmark, 2017. [Google Scholar]
  8. Tomic, S.; Beko, M.; Dinis, R.; Tuba, M.; Bacanin, N. Bayesian Methodology for Target Tracking Using RSS and AoA Measurements. Phys. Commun. 2017, 25, 158–166. [Google Scholar] [CrossRef]
  9. Tomic, S.; Beko, M.; Dinis, R.; Gomes, J.P. Target Tracking with Sensor Navigation Using Coupled RSS and AoA Measurements. Sensors 2017, 17, 2690. [Google Scholar] [CrossRef]
  10. Abdollahzadeh, S.; Navimipour, N.J. Deployment strategies in the wireless sensor network: A comprehensive review. Comput. Commun. 2016, 91–92, 1–16. [Google Scholar] [CrossRef]
  11. Aspnes, J.; Eren, T.; Goldenberg, D.K.; Morse, A.S.; Whiteley, W.; Yang, Y.R.; Anderson, B.D.O.; Belhumeur, P.N. A Theory of Network Localization. IEEE Trans. Mob. Comput. 2006, 5, 1663–1678. [Google Scholar] [CrossRef]
  12. Garcia, M.; Martinez, C.; Tomas, J.; Lloret, J. Wireless Sensors Self-Location in an Indoor WLAN Environment. In Proceedings of the 2007 International Conference on Sensor Technologies and Applications (SENSORCOMM 2007), Valencia, Spain, 14–20 October 2007; pp. 146–151. [Google Scholar] [CrossRef]
  13. Lloret, J.; Tomas, J.; Garcia, M.; Canovas, A. A Hybrid Stochastic Approach for Self-Location of Wireless Sensors in Indoor Environments. Sensors 2009, 9, 3695–3712. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  14. Patwari, N.; Ash, J.N.; Kyperountas, S.; Hero, A.O.; Moses, R.L.; Correal, N.S. Locating the nodes: cooperative localization in wireless sensor networks. IEEE Signal Process. Mag. 2005, 22, 54–69. [Google Scholar] [CrossRef]
  15. Arora, S.; Singh, S. Node Localization in Wireless Sensor Networks Using Butterfly Optimization Algorithm. Arab. J. Sci. Eng. 2017, 42, 3325–3335. [Google Scholar] [CrossRef]
  16. Goyal, S.; Patterh, M.S. Wireless Sensor Network Localization Based on Cuckoo Search Algorithm. Wirel. Pers. Commun. 2014, 79, 223–234. [Google Scholar] [CrossRef]
  17. Bonabeau, E.; Dorigo, M.; Theraulaz, G. Swarm Intelligence: From Natural to Artificial Systems; Oxford University Press: Oxford, UK, 1999; p. 307. [Google Scholar]
  18. Cheng, J.; Xia, L. An Effective Cuckoo Search Algorithm for Node Localization in Wireless Sensor Network. Sensors 2016, 16, 1390. [Google Scholar] [CrossRef]
  19. Correia, S.D.; Beko, M.; Cruz, L.A.D.S.; Tomic, S. Elephant Herding Optimization for Energy-Based Localization. Sensors 2018, 18, 2849. [Google Scholar] [CrossRef]
  20. Sharma, G.; Kumar, A. Improved range-free localization for three-dimensional wireless sensor networks using genetic algorithm. Comput. Electr. Eng. 2018, 72, 808–827. [Google Scholar] [CrossRef]
  21. Peng, B.; Li, L. An improved localization algorithm based on genetic algorithm in wireless sensor networks. Cognit. Neurodyn. 2015, 9, 249–256. [Google Scholar] [CrossRef] [Green Version]
  22. Najeh, T.; Sassi, H.; Liouane, N. A Novel Range Free Localization Algorithm in Wireless Sensor Networks Based on Connectivity and Genetic Algorithms. Int. J. Wirel. Inf. Netw. 2018, 25, 88–97. [Google Scholar] [CrossRef]
  23. Kennedy, J.; Eberhart, R. Particle Swarm Optimization; IEEE: Perth, Australia, 1995; Volume 4, pp. 1942–1948. [Google Scholar]
  24. Cui, H.; Shu, M.; Song, M.; Wang, Y. Parameter Selection and Performance Comparison of Particle Swarm Optimization in Sensor Networks Localization. Sensors 2017, 17, 487. [Google Scholar] [CrossRef]
  25. Nagireddy, V.; Parwekar, P.; Mishra, T.K. Velocity adaptation based PSO for localization in wireless sensor networks. Evol. Intell. 2018. [Google Scholar] [CrossRef]
  26. Singh, S.P.; Sharma, S.C. A PSO Based Improved Localization Algorithm for Wireless Sensor Network. Wirel. Pers. Commun. 2018, 98, 487–503. [Google Scholar] [CrossRef]
  27. Gharghan, S.K.; Nordin, R.; Ismail, M. A Wireless Sensor Network with Soft Computing Localization Techniques for Track Cycling Applications. Sensors 2016, 16, 1043. [Google Scholar] [CrossRef] [PubMed]
  28. Fouad, M.M.; Snasel, V.; Hassanien, A.E. An Adaptive PSO-Based Sink Node Localization Approach for Wireless Sensor Networks. In Second International Afro-European Conference for Industrial Advancement AECIA 2015; Abraham, A., Wegrzyn-Wolska, K., Hassanien, A.E., Snasel, V., Alimi, A.M., Eds.; Springer International Publishing: Cham, Switzerland, 2016; pp. 679–688. [Google Scholar]
  29. Bacanin, N.; Tuba, M. Artificial Bee Colony (ABC) Algorithm for Constrained Optimization Improved with Genetic Operators. Stud. Inform. Control 2012, 21, 137–146. [Google Scholar] [CrossRef]
  30. Tuba, M.; Bacanin, N. Artificial bee colony algorithm hybridized with firefly metaheuristic for cardinality constrained mean-variance portfolio problem. Appl. Math. Inf. Sci. 2014, 8, 2831–2844. [Google Scholar] [CrossRef]
  31. Bacanin, N.; Tuba, M.; Strumberger, I. RFID Network Planning by ABC Algorithm Hybridized with Heuristic for Initial Number and Locations of Readers. In Proceedings of the 2015 17th UKSim-AMSS International Conference on Modelling and Simulation (UKSim), Cambridge, UK, 25–27 March 2015; pp. 39–44. [Google Scholar] [CrossRef]
  32. Kulkarni, V.R.; Desai, V.; Kulkarni, R.V. Multistage localization in wireless sensor networks using artificial bee colony algorithm. In Proceedings of the 2016 IEEE Symposium Series on Computational Intelligence (SSCI), Athens, Greece, 6–9 December 2016; pp. 1–8. [Google Scholar] [CrossRef]
  33. Cheng, L.; Qu, L.; Xu, Y. Artificial bee colony algorithm-based multiple-source localization method for wireless sensor network. In Proceedings of the 2017 2nd IEEE International Conference on Computational Intelligence and Applications (ICCIA), Beijing, China, 8–11 September 2017; pp. 445–448. [Google Scholar] [CrossRef]
  34. Bacanin, N.; Tuba, M. Firefly Algorithm for Cardinality Constrained Mean-Variance Portfolio Optimization Problem with Entropy Diversity Constraint. Sci. World J. 2014, 2014, 721521. [Google Scholar] [CrossRef]
  35. Strumberger, I.; Bacanin, N.; Tuba, M. Enhanced Firefly Algorithm for Constrained Numerical Optimization, IEEE Congress on Evolutionary Computation. In Proceedings of the IEEE International Congress on Evolutionary Computation (CEC 2017), San Sebastian, Spain, 5–8 June 2017; pp. 2120–2127. [Google Scholar]
  36. Tuba, M.; Bacanin, N. Improved seeker optimization algorithm hybridized with firefly algorithm for constrained optimization problems. Neurocomputing 2014, 143, 197–207. [Google Scholar] [CrossRef]
  37. Tuba, E.; Tuba, M.; Beko, M. Two Stage Wireless Sensor Node Localization Using Firefly Algorithm. In Smart Trends in Systems, Security and Sustainability; Yang, X.S., Nagar, A.K., Joshi, A., Eds.; Springer: Singapore, 2018; pp. 113–120. [Google Scholar]
  38. Singh, P.; Khosla, A.; Kumar, A.; Khosla, M. Computational intelligence based localization of moving target nodes using single anchor node in wireless sensor networks. Telecommun. Syst. 2018, 69, 397–411. [Google Scholar] [CrossRef]
  39. Wang, G.G.; Deb, S.; Cui, Z. Monarch Butterfly Optimization. Neural Comput. Appl. 2015, 1–20. [Google Scholar] [CrossRef]
  40. Strumberger, I.; Tuba, E.; Bacanin, N.; Beko, M.; Tuba, M. Monarch butterfly optimization algorithm for localization in wireless sensor networks. In Proceedings of the 2018 28th International Conference Radioelektronika (RADIOELEKTRONIKA), Prague, Czech Republic, 19–20 April 2018; pp. 1–6. [Google Scholar] [CrossRef]
  41. Wang, G.G. Moth search algorithm: A bio-inspired metaheuristic algorithm for global optimization problems. Memet. Comput. 2018, 10, 151–164. [Google Scholar] [CrossRef]
  42. Strumberger, I.; Sarac, M.; Markovic, D.; Bacanin, N. Moth Search Algorithm for Drone Placement Problem. Int. J. Comput. 2018, 3, 75–80. [Google Scholar]
  43. Strumberger, I.; Tuba, E.; Bacanin, N.; Beko, M.; Tuba, M. Wireless Sensor Network Localization Problem by Hybridized Moth Search Algorithm. In Proceedings of the 2018 14th International Wireless Communications Mobile Computing Conference (IWCMC), Limassol, Cyprus, 25–29 June 2018; pp. 316–321. [Google Scholar] [CrossRef]
  44. Yang, X.S.; Deb, S. Cuckoo search via Levy flights. In Proceedings of the World Congress on Nature & Biologically Inspired Computing (NaBIC 2009), Coimbatore, India, 9–11 December 2009; pp. 210–214. [Google Scholar]
  45. Bacanin, N. Implementation and performance of an object-oriented software system for cuckoo search algorithm. Int. J. Math. Comput. Simul. 2010, 6, 185–193. [Google Scholar]
  46. Yang, X.S. A new metaheuristic bat-inspired Algorithm. Stud. Comput. Intell. 2010, 284, 65–74. [Google Scholar]
  47. Tuba, M.; Bacanin, N. Hybridized Bat Algorithm for Multi-objective Radio Frequency Identification (RFID) Network Planning. In Proceedings of the 2015 IEEE Congress on Evolutionary Computation (CEC 2015), Sendai, Japan, 25–28 May 2015. [Google Scholar]
  48. Goyal, S.; Patterh, M.S. Modified Bat Algorithm for Localization of Wireless Sensor Network. Wirel. Pers. Commun. 2015, 86, 657–670. [Google Scholar] [CrossRef]
  49. Yu, S.; Xu, Y.; Jiang, P.; Wu, F.; Xu, H. Node Self-Deployment Algorithm Based on Pigeon Swarm Optimization for Underwater Wireless Sensor Networks. Sensors 2017, 17, 674. [Google Scholar] [CrossRef]
  50. Yan, Z.; Goswami, P.; Mukherjee, A.; Yang, L.; Routray, S.; Palai, G. Low-energy PSO-based node positioning in optical wireless sensor networks. Optik 2019, 181, 378–382. [Google Scholar] [CrossRef]
  51. Azharuddin, M.; Jana, P.K. Particle swarm optimization for maximizing lifetime of wireless sensor networks. Comput. Electr. Eng. 2016, 51, 26–42. [Google Scholar] [CrossRef]
  52. Wang, J.; Gao, Y.; Liu, W.; Sangaiah, A.K.; Kim, H.J. An Improved Routing Schema with Special Clustering Using PSO Algorithm for Heterogeneous Wireless Sensor Network. Sensors 2019, 19, 671. [Google Scholar] [CrossRef]
  53. Sambo, D.W.; Yenke, B.O.; Förster, A.; Dayang, P. Optimized Clustering Algorithms for Large Wireless Sensor Networks: A Review. Sensors 2019, 19, 322. [Google Scholar] [CrossRef]
  54. Cheraghalipour, A.; Hajiaghaei-Keshteli, M. Tree Growth Algorithm (TGA): An Effective Metaheuristic Algorithm Inspired by trees’ behavior. In Proceedings of the 2017 13th International Conference on Industrial Engineering (IIEC), Babol, Iran, 22–23 February 2017; Volume 7. [Google Scholar]
  55. Cheraghalipour, A.; Hajiaghaei-Keshteli, M.; Paydar, M.M. Tree Growth Algorithm (TGA): A novel approach for solving optimization problems. Eng. Appl. Artif. Intell. 2018, 72, 393–414. [Google Scholar] [CrossRef]
  56. Wang, G.G.; Deb, S.; Dos Santos Coelho, L. Elephant Herding Optimization. In Proceedings of the 2015 3rd International Symposium on Computational and Business Intelligence (ISCBI), Bali, Indonesia, 7–9 December 2015; pp. 1–5. [Google Scholar]
  57. Wang, G.G.; Deb, S.; Gao, X.Z.; Dos Santos Coelho, L. A new metaheuristic optimisation algorithm motivated by elephant herding behaviour. Int. J. Bio-Inspir. Comput. 2017, 8, 394–409. [Google Scholar] [CrossRef]
  58. Strumberger, I.; Bacanin, N.; Beko, M.; Tomic, S.; Tuba, M. Static Drone Placement by Elephant Herding Optimization Algorithm. In Proceedings of the 24th Telecommunications Forum (TELFOR), Belgrade, Serbia, 21–22 November 2017. [Google Scholar]
  59. Tuba, E.; Alihodzic, A.; Tuba, M. Multilevel image thresholding using elephant herding optimization algorithm. In Proceedings of the 14th International Conference on the Engineering of Modern Electric Systems (EMES), Oradea, Romania, 1–2 June 2017; pp. 240–243. [Google Scholar]
  60. Karaboga, D.; Basturk, B. Artificial bee colony (ABC) optimization algorithm for solving constrained optimization problems. Found. Fuzzy Log. Soft Comput. LNCS 2007, 4529, 789–798. [Google Scholar]
  61. Strumberger, I.; Bacanin, N.; Tuba, M. Hybridized ElephantHerding Optimization Algorithm for Constrained Optimization. In Hybrid Intelligent Systems; Abraham, A., Muhuri, P.K., Muda, A.K., Gandhi, N., Eds.; Springer International Publishing: Cham, Switzerland, 2018; pp. 158–166. [Google Scholar]
  62. Baykasoğlu, A.; Akpinar, Ş. Weighted Superposition Attraction (WSA): A swarm intelligence algorithm for optimization problems—Part 1: Unconstrained optimization. Appl. Soft Comput. 2017, 56, 520–540. [Google Scholar] [CrossRef]
Figure 1. Trilateral positioning method.
Figure 1. Trilateral positioning method.
Sensors 19 02515 g001
Figure 2. Dynamic search tree growth algorithm (dynsTGA) convergence speed for some unconstrained benchmarks.
Figure 2. Dynamic search tree growth algorithm (dynsTGA) convergence speed for some unconstrained benchmarks.
Sensors 19 02515 g002
Figure 3. Hybridized elephant herding optimization (HEHO) convergence speed for some unconstrained benchmarks.
Figure 3. Hybridized elephant herding optimization (HEHO) convergence speed for some unconstrained benchmarks.
Sensors 19 02515 g003
Figure 4. Node localization using original TGA and dynamic TGA.
Figure 4. Node localization using original TGA and dynamic TGA.
Sensors 19 02515 g004
Figure 5. Node localization using original EHO and hybridized EHO.
Figure 5. Node localization using original EHO and hybridized EHO.
Sensors 19 02515 g005
Figure 6. Convergence speed—dynsTGA vs. HEHO (50 targets and 15 anchors).
Figure 6. Convergence speed—dynsTGA vs. HEHO (50 targets and 15 anchors).
Sensors 19 02515 g006
Figure 7. Convergence speed—dynsTGA vs. HEHO (100 targets and 25 anchors).
Figure 7. Convergence speed—dynsTGA vs. HEHO (100 targets and 25 anchors).
Sensors 19 02515 g007
Figure 8. Convergence speed—dynsTGA vs. HEHO (150 targets and 35 anchors).
Figure 8. Convergence speed—dynsTGA vs. HEHO (150 targets and 35 anchors).
Sensors 19 02515 g008
Figure 9. Percentage of localized nodes vs. transmission range.
Figure 9. Percentage of localized nodes vs. transmission range.
Sensors 19 02515 g009
Figure 10. Percentage of localized nodes vs. number of anchor nodes.
Figure 10. Percentage of localized nodes vs. number of anchor nodes.
Sensors 19 02515 g010
Figure 11. Localization error vs. number of generations.
Figure 11. Localization error vs. number of generations.
Sensors 19 02515 g011
Table 1. Benchmark function details.
Table 1. Benchmark function details.
IDName of the ProblemDim.TypeParameter RangeOptimum
F1Ackley’s Problem (ACK)10Multimodal(−30,30) f ( x * = 0 ) at x * = ( 0 , , 0 )
F2Aluffi–Pentini’s Problem (AP)2Multimodal(−10,10) f ( x * 0.3523 ) at x * = ( 1 , , 0 )
F3Becker and Lago Problem (BL)2Multimodal(−10,10) f ( x * = 0 ) at x * = ( 5 , , 5 )
F4Easom Problem (EP)2Unimodal(−10,10) f ( x * = 1 ) at x * = ( π , π )
F5Rastrigin Problem (RG)10Multimodal(−5.12,5.12) f ( x * = 0 ) at x * = ( 0 , , 0 )
F6Rosenbrock Problem (RB)10Multimodal(−30,30) f ( x * = 0 ) at x * = ( 1 , , 1 )
F7Goldstein and Price Problem (GP)2Multimodal(−2,2) f ( x * = 3 ) at x * = ( 0 , 1 )
F8Gulf Research Problem (GRP)2Unimodal(0,100) f ( x * = 0 ) at x * = ( 50 , 25 , 1.5 )
Table 2. Comparative analysis—tree growth algorithm (TGA) vs. dynamic search TGA (dynsTGA) (best results for each performance indicator are marked bold).
Table 2. Comparative analysis—tree growth algorithm (TGA) vs. dynamic search TGA (dynsTGA) (best results for each performance indicator are marked bold).
IDIndicatorTGAdynsTGA
Best0.000.00
F1Mean0.000.00
StdDev0.000.00
Best−0.35239−0.35239
F2Mean−0.35239−0.35239
StdDev6.09 × 10−73.53 × 10−9
Best1.07 × 10−80.00
F3Mean3.70 × 10−72.04 × 10−9
StdDev5.84 × 10−75.11 × 10−10
Best−0.99999−0.99999
F4Mean−0.99999−0.99999
StdDev1.59 × 10−68.45 × 10−7
Best0.000.00
F5Mean0.000.00
StdDev0.000.00
Best0.56530.5361
F6Mean0.82310.8502
StdDev0.34190.3137
Best3.002073.00000
F7Mean3.112533.00068
StdDev1.34 × 10−17.305 × 10−4
Best1.52 × 10−58.45 × 10−6
F8Mean7.05 × 10−23.50 × 10−2
StdDev2.60 × 10−11.72 × 10−1
Table 3. Comparative analysis—elephant herding optimization (EHO) vs. hybridized EHO (HEHO). (best results for each performance indicator are marked bold).
Table 3. Comparative analysis—elephant herding optimization (EHO) vs. hybridized EHO (HEHO). (best results for each performance indicator are marked bold).
IDIndicatorEHOHEHO
Best1.3 × 10−30.00
F1Mean4.5 × 10−20.00
StdDev5.7 × 10−50.00
Best−0.35239−0.35239
F2Mean−0.35239−0.35239
StdDev5.13 × 10−42.28 × 10−8
Best5.05 × 10−60.00
F3Mean5.61 × 10−35.44 × 10−8
StdDev6.15 × 10−56.01 × 10−9
Best−0.99999−0.99999
F4Mean−0.99999−0.99999
StdDev5.56 × 10−41.22 × 10−5
Best0.000.00
F5Mean0.000.00
StdDev0.000.00
Best0.57920.5395
F6Mean0.89620.8876
StdDev0.36380.3053
Best3.003573.00000
F7Mean3.120023.00083
StdDev1.34 × 10−16.211 × 10−4
Best4.32 × 10−52.05 × 10−6
F8Mean1.15 × 10−24.64 × 10−2
StdDev1.88 × 10−11.92 × 10−1
Table 4. Comparative analysis—HEHO and dynsTGA vs. other metaheuristics for unconstrained benchmarks. (best results for each performance indicator are marked bold).
Table 4. Comparative analysis—HEHO and dynsTGA vs. other metaheuristics for unconstrained benchmarks. (best results for each performance indicator are marked bold).
IDIndicatorIBPALADATSWSAHEHOdynsTGA
Best0.008150.000880.141850.888 × 10−150.000.00
F1Mean0.022600.004730.385280.888 × 10−150.000.00
StdDev0.010210.001570.074881.0029 × 10−310.000.00
Best−0.35238−0.35238−0.35238−0.35238−0.35239−0.35239
F2Mean−0.35238−0.35238−0.35238−0.35236−0.35239−0.35239
StdDev1.067 × 10−65.576 × 10−72.183 × 10−58.761 × 10−62.28 × 10−83.53 × 10−9
Best3.217 × 10−91.259 × 10−93.955 × 10−75.589 × 10−80.000.00
F3Mean2.826 × 10−72.486 × 10−77.637 × 10−61.267 × 10−75.44 × 10−82.04 × 10−9
StdDev2.838 × 10−72.704 × 10−76.302 × 10−63.877 × 10−86.01 × 10−95.11 × 10−10
Best−0.99999−0.99999−0.99999−0.99999−0.99999−0.99999
F4Mean−0.83334−0.99999−0.46667−0.99957−0.99999−0.99999
StdDev0.3790102.885 × 10−60.5073302.025 × 10−41.22 × 10−58.45 × 10−5
Best0.087900.006064.587530.000.000.00
F5Mean0.292750.015846.355410.000.000.00
StdDev0.124810.005540.894050.000.000.00
Best1.657813.116124.73958.91670.53950.5361
F6Mean12.142026.474066.10248.94490.88760.8502
StdDev14.920214.952119.17630.01600.30530.3137
Best3.000003.000003.000003.000003.000003.00000
F7Mean5.7000110.007103.000533.000323.000833.00068
StdDev8.2384716.466705.751 × 10−41.622 × 10−46.211 × 10−47.305 × 10−4
Best5.399 × 10−68.124 × 10−53.120 × 10−532.832.05 × 10−68.45 × 10−6
F8Mean0.001575.362 × 10−42.047 × 10−432.834.64 × 10−23.50 × 10−2
StdDev0.001623.456 × 10−41.382 × 10−41.445 × 10−151.92 × 10−11.72 × 10−1
Table 5. Simulation results for M = 40 , N = 8 and the search domain area 100 U × 100 U with different values for P n averaged in 30 runs—comparative analysis between EHO, HEHO, TGA, and dynsTGA (best results for each performance indicator are marked bold).
Table 5. Simulation results for M = 40 , N = 8 and the search domain area 100 U × 100 U with different values for P n averaged in 30 runs—comparative analysis between EHO, HEHO, TGA, and dynsTGA (best results for each performance indicator are marked bold).
Algorithms P n = 5 P n = 2
Mean N NL Mean E L Computing Time (s)Mean N NL Mean E L Computing Time (s)
EHO6.80.791.16.20.710.9
HEHO5.30.451.25.10.371.0
TGA5.50.420.95.00.360.8
dynsTGA4.50.191.24.30.161.1
Table 6. Simulation results for M = 40 , N = 8 and the search domain area 100 U × 100 U with different values for P n averaged in 30 runs—comparative analysis between butterfly optimization algorithm (BOA), firefly algorithm (FA), particle swarm optimization (PSO), EHO, HEHO, TGA, and dynsTGA (results for BOA, FA, and PSO were taken from [15]) (best results for each performance indicator are marked bold).
Table 6. Simulation results for M = 40 , N = 8 and the search domain area 100 U × 100 U with different values for P n averaged in 30 runs—comparative analysis between butterfly optimization algorithm (BOA), firefly algorithm (FA), particle swarm optimization (PSO), EHO, HEHO, TGA, and dynsTGA (results for BOA, FA, and PSO were taken from [15]) (best results for each performance indicator are marked bold).
Algorithms P n = 5 P n = 2
Mean N NL Mean E L Computing Time (s)Mean N NL Mean E L Computing Time (s)
BOA4.70.280.654.50.210.53
FA6.60.722.156.20.691.94
PSO5.90.810.545.60.780.49
EHO6.80.791.16.20.710.9
HEHO5.30.451.25.10.371.0
TGA5.50.420.95.00.360.8
dynsTGA4.50.191.24.30.161.1
Table 7. Detailed results of EHO, HEHO, TGA, and dynsTGA proposed localization ( N L = number of localized nodes, E L = localization error, T E = execution time in seconds).
Table 7. Detailed results of EHO, HEHO, TGA, and dynsTGA proposed localization ( N L = number of localized nodes, E L = localization error, T E = execution time in seconds).
Target NodeAnchor NodeTrialEHOHEHOTGAdynsTGA
N L E L T E N L E L T E N L E L T E N L E L T E
25101170.6545920.83210.3055021.15200.2730540.79250.1953311.36
2210.7563291.05220.2780370.98230.2955300.65230.1684311.22
3180.7762310.89210.2467621.03220.2279910.87250.1778921.39
4210.6955201.11200.2399521.16190.3099820.92240.2096441.16
5180.6859760.95190.2574050.99200.2519820.73250.1957991.41
50151470.4733201.32490.3950291.73500.3148751.32470.2755831.96
2460.3999211.53500.3652821.85480.2630501.17460.2195922.13
3500.6354861.49460.4492521.59460.4300581.41500.2597651.86
4470.3705421.55490.2694401.93470.3054061.49470.2300592.06
5490.5562541.58500.4245321.66480.2536791.22480.2959042.16
75201740.6395212.33720.3508752.20740.2632311.65730.1998612.62
2700.5582611.95740.2808432.73750.3866992.07750.1800292.99
3730.7252012.16750.2732322.16740.2356111.83750.2198652.70
4750.5920352.43710.4050242.66700.2409591.66720.2994002.56
5720.7730612.37740.3015572.27730.3340122.22720.1602932.51
100251990.5385222.521000.4145633.031000.3221052.721000.2252003.61
21000.6606313.07990.2954023.521000.2886442.691000.2605023.15
3970.5020852.87990.2894363.891000.4372752.161000.1940394.11
41000.5276512.90990.5009293.161000.2900112.921000.2463093.62
5960.6855422.441000.3055213.441000.4000913.061000.2055824.01
1253011240.8325293.811220.6053315.051250.5290993.751250.4450444.82
21200.6021324.221250.6330794.241230.6752493.261250.5751664.95
31210.9193084.381240.9999755.131250.5616293.181240.3988025.75
41250.7620353.671230.6752264.291230.5305553.661250.6091824.52
51210.6135524.311250.6600224.951240.6070113.791240.3998055.55
1503511490.8999135.711500.6555206.851490.8702524.711490.6212037.43
21480.7272014.691500.8935295.751500.7303184.331500.8252766.06
31500.7082225.371490.6987366.711500.6900914.791500.8159006.23
41500.9661525.031500.8510125.691490.6552134.281490.5999727.33
51480.6986574.811490.8899026.661490.8205104.791500.8722176.77
Table 8. Detailed results of BOA, FA, PSO, HEHO, and dynsTGA proposed localization—results for BOA, FA, and PSO were taken from [15] ( N L = number of localized nodes, E L = localization error, T E = execution time in seconds).
Table 8. Detailed results of BOA, FA, PSO, HEHO, and dynsTGA proposed localization—results for BOA, FA, and PSO were taken from [15] ( N L = number of localized nodes, E L = localization error, T E = execution time in seconds).
Target NodeAnchor NodeTrialBOAFAPSOHEHOdynsTGA
N L E L T E N L E L T E N L E L T E N L E L T E N L E L T E
25101230.2079080.40190.3355511.44220.8071580.36210.3055021.15250.1953311.36
2240.1882240.33200.2464231.44170.7282140.39220.2780370.98230.1684311.22
3250.2245100.38210.2963981.70180.7976500.40210.2467621.03250.1778921.39
4250.199630.38200.2561681.65170.7391020.39200.2399521.16240.2096441.16
5240.2122470.31190.2784591.57190.7991640.36190.2574050.99250.1957991.41
50151460.2353260.77500.5055112.50480.5787970.74490.3950291.73470.2755831.96
2490.2604900.81490.3269804.42500.7532540.85500.3652821.85460.2195922.13
3480.3610800.92490.2548241.63470.5870040.75460.4492521.59500.2597651.86
4500.3239100.86480.2278423.90460.4387480.76490.2694401.93470.2300592.06
5490.3514150.91490.24764134.19470.4867840.85500.4245321.66480.2959042.16
75201750.3283101.68740.7039642.97750.674141.31720.3508752.20730.1998612.62
2750.2196801.52750.2918622.73750.7201231.35740.2808432.73750.1800292.99
3680.1789601.52720.2791265.84730.7713251.30750.2732322.16750.2198652.70
4750.1839421.43710.2848654.70720.7984571.32710.4050242.66720.2994002.56
5730.1967811.69730.29078463.97730.6978141.31740.3015572.27720.1602932.51
1002511000.2188382.291000.7797165.661000.6682272.491000.4145633.031000.2252003.61
21000.2950082.271000.2991946.331000.6148432.10990.2954023.521000.2605023.15
31000.2164142.321000.3857583.551000.6081552.20990.2894363.891000.1940394.11
41000.2358042.371000.5894944.561000.6271972.35990.5009293.161000.2463093.62
51000.2593122.451000.5135914.931000.6532582.161000.3055213.441000.2055824.01
1253011240.6157123.121220.9388942.7071190.6009573.901220.6053315.051250.4450444.82
21230.4376513.651230.6514595.9951230.6623223.871250.6330794.241250.5751664.95
31250.5687544.261230.8316832.7091250.5934214.901240.9999755.131240.3988025.75
41240.6574993.761250.9508423.111250.6084123.981230.6752264.291250.6091824.52
51250.5457893.871250.9126665.8941250.7441934.901250.6600224.951240.3998055.55
1503511500.7437805.671490.9578183.3861490.6576795.031500.6555206.851490.6212037.43
21500.8875614.871500.9738913.4591490.7737645.161500.8935295.751500.8252766.06
31500.7653475.651500.8540965.8941500.6204034.221490.6987366.711500.8159006.23
41490.6653484.121500.6724514.871500.7666215.211500.8510125.691490.5999727.33
51500.7876894.761200.6327273.3561500.6252784.431490.8899026.661500.8722176.77

Share and Cite

MDPI and ACS Style

Strumberger, I.; Minovic, M.; Tuba, M.; Bacanin, N. Performance of Elephant Herding Optimization and Tree Growth Algorithm Adapted for Node Localization in Wireless Sensor Networks. Sensors 2019, 19, 2515. https://doi.org/10.3390/s19112515

AMA Style

Strumberger I, Minovic M, Tuba M, Bacanin N. Performance of Elephant Herding Optimization and Tree Growth Algorithm Adapted for Node Localization in Wireless Sensor Networks. Sensors. 2019; 19(11):2515. https://doi.org/10.3390/s19112515

Chicago/Turabian Style

Strumberger, Ivana, Miroslav Minovic, Milan Tuba, and Nebojsa Bacanin. 2019. "Performance of Elephant Herding Optimization and Tree Growth Algorithm Adapted for Node Localization in Wireless Sensor Networks" Sensors 19, no. 11: 2515. https://doi.org/10.3390/s19112515

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