# Fuzzy Logic and Bio-Inspired Firefly Algorithm Based Routing Scheme in Intrabody Nanonetworks
## 1 Introduction
Avoiding collecting data from all spatially correlated NBSs and selecting the optimized number of NBSs leads to low energy consumption during the data aggregation process. Moreover, ensuring the involvement of enough NBSs for data reporting also helps in achieving a high level of data accuracy. The selection of correlated regions is performed through the Fuzzy Logic-Based Decision System (FLBDS). The underlying motivation behind using fuzzy-based controlled decisions is its high potential for making energy-aware decisions without using complex mathematical modeling. While the selection of NBSs from nominated correlated regions is performed using the bio-inspired firefly mechanism. Firefly algorithm is a meta-heuristic algorithm inspired by the flashing pattern and behavior of fireflies; it determines the optimum solution with low complexity that supports in realizing the goal of low energy consumption during the data collection in IBNNs. The main contributions of our proposed work are underlined as:  
1. In this work, we proposed a new FLBDS selection mechanism for correlated region selection. Our proposed FLBDS technique ensures the selection of those correlation regions for data aggregation that has updated information and maximum residual energy. The proposed FLBDS selection resulted in improved information accuracy and stabilized energy consumption in the event area. We proposed a novel bio-inspired firefly algorithm selection mechanism for evading spatial correlation in the reported data. Our proposed bio-inspired firefly algorithm regulates the nomination of NBSs based on their fitness value. The proposed fitness criteria prevent exhaustion of individual NBSs and consume maximum energy resources of NBSs in transmitting crucial information while preventing the transmission of redundant information. 3. Our proposed work is evaluated by carrying out extensive simulations using the Nano-SIM tool that is an emerging tool integrated into NS3 for simulating electromagnetic-based nanonetworks in the THz band [19]. The detailed simulations investigate the performance of our proposed scheme in comparison with different scenarios and the flooding scheme [19]. The different scenarios opted for comparison are briefly explained as; in the first scenario, we involved all the correlated regions (i.e., without employing FLBDS correlated region selection) and only selected optimum number of NBSs using bio-inspired firefly algorithm. Whereas in the second scenario, we selected only information and energy enriched correlated region with the involvement of all the NBSs in response message generation. We have organized the rest of the paper as follows: Section 2 discusses FLBDS, bio-inspired and existing routing schemes for IBNNs in detail. In Section 3, we thoroughly demonstrate the proposed fuzzy logic and bio-inspired firefly algorithm based routing scheme. Section 4 deals with the performance evaluation, simulation results and provide an extensive comparison with different scenarios and flooding scheme. In Section 5, we finally draw up the conclusion.