A spectrum sensing method and system for non-orthogonal multiple access scenarios
By using autoencoders for denoising and feature extraction in non-orthogonal multiple access scenarios, combined with clustering algorithms, the problem of poor spectrum sensing accuracy in low signal-to-noise ratio environments is solved, achieving high efficiency, high speed, and high robustness. The spectrum perception effect of sex.
Patent Information
- Application Number
- CN202310434541.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-20
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-04-20
AI Technical Summary
Existing non-orthogonal multiple access spectrum sensing algorithms are difficult to accurately extract signal features in low signal-to-noise ratio environments, resulting in poor spectrum sensing accuracy and low robustness.
Construct a spectrum sensing model for non-orthogonal multiple access scenarios, use autoencoders to denoise two-dimensional signal tensors, and combine existing feature extraction and clustering algorithms to achieve classification of channel states.
It achieves efficient, high-speed, and highly robust spectrum sensing in low signal-to-noise ratio environments, improving the denoising effect and accuracy of feature extraction.
Smart Images

Figure CN116781191B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless communications, and more specifically, to a spectrum sensing method and system for non-orthogonal multiple access scenarios. Background Art
[0002] With the development of the Internet, the demand for wireless communications is also increasing. However, according to Shannon's information theory, spectrum resources under limited channel bandwidth are also limited. Non-orthogonal multiple access technology and cognitive radio are two important methods to improve spectrum efficiency. Among them, non-orthogonal multiple access allows multiple users to share the same channel, so the throughput of the system can be improved without introducing additional bandwidth. In addition, non-orthogonal multiple access also has advantages in latency, large-scale connection, and edge transmission, and may become a key technology for 6G wireless networks. Cognitive radio is another method to improve the efficiency of spectrum resource utilization. Its principle is to detect the spectrum holes of the primary user through spectrum sensing. Combining spectrum sensing with non-orthogonal multiple access technology can further explore unused spectrum resources. In a non-orthogonal multiple access environment, the status of the primary user can be detected by spectrum sensing. When the primary user is idle, the idle spectrum resources can be reallocated for utilization.
[0003] Existing non-orthogonal multiple access spectrum sensing algorithms are all feature-based, that is, extracting signal features to determine the channel state. For example, cyclic delay diversity technology can be used to extract features, and the final spectrum sensing results can be derived through formula deduction. However, the structure adopted by more algorithms is: using signal features and machine learning algorithms to perform spectrum sensing. For example, extracting the energy features of the signal, or using the covariance matrix of the signal to extract eigenvalues, and classifying feature samples through machine learning algorithms, and finally achieving spectrum sensing. These methods all rely on manual feature extraction, that is, manually deriving a fixed feature extraction formula based on the internal characteristics of the signal. Therefore, the effect of feature extraction will directly affect the accuracy of spectrum sensing. In a low signal-to-noise ratio environment, signal feature extraction will become difficult, which will lead to a decrease in the accuracy of spectrum sensing. Therefore, how to extract features from low signal-to-noise signals has become a problem.
[0004] Denoising can effectively reduce the interference of noise factors and improve the effect of feature extraction. Existing traditional denoising methods such as wavelet decomposition and empirical mode decomposition need to be adjusted according to the characteristics of the signal, such as modifying the wavelet function and modal order. Therefore, these methods lack robustness. With the development of the field of machine learning, many deep denoising algorithms based on neural networks have been proposed, such as the Noise-to-Noise method and Noiser-to-Noise. These methods can use autoencoders to automatically filter the noise of signals, but they have strict requirements on signal samples, such as requiring the signal to be in paired form. Therefore, they are difficult to apply to spectrum sensing scenarios.
[0005] The prior art discloses a spectrum sensing method, device, computer equipment and storage medium based on machine learning in a NOMA system. The method includes: when a target frequency band needs to be used to send a message, a sensing application for the target frequency band is sent to the corresponding base station, so that the base station issues a spectrum sensing task for the target frequency band to each secondary user within the coverage area; the spectrum observation energy signal collected by each secondary user within the coverage area of the base station in the sensing time slot is obtained; according to the location information of each secondary user, the spectrum observation energy value corresponding to each spectrum observation energy signal is filled into the spectrum energy observation matrix, the obtained energy observation matrix is preprocessed, the processed energy observation matrix is converted into an image, and the grayscale image is obtained and input into the spectrum sensing model based on the Shuffle-Dense neural network for identification, and the current channel state of the target frequency band is output. However, the spectrum perception of this application is poor in a low signal-to-noise ratio environment and the robustness is low. Summary of the invention
[0006] In order to overcome the defect that the above-mentioned prior art cannot accurately extract signal features in a low signal-to-noise ratio environment, thereby resulting in poor spectrum sensing accuracy, the present invention provides a spectrum sensing method and system for non-orthogonal multiple access scenarios, which has low requirements on signal samples and can accurately extract signal features in a low signal-to-noise ratio environment to achieve spectrum sensing.
[0007] In order to solve the above technical problems, the technical solution of the present invention is as follows:
[0008] The present invention provides a spectrum sensing method for non-orthogonal multiple access scenarios, comprising:
[0009] S1: establishing a spectrum sensing model for a non-orthogonal multiple access scenario, the model comprising: a plurality of primary users, a plurality of secondary users and a fusion center;
[0010] S2: Each primary user generates a transmission signal, which is superimposed with additive white Gaussian noise on the channel to generate a superimposed signal, which is received by each secondary user;
[0011] S3: The fusion center collects the superposition signals received by each user and integrates them into a two-dimensional signal tensor;
[0012] S4: Input the two-dimensional signal tensor into the constructed autoencoder for denoising to obtain a denoised signal;
[0013] S5: Based on the existing feature extraction algorithm, feature extraction is performed on the denoised signal to obtain a feature vector;
[0014] S6: Based on the existing clustering algorithm, the feature vector is classified to obtain the channel state category and realize spectrum sensing.
[0015] Preferably, the superimposed signal is specifically:
[0016] The spectrum sensing model of the non-orthogonal multiple access scenario includes M primary users, and the M primary users share one channel. Then the channel status has 2 M Species, respectively Including S secondary users, assuming that the signal length of the superimposed signal received by each secondary user is L, then:
[0017]
[0018] In the formula, x j (t) represents the superimposed signal received by the j-th user at the t-th time node, j = 1, 2, ..., S; n(t) represents the additive Gaussian white noise at the t-th time node, y M (t) represents the noise-free signal of the Mth primary user at the tth time node, which is calculated from the transmission signal of the primary user:
[0019] y i (t) = h i (t)Ω i s i (t)
[0020] In the formula, y i (t) represents the noise-free signal of the i-th primary user at the t-th time node, i = 1, 2, ..., M; h i (t) represents the Ricean channel fading between the i-th primary user and the secondary user at the t-th time node, Ω i represents the power factor of the ith primary user, s i (t) represents the transmitted signal of the i-th primary user at the t-th time node; t=1,2,…,L.
[0021] Preferably, the two-dimensional signal tensor is specifically:
[0022]
[0023] In the formula, X represents the two-dimensional signal tensor, x j (t) represents the superimposed signal received by the j-th secondary user at the t-th time node.
[0024] Preferably, the constructed autoencoder includes a first convolutional layer, a second convolutional layer, a first gated recurrent unit, a concatenation layer, a maximum pooling layer, a third convolutional layer, a second gated recurrent unit, a deconvolutional layer, a fourth convolutional layer and a fifth convolutional layer;
[0025] The first convolutional layer, the second convolutional layer, the first gated recurrent unit, the concatenation layer, the deconvolution layer, the fourth convolutional layer and the fifth convolutional layer are connected in sequence;
[0026] The maximum pooling layer, the third convolutional layer, and the second gated recurrent unit are connected in sequence;
[0027] The output of the first convolutional layer is also connected to the input of the maximum pooling layer, and the output of the second gated recurrent unit is connected to the input of the concatenation layer.
[0028] Preferably, before inputting the two-dimensional signal tensor into the constructed autoencoder for denoising, the constructed autoencoder needs to be trained, including:
[0029] Sum the transmitted signals of the primary user as the noise-free signal data set Y; sum the additive Gaussian white noise to obtain the additive noise data set n, where n follows a normal distribution. And satisfy the two-dimensional signal tensor X = Y + N; construct the training data pair according to the two-dimensional signal tensor X The construction method is:
[0030]
[0031]
[0032] In the formula, represents the input training data, represents the expected output data, ∈ represents the addition of noise, and obeys the standard normal distribution A and B represent the first preset matrix and the second preset matrix respectively;
[0033] Set the training loss function of the autoencoder:
[0034]
[0035] In the formula, g θ represents the autoencoder, θ represents the parameters of the autoencoder, and ‖*‖2 represents the L2 norm;
[0036] Transform the above training loss function to obtain the final training loss function of the autoencoder:
[0037]
[0038] In the formula, const represents a constant;
[0039] When the final training loss function of the autoencoder reaches the minimum value, the optimal parameters of the autoencoder are obtained and saved, and the training of the autoencoder is completed.
[0040] In the constructed autoencoder, the gated recurrent unit is the key to the entire network; the gated recurrent unit is a unit suitable for processing time series signals, which usually delivers sample data in chronological order, that is, in the form of x j (t),x j(t+1),x j (t+2),... are sent in sequence; however, the signal in the spectrum sensing model of the non-orthogonal multiple access scenario is a radio frequency signal with a low sampling frequency, and it is very difficult to train the network in time sequence; in the present invention, the sample sequence is sent to the gated recurrent unit in channel order; the autoencoder can easily find the correlation between different channels, and the fully connected layer in the gated recurrent unit can well capture the periodic characteristics of the signal; and the signal in the spectrum sensing model of the non-orthogonal multiple access scenario is a radio frequency signal, which contains a large amount of low-level semantics, and the autoencoder only contains 6 layers of shallow networks, which is enough to extract these low-level semantic information, thereby improving the network speed of the autoencoder.
[0041] Preferably, the specific method for obtaining the denoised signal is:
[0042] Y * ≈g θ (X)
[0043] Where Y * represents the denoised signal, g θ represents the autoencoder, and X represents the two-dimensional signal tensor.
[0044] Preferably, in step S5, the existing feature extraction algorithm is an energy detection method;
[0045] The specific method of extracting features of denoised signals based on energy detection method and obtaining feature vectors is as follows:
[0046]
[0047] In the formula, μ represents the eigenvector, Represents the denoised signal Y * The element at row j and column t in .
[0048] Preferably, in step S6, the existing clustering algorithm is a K-means++ algorithm;
[0049] Based on the K-means++ algorithm, the center point of the preset category is output, and the feature vector is classified using the center point of the preset category to obtain the state category of the channel:
[0050]
[0051] In the formula, H k , k represents the kth channel state category, dist(*) represents the Euclidean distance, c q Represents the center point of the qth preset category.
[0052] The present invention also provides a spectrum sensing system for non-orthogonal multiple access scenarios, comprising:
[0053] A model building module, used to establish a spectrum sensing model for a non-orthogonal multiple access scenario, the model comprising: a plurality of primary users, a plurality of secondary users and a fusion center;
[0054] The signal superposition module is used for each primary user to generate a transmission signal, and superimpose it with additive white Gaussian noise on the channel to generate a superimposed signal, which is received by each secondary user;
[0055] The signal integration module is used for the fusion center to collect the superimposed signals received by each user and integrate them into a two-dimensional signal tensor;
[0056] A signal denoising module is used to input the two-dimensional signal tensor into the constructed autoencoder for denoising to obtain a denoised signal;
[0057] A feature extraction module is used to extract features of the denoised signal based on an existing feature extraction algorithm to obtain a feature vector;
[0058] The channel state classification module is used to classify the feature vector based on the existing clustering algorithm, obtain the state category of the channel, and realize spectrum perception.
[0059] The present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned spectrum sensing method for non-orthogonal multiple access scenarios when executing the computer program.
[0060] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:
[0061] The present invention first constructs a spectrum sensing model for a non-orthogonal multiple access scenario, which includes several main users, several secondary users and a fusion center; each main user generates a transmission signal, which is superimposed with additive Gaussian white noise on the channel to generate a superimposed signal, which is received by each secondary user; the fusion center integrates the superimposed signals received by each secondary user into a two-dimensional signal tensor; since the transmission signals are superimposed with additive Gaussian white noise, a large amount of noise signals are included, and the signal-to-noise ratio environment is low at this time; then the designed autoencoder is used to denoise the two-dimensional signal tensor to obtain a denoised signal, so that feature operations are easy to implement, and the autoencoder is suitable for the signal type in the spectrum sensing model of the non-orthogonal multiple access scenario, which improves the denoising effect; the denoised signal is feature extracted to obtain a feature vector; finally, the feature vector is classified to obtain the state category of the channel to realize spectrum sensing. The method has low signal requirements and strong denoising performance, and realizes efficient, high-speed and high-robust spectrum sensing in a low signal-to-noise ratio environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1This is a flow chart of the spectrum sensing method for non-orthogonal multiple access scenarios described in Example 1.
[0063] Figure 2 This is a schematic diagram of the structure of the autoencoder constructed as described in Example 2.
[0064] Figure 3 This is a schematic diagram of the structure of the gated recurrent unit described in Example 2.
[0065] Figure 4 This is a structural diagram of a spectrum sensing model for a non-orthogonal multiple access scenario including two primary users, two secondary users and one fusion center as described in Example 2.
[0066] Figure 5 This is a schematic diagram of the structure of the spectrum sensing system for non-orthogonal multiple access scenarios described in Example 3. DETAILED DESCRIPTION
[0067] The drawings are for illustrative purposes only and should not be construed as limiting the present patent;
[0068] In order to better illustrate the present embodiment, some parts in the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product;
[0069] It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.
[0070] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0071] Example 1
[0072] A spectrum sensing method for non-orthogonal multiple access scenarios, such as Figure 1 As shown, including:
[0073] S1: establishing a spectrum sensing model for a non-orthogonal multiple access scenario, the model comprising: a plurality of primary users, a plurality of secondary users and a fusion center;
[0074] S2: Each primary user generates a transmission signal, which is superimposed with additive white Gaussian noise on the channel to generate a superimposed signal, which is received by each secondary user;
[0075] S3: The fusion center collects the superposition signals received by each user and integrates them into a two-dimensional signal tensor;
[0076] S4: Input the two-dimensional signal tensor into the constructed autoencoder for denoising to obtain a denoised signal;
[0077] S5: Based on the existing feature extraction algorithm, feature extraction is performed on the denoised signal to obtain a feature vector;
[0078] S6: Based on the existing clustering algorithm, the feature vector is classified to obtain the channel state category and realize spectrum sensing.
[0079] In the specific implementation process, this embodiment first constructs a spectrum perception model for non-orthogonal multiple access scenarios, which includes several main users, several secondary users and a fusion center; each main user generates a transmission signal, which is superimposed with additive Gaussian white noise on the channel to generate a superimposed signal, which is received by each secondary user; the fusion center integrates the superimposed signals received by each secondary user into a two-dimensional signal tensor; since the transmission signals are superimposed with additive Gaussian white noise, they contain a large number of noise signals, which is a low signal-to-noise ratio environment; then the designed autoencoder is used to denoise the two-dimensional signal tensor to obtain a denoised signal, so that feature operations are easy to implement, and the autoencoder is suitable for the signal type in the spectrum perception model of non-orthogonal multiple access scenarios, which improves the denoising effect; the denoised signal is feature extracted to obtain a feature vector; finally, the feature vector is classified to obtain the state category of the channel to achieve spectrum perception. This embodiment has low signal requirements and strong denoising performance, and realizes efficient, high-speed, and highly robust spectrum perception in a low signal-to-noise ratio environment.
[0080] Example 2
[0081] This embodiment provides a spectrum sensing method for a non-orthogonal multiple access scenario, including:
[0082] S1: establishing a spectrum sensing model for a non-orthogonal multiple access scenario, the model comprising: a plurality of primary users, a plurality of secondary users and a fusion center;
[0083] S2: Each primary user generates a transmission signal, which is superimposed with additive white Gaussian noise on the channel to generate a superimposed signal, which is received by each secondary user;
[0084] The superposition signal is specifically:
[0085] The spectrum sensing model of the non-orthogonal multiple access scenario includes M primary users, and the M primary users share one channel. Then the channel status has 2 M Species, respectively Including S secondary users, assuming that the signal length of the superimposed signal received by each secondary user is L, then:
[0086]
[0087] In the formula, x j (t) represents the superimposed signal received by the j-th user at the t-th time node, j = 1, 2, ..., S; n(t) represents the additive Gaussian white noise at the t-th time node, y M(t) represents the noise-free signal of the Mth primary user at the tth time node, which is calculated from the transmission signal of the primary user:
[0088] y i (t) = h i (t)Ω i s i (t)
[0089] In the formula, y i (t) represents the noise-free signal of the i-th primary user at the t-th time node, i = 1, 2, ..., M; h i (t) represents the Ricean channel fading between the i-th primary user and the secondary user at the t-th time node, Ω i represents the power factor of the ith primary user, s i (t) represents the transmission signal of the i-th primary user at the t-th time node; t=1,2,…,L;
[0090] S3: The fusion center collects the superimposed signals received by each user and integrates them into a two-dimensional signal tensor; specifically:
[0091]
[0092] In the formula, X represents the two-dimensional signal tensor, x j (t) represents the superimposed signal received by the j-th secondary user at the t-th time node;
[0093] S4: Input the two-dimensional signal tensor into the constructed autoencoder for denoising to obtain a denoised signal;
[0094] like Figure 2 As shown, the constructed autoencoder includes a first convolutional layer, a second convolutional layer, a first gated recurrent unit, a concatenation layer, a maximum pooling layer, a third convolutional layer, a second gated recurrent unit, a deconvolutional layer, a fourth convolutional layer and a fifth convolutional layer;
[0095] The first convolutional layer, the second convolutional layer, the first gated recurrent unit, the concatenation layer, the deconvolution layer, the fourth convolutional layer and the fifth convolutional layer are connected in sequence;
[0096] The maximum pooling layer, the third convolutional layer, and the second gated recurrent unit are connected in sequence;
[0097] The output of the first convolutional layer is also connected to the input of the maximum pooling layer, and the output of the second gated recurrent unit is connected to the input of the concatenation layer;
[0098] like Figure 3As shown in FIG. 1 , the structure of the first gated recurrent unit and the second gated recurrent unit is the same; in the constructed autoencoder, the gated recurrent unit is the key to the entire network; the gated recurrent unit is a unit suitable for processing time series signals, and usually delivers sample data in time order, that is, in x j (t),x j (t+1),x j (t+2),… are delivered in sequence; however, the signal in the spectrum sensing model of the non-orthogonal multiple access scenario is a radio frequency signal with a low sampling frequency, and it is very difficult to train the network in time sequence; in the present invention, the sample sequence is delivered to the gated recurrent unit in channel order; the autoencoder can easily find the correlation between different channels, and at the same time, the fully connected layer in the gated recurrent unit can well capture the periodic characteristics of the signal; although the performance of the fully connected layer is strong, its generalization ability is poor, so the gated recurrent unit is surrounded by the convolutional layer; and the signal in the spectrum sensing model of the non-orthogonal multiple access scenario is a radio frequency signal, which contains a large amount of low-level semantics. The autoencoder only contains 6 layers of shallow networks, which is enough to extract these low-level semantic information, thereby improving the network speed of the autoencoder.
[0099] Before inputting the two-dimensional signal tensor into the constructed autoencoder for denoising, the constructed autoencoder needs to be trained, including:
[0100] Sum the transmitted signals of the primary user to obtain the noise-free signal data set Y; sum the additive Gaussian white noise to obtain the additive noise data set N, which follows a normal distribution. And satisfy the two-dimensional signal tensor X = Y + N; construct the training data pair according to the two-dimensional signal tensor X The construction method is:
[0101]
[0102]
[0103] In the formula, represents the input training data, represents the expected output data, ∈ represents the addition of noise, and obeys the standard normal distribution A and B represent the first preset matrix and the second preset matrix respectively;
[0104] Set the training loss function of the autoencoder:
[0105]
[0106] In the formula, g θ represents the autoencoder, θ represents the parameters of the autoencoder, and ‖*‖2 represents the L2 norm;
[0107] Transform the above training loss function to obtain the final training loss function of the autoencoder:
[0108]
[0109] In the formula, const represents a constant;
[0110] When the final training loss function of the autoencoder reaches the minimum value, the optimal parameters of the autoencoder are obtained and saved, and the training of the autoencoder is completed;
[0111] S5: Based on the existing feature extraction algorithm, feature extraction is performed on the denoised signal to obtain a feature vector;
[0112] Specifically, any existing feature extraction algorithm can be used to perform feature extraction. In this embodiment, the energy detection method is used to extract features from the denoised signal to obtain a feature vector:
[0113]
[0114] In the formula, μ represents the eigenvector, Represents the denoised signal Y * The element at row j and column t in ;
[0115] S6: Based on the existing clustering algorithm, the feature vector is classified to obtain the channel status category and realize spectrum sensing;
[0116] Specifically, any existing clustering algorithm can be used for classification. In this embodiment, the K-means++ algorithm is used to output the center point of the preset category based on the K-means++ algorithm. The algorithm steps are as follows:
[0117] Definition: c q 、c k are the center points of the qth and kth classes respectively;
[0118]
[0119]
[0120] Among them, D, D k are the total number of samples and the number of samples of the kth class respectively;
[0121] Use the center point of the preset category to classify the feature vector and obtain the state category of the channel:
[0122]
[0123] In the formula, H k , k represents the kth channel state category, dist(*) represents the Euclidean distance, cq Represents the center point of the qth preset category.
[0124] In the specific implementation process, Figure 4 As shown, a simulation experiment is carried out in which the primary user M=2 and the secondary user S=2 in the spectrum sensing model of the non-orthogonal multiple access scenario. The channel has four states, represented by H0, H1, H2, and H3; the superimposed signal is:
[0125]
[0126] y i (t) = h i (t)Ω i s i (t)
[0127] Where, i = 1, 2, j = 1, 2, t = 1, 2, ..., L; the power factor is set to Ω1>Ω2;
[0128] Then the two-dimensional signal tensor is:
[0129]
[0130] The constructed autoencoder is used for denoising. The input of the first convolutional layer is a two-dimensional signal tensor. The output channel number of the first convolutional layer is 64, the output length is 256, and the convolution kernel size is 7. The output channel number of the second convolutional layer is 32, the output length is 256, and the convolution kernel size is 7. The output channel number of the first gated recurrent unit is 32, the output length is 128, and the number of hidden layers is 1. The output channel number of the splicing layer is 64, the output length is 128, and the output channel number of the maximum pooling layer is 64, the output length is 128, and the pooling kernel size is 1. The number of output channels of the third convolutional layer is 32, the output length is 128, and the convolution kernel size is 7. The number of output channels of the second gated recurrent unit is 32, the output length is 128, and the number of hidden layers is 1. The number of output channels of the deconvolutional layer is 64, the output length is 256, and the deconvolution kernel size is 7. The number of output channels of the fourth convolutional layer is 64, the output length is 256, and the convolution kernel size is 7. The number of output channels of the fifth convolutional layer is 2, the output length is 256, and the convolution kernel size is 7. The output of the fifth convolutional layer is the denoised signal.
[0131] Then, the energy detection method is used to extract features and the K-means++ algorithm is used for classification to obtain the channel status category.
[0132] The following table shows the accuracy comparison results of the method of this embodiment and other spectrum sensing algorithms under different signal-to-noise ratios:
[0133]
[0134] Among them, ED represents a spectrum sensing algorithm that directly extracts signal energy features and classifies them through the K-means++ algorithm; Wave-Unet+ED represents a spectrum sensing algorithm that uses a specific Wave-Unet autoencoder to perform R2R denoising on the signal and classifies it through the K-means++ algorithm; DRSN+ED represents a spectrum sensing algorithm that uses a specific DRSN autoencoder to perform R2R denoising on the signal and classifies it through the K-means++ algorithm; It can be seen from the above table that when the signal-to-noise ratio is -7dB and -10dB respectively, the accuracy of the method in this embodiment is better than other algorithms.
[0135] As shown in the following table, the inference speed comparison results of the autoencoder constructed in this embodiment and different autoencoders are shown:
[0136]
[0137] It can be seen from the above table that the autoencoder of this embodiment has a higher inference speed.
[0138] This embodiment further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the above-mentioned spectrum sensing method for non-orthogonal multiple access scenarios are implemented.
[0139] Example 3
[0140] This embodiment provides a spectrum sensing system for non-orthogonal multiple access scenarios, such as Figure 5 As shown, including:
[0141] A model building module, used to establish a spectrum sensing model for a non-orthogonal multiple access scenario, the model comprising: a plurality of primary users, a plurality of secondary users and a fusion center;
[0142] The signal superposition module is used for each primary user to generate a transmission signal, and superimpose it with additive white Gaussian noise on the channel to generate a superimposed signal, which is received by each secondary user;
[0143] The signal integration module is used for the fusion center to collect the superimposed signals received by each user and integrate them into a two-dimensional signal tensor;
[0144] A signal denoising module is used to input the two-dimensional signal tensor into the constructed autoencoder for denoising to obtain a denoised signal;
[0145] A feature extraction module is used to extract features of the denoised signal based on an existing feature extraction algorithm to obtain a feature vector;
[0146] The channel state classification module is used to classify the feature vector based on the existing clustering algorithm, obtain the state category of the channel, and realize spectrum perception.
[0147] The same or similar reference numerals correspond to the same or similar components;
[0148] The terms used in the drawings to describe positional relationships are only used for illustrative purposes and should not be construed as limiting this patent;
[0149] Obviously, the above embodiments of the present invention are merely 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 spectrum sensing method for non-orthogonal multiple access scenarios, characterized in that: include: S1: establishing a spectrum sensing model for a non-orthogonal multiple access scenario, the model comprising: a plurality of primary users, a plurality of secondary users and a fusion center; S2: Each primary user generates a transmission signal, which is superimposed with additive white Gaussian noise on the channel to generate a superimposed signal, which is received by each secondary user; S3: The fusion center collects the superposition signals received by each user and integrates them into a two-dimensional signal tensor; S4: Input the two-dimensional signal tensor into the constructed autoencoder for denoising to obtain a denoised signal; The constructed autoencoder includes a first convolutional layer, a second convolutional layer, a first gated recurrent unit, a concatenation layer, a maximum pooling layer, a third convolutional layer, a second gated recurrent unit, a deconvolutional layer, a fourth convolutional layer and a fifth convolutional layer; The first convolutional layer, the second convolutional layer, the first gated recurrent unit, the concatenation layer, the deconvolution layer, the fourth convolutional layer and the fifth convolutional layer are connected in sequence; The maximum pooling layer, the third convolutional layer, and the second gated recurrent unit are connected in sequence; The output of the first convolutional layer is also connected to the input of the maximum pooling layer, and the output of the second gated recurrent unit is connected to the input of the concatenation layer; Before inputting the two-dimensional signal tensor into the constructed autoencoder for denoising, the constructed autoencoder needs to be trained, including: Sum the transmitted signals of the primary user to obtain the noise-free signal data set Y; sum the additive Gaussian white noise to obtain the additive noise data set N, which follows a normal distribution. And satisfy the two-dimensional signal tensor X = Y + N; construct the training data pair according to the two-dimensional signal tensor X The construction method is: In the formula, represents the input training data, represents the expected output data, ∈ represents the addition of noise, and obeys the standard normal distribution A and B represent the first preset matrix and the second preset matrix respectively; Set the training loss function of the autoencoder: In the formula, g θ represents the autoencoder, θ represents the parameters of the autoencoder, and ‖*‖2 represents the L2 norm; Transform the above training loss function to obtain the final training loss function of the autoencoder: In the formula, const represents a constant; When the final training loss function of the autoencoder reaches the minimum value, the optimal parameters of the autoencoder are obtained and saved, and the training of the autoencoder is completed; S5: Based on the existing feature extraction algorithm, feature extraction is performed on the denoised signal to obtain a feature vector; The existing feature extraction algorithm is the energy detection method; The specific method of extracting features of denoised signals based on energy detection method and obtaining feature vectors is as follows: In the formula, μ represents the eigenvector, Represents the denoised signal Y * The element in the jth row and tth column in ; S represents the number of secondary users, and L represents the signal length of the superimposed signal received by each secondary user; S6: Based on the existing clustering algorithm, the feature vector is classified to obtain the channel status category and realize spectrum sensing; The existing clustering algorithm is K-means++ algorithm; Based on the K-means++ algorithm, the center point of the preset category is output, and the feature vector is classified using the center point of the preset category to obtain the state category of the channel: In the formula, H k , k represents the kth channel state category, dist(*) represents the Euclidean distance, c q Represents the center point of the qth preset category.
2. The spectrum sensing method for non-orthogonal multiple access scenarios according to claim 1, characterized in that: The superposition signal is specifically: The spectrum sensing model of the non-orthogonal multiple access scenario includes M primary users, and the M primary users share one channel. Then the channel status has 2 M Species, respectively Including S secondary users, assuming that the signal length of the superimposed signal received by each secondary user is L, then: In the formula, x j (t) represents the superimposed signal received by the j-th user at the t-th time node, j = 1, 2, ..., S; n(t) represents the additive Gaussian white noise at the t-th time node, y M (t) represents the noise-free signal of the Mth primary user at the tth time node, which is calculated from the transmission signal of the primary user: y i (t)=h i (t)Ω i s i (t) In the formula, y i (t) represents the noise-free signal of the i-th primary user at the t-th time node, i = 1, 2, ..., M; h i (t) represents the Ricean channel fading between the i-th primary user and the secondary user at the t-th time node, Ω i represents the power factor of the ith primary user, s i (t) represents the transmitted signal of the i-th primary user at the t-th time node; t=1,2,…,L.
3. The spectrum sensing method for non-orthogonal multiple access scenarios according to claim 2, characterized in that: The two-dimensional signal tensor is specifically: In the formula, X represents the two-dimensional signal tensor, x j (t) represents the superimposed signal received by the j-th secondary user at the t-th time node.
4. The spectrum sensing method for non-orthogonal multiple access scenarios according to claim 3, characterized in that: The specific method for obtaining the denoised signal is: AND * ≈g θ (X) Where Y * represents the denoised signal, g θ represents the autoencoder, and X represents the two-dimensional signal tensor.
5. A spectrum sensing system for non-orthogonal multiple access scenarios, characterized in that: include: A model building module, used to establish a spectrum sensing model for a non-orthogonal multiple access scenario, the model comprising: a plurality of primary users, a plurality of secondary users and a fusion center; The signal superposition module is used for each primary user to generate a transmission signal, and superimpose it with additive white Gaussian noise on the channel to generate a superimposed signal, which is received by each secondary user; The signal integration module is used for the fusion center to collect the superimposed signals received by each user and integrate them into a two-dimensional signal tensor; A signal denoising module is used to input the two-dimensional signal tensor into the constructed autoencoder for denoising to obtain a denoised signal; The constructed autoencoder includes a first convolutional layer, a second convolutional layer, a first gated recurrent unit, a concatenation layer, a maximum pooling layer, a third convolutional layer, a second gated recurrent unit, a deconvolutional layer, a fourth convolutional layer and a fifth convolutional layer; The first convolutional layer, the second convolutional layer, the first gated recurrent unit, the concatenation layer, the deconvolution layer, the fourth convolutional layer and the fifth convolutional layer are connected in sequence; The maximum pooling layer, the third convolutional layer, and the second gated recurrent unit are connected in sequence; The output of the first convolutional layer is also connected to the input of the maximum pooling layer, and the output of the second gated recurrent unit is connected to the input of the concatenation layer; Before inputting the two-dimensional signal tensor into the constructed autoencoder for denoising, the constructed autoencoder needs to be trained, including: Sum the transmitted signals of the primary user to obtain the noise-free signal data set Y; sum the additive Gaussian white noise to obtain the additive noise data set N, which follows a normal distribution. And satisfy the two-dimensional signal tensor X = Y + N; construct the training data pair according to the two-dimensional signal tensor X The construction method is: In the formula, represents the input training data, represents the expected output data, ∈ represents the addition of noise, and obeys the standard normal distribution A and B represent the first preset matrix and the second preset matrix respectively; Set the training loss function of the autoencoder: In the formula, g θ represents the autoencoder, θ represents the parameters of the autoencoder, and ‖*‖2 represents the L2 norm; Transform the above training loss function to obtain the final training loss function of the autoencoder: In the formula, const represents a constant; When the final training loss function of the autoencoder reaches the minimum value, the optimal parameters of the autoencoder are obtained and saved, and the training of the autoencoder is completed; A feature extraction module is used to extract features of the denoised signal based on an existing feature extraction algorithm to obtain a feature vector; The existing feature extraction algorithm is the energy detection method; The specific method of extracting features of denoised signals based on energy detection method and obtaining feature vectors is as follows: In the formula, μ represents the eigenvector, Represents the denoised signal Y * The element in the jth row and tth column in ; S represents the number of secondary users, and L represents the signal length of the superimposed signal received by each secondary user; The channel state classification module is used to classify the feature vector based on the existing clustering algorithm, obtain the channel state category, and realize spectrum perception; The existing clustering algorithm is K-means++ algorithm; Based on the K-means++ algorithm, the center point of the preset category is output, and the feature vector is classified using the center point of the preset category to obtain the state category of the channel: In the formula, H k , k represents the kth channel state category, dist(*) represents the Euclidean distance, c q Represents the center point of the qth preset category.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
