Artificial Intelligence Based Model for Channel Status Prediction: A New Spectrum Sensing Technique for Cognitive Radio

The recent phenomena of tremendous growth in wireless communication application urge increasing need of radio spectrum, albeit it being a precious but natural resource. The recent technology under development to overview the situation is the concept of Cognitive Radio (CR). Recently the Artificial Intelligence (AI) tools are being considered for the topic. AI is the core of the cognitive engine that examines the external and internal environment parameters that leads to some postulations for QoS improvement. In this article, we propose a new Artificial Neural Network (ANN) model for detection of a spectrum hole. The model is trained with some pertinent features over a channel like SNR, channel capacity, bandwidth efficiency etc. The channel capacity status could be identified in a quantized index form . Some simulation results are presented.   0,1


Introduction
The electromagnetic radio spectrum is a limited but precious natural resource.With the technological development of various wireless communication systems and demand for frequencies, there is a common notion of scarcity of spectrum at which these wireless devices operate [1].Recent literature indicates that substantive portion of remains underutilized as shown in Figure 1 owing to the current fixed allocation policy, e.g. one observes in [2][3][4] that only 2% of licensed spectrum is being used in USA at a given time.Further reports show that the spectrum utilisation is only 22% in urban area and about 3% in rural area [2][3][4][5][6][7][8].
The cognitive radio is now being considered as an intelligent device that enables an efficient use of spectrum.To the OOPDAL Loop [9] a new feature knowledge base is added [10] to interact with the environment and store the processed information in the database to take decisions [10].
In this paper we propose an algorithm with artificial intelligence for spectrum sensing hence determine the occupancy status of a channel, thus enabling opportunistic spectrum access.Recently Artificial Intelligence (AI) based methods are also receiving significant research attention.It has been seen that AI forms the basic core of the cognitive engine that may be conveniently used for the improvement of certain QoS parameters of wireless communication system via cognizance.Literature survey further indicates that newer techniques based on ANN and genetic algorithms are also being investigated for CR spectrum sensing [18,19].
We propose a new ANN model with a view to examine and subsequently predict the status of the channel in the TV band.This prediction algorithm enables one to decide whether a given band is occupied by a primary user (PU) or not-thus leading to an effective identification of a white space or spectrum hole for possible allocation to a secondary user (SU).In the proposed methodology the scenario considered is a CR-based scanning system placed within the range of a transmitting TV station.The occupancy status of the TV channel is determined based on certain pertinent channel parameters, like signal to noise ratio (SNR), channel capacity, bandwidth (BW) efficiency and the distance (d) of the scanning system from the primary TV base station.Our main aim is to determine the channel occupancy status in a quan-

Spectrum Sensing
Spectrum sensing is the capability of the cognitive radio to detect unused band and allot it to a secondary user-Opportunistic Spectrum Access.
Up-to-date literature survey reports that the following basic signal processing techniques to determine the holes in the spectrum: The ANN engine predicts the occupied channel as "1" and unoccupied channel as "0".Some Matlab based simulation results that compares favorably with theoretically calculated results are included.

Energy Detection Technique [14,15]
The detection of the primary signal is based on the hypothesis H : 0   , primary signal absent 1 H : 1   , primary signal present where η is 0 or 1 which determines the presence or absence of the primary signal respectively. (1)   x t is the primary user's signal to be detected, where   n t is the additive white Gaussian noise, h is the channel gain; H 0 is a null hypothesis indicating white space and H 1 indicates the channel is occupied with a primary signal.The detection is performed by taking the average energy level of the samples and compare with a threshold level where T is the total energy observed over N samples.A good detector has less probability of false alarm.In [20][21][22][23], techniques to reduce the false alarm have been developed.

Feature Detection Technique [16,17]
The feature detection of the primary signal technique is also unique in itself as the signal transmitted by the primary user has unique features like a particular modulation rate, carrier frequency, central frequency and band-width [17,24].Cyclostationary feature detection is applied in spectrum sensing as the transmitted signals are usually modulated signals coupled with sine wave carriers, pulse trains, hopping sequences, or cyclic prefixes.This technique distinguishes noise from primary signal, as additive noise is generally wide-sense stationary (WSS) with no correlation [25].Hence the cyclostationary feature detection technique distinguishes different transmissions from the primary signals and noise.

Matched Filter Detection Technique [13]
If secondary users know information about a primary user's signal a priori, then the optimal detection method is the matched filtering [26].Matched Filter detection technique is used for the detection of the primary user.
Here the received signal is correlated with the already known signal in order to identify the primary user [27].Hence a perfect knowledge of the signal like operating frequency, modulation technique etc is required to apply this technique.

Statistical Covariance-Based Sensing [28,29]
The Statistical Covariance-Based Sensing uses statistical covariance matrices of the received signal and noise to differentiate between them [28,29].

Learning/Reasoning-Based Sensing
Recently learning based techniques like Hidden Markov process, ANN [30] and Genetic algorithm [31] are used for spectrum sensing.

Cooperative Sensing Technique [32-34]
The cooperative sensing techniques are used to reduce the probability of false alarm and improve spectrum sensing.As we know that spectrum sensing is limited by noise, uncertainty and fading resulting in low SNR of the primary user.Hence the secondary user will not be able to detect the primary user within its range leading to Hidden terminal problem of primary user and sensing speed [32][33][34][35].Hence to improve spectrum sensing and remove hidden terminal problem, the concept of cooperative sensing has come up.
In centralized cooperative sensing a central controller collects information from the users and decides which band is vacant: whereas in distributed cooperative sensing the secondary users distribute information among themselves to decide the status of the band, hence a central controller is not required [32].In this paper we consider ANN learning based sensing technique for determining the spectrum status algorithm.

Spectrum Allocation
Once the white spaces are detected the spectrum has to be allocated to the SU.This SU has to use the spectrum ef-ficiently and coexist with the PU.
The concept of open spectrum sharing is allowed in the ISM band and the sharing of the licensed spectrum among the primary and secondary user is referred as hierarchal spectrum sharing or licensed spectrum sharing [36].
Spectrum allocation and sharing schemes are categorized as spectrum underlay and spectrum overlay [36].In the spectrum underlay the secondary users are allowed to transmit data in the licensed spectrum when the primary user is also transmitting, whereas spectrum overlay also referred to as Opportunistic spectrum access which allows the SU to transmit only when the PU is not transmitting over the band.
The second classification is based on the network architecture.The spectrum allocation is said to be centralized when a centralized controller controls the spectrum allocation.Spectrum allocation is said to be distributed when there is no centrally controlling station for spectrum allocation as in the distributed sensing the decision is taken on the basis of the local allocation.

Spectrum Handoff [37]
When the PU reclaims the channel provided to the SU, the SU has to stop transmission of data over the channel and search for other unoccupied channel.This is the concept of spectrum handoff.
To perform these functions cognitive engine (CE) has been suggested to dynamically take decisions depending on the radio parameters.
The CE [38] consists of user interface, sensor interface, radio interface, scheduler and cognitive core as shown in Figure 2. The Cognitive core is the intelligent part of the CE consisting of the knowledge base, reasoner, learner and optimizer.The learning and optimization process is performed by the AI techniques and the knowledge base stores the experiences gained from the different scenarios [38].The scheduler helps to learn, reason and optimize and the radio interface controls the radio parameters for optimized use of radio resources like bandwidth, spectrum, power, etc. Hence the radio has to be a reconfigurable radio.All the optimized outputs and the scenario details are stored in the database which will act as reference in future for similar configuration.Recently soft computing techniques like ANN, genetic algorithm, Ant colony optimization are applied in the field of engineering for speech processing [39], telecommunications [40].In Section 3 ANN is introduced briefly; in 4 we present applications of ANN for cognitive radio following the recent literature.In Section 5 the proposed ANN model for spectrum sensing keeping in view the channel capacity.Finally Section 6 concludes the paper with an overview of recent possible applications while outlining some of our ongoing research activities.

Neural Networks for Spectrum Sensing
Ref. [41] suggests Artificial neural networks for spectrum sensing.The disadvantages of Cyclostationary feature detection technique and Matched filter technique are overcome by the ANN model developed by combining the cyclostationary and the energy detection techniques.
The signal is assumed to be an AM signal in Additive White Gaussian Noise.
The central frequency f 0 is taken 4 KHz.Sample signal frequency is assumed to be 1 Hz to 50 Hz, Sample rate Fs is assumed to be 500 Hz.The neural network is designed with four inputs: Energy of the signal and three cyclic spectrum values.These features are extracted for an AM signal with envelope    It is reported that the neural network acts efficiently for low SNR and the probability for false alarm is low.

Artificial Neural Network
Artificial Neural Networks (ANNs) are neuroscience inspired computational tools that are trained using inputoutput data to generate a desired mapping between input stimulus to the targeted output [42].
The artificial neuron is the unit model of the ANN structure which gets input from all neighboring neuron and gives an output depending on its synaptic weight and activation functions.Activation function like Tansig function, Sigmoid function are used.
The mathematical representation of the neuron model is given as , , , , , , , w w w  are the inputs to the network, The neurons are arranged in three layers the input layer, hidden layer and the output layer.Learning is accomplished by adjusting the weights till the difference between the desired output and the output of the network is negligible.The number of layers in the hidden layer and the number of neurons in each layers are changed on a hit and trial basis.Here a training algorithm is applied which helps the neural network to learn like back propagation algorithm, resilent back propagation, Levenberg algorithm, conjugate gradient, Quasi Newton algorithm etc. its variants are used.Once trained these models can be used directly to provide instant results for the purpose for which it has been developed [42].
The design and analysis of a Neural Network has the following phases:  Generation of data;  Training of the neural network;  Testing.
The generation of the data is intended to decide the inputs and outputs which are to be trained.Training of the input parameters is done in such a way that the output of the neural network is same as the desired output.Hence this structure can be used further to predict the output in such an environment.The ANN has been used to make the cognitive radio to learn from the environment and take decision [19,38].

Problem Formulation
In this paper we have tried to put up a new technique to identify spectrum holes.A neural network model which can predict the channel status whether occupied or unoccupied is designed for spectrum sensing.The channel information for the simulation here is the channel capacity, SNR, spectral efficiency of the channel scanned and distance "d" between the primary base station and secondary base station/SU.Spectrum sensing implies the detection of white spaces.Here the proposed ANN model predicts the channel status as "1" for an occupied channel and "0" for unoccupied channel.
We consider a TV broadcast system with omnidirectional antenna and a reception system over an AWGN channel.The channel bandwidth is taken as 8 MHz and TV transmit power P t as 50 KW [44].As we know the transmission range of a TV station is nearly 200 Km, a secondary user like a wi-fi, cellular system whose transmission range is less than that of the primary BS can use the unused TV band.The concept of cognitive radio is inculcated by allotting the vacant band to the SU.So a cognitive radio based scanning system with artificial intelligence is proposed.This CR based scanning system is placed within the coverage area of the primary TV base station (BS) at a distance "d" from it as shown in Figure 4.The scanning system scans the channels licensed for the primary user PU and the SNR, bandwidth efficiency, channel capacity over the channel, and distance "d" is given as input to the ANN model to predict the status of the channel.The distance "d" is considered over a range of 100 m to 2000 m.All the parameters given as input to the ANN model are an index to identify white spaces as explained further.

Signal to Noise Ratio
We know that the power received P r at a receiver placed at a distance "d" from the transmitter base station is dependent on the pathloss exponent "n" and transmit power P t , which is assumed to be 50 KW.So the power received at the receiver at a distance "d" from the transmitter is given as [43]     0 0 for 10 m n r t Noise power spectral density N 0 is assumed as 10 −9 W/Hz and B is 8 MHz bandwidth and d 0 is the reference distance.
For P t equal to 50 KW, n = 3 and distance d = 200 m SNR will be     0 SNR 28.9 dB At a distance 400 m the SNR will be 19.8 dB.Hence SNR decreases with increasing distance d but the channel has to be considered occupied.SNR if below a threshold level, than the channel can be considered as vacant.As per the FCC regulations the threshold regulation of actual TV receiver is 15.3 dB [44][45][46].The ANN model has to detect the presence of analog and digital TV signal and voice signal.So the threshold level of SNR is taken as −10 dB.

Channel Capacity
The channel capacity C is a very important parameter to analyze the channel status.The channel capacity here can be assumed as the transmission rate over the channel.
The channel capacity of a channel with bandwidth B and SNR is given as [13]   The channel capacity reduces as SNR reduces.If the channel is unoccupied then the noise power is high and the capacity will reduce.A low channel capacity indicates that the channel is vacant.
As per Shannon, channel capacity is also a measure of and entropy (H) over all possible inputs [13].
where X is the input and Y is the output .The channel capacity increases as the entropy increases [43].
 , then it means that the channel is not transmitting.Hence it is a decision making factor to declare a channel as occupied or unoccupied.
For this scenario channel capacity over a transmitting or occupied channel for distance "d" equal to 200 m and for SNR equal to 28.9 dB is calculated as C = 76.8919Mbps.At this location if the channel capacity is found less than this value then it is a clear indication that the channel is unutilized.So the ANN model placed at 200 m from the transmitting base station, channel capacity is given as input along with the other parameters and is trained to predict the channel occupancy status.The SNR at a particular location is dependent on the distance between the primary TV base station and the geographical location at which the CR based scanning system is placed.We know that the SNR will reduce as the distance d between the BS and CR based scanning system increases.Hence the channel capacity will reduce even though the channel is transmitting.So the threshold of channel capacity at which the channel is declared as unoccupied is dependent on the distance "d".
For distance "d" being 200 m the channel capacity C for an occupied TV channel is 76.8919 Mbps.At this distance for a channel with channel capacity less than this value can be declared as unoccupied.But for a scanning system placed at a distance 400 m from the transmitting base station the SNR received will be 19.8 dB.The channel capacity of the occupied channel will be 52.9947Mbps which is less than the channel capacity predicted at 200 m but the channel is occupied.Hence to identify spectrum hole at a particular geographical location in TV band a threshold level for SNR and the corresponding channel capacity has to be considered.

Bandwidth Efficiency
The bandwidth efficiency reflects how efficiently the allotted bandwidth is utilized.It is the throughput data rate per hertz in a given bandwidth [43].
bps Hz R B   (11) where R is the data rate in bit/sec and B is the bandwidth allotted for the signal.Here R is the channel capacity C, i.e. the transmission rate over the channel.
The bandwidth efficiency is calculated as [13]   between the access point and the primary TV BS is fixed.e eq ANN model assumin

Proposed ANN Model
we intend to develop o as to get accu l might be oc l is designed and trained for different nu where C is channel capacity and B is bandwidth.It is an index to declare the status of a channel.Less bandwidth efficiency is due to no transmission over the channel.Spectral efficiency and mutual information if nearly zero or below a certain threshold then the channel can be considered as unoccupied.Hence the availability of the channel can be decided.A decision making threshold  has to be set for channel capacity above which the channel is considered as occupied and below it the channel is considered as unoccupied.
The method we are proposing may be applied both for WLAN in infrastructure mode as well as in ad-hoc mode.In case of infrastructure mode the access point must be equipped with CR based scanning system.The distance So the ANN model used here is for predicting the channel capacity for a fixed distance say 200 m.Depending on the channel capacity predicted the channel status is decided.If the channel is unoccupied than the access point allots the channel to the SU in its coverage area.
Incase of ad-hoc mode all the mobile nodes have to b uipped with CR based scanning system.The input to ANN model is the distance between the mobile node and the primary base station and SNR over the scanned channel.The mobile node (SU) can scan for the unoccupied channel at every location.The channel status is decided based on the channel capacity predicted for a particular SNR and the distance "d".
In this paper we have trained the g that the SU can be an infrastructure system or an ad-hoc system.Hence the distance considered is over a range of 100 m to 2000 m from the primary TV transmitting station but placed within the coverage area of the primary transmission system.
The CR based scanning system must be equipped with a GPS system, SNR, channel capacity and spectral efficiency measuring equipment.The GPS is for detecting the current position of the secondary user and further calculated to determine the distance "d" from the primary transmitting station.A TV channel is scanned and the SNR, channel capacity, spectral efficiency over it is determined, and all these values and distance "d" are given as input to the ANN model to determine the channel's occupancy status.
The ANN model has to be developed s rate results.The efficiency of the neural network model depends on the parameters used for training.Database comprising the distance "d", SNR, channel capacity, spectral efficiency over a TV band and the channel status corresponding to these values is developed.The channel capacity is calculated for SNR ranging from −20 dB to 37 dB and for a bandwidth of 8 MHz.The distance "d" is over a range of 100 m to 2000 m.The threshold for SNR is taken as −10 dB.As per FCC [45,46] minimum SNR over a transmitting channel has to be 15.3 dB.Hence the channel capacity has to be 40.99Mbps and spectral efficiency has to be 5.12 bps/Hz.This threshold level is set for proper reception of the signal.
But at level below this threshold the channe cupied with a faded signal.A TV band with SNR −10 dB is found to have a spectral efficiency 0.13 bps/Hz and channel capacity 1.1 Mbps which is far below the standards.Therefore we consider this as the threshold for spectrum sensing.
The ANN mode mber of hidden layer and neurons in it and the results are compared.ANN model 1 is designed with 1 hidden layer having 5 neurons in it.ANN model 2 is designed with 1 hidden layer having 25 neurons in them.The ANN model 3 has 2 hidden layers with 10 and 5 neurons in them.All the ANN models are trained to a targeted accuracy of 0.00001.Training is performed by using "trainrp", i.e. the resilent back-propagation algorithm.The sigmoid function "logsig" is used.
For any value of ion that returns an output squ .it is observed that the channel status pr e used for predi status is analysed on the basis on m g is a transfer funct ashed to 0 or 1 [47].Hence this transfer function is ideal if the output has to be either 1 or 0. The performance of each ANN model is compared in the Figure 5.It is observed that the ANN model 3, as described in Table 1 has accuracy of mean absolute error 0.01676 and it yields relatively more accurate result as compared with ANN models 1 and 2.
From Table 2 edicted by the neural network model is nearly same as the status as per theoretical calculations.
Hence the neural network model can b cting the channel status.This model can be used as the AI core of the cognitive radio and predict the status of TV channel.From Figure 6 it is observed that the channel capacity over an occupied channel reduces as the SNR reduces.SNR reduces as the distance between the transmitting TV  istance "d" of 500 m if a TV band of 8 MHz is occupied, station and CR based scanning system increases.At a d the SNR will be 19.8 dB the channel capacity will be 52.9947Mbps and bandwidth efficiency will be 6.624 bps/1 Hz.But if the spectral efficiency over this channel is below 0.1 bps/Hz and channel capacity is below 1.1 Mbps then channel at this geographical location can be assumed as unoccupied.As the channel capacity is reducing the bandwidth efficiency is nearly equal to zero.Hence a channel with less channel capacity has low From Figure 7 we observe that the spectra the TV band spectrum with a view to subsequent utilisability following the CR concept.Essentially a prediction algorithm is proposed here for the identification of the spectrum hole that could be allotted to the aspiring SU.

REFE
reducing as the channel capacity is reducing.For a channel with channel capacity nearly equal to zero the spectral efficiency is also nearly equal to zero.Hence the channel can be declared as vacant or unoccupied.As per FCC in a TV band the channel capacity has to be 40.99Mbps and spectral efficiency has to be 5.12 bps/Hz for effective reception.But as at this threshold the channel may contain the signal.The ANN model we designed has taken a threshold of −10 dB at which the channel capacity is 1.1 Mbps and spectral efficiency is 0.1375 bps/Hz.So the ANN model is able to detect white spaces.
The ANN model designed tries to eliminate the disad-calcu RENCES

2 .
The energy of the signal and cyclic spectrum values for cyclic frequencies 0 f    is taken as the input to the neural network.The network is trained for 300 iterations and the training goal is 10 −5 , learning rate is 0.05 and moment factor is 0.09 to predict SNR as shown in Figure 3.
the weights to the net where u k is the linear combiner and b k is the bias and y k is the output of the neuron.
the channel.As per Equation pacity is the maximum mutual information over the channel.If the mutual information (the channel is nearly equal to zero then the channel is considered as unoccupied.

Figure 6 .
Figure 6.Channel capacity vs SNR in dB over TV channel.

Figure 7 .
Figure 7. Simulation results on bandwidth efficiency and channel capacity over an occupied and unoccupied TV channel.andwidthefficiency i.e. the primary signal is absent and l efficiency is The occupancy is determined by examining some channel parameters, e.g.SNR, channel capacity, BW efficiency and distance (d).The proposed algorithm indicates channel status occupancy in a quantized index form   0,1 after appropriate training of the ANN engine.Simulation results match comparably with theoretically lated ones are included.A brief and comprehensive overview of the recent ANN based literature for CR application has been added.