Joint Optimization of Interference and Cost in Cognitive Radio Heterogeneous Network Using Fuzzy Logic Powered Ants

The advent of emergingwireless technologies has increased the demandof spectrum resources.On the other hand, present spectrum assignment is fixed and underutilized. Cognitive radio (CR) provides good solution to spectrum scarcity problem to accommodate new wireless applications. The network selection is an important mechanism in cognitive radio heterogeneous network (CRHN) to provide optimal Quality of Service (QoS) to both Primary Users (PUs) and Secondary Users (SUs). The aim of this work is to provide optimal QoS to SUs by appropriate network selection and channel assignment. The proposed FLACSA selects the best network while maximizing the data rate and minimizing the interference and cost simultaneously. Simulation results show the attractive performance of our proposed algorithm.


Introduction
Data transmission over wireless channel has been increased exponentially during the last decade.Due to this heavy load, wireless systems are facing problem of spectrum scarcity.To solve this problem, either expand wireless spectrum or use available spectrum efficiently and intelligently.Fifthgeneration (5G) networks are expected to provide high data rates with good QoS.Thus, in the coming years, demand for high data rates will increase manyfold.There are different views about 5G architecture: how to cope with high data rates such as cognitive radios, small cells, light communication, and MIMO communication systems.The 5G networks are considered as a heterogeneous network that consists of different types of primary networks.The small cells deployment can meet the demand of high data rates in 5G networks.Moreover, efficient spectrum sharing temporally and spatially ensures the coverage of 5G networks everywhere and all the time.CRN opportunistically utilized the spectrum of licensed networks (primary network).CRNs are becoming the best choice to use wireless spectrum efficiently [1].CRNs use the spectrum holes available in existing wireless networks.The unlicensed users of CRN are known as SUs and licensed users of primary networks are known as PUs [2].
This may face a problem in selecting which licensed network to join because CRHN incorporates multiple primary networks with different price and capacity requirements.In CRHN, selection of a suitable network [3], keeping in view the price, interference, and capacity, is thus very important [4,5].Authors in [6] considered a network selection problem as a noncooperative game in which SUs were considered as players that achieved equilibrium without cooperation.Markov decision process is proposed in [7] to maximize SUs throughput in a cognitive radio heterogeneous network.Many techniques, such as game theory based spectrum allocation [8], pricing, and auction mechanism based spectrum assignment [9][10][11], have been developed in the literature on spectrum assignment in CRHN.Multiobjective optimization is NPhard problem in cognitive radio networks [12].
Evolutionary computing algorithms are good to approximate NP-hard problems due to their low computational complexity [12].Evolutionary algorithms are inspired from biological behaviors of different living organisms.In [13], particle swarm optimization (PSO) is proposed for sensing in CRNs.Genetic Algorithm (GA) and PSO are used for resource allocation.A differential evolution based channel assignment algorithm is designed for CRNs in [14].In [15], GA and PSO are investigated to optimize price and interference in CRHN.The authors in [15] suggested that the GA can find optimal solution in comparison with PSO algorithm under the constraints on interference, data rate, and price.However, SUs accumulative data rates optimization and impact of varying densities of SUs on QoS are not well explored.
In this research work, we consider a heterogeneous network that consists of different types of primary networks.Each primary network has its own constraints regarding interference, data rates, and cost to buy the spectrum.
The main contributions of the paper are listed as follows: (i) We formulate an optimization problem in which the objective is to maximize data rates of SUs and minimize the interference incurred to PUs.Moreover, overall cost to buy primary network resources is also minimized.
(ii) A fuzzy logic ant colony system algorithm (FLACSA) has been proposed to optimize network selection and channel assignment problem in order to provide QoS to SUs.
(iii) We compare our method with other studied algorithms in literature.Numerical results show that the proposed method achieves superior performance in comparison with the other algorithms.
(iv) The impact of varying densities of SUs on cost, interference, and data rates of SUs in CRHN is well investigated.
The rest of the paper is organized as follows.The heterogeneous network model is explained in Section 2. The FLACSA based optimization problem is formulated in Section 3. Section 4 presents the simulation results and discussion.Finally, the research work is concluded in Section 5.

Heterogeneous Network Model
The CRHN consists of  primary networks.Each primary network consists of different number of PUs as shown in Figure 1.Availability of channels to SUs depends on the behavior of PUs.All primary networks are connected to a centralized operating mechanism that knows requirements of SUs and PUs activity.It is assumed that communication environment is slowly varying during spectrum decision time.
The centralized monitoring mechanism gathered the information such as number of SUs  and number of free available channels  in primary networks.It is assumed that th SU incurred unit interference ℎ  to th PU.
The objectives are (i) minimizing the cost paid by SU, (ii) minimizing the interference provided by SU, (iii) maximizing the accumulative data rates by SUs.
where () denotes accumulative function of interference and cost, () is accumulative function of SUs overall data rates,   is cost to buy the th network by the th SU, and   represents th SU data rate requirement in th network.Subject to constraints, we have the following: (i) Each SU is given only one channel at a time.
where  represents binary decision variable.If   = 1, the th SU gets the channel of th network and vice versa.
(ii) The total interference caused by the SUs to th network should be below the threshold level ∈  .
(iii) The data rate   of th SU should be less than or equal to data rate   of th network using th channel.
(iv) The price   paid by th SU should be equal to or greater than the price   to buy the th network.
The accumulative functions () and () as described in (1a) and (1b) are considered as fitness function and are used to evaluate the performance of the proposed algorithm.

Proposed Fuzzy Logic Ant Colony
System Algorithm (FLACSA) The ants have the ability to search the shortest path between nest and food source by releasing a liquid substance called pheromone on their routes.This behavior was first investigated by Dorigo et al. [16].
The fuzzy logic (FL) was introduced by Zadeh [17].Fuzzy systems have been making rapid progress in the recent years.According to fuzzy logic (FL), an object can take any real value between 0 and 1. Fuzzy control can be defined by linguistic sentences called IF-THEN rules instead of mathematical equations.The process of deduction of rules is called inference [18].Fuzzy logic controlling system stages are as follows: (a) Fuzzification operation can map mathematical input values into fuzzy membership functions.(b) In next step, linguistic rules are made to execute fuzzy membership functions.(c) Defuzzification operation is used to map a fuzzy output into binary form called crisp output values.There are different defuzzification techniques; for example, the center of gravity and the mean of maxima are mostly used [18,19].
In the proposed FLACSA, SUs are represented by ants and licensed networks are denoted by nodes as shown in Figure 2. A colony of ants is considered on each node.In this figure, the interference to networks by SUs is represented by edges.Based on the pseudocode in Algorithm 1, the search process runs for each node, respectively.In each journey, a traveler ant collects information of the transited edges and visited nodes.After arriving at a destination, based on the analyses of transited path by the fuzzy system, the ant releases pheromone on each edge.This procedure will be repeated for all ants, noting that the result of the mentioned procedure is a pheromone report, which presents pheromone amount of each node for each route.Different steps of the proposed algorithm are described as in Algorithm 1. operative network.It is assumed that each network has the same number of channels.The active ants are also located at each node, respectively, to start their journey at this step.

Network Probability.
After being located at a node in each iteration, each ant must select an edge to continue its journey.The selection probability  of each candidate edge  for active ant  is expressed as follows: , otherwise where  is the number of potential edges, Γ  1× represents a list of possible edges, and     , is a binary list of available channels for candidate SU   .The parameters  and  control relative importance of    , and Δ  , respectively.   , is the pheromone amount of SU   using channel  and Δ  is the cost of candidate edge for active ant .

Network Selection.
After calculation of each possible edge, an edge must be selected.To do this, random parameter  0 with uniform distribution in [0, 1] is compared with the predefined parameter , which is set to 0.9 based on trial and error [20].The results pick up one of the following selection methods: where   is the selected edge.Therefore, the active ant continues its journey through the selected edge to the next node.

Update Ant Activation.
In this algorithm, each ant can visit each node just once.If the current active ant , after its move towards   , has no possible edge to continue its journey or SU   has no interference, this ant is blocked.The activation list where Ω ,  , = 0 indicates that ant  is blocked and is considered as a passive ant in the current iteration .In this case, the termination condition is met for this ant.

Local Pheromone Updating.
At this stage, some pheromone must be released on the transited edges by active ant .The pheromone amount  of the selected network   for the SU   is updated by where Δ is the amount of local pheromone updating managed by an FL system and its impact can be adjusted by . Figure 3 illustrates the structure of the FL system, considering Mamdani's implication approach.This model manages Δ as output of the FL system by considering two inputs: cost to pay network and interference to the network by SUs.Total cost of the edges visited by each ant is where LV is the list of the visited edges by ant  through its journey.The cost proportion of each ant is obtained by where routes with high Δ  CP are not desired by the system and are punished by gaining few Δ;  represents the total number of ants.The total interference is the sum of the interferences on the selected networks through the visited edges and is defined as where routes with high interference ℎ  Total are not desired by system and are punished by achieving less Δ.Fuzzy input membership function is defined by two values, low and high, as shown in Figure 4. Fuzzy output membership function consists of four values, very high, high, low, and very low, respectively, which represent different levels of pheromone as shown in Figure 5.
Based on the above description, Fuzzy Logic IF-THEN rules are illustrated in Table 1.By considering the rules set, routes with least cost proportion, interference, and high data rates have gained the most local pheromone update.At the final stage, the center of gravity method is employed for the defuzzification process to convert fuzzy values into binary values.

Channel Selection.
After Ξ number of iterations, based on the pheromone amount, channel   is assigned to th SU as follows:

Results and Discussion
This research work has been conducted using MATLAB software.The performances of FLACSA and ACSA have been evaluated in comparison with PSO and GA approaches.For the objective function with constraints specified in [15], two scenarios, 1 and 2, are considered.In scenario 1, the price that SUs can pay to buy a network is fixed.In scenario 2, the price to pay by SUs to buy a network is varying.The parameter values for both scenarios, for primary networks and SUs, are presented in Tables 2 and 3, respectively.By performing initial experiments, parameters are adjusted to achieve high performance.The parameter values for FLACSA are represented in Table 4 for the performed simulations.
Figure 6 shows the impact interference caused by SUs towards PUs in both scenarios 1 and 2, respectively.The results show that FLACSA performs better than all other algorithms under study due to the contribution of FL to updating local pheromone.The average accumulative interference drops to 3 when FLACSA is used; ACSA produces second best results and reduced overall interference of CRHN to 7 in scenario 1 and almost 6 in scenario 2 due to its features of exploration and exploitation in comparison with GA and PSO approaches used in [15].
Figure 7 shows the overall objective function mentioned against number of iterations in scenarios 1 and 2, respectively.Average is taken after 20 experiments.The results show that GA performs well for initial iterations.However, after completing 3000 iterations, FLACSA performs better than all other algorithms and minimized the accumulative cost and interference objective function to 533 in scenario 1 and 562 in scenario 2.
Figure 8 shows the impact of the cost paid by SUs to buy spectrum resources of primary networks in a CRHN in comparison with number of iterations in scenarios 1 and 2, respectively.FLACSA performs better than GA and PSO after 1100 iterations in scenario 1 and after 800 iterations in scenario 2. During simulation results, it has been observed that FLACSA ensures better results than the GA in large iterations.However, convergence speed of GA is better in starting iterations.In CRHN, increasing number of SUs means that the more the SUs are willing to buy the spectrum, the greater the cost of network is and the greater interference towards PUs is. Figure 9 demonstrates overall objective function in comparison with number of SUs in scenarios 1 and 2, respectively.As is illustrated in Figure 9, the overall objective function, which is the sum of cost and interference, increases with the number of increasing SUs.FLACSA optimizes slightly better than ACSA due its FL updating feature.The experiment was conducted on a PC with Core i5 processor and 6 GB of memory.The computational complexity of considered algorithms is shown in Table 5.The result shows the average elapsed time after Wireless Communications and Mobile Computing GA is slower in comparison with other algorithms due to its more exploration capabilities.The average convergence times of FLACSA and ACSA are 21 msec and 25 msec, respectively.Hence, the proposed FLACSA due to low computational complexity as well as low-cost solution can be implemented easily in real-time scenarios.
Figure 10 shows accumulative data rates of SUs against the number of iterations.As shown in Figure 10, the SUs accumulative reward in CRHN increased as the number of iterations increased and converges to the optimal value of 590.FLACSA converges quickly as compared to ACSA due to FL updating feature.Figure 11 shows the impact of varying density of SUs on data rates of SUs in CRHN.As is evident from Figure 11, the SUs individual data rates reduce with the   increasing number of SUs.The FLACSA performs better than ACSA to optimize data rates of SUs.

Conclusion
The CRHN is a proposed technology for 5G networks.This research work presents fuzzy ants based optimization method to minimize the interference of SUs incurred to primary networks, reduce the cost to buy primary network resources, and maximize the data rates of SUs.The performance of proposed fuzzy logic based ant colony system algorithm (FLACSA) is evaluated in comparison with other bioinspired algorithms in literature.Moreover, the impact of number of varying SUs in cognitive radio heterogeneous network on data rates is investigated.Furthermore, the SUs accumulative data rate is optimized.The simulation results showed that FLACSA achieves superior results due to fuzzy logic updating the local pheromone in ACSA and can enhance the performance of cognitive radio heterogeneous network further.

Figure 3 :Figure 4 :
Figure 3: Structure of fuzzy logic system for the FLACSA.

Figure 8 :
Figure 8: Average accumulative cost against the number of iterations in (a) scenario 1 and (b) scenario 2.

Figure 9 :
Figure 9: Average accumulative objective cost and interference function against varying number of SUs in (a) scenario 1 and (b) scenario 2.

Figure 10 :
Figure 10: SUs accumulative data rate against the number of iterations.

Figure 11 :
Figure 11: SUs data rates against increasing number of SUs in CRHN.
. Initial parameter values are set at this stage.SU   aims at network   .Topology information as number of SUs  and primary networks , each with   channels, is imported to the algorithm regularly using centralized

Table 4 :
Parameter values for simulations.