<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">WET</journal-id><journal-title-group><journal-title>Wireless Engineering and Technology</journal-title></journal-title-group><issn pub-type="epub">2152-2294</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/wet.2011.23019</article-id><article-id pub-id-type="publisher-id">WET-5761</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  Optimization of Threshold for Energy Based Spectrum Sensing Using Differential Evolution
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>.</surname><given-names>Aravind Narayanan</given-names></name><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>P.</surname><given-names>Arun Shivaram</given-names></name><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>M.</surname><given-names>Maheshkumar</given-names></name><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Santhoshkumar.</surname><given-names>K</given-names></name><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>L.</surname><given-names>Sathiesh Kumar</given-names></name><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>K.A</surname><given-names>Narayanankutty</given-names></name></contrib></contrib-group><author-notes><corresp id="cor1">* E-mail:<email>aravind.1990@gmail.com(.AN)</email>;<email>arun.shivaram@gmail.com(PAS)</email>;<email>m.maheshkumar5490@gmail.com(MM)</email>;<email>santhoshdormant@gmail.com(SK)</email>;<email>sathiesh1290@gmail.com(LSK)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>06</day><month>07</month><year>2011</year></pub-date><volume>02</volume><issue>03</issue><fpage>130</fpage><lpage>134</lpage><history><date date-type="received"><day>March</day>	<month>24th,</month>	<year>2011</year></date><date date-type="rev-recd"><day>April</day>	<month>23rd,</month>	<year>2011</year>	</date><date date-type="accepted"><day>May</day>	<month>16th,</month>	<year>2011.</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  Interference threshold based on energy setting in cognitive radios is a non-convex optimization problem [4]. The convergence of optimization techniques like Genetic algorithm (GA) takes several iterations to fix this threshold. Here, an attempt made to use Differential evolution (DE) method for optimization after formulating the objective functions. The advantages with this method were three fold over GA. They were, a. A reduced number of iterations, b. Marginal improvement and consistency of throughput and c. Localization of the best solution. The comparative results are presented and discussed.
 
</p></abstract><kwd-group><kwd>Cognitive Radio</kwd><kwd> Spectrum Sensing</kwd><kwd> Differential Evolution</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The increasing demand for mobility and portability in communication equipment has made wireless communication an indispensable field of research. The focus today is to construct wireless networks or nodes that can dynamically reconfigure their transmission and reception parameters. Spectrum sensing and its utilization are thus ubiquitous. This concept is called a cognitive radio and the first main function of such a system is to detect the unused spectrum and transmit in it without interference to primary users.</p><p>Newer wireless technologies crop up everyday providing better service to the users. The 3G or third generation of wireless networks are only being rolled out in most countries and research is already on to take communication to the next level with 4G or Long Term Evolution (LTE) [<xref ref-type="bibr" rid="scirp.5761-ref2">2</xref>]. All of these technologies focus on providing new features to the users, such as video conferencing, high speed internet etc. with a better quality of service.</p><p>Simultaneously, newer techniques are also being developed for making better utilization of the wireless resources available. One such technology is cognitive radio [<xref ref-type="bibr" rid="scirp.5761-ref3">3</xref>]. A wireless network consisting of nodes that are capable of dynamically changing their transmission and reception parameters is called a cognitive radio. One of the main resources that the cognitive radio aims at optimizing is the frequency spectrum. It does this by allowing the secondary users to detect and utilize portions of the licensed spectrum that are not being used by the primary user. The process of detecting unused frequencies or spectral holes is called spectrum sensing [<xref ref-type="bibr" rid="scirp.5761-ref1">1</xref>]. Methods of sensing spectral holes include energy based detection, matched filter based detection, cyclostationary methods etc. In this paper, we propose a method of energy based spectrum sensing using differential evolution to optimize the threshold used for detection.&#160;</p><p>The organization of the paper is as follows. In section II, we explain in detail the sensing problem for threshold based detection of spectral holes. In section III, we present an analysis of the optimization techniques that can be used for this process and explain why we choose differential evolution. Section IV is dedicated to our proposed method of threshold based spectrum sensing using differential evolution. In Section V, we present the results obtained and compare the performance of differential evolution with that of genetic algorithms. Section VI concludes the paper, where we restate our major observations and future work.</p></sec><sec id="s2"><title>2. The Sensing Problem</title><p>The sensing problem under consideration here is same as the one used in [<xref ref-type="bibr" rid="scirp.5761-ref4">4</xref>]. The wide band spectrum is divided in to K narrow sub-bands and each sub-band can be in two possible states H<sub>0</sub> and H<sub>1</sub>.</p><p><img src="3-6801076\bb4bd205-a211-4ec3-8d6d-f84735892820.jpg" /></p><p>H<sub>0</sub> represents a spectral hole and H<sub>1</sub> represents an occupied channel. V<sub>k</sub> is the Gaussian noise with power<img src="3-6801076\56bf92d4-89aa-4930-9178-08ad28ba610a.jpg" />, H<sub>k</sub> is the channel impulse response in the frequency domain and S<sub>k</sub> is the frequency spectrum of the signal.</p><p>In order to find out whether a channel is occupied or free, we use the following energy detector.</p><disp-formula id="scirp.5761-formula83259"><label>(1)</label><graphic position="anchor" xlink:href="3-6801076\973b28aa-0994-4604-824b-be561039b6bb.jpg"  xlink:type="simple"/></disp-formula><p>where γ<sub>k</sub> is the threshold for the k<sup>th</sup> sub-band and N is the number of measurements made for each sub-band. When N is large enough, the random variables of the energy detector Y<sub>k</sub> can be considered to follow a normal distribution, that is Y<sub>k</sub>~N (&#181;<sub>0,k</sub>,<img src="3-6801076\815e7cd5-4911-46f9-a0e4-deef314a52b5.jpg" />) for the state H<sub>0,k</sub> and Y<sub>k</sub>~N (&#181;<sub>1,k</sub>,<img src="3-6801076\393e121a-ba33-4b17-9f76-8d554b145566.jpg" />) for the state H<sub>1,k</sub>. The sensing performance can be quantified based on the probability of identifying a spectral hole, as in (2), and the probability of identifying an occupied channel as a hole, as in (3).</p><disp-formula id="scirp.5761-formula83260"><label>(2)</label><graphic position="anchor" xlink:href="3-6801076\3767bba9-b54e-4242-938a-5ef1c599fe74.jpg"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.5761-formula83261"><label>(3)</label><graphic position="anchor" xlink:href="3-6801076\a92418ae-4ed8-4d1e-8da6-c7d416a45ad2.jpg"  xlink:type="simple"/></disp-formula><p>In (2) and (3), P<sub>f</sub> and P<sub>d</sub> are the probability of false alarm and probability of detection of a transmission respectively. Here <img src="3-6801076\d36b66cf-b79f-4405-9877-3d5e5ae64d0e.jpg" /> represents the probability of correctly detecting a spectral hole as a spectral hole, and not the Bayesian probability of occurrence of one event given another has occurred. This representation holds for similar probability terms encountered in (2), (3), (4) and (5).</p><p>The consideration that the energy detector specified in (1) will follow a normal distribution on taking a large number of measurements N allows us to compute the values of P<sub>f</sub> and P<sub>d</sub> from the cdf of the normal distribution as shown below in (4) and (5).</p><disp-formula id="scirp.5761-formula83262"><label>(4)</label><graphic position="anchor" xlink:href="3-6801076\2bce71f0-8611-4868-afed-32c2915f66ac.jpg"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.5761-formula83263"><label>(5)</label><graphic position="anchor" xlink:href="3-6801076\27071410-3390-4802-a9bb-4ccb5a147461.jpg"  xlink:type="simple"/></disp-formula><p>The γ<sub>k</sub> values should be optimized such that the channel interference is minimum and the throughput achieved by the secondary user is maximum. For this purpose, we use the throughput achievable through each of the k channels, and the interference cost that has to be incurred on transmitting through the channels. The objective functions for the optimization can then be formulated, as in (6) and (7), using these values and the probability of identifying a spectral hole and the probability of missed detection.</p><disp-formula id="scirp.5761-formula83264"><label>(6)</label><graphic position="anchor" xlink:href="3-6801076\0c387a83-0655-45ae-aef3-afa48b4f1cc1.jpg"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.5761-formula83265"><label>(7)</label><graphic position="anchor" xlink:href="3-6801076\8d46dee1-8b08-437e-8bfb-a8ff5870c24c.jpg"  xlink:type="simple"/></disp-formula><p>where P<sub>d</sub><sub> </sub>(γ) and P<sub>f</sub><sub> </sub>(γ) are k dimensional vectors with each element representing the probability of detection and probability of false alarm correspondingly in the respective sub-band; r is the vector containing the throughputs attainable through each channel and c is the vector containing interference costs incurred on transmitting through each of the channel.</p></sec><sec id="s3"><title>3. Optimization Techniques and Differential Evolution</title><p>The non-convex nature of the objective function posed above limits us from using the conventional optimization methods like convex maximization. Hence, we considered optimizing using direct search algorithms such as genetic algorithm [<xref ref-type="bibr" rid="scirp.5761-ref5">5</xref>], particle swarm optimization [<xref ref-type="bibr" rid="scirp.5761-ref6">6</xref>] and differential evolution [<xref ref-type="bibr" rid="scirp.5761-ref7">7</xref>]. These optimization techniques are useful in the sense that they do not require the objective or cost functions to be differentiable or linear. The knowledge of an objective function that has to be minimized is alone sufficient for these techniques. Moreover, they also have sufficient safeguards to prevent the algorithm from being stuck at a local minimum. An example of this is the mutation step of genetic algorithms [<xref ref-type="bibr" rid="scirp.5761-ref5">5</xref>]. The requirements of these algorithms is that they should have good convergence properties and should not involve too many or complex control variables.</p><p>Existing methods for threshold optimization in spectrum sensing use genetic algorithms [<xref ref-type="bibr" rid="scirp.5761-ref4">4</xref>]. Differential evolution is a direct search technique that iteratively improves the fitness of the candidate solutions. It tries to optimize the requirements by using its own formulae for mutation and crossover to create new candidate solutions. The fitness of these new candidates decides whether to replace the existing population members or not.</p><p>The working of the differential evolution algorithm is simple.</p><p>1) It has a population of candidate solutions that are sometimes called agents.</p><p>2) Positions of existing agents are combined using a mathematical formula to move the agents around the search space.</p><p>3) If there is an improvement from the old position to the new position of an agent, then it is accepted as a member of the population, else it is discarded.</p><p>4) This process is iteratively repeated to arrive at the optimal solution.</p><p>It has been shown through extensive experimental testing that the convergence properties of differential evolution are better than that of genetic algorithms [<xref ref-type="bibr" rid="scirp.5761-ref7">7</xref>]. Specifically, differentially evolution has been found to converge faster than genetic algorithms in most cases.</p><p>This has prompted us to utilize differential evolution for optimizing the threshold values involved in energy based spectrum sensing.</p></sec><sec id="s4"><title>4. Threshold Optimizsation Using Differential Evolution</title><p>We apply the differential evolution optimization technique to the sensing problem under consideration here, with (6) and (7) as the objective functions. A set of N threshold vectors, each of the form</p><p><img src="3-6801076\baa052e2-7dc6-4f7f-bc77-381309af3ef6.jpg" />.</p><p>with random values, is taken as the initial population set. G denotes the generation number. This set represents the potential candidates for optimization and is the first generation of the differential evolution scheme discussed below [<xref ref-type="bibr" rid="scirp.5761-ref7">7</xref>].</p><p>The best threshold set in each generation is the one which gives optimal values for throughput (6) and interference (7).</p><p>The next generation of vectors is generated as follows. For every vector, t<sub>i</sub><sub>,G</sub> (target vector), the following three steps are performed.</p><p>1) Mutation: Three mutually distinct vectors t<sub>r</sub><sub>1,G</sub>, t<sub>r</sub><sub>2,G</sub>, t<sub>r</sub><sub>3,G</sub> are taken such that <img src="3-6801076\97363aaa-d096-4f7c-b5f5-8f4ccf6c4b80.jpg" />. A mutant vector/donor vector is generated according to</p><disp-formula id="scirp.5761-formula83266"><label>(8)</label><graphic position="anchor" xlink:href="3-6801076\9024c1fa-dd40-41db-b176-b1457b1f35df.jpg"  xlink:type="simple"/></disp-formula><p>where F <img src="3-6801076\25ac4022-0738-4e17-9fee-3e122db6e262.jpg" /> [0, 2] is a constant which controls the magnitude of the differential variation.</p><p>2) Crossover: The diversity of the vector set is increased by developing a trial vector as</p><disp-formula id="scirp.5761-formula83267"><label>(9)</label><graphic position="anchor" xlink:href="3-6801076\ea6c8168-e891-4c72-a363-7eb423a39baf.jpg"  xlink:type="simple"/></disp-formula><p><img src="3-6801076\5c8fd3ab-f5de-48a7-a562-d21eac2a80e8.jpg" />;<img src="3-6801076\6266fad8-f206-415a-b98a-1e44456e3748.jpg" />; <img src="3-6801076\da61dde0-ebeb-4cc8-96db-9d89588c7edb.jpg" />U[0, 1]; rndI is a random integer from [<img src="3-6801076\78892e14-5ed0-457f-b5a0-112c5e9d786b.jpg" />]; rndI ensures that at least one element from v<sub>i</sub><sub>,</sub><sub> G</sub><sub> +</sub><sub> 1</sub> is incorporated into u<sub>i</sub><sub>,</sub><sub> G</sub><sub> +</sub><sub> 1</sub><sub>.</sub></p><p>CR is the crossover constant [0, 1] and its value is chosen by the user. A higher value of CR causes more elements from the mutant vector v<sub>i</sub><sub>,</sub><sub> G</sub><sub> </sub><sub>+</sub><sub> 1</sub> to get incorporated in the trial vector u<sub>i</sub><sub>,</sub><sub> G</sub><sub> </sub><sub>+</sub><sub> 1</sub>. It has been shown in [<xref ref-type="bibr" rid="scirp.5761-ref7">7</xref>] that a higher value (such as 0.9 or 1) of CR is a good choice and can lead to faster convergence. Hence the value of CR has been chosen as .95.</p><p>3) Selection: The trial vector u<sub>i</sub><sub>,</sub><sub> G</sub><sub> </sub><sub>+</sub><sub> 1</sub> is compared with the target vector v<sub>i</sub><sub>,</sub><sub> G</sub><sub> </sub><sub>+</sub><sub> 1</sub> and the one that gives the best values for R and I is passed on to the next generation as &#160;t<sub>i</sub><sub>,</sub><sub> G</sub><sub> </sub><sub>+</sub><sub> 1</sub>.</p><p>The algorithm is continued till the optimum threshold vector is found.</p></sec><sec id="s5"><title>5. Results and Observations</title><p>The optimization of the threshold values was done using both GA and DE. In order to compare the performance of the two methods, we use the number of function evaluations required as a parameter. Further, we also plot the interference vs. throughput curves of the final population with interference as the independent variable, for both DE and GA.</p><p>Simulations were done using MATLAB and the values of r, c and H are the same as used in [<xref ref-type="bibr" rid="scirp.5761-ref4">4</xref>].</p><sec id="s5_1"><title>5.1. Function Evaluations</title><p>The number of function evaluations that an optimization algorithm requires to converge to the optimum value is an important parameter for measuring the performance. The lower the number of function evaluations required, lesser the computational load and faster the convergence.</p><p>On optimizing the threshold using both GA and DE, we found that the number of function evaluations required by DE is far less than that of GA. <xref ref-type="fig" rid="fig1">Figure 1</xref> shows the final pareto front after optimization was done using GA. It also shows the number of function evaluations required for convergence. <xref ref-type="fig" rid="fig2">Figure 2</xref> shows the final pareto</p><p>front after optimizing using DE, and the number of function evaluations required. The green dot in <xref ref-type="fig" rid="fig1">Figure 1</xref> and 2, representing the optimum point, is arrived at as follows. Among the final population, the minimum value of F<sub>1</sub>(x) and the maximum value of F<sub>2</sub>(x) are used to fix an origin and the green dot or the optimum point is the point that has the minimum distance from the origin that was previously fixed.</p><p>In Figures 1 and 2,</p><p><img src="3-6801076\25db610b-0261-449c-9165-cc960b87d477.jpg" /></p><p><img src="3-6801076\c884df42-d54f-4c22-ae7a-330a14c91b1f.jpg" /></p><p>DE requires less than two times the number of function evaluations as GA and this was found to be consistent over a number of optimizations. This lesser number of function evaluations means that the computational cost of optimizing using DE is far less than GA.</p></sec><sec id="s5_2"><title>5.2. Interference vs Throughput</title><p>Another parameter for comparing the performance is the throughput achieved for various values of aggregate interference. <xref ref-type="fig" rid="fig3">Figure 3</xref> is the plot of interference vs. throughput for GA and DE, taking interference as the independent variable.</p><p>We can see from the graph that for most values of interference, the throughput obtained in the case of DE is greater than that of GA. This increased throughput for the same value of interference is favorable to the secondary user.</p></sec><sec id="s5_3"><title>5.3. Localization of Best Solution</title><p>It can be seen from <xref ref-type="fig" rid="fig1">Figure 1</xref> that the members of the final</p><p>population in GA are uniformly scattered and hence visually localizing the best member becomes difficult. However, in the case of DE, we can see that the best member can be easily localized. <xref ref-type="fig" rid="fig2">Figure 2</xref> shows the scatter of the final population members of DE. Moving to the left from the green dot drastically increases the interference and moving to the right decreases the throughput significantly. Hence, no other point can possible be the best member.</p><p>From the above comparisons, DE has been found to be more advantageous than GA in the following ways.</p><p>1) The lesser number of function evaluations means that the rate of convergence is better in the case of DE than GA.</p><p>2) The higher throughput achieved means that DE converges to a better optimum value when compared to GA.</p><p>3) The accuracy of convergence is also evident from the scatter plots in Figures 1 and 2, since the best member is localized in the case of DE, whereas the same cannot be said for GA.</p></sec></sec><sec id="s6"><title>6. Conclusions</title><p>A cognitive radio network aims to maximize spectrum utilization by detecting unused spectrum and letting the secondary users utilize it. Setting the threshold for energy based spectrum sensing is a non-convex optimization process and the optimization should be such that the probability of error decreases. In this paper, we have first explained the sensing problem involved, the requirement of optimization and the objective functions. We have then stated the disadvantage of generic algorithms in these circumstances, which is the large number of iterations it takes to converge. We then propose a method for nonconvex threshold optimization using differential evolution and then compare the results obtained from differential evolution and genetic algorithms. Based on three factors, namely the number of function evaluations, the marginal increase in the throughput achieved and the easiness of localizing the best solution, we conclude that differential evolution has certain definite advantages over genetic algorithms in optimizing the threshold for energy based spectrum sensing.</p></sec><sec id="s7"><title>REFERENCES</title></sec></body><back><ref-list><title>References</title><ref id="scirp.5761-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Michele Sanna and Mourizio Murroni, “Opportunistic Wideband Spectrum Sensing for Cognitive Radios with Genetic Optimization,” in IEEE ICC 2010, IEEE Communications Society.</mixed-citation></ref><ref id="scirp.5761-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">James P.K Glib, “The IEEE Wireless Dictionary,” in Standards Information Network, NY: IEEE Press, 2005.</mixed-citation></ref><ref id="scirp.5761-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">S. Haykin, “Cognitive Radio: Brain Empowered Wireless Communications,” Selected Areas in Communications, IEEE Journal on, Vol. 23, No. 2, pp. 201-220, 2005.</mixed-citation></ref><ref id="scirp.5761-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Saeed. R, “Cognitive Radio and Advanced Spectrum Management,” Mosharaka International Conference on Communication, Computers and Applications, 2008.</mixed-citation></ref><ref id="scirp.5761-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Goldberg, D.E. (1989), “Genetic Algorithms in Search, Optimization and Machine Learning,” Kluwer Academic Publishers.</mixed-citation></ref><ref id="scirp.5761-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Kennedy, J. and Eberhart, R., “Particle Swarm Optimization,” Neural Networks, 1995. Proceedings., IEEE International Conference.</mixed-citation></ref><ref id="scirp.5761-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Rainer Storn and Kenneth Price, “Differential Evolution – A Simple and Efficient Heuristic for Global Optimization Over Continuous Spaces,” Journal of Global Optimization 11: 341-359, 1997.</mixed-citation></ref></ref-list></back></article>