A Spectrum Sensing Method Based on Signal Feature and Clustering Algorithm in Cognitive Wireless Multimedia Sensor Networks

In order to solve the problem of difficulty in determining the threshold in spectrum sensing technologies based on the random matrix theory, a spectrum sensing method based on clustering algorithm and signal feature is proposed for Cognitive Wireless Multimedia Sensor Networks. Firstly, the wireless communication signal features are obtained according to the sampling signal covariance matrix. Then, the clustering algorithm is used to classify and test the signal features. Different signal features and clustering algorithms are compared in this paper. The experimental results show that the proposed method has better sensing performance.


Introduction
The Cognitive Wireless Multimedia Sensor Networks (CWMSN) have the function of real-time monitoring, collecting multimedia information, and a wide application background.Compared to the traditional wireless sensing networks, the CWMSN require greater bandwidth.So the CWMSN must have the ability to perceive the surrounding radio environment within a certain frequency range, which is called spectrum sensing ability.Spectrum sensing can determine which portions of the spectrum are available and detect the presence of licensed users when a user operates in a licensed band.With the wide application of wireless communication equipment, limited available spectrum resources are increasingly lacking.Cognitive radio (CR) can be used to solve the conflicts between spectrum scarcity and spectrum underutilization.It can improve the spectrum utilization by allowing secondary users to borrow unused radio spectrum from primary users or to share the spectrum with the primary users.Spectrum sensing technology is the key technology of cognitive radio.The main purpose is to detect the spectrum cavity and improve the efficiency of the spectrum [1][2][3][4].Conventional spectrum sensing methods include energy detection, matched filter detection, and cyclostationary feature detection.Because the energy detection algorithm has low computational complexity and does not require a priori information about the primary users, it is the most common detection method for spectrum sensing.However, the wireless communication signal in the actual environment will include noise; this will seriously affect the perceived performance of the cognitive radio networks for the spectrum and reduce the probability of spectrum detection.In recent years, the method of random matrix theory has been applied to the spectrum sensing [5,6], which uses the eigenvalue of the signal covariance matrix as the statistic and then derives the corresponding threshold to judge.For example, the ratio of the maximum or average eigenvalue to the minimum eigenvalue can be used to detect the presence of the signal [2].However, the spectrum sensing based on random matrix theory has an inaccurate estimation problem, which directly affects the detection performance of the spectrum.Spectrum sensing can also be considered a problem of two categories (PU presence and PU absence).Therefore, the spectrum Advances in Multimedia sensing method based on machine learning has gradually become the hotspot of people's research.A spectrum sensing method based on -means clustering is proposed in [7].This method takes the energy of the signal as a feature and then divides the features into channel available class and channel unavailable class by -means clustering algorithm.The spectrum sensing method combined with the maximum minimum eigenvalue of support vector machine and signal covariance matrix is introduced in [8,9].To overcome the shortcoming of spectrum sensing method based on random matrix, in this paper, we propose a spectrum sensing method based on signal features and clustering algorithm.The clustering algorithm uses the feature of the wireless communication signal to determine the PU status.In the experimental section, we use three different eigenvalues of the covariance matrix of the received signal, that is, the MME (the difference between the maximum eigenvalue and the minimum eigenvalue), MSE (the difference between the maximum eigenvalue and the mean eigenvalue), and RMET (the ratio of the maximum eigenvalue to the matrix trace).The spectrum sensing performance under different clustering algorithms (-means and -medoids) is also analyzed.The simulation results show that the proposed method has good sensing performance.

System Model
2.1.System Structure.In CWMSN, many factors in practice such as multipath fading, shadowing, and the receiver uncertainty problem may significantly compromise the detection performance in spectrum sensing.In Figure 1, we can see that, due to multiple attenuated copies of the PU signal and the blocking of house, SU4 experiences multipath and shadow fading such that the PU's signal may not be correctly detected.However, the SU users can cooperate and share the sensing results with other users; the combined cooperative decision derived from spatially collected observations can overcome the deficiency of individual observations at each CR user.So cooperative spectrum sensing is an attractive and effective approach to combat multipath fading and shadowing and mitigate the receiver uncertainty problem [10].

Feature Extraction.
It is assumed that there are  SUs in the cognitive radio network and the number of sampling points per SU is .We assume that  0 indicates that the primary user signal does not exist and  1 indicates that the primary user signal exists.Thus the model of sensing signal under both assumptions can be represented by the following equation: where   () denotes the primary user (PU) signal and   (n) denotes the Gaussian white noise signal, where the mean is 0 and the variance is  2 .Let  = 1 and  = 0, respectively, indicate the state of PU.Channel availability  can be defined as where  = 0 means that the channel cannot be used and  = 1 means that the channel can be used.
Assuming that  = [  (1),   (2), . . .,   ()] represents the sampling vector of the th SU user, the sensing matrix over a period of time can be expressed as The covariance matrix of the signal can be expressed as () = (1/)  .In the traditional spectrum sensing technologies based on the random matrix theory, we usually select MME, MSE, and RMET as signal features.After selecting the feature, the corresponding threshold of the derivation is judged.These methods have the problem of threshold accuracy.In order to solve this problem, we introduce the clustering algorithm in machine learning, and we turn the dimension of the feature from one dimension to two dimensions.
The signal covariance matrix is expressed as () = (1/)  .In order to obtain the two-dimensional features, we introduce the method of signal decomposition which is the  and  decomposition before obtaining the sampling matrix [11], and the expression is as follows: After  and  decomposition, we can get two sampling matrices: If the data of the test matrix satisfies formula (7), it is judged that  = 0; if it is not satisfied, then  = 1.
The whole training and testing flow chart is shown in Figure 2.

Experiments
In order to show the effect of the proposed spectrum sensing algorithm, MME, MSE, and RMET are selected as the feature vectors in the simulation experiment.The experimental results are as follows.

The Classification Effect of Clustering Algorithm.
We use AM signal in this experiment.The carrier frequency is 702 KHz and the sampling rate is 4 MHz.In order to simulate the real environment, we did a simulation experiment under the Rayleigh channel.To ensure the accuracy of the experiment, we extracted 1000 signal features; 500 of them are training sets and the other 500 are test sets.
(1) We experimented with MME plus -means clustering algorithm in the environment of SNR = −10 and SNR = −15, respectively.Figures 3 and 4 show that the training data are divided into two clusters.One cluster represents the channel available class and the other represents the channel unavailable class.We can see that the classification result is better in high SNR environment.The first dimension of the feature  (2) We experimented with MME plus -medoids clustering algorithm in the environment of SNR = −10 and SNR = −15, respectively.From Figures 5 and 6, we can also find that the clustering effect is better in high SNR conditions.

The ROC Curve under Constant False Alarm.
In order to reflect the detection performance of the system model, we analyze the performance of the same clustering algorithm under different feature and the same feature under different clustering algorithm.1 and 2 show the detection probabilities of each feature when the false alarm probability is constant under different SNR condition.From Table 1, we can find that the detection performance with RMET, MSE, and MME as the energy feature ratio is improved by 2%, 5%, and 9%, respectively, under SNR = −10 and  = 0.1.At the same time, it can be found that the detection performance of MME as a feature is better than other features under the premise of using -means clustering algorithm.Compared to the use of signal energy as a feature, the feature of the random matrix can better distinguish the signal and the noise which can improve the classification result of the clustering algorithm and improve the performance of the spectrum sensing.

Detection Performance of Different Features under the Same Clustering Algorithm
(2) Detection Performance of Different Characteristics under K-Medoids Clustering Algorithm.3 and 4 show the detection probabilities  The first dimension of the feature    of each feature when the false alarm probability is constant at different SNR conditions.From Table 3, we can calculate that the detection performance with RMET, MSE, and MME as the energy feature ratio is improved by 8%, 4%, and 10%, respectively, under SNR = −10 and  = 0.1.The detection     of -means clustering algorithm is better than -medoids clustering algorithm.

K-Medoids
(3) Performance Comparison of RMET Features under Two Kinds of Clustering Algorithms.It can be seen from Figure 13 that, under SNR = −10 conditions, the sensing performance of -medoids clustering algorithm is better than -means clustering algorithm.
From Figures 11-13, we can find that when MSE and MME features are used, the -means clustering algorithm will have better detection performance and when RMET feature is used, the -medoids clustering algorithm will have better performance.

Summary.
According to the analysis of Section 3.2, we can make the following conclusions on how to choose eigenvalues and clustering algorithms.
Regardless of the clustering algorithm, RMET, MME, or MSE is better than using signal energy as a feature.
When using the -means algorithm, select the MSE feature, which will get the best sensing results.
If the -medoids algorithm is used as the clustering algorithm, selecting RMET as the feature can obtain the best sensing results.different number of collaboration users.We can find that, regardless of the use of that feature or clustering algorithm, with the increase in the number of collaboration users, the sensing performance of the system will be better.

Conclusions
In this paper, we propose a machine learning spectrum sensing method based on signal features (Algorithm 1).The main content is using clustering algorithm to classify the signal features and then in the experimental part we analyzed the sensing performance of the three different features under the same clustering algorithm.The experimental results show that these three signal features have better effects than using signal energy as a feature.We also analyzed the detection performance of the same feature under different clustering algorithms.The experimental show that each feature has different performance in different conditions.In practice, we should select the suitable signal feature and clustering algorithm according to the current conditions.

Figure 3 :
Figure 3: The clustering map under -means algorithm.

Figure 4 :
Figure 4: The clustering map under -means algorithm.

( 1 )
Detection Performance of Different Features under K-Means Clustering Algorithm.Figures 7 and 8 show the ROC curves of the four different signal features combined with the -means clustering algorithm in SNR = −10 and SNR = −12 conditions, respectively.Tables Figures 9 and 10 show the ROC curves of the four different features combined with the -medoids clustering algorithm at SNR = −10 and SNR = −12, respectively.Tables
In this paper, we propose novel CSS method based on classification algorithm.According to the type of learning method adopted, a classification algorithm can be categorized as unsupervised learning or supervised learning.We select two clustering algorithms to classify the feature, which are -means clustering algorithm and -medoids clustering algorithm.The two algorithms are similar, and the difference lies in the selection of centroids.The -means algorithm uses the mean of all data points in the current cluster as centroids; however, the -medoids algorithm selects the smallest points of distance from one to all points as centroids.The other steps are the same as the -means algorithm.The unsupervised -means and -medoids clustering algorithm partitions a set of the training feature vectors (i.e.,  = { 1 ,  2 , . . .,   }) into  clusters.Considering the actual situation of spectrum sensing, the training matrix is divided into two classes.One class represents the noise, and the other represents the signal and the noise.After the training process is completed, the test data is put into the classifier, which can be judged by the following formula: ) 2.3.Spectrum Sensing Method Based on Feature and Clustering Algorithm 2.3.1.Spectrum Sensing Scheme Based on Clustering Algorithm.

Table 1 :
The  comparison of different features in SNR = −10.

Table 2 :
The  comparison of different features in SNR = −12.

Table 3 :
The  comparison of different features in SNR = −10.

Table 4 :
The  comparison of different features in SNR = −12.