Multi-channel spectrum prediction method based on machine learning

By combining the multi-channel spectrum prediction methods of GCN, BiLSTM and CNN, the problem of inaccurate spectrum prediction in multi-channel environments is solved, more efficient spectrum resource management and dynamic adjustment are achieved, and spectrum utilization and system response speed are improved.

CN118890115APending Publication Date: 2024-11-01TIANWEIXUNDA (SICHUAN) TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410809041.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

Existing spectrum prediction methods are difficult to accurately capture the dynamic changes in spectrum usage in multi-channel environments, and ignore the interrelationship between channels, resulting in inaccurate prediction results and unreasonable resource allocation.

Method used

Using a multi-channel spectrum prediction method based on machine learning, combined with graph convolutional network (GCN), bidirectional long and short-term memory network (BiLSTM) and convolutional neural network (CNN), signal-to-noise separation is performed by receiving spectrum data from multiple channels. , calculate the spectrum occupancy, extract the spatial characteristics between channels, and predict the future spectrum occupancy state through weighted merging through fully connected layer.

Benefits of technology

It significantly improves the accuracy and efficiency of spectrum prediction, supports dynamic spectrum access and management, optimizes the use of wireless resources, reduces spectrum conflicts and waste, and improves spectrum utilization and system response speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890115A_ABST
    Figure CN118890115A_ABST
Patent Text Reader

Abstract

The invention relates to the field of wireless communication, and discloses a multi-channel frequency spectrum prediction method based on machine learning, which comprises the following steps: S1, receiving frequency spectrum data of a plurality of channels in the same frequency band; s2, performing signal-noise separation on the received spectrum data to obtain a spectrum occupancy state sequence; s3, calculating a frequency spectrum occupancy rate in each window, and constructing a frequency spectrum occupancy rate time sequence; s4, extracting spatial features among a plurality of channels by applying a graph convolutional network model; s5, inputting the spatial feature data into the bidirectional long and short time memory network, and predicting the future spectrum occupancy state of each channel in combination with the obtained time domain features; and S6, performing weighted combination on the output of the future spectrum occupancy state of each channel to obtain a multi-channel spectrum prediction result. According to the method, the spatial features between the channels can be effectively extracted and utilized by combining the graph convolutional network with the correlation information between the channels, so that the prediction accuracy of the frequency spectrum state is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technology, and in particular to a multi-channel spectrum prediction method based on machine learning. Background Art

[0002] In modern wireless communication technology, spectrum resource management and optimization are key factors in achieving efficient communication systems. With the surge in the number of mobile devices and the continuous increase in data demand, effective spectrum resource management has become one of the main challenges facing the communications industry. Spectrum resources are limited, and demand continues to grow, which leads to spectrum resource tension and conflicts. Therefore, accurate prediction of spectrum usage status is of great significance to improving spectrum utilization and optimizing spectrum allocation.

[0003] Traditional spectrum prediction methods mainly rely on historical data and simple statistical models. These methods usually cannot accurately capture the dynamic changes in spectrum usage, especially in a multi-channel environment. Single-channel prediction methods often cannot effectively predict the usage of the entire frequency band. In addition, these methods often ignore the inter-correlation between channels, which may lead to inaccurate prediction results and unreasonable resource allocation in practical applications.

[0004] To address these issues, researchers have begun to explore machine learning-based prediction models that can learn and exploit complex data patterns to predict spectrum usage. In particular, deep learning techniques, such as convolutional neural networks (CNNs) and long short-term memory networks (LSTMs), have proven to be extremely effective in processing time series data and extracting features. The application of these techniques has greatly improved the accuracy of predictions, making spectrum management more efficient and dynamic.

[0005] Recently, graph convolutional networks (GCNs) have been introduced into the field of spectrum prediction as a powerful tool for processing non-Euclidean data (such as graphs and networks). By exploiting the correlation between channels, GCNs can not only predict the state of a single channel, but also predict the joint state of multiple channels in the entire frequency band. This approach provides new possibilities for dynamic spectrum access and management, thereby better meeting the needs of modern wireless communication systems for spectrum resources. Summary of the invention

[0006] In view of the shortcomings of the prior art, the present invention provides a multi-channel spectrum prediction method based on machine learning. By comprehensively applying the machine learning technologies of GCN, bidirectional LSTM and CNN, the accuracy and efficiency of spectrum prediction in a multi-channel environment are significantly improved.

[0007] To achieve the above objectives, the present invention is implemented by the following technical solutions: a multi-channel spectrum prediction method based on machine learning, comprising the following steps:

[0008] Receive spectrum data of multiple channels in the same frequency band;

[0009] Perform signal-noise separation on the received spectrum data to obtain a spectrum occupancy state sequence;

[0010] Based on time window segmentation, the spectrum occupancy in each window is calculated to construct a spectrum occupancy time series;

[0011] A graph convolutional network model is applied to extract spatial features between multiple channels based on the generated spectrum occupancy time series and the Pearson correlation coefficient between channels.

[0012] The extracted spatial feature data is input into a bidirectional long short-term memory network, and the time domain features obtained synchronously are processed by a convolutional neural network to predict the future spectrum occupancy status of each channel;

[0013] The output of the future spectrum occupancy state of each channel is weighted and combined through the fully connected layer to obtain the final multi-channel spectrum prediction result.

[0014] Preferably, the step of performing signal-to-noise separation on the received spectrum data to obtain a spectrum occupancy state sequence comprises:

[0015] Set a time window and calculate the mean of each frequency point in the time window as the initial noise estimate;

[0016] The signal level of each frequency point is compared with the estimated noise level, and the signal and noise are distinguished by the set level threshold. If the signal level is higher than the noise level plus the threshold value, it is considered to be occupied, and if it is lower, it is considered to be idle.

[0017] Update the noise level estimate and use the noise level measured in the current time window as the initial noise estimate for the next time window.

[0018] Preferably, the step of processing the state sequence by setting a time window to generate a spectrum occupancy time series comprises:

[0019] Set a time window and collect spectrum status data within the time window;

[0020] Calculating the number of occurrences of the spectrum occupancy state in the time window and the total number of measurements in the time window;

[0021] The ratio of the number of occurrences of the spectrum occupancy state divided by the total number of measurements is used as the spectrum occupancy within the time window;

[0022] Repeat the above steps to traverse the entire spectrum data sequence to construct the spectrum occupancy sequence of the entire time series.

[0023] Preferably, the step of applying the graph convolutional network model to extract spatial features between multiple channels based on the generated spectrum occupancy time series and the Pearson correlation coefficient between channels comprises:

[0024] Calculate the Pearson correlation coefficient ρ for each pair of channels in the spectrum occupancy time series X,Y , the formula is as follows:

[0025]

[0026] Among them, cov(·) represents the covariance operator, E[X] and E[Y] represent the means of the sequences, and σ X , σ Y represents the standard deviation of the series;

[0027] Construct the adjacency matrix A and improve it to Among them I N is the N-dimensional identity matrix; calculate the degree matrix D and the improved degree matrix in

[0028] Normalize the adjacency matrix to get the normalized adjacency matrix

[0029] The input feature matrix X represents the initial feature representation of each channel;

[0030] The spatial features are calculated through the graph convolutional network, and the formula is as follows:

[0031]

[0032] in, yes The degree matrix of is the adjacency matrix, I N is the N-dimensional identity matrix, H (l) is the output of layer l, W (l) is the weight matrix of the lth layer, and σ(·) is the sigmoid activation function.

[0033] Preferably, the step of inputting the extracted spatial feature data into a bidirectional long short-term memory network and combining the time domain features obtained synchronously with the convolutional neural network to predict the future spectrum occupancy state of each channel comprises:

[0034] Combine the spatial feature data extracted from the graph convolutional network with the spectrum occupancy time series data to form the input sequence matrix X in ;

[0035] The input sequence matrix Xin Input convolutional neural network (CNN) for feature extraction. The formula is as follows:

[0036]

[0037] Among them, W c is the weight matrix of the convolution kernel, b c is the bias term, represents the convolution operation;

[0038] The output of the convolution operation is transformed nonlinearly through the ReLU activation function. The formula is as follows:

[0039]

[0040] Among them, Y 1 is the output after activation function processing;

[0041] The output Y after CNN processing 1 Input the bidirectional long short-term memory network (BiLSTM) to extract the time series features. The formula is as follows:

[0042] Y 2 =f lstm1 (Y' 1 )+f lstm2 (Y' 1 )

[0043] Among them, Y' 1 is the output Y of the previous layer 1 The serialization result is output Y 2 The dimension and Y' 1 Stay consistent, f lstm1 and f lstm2 Represent the LSTM operations from front to back and from back to front respectively.

[0044] Preferably, the step of weightedly combining the output of the future spectrum occupancy state of each channel through a fully connected layer to obtain the final multi-channel spectrum prediction result comprises:

[0045] The output Y of BiLSTM 2 Input the fully connected layer (FC) for weighted and nonlinear transformation. The formula is as follows:

[0046]

[0047] in, and Represent the real and imaginary parts of the predicted value, respectively, and f l represents the activation function of the lth layer, θ represents the network parameters, including the weight matrix and bias term;

[0048] The real and imaginary parts of the output of the fully connected layer are processed separately and combined to obtain the final multi-channel spectrum prediction result.

[0049] The present invention also provides a multi-channel spectrum prediction device based on machine learning, comprising:

[0050] A data receiving unit configured to receive spectrum data of multiple channels in the same frequency band;

[0051] a signal-noise separation unit configured to perform signal-noise separation on the received spectrum data and obtain a spectrum occupancy state sequence;

[0052] A data processing unit configured to calculate the spectrum occupancy in each window based on time window segmentation and construct a spectrum occupancy time series;

[0053] a graph convolutional network processing unit configured to extract spatial features between a plurality of channels based on a generated spectrum occupancy time series and a Pearson correlation coefficient between channels;

[0054] a time domain feature processing unit configured to input the extracted spatial feature data into a bidirectional long short-term memory network, and to process the synchronously obtained time domain features in combination with a convolutional neural network to predict the future spectrum occupancy state of each channel;

[0055] The output merging unit is configured to perform weighted merging of the outputs of the future spectrum occupancy state of each channel through a fully connected layer to obtain a final multi-channel spectrum prediction result.

[0056] The present invention also provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the above method is implemented.

[0057] The present invention also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described above is implemented.

[0058] The present invention provides a multi-channel spectrum prediction method based on machine learning. It has the following beneficial effects:

[0059] 1. The present invention can effectively extract and utilize the spatial features between channels by using graph convolutional networks combined with the correlation information between channels, thereby improving the prediction accuracy of spectrum status. Through in-depth analysis of the spectrum occupancy time series, this method can more accurately predict the occupancy status of each channel at a future time point, which is of great significance for resource allocation and spectrum management.

[0060] 2. The method proposed in the present invention can more effectively manage and allocate wireless spectrum resources. By accurately predicting the future spectrum occupancy, spectrum allocation can be carried out in advance to avoid spectrum conflicts and waste, thereby optimizing the efficiency of wireless resource use. This is very beneficial for the growing demand for wireless communication and limited spectrum resources.

[0061] 3. The prediction method of the present invention supports dynamic spectrum access and can dynamically adjust spectrum allocation according to the real-time predicted spectrum usage. This flexibility enables wireless networks to respond quickly according to actual needs and environmental changes, improve spectrum utilization, and reduce interference caused by improper spectrum allocation.

[0062] 4. By processing spectrum data in real time and quickly predicting spectrum status, the method of the present invention can provide instant decision support for spectrum management. This is particularly important for communication environments that require rapid response, such as emergency communication services and large-scale real-time events, and can effectively ensure the stability and reliability of communications.

[0063] 5. The method of the present invention significantly reduces the prediction processing time by optimizing the calculation process and algorithm, so that the system can feedback the prediction results more quickly, improving the operating efficiency of the overall system. Fast prediction not only reduces the waiting time, but also makes the allocation of spectrum resources more efficient, meeting the needs of high-density network environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 It is a schematic diagram of the method flow of the present invention;

[0065] Figure 2 It is a flow chart of the signal-noise separation algorithm of the present invention;

[0066] Figure 3 It is a flow chart of the neighbor value comparison algorithm of the present invention;

[0067] Figure 4 It is a schematic diagram of spectrum occupancy sequence conversion of the present invention;

[0068] Figure 5 It is a schematic diagram of the GCN graph structure of the present invention;

[0069] Figure 6 This is a structural diagram of the GCN-convBiLSTM-FC model of the present invention;

[0070] Figure 7 This is a prediction flow chart based on the GCN-convBiLSTM-FC model of the present invention;

[0071] Figure 8 It is a structural diagram of the convBiLSTM-FC network model of the present invention;

[0072] Fig. 9 It is a schematic diagram of the structure of the device of the present invention;

[0073] Fig.10 It is a schematic diagram of the computer device structure of the present invention.

[0074] Among them, 100, data receiving unit; 200, signal-noise separation unit; 300, data processing unit; 400, graph convolution network processing unit; 500, time domain feature processing unit; 600, output merging unit; 40, computer equipment; 41, processor; 42, memory; 43, storage medium. DETAILED DESCRIPTION

[0075] The following will be combined with the drawings in the specification of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0076] Please see attached Figure 1 The embodiment of the present invention provides a multi-channel spectrum prediction method based on machine learning. The method uses a graph convolutional network (GCN) and a bidirectional long short-term memory network (BiLSTM) in combination with a convolutional neural network (CNN) to predict the spectrum occupancy status of multiple channels. This method can not only process time series data, but also effectively capture the spatial relationship in the spectrum data, thereby improving the accuracy and efficiency of the prediction.

[0077] Specifically, the method comprises the following steps:

[0078] S1, receiving spectrum data of multiple channels in the same frequency band;

[0079] In this step, spectrum data of multiple channels in a specific frequency band are collected by a collection device such as a digital receiver. These data include signal strength information of each channel at different time points and are the original data for spectrum prediction.

[0080] S2, performing signal-noise separation on the received spectrum data to obtain a spectrum occupancy state sequence;

[0081] The collected raw spectrum data contains background noise and useful signals. By applying a signal-to-noise separation algorithm, such as an algorithm based on neighbor value comparison, the signal and noise are separated from the spectrum data. By setting an appropriate threshold, the signal strength greater than the threshold is considered to be in the "occupied" state, and the signal strength less than the threshold is considered to be in the "idle" state. This step obtains a clear spectrum occupancy state sequence, providing a data basis for the next step of spectrum occupancy analysis.

[0082] Specifically, when implementing this method, it is first necessary to collect raw data from the radio spectrum. Current research mainly focuses on predicting the future occupancy state of the spectrum, that is, whether it is used. To this end, the collected spectrum data must be converted into a clear sequence of occupancy states. Specifically, the occupied state in the spectrum data is marked as "1", indicating that the frequency is in use; the idle state is marked as "0", indicating that the frequency is not in use. This marking provides a basis for subsequent analysis, allowing the system to accurately predict the future state of each channel.

[0083] The formula for converting spectrum data into spectrum status data is as follows:

[0084]

[0085] Among them, CS(t m ,f n ) indicates that at t m Moment, f n The channel state corresponding to the channel, r(t m ,f n ) indicates that at t m Moment, f n The original spectrum data corresponding to the channel, l(t m ,f n ) indicates that at t m Moment, f n The spectrum occupancy threshold corresponding to the channel. When the signal strength of a certain channel at a certain moment is higher than the threshold, the spectrum state is determined to be occupied; when it is lower than the threshold, the spectrum state is determined to be idle.

[0086] Occupancy can describe the spectrum status within a certain time or frequency range, and can be specifically expressed using channel occupancy, frequency band occupancy, and spectrum resource occupancy.

[0087] Frequency Channel Occupancy (FCO) refers to the percentage of the time when the spectrum state is occupied to the total monitoring time within a period of time on a channel, indicating the busyness of the channel during this period. The calculation formula is as follows:

[0088]

[0089] Among them, N O It indicates the number of occupied spectrum in the channel, and N indicates the total number of samples of the channel within this time range.

[0090] Frequency Band Occupancy (FBO) refers to the percentage of the number of occupied channels to the total number of sampled channels within the frequency band at a certain moment, indicating the busyness of the frequency band at a certain moment. The calculation formula is as follows:

[0091]

[0092] Among them, N O It indicates the number of channels whose spectrum status is occupied at a certain moment, and N indicates the total number of sampling channels in the frequency band.

[0093] Spectrum Resource Occupancy (SRO) refers to the ratio of the number of channels in the spectrum state to the total number of channels in the entire frequency band within a certain time range. The calculation formula is as follows:

[0094]

[0095] Among them, N O It indicates the number of channels in the spectrum state that are occupied within a certain time range, and N indicates the total number of channels in the frequency band within a certain time range.

[0096] In the process of converting spectrum data into status data, the setting of threshold is crucial. If the threshold is too low, the noise signal may be misjudged as a valid signal, causing the spectrum to be incorrectly marked as occupied; if the threshold is too high, the useful signal may be mistaken for noise, causing the spectrum to be incorrectly marked as idle, which may interfere with the primary user when the secondary user accesses. Therefore, the reasonable setting of the spectrum occupancy threshold is a key step in data preprocessing.

[0097] When implementing the present invention, the receiver will inevitably be interfered by background noise during the process of receiving spectrum data, such as receiver amplifier noise, transmitter transmission noise and feeder noise, etc. These noises make the spectrum data show dynamic fluctuations. The traditional fixed threshold method may not be accurate enough in this case, so this embodiment uses a signal-to-noise separation algorithm based on neighbor value comparison to dynamically determine the spectrum occupancy threshold. The signal-to-noise separation algorithm flow chart is shown in FIG. Figure 2 As shown in the figure, through this algorithm, the spectrum data is first preprocessed, and then the signal-noise separation threshold line is calculated. After comparing with the original spectrum data, accurate spectrum occupancy data is obtained. This method can effectively distinguish between real signals and noise and improve the accuracy of spectrum occupancy prediction. The details are as follows:

[0098] For the spectrum data R = [r(t m ,f n )] M×N , where r(t m ,f n) indicates that at t m Moment, f n The level value corresponding to the frequency point, M is the number of spectrum scans, that is, the total number of acquisition moments, and N is the number of sampling points in the frequency band scan. If you want to get the spectrum occupancy data of the xth frame in the spectrum data, the calculation steps are as follows:

[0099] Step 1: Given a time window c, the value of the time window c for different service frequency bands is different and usually needs to be determined through experiments and manual judgment.

[0100] Step 2: Calculate the multi-frame mean, and calculate the mean at each frequency point between the xc-th frame data and the x-th frame data.

[0101]

[0102] Step 3: Calculate the initial noise and take the minimum mean of each frequency point between the xc-th frame data and the x-th frame data as the initial noise.

[0103] R min (f j )=min(R(t i ,f j )),i=xc,…,x,j=1,…,N

[0104]

[0105] Step 4: Eliminate singular points and compare the mean of each frequency point with the initial noise. If the mean of a frequency point is lower than the initial noise, the value of the initial noise will be used to replace the mean of this frequency point.

[0106]

[0107] Step 5: Obtain the noise line by comparing the neighboring values ​​of the mean spectrum. The detailed process is as follows: Figure 3 As shown, the calculation steps are as follows:

[0108] Step 1: Compare the size of the first point and the second point.

[0109]

[0110] Step 2: If d>V, the value of V is set to 3dB according to the ITU manual, and season If d>V, and season

[0111] Step 3: If and season like and season like make

[0112] Step 4: Loop through Step 3 starting from the second point until the second-to-last point.

[0113] Step 6: Get the noise spectrum after step 4 Finally, the noise line needs to be increased by kdB to obtain the signal-to-noise separation threshold line T. Under normal circumstances, the value of k is between 3 and 5.

[0114]

[0115] Step 7: Compare the threshold line with the original spectrum data. The part below the threshold line in the original spectrum is noise, which means that no user uses this frequency band, and the part above the threshold line is signal, indicating that this frequency band is currently in use. In this way, the signal part of the spectrum is extracted to obtain the spectrum occupancy data.

[0116] S3, based on time window segmentation, calculate the spectrum occupancy in each window and construct a spectrum occupancy time series;

[0117] By setting a time window, the spectrum occupancy state sequence obtained by S2 is further processed. The proportion of spectrum occupancy state is calculated in each time window, that is, the total number of occupancy states in the window divided by the total number of measurements in the window. In this way, a time series can be obtained, and each data point represents the spectrum occupancy in a window. This representation method can simplify the dynamic changes of the spectrum and facilitate subsequent feature extraction and prediction.

[0118] When implementing the present invention, taking into account the rapid generation and dynamic change characteristics of spectrum data, an embodiment of the present invention provides a spectrum data processing method based on a time window to support real-time spectrum prediction and optimize spectrum resource management. Figure 4 As shown, the following are the detailed implementation steps:

[0119] Set the time window: First, define an appropriate time window (e.g., 5 minutes per window). The length of this window should be long enough to reflect changes in spectrum occupancy and fast enough to cope with rapid changes in the radio environment.

[0120] Data collection and processing: In each set time window, spectrum status data is collected, including the occupied and idle status information of each channel during the window.

[0121] Calculate spectrum occupancy: For each time window, calculate the number of occurrences of the spectrum occupancy state and the total number of measurements in the window. Then, use the ratio of the number of occurrences of the spectrum occupancy state divided by the total number of measurements as the spectrum occupancy in the time window.

[0122] Constructing time series: Repeat the above steps to traverse the entire spectrum data sequence, so as to construct a time series representing the spectrum occupancy during the entire observation period.

[0123] Since spectrum data is generated very quickly, the time window method adopted by the present invention allows real-time processing of this data, supports spectrum-assisted decision-making, and thus maximizes the efficiency and benefits of spectrum resources. Through this method, spectrum prediction can be completed in a short time, matching the time window of spectrum perception, ensuring the timeliness and relevance of the prediction results.

[0124] In addition, by performing time window processing on the spectrum occupancy sequence, the present invention can effectively predict and allocate the spectrum without losing key occupancy information. This processing method not only improves the accuracy of spectrum prediction, but also improves spectrum utilization by optimizing the time allocation of spectrum perception, and avoids spectrum occupancy conflicts caused by processing delays.

[0125] S4, applying the graph convolutional network model to extract the spatial features between multiple channels based on the generated spectrum occupancy time series and the Pearson correlation coefficient between channels;

[0126] In this step, the spectrum occupancy time series is input into the graph convolutional network together with the Pearson correlation coefficient between channels. GCN is able to exploit the correlation between channels and extract spatial features between channels. This method can mine potential relationships between non-adjacent channels that may be overlooked in traditional methods.

[0127] When implementing the present invention, after converting the spectrum occupancy sequence into a spectrum occupancy sequence, since the values ​​in the spectrum occupancy sequence are not just data of the two states of occupied and idle, but the proportion of the occupied state in the entire time window within a time window, the Pearson correlation coefficient is calculated to measure the relationship between the two spectrum occupancy sequences and their correlation direction.

[0128] For two spectrum occupancy sequences X and Y, the correlation between them can be characterized by the Pearson correlation coefficient. The formula for calculating the Pearson correlation coefficient is as follows:

[0129]

[0130] Where cov(·) represents the covariance operator, E[X](E[Y]) represents the mean of the sequence, and σ X(σ Y ) represents the standard deviation of the series.

[0131] The covariance calculation formula is as follows:

[0132] cov(X,Y)=E[(XE[X])(YE[Y])]=E[XY]-E[X]E[Y]

[0133] The standard deviation is calculated as follows:

[0134]

[0135] ρ X,Y The value range is [-1,1]. Generally, the larger its absolute value, the greater the correlation between sequences X and Y.

[0136] In this embodiment, the schematic diagram of the GCN graph structure used is as follows: Figure 5 As shown in the figure, taking node B as the target node, through GCN network calculation, the influence of nodes A, C, D, and E on node B can be obtained.

[0137] The calculation process of the GCN network can be divided into three steps: constructing the adjacency matrix A, calculating the degree matrix D, and calculating the feature matrix X.

[0138] The adjacency matrix is ​​a method of representing a graph in graph theory, which is used to represent the connection relationship between vertices in the graph. Figure 5 Taking the middle graph structure as an example, node A is connected to node B, node B is connected to node C, node D, and node E, node C is connected to node D, and node D is connected to node E. The constructed adjacency matrix table is shown in Table 1:

[0139] Table 1 Adjacency matrix table

[0140] node A B C D E A 0 1 0 0 0 B 1 0 1 1 1 C 0 1 0 1 0 D 1 0 1 0 1 E 0 0 0 1 0

[0141] At this time, the adjacency matrix table only considers the connection relationship between the node and the surrounding nodes, and does not consider the connection between the node itself. This will result in the aggregation representation of the node not containing its own characteristics when calculating the aggregation matrix. The aggregation matrix represents the aggregation of the characteristics of adjacent nodes. Only nodes with self-loops will contain their own characteristics in the aggregation. In order to reflect the characteristics of the node itself in the aggregation evidence, a self-loop can be added to each node. The calculation formula is as follows:

[0142]

[0143] in, is the improved adjacency matrix, I N is the N-dimensional identity matrix. Table 2 is the improved adjacency matrix table.

[0144] Table 2 Improved adjacency matrix table

[0145] node A B C D E A 1 1 0 0 0 B 1 1 1 1 1 C 0 1 1 1 0 D 1 0 1 1 1 E 0 0 0 1 1

[0146] The degree matrix D is a diagonal matrix containing the data of the nodes adjacent to the node, that is, the diagonal matrix composed of the sum of each row of the adjacency matrix A. The values ​​on the diagonal in the matrix are the number of edges of the vertex. Figure 5 The degree matrix of the graph structure in is shown in Table 3:

[0147] Table 3 Degree matrix

[0148] node A B C D E A 1 0 0 0 0 B 0 4 0 0 0 C 0 0 2 0 0 D 0 0 0 3 0 E 0 0 0 0 2

[0149] Just like the improvement of the adjacency matrix, the degree matrix also needs to be updated to take the connection relationship of the nodes into consideration. An N-dimensional unit matrix needs to be added to the degree matrix.

[0150] In the degree matrix, normalization operation is also required. The goal of normalization operation is to make each row of the matrix add up to 1. This ensures that when performing graph convolution, the information transmission between different nodes will not be biased due to the difference in node degree. The updated degree matrix table is shown in Table 4.

[0151] Table 4 Updated degree matrix

[0152]

[0153] Graph convolutional networks can aggregate the information of the surrounding adjacent nodes for each node in the graph structure. For a given graph with k nodes, a k×k adjacency matrix can be obtained, denoted as A, a i,j Represents the corresponding value of node i and node j in the adjacency matrix. The output of the lth layer of node i is represented as Generally, the calculation starts from layer 0. represents the 0th layer output of node i, that is, the initial representation state of node i. For the L-layer graph neural network, the final representation state of node i is The representation state of the current layer is iterated from the representation state of the previous layer. The number of layers is l∈[1,2,…,L], so the calculation method of the iterative process is:

[0154]

[0155] σ is a nonlinear function, usually a ReLU function, W lis the weight coefficient matrix, which is a matrix that needs to be learned, and j is the adjacent node of node i. It is precisely the representation state of the adjacent node that can be brought into the formula for calculation. Therefore, the graph convolutional network can learn the information of the adjacent nodes in each iteration. After multiple iterations, the complete information can be learned.

[0156] The implementation of this step enables the present invention to utilize the spatial relationship between channels in multi-channel spectrum prediction, thereby improving the accuracy of prediction. By modeling the correlation between channels and applying a graph convolutional network, the spatial distribution of spectrum data and its dynamic changes can be deeply understood, thereby making the prediction more accurate.

[0157] S5, inputting the extracted spatial feature data into a bidirectional long short-term memory network, and combining the convolutional neural network to process the synchronously obtained time domain features to predict the future spectrum occupancy state of each channel;

[0158] The spatial features processed by GCN in S4 are combined with the time domain features extracted by CNN and input into the bidirectional long short-term memory network. BiLSTM can effectively process time series data and predict the spectrum occupancy state of each channel at a certain moment in the future. This combined model utilizes the spatiotemporal characteristics of spectrum data and improves the accuracy of prediction.

[0159] The composition structure of the GCN-convBiLSTM-FC model used in the present invention is as follows Figure 6 As shown in the figure, each channel is first defined as a node in the graph structure, and the Pearson correlation coefficient between channels is calculated as the weight information between nodes. If the weight between channel nodes is lower than a certain correlation threshold, the connection between channel nodes is disconnected, thereby constructing a multi-channel graph structure. The correlation between channel nodes is extracted through the GCN network, and then the time series data with spatial features is divided into time windows for sampling to obtain multiple subsequences and input into the CNN network to further extract time domain related features, and then input into the BiLSTM network to extract the time features, and the prediction results are obtained through weighted merging of the fully connected layer.

[0160] Figure 7 For the prediction process based on the GCN-convBiLSTM-FC model, spectrum data is first collected, and then data preprocessing operations such as signal-noise separation and time window division are performed to divide the data into training data and test data. The training data first calculates the correlation between channels in the frequency band, builds a graph structure, extracts spatial feature information between channels through the GCN network, and then extracts the temporal features within the channel through the BiLSTM network until the training is completed; after obtaining the model, the test data is used to determine whether the expected accuracy is achieved. If it does not meet the requirements, the training is continued by adjusting the hyperparameters in the network until the expected accuracy is achieved.

[0161] The core basic framework of GCN includes two matrices: adjacency matrix A and feature matrix X. The graph convolution formula is:

[0162]

[0163] in, yes The degree matrix of is the adjacency matrix, I N is the N-dimensional identity matrix, H (l) is the output of layer l, W (l) is the weight matrix of the lth layer, and σ(·) is the sigmoid activation function.

[0164] The GCN network changes the weight of each node feature by extracting the features of the surrounding neighbor nodes. Each additional layer of the GCN network can expand the extraction range by the distance of a node. As the number of layers increases, the extracted features are also farther away. However, after experiments, the effect of the 2-3 layer GCN network is relatively good. Therefore, this embodiment uses a two-layer GCN network to extract the features of the surrounding nodes:

[0165]

[0166] in, The first layer of the network uses the ReLU(·) function as the activation function, and the second layer of the network uses σ(·) as the activation function.

[0167] The composition of the convBiLSTM-FC model is described in detail below.

[0168] The spectrum occupancy sequence on a single channel is divided into different time windows and sampled from them to form a matrix containing multiple spectrum occupancy subsequences. First, the features between multiple groups of sequences are extracted by using the CNN network, and the prediction results are obtained by the BiLSTM network. The FC network performs weighted combination to obtain the final prediction result. For single-channel prediction, given the single-channel spectrum occupancy sequence {S t-m+1 ,S t-m+2 ,…,S t}, learn the mapping function f from the historical spectrum occupancy sequence, and predict the spectrum occupancy S at the next moment t+1 .

[0169]

[0170] The architecture of the convBiLSTM-FC network model is mainly composed of three parts, including convolutional neural network (CNN), bidirectional long short-term memory network (BiLSTM) and fully connected layer (FC). Figure 8 As shown:

[0171] (1) In the convBiLSTM-FC network model, the input of the CNN part is the spectrum occupancy sequence data obtained by sampling a single channel within a certain period of time. First, the single channel spectrum occupancy sequence S = {S 1 ,S 2 ,…,S t}, divided into n subsequences S n ={S n ,S 2n ,…,S in}(i=1,2,…,t / n), and then merge these subsequences into a spectrum occupancy matrix, and extract features from two dimensions in the time domain through the CNN network. This method not only effectively reduces the volume of the original data, but also retains the key features of the data in multiple dimensions, thereby speeding up the subsequent network training process.

[0172] When processing the input channel data, the preprocessed spectrum occupancy matrix is ​​recorded as X in After the data passes through the convolutional network layer, the output result is represented as Z c , the calculation formula is as follows:

[0173]

[0174] Among them, W c is the weight matrix of the convolution kernel, b c is the bias term, Represents the convolution operation. After the convolution operation is completed, the ReLU activation function is used to perform nonlinear transformation on the output result to enhance the model's ability to learn complex data features. The output after ReLU activation is recorded as Y 1 , the calculation formula is as follows:

[0175]

[0176] (2) After the convolutional layer completes feature extraction and dimensionality reduction, the model further processes the obtained data using a long short-term memory network (LSTM). As mentioned in the previous section, LSTM is a modified recurrent neural network (RNN) whose flexibility makes it particularly suitable for processing and analyzing sequence data. By introducing gating mechanisms such as forget gates, input gates, and output gates, LSTM is able to solve the long-term dependency problem encountered when training long sequence data.

[0177] In the convBiLSTM-FC model, a bidirectional long short-term memory network (BiLSTM) structure is used, which consists of two directional LSTM chains. The two LSTM chains share the same input sequence, but predict and learn information from the forward and reverse directions of the sequence respectively. Through this bidirectional processing, the model can capture the contextual information in the sequence data more comprehensively. Finally, the LSTM outputs of the two directions are merged to form the final output of the BiLSTM layer, calculated as follows:

[0178] Y 2 =f lstm1 (Y' 1 )+f lstm2 (Y' 1 )

[0179] Among them, Y' 1 is the output Y of the previous layer 1 The serialization result is output Y 2 The dimension and Y' 1 Be consistent.

[0180] (3) The final part of the network consists of the fully connected layer (FC). In this part, the neurons in each layer are fully connected to the neurons in other layers and influence each other. The output value of each neuron is the weighted sum of the output values ​​of all neurons in the previous layer, obtained after nonlinear transformation. The ultimate goal of this process is to calculate the spectrum occupancy at the next moment. Assuming that the total number of fully connected layers is L, the activation function of each layer is expressed as f l (·), the spectrum occupancy prediction value is Then the output of the fully connected network is The real and imaginary parts of can be obtained through the following functional relationship:

[0181]

[0182] Among them, θ represents the parameters of the network, which mainly include the weight matrix and the bias term. In the fully connected network, except for the last layer, the activation function uses the ReLU function. Since the network output is The real and imaginary parts of , so the number of neurons in the last layer of the fully connected network is Twice the dimension.

[0183] S6, weightedly combining the output of the future spectrum occupancy state of each channel through the fully connected layer to obtain the final multi-channel spectrum prediction result;

[0184] Finally, the prediction results obtained in S5 are weighted and combined through the above fully connected layer to output the predicted spectrum occupancy status of each channel. The fully connected layer can integrate the prediction results of each channel according to the weights learned during the training process to obtain a more accurate multi-channel prediction output.

[0185] The method of the present invention makes full use of the time domain and space domain information of the spectrum data, significantly improving the accuracy and efficiency of spectrum prediction. In addition, the method can handle complex spectrum environments and adapt to different spectrum usage modes, making spectrum management more efficient.

[0186] The embodiment of the present invention also provides a convBiLSTM-FC model training process, which is as follows:

[0187] (1) Loss Function

[0188] For the convBiLSTM-FC network, let its mapping function be F(·), the network parameter set be Θ, and consider that there are M input samples, and the input vector of each sample is recorded as X in , the corresponding true value is recorded as S. This network uses the mean square error as the loss function C, and the calculation formula is as follows:

[0189]

[0190] (2) Adaptive adjustment of learning rate

[0191] In the early stage of training the convBiLSTM-FC network, a higher learning rate is used to accelerate the gradient descent process, thereby quickly promoting the network to convergence. As the training process progresses and the error decreases, the learning rate is gradually reduced to improve the accuracy of finding the optimal parameters. The ADAM (Adaptive Moment Estimation) optimizer is introduced in this network training, which can automatically adjust the learning rate. Compared with the traditional fixed learning rate method, the ADAM optimizer can significantly improve the training efficiency and effect.

[0192] (3) Parameter initialization and training strategy

[0193] In the training of the convBiLSTM-FC network, the parameters are initially initialized to a Gaussian distribution with a mean of 0 and a standard deviation of 0.01. This strategy lays the foundation for the subsequent backpropagation and gradient descent iterations. The specific training steps are as follows:

[0194] Assume that the network consists of L layers and the loss function is denoted by C. Consider the kth layer of the network and its previous layer, i.e., the jth layer. The weight matrix and bias vector are denoted by w jk and b j , the output of the jth layer is z j, the output is activated by the activation function σ to obtain the activated value a j The key to parameter training is to solve the loss function C relative to the network parameter w jk and b j The partial derivative of and

[0195] At a certain node in the network, according to the chain rule, the sum of the products of the partial derivatives of the node on all reverse paths can be calculated. Starting from the final output layer, calculate the partial derivative of the loss function C with respect to the weights of the last layer and bias The partial derivatives of the loss function are then passed forward layer by layer to calculate the partial derivatives of the loss function with respect to all layer parameters. This process is called back propagation.

[0196] First introduce Represents the partial derivative of the loss function C with respect to the activation value of the jth neuron in the lth layer, that is In the output layer of the network, that is, layer L, The calculation can be expressed as:

[0197]

[0198] If the Lth layer contains n neurons, then the vector form of these partial derivatives can be expressed as:

[0199]

[0200] The output of the L-1 layer is activated and then As the input of the Lth layer, it can be expressed as a weight matrix and The product of From this we can calculate the loss of the L-1 layer The calculation formula is as follows:

[0201]

[0202] In vectorized form, the loss δ of layer l is l The recursive relation expression is:

[0203] δ l =((w l+1 ) T δ l+1 ⊙σ'(z l ))

[0204] The weight matrix of the lth layer network The partial derivative with respect to the loss function C is calculated as follows:

[0205]

[0206] Expressed in vectorized form, the partial derivative of the weight matrix of the lth layer with respect to the loss function C is:

[0207]

[0208] Thus:

[0209]

[0210] Similarly, for the l-th layer network bias vector b l , the loss function C is relative to The partial derivative of simplifies to:

[0211]

[0212] The vectorized expression is:

[0213]

[0214] By combining the above expressions, we can derive the recursive formula of the neural network gradient during back propagation as follows:

[0215]

[0216] Apply the gradient descent rule to update the parameters in the network. The specific operations are as follows:

[0217]

[0218] The multi-channel spectrum prediction device based on machine learning described below and the multi-channel spectrum prediction method based on machine learning described above can be referenced to each other.

[0219] Please see attached Fig. 9 The present invention also provides a multi-channel spectrum prediction device based on machine learning, comprising:

[0220] The data receiving unit 100 is configured to receive spectrum data of multiple channels in the same frequency band;

[0221] The signal-noise separation unit 200 is configured to perform signal-noise separation on the received spectrum data and obtain a spectrum occupancy state sequence;

[0222] The data processing unit 300 is configured to calculate the spectrum occupancy in each window based on the time window segmentation, and construct a spectrum occupancy time series;

[0223] A graph convolutional network processing unit 400 is configured to extract spatial features between multiple channels based on the generated spectrum occupancy time series and the Pearson correlation coefficient between the channels;

[0224] The time domain feature processing unit 500 is configured to input the extracted spatial feature data into a bidirectional long short-term memory network, and combine the convolutional neural network to process the synchronously obtained time domain features to predict the future spectrum occupancy state of each channel;

[0225] The output merging unit 600 is configured to perform weighted merging of the outputs of the future spectrum occupancy state of each channel through a fully connected layer to obtain a final multi-channel spectrum prediction result.

[0226] The device of this embodiment can be used to execute the above method embodiment, and its principles and technical effects are similar, which will not be repeated here.

[0227] Please see attached Fig.10 The present invention further provides a computer device 40, comprising: a processor 41 and a memory 42, wherein the memory 42 stores a computer program executable by the processor, and when the computer program is executed by the processor, the above method is executed.

[0228] The present invention further provides a storage medium 43 on which a computer program is stored. When the computer program is run by the processor 41, the above method is executed.

[0229] Among them, the storage medium 43 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk or optical disk.

[0230] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A multi-channel spectrum prediction method based on machine learning, characterized in that: The following steps are involved: Receive spectrum data of multiple channels in the same frequency band; Perform signal-noise separation on the received spectrum data to obtain a spectrum occupancy state sequence; Based on time window segmentation, the spectrum occupancy in each window is calculated to construct a spectrum occupancy time series; A graph convolutional network model is applied to extract spatial features between multiple channels based on the generated spectrum occupancy time series and the Pearson correlation coefficient between channels. The extracted spatial feature data is input into a bidirectional long short-term memory network, and the time domain features obtained synchronously are processed by a convolutional neural network to predict the future spectrum occupancy status of each channel; The output of the future spectrum occupancy state of each channel is weighted and combined through the fully connected layer to obtain the final multi-channel spectrum prediction result.

2. The multi-channel spectrum prediction method based on machine learning according to claim 1, characterized in that: The step of performing signal-to-noise separation on the received spectrum data to obtain a spectrum occupancy state sequence comprises: Set a time window and calculate the mean of each frequency point in the time window as the initial noise estimate; The signal level of each frequency point is compared with the estimated noise level, and the signal and noise are distinguished by the set level threshold. If the signal level is higher than the noise level plus the threshold value, it is considered to be occupied, and if it is lower, it is considered to be idle. Update the noise level estimate and use the noise level measured in the current time window as the initial noise estimate for the next time window.

3. The multi-channel spectrum prediction method based on machine learning according to claim 1, characterized in that: The step of processing the state sequence by setting the time window to generate a spectrum occupancy time series includes: Set a time window and collect spectrum status data within the time window; Calculating the number of occurrences of the spectrum occupancy state in the time window and the total number of measurements in the time window; The ratio of the number of occurrences of the spectrum occupancy state divided by the total number of measurements is used as the spectrum occupancy within the time window; Repeat the above steps to traverse the entire spectrum data sequence to construct the spectrum occupancy sequence of the entire time series.

4. The multi-channel spectrum prediction method based on machine learning according to claim 1, characterized in that: The step of applying the graph convolutional network model to extract spatial features between multiple channels based on the generated spectrum occupancy time series and the Pearson correlation coefficient between channels includes: Calculate the Pearson correlation coefficient ρ for each pair of channels in the spectrum occupancy time series X,Y , the formula is as follows: Among them, cov(·) represents the covariance operator, E[X] and E[Y] represent the means of the sequences, and σ X , σ Y represents the standard deviation of the series; Each channel is defined as a node in the graph structure. The Pearson correlation coefficient between channels is calculated as the weight information between nodes. If the weight between channel nodes is lower than a certain correlation threshold, the connection between channel nodes is disconnected, thereby constructing a multi-channel graph structure. Construct the adjacency matrix A of the graph structure and improve it to Among them I N is the N-dimensional identity matrix; Calculate the degree matrix D and the improved degree matrix in Normalize the adjacency matrix to get the normalized adjacency matrix The input feature matrix X represents the initial feature representation of each channel; The spatial features are calculated through the graph convolutional network, and the formula is as follows: in, yes The degree matrix of is the adjacency matrix, I N is the N-dimensional identity matrix, H (l) is the output of layer l, W (l) is the weight matrix of the lth layer, and σ(·) is the sigmoid activation function.

5. The multi-channel spectrum prediction method based on machine learning according to claim 1, characterized in that: The step of inputting the extracted spatial feature data into a bidirectional long short-term memory network and combining the time domain features obtained synchronously with the convolutional neural network to predict the future spectrum occupancy state of each channel includes: Combine the spatial feature data extracted from the graph convolutional network with the spectrum occupancy time series data to form the input sequence matrix X in ; The input sequence matrix X in Input convolutional neural network (CNN) for feature extraction. The formula is as follows: Among them, W c is the weight matrix of the convolution kernel, b c is the bias term, represents the convolution operation; The output of the convolution operation is transformed nonlinearly through the ReLU activation function. The formula is as follows: Among them, Y1 is the output after activation function processing; The output Y1 processed by CNN is input into the bidirectional long short-term memory network (BiLSTM) to extract the time series features. The formula is as follows: Y2=f lstm1 (Y'1)+f lstm2 (Y'1) Among them, Y'1 is the serialization result of the output Y1 of the previous layer, and the dimension of the output Y2 is consistent with Y'1. lstm1 and f lstm2 Represent the LSTM operations from front to back and from back to front respectively.

6. The multi-channel spectrum prediction method based on machine learning according to claim 1, characterized in that: The step of weighting and combining the output of the future spectrum occupancy state of each channel through the fully connected layer to obtain the final multi-channel spectrum prediction result includes: The output Y2 of BiLSTM is input into the fully connected layer (FC) for weighted and nonlinear transformation. The formula is as follows: in, and Represent the real and imaginary parts of the predicted value, respectively, and f l represents the activation function of the lth layer, θ represents the network parameters, including the weight matrix and bias term; The real and imaginary parts of the output of the fully connected layer are processed separately and combined to obtain the final multi-channel spectrum prediction result.

7. A multi-channel spectrum prediction device based on machine learning, used to implement the method according to any one of claims 1 to 6, characterized in that: include: A data receiving unit configured to receive spectrum data of multiple channels in the same frequency band; A signal-to-noise separation unit, configured to perform signal-to-noise separation on the received spectrum data to obtain a spectrum occupancy state sequence; A data processing unit configured to calculate the spectrum occupancy in each window based on the time window segmentation and construct a spectrum occupancy time series; a graph convolutional network processing unit configured to extract spatial features between a plurality of channels based on a generated spectrum occupancy time series and a Pearson correlation coefficient between channels; a time domain feature processing unit configured to input the extracted spatial feature data into a bidirectional long short-term memory network, and to process the synchronously obtained time domain features in combination with a convolutional neural network to predict the future spectrum occupancy state of each channel; The output merging unit is configured to perform weighted merging of the outputs of the future spectrum occupancy state of each channel through a fully connected layer to obtain a final multi-channel spectrum prediction result.

8. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.