Next Article in Journal
Clinical Effectiveness of 3D-Milled and 3D-Printed Zirconia Prosthesis—A Systematic Review and Meta-Analysis
Previous Article in Journal
Effect of Fly Ash on Mechanical Properties of Polymer Resin Grout
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Joint Light-Sensitive Balanced Butterfly Optimizer for Solving the NLO and NCO Problems of WSN for Environmental Monitoring

1
Electrical Engineering College, Guizhou University, Guiyang 550025, China
2
School of Computer Science and Engineering, South China University of Technology, Guangzhou 510006, China
*
Authors to whom correspondence should be addressed.
Biomimetics 2023, 8(5), 393; https://doi.org/10.3390/biomimetics8050393
Submission received: 12 July 2023 / Revised: 16 August 2023 / Accepted: 24 August 2023 / Published: 26 August 2023

Abstract

:
Existing swarm intelligence (SI) optimization algorithms applied to node localization optimization (NLO) and node coverage optimization (NCO) problems have low accuracy. In this study, a novel balanced butterfly optimizer (BBO) is proposed which comprehensively considers that butterflies in nature have both smell-sensitive and light-sensitive characteristics. These smell-sensitive and light-sensitive characteristics are used for the global and local search strategies of the proposed algorithm, respectively. Notably, the value of individuals’ smell-sensitive characteristic is generally positive, which is a point that cannot be ignored. The performance of the proposed BBO is verified by twenty-three benchmark functions and compared to other state-of-the-art (SOTA) SI algorithms, including particle swarm optimization (PSO), differential evolution (DE), grey wolf optimizer (GWO), artificial butterfly optimization (ABO), butterfly optimization algorithm (BOA), Harris hawk optimization (HHO), and aquila optimizer (AO). The results demonstrate that the proposed BBO has better performance with the global search ability and strong stability. In addition, the BBO algorithm is used to address NLO and NCO problems in wireless sensor networks (WSNs) used in environmental monitoring, obtaining good results.

1. Introduction

Sensor networks play a vital role in the study of intelligent environmental monitoring systems [1,2]. Node localization optimization (NLO) and node coverage optimization (NCO) are important problems in WSNs [3,4,5,6], which are the core component of the Internet of Things (IoT) for intelligent management. The emergence of SI optimization algorithms provides novel approaches for many practical optimization problems that are difficult to solve. At present, the global positioning system (GPS) and Beidou navigation system of China can accurately locate the target; however, certain places, such as indoor locales, dense forests, mountains, caves, and underwater situations, satellite positioning technology cannot precisely locate the target due to the interference or even shielding of the signal by the obstruction. Thus, there is great significance involved in studying the NLO and NCO problems in the context of WSNs, along with substantial challenges. Recently, swarm intelligence (SI) optimization algorithms have been widely used in WSN node deployment, positioning, routing, and other problems [7,8,9]. It is worth noting that several heuristic algorithms have been proposed based on the social behavior and physiological characteristics of butterflies.
There are a great many species of butterflies [10,11,12], most of which rely on scent perception for foraging and mating; others have strong visual sensitivity, and rely on their vision for foraging [13]. In past studies, researchers have been inspired by the inherent characteristics of butterflies, including behaviors such as migration, flight, foraging, and mating. Several swarm intelligence algorithms have been inspired by these behaviors of butterflies, including monarch butterfly optimization (MBO) [14], artificial butterfly optimization (ABO) [15], butterfly optimization algorithm (BOA) [16], and more. MBO is an optimization algorithm proposed by designing a search strategy based on the migration characteristics of monarch butterflies. The ABO algorithm designs the butterfly’s flight strategy solely from the artificial point of view, then divides the butterfly population into two categories and updates their positions during flight using the relative position. The BOA established an odor foraging model of butterflies; however, it cannot solve all 23 CEC benchmark functions [17,18]. The reason for this is that the odor model generates negative numbers for certain problems, which biases the search range of individuals and leads to optimization with imaginary numbers for certain benchmark functions.
Aiming at the shortcomings of BOA-based modeling and inspired by the literature [19], a novel smell- and light-sensitive balanced butterfly optimizer (BBO) is proposed in this paper, distinguished by a simple structure and conforming to the characteristics of actual butterfly behaviors. The global and local search strategies of the BBO are inspired by the natural characteristics of different species of butterflies. First, different species of butterflies have light-sensing characteristics, which should be considered because their visual function is better than their odor function. Second, the smell perception of butterflies is used in the process of foraging or courtship, and the corresponding odor value from the mathematical point of view is positive. Therefore, the absolute value of smell characteristics is introduced to ensure the rationality of the proposed BBO algorithm. The main contributions of this study are summarized from the above motivation as follows:
  • According to the smell perception and light perception characteristics of actual butterflies in nature, a novel balanced butterfly optimizer (BBO) is proposed. Inspired by the physical properties of individuals, the search strategy is designed to avoid falling into local optima.
  • The superiority of the BBO is verified by numerical optimization experiments on all 23 CEC benchmark functions, then the results are compared with a variety of advanced SI algorithms.
  • The NLO and NCO problems of WSNs in IoT contexts are modeled; the proposed BBO is used to address these problems, showing better performance than several well-known SI algorithms.

2. Related Works

Among the existing swarm intelligence algorithms, the Firefly algorithm (FA) [20] is a typical SI method inspired by the photosensitivity characteristic of fireflies in nature. The fruitfly optimization algorithm (FOA) [21] is another typical SI algorithm that uses the social behavior of fruit fly odorant foraging and updates individual positions by smell. In addition, FA [22] and FOA [23] have been applied to the NLO problem of WSNs. Moreover, it is worth noting that the classic intelligent algorithms include GA [24], PSO [25], DE [26], FA [20] and GWO [27], among others [28,29,30,31]. DV-Hop localization is a classic non-ranging positioning algorithm; its principle is a distributed positioning method via distance vector hopping and positioning. Kanwar et al. [32] proposed an optimized DV-Hop localization method for sensor node displacement in WSNs using the PSO algorithm. Ouyang et al. [33] proposed an improved GA to optimize the node DV-Hop localization optimization algorithm for the NLO issue. However, the location accuracy of the above methods needs to be further enhanced.
Traditional WSN node localization technologies are mainly categorized into range-based location [34] and range-free location approaches [35]. The typical range-based location approaches use the received signal strength indicator (RSSI) [36], the time of arrival/difference of arrival (TOA/TDOA) [37,38], the angle of arrival (AOA) [39], etc. The typical range-free location approaches include centroid localization (EL), weighted centroid localization (WCL) [40], DV-Hop [32], multidimensional scaling (MDS) localization [41], approximate point-in-triangulation (APIT) localization [42], etc. It is worth noting that the range-based location approaches have higher positioning accuracy than those without ranging, while those without ranging have lower cost, lower power consumption, stronger resistance to measurement noise, and simpler hardware equipment. It is particularly important to note that as long as a range-free location alogorithm can meet the accuracy needs of the application it is generally preferable. A brief summary of NLO and NCO problems using SI algorithms is detailed in Table 1.
DV-Hop is a distributed localization algorithm that uses the routing and positioning of the distance vectors of nodes. It is popular due to its simplicity and low equipment requirements. SI algorithms have proven particularly effective when applied to the optimization of traditional localization algorithms. Shi et al. [43] proposed a modified PSO-DV-Hop method and used a path-matching strategy for searching the shortest path between anchor nodes and independently determining the distance of the average hop from unknown nodes to target anchors. Han et al. [44] used the DE algorithm combined with a weighted DV-Hop method in which the second step of the weighted DV-Hop algorithm used the average hop distance, then the location of unknown nodes was optimized by the DE. Zhang et al. [45] used an enhanced sparrow search algorithm (SSA) to optimize the DV-Hop localization method through a multi-hybrid strategy to improve the SSA and a dual communication radius method to modify the minimum number of hops between nodes while reducing the estimated distance error. In [46], a modified DV-Hop was proposed with an enhanced squirrel search algorithm, which was utilized to estimate the distance from unknown nodes to anchor nodes.
The optimization of node coverage plays a crucial role in improving the capabilities of the WSN work area. Notably, SI algorithms have played a significant role in the NCO problem for WSNs. Yang et al. [47] solved the sensor coverage problem with improved FA taking into account the target coverage and network node connectivity. A resampled PSO method was proposed by Wang et al. [48], which was utilized to optimize the node coverage control of WSNs in the IoT context. There are two optimization algorithms inspired by wolf packs which have been used to address the NCO issue. The first is the GWO-EH algorithm [49] and the other is the wolf pack algorithm (WPA) [50] coupled to the coverage-oriented method. Zhang et al. [51] proposed a node coverage optimization method via the hybrid HPSBA using different simulation areas. Quite successful results have been achieved by the aforementioned SI approaches; however, avoiding local optima remains difficult for a number of challenging problems, making the study of novel heuristic algorithms both necessary and significant.
The above summary describes the use of different kinds of SI algorithms to address the NLO and NCO problems of WSNs. Regardless of whether two-dimensional or three-dimensional positioning is used for the NLO, shortcomings such as insufficient positioning accuracy and low positioning efficiency are encountered. This study proposes the novel BBO algorithm combined with DV-Hop and applies it to the WSN node localization problem. In addition, the proposed BBO algorithm is used to address the NCO problem in WSNs to modify the node coverage ratio. Notably, the proposed BBO can be used to solve other optimization problems as well.

3. Problem Descriptions

3.1. Node Localization Optimization (NLO) Problem in WSNs

Anchors and unknown nodes are crucial for the NLO problem in WSNs. Anchor nodes are installed with GPS positioning devices, and their coordinates can be known through satellite positioning. The cost and energy consumption of anchor nodes is usually much higher than that of ordinary sensor nodes. The localization method is to locate and optimize the position of an unknown node through an anchor node with a known location. The description of the NLO problem is as follows: (1) there are m anchors with known positions and n unknown nodes with undetermined positions; (2) it is assumed that the anchors and unknown nodes of the sensor network are distributed on the L × L two-dimensional plane and that the nodes are randomly and uniformly distributed; (3) the measurement distance error conforms to a normal distribution and the measurement distance is d i j , meaning that we have
d i j = d i j · 1 + τ · ε ,
where d i j denotes the real distance from node i to node j, the distribution of ε is σ ( 0 , 1 ) , and τ is the error factor.
The typical DV-Hop approach without range-based positioning [32] includes three steps: calculating the minimum number of hops (MNH) between anchors; calculating the estimated distance from anchors to unknown nodes; and calculating the unknown node coordinate position. The steps of the basic DV-Hop algorithm can be summarized as follows.
In Step 1, the MNH is calculated through the flooding process, in which the anchors broadcast information to each node of the WSN, then the MNH between the unknown nodes and anchor nodes is calculated, as well as the MNH between the anchor nodes themselves, with each communication representing a hop.
In Step 2, the mean distance per hop H o p i of each anchor node and the estimated distance d u , i are calculated using Formulas (2) and (3), respectively:
H o p i = i j d i , j i j h i , j = i j ( x i x j ) 2 + ( y i y j ) 2 i j h i , j
where ( x i ,   y i ) represents the position coordinates of anchor node i, ( x j ,   x j ) represents the position coordinates of anchor node j, h i , j denotes the MNH from anchor node i to node j, and estimated distance d u , i from anchor node i to unknown node u is formulated as follows:
d u , i = H o p i × h u , i
where h u , i represents the MNH from unknown node u to anchor node i.
In Step 3, the fitness function of the node localization optimization algorithm is calculated using Formula (4):
f x u = i = 1 m ( x u x i ) 2 + ( y u y i ) 2 d u , i
where x u ,   y u represents the estimated position coordinates of the u-th unknown node, x i ,   y i denotes the position coordinates of the i-th anchor node, d u , i denotes the estimated distance from unknown node u to anchor node i, and m is the number of anchor nodes.

3.2. Node Coverage Optimization (NCO) Problem in WSNs

Assuming that the simulation work area is a two-dimensional space and the side length is L, there are n detection points that need to be perceived within the sensing radius of the sensor nodes; we use R s and R c to denote the sensing radius and communication radius, respectively. The Euclidean distance d ( i ,   s ) between sensor nodes and target points can be calculated as follows:
d ( i ,   s ) = ( x s x i ) 2 + ( y s y i ) 2
where ( x i ,   y i ) denotes the position coordinate of the i-th target point and ( x s ,   y s ) denotes the position coordinates of sensor node s. The coverage probability p using the binary perception model [51,52] from sensor node s to target node i is
p ( i ,   s ) = 0 , d ( i ,   s ) R s , 1 , d ( i ,   s ) < R s .
According to the binary perception model, the x-axis and y-axis of the two-dimensional deployment area can be divided into a step length q, that is, each segment length is l = q with an intersection q 2 of the node deployment area. The deployment node coverage rate of the work area is
C ov = p cov q 2 = i = 1 S p ( i ,   s ) q 2 .
According to the binary perception model and calculation of the node coverage rate of the NCO problem, the mathematical model of this problem can be summarized as a constrained optimization task with four constraints, defined as follows:
max f ( x ) = C o v , s . t g 1 = i = 1 S p ( i ,   s ) 0 g 2 = i = 1 S p ( i ,   s ) q 2 0 g 3 = d ( i ,   s ) R s 0 g 4 = S M 0
where p ( i ,   s ) denotes the probability of sensing nodes s covering and monitoring target nodes i, q 2 is the intersection of the node deployment area, d ( i ,   s ) is the Euclidean distance from sensor node s to the target monitored node i, R s indicates the sensing radius of the sensor node, M denotes the number of deployment nodes in the work area by the node-aware range in theory (that is, the sum of the node’s sensing range is equal to the simulation work area), and S represents the sensor node number in the monitoring area, which is greater than or equal to the theoretical number of nodes M.

4. Theory of the Balanced Butterfly Optimizer (BBO)

The BBO is inspired by the influence of both smell and light signals on the foraging process of butterflies. In addition, it is considered that butterflies are photosensitive and that the smell value is generally positive. The specific algorithm modeling processes are population initialization and individual smell and light perception characteristics, which correspond to global and local search, respectively.

4.1. Algorithmic Population Initialization

Assuming that the search space is D i m -dimensional, the expression of the initial position of the population is
X i , j = L B 1 , 1 L B 1 , j L B i , 1 L B i , j + U B 1 , 1 U B 1 , j U B i , 1 U B i , j L B 1 , 1 L B 1 , j L B i , 1 L B i , j · r a n d 1 , 1 r a n d 1 , j r a n d i , 1 r a n d i , j
where X i , j represents the individual initial position, i = 1 , 2 , , N P , j = 1 , 2 , , D i m , N P denotes the number of initial solutions, D i m denotes the dimension of the problem, U B i , j is the upper boundary value of the search space, L B i , j is the lower boundary value of the search space, and r a n d i , j represents a random value in ( 0 , 1 ) .

4.2. Modeling of the Odor- and Light-Sensitive Properties of Butterflies

In nature, there are many kinds of animals with smell perception, butterflies being a typical one; however, different butterfly species have different characteristics. Common butterflies are generally smell-sensing, while light-sensing butterflies mainly include Vanessa Indica [53], Swallowtail [54], and similar varieties; three of these butterfly species shown in Figure 1. Researchers have proven through experiments that these butterflies are affected by both olfactory and visual signals during foraging [55]. Thus, in the design of heuristic algorithms, mathematical modeling based on the conclusions of corresponding biological experiments should be more reasonable and competitive.
(1) Smell-Sensitive Properties
The smell-sensitive properties of butterflies taking into account the exponential diffusion form of odors can be defined as follows:
S m e l l i = r a n d · ( F i ) α + e p s
where S m e l l i represents the smell in the search process, which must be positive in practice and is represented by an absolute value, F i denotes the fitness value obtained by the objective function, r a n d denotes a random value in ( 0 ,   1 ) , α indicates the smell index, which has a value range pf ( 0.1 ,   0.6 ) , and e p s represents a non-zero infinite decimal, which prevents the smell value from becoming zero during the search process.
(2) Light-Sensitive Properties
The light-sensitive properties of butterflies are affected by the distance between individuals and their food sources or between multiple individuals, which can be defined as follows:
L i g h t i = L i g h t 0 · e x p ( D i j 2 )
where L i g h t i denotes the light sensitivity of butterflies and L i g h t 0 is the initial light sensitivity value, which is set to 1. The light-sensing distance D i j between the searched individual and the food source (or adjacent individuals) can be expressed as
D i j = X i t X j t .

4.3. Algorithmic Exploitation

The switching probability ( s p ) is a control parameter between global and local search in the BBO. In nature, there are more butterfly species that rely mainly on scent for foraging or mating than that forage using light. According to this cognitive law, the value of the parameter s p is set to 0.6 in this study. Two search strategies are considered in this study for the proposed algorithm; the best individual is used to choose a search strategy, with the mean position taken into consideration. For s p > r a n d , meaning that smell-sensitivity is the main search strategy in this stage, the definition is as follows:
X i t + 1 = X i t + r a n d · C · m e a n ( G b e s t , i t ) X i t · S m e l l i , i f s p > r a n d
where X i t represents the current position of the individuals, r a n d is a random number in (0, 1), C denotes a hyperparameter, which can be set to a random number between (0, 1) or to a constant, G b e s t , i t is the best individual’s search position, and S m e l l i is the smell sensitivity value in the search process. Alternatively, when light-sensitive is the main search strategy, the position of the individual is updated by
X i t + 1 = X i t + r a n d · X j t X k t · L i g h t i , i f s p r a n d
where X j t and X k t respectively represent the food source and neighboring individuals of the t-th iteration, r a n d is a random value in ( 0 ,   1 ) , and L i g h t i denotes the light sensitivity value in the search process.

4.4. Algorithm Computational Complexity Analysis

Different test platforms lead to differences in optimization time consumption for the same optimization method, meaning that the structure of the proposed BBO, that is, the computational complexity, must be analyzed taking this into account. The assumptions are as follows: N indicates the population size of the proposed algorithm, T represents the maximum number of iterations of the algorithm, and D is the dimension for the optimization problem. The computational complexity of the BBO can be summarized as follows: the initialization complexity of the population is O ( N D ) , the fitness computational complexity is O ( N D ) , the sensitivity selection computational complexity is O ( N 2 l o g N ) , and the location update of global and local search complexity is O ( N 2 l o g N ) . In addition, the complexity of the fitness sorting during the iteration of the algorithm is O ( N 2 ) . Thus, the total computational complexity of BBO is
O B B O = O N D + O ( T ) · O N D + 2 · O N 2 l o g N + O ( N 2 ) .

4.5. Flowchart and Pseudo-Code of BBO

The flowchart of BBO is presented in Figure 2. There are three main stages of BBO, introduced as follows: Stage 1 represents population initialization and the selection of initial optimal position and fitness values; Stage 2 includes search strategy selection and the process of optimizing the algorithm; and Stage 3 involves selecting the best population of individuals based on the fitness values during the optimization process. The best solution and fitness value are then output after T m a x iterations.
The main BBO pseudo-code showing the basic operation process is presented in Algorithm 1.
Algorithm 1: Pseudo-code of BBO
Biomimetics 08 00393 i001

5. Analysis of the Numerical Optimization Results

The benchmark functions of the optimization experiment were the CEC function from [17,18], which includes a total of 23 functions, of which F1 to F7 are unimodal functions, F8 to F13 are multimodal functions, and F14 to F23 are fixed-dimensional functions; the corresponding categories are U, M, and Fixed, respectively. Detailed descriptions of all 23 functions are provided in Table 2. The experimental environment was a Windows 10 system with an Intel(R) Core (TM) i5-10210U CPU @2.11 GHz, 16 GB memory, and the Matlab 2018a platform.

5.1. Hyperparameter Settings for the Comparison Methods

In this study, 23 benchmark functions were used to verify the performance and effectiveness of the proposed BBO using a random number in (0,1) for the parameter C. BBO was compared with the PSO [25], DE [26], GWO [27], ABO [15], BOA [16], HHO [56], and AO algorithms [30]. In addition, the proposed BBO was used for the NLO and NCO problems of WSNs in order to prove its practical applicability. The hyperparameter settings used for the comparison algorithms are presented in Table 3. The code of BBO is released at https://www.researchgate.net/profile/Mengjian-Zhang/research.
Each test benchmark function consisted of 30 independent runs and the T m a x for the optimization process was set to 1000. The evaluation of the compared SOTA methods included the mean (Mean) and standard deviation (Std) along with the Ranking, as shown in Table 4. Moreover, Table 5 shows the Wilcoxon rank-sum (WSR) test results among the comparison algorithms using a significance level of α = 0.05 .

5.2. Analysis of Benchmark Function Results

The 2D optimization process of the BBO algorithm for certain test functions (TF1, TF4, TF10, and TF23) was described through a visual experiment. The main aim was to qualitatively observe the behavior of the BBO. The shape of the test function, the search history, and the convergence curves of individuals are shown in Figure 3. The search history presents the location history of individual butterflies during an optimized search process. The convergence curve shows the target value of the optimal obtained in each iteration.
The individuals’ search history position in Figure 3 shows that there is a gradual approach to the optimal position during the optimization process. This ensures that the BBO continues to explore and exploit the search space, eventually converging to an optimal point. Compared with the convergence curves for the ABO and BOA in Figure 3, the BBO enhances the initial random population on the test function and ideally improves the accuracy of the approximate optimal value during the iterative process.
Table 4 shows the optimization results of eight comparison algorithms, including a statistical analysis of the Best, Mean, and Ranking of the comparison methods via the statistical results. Here, Best reflects the optimal searchability of BBO for solving numerical optimization problems; the closer the search value is to the value in theory, the better the search performance of the considered approach. The optimization results of the four high-dimensional test functions that reach the theoretical optimal value are TF1, TF3, TF9, and TF11. From the Mean in Table 4, it can be seen that the results of BBO on eight test functions are better than those of the other algorithms, while on nine test functions the optimization results of BBO have the same optimal value as the comparison algorithms. Moreover, the Std objectively shows the stability of the compared methods for solving numerical optimization problems. The results indicate that BBO has high stability and strong generalization ability for numerical optimization problems. From the statistical results of the Friedman test in Table 4, the order of the eight comparison algorithms for the 23 CEC functions is B B O > H H O > A O > D E > G W O > P S O > A B O > B O A .
Notably, the optimization results for the BOA on test functions TF8, TF16, TF19, and TF20 are marked NAN. The reason for this is due to the insufficient design of the BOA. The odor perception value of actual butterflies is positive, and the BOA does not take this into account. It is worth noting that this is a crucial motivation behind our proposed BBO algorithm. In the proposed BBO, the individual’s smell perception value is positive; thus, there is no NAN in the optimization result value.

5.3. Analysis of the NLO Problem Results

The BBO algorithm was used to optimize DV-Hop to address the deficiency of the least squares method for the WSN NLO problem. The BBO-DV-Hop localization optimization method obtained better localization accuracy of an unknown node. The anchor nodes were deployed first, then BBO-DV-Hop was utilized to locate the unknown node’s position based on the known coordinates of the anchor nodes. The pseudo-code of the NLO problem via the BBO-DV-Hop algorithm is provided in Algorithm 2.
Algorithm 2: Pseudo-code of BBO-DV-Hop
Biomimetics 08 00393 i002
The Average Location Error (ALE) evaluation criteria can be expressed as
A L E = x u e s t i m a t e x u r e a l i t y 2 + y u e s t i m a t e y u e s t i m a t e 2 R · n
where x u e s t i m a t e , y u e s t i m a t e and x u r e a l i t y , y u r e a l i t y represent the estimated and actual position coordinates, respectively, of unknown node u, R denotes the communication radius of the nodes, and n represents the number of unknown nodes.
Aiming at the NLO problem in WSNs, the parameters used in this simulation experiment are presented in Table 6. The positions of all nodes are obtained by continuous optimization of the BBO. The deployment area is a 100 m × 100 m square area with 100 nodes, including 20 anchor nodes and 80 unknown nodes, for a rate of anchor nodes to total nodes of 20%. In addition, the communication radius R a of the anchor nodes is set to 30 m and the communication radius R u of the unknown nodes is set to 20 m. Figure 4 shows the simulation results for the initial nodes, with a red “∆” denoting an anchor node and a blue “o” indicating an unknown node. Five comparison algorithms were used to demonstrate the effectiveness of the proposed BBO on the NLO problem in WSNs: PSO, GWO, ABO, BOA, and BBO. Notably, ABO, BOA, and BBO are all inspired by the behaviors of butterflies. The parameters of the comparison methods are shown in Table 3. The maximum iteration T m a x for solving the NLO problem was set to 200.
From Figure 4, the positions of unknown nodes can be calculated from the known positions of the anchor nodes. The initial anchor node positions directly affect the positioning of the entire node structure, with uniform anchor node positions resulting in a uniform deployment network. In Figure 4a, it can be seen that the network is affected by anchor nodes; local nodes are stacked or located too close together, leading to redundant nodes during the networking process. Although the network nodes in Figure 4b have good connectivity, there are a small number of local nodes. In the upper right corner of Figure 4b only two nodes are connected, leading to the loss of node information. Therefore, in node localization the positions of the initial anchor nodes need to be fully considered; certain movable nodes can be deployed among the unknown nodes for greater robustness, thereby improving the overall life and anti-interference ability of the WSN.
From Figure 5, it can be seen that in terms of the convergence and speed of the compared localization algorithm the order is B B O > A B O > B O A > G W O > P S O . The location error curve of BBO-DV-Hop in the region is relatively smooth after about twenty iterations, which suggests that the proposed BBO-DV-Hop is not likely to fall into local optimal values and has good global convergence ability. On the other hand, the location errors of the PSO and GWO algorithms are relatively high, and gradually become stable after 20 iterations, which indicates that the performance of the proposed BBO-DV-Hop needs to be further modified. The BOA shows large fluctuations before 100 iterations, which suggests that the stability of the BOA needs to be enhanced. In general, while the use of SI algorithms to optimize the NCO problem is a research direction that has received much attention, not all of these algorithms are effective. In actual node positioning deployment, the relocation and the second positioning of mobile nodes could be considered, and design and research could be carried out in combination with optimization algorithms.
In addition, considering the effects on the location of unknown nodes of the number of deployed nodes, rate of anchor nodes, and communication radius, three sets of experiments were designed to compare BBO to PSO, GWO, ABO, and BOA. Figure 6 shows the results of the three experimental parameter settings.
In Figure 6a shows the experimental results for an anchor node rate of 20%, communication radius R a of 30 m, and total number of nodes of 80, 100, 120, 140, 180, and 200. The results show that the trend of LE curves for the compared algorithms is essentially the same. The results obtained with the PSO algorithm fluctuate greatly when the number of nodes is 120 or 140; on the other hand, the BBO algorithm proposed in this study has stable performance, and its LE is the smallest among the compared algorithms.
From Figure 6b, it can be seen that when the number of nodes is 100 and the communication radius R a is 30 m, the anchor point rates are 15%, 20%, 25%, 30%, 35%, 40%, and 45%, respectively, in the node localization optimization simulation experiment. The results show that the LE curves of the compared algorithms are essentially the same. The LE decreases with an increasing anchor node rate, demonstrating that a higher number of anchor nodes allows for more accurate positioning of the unknown nodes. Among the compared algorithms, the location error of PSO is essentially unchanged for anchor node rates of 20%, 25%, and 30%. The proposed BBO algorithm has stable performance, and its location error is the smallest among the compared algorithms.
Figure 6c shows the results of the simulated node localization optimization experiments when the number of nodes is 100, the anchor node rate is 20%, and the communication radius R a is 20 m, 25 m, 30 m, 35 m, 40 m, 45 m, and 50 m. These results show that the LE curves of the compared algorithms are essentially the same. The location error decreases with the increase in the anchor node communication radius when R a is less than or equal to 30 m. Moreover, the location error shows an overall upward trend when R a exceeds 30 m. Again, the proposed BBO algorithm has stable performance and its LE is the smallest among the comparison algorithms.

5.4. Analysis of the NCO Problem Results

To verify the effectiveness of the BBO with the parameter C = 1 for solving the NCO problem, we used a deployment area of 100 m × 100 m in the simulation experiments and we performed the following experiments: (1) by randomly deploying 40 and 45 nodes with sensing radius R s = 10 m and communication radius R c = 20 m, we analyzed the coverage optimization performance of BBO over different numbers of iterations using both the time and coverage; (2) BBO’s performance when deploying a different number of nodes was analyzed using random deployment of nodes with sensing radius R s = 10 m and communication radius R c = 20 m over 100 iterations; (3) through random deployment, BBO’s performance with a different communication radius was analyzed with 20 nodes over 100 iterations. The pseudo-code of the NCO problem based on the BBO algorithm can be seen in Algorithm 3.
Algorithm 3: Pseudo-code of BBO for the NCO problem
Biomimetics 08 00393 i003
From Table 7, when the number of nodes is 40 and the sensing radius is 10 m, the coverage results based on the BBO algorithm corresponding to 100, 150, 200, and 500 iterations are 95.79%, 96.62%, 96.67%, and 96.99%, respectively. The time consumption of the best position of the output node is 17.17 s, 24.48 s, 31.50 s, and 79.56 s, respectively. The coverage and time consumption of nodes show an increasing trend. The coverage of the points increases by 0.82%, 0.05%, and 0.32%, respectively, year-on-year, while the year-on-year time consumption increases by 7.32 s, 7.01 s, and 48.06 s, respectively. When the number of nodes is 45 and the sensing radius is 10 m, the coverage optimization results based on the BBO algorithm corresponding to 100, 150, 200, and 500 iterations are 97.76%, 98.50%, 98.56%, and 98.82%, respectively. The time consumption of the best position of the output node is 21.87 s, 28.38 s, 37.29 s, and 86.35 s, respectively. The coverage and time consumption of nodes show an increasing trend. The year-on-year coverage of the points increases by 0.75%, 0.06%, and 0.26%, respectively, while the year-on-year time consumption increases by 6.51 s, 8.91 s, and 49.06 s, respectively. Based on the two scenarios with the same number of iterations, when the number of nodes increases, the node coverage optimization of BBO is significantly improved, although the time consumption is increased.
From Table 8, it can be seen that when the sensing radius is 10 m and the deployment area is 100 m × 100 m, the coverage optimization results based on the BBO algorithm correspond to a node coverage of 95.79%, 97.76%, and 98.29% for 40, 45, and 50 nodes, respectively. The time consumption of the best node position is 17.17 s, 21.87 s, and 25.83 s, respectively. The coverage is 1.96 percentage points higher with 45 nodes than with 40 nodes, and is 0.54 percentage points higher with 50 nodes than with 45 nodes. The year-on-year time consumption increased by 4.70 s and 3.96 s, respectively. In addition, these results show that the optimized coverage is significantly improved when the number of deployment nodes is increased within a certain range. The coverage growth is slow until saturation when the number of nodes is increased in transition.
Table 9 shows that when the deployment area is 100 m × 100 m with 20 deployment nodes, the coverage rates obtained with BBO corresponding to a sensing radius of 13 m, 14 m, and 15 m are 91.67%, 97.15%, and 99.38%, respectively. The time consumption of the best position of the output node is 6.07 s, 6.13 s, and 5.67 s, respectively. The year-on-year node coverage of the points increases by 6.48% and 2.23%, respectively. The time consumption of the BBO algorithm for node position optimization is less sensitive to the change in the sensing radius, especially when the perception radius is 15 m, and the simulation time consumption decreases by 0.46 s year-on-year. In addition, these experimental results show that when the number of nodes is fixed, an increase in the sensor radius increases coverage and decreases time consumption. Thus, when the deployment area is the same and the sensing radius is excessively large, the number of deployment nodes should be reduced.
To assess the superiority of the proposed BBO algorithm for solving the NCO problem, we selected four SI algorithms as comparison methods namely, PSO, GWO, ABO, and BOA, as well as DSA [29] and two improved butterfly optimization algorithms, HPSBA [51] and FBA [19]. The simulation parameters for the node coverage optimization problem were as follows: the deployment area was 100 m × 100 m, the number of deployment nodes was 20, and the number of iterations was set to 100. The results on the NCO problem with a changing sensing radius (13 m, 14 m, 15 m) are shown in Table 10.
Table 10 shows that for a sensing radius of 14 m, the results with the proposed BBO are significantly better than with the compared methods. The coverage rate of BBO is 91.67%; when the sensing radius is 13 m or 15 m, the coverage rate for the NCO problem achieved with BBO is higher than that achieved with the other algorithms. The performance of BBO in solving the NCO problems is significantly modified, which indicates that it has high application significance. Compared with the BOA, the node coverage rate of BBO with a sensing radius R s of 13 m, 14 m, and 15 m increased by 13.40 percentage points, 12.11 percentage points, and 8.18 percentage points, respectively. In addition, Figure 7 and Figure 8 show the coverage curves for node coverage optimization achieved by the compared algorithms (PSO, GWO, ABO, BOA, DSA, HPSBA, FBA, and BBO).

6. Conclusions

In this paper we propose a novel algorithm, BBO, inspired by the fact that butterflies have both smell-sensitive and light-sensitive characteristics. We respectively translate these smell and light-sensitive characteristics into the local and global search strategies of the proposed algorithm. In addition, the value of an individual’s smell-sensitivity is positive, which is a point that cannot be neglected. Our results show that the proposed BBO has better performance in terms of global search capability and stability than other algorithms used for comparison. In addition, our simulation results indicate that the BBO-DV-Hop localization optimization algorithm proposed in this study has good stability and accuracy on the NLO problem for WSNs. The proposed BBO has superior performance on the NCO problem as well. In both cases, the position of the initial anchor nodes needs to be fully considered in order to ensure the robustness of the network after positioning. In future studies, certain movable nodes can be deployed as unknown nodes to improve the overall lifetime and anti-interference ability of the WSN.
The performance of the proposed BBO can be enhanced to solve high-dimensional optimization problems. In-depth study could lead to more effective improvement strategies which can be applied to engineering optimization, IoT, feature selection, and more. Among these applications, node deployment, routing, dynamic networking optimization, and other problems involving WSNs [57,58] can be solved by SI optimization algorithms. Currently, research on 3D WSNs is a hot topic, with contexts including 3D space, underwater scenarios, complex mountains, forest fire monitoring, and more.

Author Contributions

Methodology, F.X. and M.Z.; software, F.X. and M.Z.; writing—original draft preparation, F.X., M.Z. and M.Y.; supervision, M.Y. and J.Z.; funding acquisition, M.Y. and J.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Guizhou University Project “Discipline Multiplication and Improvement” Special International Influence Improvement Plan (No. GDXKBZJH-YB-2023-17) and the Engineering Research Center of the Guizhou Education Department under Grant Qianjiaoji [2022]043.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Himeur, Y.; Rimal, B.; Tiwary, A.; Amira, A. Using artificial intelligence and data fusion for environmental monitoring: A review and future perspectives. Inf. Fusion 2022, 86, 44–75. [Google Scholar] [CrossRef]
  2. Jabeen, T.; Jabeen, I.; Ashraf, H.; Jhanjhi, N.; Yassine, A.; Hossain, M.S. An Intelligent Healthcare System Using IoT in Wireless Sensor Network. Sensors 2023, 23, 5055. [Google Scholar] [CrossRef]
  3. Yun, S.; Lee, J.; Chung, W.; Kim, E.; Kim, S. A soft computing approach to localization in wireless sensor networks. Expert Syst. Appl. 2009, 36, 7552–7561. [Google Scholar] [CrossRef]
  4. Álvarez, R.; Díez-González, J.; Verde, P.; Ferrero-Guillén, R.; Perez, H. Combined sensor selection and node location optimization for reducing the localization uncertainties in wireless sensor networks. Ad Hoc Netw. 2023, 139, 103036. [Google Scholar] [CrossRef]
  5. Yao, Y.; Hu, S.; Li, Y.; Wen, Q. A node deployment optimization algorithm of WSNs based on improved moth flame search. IEEE Sens. J. 2022, 22, 10018–10030. [Google Scholar] [CrossRef]
  6. Cheng, M.M.; Zhang, J.; Wang, D.G.; Tan, W.; Yang, J. A Localization Algorithm Based on Improved Water Flow Optimizer and Max-Similarity Path for 3D Heterogeneous Wireless Sensor Networks. IEEE Sens. J. 2023, 23, 13774–13788. [Google Scholar] [CrossRef]
  7. Wang, W. Deployment and optimization of wireless network node deployment and optimization in smart cities. Comput. Commun. 2020, 155, 117–124. [Google Scholar] [CrossRef]
  8. Taleb, S.M.; Meraihi, Y.; Gabis, A.B.; Mirjalili, S.; Ramdane-Cherif, A. Nodes placement in wireless mesh networks using optimization approaches: A survey. Neural Comput. Appl. 2022, 34, 5283–5319. [Google Scholar] [CrossRef]
  9. He, X.; Shan, W.; Zhang, R.; Heidari, A.A.; Chen, H.; Zhang, Y. Improved Colony Predation Algorithm Optimized Convolutional Neural Networks for Electrocardiogram Signal Classification. Biomimetics 2023, 8, 268. [Google Scholar] [CrossRef] [PubMed]
  10. Shields, O. World numbers of butterflies. J. Lepid. Soc. 1989, 43, 178–183. [Google Scholar]
  11. Mey, W.; Speidel, W. Global diversity of butterflies (Lepidotera) in freshwater. Freshw. Anim. Divers. Assess. 2008, 595, 521–528. [Google Scholar]
  12. Chowdhury, S.; Fuller, R.A.; Dingle, H.; Chapman, J.W.; Zalucki, M.P. Migration in butterflies: A global overview. Biol. Rev. 2021, 96, 1462–1483. [Google Scholar] [CrossRef]
  13. Tang, Y.C.; Zhou, C.L.; Chen, X.M.; Zheng, H. Visual and olfactory responses of seven butterfly species during foraging. J. Insect Behav. 2013, 26, 387–401. [Google Scholar] [CrossRef]
  14. Wang, G.G.; Deb, S.; Cui, Z. Monarch butterfly optimization. Neural Comput. Appl. 2019, 31, 1995–2014. [Google Scholar] [CrossRef]
  15. Qi, X.; Zhu, Y.; Zhang, H. A new meta-heuristic butterfly-inspired algorithm. J. Comput. Sci. 2017, 23, 226–239. [Google Scholar] [CrossRef]
  16. Arora, S.; Singh, S. Butterfly optimization algorithm: A novel approach for global optimization. Soft Comput. 2019, 23, 715–734. [Google Scholar] [CrossRef]
  17. Yao, X.; Liu, Y.; Lin, G. Evolutionary programming made faster. IEEE Trans. Evol. Comput. 1999, 3, 82–102. [Google Scholar]
  18. Rashedi, E.; Nezamabadi-Pour, H.; Saryazdi, S. GSA: A gravitational search algorithm. Inf. Sci. 2009, 179, 2232–2248. [Google Scholar] [CrossRef]
  19. Zhang, M.; Wang, D.; Yang, J. Hybrid-flash butterfly optimization algorithm with logistic mapping for solving the engineering constrained optimization problems. Entropy 2022, 24, 525. [Google Scholar] [CrossRef]
  20. Yang, X.S.; Slowik, A. Firefly algorithm. In Swarm Intelligence Algorithms; CRC Press: Boca Raton, FL, USA, 2020; pp. 163–174. [Google Scholar]
  21. Pan, W.T. A new fruit fly optimization algorithm: Taking the financial distress model as an example. Knowl.-Based Syst. 2012, 26, 69–74. [Google Scholar] [CrossRef]
  22. Liu, Y.; Chen, J. AK-means based firefly algorithm for localization in sensor networks. Int. J. Parallel Emergent Distrib. Syst. 2019, 34, 364–379. [Google Scholar] [CrossRef]
  23. Rabhi, S.; Semchedine, F.; Mbarek, N. An improved method for distributed localization in WSNs based on fruit fly optimization algorithm. Autom. Control Comput. Sci. 2021, 55, 287–297. [Google Scholar] [CrossRef]
  24. Holland, J.H. Genetic algorithms. Sci. Am. 1992, 267, 66–73. [Google Scholar] [CrossRef]
  25. Kennedy, J.; Eberhart, R. Particle swarm optimization. In Proceedings of the ICNN’95-International Conference on Neural Networks, Perth, WA, Australia, 27 November–1 December 1995; IEEE: Piscataway, NJ, USA, 1995; Volume 4, pp. 1942–1948. [Google Scholar]
  26. Storn, R.; Price, K. Differential evolution-a simple and efficient heuristic for global optimization over continuous spaces. J. Glob. Optim. 1997, 11, 341. [Google Scholar] [CrossRef]
  27. Mirjalili, S.; Mirjalili, S.M.; Lewis, A. Grey wolf optimizer. Adv. Eng. Softw. 2014, 69, 46–61. [Google Scholar] [CrossRef]
  28. Zhang, M.; Wang, D.; Wang, M.; Yang, J. Several novel intelligent optimization algorithms for solving constrained engineering problems and their prospects. J. Comput. Appl. 2022, 42, 534. [Google Scholar]
  29. Zhang, M.; Wen, G.; Yang, J. Duck swarm algorithm: A novel swarm intelligence algorithm. arXiv 2021, arXiv:2112.13508. [Google Scholar]
  30. Abualigah, L.; Yousri, D.; Abd Elaziz, M.; Ewees, A.A.; Al-Qaness, M.A.; Gandomi, A.H. Aquila optimizer: A novel meta-heuristic optimization algorithm. Comput. Ind. Eng. 2021, 157, 107250. [Google Scholar] [CrossRef]
  31. Sharma, S.; Khodadadi, N.; Saha, A.K.; Gharehchopogh, F.S.; Mirjalili, S. Non-dominated sorting advanced butterfly optimization algorithm for multi-objective problems. J. Bionic Eng. 2023, 20, 819–843. [Google Scholar] [CrossRef]
  32. Kanwar, V.; Kumar, A. DV-Hop localization methods for displaced sensor nodes in wireless sensor network using PSO. Wirel. Netw. 2021, 27, 91–102. [Google Scholar] [CrossRef]
  33. Ouyang, A.; Lu, Y.; Liu, Y.; Wu, M.; Peng, X. An improved adaptive genetic algorithm based on DV-Hop for locating nodes in wireless sensor networks. Neurocomputing 2021, 458, 500–510. [Google Scholar] [CrossRef]
  34. Tripathy, P.; Khilar, P. An ensemble approach for improving localization accuracy in wireless sensor network. Comput. Netw. 2022, 219, 109427. [Google Scholar] [CrossRef]
  35. Dimitriou, I.; Pappas, N. Performance analysis of a cooperative wireless network with adaptive relays. Ad Hoc Netw. 2019, 87, 157–173. [Google Scholar] [CrossRef]
  36. Bianchi, V.; Ciampolini, P.; De Munari, I. RSSI-based indoor localization and identification for ZigBee wireless sensor networks in smart homes. IEEE Trans. Instrum. Meas. 2018, 68, 566–575. [Google Scholar] [CrossRef]
  37. Chan, Y.T.; Tsui, W.Y.; So, H.C.; Ching, P.c. Time-of-arrival based localization under NLOS conditions. IEEE Trans. Veh. Technol. 2006, 55, 17–24. [Google Scholar] [CrossRef]
  38. He, S.; Dong, X. High-accuracy localization platform using asynchronous time difference of arrival technology. IEEE Trans. Instrum. Meas. 2017, 66, 1728–1742. [Google Scholar] [CrossRef]
  39. Peng, R.; Sichitiu, M.L. Angle of arrival localization for wireless sensor networks. In Proceedings of the 2006 3rd Annual IEEE Communications Society on Sensor and Ad Hoc Communications and Networks, Reston, VA, USA, 25–28 September 2006; IEEE: Piscataway, NJ, USA, 2006; Volume 1, pp. 374–382. [Google Scholar]
  40. Wang, J.; Urriza, P.; Han, Y.; Cabric, D. Weighted centroid localization algorithm: Theoretical analysis and distributed implementation. IEEE Trans. Wirel. Commun. 2011, 10, 3403–3413. [Google Scholar] [CrossRef]
  41. Chan, F.K.; So, H.C. Efficient weighted multidimensional scaling for wireless sensor network localization. IEEE Trans. Signal Process. 2009, 57, 4548–4553. [Google Scholar] [CrossRef]
  42. zeng Wang, J.; Jin, H. Improvement on APIT localization algorithms for wireless sensor networks. In Proceedings of the 2009 International Conference on Networks Security, Wireless Communications and Trusted Computing, Wuhan, China, 25–26 April 2009; IEEE: Piscataway, NJ, USA, 2009; Volume 1, pp. 719–723. [Google Scholar]
  43. Shi, Q.; Xu, Q.; Zhang, J. An improved DV-Hop scheme based on path matching and particle swarm optimization algorithm. Wirel. Pers. Commun. 2019, 104, 1301–1320. [Google Scholar] [CrossRef]
  44. Han, D.; Yu, Y.; Li, K.C.; de Mello, R.F. Enhancing the sensor node localization algorithm based on improved DV-hop and DE algorithms in wireless sensor networks. Sensors 2020, 20, 343. [Google Scholar] [CrossRef]
  45. Zhang, H.; Yang, J.; Qin, T.; Fan, Y.; Li, Z.; Wei, W. A Multi-Strategy Improved Sparrow Search Algorithm for Solving the Node Localization Problem in Heterogeneous Wireless Sensor Networks. Appl. Sci. 2022, 12, 5080. [Google Scholar] [CrossRef]
  46. Abd El Ghafour, M.G.; Kamel, S.H.; Abouelseoud, Y. Improved DV-Hop based on Squirrel search algorithm for localization in wireless sensor networks. Wirel. Netw. 2021, 27, 2743–2759. [Google Scholar] [CrossRef]
  47. Yang, M.; Wang, A.; Sun, G.; Zhang, Y. Deploying charging nodes in wireless rechargeable sensor networks based on improved firefly algorithm. Comput. Electr. Eng. 2018, 72, 719–731. [Google Scholar] [CrossRef]
  48. Wang, X.; Zhang, H.; Fan, S.; Gu, H. Coverage Control of Sensor Networks in IoT Based on RPSO. IEEE Internet Things J. 2018, 5, 3521–3532. [Google Scholar] [CrossRef]
  49. Miao, Z.; Yuan, X.; Zhou, F.; Qiu, X.; Song, Y.; Chen, K. Grey wolf optimizer with an enhanced hierarchy and its application to the wireless sensor network coverage optimization problem. Appl. Soft Comput. 2020, 96, 106602. [Google Scholar] [CrossRef]
  50. Wang, S.; You, H.; Yue, Y.; Cao, L. A novel topology optimization of coverage-oriented strategy for wireless sensor networks. Int. J. Distrib. Sens. Netw. 2021, 17, 1550147721992298. [Google Scholar] [CrossRef]
  51. Zhang, M.; Wang, D.; Yang, M.; Tan, W.; Yang, J. HPSBA: A Modified Hybrid Framework with Convergence Analysis for Solving Wireless Sensor Network Coverage Optimization Problem. Axioms 2022, 11, 675. [Google Scholar] [CrossRef]
  52. Cav, C.; Altın-Kayhan, A. Coverage hole optimization with a mobile sensor in wireless sensor networks for smart grid. Ad Hoc Netw. 2023, 140, 103039. [Google Scholar] [CrossRef]
  53. Ômura, H.; Honda, K. Priority of color over scent during flower visitation by adult Vanessa indica butterflies. Oecologia 2005, 142, 588–596. [Google Scholar] [CrossRef]
  54. Kiepiel, I.; Johnson, S.D. Responses of butterflies to visual and olfactory signals of flowers of the bush lily Clivia miniata. Arthropod-Plant Interact. 2021, 15, 253–263. [Google Scholar] [CrossRef]
  55. Chen, S.; Li, M.; Liu, J.; Feng, Y.; Yao, J.; Shi, L.; Chen, X. Visual and olfactory sensory responses of the butterfly Papilio maackii during foraging and courtship. Entomol. Res. 2021, 51, 518–527. [Google Scholar] [CrossRef]
  56. Heidari, A.A.; Mirjalili, S.; Faris, H.; Aljarah, I.; Mafarja, M.; Chen, H. Harris hawks optimization: Algorithm and applications. Future Gener. Comput. Syst. 2019, 97, 849–872. [Google Scholar] [CrossRef]
  57. Tay, M.; Senturk, A. A new energy-aware cluster head selection algorithm for wireless sensor networks. Wirel. Pers. Commun. 2022, 122, 2235–2251. [Google Scholar] [CrossRef]
  58. Ghorpade, S.N.; Zennaro, M.; Chaudhari, B.S. GWO model for optimal localization of IoT-enabled sensor nodes in smart parking systems. IEEE Trans. Intell. Transp. Syst. 2020, 22, 1217–1224. [Google Scholar] [CrossRef]
Figure 1. Butterflies that use both olfactory and visual signals for foraging: (a) Vanessa Indica; (b) Swallowtail; (c) Papilio Maackii.
Figure 1. Butterflies that use both olfactory and visual signals for foraging: (a) Vanessa Indica; (b) Swallowtail; (c) Papilio Maackii.
Biomimetics 08 00393 g001
Figure 2. The flowchart of the proposed BBO.
Figure 2. The flowchart of the proposed BBO.
Biomimetics 08 00393 g002
Figure 3. Individual historical positions with two-dimensional coordinate and convergence curves of the search process.
Figure 3. Individual historical positions with two-dimensional coordinate and convergence curves of the search process.
Biomimetics 08 00393 g003
Figure 4. Schematic of initial node localization optimization and connectivity.
Figure 4. Schematic of initial node localization optimization and connectivity.
Biomimetics 08 00393 g004
Figure 5. Comparison curves of the location error of the compared SI algorithms over 200 iterations.
Figure 5. Comparison curves of the location error of the compared SI algorithms over 200 iterations.
Biomimetics 08 00393 g005
Figure 6. Results of location errors (LE) with different experimental parameters: (a) different number of nodes; (b) different anchor node rate; and (c) different communication radius.
Figure 6. Results of location errors (LE) with different experimental parameters: (a) different number of nodes; (b) different anchor node rate; and (c) different communication radius.
Biomimetics 08 00393 g006
Figure 7. Schematic of node deployment optimization with different SI algorithms.
Figure 7. Schematic of node deployment optimization with different SI algorithms.
Biomimetics 08 00393 g007aBiomimetics 08 00393 g007b
Figure 8. Node coverage rate curves of the compared SI algorithms over 100 iterations.
Figure 8. Node coverage rate curves of the compared SI algorithms over 100 iterations.
Biomimetics 08 00393 g008
Table 1. A brief summary of NLO and NCO problems using SI algorithms.
Table 1. A brief summary of NLO and NCO problems using SI algorithms.
AuthorProblemAlgorithmTitle
Shi et al. [43]NLOParticle swarm optimization (PSO)An improved DV-Hop scheme based on path matching and particle swarm optimization algorithm
Han et al. [44]NLODE algorithmEnhancing the sensor node localization algorithm based on improved DV-hop and DE algorithms in wireless sensor networks
Zhang et al. [45]NLOEnhanced sparrow search algorithmMulti-strategy improved sparrow search algorithm for solving the node localization problem in heterogeneous wireless sensor networks
Ghafour et al. [46]NLOEnhanced squirrel search algorithmImproved DV-Hop based on squirrel search algorithm for localization in wireless sensor networks
Yang et al. [47]NCOImproved Firefly algorithm (FA)Deploying charging nodes in wireless rechargeable sensor networks based on improved firefly algorithm
Wang et al. [48]NCOResampled PSO algorithmCoverage control of sensor networks in IoT based on RPSO
Miao et al. [49]NCOGWO-EH algorithmGrey wolf optimizer with an enhanced hierarchy and its application to the wireless sensor network coverage optimization problem
Wang et al. [50]NCOWolf pack algorithm (WPA)A novel topology-based coverage-oriented strategy optimization of wireless sensor networks
Zhang et al. [51]NCOhybrid HPSBAHPSBA, a modified hybrid framework with convergence analysis for solving the wireless sensor network coverage optimization problem
Table 2. Descriptions of the 23 benchmark functions.
Table 2. Descriptions of the 23 benchmark functions.
FormulaSRDim f min Category
T F 1 = i = 1 D i m x i 2 [−100, 100]300U
T F 2 = i = 1 D i m x i + i = 1 D i m x i [−10, 10]300U
T F 3 = i = 1 D i m j = 1 i x j 2 [-100, 100]300U
T F 4 = max x i , 1 i D i m [−100, 100]300U
T F 5 = i = 1 D i m 100 x i + 1 x i 2 2 + x i 1 2 [−30,30]300U
T F 6 = i = 1 D i m x i + 0.5 2 [-100, 100]300U
T F 7 = i = 1 D i m i x i 4 + r a n d ( 0 , 1 ) [−1.28, 1.28]300U
T F 8 ( x ) = i = 1 n x i sin ( x i ) [−500, 500]30−12,569.487M
T F 9 = i = 1 D i m x i 2 10 cos ( 2 π x i ) + 10 [−5.12, 5.12]300M
T F 10 = 20 exp 0.2 1 D i m i = 1 D i m x i 2 exp 1 D i m i = 1 D i m cos ( 2 π x i ) + 20 + e [−32, 32]300M
T F 11 = 1 4000 i = 1 D i m x i 2 i = 1 D i m cos x i i + 1 [−600, 600]300M
T F 12 = π D i m i = 1 D i m 1 ( y i 1 ) 2 [ 1 + 10 sin 2 ( π y i + 1 ) ] + ( y D i m 1 ) 2 + 10 sin 2 ( π y 1 ) + i = 1 D i m u ( x i , 10 , 100 , 4 ) , y i = 1 + x i + 1 4 , u y i , a , k , m = k ( x i a ) m , x i > a , 0 , a x i a , k ( x i a ) m , x i < a [−50, 50]300M
T F 13 = 1 10 sin 2 ( π x 1 ) + i = 1 D i m 1 ( x i 1 ) 2 1 + sin 2 ( 3 π x i + 1 ) + ( x D i m 1 ) 2 1 + sin 2 ( 2 π x i + 1 ) + i = 1 D i m u ( x i , 5 , 100 , 4 ) [−5, 5]300M
T F 14 ( x ) = 1 500 + j = 1 25 1 j + i = 1 2 x i a i j 6 1 [−65, 65]21Fixed
T F 15 ( x ) = i = 1 11 a i x 1 ( b i 2 + b i x 2 ) b i 2 + b i x 3 + x 4 2 [−5, 5]40.00030Fixed
T F 16 ( x ) = 4 x 1 2 2.1 x 1 4 + 1 3 x 1 6 + x 1 x 2 4 x 2 2 + 4 x 2 4 [−5, 5]2−1.0316Fixed
T F 17 ( x ) = x 2 5.1 4 π 2 x 1 2 + 5 π x 1 6 2 + 10 1 1 8 π cos x 1 + 10 [−5, 5]20.3980Fixed
T F 18 ( x ) = 1 + x 1 + x 2 + 1 2 19 14 x 1 + 3 x 1 2 14 x 2 + 6 x 1 x 2 + 3 x 2 2 × 30 + 2 x 1 3 x 2 2 × 18 32 x 1 + 12 x 1 2 + 48 x 2 36 x 1 x 2 + 27 x 2 2 [−2, 2]23Fixed
T F 19 ( x ) = i = 1 4 c i exp j = 1 3 a i j x j p i j 2 [1, 3]3−3.86Fixed
T F 20 ( x ) = i = 1 4 c i exp j = 1 6 a i j x j p i j 2 [0, 1]5−3.32Fixed
T F 21 ( x ) = i = 1 5 ( X a i ) ( X a i ) + c i 1 [0, 10]4−10.1532Fixed
T F 22 ( x ) = i = 1 7 ( X a i ) ( X a i ) + c i 1 [0, 10]4−10.4028Fixed
T F 23 ( x ) = i = 1 10 ( X a i ) ( X a i ) + c i 1 [0, 10]4−10.5363Fixed
Table 3. Hyperparameter settings used for the comparison methods.
Table 3. Hyperparameter settings used for the comparison methods.
MethodsValue
PSO N P = 30 , c 1 = c 2 = 2 , ω m i n = 0.2 , ω m a x = 0.9
DE N P = 30 , F = 0.85 , C R = 0.7
GWO N P = 30 , a f i r s t = 2 , a f i n a l = 0
ABO N P = 30 , a f i r s t = 2 , a f i n a l = 0
BOA N P = 30 , a = 0.1 , c 0 = 0.01 , p = 0.5
HHO N P = 30 , β = 1.5 , E ( 0 , 2 )
AO N P = 30 , α = 0.1 , δ = 0.1
BBO N P = 30 , α = 0.1 , L i g h t 0 = 1 , s p = 0.6
Table 4. Means and standard deviations of the compared SI methods for all 23 functions.
Table 4. Means and standard deviations of the compared SI methods for all 23 functions.
FunctionItemPSODEGWOABOBOAHHOAOBBO
TF1Mean2.14E-036.13E-072.79E-597.25E-564.98E-132.91E-1844.49E-1990.00E+00
 Std2.29E-034.05E-075.32E-593.12E-555.14E-140.00E+000.00E+000.00E+00
TF2Mean3.74E-031.94E-041.19E-341.54E-372.31E-101.22E-941.77E-1182.35E-129
 Std4.23E-039.01E-051.12E-342.88E-376.15E-116.45E-949.68E-1181.06E-128
TF3Mean4.11E+031.07E+042.71E-153.00E-204.27E-136.86E-1531.28E-1990.00E+00
 Std1.26E+034.10E+039.11E-151.30E-193.78E-143.69E-1520.00E+000.00E+00
TF4Mean1.39E+013.78E+001.72E-147.53E-143.24E-106.38E-941.92E-981.77E-74
 Std2.97E+002.09E+003.03E-142.03E-132.61E-113.17E-931.05E-979.71E-74
TF5Mean1.48E+025.05E+012.68E+012.73E+012.89E+013.55E-031.08E-032.85E+01
 Std1.27E+023.81E+017.05E-011.00E+002.92E-027.62E-031.82E-032.54E-01
TF6Mean2.61E-036.94E-076.03E-012.22E+004.83E+002.19E-053.15E-051.08E-11
 Std3.21E-034.40E-073.25E-013.86E-015.64E-013.03E-056.35E-051.60E-11
TF7Mean7.99E-023.33E-028.76E-047.77E-041.26E-035.63E-054.80E-057.59E-06
 Std2.98E-021.10E-025.51E-044.40E-045.76E-044.03E-054.47E-055.10E-06
TF8Mean−1.12E+04−9.26E+03−6.12E+03−6.18E+03NAN−1.26E+04−9.48E+03−7.85E+03
 Std3.08E+021.39E+035.98E+025.84E+02NAN2.83E-013.67E+034.16E+03
TF9Mean6.19E+011.36E+025.30E-010.00E+007.13E+010.00E+000.00E+000.00E+00
 Std1.22E+012.26E+012.54E+000.00E+009.51E+010.00E+000.00E+000.00E+00
TF10Mean2.77E-012.63E+001.68E-142.03E+001.22E-108.88E-168.88E-168.88E-16
 Std5.36E-016.81E+002.59E-156.21E+006.53E-110.00E+000.00E+000.00E+00
TF11Mean2.65E-022.67E-032.19E-031.32E-031.87E-150.00E+000.00E+000.00E+00
 Std2.88E-025.97E-035.93E-035.19E-033.63E-150.00E+000.00E+000.00E+00
TF12Mean8.68E-012.07E-024.00E-021.60E-013.64E-011.81E-066.40E-071.60E-12
 Std1.01E+007.89E-022.37E-021.02E-011.22E-012.50E-061.07E-062.92E-12
TF13Mean6.70E-014.24E-044.77E-011.56E+002.45E+001.60E-051.54E-052.63E-01
 Std1.41E+002.02E-032.24E-012.41E-014.69E-012.23E-053.05E-058.01E-01
TF14Mean0.9980041.1305414.4185893.5410921.0689581.0974072.3740921.129753
 Std4.12E-173.44E-014.58E+004.11E+002.56E-013.03E-012.71E+007.22E-01
TF15Mean0.0031710.0044410.0043840.0005350.0003560.0003620.0004480.000307
 Std6.97E-038.10E-038.13E-033.89E-044.33E-051.64E-048.76E-051.83E-19
TF16Mean−1.031628−1.031628−1.031628−1.031628NAN−1.031628−1.031495−1.031628
 Std6.45E-166.78E-167.86E-095.70E-09NAN3.33E-111.15E-046.78E-16
TF17Mean0.3978870.3978870.4776710.3978880.3980200.3978880.3979960.397887
 Std0.00E+000.00E+004.37E-013.78E-071.82E-047.21E-071.39E-040.00E+00
TF18Mean333.0000093.0000003.00599233.0115033
 Std1.40E-152.12E-151.19E-053.20E-079.81E-032.44E-081.44E-021.90E-15
TF19Mean−3.862782−3.862782−3.861725−3.857002NAN−3.861322−3.858885−3.862782
 Std2.63E-152.71E-152.28E-033.54E-03NAN1.98E-032.47E-032.71E-15
TF20Mean−3.282364−3.266512−3.262065−3.095172NAN−3.121452−3.198913−3.321995
 Std5.70E-026.03E-026.83E-021.98E-01NAN1.12E-018.21E-021.34E-15
TF21Mean−7.040316−7.805056−9.814474−7.363414−5.790008−5.222809−10.144644−6.908833
 Std2.86E+003.02E+001.29E+003.47E+001.07E+009.22E-011.67E-023.59E+00
TF22Mean−8.307454−9.220698−10.402433−8.667653−5.925582−5.086337−10.400402−9.031198
 Std2.86E+002.44E+002.73E-043.33E+001.34E+001.96E-033.61E-032.84E+00
TF23Mean−10.17745−10.53641−10.53592−9.09307−5.88811−5.03705−10.53198−9.33568
 Std1.37E+002.21E-152.92E-042.73E+001.27E+004.94E-017.52E-032.76E+00
Mean/+/−/=1/18/41/18/41/21/10/21/20/23/01/17/53/18/28/9/6
Fridman Rank5.865.045.575.877.584.664.762.59
Total Rank64578231
Table 5. Results of WSR test for the compared SI methods.
Table 5. Results of WSR test for the compared SI methods.
FunctionBBO vs. PSOBBO vs. DEBBO vs. GWOBBO vs. ABOBBO vs. BOABBO vs. HHOBBO vs. AO
TF11.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)
TF21.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.02E-01(0)
TF31.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)
TF41.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)3.11E-05(1)1.48E-04(1)
TF52.13E-06(1)3.60E-01(0)1.92E-06(1)2.16E-05(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)
TF61.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)
TF71.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)2.88E-06(1)7.69E-06(1)
TF81.48E-03(1)8.59E-02(0)7.52E-02(0)6.87E-02(0)NAN(1)1.48E-03(1)1.92E-01(0)
TF91.73E-06(1)1.73E-06(1)1.56E-02(1)1(0)6.10E-05(1)1(0)1(0)
TF101.73E-06(1)1.73E-06(1)6.83E-07(1)4.15E-07(1)1.73E-06(1)1(0)1(0)
TF111.73E-06(1)1.73E-06(1)1.25E-01(0)5.00E-01(0)8.77E-05(1)1(0)1(0)
TF121.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)
TF131.48E-03(1)2.77E-03(1)2.77E-03(1)6.98E-06(1)3.18E-06(1)2.77E-03(1)2.77E-03(1)
TF141(0)6.45E-04(1)7.69E-06(1)1.24E-05(1)3.11E-05(1)3.11E-05(1)1.73E-06(1)
TF151.73E-06(1)1.54E-04(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)
TF161(0)1(0)1.73E-06(1)1.73E-06(1)NAN(1)2.56E-06(1)1.73E-06(1)
TF171(0)1(0)1.73E-06(1)1.73E-06(1)1.73E-06(1)8.30E-06(1)1.73E-06(1)
TF185.86E-03(1)5.08E-01(0)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)1.73E-06(1)
TF191(0)1(0)1.73E-06(1)1.73E-06(1)NAN(1)1.73E-06(1)1.73E-06(1)
TF201.95E-03(1)6.10E-05(1)1.73E-06(1)1.73E-06(1)NAN(1)1.73E-06(1)1.73E-06(1)
TF219.86E-01(0)3.65E-01(0)6.27E-02(0)6.88E-01(0)5.71E-02(0)7.27E-03(1)4.72E-02(0)
TF226.03E-01(0)8.24E-01(0)1.65E-01(0)4.49E-02(0)1.36E-04(1)1.02E-05(1)1.65E-01(0)
TF231.09E-01(0)6.25E-02(0)5.71E-02(0)7.73E-03(1)1.64E-05(1)6.98E-06(1)5.71E-02(0)
H(0/1)7/169/145/185/181/223/208/15
Table 6. Simulation parameter settings for the NLO problem.
Table 6. Simulation parameter settings for the NLO problem.
ParametersValue
Deployment area/m100 × 100
The communication radius R a of the anchor nodes/m30
The communication radius R u of unknown nodes/m20
Anchor node rate/%20
The N P of individuals30
Total number of nodes N100
Table 7. Coverage with different numbers of iterations.
Table 7. Coverage with different numbers of iterations.
ItemN = 40, R s = 10 mN = 45, R s = 10 m
Iterations100150200500100150200500
Cov/%95.7996.6296.6796.9997.7698.5098.5698.82
Time/s17.1724.4831.5079.5621.8728.3837.2986.35
Percentage point increase in coverage/%/0.820.050.32/0.750.060.26
Increase in time/s/7.327.0148.06/6.518.9149.06
Table 8. Node coverage rate with different number of deployment nodes.
Table 8. Node coverage rate with different number of deployment nodes.
Node Number404550
Cov/%95.7997.76 (+1.96)98.29 (+0.54)
Time/s17.1721.87 (+4.70)25.83 (+3.96)
Table 9. Node coverage rates with changes in the sensing radius.
Table 9. Node coverage rates with changes in the sensing radius.
R s 131415
Cov /%91.6797.15 (+6.48)99.38 (+2.23)
Time /s6.076.13 (+0.06)5.67 (−0.46)
Table 10. Comparison of algorithms on the NCO problem with a changing sensing radius.
Table 10. Comparison of algorithms on the NCO problem with a changing sensing radius.
Method13 m14 m15 m
PSO [25]81.3089.1193.10
GWO [27]79.0285.1491.30
ABO [15]77.8081.6187.93
BOA [16]78.2785.0491.20
DSA [29]88.3891.5195.42
HPSBA [51]89.5795.7798.66
FBA [19]90.4096.2498.97
BBO (our)91.6797.1599.38
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Xia, F.; Yang, M.; Zhang, M.; Zhang, J. Joint Light-Sensitive Balanced Butterfly Optimizer for Solving the NLO and NCO Problems of WSN for Environmental Monitoring. Biomimetics 2023, 8, 393. https://doi.org/10.3390/biomimetics8050393

AMA Style

Xia F, Yang M, Zhang M, Zhang J. Joint Light-Sensitive Balanced Butterfly Optimizer for Solving the NLO and NCO Problems of WSN for Environmental Monitoring. Biomimetics. 2023; 8(5):393. https://doi.org/10.3390/biomimetics8050393

Chicago/Turabian Style

Xia, Fei, Ming Yang, Mengjian Zhang, and Jing Zhang. 2023. "Joint Light-Sensitive Balanced Butterfly Optimizer for Solving the NLO and NCO Problems of WSN for Environmental Monitoring" Biomimetics 8, no. 5: 393. https://doi.org/10.3390/biomimetics8050393

Article Metrics

Back to TopTop