Channel Allocation Based on Content Characteristics for Video Transmission in Time-Domain-Based Multichannel Cognitive Radio Networks

. This paper proposes a method for channel allocation based on video content requirements and the quality of the available channels in cognitive radio networks (CRNs). Our objective is to save network bandwidth and achieve high-quality video delivery. In this method, the content is divided into clusters based on scene complexity and PSNR. To allocate channel to the clusters over multichannel CRNs, we first need to identify the licensee’s activity and then maximize the opportunistic usage accordingly. Therefore, we classify short and long time transmission opportunities based on the licensee’s activities using a Bayesian nonparametric inference model. Furthermore, to prevent transmission interruption, we consider the underlay mode for transmissionoftheclusterswithalowerbitrate.Next,wemaptheavailablespectrumopportunitiestothecontentclustersaccording toboththequalityofthechannelsandtherequirementsoftheclusters.Then,adistortionoptimizationmodelisconstructed accordingtothenetworktransmissionmechanism.Finally,tomaximizetheaveragequalityofthedeliveredvideo,anoptimization problemisdefinedtodeterminethebestbitrateforeachclusterbymaximizingthesumofthelogarithmsoftheframerates.Our extensivesimulationresultsprovethesuperiorperformanceoftheproposedmethodintermsofspectrumefficiencyandthequality ofdeliveredvideo.


Introduction
Spectrum crowding is drastically increasing as the great evolution of mobile and multimedia communication services drives demand for higher bitrates.The inefficient spectrum utilization of traditional fixed spectrum allocation motivated authorities to allow opportunistic spectrum access to licensed spectrum bands by unlicensed users in CRNs.These secondary users (SUs), without explicit negotiation, autonomously sense the bands and opportunistically try to capture the interleaved portions by tuning their operating parameters without interfering with the primary users (PUs).Thus, the licensed channel idle time distribution is specific to PU activity.
Improved spectrum utilization is a positive development for high-volume video communication.Video transmission is loss tolerant and rate adaptive, whereas in data transmission each bit is compulsory [1].The problem of video transmission over CRNs is complicated by heterogeneity in the application contents as well as network fluctuations.In this paper, we propose a video transmission scheme for CRNs that allocates time domain spectral opportunities to achieve high-quality video delivery while saving network resources.
Although many schemes for video transmission over CRNs have already been proposed, they did not consider the unique characteristics of the video content.The proposed scheme, called two-tier cooperative spectrum allocation [2], considers SUs' specific QoS requirements as constraint conditions for spectrum allocation and sets targets to achieve the cooptimization of spectrum utilization and SUs' spectrum hand-off rates.Yu et al. [3] proposed an integrated design approach to jointly optimize the application-layer QoS for multimedia transmission over CRNs.Based on sensed channel conditions, SUs adapt an intrarefreshing rate at the application layer in addition to the parameters of other layers.To achieve the best user-perceived real-time video 2 Mobile Information Systems quality for SUs of wireless CRNs, a quality-driven cross-layer system for joint optimization of system parameters across the entire network protocol stack is proposed by Luo et al. [4].The proposed system models time variations of primary network usage and wireless channels to jointly optimize encoder behavior, cognitive MAC scheduling, transmission, and modulation and coding for SUs in a systematic way on a distortion-delay framework to provide the best video quality as perceived by SUs.To improve the performance of real-time video transmission using cross-layer design and a cognitive approach, an extension of the approach proposed by Luo et al. [4] to an optimized multichannel cognitive MAC has been proposed by Thirunavukkarasu et al. [5] considering optimal channel selection based on the channel sensing order described by Cheng and Zhuang [6].Real-time distributed multiagent learning [7] is a cross-layered framework at different OSI layers based on spectrum utilization and multimedia QoS parameters that dynamically exploits available spectrum bands while using available interference information to obtain learning efficiency.Wang et al. [8] proposed a single-layer QoS approach for delay-sensitive voice service over CRNs based on the time division multiple access technique for wireless local area networks.However, each part of video content can have different characteristics, which means the existing solutions might not be sufficient to satisfy its unique requirements and simultaneously save network resources.
To alleviate the issue, we first cluster the content based on scene complexity and PSNR, where complex and simple scenes have high and low bitrates, respectively.Second, to identify PU activity, we use a Bayesian nonparametric approach to organize the SU cluster parameters to capture the channel idle time distribution and accordingly maximize transmission strategy.A crucial challenge for SUs is estimating the PU idle time distribution.Therefore, statistics on the time domain opportunities for different PU traffic patterns should be considered.We thus concentrate on offering the time domain whitespaces between successive PU packets specific to primary traffic patterns.Hence, short and long time slots are considered as the time between successive primary packet arrivals and the absence of a PU, respectively.
The content clusters with a higher bitrate are thus transmitted over channels with high bitrates and the most reliable modulation and FEC schemes, whereas the clusters with lower bitrates are allocated to channels with lower quality, low modulation, and low FEC schemes.Because adaptive modulation and channel coding are good techniques for using channel fluctuations to maximize content data rate under a known residual BER constraint, we assume several choices of modulation schemes, for example, QPSK, 16-QAM, and 64-QAM, along with some FEC schemes with the rate of 1/2, 2/3, and 3/4.Under the same channel circumstances, various modulation coding schemes result in various data rates and symbol error rates as well.Such techniques let us use the channel variations to maximize the video data rate under a known residual bit error rate constraint.When an appropriate channel is captured by an SU, the user should adopt a modulation coding scheme to support a higher throughput rate.On the other hand, when the available channel is not in a good condition in terms of bitrate, the user should adopt a low-rate modulation scheme.Furthermore, whereas the underlay mode is characterized by low bitrate and low power, the clusters with lower bitrate are an attractive solution at the arrival time of PUs to prevent transmission interruption.
In addition, we define an optimization problem to minimize video distortion by the network transmission mechanism.To achieve the main objective of the paper, we optimized the bitrate of each segment by maximizing the sum of the logarithms of the frame rates based on available network opportunities.We evaluate the performance of the proposed method in terms of video delivery quality and successful video transmission time normalized by the PU idle-busy cycle.
The remainder of the paper is organized as follows.In the next section, the system framework and problem formulation are discussed in detail.Then, simulation settings and results are presented in Section 3. Section 4 concludes the paper.

System Framework
We use an energy-detection technique to sense PUs' activity because of its efficiency and fast noncoherent features that essentially compute a running average of the signal power over a window of prespecified spectrum length.However, sensing of the PUs is imprecise due to noise and a limited number of observations; the errors are known as the probability of false detection (Pr False-alarm ) [9,10].The probability of false alarm and miss detection are recalculated with the help of complete and incomplete gamma and Marcum functions: Pr False alarm = Pr {( where   is the received signal,  is number of samples,  is SNR,  is the Marcum -function factor,  2 is the AWGN noise variance,  is the detection threshold, and  is the number of SUs.From (2), it can be observed that P False alarm is independent of SNR; hence under  0 means the presence of the PU.The probabilities that the PU will remain inactive during the SU transmission or sensing periods are the following equations, respectively: Pr   = ( where   ,   are scale and shape parameters, respectively.To evaluate the quality of the available channels, SUs exploit the traffic pattern of PUs to optimize their transmissions. The packet arrival model follows a Pareto long-tail distribution from ( int ).We use a variational technique to convert the inference problem into an optimization problem as a nonparametric generative model for inference.Because in our framework the PU traffic model is unknown and its variation is based on time, we model the feature space using an instance of the nonparametric Bayesian models.Distribution of   based on the condition of cluster assignment variable   and cluster parameters  is where α(⋅) is the appropriate cumulant generating function and ℎ(⋅) is a nonnegative function.The probability of short time availability at time  is From ( 5), (6), and ( 9), the probability that PU is inactive at time  and remains idle during SU transmission Γ  is [     ], and the probability that the SU transmits a packet successfully with acknowledgment is where  0 ,  1 are probabilities of an unsuccessful SU transmission because of fading and collision with PUs, respectively.The probability of SU successful transmission in a long time slot is PUs have an exclusive access right to the licensed bands, so to prevent transmission interruption we switch transmission of the clusters with lower bitrate to underlay mode in the presence of a PU.The overlay mode for SUs is expressed in terms of bit error rate performance [12], whereas, in underlay mode, CR transmitted power spectral density is restricted under a predefined interference threshold: ) , where ∑  =1   is the total number of subchannels occupied by PUs,   is the number of nonoverlap frequency subchannels over the entire bandwidth,    and    are the bit energy of the PU and SU, respectively,  0 is the noise contribution, and  is the total number of PUs.The packet error rate is calculated as 1 − (1 − ()) packet size .Throughout a transmission, the server maintains the weighted average and standard deviation of the idle and busy duration of the short and long time slots over available channels.Hence, prior to availability of an idle interval, the server prepares segment   of the content for transmission.
We design a practical streaming scheme that distributes packets over multiple channels according to their available bandwidth.A packet number is assigned to each packet (corresponding to its position and playback time) so that packets from multiple channels (paths) can be reassembled at the receiver.A start-up delay is set on the client side (in order of seconds) as a common practice in commercial streaming products.The client's buffer should host packets that arrive earlier than their playback times.The fraction of late packets, the probability that a packet is late, is used as a performance metric.We used the scheme proposed by Rejaie and Ortega [13] to allocate packets over multiple channels dynamically according to their bitrates and to allocate the clusters with a higher bitrate to the channels with higher throughput.The generated content packets at the server side are placed into a queue with priority given to the packets with an earlier playback time.The generated packets are transmitted and stored in the client-side buffer, and then the client starts to play the packets in its buffer at a constant rate.As confirmed by Wang et al. [14], out-of-order packets have a negligible effect on the fraction of late packets.
The distortion optimization problem is formulated as follows: the number of frames in a substream is   = ( busy +  idle )/ frame duration .To find the optimum frame bitrate, the server makes a group of consecutive segment images into substreams (all images belong to scenes in the same cluster) and performs rate-distortion optimization.Normally, distortion is caused by source compression and packet loss.The compression distortion depends on the rate of the video stream and parameters of the distortion model, which depend on the encoded video sequence and encoding structure [15].The total distortion for channel , allocated to a cluster, is where  depends on the parameters related to the compression,   is average packet loss because of transmission error, Tr delay is delay threshold, LBR is link balance rate, Ξ is an overprovisioning factor, and  is a parameter indicating whether link  is being used for transmission.Suppose that  = {1, . . ., } is the cluster to be transmitted with bitrate    ,   is the number of alternative channels available to the cluster,    is the source distortion of cluster , and LBR is the fraction of link input and link output [15].Hence, the distortion optimization problem is defined as subject to: where the first (15) constraint indicates that the link output should be less than or equal to the link input.We used convex programming formulation to simplify the goal function that is constructing a trade-off between allocation of the available channels to the segments and video distortion.Finally, we define an optimization problem to choose the optimal segment size.Assume that segment  has  substreams.  is the number of frames in a substream.  is the maximum available bandwidth of the channel in a short or long time slot, and   = { 1 ,  2 , . . .,   } is the number of bits allocated to each frame in each substream  ( max is the maximum allowed bitrate).  is the overall quality of the segment with the current bitrate. , () is the quality (PSNR) of frame  in substream  with  bits.Hence, our optimization problem is defined as the following to determine the best bitrate for each segment by maximizing the sum of the logarithms of the frame rates so that the average quality of the delivered video is maximized: subject to: where the third constraint in ( 21) is to take care of the maximum rate loss that licensees can tolerate, and the last two constraints are to ensure that each primary subcarrier is assigned to only one substream.The formulated optimization problem is nonlinear integer programming (NIP).We used the proposed algorithms in [1] to solve the problem, that is, the sequential fixing (SF) algorithm based on a linear relaxation and the greedy algorithm with proven optimality gap.

Simulation Results
In this section, we present the effectiveness evaluation of the proposed method using extensive simulations.To simulate video applications, we used Blue Planet video sequence represented as a video with dramatic levels of motion activity.The video is in the common intermediate format (CIF, 352 × 288).It has 5383 frames with a rate of 30 fps, and 336 GoPs with GoP pattern of G16B3.The duration of a time slot is 0.03 seconds.First, we clustered the content features based on scene complexity and PSNR.The hit rate for assigning each data point to its correct cluster is defined as the number of data points assigned to their original clusters over the total number of feature points.As can be seen in Figure 1, the data points are grouped in five clusters with a hit accuracy of more than 90%.The salient advantage of the proposed method can be seen from the figure.With considerable difference in bitrate among the clusters, traditional fixed channel allocation regardless of the video scenes' bitrate results in wastage of precious network resources.However, in our method, the channel allocation is based on the video bitrate and the quality of the available channels: low-quality channels are assigned to lowbitrate clusters, and high-quality channels are reserved for the clusters with a higher bitrate.As discussed previously, we consider underlay mode for transmission of clusters with a lower bitrate to prevent transmission interruption.
Rate-distortion is used to characterize the compression efficiency of a video codec.Rate-distortion shows the quality of the compressed video measured in PSNR as a function of the video bitrate.Figure 2  Second, we need to evaluate the quality of the available channels and find the most appropriate channel for each cluster.We used real wireless traces from a 3G network including Game, UDP, P2P, and VoIP [16].To achieve higher accuracy, we set the hyperparameters for various numbers of Figure 3(a) demonstrates that packet interarrival time varies based on the requirements of various applications.VoIP obviously has a smaller interarrival time to prevent jitter effects; game applications have higher interarrival time than the other applications.In the case of packet length (Figure 3(b)), VoIP uses a smaller packet size again to minimize jitter; the UDP packet size is longer, whereas the game packet length varies based on game dynamics.
Because our clustering technique is nonparametric, it can cluster an unlimited number of traffic sources.For various numbers of traffic data points, the hyperparameters are set to achieve better accuracy.Figures 4(a), 4(b), and 5 show cluster parameter estimation results, that is, interarrival time scale and shape parameters, and idle time distribution for short and long time slots, for traffic sources from nonparametric variational inference [17].
The idle time distribution of the PU follows the Pareto heavy tail, as shown in Figure 5. From Figures 4 and 5, it is apparent that the parameters of the distribution method differ for each traffic source.Thereby, an appropriate channel is mapped to each content cluster according to its requirements.
The performance metric of the proposed method is video delivery quality [18], PSNR, which refers to a video's successful transmission time normalized by the PU idle-busy cycle.We assumed that channel utilization is 0.6 and that five pairs of probability of false and miss detection are {(0.1,0.45), (0.2, 0.34), (0.3, 0.21), (0.7, 0.1), (0.9, 0.03)}.We compared the performance of the proposed method with equal channel allocation.From Figure 6, it is evident that the best video quality is achieved when the false alarm probability is between 0.2 and 0.3; the probabilities of false alarm and misdetection are correlated such that decreasing one will normally increase the other.When the probability of a false alarm is larger, the rate of spectrum wastage will be higher, which results in lower bandwidth for the content clusters and consequently lower video quality.When the probability of misdetection is larger, interference with PUs increases, and it must be minimized.When the probability of a false alarm is lower than 0.2 and probability of misdetection is 0.34, there will be interference between SUs, which will also result in degradation to video delivery quality.

Conclusion
In this paper, we studied primary spectrum utilization by SUs for video transmission.The sender clusters both the video content based on scene complexity and the traffic patterns based on a nonparametric technique using variational Bayesian inferences.Then, the content clusters are transmitted on multichannel CRNs according to the cluster requirements and the quality of the available channels.Underlay mode was discussed to switch the transmission at the time of PU arrival to avoid transmission interruption.Moreover, we defined a distortion optimization model based on the network's transmission mechanisms.We also optimized each

Figure 3 :
Figure 3: Average packet interarrival time (a) and average packet length (b).

Figure 4 :Figure 5 :
Figure 4:   (a) and   (b) of packet interarrival time of different traffic patterns.

Figure 6 :
Figure 6: Average PSNR versus probability of false alarm.
The accessible channels are in two modes: short and long time slots.A short time slot is based on PU activity (time opportunities between successive PUs' transmissions), whereas a long time slot is offered to SUs when no PU is inactive.To discern PU activity, we use a Bayesian nonparametric clustering method.We consider packet length   , packet interarrival time [11], and variance in packet length Δ as the features of PU activity.The packet length for various traffic payloads is different; for example, gaming applications have longer packet size than VoIP packets[11].Suppose that   is the feature space vector of PU activity,   = [   ,  int  , Δ  ]  , with matrix representation as  = [ 1 ,  2 , . . .,   ].The probability density functions of the features are shows rate-distortion for Blue Planet video sequence in CIF format encoded in H.264/SVC for different frames.The lower the compressed bitrate, the more rate-distortion efficient the compression.The rate-distortion results in Figure 2 illustrate the general encoder characteristics verified for large sets of video test sequences.H.264/SVC compared to H.264/AVC and MPEG-4 gives salient efficiency in rate-distortion.For many encoding strategies, H.264/SVC yields almost two times the compression ratio for the equal video PSNR values.