Encoding method and system of transformer type model for channel state information prediction

CN120729448BActive Publication Date: 2026-11-24SHANGHAI JIAOTONG UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410358506.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-27
Publication Date
2026-11-24
Estimated Expiration
2044-03-27

AI Technical Summary

Technical Problem

Existing channel state information prediction methods based on the Transformer model cannot effectively capture temporal sequence information, resulting in insufficient prediction accuracy.

Method used

In the position coding of the Transformer model, a time coding calculated by CSI is introduced. The rate of change is calculated by the differential L1 and L2 norms of the CSI signal to generate a time coding, which is then combined with the position coding for the prediction of channel state information.

Benefits of technology

It improves the model's accuracy in predicting future channel states, enhances the performance of signal state prediction tasks, and is easy to compute and apply to various Transformer-type models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120729448B_ABST
    Figure CN120729448B_ABST
Patent Text Reader

Abstract

This invention provides an encoding method and system for Transformer-type models used for channel state information (CSO) prediction, comprising the following steps: S1: acquiring and processing channel state time-series data; S2: inputting the processed data into an encoder to extract features; S3: embedding the CFR data to be predicted and adding positional encoding to the model; decoding relevant parameters using a decoder; S4: processing the decoder output to predict channel state information; and S5: using CFR data and CSI data obtained in the actual scenario as input to the model to predict channel frequency response information. This invention incorporates time information into the model by calculating and encoding the time-series features of the channel state information, thereby considering the relative stability of the channel at future moments, solving the problem of weak time-series information embedding capability in Transformer-type models, and improving the accuracy of channel state prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of channel state information prediction, and more specifically, to an encoding method and system for a Transformer-type model for channel state information prediction. Background Technology

[0002] Accurate prediction of Channel State Information (CSI) has become a key factor in improving network performance and achieving effective radio resource management. Channel prediction is crucial for link adaptation because it can minimize capacity loss caused by channel variations and enable more efficient use of available bandwidth.

[0003] In recent years, deep learning-based methods have brought new possibilities to the task of channel state timing prediction. Researchers have tried to use models such as RNN, CNN, and LSTM to predict channel states, and among these models, Transformer-based models have become a highly anticipated approach.

[0004] However, Transformer-based models all use attention structures, which makes it impossible for them to capture temporal information. Therefore, Transformer-based models need positional encoding to help them obtain positional information. Ordinary positional encoding has limited use of temporal information and can only mark the positional information of input features.

[0005] Chinese patent document CN117674926A discloses a channel state information processing method and apparatus. The method includes: inputting channel state information into an encoder model to obtain extended and enhanced channel state information output by the encoder model; and sending the extended and enhanced channel state information to a network device. The encoder model includes an encoder and a channel state information extension and enhancement module cascaded with the encoder. This patent document aims to reuse AI models under different parameter configurations, reduce the complexity of AI model training, and save deployment resources for AI models, but it still fails to solve the aforementioned problems. Summary of the Invention

[0006] To address the shortcomings of existing technologies, the purpose of this invention is to provide an encoding method and system for Transformer-type models used for channel state information prediction.

[0007] An encoding method for a Transformer-type model for channel state information prediction according to the present invention includes:

[0008] Step S1: Acquire and process channel state timing data;

[0009] The time-series data includes CSI data and CFR data; the processing includes embedding and encoding.

[0010] Step S2: Input the processed data into the encoder to extract features;

[0011] Step S3: Embed the CFR data to be predicted and add the position encoding of the Transformer model; input the relevant parameters into the decoder for decoding;

[0012] The parameters include the encoder output and the CFR feature data that needs to be predicted;

[0013] Step S4: Process the decoder output to predict channel state information;

[0014] Step S5: Use the CFR data and CSI data obtained in the actual scenario as input to the model to predict the channel frequency response information.

[0015] Preferably, step S1 includes the following sub-steps;

[0016] Step S1.1: Split the CFR data into real and imaginary parts and concatenate them into a real matrix:

[0017]

[0018] in, This refers to the real part of the CFR data. For the imaginary part of the CFR data, concat(·) is the concatenation function;

[0019] Step S1.2: Calculate the time code;

[0020] Step S1.3: Embed the CFR data through a convolutional layer, adding temporal encoding and positional encoding from the Transformer model.

[0021] Preferably, step S4 includes the following sub-steps:

[0022] Step S4.1: Input the decoder output into the fully connected layer, and prune the fully connected layer output to obtain data with the same prediction dimension as the prediction result;

[0023] Step S4.2: Use the mean squared error function as the loss function to calculate the error between the predicted value and the true value, and perform backpropagation to train the network.

[0024] Preferably, step S1 includes using CFR data as a signal for the channel state prediction task and using CSI data to calculate time coding.

[0025] Preferably, step S1.2 includes the following sub-steps:

[0026] Step S1.2.1: Calculate the differential L1 and L2 norms of the CSI signal CSI∈C t×n The calculated L1 and L2 norms CSIL∈R t :

[0027]

[0028]

[0029] Where t is the length of the time series, n is the frequency, abs(·) calculates the magnitude of the complex number, and i and j are the array position indices;

[0030] Step S1.2.2: The rate of change η of the time series at position t relative to position p. t,p for:

[0031]

[0032] Step S1.2.3: Use the rate of change η t,p The TC time code is calculated using the selected threshold η0:

[0033]

[0034] Where i and j are array position indices;

[0035] Step S1.2.4: Use a linear layer to map the temporal encoding TC to the same dimension as the embedded CFR feature, so that TC∈R after mapping. t×d ;

[0036] Where d is the dimension after mapping.

[0037] An encoding system for a Transformer-type model for channel state information prediction, provided by the present invention, includes:

[0038] Module M1: Acquires and processes channel state timing data;

[0039] The time-series data includes CSI data and CFR data; the processing includes embedding and encoding.

[0040] Module M2: Inputs the processed data into the encoder to extract features;

[0041] Module M3: Embeds the CFR data to be predicted and adds the positional encoding of the Transformer model; inputs the relevant parameters into the decoder for decoding;

[0042] The parameters include the encoder output and the CFR feature data that needs to be predicted;

[0043] Module M4: Processes the decoder output to predict channel state information;

[0044] Module M5: Uses CFR and CSI data obtained from the actual scenario as input to the model to predict channel frequency response information.

[0045] Preferably, module M1 includes the following sub-modules;

[0046] Module M1.1: Splits CFR data into real and imaginary parts and concatenates them into a real matrix.

[0047]

[0048] in, This refers to the real part of the CFR data. For the imaginary part of the CFR data, concat(·) is the concatenation function;

[0049] Module M1.2: Calculates the time code;

[0050] Module M1.3: Enables CFR data to be embedded through convolutional layers, incorporating temporal encoding and positional encoding from the Transformer model.

[0051] Preferably, module M4 includes the following sub-modules:

[0052] Module M4.1: Inputs the decoder output into the fully connected layer, prunes the fully connected layer output, and obtains data with the same prediction dimension as the prediction result;

[0053] Module M4.2: Uses the mean squared error function as the loss function to calculate the error between the predicted value and the true value and performs backpropagation to train the network.

[0054] Preferably, module M1 includes using CFR data as a signal for the channel state prediction task and using CSI data to calculate time coding.

[0055] Preferably, module M1.2 includes the following sub-modules:

[0056] Module M1.2.1: Calculate the differential L1 and L2 norms of the CSI signal CSI∈C t×n The calculated L1 and L2 norms CSIL∈R t :

[0057]

[0058]

[0059] Where t is the length of the time series, n is the frequency, abs(·) calculates the magnitude of the complex number, and i and j are the array position indices;

[0060] Module M1.2.2: Rate of change η of time series at position t relative to position p t,p for:

[0061]

[0062] Module M1.2.3: Using the rate of change η t,p The TC time code is calculated using the selected threshold η0:

[0063]

[0064] Where i and j are array position indices;

[0065] Module M1.2.4: Uses a linear layer to map the temporal encoding TC to the same dimension as the embedded CFR features, so that TC∈R after mapping. t×d ;

[0066] Where d is the dimension after mapping.

[0067] Compared with the prior art, the present invention has the following beneficial effects:

[0068] 1. This invention can improve the accuracy of the model's prediction of future channel states by introducing timing coding calculated by CSI during position coding in Transformer-type models.

[0069] 2. This invention uses CSI to calculate timing codes. The data is easy to obtain, the principle is simple, and it is easy to calculate. It can be applied to various Transformer models without changing the model structure and with little increase in computational overhead, thereby enhancing the effect of signal state prediction tasks. It has broad application prospects and high practicality.

[0070] 3. This invention incorporates time information into the model by calculating the temporal characteristics of the channel state information and adding encoding, thereby taking into account the relative stability time of the channel at future moments, solving the problem of weak temporal information embedding capability in Transformer-type models, and improving the accuracy of channel state prediction.

[0071] Other beneficial effects of the present invention will be explained in detail through the introduction of specific technical features and technical solutions in specific embodiments. Those skilled in the art should be able to understand the beneficial technical effects brought about by these technical features and technical solutions through the introduction of these technical features and technical solutions. Attached Figure Description

[0072] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:

[0073] Figure 1 This is a flowchart of the method of the present invention.

[0074] Figure 2 This is a schematic diagram illustrating the channel state information prediction task in this invention.

[0075] Figure 3 This is a schematic diagram of the network structure of the standard Transformer model in this invention.

[0076] Figure 4 This is a schematic diagram of the network structure of the time-encoded Transformer model proposed in this invention.

[0077] Figure 5 This is a flowchart illustrating the calculation process of the time encoding proposed in this invention.

[0078] Figure 6 This is a schematic diagram of the Informer network structure for time coding proposed in this invention. Detailed Implementation

[0079] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all fall within the protection scope of the present invention.

[0080] The method proposed in this invention is applicable to Transformer-type models. When adding position coding after the embedding layer, additional timing information coding is added to help the model obtain more channel state information.

[0081] The basic principle of this invention is:

[0082] In channel state information prediction, the channel frequency response (CFR) is used as the prediction target. The CFR can describe the influence of the channel on signal propagation from the amplitude frequency characteristics and phase frequency characteristics respectively. With the help of the channel frequency response of a specific signal, the propagation characteristics of different multipath paths can be calculated, and information useful for positioning and sensing can be analyzed from them.

[0083] Simultaneously, corresponding Channel State Information (CSI) is also needed to calculate the proposed time coding. This coding uses the rate of change of the CSI sequence to describe the change in relative coherence time. Relative coherence time refers to the time required for the Channel State Information (CSI) value to change under a certain threshold, thereby fusing richer time information. This is suitable for models that provide local time context information for CSI sequences, such as the Transformer model.

[0084] Reference Figure 1 As shown, an encoding method for a Transformer-type model used for channel state information prediction includes:

[0085] Step 1: Acquire channel state timing data, including CFR and CSI;

[0086] Wherein, CFR is the feature predicted by the model, and CSI is the feature calculated by the time-series coding.

[0087] Step 2: Process the CFR by splitting the real and imaginary parts and concatenating them into a real matrix;

[0088] Step 3: Embed the CFR through a convolutional layer and add the positional encoding of the Transformer model and the temporal encoding proposed in this invention;

[0089] Step 4: Input the completed embedding and encoding data into the encoder to extract features;

[0090] Step 5: Embed the CFR data to be predicted and add positional encoding from the Transformer model, but not temporal encoding. Input the encoder output and the CFR feature data to be predicted into the decoder for decoding;

[0091] Step 6: Input the encoder output into the fully connected layer, and prune the fully connected layer output to obtain data with the same prediction dimension as the prediction result;

[0092] Step 7: Use the Mean Squared Error (MSE) function as the loss function to calculate the error between the predicted value and the true value, and then perform backpropagation to train the network.

[0093] Step 8: Use the CFR and CSI obtained in the actual scenario as input to the model to predict the channel frequency response information for a future period of time.

[0094] The CFR at time t can be expressed as h. t ∈C m Let m represent the number of subcarriers. Then, the prediction task in this invention can be represented as follows:

[0095] (h t+1 ,h t+2 ,……,h t+l )=F(h t-r+1 ,h t-r+2 ,……,h t );

[0096] Where F(·) represents a prediction function or predictor, r is the window length of the historical data used for prediction, and l is the time length to be predicted, that is, using the known CFR of length r to predict the future CFR of length l.

[0097] Reference Figure 2 As shown, the encoding method proposed in this invention is mainly applied to the Transformer model. The Transformer model mainly consists of a decoder and an encoder-decoder structure. The encoder is used to encode the input sequence into a context representation, and the decoder is used to generate the target sequence using the context representation. The main structures of the encoder and decoder are as follows:

[0098] I. The encoder consists of multiple identical layers, each containing two sub-layers: a multi-head self-attention layer and a feed-forward neural network layer. After each sub-layer, there is a residual connection and a layer normalization operation.

[0099] The multi-head self-attention layer process is as follows, given an input sequence X:

[0100] 1. Parallel computation of multiple attention heads;

[0101] For each head t, calculate the three matrices for the attention mechanism: Query value Q. t Key value K t and Value V t :

[0102]

[0103] in, and This is the weight matrix.

[0104] 2. Calculate attention weights and weighted sums independently;

[0105] For each head t, calculate the attention weights and weighted sums separately:

[0106]

[0107]

[0108] Where d represents the dimensions of Query and Key, j is the one-dimensional index of the matrix, Q, K, and V are the Query, Key, and Value matrices of the attention mechanism, respectively, and SelfAttention... t Let be the self-attention output of the t-th head.

[0109] 3. Connect the outputs of multiple heads;

[0110] The outputs of all the heads are concatenated together and then linearly transformed:

[0111] MultiHeadSelfAttention(X)=Concat(SelfAttention1,SelfAttention2,…,SelfAttention n W O ;

[0112] Among them, W O This is the weight matrix for learning, and Concat(·) is the concatenation function. SelfAttention n Let be the self-attention output matrix of the nth head.

[0113] Second, the decoder consists of multiple identical layers, each of which contains three sub-layers: a multi-head mask self-attention layer, an encoder-decoder attention layer, and a feed-forward neural network layer. Similarly, each sub-layer is followed by residual connections and normalization operations.

[0114] Unlike the encoder, the multi-head masked self-attention layer is similar to the self-attention layer in the encoder, but it adds a masking mechanism. That is, it masks information about future positions during attention calculation. After adding the mask, the attention mechanism formula is updated as follows:

[0115]

[0116] Here, mask is a vector with a value of -∞ or 0, used to set the attention after the current position to 0, d is the dimension of Query and Key, Q and K are the Query and Key matrices of the attention mechanism, and softmax(·) is the activation function.

[0117] Encoder-Decoder Attention: This layer utilizes contextual information from the encoder output, along with previously generated partial target sequence information, to help generate the next word during sequence generation. Unlike multi-head self-attention, it maps the encoder output to Key and Value. After using encoder-decoder attention, for the t-th attention head, the Query value Q... t Key value K t and Value V t The calculation formula has been updated to:

[0118]

[0119] in, and Let Y be the weight matrix, Y be the input sequence of the decoder, and Z be the output sequence of the encoder.

[0120] The process of the Transformer model is as follows:

[0121] 1. Given an encoder input sequence X, perform embedding mapping to a high-dimensional space, add position encoding to obtain position information. The formula for calculating the position encoding PE is:

[0122]

[0123] Where d is the dimension of Query and Key, and i and j are array position indices;

[0124] 2. The input is fed into the encoder, and features Z are extracted through multiple sub-layers consisting of multi-head attention layers and feedforward neural network layers;

[0125] 3. Given the encoder input Y, perform embedding and add position encoding.

[0126] 4. The features Z extracted by the encoder and the input Y of the decoder are fed into the decoder. After passing through multiple sub-layers consisting of multi-head mask attention layers, encoder-decoder attention layers and feedforward neural network layers, the final output is obtained.

[0127] Reference Figure 3 As shown, the temporal encoding proposed in this invention is applied during the process of adding positional encoding to the encoder input. It is incorporated into the embedded features along with the positional encoding, using a Transformer model structure that employs temporal encoding. Therefore, this invention is applicable not only to Transformer models but also to various types of Transformer models, such as Informer.

[0128] This invention enables the model to acquire more channel stability information and improve the accuracy of the model's prediction of future channel states by introducing timing codes calculated by CSI during position coding in Transformer-type models. The timing codes calculated using CSI are easy to obtain, simple in principle, and easy to calculate. They can be applied to various Transformer-type models without changing the model structure or increasing computational overhead, thereby enhancing the performance of signal state prediction tasks. It has broad application prospects and high practicality.

[0129] The above are basic embodiments of the present invention. The technical solution of the present invention will be further described below through a preferred embodiment.

[0130] Example 1

[0131] Taking the Informer model as an example, the specific implementation method is further explained:

[0132] Step 1: Acquire channel state timing data, including CSI and CFR, CSR∈C t×m (t is the time series length, m is the number of subcarriers) represents the features predicted by the model, CSI∈C t×n (t is the length of the time series, and n is the frequency) are the features for calculating the time series coding;

[0133] Step 2: Process the CFR by splitting the real part. and the virtual part Use the concat() function to concatenate the data into a real matrix CSR∈C. t×2m The splicing method is as follows:

[0134]

[0135] Step 3: Embed the CFR through a one-dimensional convolutional layer and add encoding;

[0136] Step 3.1: Embed the CFR using a one-dimensional convolutional layer to map the CFR to a high-dimensional space. After embedding, CSR∈R t ×d (d is the mapped dimension);

[0137] Step 3.2: Use CSI to calculate the timing code and the original Transformer's positional code CSR∈R. t×d These are added together to the embedded features. The specific time encoding calculation method is as follows:

[0138] 1. Calculate the difference L1 and L2 norms of CSI, where CSI is a complex matrix and CSR∈C t×n(t is the length of the time series, n is the frequency), the calculated L1 and L2 norms CSIL∈R t The formula is as follows, where abs(·) calculates the magnitude of the complex number, and i and j are array indexes:

[0139]

[0140]

[0141] 2. Define the rate of change η t,p The rate of change of position t relative to position p in a time series is defined as follows:

[0142]

[0143] 3. Based on the rate of change η t,p The TC time code is calculated using the selected threshold η0. The calculation method is as follows: for each time point i, for all time points j less than i, compare η in descending order. i,j Is the value greater than the threshold η0? If there exists a time point j such that η i,j If η < 0, then the time code value at position i is ij; if there is no position j less than i such that η < 0, then the time code value at position i is ij. i,j If η < 0, then the time code at position i is 0. Furthermore, to ensure the final matrix length t remains unchanged, when i = 0, the time code TC is 0 to pad the first position. The final time code TC∈R is obtained. t .

[0144]

[0145] Where i and j are array position indices.

[0146] 4. Use a linear layer to map the temporal encoding TC to the same dimension as the feature dimension. After mapping, TC∈R t×d .

[0147] 5. Calculate the original Transformer position code PE∈R t×d The calculation formula is as follows:

[0148]

[0149] Where i and j are array position indices.

[0150] 6. Add the time code (TC), position code (PE), and embedded CFR signal to obtain the final enc_input data. The final enc_input ∈ R t×d The formula is as follows:

[0151] enc_input = CFR + PE + TC;

[0152] Step 4: Input the enc_input data into the Informer encoder to extract features;

[0153] Step 4.1: The features input to the encoder will pass through a module consisting of a multi-head ProbSparse self-attention layer and a one-dimensional convolutional layer to learn the weights, and then pass through a maximization layer to reduce the dimensionality.

[0154] Step 4.2: Repeat step 4.1 twice to obtain the encoder output enc_out∈R. l×d (l is the feature length of the encoder output, and d is the feature dimension).

[0155] Step 5: Input the encoder output and the data to be predicted into the decoder for decoding;

[0156] Step 5.1: Predicting data from a known set of data (CFR) k ∈R k×m (k is the known sequence length) and a segment of zero data that needs to be predicted (CFR) u ∈0 u×m (where u is the length of the sequence to be predicted) This signal is concatenated and embedded in step 3, but with only position encoding added, ultimately yielding the decoder input dec_input∈R. (k+u)×d ;

[0157] Step 5.2: The embedded and encoded prediction data will be input into the multi-head ProbSparse self-attention layer, and the intermediate output out∈R (k+u)×d With the encoder output enc_out∈R l×d The inputs are fed together into the cross-attention layer, ultimately yielding the encoder output dec_out∈R. (k+u)×d ;

[0158] Step 6: Input the encoder output into the fully connected layer, and prune the output of the fully connected layer to obtain data with the same dimension as the prediction result, pred∈R. u×m ;

[0159] Step 7: Use the Mean Squared Error (MSE) function as the loss function to calculate the error between the predicted value and the true value, and then perform backpropagation to train the network.

[0160] Step 8: Use the CFR and CSI obtained in the actual scenario as input to the model to predict the channel frequency response information for a future period of time.

[0161] This invention incorporates time information into the model by calculating and encoding the temporal features of the channel state information, thereby taking into account the relative stability of the channel at future moments. This solves the problem of weak temporal information embedding capability in Transformer-type models and improves the accuracy of channel state prediction.

[0162] The present invention also provides an encoding system for a Transformer-type model for channel state information prediction. The encoding system for the Transformer-type model for channel state information prediction can be implemented by executing the process steps of the encoding method for the Transformer-type model for channel state information prediction. That is, those skilled in the art can understand the encoding method for the Transformer-type model for channel state information prediction as a preferred embodiment of the encoding system for the Transformer-type model for channel state information prediction.

[0163] Specifically, an encoding system for a Transformer-type model used for channel state information prediction includes:

[0164] Module M1: Acquires and processes channel state timing data;

[0165] The time-series data includes CSI data and CFR data; the processing includes embedding and encoding.

[0166] Module M2: Inputs the processed data into the encoder to extract features;

[0167] Module M3: Embeds the CFR data to be predicted and adds the positional encoding of the Transformer model; inputs the relevant parameters into the decoder for decoding;

[0168] The parameters include the encoder output and the CFR feature data that needs to be predicted;

[0169] Module M4: Processes the decoder output to predict channel state information;

[0170] Module M5: Uses CFR and CSI data obtained from the actual scenario as input to the model to predict channel frequency response information.

[0171] The module M1 includes the following sub-modules;

[0172] Module M1.1: Splits CFR data into real and imaginary parts and concatenates them into a real matrix.

[0173]

[0174] in, This refers to the real part of the CFR data. For the imaginary part of the CFR data, concat(·) is the concatenation function;

[0175] Module M1.2: Calculates the time code;

[0176] Module M1.3: Enables CFR data to be embedded through convolutional layers, incorporating temporal encoding and positional encoding from the Transformer model.

[0177] The module M4 includes the following sub-modules:

[0178] Module M4.1: Inputs the decoder output into the fully connected layer, prunes the fully connected layer output, and obtains data with the same prediction dimension as the prediction result;

[0179] Module M4.2: Uses the mean squared error function as the loss function to calculate the error between the predicted value and the true value and performs backpropagation to train the network.

[0180] The module M1 includes using CFR data as a signal for the channel state prediction task and using CSI data to calculate time coding.

[0181] Module M1.2 includes the following sub-modules:

[0182] Module M1.2.1: Calculate the differential L1 and L2 norms of the CSI signal CSI∈C t×n The calculated L1 and L2 norms CSIL∈R t :

[0183]

[0184]

[0185] Where t is the length of the time series, n is the frequency, abs(·) calculates the magnitude of the complex number, and i and j are the array position indices;

[0186] Module M1.2.2: Rate of change η of time series at position t relative to position p t,p for:

[0187]

[0188] Module M1.2.3: Using the rate of change η t,p The TC time code is calculated using the selected threshold η0:

[0189]

[0190] Where i and j are array position indices;

[0191] Module M1.2.4: Uses a linear layer to map the temporal encoding TC to the same dimension as the embedded CFR features, so that TC∈R after mapping. t×d ;

[0192] Where d is the dimension after mapping.

[0193] Those skilled in the art will understand that, besides implementing the system and its various devices, modules, and units provided by this invention in the form of purely computer-readable program code, the same functions can be achieved entirely through logical programming of the method steps, making the system and its various devices, modules, and units of this invention function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, the system and its various devices, modules, and units provided by this invention can be considered as a hardware component, and the devices, modules, and units included therein for implementing various functions can also be considered as structures within the hardware component; alternatively, the devices, modules, and units for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.

[0194] In the description of this application, it should be understood that the terms "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.

[0195] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other.

Claims

1. An encoding method for a Transformer-type model used for channel state information prediction, characterized in that, include: Step S1: Acquire and process channel state timing data; The time-series data includes CSI data and CFR data; the processing includes embedding and encoding. Step S2: Input the processed data into the encoder to extract features; Step S3: Embed the CFR data to be predicted and add the position encoding of the Transformer model; Input the relevant parameters into the decoder for decoding; The parameters include the encoder output and the CFR feature data that needs to be predicted; Step S4: Process the decoder output to predict channel state information; Step S5: Use the CFR data and CSI data obtained in the actual scenario as input to the model to predict the channel frequency response information.

2. The encoding method for a Transformer-type model for channel state information prediction according to claim 1, characterized in that, Step S1 includes the following sub-steps; Step S1.1: Split the CFR data into real and imaginary parts and concatenate them into a real matrix: ; in, This refers to the real part of the CFR data. For the imaginary part of the CFR data, concat( ) is the concatenation function; Step S1.2: Calculate the time code; Step S1.3: Embed the CFR data through a convolutional layer, adding temporal encoding and positional encoding from the Transformer model.

3. The encoding method for a Transformer-type model for channel state information prediction according to claim 1, characterized in that, Step S4 includes the following sub-steps: Step S4.1: Input the decoder output into the fully connected layer, and prune the fully connected layer output to obtain data with the same prediction dimension as the prediction result; Step S4.2: Use the mean squared error function as the loss function to calculate the error between the predicted value and the true value, and perform backpropagation to train the network.

4. The encoding method for a Transformer-type model for channel state information prediction according to claim 2, characterized in that, Step S1 includes using CFR data as a signal for the channel state prediction task and using CSI data to calculate time coding.

5. The encoding method for a Transformer-type model for channel state information prediction according to claim 2, characterized in that, Step S1.2 includes the following sub-steps: Step S1.2.1: Calculate the differential L1 and L2 norms of the CSI signal. Let the CSI signal be... The calculated L1 and L2 norms : ; ; Where t is the length of the time series, n is the frequency, and abs( () refers to calculating the magnitude of a complex number, where i and j are array position indices; Step S1.2.2: Rate of change of position k relative to position p in the time series for: ; Step S1.2.3: Use the rate of change and the selected threshold The TC time code is calculated as follows: ; Where i and j are array position indices; Step S1.2.4: Use a linear layer to map the temporal encoding TC to the same dimension as the embedded CFR features. After mapping... ; Where d is the dimension after mapping.

6. A coding system for a Transformer-type model used for channel state information prediction, characterized in that, include: Module M1: Acquires and processes channel state timing data; The time-series data includes CSI data and CFR data; the processing includes embedding and encoding. Module M2: Inputs the processed data into the encoder to extract features; Module M3: Embeds the CFR data to be predicted and adds the positional encoding of the Transformer model; inputs the relevant parameters into the decoder for decoding; The parameters include the encoder output and the CFR feature data that needs to be predicted; Module M4: Processes the decoder output to predict channel state information; Module M5: Uses CFR and CSI data obtained from the actual scenario as input to the model to predict channel frequency response information.

7. The coding system for a Transformer-type model for channel state information prediction according to claim 6, characterized in that, Module M1 includes the following sub-modules; Module M1.1: Splits CFR data into real and imaginary parts and concatenates them into a real matrix. ; in, This refers to the real part of the CFR data. For the imaginary part of the CFR data, concat( ) is the concatenation function; Module M1.2: Calculates the time code; Module M1.3: Enables CFR data to be embedded through convolutional layers, incorporating temporal encoding and positional encoding from the Transformer model.

8. The coding system for a Transformer-type model for channel state information prediction according to claim 6, characterized in that, The module M4 includes the following sub-modules: Module M4.1: Inputs the decoder output into the fully connected layer, prunes the fully connected layer output, and obtains data with the same prediction dimension as the prediction result; Module M4.2: Uses the mean squared error function as the loss function to calculate the error between the predicted value and the true value and performs backpropagation to train the network.

9. The coding system for a Transformer-type model for channel state information prediction according to claim 7, characterized in that, The module M1 includes using CFR data as a signal for the channel state prediction task and using CSI data to calculate time coding.

10. The coding system for a Transformer-type model for channel state information prediction according to claim 7, characterized in that, Module M1.2 includes the following sub-modules: Module M1.2.1: Calculate the differential L1 and L2 norms of the CSI signal, assuming the CSI signal is... The calculated L1 and L2 norms : ; ; Where t is the length of the time series, n is the frequency, and abs( () refers to calculating the magnitude of a complex number, where i and j are array position indices; Module M1.2.2: Rate of change of position k relative to position p in a time series for: ; Module M1.2.3: Using the rate of change and the selected threshold The TC time code is calculated as follows: ; Where i and j are array position indices; Module M1.2.4: Uses a linear layer to map the temporal encoding (TC) to the same dimension as the embedded CFR features. ; Where d is the dimension after mapping.

Citation Information

Patent Citations

  • Channel state information processing method and device

    CN117674926A

  • Gesture recognition method and system based on BVP and WiTransform by using WiFi

    CN115393955A

  • Non-Intrusive Load Decomposition Method Based on Informer Model Coding Structure

    US20220397874A1