Abstract

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.

1. 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 [14]. 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 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.

2. 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].

2.2. 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 indicates that the primary user signal does not exist and 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 . Let and = 0, respectively, indicate the state of PU. Channel availability can be defined aswhere = 0 means that the channel cannot be used and = 1 means that the channel can be used.

Assuming that 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 . 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 . 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:

So we can get the covariance matrices and . Then we calculate the corresponding eigenvalues and for each covariance matrix and finally let represent the signal feature of each group. The false alarm probability and detection probability of the system can be defined as

2.3. Spectrum Sensing Method Based on Feature and Clustering Algorithm
2.3.1. Spectrum Sensing Scheme Based on Clustering Algorithm

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., ) 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:

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.

3. 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.

3.1. 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.

() 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.

() 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.

3.2. 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.

3.2.1. Detection Performance of Different Features under the Same Clustering 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 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.

(2) Detection Performance of Different Characteristics under K-Medoids Clustering Algorithm. 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 3 and 4 show the detection probabilities 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 probability of using MME, MSE, and RMET as a feature is higher than energy feature. At the same time, it can be found that the detection performance of MSE as a feature is better than other features under the premise of using -means clustering algorithm.

3.2.2. Comparison of Detection Performance of the Same Feature under Different Clustering Algorithms

(1) Performance Comparison of MME Characteristics under Two Kinds of Clustering Algorithms. It can be seen from Figure 11 that, under SNR = −10 conditions, the sensing performance of -means clustering algorithm is better than -medoids clustering algorithm.

(2) Performance Comparison of MSE Features under Two Kinds of Clustering Algorithms. It can be seen from Figure 12 that, under SNR = −10 conditions, the sensing performance of -means clustering algorithm is better than -medoids clustering algorithm.

(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 1113, 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.

3.2.3. 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.

3.3. ROC Curves under Different Collaboration Users

Figures 14 and 15 show the detection performance of the system under 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.

4. 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.

Input: () Train data and test data ()
() Calculate the distanced between and , get the minimum value of and reclassify it.
() Calculate the mean of all points in the cluster and use the mean as the centroid
Or select the smallest points of distance from one to all points as centroids.
() Calculate
() If the converges then algorithm will stops, otherwise it return the second step.
() Import the test data
() If then output , otherwise output .

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work was supported in part by the Degree and Graduate Education Reform Project of Guangdong Province (Grant no. 2016JGXM_MS_26), the Foundation of Key Laboratory of Machine Intelligence and Advanced Computing of the Ministry of Education (Grant no. MSC-201706A), the Science and Technology Program of Guangdong Province (Grant no. 2016B090918031), the Central Government’s Special Funds in Support of the Development of Local Colleges and Universities, and Higher Education Quality Project of Guangdong Province.