A collaborative spectrum sensing method and system
Through the semi-supervised support vector machine model and collaborative spectrum sensing neural network, the SKL divergence mean matrix is used to process labeled and unlabeled samples and automatically learn features, which solves the problems of poor spectrum sensing performance and difficulty in obtaining sample labels in the existing technology, and achieves Provides efficient spectrum sensing in low signal-to-noise ratio environments.
Patent Information
- Application Number
- CN202310891723.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-19
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-07-19
AI Technical Summary
Existing collaborative spectrum sensing methods based on machine learning have shortcomings in spectrum sensing performance, and it is difficult to obtain a large number of sample labels, resulting in signal feature construction that affects sensing performance and poor performance in low signal-to-noise ratio environments.
Using a semi-supervised support vector machine model and collaborative spectrum sensing neural network, the SKL divergence mean matrix is calculated through the covariance matrix of the signal matrix, and preprocessed by combining labeled samples and unlabeled samples to automatically learn features and reduce the impact of manually constructed feature parameters. , improve spectrum sensing performance.
It retains the original signal data information to the greatest extent, improves the spectrum sensing performance in low signal-to-noise ratio environments, reduces the difficulty of obtaining a large number of sample labels, and improves the spectrum sensing performance.
Smart Images

Figure CN117278153B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cognitive radio, and in particular to a collaborative spectrum sensing method and system. Background Art
[0002] Spectrum sensing is the premise and foundation for cognitive radio (CR) technology to solve the problem of scarce spectrum resources. Collaborative spectrum sensing, as one of the reliable spectrum sensing technologies, can collect and analyze radio signals through collaboration among multiple secondary users, thereby effectively identifying spectrum holes. Spectrum holes refer to spectrum resources that are reserved by primary users but are currently unused. These resources can be used by the CR system for other radio communications. Therefore, collaborative spectrum sensing can help the CR system further realize effective management of spectrum resources, thereby improving spectrum utilization.
[0003] At present, collaborative spectrum sensing mainly adopts traditional single-user spectrum sensing methods such as energy detection, cyclostationary feature detection and matched filter detection. However, there are problems of channel fading and shadowing effect in practical applications. To solve the above problems, the prior art discloses some collaborative spectrum sensing methods based on machine learning. For example, some scholars use the maximum eigenvalue of the sample covariance matrix, the ratio of the maximum eigenvalue to the minimum eigenvalue, and the sum of all eigenvalues as signal features, and use supervised learning algorithms such as support vector machines, naive Bayes and random forests as classifiers, and propose a supervised learning spectrum sensing algorithm based on eigenvalues. Although the collaborative spectrum sensing algorithm based on machine learning can overcome the above disadvantages, it requires manual design of signal features to construct the corresponding test statistics, which usually loses part of the original data information, making the manually constructed signal feature parameters easy to affect the perception performance of these methods. Compared with traditional machine learning methods, deep learning has excellent automatic feature learning capabilities, and it has better advantages in the field of spectrum sensing. Since convolutional neural networks (CNN) can automatically learn raw signals, obtain useful information from them, reduce the loss of raw data information, and effectively handle spatial correlation in spectrum sensing tasks, scientists have begun to apply convolutional neural networks in the field of spectrum sensing and proposed a spectrum sensing method based on convolutional neural networks. CNN is used to extract energy-related features from the covariance matrix generated by sensor data, and then a series of energy-related features corresponding to multiple sensing cycles are input into a long short-term memory network to obtain a CNN-LSTM spectrum detector to improve spectrum sensing performance. However, it is a supervised learning algorithm. Like traditional supervised machine learning algorithms, it still requires time-consuming and labor-intensive manual labeling, and it is difficult to obtain a large number of sample labels in practice. Summary of the invention
[0004] In order to solve the problems of poor spectrum sensing performance and difficulty in obtaining a large number of sample labels in the current collaborative spectrum sensing method based on machine learning, the present invention proposes a collaborative spectrum sensing method and system, which retains the original signal data information to the greatest extent, avoids the influence of manually constructed signal feature parameters on the spectrum sensing performance, improves the spectrum sensing performance in a low signal-to-noise ratio environment, and reduces the difficulty of obtaining a large number of sample labels.
[0005] In order to achieve the above technical effects, the technical solution of the present invention is as follows:
[0006] A collaborative spectrum sensing method comprises the following steps:
[0007] S1. Establishing a cognitive wireless network for collaborative spectrum sensing, the cognitive wireless network comprising a primary user, a fusion center and a plurality of secondary users;
[0008] S2. In the fusion center, multiple secondary users receive signals transmitted by the primary user and fuse them to form a signal matrix;
[0009] S3. Preprocess the signal matrix to obtain the covariance matrix corresponding to the signal matrix, and calculate the corresponding SKL divergence mean matrix based on the covariance matrix;
[0010] S4. Collect the SKL divergence mean matrix, and preprocess the SKL divergence mean matrix to obtain a first sample data set including labeled samples and unlabeled samples;
[0011] S5. Input the first sample data set into a preset semi-supervised support vector machine model, output the labels corresponding to the unlabeled samples, obtain all the labeled samples of the first sample data set and process them to obtain a second sample data set;
[0012] S6. Divide the second sample data set into a training set, a validation set, and a test set;
[0013] S7. Using the training set to train the preset collaborative spectrum sensing neural network, and using the validation set to evaluate the performance of the trained collaborative spectrum sensing neural network, to obtain the offline trained spectrum sensing neural network, which is recorded as a spectrum sensing classifier;
[0014] S8. Classify the test set using the spectrum sensing classifier to verify the spectrum sensing performance of the spectrum sensing classifier;
[0015] S9. Online collect the to-be-processed signals transmitted by the primary user sensed by each secondary user, perform online preprocessing on the to-be-processed signals, input the online preprocessed signals into a verified spectrum sensing classifier, and output the prediction result of the primary user state.
[0016] Preferably, in the cognitive wireless network, each secondary user independently performs spectrum sensing on the primary user's authorized frequency band, and the cognitive wireless network is modeled as a binary hypothesis testing problem, which is expressed as follows:
[0017]
[0018] Among them, H0 represents the busy state of the authorized frequency band of the primary user, that is, the primary user exists; H1 represents the idle state of the authorized frequency band of the primary user, that is, the primary user does not exist; k represents the number of signal sampling points, k = 1, 2, ... S, S represents the variable of the number of signal sampling points; m represents the number of secondary users, m = 1, 2, ... M, M represents the variable of the number of secondary users; n represents the number of antennas equipped for each secondary user, n = 1, 2, ... N, N represents the variable of the number of antennas equipped for each secondary user; It represents the additive Gaussian white noise received by the nth antenna equipped by the mth user and satisfies represents the Rayleigh fading channel gain of the nth antenna equipped with the mth secondary user; It means that the nth antenna equipped by the mth secondary user receives the signal transmitted by the primary user. represents the signal vector received by the nth antenna equipped by the mth user, The expression is:
[0019]
[0020] in, express The Sth element in .
[0021] Preferably, the signal vectors received by the n-th antennas equipped with M secondary users are fused at the fusion center to form an M×S signal matrix Y, where Y is expressed as follows:
[0022]
[0023] in, Represents the element in the Mth row and Sth column of the signal matrix Y.
[0024] Preferably, the preprocessing of the signal matrix is specifically: based on the signal matrix Y, N covariance matrices R corresponding to the signal matrix Y are calculated, and the specific calculation expression is as follows:
[0025]
[0026] Where R represents an M×M matrix; represents matrix transpose; E[Y] represents an M×S matrix, and the (i,j)th element in E[Y] represents the average value of the i-th row and j-th column in the signal matrix Y, i=1,...,M, j=1,...,S; when the observation signal is collected in the H0 state, the covariance matrix is denoted by R w , when the observation signal is collected in the H1 state, the covariance matrix is recorded as R s ;
[0027] For N covariance matrices R, according to matrix manifold theory, calculate the corresponding SKL divergence mean matrix The specific calculation expression is:
[0028]
[0029] Among them, R i represents the i-th element of the covariance matrix R, R j represents the jth element of the covariance matrix R; the SKL divergence mean matrix The following conditions are met:
[0030]
[0031] in, represents the SKL divergence mean matrix corresponding to the H0 state, Represents the SKL divergence mean matrix corresponding to the H1 state.
[0032] Preferably, several SKL divergence mean matrices are collected within a preset sensing period And for several SKL divergence mean matrices Preprocessing is performed, including: several SKL divergence mean matrices Expand into a one-dimensional vector to form the first sample data set.
[0033] Preferably, the first sample data set is input into a preset semi-supervised support vector machine model, and the processing process of the first sample data set by the semi-supervised support vector machine model specifically includes:
[0034] S51. Using the generated candidate low-density partitions, the labeled samples and the unlabeled samples in the first sample data set are divided and marked;
[0035] S52. Construct a label assignment model to label the unlabeled samples and obtain a set of new labeled samples;
[0036] S53. Calculate the weighted error between the new label sample and the original label sample, perform noise penalty and elimination based on the size of the weighted error, and obtain a reliable label sample;
[0037] S54. Use reliable labeled samples to train a semi-supervised support vector machine model, and use the trained semi-supervised support vector machine model to output the predicted value of the final unlabeled sample.
[0038] Preferably, all labeled samples are processed, specifically: the one-dimensional vectors in the first sample data set of all labeled samples are converted into corresponding The second sample data set is recorded as the second sample data set, and the second sample data set is divided into a training set, a validation set and a test set according to a certain ratio; the collaborative spectrum sensing neural network includes an input layer, a convolution layer including a convolution kernel filter, a pooling layer, a first fully connected layer, a second fully connected layer and an output layer; the preset collaborative spectrum sensing neural network is trained by using the training set, specifically including:
[0039] S71. Using the training set in the second sample data set and its corresponding sample labels as input data of the input layer;
[0040] S72. The convolution kernel filter of the convolution layer performs a convolution operation on the input data of the input layer, and outputs a first feature mapping matrix;
[0041] S73. The first feature mapping matrix is input into the pooling layer after being processed by the ReLu activation function, and the first feature mapping matrix after being processed by the ReLu activation function is averaged pooled in the pooling layer to output a second feature mapping matrix;
[0042] S74. Expand the second feature mapping matrix into an input vector a and input it into the first fully connected layer;
[0043] S75. In the first fully connected layer, the first weight vector W1 is used to multiply the input vector a, and a first multiplication result is output. The first multiplication result is processed by the ReLu activation function and then input into the second fully connected layer;
[0044] S76. In the second fully connected layer, the second weight vector W2 is used to multiply the output result of the first fully connected layer after being processed by the ReLu activation function, and a second multiplication result is output. The second multiplication result is input into the output layer after being processed by the Softmax function;
[0045] S77. In the output layer, the second multiplication result after the Softmax function is processed is converted into the probabilities of H0 and H1 respectively by using a normalization operation;
[0046] S78. Use the optimization algorithm to continuously adjust the value of the convolution kernel, the first weight vector W1 and the second weight vector W2 until the value of the convolution kernel, the first weight vector W1 and the second weight vector W2 are the optimal network parameters of the collaborative spectrum sensing neural network, and the collaborative spectrum sensing neural network training is completed.
[0047] Preferably, the trained collaborative spectrum sensing neural network is used as the spectrum sensing classifier C(x), and the specific expression of C(x) is as follows:
[0048]
[0049] in, represents the predicted probability vector of sample data x, It indicates the probability of predicting that the main user state is H0, represents the probability of predicting that the primary user state is H1, and The spectrum sensing classifier is used to classify the test set, and a ROC curve of the test set is drawn. The spectrum sensing performance of the spectrum sensing classifier is verified by using the ROC curve.
[0050] Preferably, the signal after online preprocessing is recorded as x test ; Then x test Input into the verified spectrum sensing classifier C(x) to get x test The predicted probability vector Its expression is as follows:
[0051]
[0052] when When , the prediction result of the primary user state is H0; when , it means that the prediction result of the primary user state is H1.
[0053] The present invention also proposes a collaborative spectrum sensing system, the system comprising:
[0054] A network establishment module, used to establish a cognitive wireless network for collaborative spectrum sensing, wherein the cognitive wireless network includes a primary user, a fusion center and a plurality of secondary users;
[0055] A data fusion module is used to fuse the signals transmitted by the primary user and received by multiple secondary users at the fusion center to form a signal matrix;
[0056] A preprocessing module is used to preprocess the signal matrix to obtain the covariance matrix corresponding to the signal matrix, and calculate the corresponding SKL divergence mean matrix based on the covariance matrix;
[0057] A first data acquisition module, used for collecting the SKL divergence mean matrix and preprocessing the SKL divergence mean matrix to obtain a first sample data set including labeled samples and unlabeled samples;
[0058] A second data acquisition module is used to input the first sample data set into a preset semi-supervised support vector machine model, output labels corresponding to unlabeled samples, obtain all labeled samples of the first sample data set and process them to obtain a second sample data set;
[0059] A partitioning module, used for partitioning the second sample data set into a training set, a validation set and a test set;
[0060] A training module is used to train a preset collaborative spectrum sensing neural network using a training set, and to evaluate the performance of the trained collaborative spectrum sensing neural network using a validation set, so as to obtain an offline trained spectrum sensing neural network, which is recorded as a spectrum sensing classifier;
[0061] A verification module, used to classify a test set using the spectrum sensing classifier to verify the spectrum sensing performance of the spectrum sensing classifier;
[0062] The prediction module is used to collect the to-be-processed signals transmitted by the primary user perceived by each secondary user online, perform online preprocessing on the to-be-processed signals, input the online preprocessed signals into the verified spectrum sensing classifier, and output the prediction result of the primary user state.
[0063] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:
[0064] The present invention proposes a collaborative spectrum sensing method and system. First, signal fusion is performed in a fusion center of a cognitive wireless network to form a signal matrix. Second, the signal matrix is converted into a corresponding covariance matrix, and a corresponding SKL divergence mean matrix is calculated. Then, the SKL divergence mean matrix is collected and preprocessed to obtain a first sample data set including labeled samples and unlabeled samples. The first sample data set is used as the input of a semi-supervised support vector machine model, and labels corresponding to a large number of unlabeled samples are output, thereby obtaining a second sample data set of all labeled samples, and the data set is divided into a training set, a validation set, and a test set. The training set is used to train a collaborative spectrum sensing neural network, and the validation set is used to evaluate the trained data. The performance of the collaborative spectrum sensing neural network is obtained by offline training, and the spectrum sensing neural network is recorded as a spectrum sensing classifier; the spectrum sensing classifier is further used to classify the test set to verify the spectrum sensing performance of the spectrum sensing classifier, and finally the signal after online preprocessing is input into the verified spectrum sensing classifier to output the prediction result of the main user state. The present invention realizes collaborative spectrum sensing based on a semi-supervised support vector machine model and a collaborative spectrum sensing neural network, which retains the original signal data information to the greatest extent, avoids the influence of manually constructed signal feature parameters on the spectrum sensing performance, improves the spectrum sensing performance in a low signal-to-noise ratio environment, and reduces the difficulty of obtaining a large number of sample labels. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 A flowchart showing a collaborative spectrum sensing method proposed in an embodiment of the present invention;
[0066] Figure 2 Represents a cognitive radio network model proposed in an embodiment of the present invention;
[0067] Figure 3 represents the collaborative spectrum sensing neural network structure proposed in the embodiment of the present invention;
[0068] Figure 4 Another flow chart showing a collaborative spectrum sensing method proposed in an embodiment of the present invention;
[0069] Figure 5 The ROC curve diagram of each spectrum sensing method proposed in the embodiment of the present invention under the same -21dB signal-to-noise ratio environment;
[0070] Figure 6 A ROC curve diagram showing various spectrum sensing methods under different signal-to-noise ratio environments proposed in an embodiment of the present invention;
[0071] Figure 7 A structural diagram of a cooperative spectrum sensing system proposed in an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0072] The drawings are for illustrative purposes only and should not be construed as limiting the present patent;
[0073] In order to better illustrate the present embodiment, some parts of the drawings may be omitted, enlarged or reduced, and do not represent actual sizes. The description of the directions of parts such as "upper" and "lower" does not limit the present patent;
[0074] It is understandable to those skilled in the art that some well-known contents may be omitted in the drawings;
[0075] The positional relationships described in the drawings are only for illustrative purposes and should not be construed as limiting the present patent.
[0076] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0077] Example 1
[0078] like Figure 1 As shown, this embodiment proposes a collaborative spectrum sensing method, including the following steps:
[0079] S1. Establishing a cognitive wireless network for collaborative spectrum sensing, the cognitive wireless network comprising a primary user, a fusion center and a plurality of secondary users;
[0080] In the cognitive wireless network described in step S1, see Figure 2 , a cognitive wireless network is set to consist of a primary user, a fusion center and M secondary users equipped with N antennas; each secondary user independently performs spectrum sensing on the primary user's authorized frequency band, and the cognitive wireless network is modeled as a binary hypothesis testing problem, which is expressed as follows:
[0081]
[0082] Among them, H0 represents the busy state of the authorized frequency band of the primary user, that is, the primary user exists; H1 represents the idle state of the authorized frequency band of the primary user, that is, the primary user does not exist; k represents the number of signal sampling points, k = 1, 2, ... S, S represents the variable of the number of signal sampling points; m represents the number of secondary users, m = 1, 2, ... M, M represents the variable of the number of secondary users; n represents the number of antennas equipped for each secondary user, n = 1, 2, ... N, N represents the variable of the number of antennas equipped for each secondary user; It represents the additive Gaussian white noise received by the nth antenna equipped by the mth user and satisfies represents the Rayleigh fading channel gain of the nth antenna equipped with the mth secondary user; It means that the nth antenna equipped by the mth secondary user receives the signal transmitted by the primary user. represents the signal vector received by the nth antenna equipped by the mth user, The expression is:
[0083]
[0084] in, express The Sth element in .
[0085] S2. In the fusion center, multiple secondary users receive signals transmitted by the primary user and fuse them to form a signal matrix;
[0086] Step S2 is specifically as follows: the fusion center fuses the signal vectors received by the n-th antennas equipped by the M secondary users to form an M×S signal matrix Y, where Y is expressed as follows:
[0087]
[0088] in, Represents the element in the Mth row and Sth column of the signal matrix Y.
[0089] S3. Preprocess the signal matrix to obtain the covariance matrix corresponding to the signal matrix, and calculate the corresponding SKL divergence mean matrix based on the covariance matrix;
[0090] In step S3, the signal matrix is preprocessed, specifically: based on the signal matrix Y, N covariance matrices R corresponding to the signal matrix Y are calculated, and the specific calculation expression is as follows:
[0091]
[0092] Where R represents an M×M matrix; represents matrix transpose; E[Y] represents an M×S matrix, and the (i,j)th element in E[Y] represents the average value of the i-th row and j-th column in the signal matrix Y, i=1,...,M, j=1,...,S; when the observation signal is collected in the H0 state, the covariance matrix is denoted by R w , when the observation signal is collected in the H1 state, the covariance matrix is recorded as R s ; Since each secondary user is equipped with N antennas, the fusion center will obtain N corresponding covariance matrices R calculated by the signal matrix Y;
[0093] For N covariance matrices R, specifically {R1,R2,…,R N}, according to the matrix manifold theory, calculate the corresponding SKL divergence mean matrix , the specific calculation expression is:
[0094]
[0095] Among them, R i represents the i-th element of the covariance matrix R, R j represents the jth element of the covariance matrix R; the SKL divergence mean matrix The following conditions are met:
[0096]
[0097] in, represents the SKL divergence mean matrix corresponding to the H0 state, Represents the SKL divergence mean matrix corresponding to the H1 state.
[0098] S4. Collect the SKL divergence mean matrix, and preprocess the SKL divergence mean matrix to obtain a first sample data set including labeled samples and unlabeled samples;
[0099] In step S4, taking 10 secondary users as an example, several SKL divergence mean matrices with dimensions of 10*10 are collected within the preset sensing period. , and for several SKL divergence mean matrices Preprocessing is performed, including: several SKL divergence mean matrices Expanded into a one-dimensional vector, forming a first sample data set; a small number of samples in the first sample data set are labeled, and a large number of unlabeled samples remain.
[0100] S5. Input the first sample data set into a preset semi-supervised support vector machine model, output the labels corresponding to the unlabeled samples, obtain all the labeled samples of the first sample data set and process them to obtain a second sample data set;
[0101] In step S5, the first sample data set is input into a preset semi-supervised support vector machine model, and the processing process of the semi-supervised support vector machine model on the first sample data set specifically includes:
[0102] S51. Using the generated candidate low-density partitions, the labeled samples and the unlabeled samples in the first sample data set are divided and marked;
[0103] S52. Construct a label assignment model to label the unlabeled samples and obtain a set of new labeled samples;
[0104] S53. Calculate the weighted error between the new label sample and the original label sample, perform noise penalty and elimination based on the size of the weighted error, and obtain a reliable label sample;
[0105] S54. Use reliable labeled samples to train a semi-supervised support vector machine model, and use the trained semi-supervised support vector machine model to output the predicted value of the final unlabeled sample.
[0106] S6. Divide the second sample data set into a training set, a validation set, and a test set;
[0107] In step S6, the one-dimensional vectors in the first sample data set of all labeled samples are converted into corresponding R SKL , and record it as the second sample data set, and divide the second sample data set into a training set, a validation set and a test set according to a certain ratio;
[0108] S7. Using the training set to train the preset collaborative spectrum sensing neural network, and using the validation set to evaluate the performance of the trained collaborative spectrum sensing neural network, to obtain the offline trained spectrum sensing neural network, which is recorded as a spectrum sensing classifier;
[0109] See also Figure 3 In step S7, the collaborative spectrum sensing neural network includes an input layer, a convolution layer including a convolution kernel filter, a pooling layer, a first fully connected layer, a second fully connected layer and an output layer; the collaborative spectrum sensing neural network is trained using the training set, specifically including:
[0110] S71. Using the training set in the second sample data set and its corresponding sample labels as input data of the input layer;
[0111] S72. The convolution layer includes 10 3*3 convolution kernel filters with a step size of 1 and no padding; the convolution kernel filter of the convolution layer performs a convolution operation on the 10*10 input data of the input layer and outputs 10 8*8 first feature mapping matrices;
[0112] S73. The first feature mapping matrix is input into the pooling layer after being processed by the ReLu activation function, and the first feature mapping matrix after being processed by the ReLu activation function is subjected to a 2*2 average pooling operation in the pooling layer, and a second feature mapping matrix is output;
[0113] In step S73, after average pooling, the dimension of the first feature map matrix is reduced by half, becoming 10 4*4 second feature map matrices.
[0114] S74. Expand the 10 4*4 second feature mapping matrices into a 160*1 input vector a and input it into the first fully connected layer;
[0115] S75. In the first fully connected layer, the first weight vector W1 having a dimension of 100*160 is multiplied by the input vector a, and a first multiplication result is output. The first multiplication result is processed by the ReLu activation function and then input into the second fully connected layer;
[0116] S76. In the second fully connected layer, a second weight vector W2 having a dimension of 2*100 is multiplied by the output result of the first fully connected layer after being processed by the ReLu activation function, and a second multiplication result is output. The second multiplication result is processed by the Softmax function and then input into the output layer;
[0117] S77. In the output layer, the second multiplication result after the Softmax function is processed is converted into the probabilities of H0 and H1 respectively by using a normalization operation;
[0118] S78. Continuously adjust the value of the convolution kernel, the first weight vector W1, and the second weight vector W2 using an optimization algorithm until the value of the convolution kernel, the first weight vector W1, and the second weight vector W2 are optimal network parameters of the collaborative spectrum sensing neural network, and the training of the collaborative spectrum sensing neural network is completed;
[0119] The trained collaborative spectrum sensing neural network is used as the spectrum sensing classifier C(x). The specific expression of C(x) is as follows:
[0120]
[0121] in, represents the predicted probability vector of sample data x, It indicates the probability of predicting that the main user state is H0, represents the probability of predicting that the primary user state is H1, and
[0122] S8. Classify the test set using the spectrum sensing classifier to verify the spectrum sensing performance of the spectrum sensing classifier.
[0123] In step S8, the test set is classified by using the spectrum sensing classifier, and the ROC curve of the test set is drawn. The spectrum sensing performance of the spectrum sensing classifier is verified by using the ROC curve. In order to use the ROC curve to analyze the spectrum sensing performance of the spectrum sensing classifier, the expression C(x) of the spectrum sensing classifier is rewritten as follows:
[0124]
[0125] Among them, γ is used to control the false alarm probability;
[0126] S9. Online collect the to-be-processed signals transmitted by the primary user sensed by each secondary user, perform online preprocessing on the to-be-processed signals, input the online preprocessed signals into a verified spectrum sensing classifier, and output the prediction result of the primary user state.
[0127] In step S9, the signal to be processed is recorded as x test ; For the signal to be processed x test Perform online preprocessing. The specific processing steps are: test Fusion is performed to form the signal to be processed x test The signal matrix of test The signal matrix of is used to calculate the corresponding covariance matrix, and then the covariance matrix is used to calculate the corresponding SKL divergence mean matrix. Finally, the signal to be processed x test The SKL divergence mean matrix obtained by preprocessing is input into the verified spectrum sensing classifier C(x) to obtain x test The predicted probability vector , which is expressed as follows:
[0128]
[0129] when When , the prediction result of the primary user state is H0; when , it means that the prediction result of the primary user state is H1.
[0130] In this embodiment, see Figure 4First, the secondary users with M antennas and N antennas independently perform spectrum sensing on the authorized frequency band of the primary user, and transmit the sensing data to the fusion center through the report channel; data fusion is performed in the fusion center to form N M*S signal matrices; secondly, the N signal matrices are converted into corresponding covariance matrices, and the SKL divergence mean matrix of the N covariance matrices on the manifold is calculated by combining the matrix manifold knowledge; then, the offline training phase is entered, and several SKL divergence mean matrices are collected within the preset sensing period and expanded into one-dimensional vectors to form the first sample data set, wherein the first sample data set contains a small number of samples with labels, and a large number of unlabeled samples remain; the first sample data set is used as the input of a secure semi-supervised support vector machine model, and the labels corresponding to a large number of unlabeled samples can be output; at this time, the SKL divergence mean matrix corresponding to all labeled one-dimensional vectors is obtained, and is recorded as the second sample data set D1, and then according to It is divided into a training set, a validation set and a test set in a ratio of 8:1:1; then, the training set is used to train the collaborative spectrum sensing neural network, and then the validation set is used to evaluate the performance of the trained collaborative spectrum sensing neural network. If the collaborative spectrum sensing neural network performs well on the validation set, the training is terminated; otherwise, the parameters of the collaborative spectrum sensing neural network are modified to continue training, and finally a collaborative spectrum sensing neural network with optimal parameters is obtained as a spectrum sensing classifier; the test set is then classified using the spectrum sensing classifier to verify the spectrum sensing performance of the spectrum sensing classifier; finally, in the online sensing stage, the signal to be processed transmitted by the primary user perceived by each secondary user is subjected to data preprocessing to obtain the SKL mean matrix, which is then placed in the verified spectrum sensing classifier to quickly sense the status of the primary user; finally, the prediction result of the primary user status is transmitted back to each secondary user by the fusion center through the report channel.
[0131] Example 2
[0132] This embodiment further explains the sample label marking principle of the semi-supervised support vector machine model in step S5, as follows:
[0133] P5.1: In order to obtain a set of candidate low-density partitions with large intervals and obvious differences, the following formula can be defined as the objective function and constraint conditions of the semi-supervised support vector machine model:
[0134]
[0135]
[0136] Among them, w represents a normal vector, representing the direction of the hyperplane; b is an offset term; B is a set of known labels; represents the tth low-density partition; express In the unlabeled data xj+l The predicted labels on , j = 1, ..., u; φ(x i ) means to convert x i The mapped feature vector; the two parameters C1 and C2 represent the complexity of the hyperplane, the loss of labeled samples and unlabeled examples respectively; δ is the indicator function; is a constant, usually set to 0.5; M is a relatively large constant, usually set to 10 5 ; l(,) represents the hinge loss function, which is defined as follows:
[0137] l(y i ,w′ t φ(x i )+b t )=max(0,1-y i (w′ t ′φ(x i )+b t ))
[0138] P5.2: A fast sampling strategy is used to optimize the above objective function, speed up the generation of candidate low-density partitions, and improve the efficiency of the semi-supervised support vector machine algorithm. At the same time, random sampling can make the generated partitions diverse, cover more sample areas, and increase the robustness of the semi-supervised support vector machine algorithm.
[0139] P5.3: In order to construct a semi-supervised support vector machine model, we need to obtain T low-density partitions, that is, we know In order to maximize its performance in the worst case, the following formula is defined as the objective function of the semi-supervised learning algorithm:
[0140]
[0141] Among them, y * represents the actual label of the unlabeled sample; y svm represents the label predicted by SVM; λ represents the slack variable; earn(y,y * ,y svm ) represents the advantage value, which is defined as the predicted value of the semi-supervised learning algorithm. Than the SVM predicted y svm The good part of the performance; similarly lose(y,y * ,y svm ) represents the disadvantage value. Because the actual label corresponding to the unlabeled sample is unclear, y * Belong to a low-density partition, that is, Therefore, the objective function of the semi-supervised learning algorithm can be rewritten as follows:
[0142]
[0143] P5.4: In order to optimize the objective function in the above formula, the above formula can be rewritten as follows:
[0144]
[0145] From the definitions of earn(·) and lose(·), we know that is a linear function of y, so Denoted as c′ t y+d t , where c t and d t As follows:
[0146]
[0147] P5.5: From the above formula, we can see that it is a mixed integer programming problem. By relaxing the integer constraint on y and turning it into a linear programming problem, we can get an optimal solution. Finally, we take the nearest integer of the optimal solution as the predicted value of S4VM. If the optimal solution is less than 0, the predicted value y of the support vector machine is output. svm .
[0148] The specific steps of sample labeling based on the semi-supervised support vector machine model are as follows:
[0149] First, through data preprocessing, 1000 SKL divergence mean matrices containing H0 and H1 states are obtained. and will Expand it into a one-dimensional vector as the first sample data set D; 100 data samples are labeled with H0 or H1 state, and the samples in H0 state are labeled with "-1", and the samples in H1 state are labeled with "1", and the remaining 900 data are unlabeled samples; the input data set of the semi-supervised support vector machine model can be expressed as follows:
[0150]
[0151] Among them, Ω label is a labeled sample set; Ω unlabel is the unlabeled sample set; N l Represents Ω label The number of labeled samples in , is the sample label, N l =1,2,…,100; N ul Represents Ω unlabel The number of unlabeled samples N in ul =1,2,…,900, and Both The corresponding one-dimensional vector is It is known that it was collected in the H0 or H1 state The corresponding one-dimensional vector, and It is unknown whether it was collected in H0 or H1 state The corresponding one-dimensional vector. label and Ω unlabel Input into the semi-supervised support vector machine model, where the two parameters C1 and C2 are set to 100 and 0.1 respectively, and the kernel function is a Gaussian kernel function. After the training is completed, Ω can be obtained unlabel The labels of the sample set in At this time, the 1000 one-dimensional vectors correspond to All have corresponding labels and are recorded as the second sample data set D1, which can be expressed as follows:
[0152]
[0153] Among them, k label Represents the number of labeled samples in the dataset, k label =1,2,…,1000;
[0154] This embodiment further illustrates steps S6-S7 in embodiment 1, as follows:
[0155] In steps S6-S7, when the number of secondary users is less than 10, in order to reduce the computational complexity and training time, Figure 3 The collaborative spectrum sensing neural network structure can achieve better classification results. When the number of secondary users changes, the structure of the collaborative spectrum sensing neural network remains unchanged, but the number of convolution kernels and the number of iterations need to be adjusted to obtain a better spectrum sensing classifier. The specific process of offline training of the collaborative spectrum sensing neural network is as follows:
[0156] First, the sample labeling stage based on the semi-supervised support vector machine model has been completed, and the classifier stage of training the collaborative spectrum sensing neural network has begun. For the convenience of calculation, replace "0" with The "-1" in the , and the label is encoded as a one-hot vector, as follows:
[0157]
[0158] Here, the symbol "T" stands for transpose.
[0159] D1 is divided into training set, validation set and test set in the ratio of 8:1:1. The training set is used as the data input of the collaborative spectrum sensing neural network, and the following cross entropy function is used as the cost function of the collaborative spectrum sensing neural network:
[0160]
[0161] Among them, y i express Figure 3 The output of the output layer of the collaborative spectrum sensing neural network, d i represents the correct output of the training set, and k is the number of nodes in the output layer. The weights are adjusted using the mini-batch stochastic gradient descent algorithm and the momentum method. The parameters such as the mini-batch sample number, momentum, and learning rate are set to 100, 0.95, and 0.01, respectively. Since there are 800 training sets, the weight parameters of the collaborative spectrum sensing neural network are readjusted 8 times through the back propagation algorithm in each iteration. The output values of the convolutional layer are normalized using the Softmax function below so that all output values are converted into probabilities.
[0162]
[0163] In the above formula, y i represents the output value of the ith node in the second fully connected layer of the collaborative spectrum sensing neural network, C is the number of classifications, Represents an exponential function with e as the base. When the maximum number of training rounds is reached or the cost function Loss reaches the minimum value and does not change with the increase in the number of iterations, the training is stopped. The performance of the trained model is evaluated with the validation set. If the model performs well on the validation set, the training is terminated; otherwise, the model parameters are modified to continue training. Finally, the convolution kernel values, the first weight vector W1, and the second weight vector W2 adjusted through continuous training and verification are the optimal network parameters of the spectrum sensing neural network. At this time, an optimal spectrum sensing neural network is obtained as the spectrum sensing classifier C(x) as follows:
[0164]
[0165] in, represents the predicted probability vector of sample data x, It indicates the probability of predicting that the main user state is H0, represents the probability of predicting that the primary user state is H1, and The spectrum sensing classifier is used to classify the test set, and the ROC curve of the test set is drawn. The spectrum sensing performance of the spectrum sensing classifier is verified by using the ROC curve. The signal after online preprocessing is recorded as x test ; Then x testInput into the verified spectrum sensing classifier C(x) to get x test The predicted probability vector , which is expressed as follows:
[0166]
[0167] It is important to note that when When , it means that the probability of predicting the primary user state is H0 or H1 is the same. In order to reduce the number of times the secondary user mistakenly accesses the primary user's authorized frequency band, by default When , it means that the state of the main user is predicted to be H1. Therefore, from the one-hot vector, we can know that when The state of the main user is predicted to be H0; on the contrary The predicted status of the primary user is H1.
[0168] Example 3
[0169] This embodiment further describes the verification of the spectrum sensing performance of the spectrum sensing classifier, as follows:
[0170] The test set is classified and the ROC curve is drawn. It is compared with other existing spectrum sensing methods. When the false alarm probability is 0.1, the detection probability of different algorithms is compared. The spectrum sensing method with a high detection probability has good spectrum sensing performance. The verification analysis specifically includes:
[0171] Assume that the simulated primary user signal is a multi-component signal, and the noise is an additive Gaussian white noise with a mean of 0 and a variance of 1. First, perform data preprocessing to obtain 1000 samples containing two states, H0 and H1. And expand it into a one-dimensional vector as the first sample data set D. The first sample data set D has 100 data samples marked with H0 or H1 state, and the samples in the H0 state are labeled with "-1", and the samples in the H1 state are labeled with "1". The remaining 900 data are unlabeled samples. Then, the collected first sample data set D is sequentially input into the semi-supervised support vector machine model-collaborative spectrum sensing neural network algorithm for offline training. After the algorithm training is completed, a spectrum sensing classifier for identifying the primary user state is obtained. In the spectrum sensing stage, the test set is classified and the ROC curve is drawn to observe the detection probability P d and false alarm probability P f relationship.
[0172] The comparative spectrum sensing methods adopted by the collaborative spectrum sensing method (S4VM-CNN) proposed in this embodiment are a collaborative spectrum sensing method based on genetic simulated annealing algorithm based on quadratic covariance matrix and information geometry (QCIGSA), a collaborative spectrum sensing method based on semi-supervised clustering based on variational mode decomposition and information geometry (VMDIGSSC), a collaborative spectrum sensing method based on support vector machine (SVM), and a collaborative spectrum sensing method based on information geometry and fuzzy C-means clustering algorithm (IGFCM).
[0173] When all secondary users are distributed in the same SNR environment, under the conditions of SNR -21dB, 1000 sampling points, 6 secondary users, 5 antennas, 20 convolution kernels and 20 iterations, Figure 5 The ROC curves of the S4VM-CNN method and other single-antenna cooperative spectrum sensing methods are shown. f When it is equal to 0.1, the P of the S4VM-CNN method proposed in this embodiment d It is 0.903. Compared with QCIGSA, IGFCM, SVM and VMDIGSSC methods, the detection accuracy performance is improved by 117.07%, 314.22%, 23.02% and 20.08% respectively.
[0174] When all secondary users are distributed in different signal-to-noise ratio environments, with 1000 sampling points and 6 secondary users, each secondary user is in -21dB, -21.5dB, -22dB, -22.5dB, -23dB and -23.5dB signal-to-noise ratio environments, 20 convolution kernels and 2500 iterations, Figure 6 The ROC curves of the S4VM-CNN method and other single-antenna cooperative spectrum sensing methods are shown when each secondary user is in a different signal-to-noise ratio environment. f When the value is equal to 0.1, the P value of the S4VM-CNN algorithm proposed in this embodiment d is 0.854, and the P values of QCIGSA, SVM, VMDIGSSC and IGFCM algorithms are d They are 0.361, 0.577, 0.599, and 0.081 respectively. At this time, the S4VM-CNN algorithm improves the detection accuracy performance by 136.57%, 48.01%, 42.57%, and 954.32% respectively compared with the QCIGSA, SVM, VMDIGSSC, and IGFCM algorithms.
[0175] Therefore, regardless of whether each secondary user is distributed in the same low signal-to-noise ratio environment, the collaborative spectrum sensing method proposed in this embodiment has higher detection accuracy among all the comparison methods. This embodiment uses the SKL divergence mean for data fusion preprocessing, which effectively improves the system stability and reduces the impact of abnormal data. The spectrum sensing classifier trained by combining the secure semi-support vector machine with the convolutional neural network not only has excellent detection performance, but is also more practical than the spectrum sensing algorithm based on supervised learning.
[0176] Example 4
[0177] See also Figure 7 This embodiment proposes a collaborative spectrum sensing system, the system comprising:
[0178] A network establishment module 701 is used to establish a cognitive wireless network for collaborative spectrum sensing, wherein the cognitive wireless network includes a primary user, a fusion center and multiple secondary users;
[0179] The data fusion module 702 is used to fuse the signals transmitted by the primary user and received by multiple secondary users at the fusion center to form a signal matrix;
[0180] A preprocessing module 703 is used to preprocess the signal matrix to obtain a covariance matrix corresponding to the signal matrix, and calculate the corresponding SKL divergence mean matrix based on the covariance matrix;
[0181] A first data acquisition module 704 is used to collect the SKL divergence mean matrix and preprocess the SKL divergence mean matrix to obtain a first sample data set including labeled samples and unlabeled samples;
[0182] The second data acquisition module 705 is used to input the first sample data set into a preset semi-supervised support vector machine model, output labels corresponding to unlabeled samples, obtain all labeled samples of the first sample data set and process them to obtain a second sample data set;
[0183] A division module 706, configured to divide the second sample data set into a training set, a validation set, and a test set;
[0184] The training module 707 is used to train the preset cooperative spectrum sensing neural network using the training set, and evaluate the performance of the trained cooperative spectrum sensing neural network using the validation set to obtain the spectrum sensing neural network trained offline, which is recorded as a spectrum sensing classifier;
[0185] A verification module 708, configured to classify a test set using the spectrum sensing classifier to verify the spectrum sensing performance of the spectrum sensing classifier;
[0186] The prediction module 709 is used to collect online the signals to be processed transmitted by the primary user perceived by each secondary user, perform online preprocessing on the signals to be processed, input the signals after online preprocessing into the verified spectrum sensing classifier, and output the prediction result of the primary user state.
[0187] In this embodiment, first, signal fusion is performed at the fusion center of the cognitive wireless network to form a signal matrix; secondly, the signal matrix is converted into a corresponding covariance matrix, and the corresponding SKL divergence mean matrix is calculated; then, the SKL divergence mean matrix is collected and preprocessed to obtain a first sample data set including labeled samples and unlabeled samples, the first sample data set is used as the input of the semi-supervised support vector machine model, and labels corresponding to a large number of unlabeled samples are output, thereby obtaining a second sample data set of all labeled samples, and the data set is divided into a training set, a validation set, and a test set, the training set is used to train the collaborative spectrum sensing neural network, and the validation set is used to evaluate the trained collaborative spectrum sensing neural network. The performance of the neural network is known, and a spectrum sensing neural network trained offline is obtained, which is recorded as a spectrum sensing classifier; the spectrum sensing classifier is further used to classify the test set to verify the spectrum sensing performance of the spectrum sensing classifier, and finally the signal after online preprocessing is input into the verified spectrum sensing classifier to output the prediction result of the main user state. The present invention realizes collaborative spectrum sensing based on a semi-supervised support vector machine model and a collaborative spectrum sensing neural network, which retains the original signal data information to the greatest extent, avoids the influence of manually constructed signal feature parameters on the spectrum sensing performance, improves the spectrum sensing performance in a low signal-to-noise ratio environment, and reduces the difficulty of obtaining a large number of sample labels.
[0188] Obviously, the above embodiments of the present invention are only examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A collaborative spectrum sensing method, characterized in that: The following steps are involved: S1. Establishing a cognitive wireless network for collaborative spectrum sensing, the cognitive wireless network comprising a primary user, a fusion center and a plurality of secondary users; S2. In the fusion center, multiple secondary users receive signals transmitted by the primary user and fuse them to form a signal matrix; S3. Preprocess the signal matrix to obtain the covariance matrix corresponding to the signal matrix, and calculate the corresponding SKL divergence mean matrix based on the covariance matrix; S4. Collect the SKL divergence mean matrix, and preprocess the SKL divergence mean matrix to obtain a first sample data set including labeled samples and unlabeled samples; S5. Input the first sample data set into a preset semi-supervised support vector machine model, output the labels corresponding to the unlabeled samples, obtain all the labeled samples of the first sample data set and process them to obtain a second sample data set; S6. Divide the second sample data set into a training set, a validation set, and a test set; S7. Using the training set to train the preset collaborative spectrum sensing neural network, and using the validation set to evaluate the performance of the trained collaborative spectrum sensing neural network, to obtain the offline trained spectrum sensing neural network, which is recorded as a spectrum sensing classifier; S8. Classify the test set using the spectrum sensing classifier to verify the spectrum sensing performance of the spectrum sensing classifier; S9. Online collect the to-be-processed signals transmitted by the primary user sensed by each secondary user, perform online preprocessing on the to-be-processed signals, input the online preprocessed signals into a verified spectrum sensing classifier, and output the prediction result of the primary user state.
2. The collaborative spectrum sensing method according to claim 1, characterized in that: In the cognitive wireless network, each secondary user independently performs spectrum sensing on the primary user's authorized frequency band, and the cognitive wireless network is modeled as a binary hypothesis testing problem, which is expressed as follows: Among them, H0 represents the busy state of the authorized frequency band of the primary user, that is, the primary user exists; H1 represents the idle state of the authorized frequency band of the primary user, that is, the primary user does not exist; k represents the number of signal sampling points, k = 1, 2, ... S, S represents the variable of the number of signal sampling points; m represents the number of secondary users, m = 1, 2, ... M, M represents the variable of the number of secondary users; n represents the number of antennas equipped for each secondary user, n = 1, 2, ... N, N represents the variable of the number of antennas equipped for each secondary user; It represents the additive Gaussian white noise received by the nth antenna equipped by the mth user and satisfies represents the Rayleigh fading channel gain of the nth antenna equipped with the mth secondary user; It means that the nth antenna equipped by the mth secondary user receives the signal transmitted by the primary user. represents the signal vector received by the nth antenna equipped by the mth user, The expression is: in, express The Sth element in .
3. The collaborative spectrum sensing method according to claim 2, characterized in that: At the fusion center, the signal vectors received by the n-th antennas of M secondary users are fused to form an M×S signal matrix Y, which is expressed as follows: in, Represents the element in the Mth row and Sth column of the signal matrix Y.
4. The collaborative spectrum sensing method according to claim 3, characterized in that: The preprocessing of the signal matrix is specifically: based on the signal matrix Y, N covariance matrices R corresponding to the signal matrix Y are calculated, and the specific calculation expression is as follows: Where R represents an M×M matrix; T represents matrix transpose; E[Y] represents an M×S matrix, and the (i,j)th element in E[Y] represents the average value of the i-th row and j-th column in the signal matrix Y, i=1,...,M, j=1,...,S; when the observed signal is collected in the H0 state, the covariance matrix is denoted by R w , when the observation signal is collected in the H1 state, the covariance matrix is recorded as R s ; For N covariance matrices R, according to matrix manifold theory, calculate the corresponding SKL divergence mean matrix The specific calculation expression is: Among them, R i represents the i-th element in the N covariance matrices R, R j represents the jth element in the N covariance matrices R; the SKL divergence mean matrix The following conditions are met: in, represents the SKL divergence mean matrix corresponding to the H0 state, Represents the SKL divergence mean matrix corresponding to the H1 state.
5. The collaborative spectrum sensing method according to claim 4, characterized in that: Collect several SKL divergence mean matrices within the preset perception period And for several SKL divergence mean matrices Preprocessing is performed, including: several SKL divergence mean matrices Expand into a one-dimensional vector to form the first sample data set.
6. The collaborative spectrum sensing method according to claim 5, characterized in that: The step of inputting the first sample data set into a preset semi-supervised support vector machine model and outputting labels corresponding to the unlabeled samples comprises: S51. Using the generated candidate low-density partitions, the labeled samples and the unlabeled samples in the first sample data set are divided and marked; S52. Construct a label assignment model to label the unlabeled samples and obtain a set of new labeled samples; S53. Calculate the weighted error between the new label sample and the original label sample, perform noise penalty and elimination based on the size of the weighted error, and obtain a reliable label sample; S54. Use reliable labeled samples to train a semi-supervised support vector machine model, and use the trained semi-supervised support vector machine model to output the predicted value of the final unlabeled sample.
7. The collaborative spectrum sensing method according to claim 6, characterized in that: All labeled samples are processed, specifically: the one-dimensional vectors in the first sample data set of all labeled samples are converted into corresponding The second sample data set is recorded as the second sample data set, and the second sample data set is divided into a training set, a validation set and a test set according to a certain ratio; the collaborative spectrum sensing neural network includes an input layer, a convolution layer including a convolution kernel filter, a pooling layer, a first fully connected layer, a second fully connected layer and an output layer; the preset collaborative spectrum sensing neural network is trained by using the training set, specifically including: S71. Using the training set in the second sample data set and its corresponding sample labels as input data of the input layer; S72. The convolution kernel filter of the convolution layer performs a convolution operation on the input data of the input layer, and outputs a first feature mapping matrix; S73. The first feature mapping matrix is input into the pooling layer after being processed by the ReLu activation function, and the first feature mapping matrix after being processed by the ReLu activation function is averaged pooled in the pooling layer to output a second feature mapping matrix; S74. Expand the second feature mapping matrix into an input vector a and input it into the first fully connected layer; S75. In the first fully connected layer, the first weight vector W1 is used to multiply the input vector a, and a first multiplication result is output. The first multiplication result is processed by the ReLu activation function and then input into the second fully connected layer; S76. In the second fully connected layer, the second weight vector W2 is used to multiply the output result of the first fully connected layer after being processed by the ReLu activation function, and a second multiplication result is output. The second multiplication result is input into the output layer after being processed by the Softmax function; S77. In the output layer, the second multiplication result after the Softmax function is processed is converted into the probabilities of H0 and H1 respectively by using a normalization operation; S78. Use the optimization algorithm to continuously adjust the value of the convolution kernel, the first weight vector W1 and the second weight vector W2 until the value of the convolution kernel, the first weight vector W1 and the second weight vector W2 are the optimal network parameters of the collaborative spectrum sensing neural network, and the collaborative spectrum sensing neural network training is completed.
8. The collaborative spectrum sensing method according to claim 7, characterized in that: The trained collaborative spectrum sensing neural network is used as the spectrum sensing classifier C(x). The specific expression of C(x) is as follows: in, represents the predicted probability vector of sample data x, It indicates the probability of predicting that the main user state is H0, represents the probability of predicting that the primary user state is H1, and The spectrum sensing classifier is used to classify the test set, and a ROC curve of the test set is drawn. The spectrum sensing performance of the spectrum sensing classifier is verified by using the ROC curve.
9. The collaborative spectrum sensing method according to claim 8, characterized in that: Let the signal to be processed be x test ; Then the preprocessed signal x test Input into the verified spectrum sensing classifier C(x) to get x test The predicted probability vector Its expression is as follows: When P H0 (x test )>0.5, it means that the prediction result of the primary user state is H0; when P H0 (x test )≤0.5, it means that the prediction result of the primary user state is H1.
10. A collaborative spectrum sensing system, characterized in that: The system comprises: A network establishment module, used to establish a cognitive wireless network for collaborative spectrum sensing, wherein the cognitive wireless network includes a primary user, a fusion center and a plurality of secondary users; A data fusion module is used to fuse the signals transmitted by the primary user and received by multiple secondary users at the fusion center to form a signal matrix; A preprocessing module is used to preprocess the signal matrix to obtain the covariance matrix corresponding to the signal matrix, and calculate the corresponding SKL divergence mean matrix based on the covariance matrix; A first data acquisition module, used for collecting the SKL divergence mean matrix and preprocessing the SKL divergence mean matrix to obtain a first sample data set including labeled samples and unlabeled samples; A second data acquisition module is used to input the first sample data set into a preset semi-supervised support vector machine model, output labels corresponding to unlabeled samples, obtain all labeled samples of the first sample data set and process them to obtain a second sample data set; A partitioning module, used for partitioning the second sample data set into a training set, a validation set and a test set; A training module is used to train a preset collaborative spectrum sensing neural network using a training set, and to evaluate the performance of the trained collaborative spectrum sensing neural network using a validation set, so as to obtain an offline trained spectrum sensing neural network, which is recorded as a spectrum sensing classifier; A verification module, used to classify a test set using the spectrum sensing classifier to verify the spectrum sensing performance of the spectrum sensing classifier; The prediction module is used to collect the to-be-processed signals transmitted by the primary user perceived by each secondary user online, perform online preprocessing on the to-be-processed signals, input the online preprocessed signals into the verified spectrum sensing classifier, and output the prediction result of the primary user state.
Citation Information
Patent Citations
Internet of Vehicles combined spectrum sensing method based on neural network and application thereof
CN111510232A
Long and short-term memory cooperative spectrum sensing method based on covariance matrix
CN112787736A
Frequency spectrum sensing algorithm based on FLOM covariance matrix and LSTM neural network
CN113315593A
Cooperative spectrum sensing method based on subspace clustering
CN115460646A
Method of distributed cooperative spectrum sensing based on unsupervised clustering in cognitive self-organizing network
WO2013102294A1
