Hybrid Swarm Intelligence Energy Efficient Clustered Routing Algorithm for Wireless Sensor Networks

,


Introduction
Wireless sensor networks (WSNs) consist of various sensor nodes, which have the capability to sense, process, compute, and communicate [1]. A large number of sensor nodes and their different applications induce various hindrances during implementation in sensor networks. Other than implementation, certain areas, namely, accessing of information, data collection, and storage, are still a dilemma. Various specifications of sensor nodes like their size, computational ability, cost, hardware constraint, energy efficiency, and other design parameters make the implementation of the sensor network a difficult task. In present scenario optimization issues become more tedious. An energy specification of sensor networks becomes intolerable in a huge environment which in turn demands a concern related to various optimization parameters. That is why we formulated to assess the potency of various evolutionary algorithms to enhance the network lifespan with energy as a constraint duly concentrating on the various transmission strategies [2]. During a couple of years, a number of evolutionary algorithms have been introduced for evaluation of problems to get the best possible result out of the various solutions. Many of the proposed algorithms concentrate on the principle of the population based heuristic search methods, for solving general optimization problems. A swarm intelligent algorithm works on the principle behavior of flying birds in order to get to the resources being implemented in LEACH [3] protocol. In these protocols, the swarm intelligent algorithm is implemented to form various clusters which in turn help in defining their respective CHs while designing a WSN with the same conditions as in real time network. The swarm based algorithm produces desirable 2 Journal of Sensors results. Network lifespan can be further enhanced by implementing various best possible route detection techniques. Artificial bee colony (ABC) algorithm is a new upcoming approach whose working totally resembles that of swarm based optimization techniques while monitoring the clusters in WSN.
The most unavoidable hindrances faced in the sensor networks are about getting the best possible routes for data transmission up to the BS. In general WSN node operates in a multinode pattern; immense algorithms have been introduced for routing data to reach the destination. In [4] some notable routing techniques in WSN desire to use ant as a moving agent while discovering the route in order to discover the best possible path for data transmission in WSN. In this research, we prioritize the multiple nodes grounded in their respective power, competency, and there approaching nature to route the data through the best path. In recent years, a new picture by applying routing based protocols on the movement of the swarms in order to depict the best possible path for delivering the acquired data through the selected path was introduced. Algorithm working with nodes should be more energy saver as well as fast enough to acquire and transmit the data. Ant colony optimization (ACO), designed in such a way so that ants behaviors for finding food sources can be depicted easily, acts as a valuable solution for different route detection, although this technique is not favourable in governing applications which needs timely data transfer [5].
For upgrading the execution of the network, clustering mechanisms have been connected to networks with hierarchical structures while minimizing the fundamental energy utilization [6,7]. Clustering is a technique to group number of nodes in areas in a densely employed wide-scale network [8]. One of the nodes will be elected as a cluster head (CH) among other nodes called cluster members of their respective cluster. In clustering, randomly deployed nodes join in carrying out the job. Here, the signal to the nodes is advertised with nodes. Signals are received by all sensor nodes from distinct CHs and nodes give response with their node-id to CH with strength and this formation of clusters takes place. Without CH, for intracluster routing, a proactive strategy is utilized and for intercluster routing, a reactive strategy is utilized. Clustering has various challenges in deployment such as ensuring connectivity between nodes, determining optimal cluster sizes [9,10], and optimizing clustering structures dynamically on the basis of the status of cluster members. For a hierarchical routing or network administration, convention can be better executed with CHs. In [11,12], the authors have studied the influence of cluster based hierarchical routing that is a quite famous approach with some benefits related to well organized communication and scalability. For attaining power efficient routing, the concept of hierarchical routing is used. Using two-tier clusters for sending information to BS has the profit of shorter transmit separations for nodes. Only some nodes are essential to send data to BS at far distances and it is valid in those networks where there is a high density of nods. Through hierarchical level cluster can communicate with other clusters or with external network at the same time [13]. In this paper, we have introduced threelevel hierarchy. The first level is known as CH, the second level is known as subcluster head (SCH), and the third level is denoted by member node. Partial local computation is introduced in each and every SCH at the second stage and the local computation at CH where information is sent to BS directly. This approach is used as regions and subregions and significant progress is obtained. The objectives of the subregions and subregion parts are formulated as in where SSC is the work time of the square shaped cluster. Tee is the total energy expenditure in a cluster. The rest of the work is done in seven sections. In Section 2, we discuss the related work. In Section 3, we define the radio model for wireless sensor network. Section 4 describes the squared optimization problem for CH and SCH. Section 5 exhibits the details of ABC, ACO, and the proposed approach ABCACO. In Section 6, the performances of ABCACO approach are evaluated via a number of experiments and we compare its simulation results with both WSNCABC and LEACH. Finally, Section 7 concludes the paper and suggests the further work to be carried out.

Related Works
In literature, various protocols have been considered with the idea of enhancing the lifespan of sensor network by the appropriation of cluster based sensor network structural engineering. A well-known protocol known as LEACH (Low Energy Adaptive Clustering Hierarchy) [3] is based on distributed clustering approach. It prolongs the network lifespan by reducing the power dissipation. No wastage of power for electing a node as a CH is the advantage of LEACH protocol. The CH selection process is primarily based upon the inducted energy level of each sensor node that is the disadvantage of LEACH. So a sensor node that has low power has more chances of becoming a CH than the one that has more power which leads to the dead state of the entire cluster. The second disadvantage is the presence of more overheads in the development of the dynamic cluster. In [9], the results have demonstrated that LEACH-C outperforms LEACH because of the improvement in cluster formation by the BS. Furthermore, the fraction of CHs in each iteration of LEACH-C is equivalent to the craved optimum number. An additional clustering algorithm that enhances the lifespan of network has been presented in [14] known as HEED (Hybrid Energy Efficient Distributed Clustering). The CH election process in HEED is intentionally based upon the parameters, that is, residual energy of the sensor nodes, and in addition to this cost of communication within the clusters is also considered by the authors for increasing power efficiency and further enhancing lifespan of network. This protocol maintains the CH for a fixed number of cycles. Related to LEACH, significant overhead is imposed by the sensor network by clustering in each round. Noticeable power dissipation is imposed by this overhead that leads to decrease in lifespan of the network. As HEED requires various iterations for the formation of clusters, it suffers from a subsequent overhead as at each iteration the broadcasting of a lot of packets takes place. Power Efficient Gathering in Sensor Information Systems (PEGASIS) has been developed in [15] for prolonging the network lifespan. PEGASIS outperforms LEACH in terms of power dissipation for extending the network lifespan. It is not a clustering approach. It is a chain based protocol due to which all nodes interact with one another and can transmit data to a CH. Sensor nodes die in arbitrary locations in PEGASIS as a selection of CHs has been done without concerning the overall lifespan of each sensor node. Delay in transmitting time bounds data over a chain of sensor nodes is the main disadvantage of PEGASIS. Optimal routing may not be present as it is a greedy algorithm that selects the shortest path rather than the optimal one and there is just simply CH that may turn out to be a bottleneck when a lot of data is gathered at this sensor node. In [4] it is suggested in the literature that various power conserving methods are presented that tend to prolong the lifespan of the network. The author explained a converged, power efficient cluster based protocol that is considered to prolong the lifespan of the network using a swarm intelligence mechanism, called artificial bee colony (ABC). In [16] the authors introduce the EEABR protocol, which is in view of the ACO heuristic centred on the standard WSN requirements. They propose two redesigns in the AntNet routing algorithm for reducing the memory utilized as a piece of sensor nodes as well as dealing with the energy constraints of the routes discovered by the mobile agents. In this paper the author has presented the enacted energy level of sensor nodes and their routing distance with the ACO probability equation by adjusting the routing conventions in WSN. Likewise the algorithm considered data aggregation yet did not consider the adjusted utilization of energy in the entire networks. The protocol exhibited in [17] introduced improved information driven routing protocol of WSN based upon the ant including the search ant, so as to provide past data to the neighbourhood ants. It described a "retry" principle so that the protocol does not come to a halt. In this the communication cost known as the Euclidean distance between the two vertexes is considered such that they can correspond with one another specifically. Taking into account this expense, it builds a weighted graph by consuming three types of ants, namely, chasing ants, foragers, and trailing ants. Chasing ants are specifically used to make the forward ants searching the sink (the destination node) in a scalable manner. In the proposed protocol, the source nodes were only 2.5% of the total nodes. No framework lifespan utilizing this algorithm was as a part of the paper. In [4] the authors have met the prerequisite of WSN by adjusting ant colony and presenting information on a chip based routing component for streamlining proficiency; however it has been connected to the planar routing. In [18] the authors are concerned with the problem of multiagent path planning in discrete-time pursuit-evasion games (PEGs). They proposed the improved strategy, that is, I-ACO algorithms, which include the designed direction factor, blocking rule, and smoothening rule. Other papers, for example, [19,20], have used ACO techniques to handle various routing issues in WSN but none of them have outperformed while considering cluster based ad hoc sensor networks. In this paper, we have applied the ABC and ACO to propose a cluster based routing plan for WSNs.
The fundamental thought in the proposed algorithm (Algorithm 1) is the choice of a CH and SCH that can reduce the distance between themselves and their neighbours within a cluster. Each node is installed in such way that it has equal distance from each of its neighbouring nodes and this distance is the same for every node of the network. The square shaped sensing field is divided into subregions and then subregions parts based on optimal clustering mechanism. Finally, among the divided regions, the CH is selected using the ABC algorithm and then CHs use ACO algorithm, which is an organically propelled standard for improved methodology, to discover a best route to the BS.

Radio Energy Model
Our energy model for the WSN is taking into consideration the first-order radio model as reported in [9]. In this firstorder radio model, a radio energy disseminated model is proposed in which transmitter chunks the energy while operating the radio electronics and power amplifier; on the other hand recipient disseminates the energy while initiating the radio electronics. The first-order model uses both free space and multipath fading models considering the distance between the sender and the receiver. If the considered distance between the transmitter and receiver is less than 0 , then the free space model is implemented; else multipath fading will be applicable.
With a specific end goal to send l-bit message over the network both the transmitting and receiving energies will be calculated by the following equations, respectively: Trans ( , ) = Trans-elec ( ) + Trans-amp ( , ) The CHs of the cluster expend their energy at three levels, that is, receiving energy to get the signals from their member nodes, aggregation energy to aggregate the signals, and transmitting energy to transmit the signals to other CHs. Additionally, we accept that distance between transmitter and recipient is more prominent than threshold. So energy utilization of CH for a cycle is given by And member nodes of cluster transmit their acquired signals to their respective CHs. So the energy utilization by the member node is given by 4

Journal of Sensors
Assumptions: (i) nodes are uniformly dispersed within a square field.
(ii) Each node has unique ID. Nodes located in the event area are grouped into one cluster.
(iii) Nodes are location-aware and quasi-stationary.
(iv) A sensor can compute the approximate distance based on the received signal strength (RSS), and the radio power can be controlled (v) A fixed base station can be located inside or outside the network sensor fields. (vi) All nodes are capable of operating in cluster head mode and sensing mode. (vii) Data fusion is used to reduce the total data message sent. Step 4. Compute the distance of each node from other nodes and the BS by using Euclidian distance formula.
where 1 and 2 are -coordinates of nodes and 1 and 2 are -coordinates of the nodes.
Step 5. Compute opt for optimal number of sub regions that can be formed in given region × (m 2 ) and divide the given region × (m 2 ) into sub regions based on opt value. Step 6. For each sub region repeat Steps 7 and 8.
Step 7. Select CH, for each sub region using ABC algorithm using function ABC Cluster Head{Energy, Nodes C}, Which accepts two arguments, (1) Nodes residual Energy and (2) Step 8. For each sub region, repeat Steps 9 and 10.
Step 9. Divide the sub region into sub region parts based on opt value for this sub region. Step 10. Select the sub cluster head (SCH) for each sub region parts based on given fitness formula (i.e residual energy and distance to sub region CH).
[Each SCH is responsible to communicate with CH of that sub region] Step 11. Select optimal path for CH of all sub regions for data transmit to BS using ACO algorithm. function ACO Optimal Path{CH s, BS} for each node := 1 to length(CH s) do Step 12. Nodes wake up and sensed data.
Step 13. Node forwards sensed data to SCH using TDMA with (2).
Step 14. SCH receives sensed data from nodes by using (3) and transmits aggregated data to CH using CDMA with (2).
Step 15. CH aggregates the data receivsed from all SCHs and send to BS using CDMA through a next hop receiver (i.e CH of other sub region) with (2).
Step 16. For each region, if Node Energy < th then go to Step 3.
Algorithm 1: Pseudocode of the proposed algorithm.
where toCH is the average length of the member node to their CH.

Squared Optimization Problem
In [3] the authors show that if the cluster formation is not done in a scalable manner, then the total energy cost of the entire network is maximized at an exponential rate; either the number of clusters is more as compared to the optimal number ( opt ) of clusters or the number of clusters is less than opt . If there are a smaller number of clusters, then the considerable number of CHs has to send their information far, which leads to a higher global energy cost in the system. Furthermore, if there are a bigger number of clusters, then less data aggregation is done locally and for monitoring the entire sensor field, a large number of transmissions are needed. When the uniform distribution of sensor nodes over the sensing field is done, the optimal probability of a sensor node being selected as a CH as a function of spatial density has been discussed either by simulation [8,9] or analytically [21,22]. This is a feasible clustering in the sense that well distribution of energy utilization is done by overall nodes and the total energy utilization is less. This optimal clustering highly relies on the energy model. Similar energy model and analysis are used for the purpose of the study as presented in [14] and determination of the optimal value of being opt done analytically. Cluster arrangement algorithm guarantees that the acknowledged number of clusters per cycle is equivalent to opt . Here, sensor area is supposed to be a square shaped with an area of A. It is required by the optimization problem to calculate the predicted squared distance between member nodes and their CH [9,23]. For extracting a closed-form expression for opt accordingly, various special cases are well thought out for obtaining an explicit parametric formula [24]. Suppose the sensing region is a squared shape area A over which number of nodes are uniformly deployed. If opt clusters are present, then on an average / opt node per cluster, having single CH and rest cluster member nodes will exist. While receiving signals from the sensors, aggregating signals, and sending aggregated data to the BS there is some dissipation of energy by each and every CH [9]. Thus the energy dissipated in the CH during a cycle with the supposition that each and every cycle has one frame is (4) and the energy utilized in a cluster member node is equivalent to (5). The area of each cluster is around 2 / opt . Like in [25] the expected distances are computed from a cluster member 7 node to its CH and from a CH to the BS. Because of the uniform distribution of CHs in a × (m 2 ) sensor area, the expected squared region enclosed by each cluster with the CH positioned at ( CH , CH ) can be computed as given below: where opt is the optimum number of CHs. The member nodes are also deployed regularly and independently in each cluster, where we have In this manner the predicted squared length from member nodes to their CH within a cluster can be computed as By substituting the value of 2 toCH from (8) in (5), the energy used by each member node per cycle is given by mem-nodes = Trans-elec + fs The energy utilization in the whole cluster during a single cycle can be communicated by using By selecting the feasible solution to the first derivative of (11), that is, opt , the total consumed energy per cycle, that is, cycle , can be minimized. The first and second derivative of cycle with respect to opt are By setting the first derivative with respect to optimal number opt to zero, the optimum number of CHs, that is, opt , can be calculated as We have shown that a feasible number of clusters depend upon the following parameters: total number of nodes, say , sensing field dimensions ( ), average length between sensor 8 Journal of Sensors nodes and BS ( toBS ), receiving total energy consumed by sensor nodes ( Rece-elce ), and transmitter amplifier energy consumption ( amp ). Some of the protocols [26][27][28] neglect the receiving energy dissipation of sensor nodes in exploring the routes and only consider the energy of the transmitter. So we also suppose that receiving circuitry to be very small. If receiving circuitry is large, it will be in the form of a constant overhead that can predominantly make the clustering schemes questionable [24]. The upper and lower range can be attained by putting the least and biggest values of toBS in (13) and can compute the optimal value of opt . Also the solution of the second derivation of (11) is positive which represents that the value of opt defined in (13) results in the least possible total energy consumption in WSNs with the regular node distribution. Once the optimal number of CHs is obtained, their locations are found by the ABC algorithm among uniformly distributed sensors. In [24] the authors have derived the expected value of different powers of communication path between the nodes and the BS throughout the sensing field (i.e., 2 toBS , 4 toBS ) as shown in Table 1. If ≤ 0 (i.e., for free space model), the expected value of 2 toBS is computed. Also for > 0 (i.e., for two-ray model), the expected value of 4 toBS is computed. Figures 1-3 show the sample plot of the network for different cases of experiments. We have considered one case with BS position (i.e., outside the sensor field) to divide the region into subregions and three cases with CH position (i.e., centre, corner, and mid-point of bottom side) to divide the subregions into subregion parts. We have used different values of 2 toBS , 4 toBS from Table 1 and submit these values in (13) to calculate the values of opt for all these cases. The different values of opt from (14), (15) Case 2. CH is located at the centre of the squared network field as shown in Figure 1.
Case 3. CH is located at the corner of the squared network field as shown in Figure 2.

Artificial Bee Colony Approach.
A recent swarm intelligent approach motivated by the gifted metaheuristic behavior of honey bees [6] is known as artificial bee colony algorithm, that is, ABC, which was invented by Karaboga et al. ABC is a swarm intelligence approach which is being attracted by the foregoing nature of real time bees. Bee colony optimization consumes three kinds of bees, namely, employed bees, onlookers, and scout bees. The basic behavior of these bees is as follows.
Scout Bees. These bees randomly move throughout the searching space and try to explore new food resources and calculate their fitness function.
Employed Bees. Employed bees are currently employing and exploring a specific food resource and calculate the new fitness value. They communicate information about this specific food resource with onlooker bees waiting in the beehive by performing waggle dance. This information can be amount of nectar, direction of food resource, and its distance from the beehive.
Onlooker Bees. If the new fitness value is better than the value calculated by the scout bees then select the employed bee and recruit onlookers to pursue the visited routes by employed bees and calculate fitness function. Choose the onlooker bee with best fitness function.
In artificial bee colony, where the exploitation process is performed by an onlooker and employed bees in the searching environment, scout bees manage exploration of food resources.
At the initial stage bee colony algorithm generates a population of these three types of bees along with their food resource locations through a number of iterations starting from = 0 up to max . The food resources are flower petals and the food source positions are called solutions that have different amount of nectar which is known as the fitness function. Each solution is a -dimensional solution vector, where = 1, 2, 3, . . . , , is number of optimization variables, and denotes number of onlooker or employed bees which is equal to the food source locations. Depending upon the visual information of the food resource (i.e., its shape, colour, and fragrance) the employed bees update the solutions in their memory and evaluate the nectar amount of the newly generated food resource. If the newly discovered food resource is better than the previous one in terms of fitness value, then bees keep the newly generated solutions in their memory and neglect the previous solution or vice versa. At the second stage of iteration, once all the employed bees had discovered food resources, bees communicate statistics regarding the food resources with onlooker bees sitting in beehive by performing a special dance called waggle dance. The food resource statistics can be quantity of nectar, its direction, and distance from the beehive. When onlooker bees get the information about food resources by the employed bees, they choose the favourable food resource. Depending upon the fitness value, the probability [29] for an onlooker bee to choose the food resource is evaluated by the given equation: where fitness is the fitness function of the solution which is proportional to the nectar quantity of food resource at the position and is the number of food sources.
To generate optimal food source location [29], bee colony uses the given equation where ∈ {1, 2, . . . , } are indexes that are arbitrarily selected and ∈ {1, 2, . . . , }, where is determined arbitrarily that must be different from , where is a random number that lies within [−1, 1]. It controls the generation of food sources in the neighbourhood of and also shows the comparison of two food locations using bees. Hence, from (23), it is noticed that if the difference in the and parameters reduces, variation towards the solution also gets reduced. Therefore the moment searching process reaches the optimal solution; number of steps will be decreased accordingly. If the parameter value generated by the searching process is greater than the maximum limit, it will be sustainable and if food source location cannot be improved through a preordained number of iterations, then that food resource will be replaced with another food resource discovered by the scout bees. The predefined number of iterations is an important control parameter of the artificial bee colony, so called a limit for rejection. The food resource whose nectar is neglected by the bees is replaced with a new food resource found by the scouts [29] Basically bee colony technique carries out various selection procedures.
(i) Global Selection Procedure. This process is followed by onlookers in order to discover favourable regions with some probability to choose the food resource by using (22).
(ii) Local Selection Procedure. This process is executed by employed bees and onlookers using the visual status of food resources.
(iii) Greedy Selection Procedure. Onlooker and employed bees execute this procedure in which as long as the nectar quantity of the optimal food resource is larger than the current food resource, the bee skips the current solution and retains the optimal solution generated by using (23).
(iv) Random Selection Procedure. This process is performed by scouts as mentioned in (24).

Ant Colony Optimization Based Routing in WSN.
Ant colony optimization is a swarm intelligence approach that is used to solve complex combinatorial problems [30]. The best example for ACO application is AntNet algorithm which was discovered by Di Caro and Dorigo [31]. ACO considers simulated ants as mobile agents that work collectively and communicate with each other via artificial pheromone trails.
In ACO based methodology, each and every ant randomly tries to search a way in the search space using forward and backward movements. Ants are originated from a source node at a regular time interval and while travelling through its neighbouring nodes, ant reaches its last destination so called sink node, say, . At whatever node the ant is, the information about a node has to be interchanged with the destination (i.e., BS); as ants are self-propelling in nature, therefore ants are set in motion. At each node , the probability with which an ant chooses the next node is given by where ( , ) are the pheromone generated by the backward ants and ( , ) is the estimated heuristic function for energy and distance and is the recipient nodes. For node , is the list of nodes previously visited by the ants. and are two control parameters which restrict the amount of pheromones. Pheromone values are deposited along circular arcs such that each arc ( , ) has a trail value ( , ) ∈ [0, 1]. Since the destination hop is a stable base station, therefore the last node of the path for every ant journey is the same. The higher the probability Prob ( , ) the higher the chances of the node being selected. The heuristic value of the node is expressed by the following equation: where is the current energy of the th node. is the initial energy of the th node. (BS , ) is minimum distance of CH from BS . Henceforth an ant can choose the next node on the basis of the amount of energy and distance level of the neighbouring nodes. This inferred that if a node has a lower energy level, it means it has a lower probability of being selected and vice versa. The moment forward ant reaches its destination node, a backward ant is originated and the memory of the foraging ant is exchanged to the trailing ant and then the forward ant is released. The trailing ant moves in the same way as the forward ant except in backward direction. While moving hop to hop back to the source node, the trailing ant retains an amount of pheromone, Δ , on every node which is given by the following equation: where is the route length of the th ant in terms of number of visited hops and is the weighting coefficient. These pheromone qualities are retained in the memory for the future reference. The quality of a node is determined by the measurement of pheromones on the way to its neighbouring hops. Therefore, it is observed that the values of the variables and have been confined in a memory stored for every ant in every node. However, this space is less than equal to a few bytes. This information is placed onto the edge relating to the foraging ant. To control the quantity of pheromones, pheromone evaporation operation is performed in order to avoid the immense amount of pheromone trails and to favour the searching of new paths. The evaporation mechanism is performed by using the following equation: where 0 < ≤ 1 is the abandonment of pheromone trail and is the coefficient of stigmergy persistence.

Proposed Hybrid (ABCACO) Algorithm.
The proposed algorithm operates iteratively, where each iteration initiates with a setup phase followed by a steady-state phase. After uniform or homogeneous deployment process of the network, each node initially calculates distance to other nodes and from BS using the Euclidian formula. At the starting of each setup phase, all nodes transfer the information regarding their energy and locations (calculated distances) to the base station. Thus, using this information, the base station computes the average energy level of all hops and decides which node will be chosen as CH such that node must have sufficient energy and least distance to the BS. After that the value of optimal clustering ( opt ) is calculated. This value is based on the position of BS, meaning that BS is positioned outside or centred of the square shaped sensing field. On the basis of opt and distance, all nodes of the region are divided into square shaped clusters known as subregions. Next, BS selects CHs at each round by using the ABC algorithm. In this algorithm, the CHs selection process is achieved using the fitness function given by (29) which is obtained analytically in which the communication energy and distance are the significant factors that are considered: where (BS , ) is the minimum distance of the node from BS . Again opt value is calculated and this value is based on the position of CH; that is, CH is positioned at the centre, corner, and mid-point of the bottom side of the square shaped sensing field. On the basis of this opt value and distance, all the nodes of subregions are further divided into subregions parts. Based on a given fitness formula, SCH of each CH is selected for each subregion part. In steadystate phase all nodes are responsible for communicating with their SCH of that subregion part and each SCH is responsible for communicating with CH of that subregion. Each SCH receives data from its member nodes and aggregates the data. After aggregation, SCH transfers data to the CH of that subregion. Again the CH aggregates the data and sends it to the BS in a multihop fashion (i.e., CH to CH) using the optimal path given by ACO algorithm. In our case we have considered that ants should always move towards the BS. So for this purpose, the number of hops is always less than or equal to opt . Depending upon the distance, the optimized hop count is calculated for each CH. Next, ants are starting from CHs to BS through the next possible hops and return with finding the optimized next hop. From that optimized hop the same process is repeated for the next optimized hop towards BS and so on. In ACO to accomplish a proficient and strong routing process some key characteristics of distinctive sensor networks are considered. Failure in communication nodes is more feasible in WSNs than traditional networks, as nodes are regularly positioned in unattended places and they use a restricted power supply. So the network should not be affected by a node's breakdown and should be in an adaptive structure to sustain the routing process. A better solution for data transmission is achieved by packet switching. In the packet switched network message is broken up into packets of fixed or variable size. Each packet includes a header that contains the source address, destination address, and other control information. The size of a packet depends upon the type of network and protocol used. No resources are allocated for a packet in advance. Resources are allocated on demand on a first-come, first-served basis. The packets are routed over the network hop to hop. At each hop packet is stored briefly before being transmitted according to the information stored in its header. These types of networks are called store and forward networks. Individual packets may follow different routes to reach the destination. In most protocols the transport layer is responsible for rearranging these packets before routing them on to the destination port numbers. So when failure takes place in a trail, the related data packet cannot reach the destination, that is, BS. Acknowledgment signals are used to achieve guaranteed and reliable delivery, So when an acknowledgment for a data packet is absent, the source node, that is, CH, retransmits that packet to an altered path. Therefore, routing becomes more robust by using acknowledgment related data transmission and maintains different routes. Also in this kind of network some routes would be shorter and set aside for minimum energy costs. Communication on these routes should be made at regular intervals to decrease the total energy consumption cost using these paths. That is, to attain lower energy consumption more data packets should be transmitted along shorter transmission routes. The setup and steady-state phase of the proposed algorithm are given below.
Setup Phase. In this phase, the operation is divided into cycles. In every cycle, all nodes generate and transmit a message to their SCH, CH, or base station. The BS uses the proposed algorithm to perform the following steps: to (1) divide region into subregions and further subregion parts, (2) select CH using ABC algorithm, and (3) compute the shortest multihop path using ACO algorithm. The process of the setup phase is shown in Figure 4.
Steady-State Phase. In this phase, all nodes know their own duty according to the notification message received in the setup phase. Member nodes sense the data and send to their SCH. Each SCH aggregates data received from its member nodes and sends to the CH of that subregion. Further, each CH aggregates data received from SCHs and sends to the next hop CH node on the shortest path determined in setup phase. When the energy of any node is less than the threshold energy, then that node will not participate in the CH or SCH selection. Otherwise the entire system continues with the setup and steady-state phase. The system continues these cycles until every node's energy has been depleted. The process of the steady-state phase is shown in Figure 5.

Simulation Results
In this section, the simulation results of cluster based WSN clustering using artificial bee colony (WSNCABC) [32] have  been compared with a well-known clustering based wireless sensor protocol called "Low Energy Adaptive Clustering Hierarchy" (LEACH) [3]. We used MATLAB 2012b and Oracle JDeveloper 11 g for evaluation of this approach. The simulations for 100 sensor nodes in a 100 m × 100 m sensing region and for 225 sensor nodes in a 200 m × 200 m and 300 m × 300 m region with equivalent initial energy of 0.5 J and 1.0 J have been run. Assume every node has a potential of interacting between base station and the sensor nodes. In the simulations, LEACH and WSNCABC algorithm settings and assumptions are for consistent comparisons. In experiments, a parallel model for MATLAB is used in providing periodical data transfers. Free space and multipath radio propagation models are used in simulations. For comparison, LEACH and WSNCABC were used to verify the success of this approach. A packet level simulation has been performed and utilizes the parameter values of the same physical layer as described in [9]. To get the average results, random topologies had been considered through the simulations. BS is located outside of monitored region. We consider various important aspects as the number of alive nodes per round, remaining energy, goodput (i.e., total number of packets received at the BS), and the stability period of the entire network. Simulation is carried out up to 10 percent of the total number of alive nodes. The simulation parameters are mentioned in Table 2.
After each round the number of live sensors goes down. The network remains alive till the last node. Figures 6-11 depict that the proposed approach has a large number of alive nodes compared against LEACH and WSNCABC. A uniform installation of clusters results in prolonged life of network. While in another two approaches like WSNCABC and LEACH the clusters are installed randomly which may cause nodes to cover a longer distance and may cause poor performance.
Goodput. Goodput is the number of packets delivered successfully per unit time [33]. Figure 12 shows the messages are transmitted more frequently as compared to WSNCABC and LEACH when BS is located at (−10, 50)     gradually which decreases the network lifetime. ABCACO increases the stability period of the network by 48% against WSNCABC and by 60% against LEACH, respectively, as shown in Figure 13.
Residual Energy. The residual energy is calculated as follows: residual energy = initial energy − current energy. Figures 14-19 demonstrate the residual energy of the network versus number of rounds. It clearly indicates that ABCACO algorithm enhances the lifespan of the network over the other two algorithms by consuming less energy.

Application
This paper explains how the wireless sensor network technology helps with fire detection in real time. One of the most appealing features of WSN is environment auditing. Wireless sensor nodes are installed in various parts of the forest which measure temperature, humidity, and biometric data and deliver this collected data to the BS. However, the success of forest fire detection system that is based upon the wireless sensor nodes is restricted due to constrained energy resources of the sensor nodes and the rough environmental settings. Immediate response to fire plays a crucial role in this whole scenario to have the least amount of permanent destruction in the forest. This requires constant surveillance of the area. We decided to study WSN after considering the deficiencies of satellite and camera system. Our proposed architecture not only aims to detect the forest fire effectively and quickly, but also was designed considering the very limitations of sensor nodes.
In our system, sensor nodes work under regular day conditions exempting the period of forest fire such that the wireless sensor nodes will be quite potential under the normal weather conditions and no fire. A distributed (cluster based)

Conclusion and Future Scope
In this paper, we use ABC because of its simple usage and quick convergence. Additionally, we implement an ACO technique to solve the routing problem that exists in WSNs. We implement both periodical (ABC) and event based (ACO) approaches to develop a new hybrid swarm intelligent energy efficient routing algorithm called ABCACO.
In ABCACO, the entire sensing field is divided into an optimal number of subregions and subregion parts based on opt . The proposed methodology provides a better clustering approach by selecting the CHs uniformly throughout the network area. Since we use hierarchical structure, at the first level, we implement ABC approach for the selection 18 Journal of Sensors of CHs and on the second level a better routing path is evaluated for data transmission by using ACO approach. ABCACO decreases the communication distance by placing the CH node in the perfect position that provides maximum lifetime of the network. The simulation results show that ABCACO outperforms network performance in terms of lifetime, stability, and goodput as compared to existing algorithms. This paper leads to one step ahead to interdisciplinary research within the biological systems to come up with better bioinspired solutions for real world WSN such as neural swarm system, swarm fuzzy system, and neural fuzzy system. The bioinspired hybrid algorithms open new perspective in the optimization solutions of WSNs.