A construction of a sorting coding module, a channel generation method and system of a variational autoencoder
Through the channel generation method of the sorting coding module and variational autoencoder, the channel data processing in the wireless communication system is optimized, the problem of high channel data generation cost and poor quality is solved, and efficient, close to real channel data generation effect is achieved.
Patent Information
- Application Number
- CN202211046197.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-30
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-08-30
AI Technical Summary
The cost of generating channel data in existing wireless communication systems is high or the quality of the generated channel data is poor. Most solutions on the market fail to optimize the characteristics of the channel data, resulting in unsatisfactory generation results.
The channel generation method of the sorting coding module and variational autoencoder is used to generate hidden vectors by flattening, standard deviation calculation, reverse order and dimensionality reduction of the channel state information, and using the neural network to process the delay expansion information and optimize the channel data The storage and generation process improves the model generation effect.
By optimizing the processing and generation process of channel data, the distribution space of hidden vectors is reduced, the generation effect of the model is improved, and the diversity is improved under the same similarity, or the similarity is improved under the same diversity. The generated channel data is close to the real channel data.
Smart Images

Figure CN115426063B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communication technology, and more specifically, to a construction of a sorting coding module and a channel generation method and system of a variational autoencoder. Background Art
[0002] The design and performance evaluation of wireless communication systems require a large amount of real or nearly real channel data. There are usually three sources for obtaining channel data: one is field measurement. The channel data obtained by field measurement is real channel data with the highest data quality and the most value, but it requires multiple field measurements, which is too costly. The second is rule generation. By presetting some typical scenarios, the channel data of these typical scenarios are generated by artificial rules. Because artificial rules can only grasp the general direction of each typical scenario, and cannot cover the details and cannot be comprehensive, the channel data generated by this variance often has a certain gap with the real channel data, that is, the generated channel data is not realistic enough and has poor quality. The third is generation through neural networks. This solution generally requires channel data measured in several real scenarios as a training set, and then uses a generative adversarial network (GAN) or a variational autoencoder (VAE) for training, and then uses the trained model to generate channel data. This solution is cost-controllable, and the generated channel data is usually closer to the real channel. However, most of the solutions on the market simply apply the general modeling schemes of GAN and VAE, without optimizing the characteristics of channel data, and fail to achieve the most ideal results. Summary of the invention
[0003] The present invention aims to overcome at least one of the shortcomings of the above-mentioned prior art and provide a method and system for constructing a sorting coding module and generating a channel of a variational autoencoder to improve the effect of model generation.
[0004] According to one aspect of the present invention, a method for constructing a sorting coding module is provided. The method for constructing the sorting coding module comprises the following steps:
[0005] S1. Flatten the last two orders of the obtained channel state information tensor T to form a tensor L, wherein the shape of the tensor T is [t, r, s], wherein t is the delay spread number, r is the number of receiving antennas, s is the number of transmitting antennas, and the tensor T = R + I * i, wherein the tensor R represents the real part of the tensor T, and the tensor I represents the imaginary part of the tensor T, then the shape of the tensor L is [t, r * s];
[0006] S2. Extract the real part of the tensor L to form the real part matrix R r , extract the imaginary part of the tensor L to form the imaginary part matrix I i , R r with I iConcatenate at the last level to get the matrix X, the shape of which is [t, r*s*2];
[0007] S3. Process X to generate a matrix M, the shape of which is [t,h], where h is a manually set dimension size;
[0008] S4. Calculate a standard deviation for each row in the matrix X and get the vector in, std is the standard deviation calculation function, i: represents the i-th row in the matrix X;
[0009] S5. Reverse the row vectors of the matrix M to obtain a matrix M_RANKED, the shape of the matrix M_RANKED is [t, h];
[0010] S6. Reduce the dimension of the first β rows of the matrix M_RANKED to form a vector
[0011] S7. Pair vector Perform quantization to generate latent vector
[0012] Since the importance of each delay extension of the channel data is different (reflected in the large difference in the standard deviation of each delay extension, a few delay extensions have large standard deviations, and most delay extensions have very small standard deviations). Based on this feature, the present invention proposes sorting coding, which has two main highlights: first, according to the size of the standard deviation, important delay extensions are retained and most useless delay extensions are eliminated, which greatly improves the compression effect of the coding module, so that most of the information of the channel data can be stored with a low-dimensional latent vector, so that the model can achieve better generation effects with fewer samples; second, according to the importance of the delay extension, its storage space in the latent vector is allocated. The more important the delay extension, the larger the storage space is allocated, which improves the efficiency of the use of the storage space and reduces the value space of the latent variable, so that the model can also achieve better generation effects with fewer samples.
[0013] In step S3., a neural network is used to process X to generate a matrix M, which is specifically:
[0014] Use a trainable fully connected layer to reduce the dimension of matrix X from r*s*2 to h dimensions, and get matrix X x ;
[0015] Randomly initialize the trainable position matrix P, the shape of P is [t,h];
[0016] The matrix X x Add it to the matrix P and input it into the neural network to generate the matrix M.
[0017] Following the approach of using attention mechanism to process natural language, the number of delay extensions in X is regarded as the length of text, and a neural network is used to process the data, so that the information of each delay extension can fully interact.
[0018] In step S5., the row vectors of M are reversed, specifically:
[0019] Set the corresponding relationship between the row vectors of the matrix M and the elements of σ. The specific corresponding relationship is: any i-th row vector M i: and The i-th element of There is a one-to-one correspondence;
[0020] Reorder the row vectors of M in reverse order of the elements of σ.
[0021] The corresponding relationship is established between the row vectors of the matrix M and the elements of σ, and then the matrix M is sorted in descending order according to the corresponding relationship. Generally speaking, for a vector, the larger its standard deviation is, the more information it contains, that is, the more important it is, and the more it cannot be discarded. Descending the row vectors in the matrix M by the size of the standard deviation makes the important row vectors come first and the unimportant ones come last in the sorted matrix. It is convenient to discard unimportant row vectors by directly retaining the first β.
[0022] In step S6., the first β rows of the M_RANKED matrix are reduced in dimension, specifically:
[0023] Construct β neural networks;
[0024] Reduce the dimensions of the first β rows of the matrix M_RANKED to α 1 ,α 2 ,α 3 ,…,α β dimension;
[0025] Concatenate the reduced outputs to form a vector
[0026] Remember the vector The dimension is d, Among them, α 1 ,α 2 ,α 3 ,…,α β is a set hyperparameter.
[0027] The storage space of the latent vector is allocated according to the importance of the delay spread, typically The elements of M_RANKED are arranged from large to small, so only the first β delay spreads with the largest standard deviation can be retained to retain most of the channel information. Therefore, the present invention only retains the first β rows of the M_RANKED matrix.
[0028] According to another aspect of the present invention, a method for generating a channel of a variational autoencoder is provided. The method for generating a channel of a variational autoencoder comprises the following steps:
[0029] F1. Preset channel training data set;
[0030] F2. Create a channel autoencoder, the channel autoencoder comprising a sorting encoding module and a decoding module;
[0031] F3. Training the channel prediction model based on a preset channel training data set;
[0032] F4. Generate channel data based on a preset channel training data set and a decoding module.
[0033] Based on the existing data (training set), data similar to the existing training set is generated. The evaluation criteria are diversity (the generated data is very different) and similarity (the generated data is close to the training set data). These two goals are conflicting. The present invention uses various technical means to improve similarity under the same diversity, or to improve diversity under the same similarity.
[0034] The construction of the decoding module in step F2 is specifically as follows:
[0035] The latent vector generated by the sorting encoding module Divided into β fragments;
[0036] Traverse β fragments, increase their dimensions to d dimensions, and obtain β vectors;
[0037] Stack the β vectors to form a stacking matrix B with a shape of [β,h];
[0038] Random Initialization Vector The vector is a trainable filling vector of dimension h;
[0039] After stacking the matrix B, fill the t-β rows to get a matrix of shape [t,h]
[0040] Based on standard deviation right Perform position restoration and obtain the matrix The shape is [t,h];
[0041] Using neural network to train matrix Process and generate matrix matrix The shape is [t,r*s*2].
[0042] Neural networks have many parameters that need to be trained, and initialization is to give these parameters a random value.
[0043] The step F3. training the channel prediction model based on a preset channel training data set is specifically as follows:
[0044] The channel prediction model is trained until the loss function value converges, and the loss function value is specifically calculated as:
[0045] Loss function value The i-th input is X i , the corresponding output is There are n samples in total, among which, [m,n] is the shape of A and B.
[0046] Whether the channel prediction model converges is determined by whether the loss function tends to be stable.
[0047] The step F4. generating channel data based on the preset channel training data set and decoding module is specifically as follows:
[0048] Randomly call the standard deviation vector obtained from the preset channel training data set And the hidden vector
[0049] Call the trained decoding module to generate the matrix Its shape is [t,r*s*2];
[0050] Pair Matrix Transform it to [t,2,r*s], and the tensor obtained by deformation is recorded as The generated real matrix is recorded as The generated imaginary matrix is recorded as
[0051] Generate complex matrix The shape is [t,r*s];
[0052] right Transform into a tensor The shape is [t, r, s];
[0053] Output Tensor The tensor is the final generated channel data.
[0054] The decoding module receives two inputs, one is the latent vector and the other is the standard deviation vector. The latent vector is randomly generated, and the standard deviation vector needs to be obtained from the training set. In the generation process, the training set plays a role in providing the standard deviation vector. Since the standard deviation vector is also randomly sampled, both inputs of the decoder are random.
[0055] The randomly generated latent vector Specifically:
[0056] Sampling d times from the standard Bernoulli distribution, the resulting d 0 or 1 numbers form the latent vector
[0057] The Bernoulli distribution is chosen because the distribution of latent vectors is close to the Bernoulli distribution during training. The use of neural networks generally tries to ensure that the distribution of network inputs is close during training and application.
[0058] According to another aspect of the present invention, a system for constructing a sorting coding module is provided. The system for constructing a sorting coding module comprises:
[0059] A channel state information processing module is used to flatten the last two orders of the obtained channel state information tensor T to form a tensor L, wherein the shape of the tensor T is [t, r, s], wherein t is the delay spread number, r is the number of receiving antennas, s is the number of transmitting antennas, and the tensor T = R + I * i, wherein the tensor R represents the real part of the tensor T, and the tensor I represents the imaginary part of the tensor T, then the shape of the tensor L is [t, r * s]; extract the real part of the tensor L to form a real part matrix R r , extract the imaginary part of the tensor L to form the imaginary part matrix I i , R r with I i At the last level, concatenate to get matrix X, the shape of which is [t, r*s*2]; process X to generate matrix M, the shape of which is [t, h], where h is the dimension size set manually;
[0060] The standard deviation calculation module is used to calculate a standard deviation for each row in the matrix X and obtain the vector in, std is the standard deviation calculation function, i: represents the i-th row in the matrix X;
[0061] The reversal module is used to reverse the row vectors of the matrix M to obtain the matrix M_RANKED. The shape of the matrix M_RANKED is [t, h].
[0062] Compared with the prior art, the present invention has the following beneficial effects:
[0063] The trained model is used to generate channel data. This solution has controllable cost and the generated channel data is usually closer to the real channel. The present invention optimizes the characteristics of the channel data to achieve the most ideal effect.
[0064] For the quality of data generation models, similarity and diversity are generally considered comprehensively. Similarity means that the generated data should be similar to the training data; diversity means that the generated data should be as dissimilar as possible. Generally speaking, these two indicators are conflicting. High similarity is often prone to low diversity, and similarly, high diversity is often prone to low similarity. The present invention achieves the purpose of reducing the distribution space of latent vectors through quantization, sorting compression, and allocating storage space size according to the importance of delay expansion, so that the latent vector randomly generated during generation is closer to the latent vector obtained through the training set, thereby improving the generation effect of the model. Under the condition of equal similarity, there is a higher diversity. Under the condition of equal diversity, there is a higher similarity. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 The present invention is a flowchart of a method for constructing a sorting coding module.
[0066] Figure 2 The present invention is a flow chart of a channel generation method of a variational autoencoder.
[0067] Figure 3 A diagram of a system for constructing a sorting encoding module of the present invention. DETAILED DESCRIPTION
[0068] The technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all the embodiments. Based on the embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.
[0069] Example 1
[0070] like Figure 1 As shown, according to an embodiment of the present invention, a method for constructing a sorting coding module is provided. The method for constructing the sorting coding module comprises the following steps:
[0071] S1. Flatten the last two orders of the obtained channel state information tensor T to form a tensor L, wherein the shape of the tensor T is [t, r, s], wherein t is the delay spread number, r is the number of receiving antennas, s is the number of transmitting antennas, and the tensor T = R + I * i, wherein the tensor R represents the real part of the tensor T, and the tensor I represents the imaginary part of the tensor T, then the shape of the tensor L is [t, r * s];
[0072] S2. Extract the real part of the tensor L to form the real part matrix R r , extract the imaginary part of the tensor L to form the imaginary part matrix I i , R r with I i Concatenate at the last level to get the matrix X, the shape of which is [t, r*s*2];
[0073] S3. Process X to generate a matrix M, the shape of which is [t,h], where h is a manually set dimension size;
[0074] S4. Calculate a standard deviation for each row in the matrix X and get the vector in, std is the standard deviation calculation function, i: represents the i-th row in the matrix X;
[0075] S5. Reverse the row vectors of the matrix M to obtain a matrix M_RANKED, the shape of the matrix M_RANKED is [t, h];
[0076] S6. Reduce the dimension of the first β rows of the matrix M_RANKED to form a vector
[0077] S7. Pair vector Perform quantization to generate latent vector
[0078] Specifically, the latent vector is obtained by sorting the encoding module and the standard deviation vector
[0079] In step S3., a neural network is used to process X to generate a matrix M, which is specifically:
[0080] Use a trainable fully connected layer to reduce the dimension of matrix X from r*s*2 to h dimensions to obtain matrix Xx;
[0081] Randomly initialize the trainable position matrix P, the shape of P is [t,h];
[0082] Add the matrix Xx to the matrix P and input it into the neural network to generate the matrix M.
[0083] Specifically, the neural network used is a multi-layer attention layer, the dimension of the matrix X is reduced from 4*32*2 to 128 dimensions, and the shape of the randomly initialized trainable position matrix P is [32,128]; the randomly initialized trainable position matrix P means randomly constructing some values for the matrix P.
[0084] In step S5., the row vectors of M are reversed, specifically:
[0085] Set the correspondence between the row vectors of the matrix M and the elements of σ, and reorder the row vectors of M in the reverse order of the elements of σ.
[0086] The specific corresponding relationship is: any i-th row vector M i: and The i-th element of Have a one-to-one correspondence.
[0087] In step S6., the first β rows of the M_RANKED matrix are reduced in dimension, specifically:
[0088] Construct β neural networks;
[0089] Reduce the dimensions of the first β rows of the matrix M_RANKED to α 1 ,α 2 ,α 3 ,…,α β dimension;
[0090] Concatenate the reduced outputs to form a vector
[0091] Remember the vector The dimension is d, Among them, α 1 ,α 2 ,α 3 ,…,α β is a set hyperparameter.
[0092] The neural network is a trainable fully connected layer. Specifically, there is generally α 1 >α 2 >α 3 >…>α β Initialize 4 trainable fully connected layers and reduce the dimensions of the first 4 rows of the M_RANKED matrix to 35, 32, 28, and 25 dimensions respectively. Then concatenate the reduced outputs to form a vector Remember the vector The dimension is d, obviously d=35+32+28+25=120.
[0093] Example 2
[0094] like Figure 2 As shown, according to an embodiment of the present invention, a channel generation method of a variational autoencoder is provided. The channel generation method of the variational autoencoder comprises the following steps:
[0095] F1. Preset channel training data set;
[0096] F2. Create a channel prediction model, the channel prediction model includes a sorting encoding module and a decoding module;
[0097] F3. Training the channel prediction model based on a preset channel training data set;
[0098] F4. Generate channel data based on a preset channel training data set and a decoding module.
[0099] Specifically, the decoding module corresponds to the sorting and encoding module, and the decoding module is used to decode the data encoded by the sorting and encoding module.
[0100] The construction of the decoding module in step F2 is specifically as follows:
[0101] The latent vector generated by the sorting encoding module Divided into β fragments;
[0102] Traverse β fragments, increase their dimensions to d dimensions, and obtain β vectors;
[0103] Stack the β vectors to form a stacking matrix B with a shape of [β,h];
[0104] Random Initialization Vector The vector is a trainable filling vector of dimension h;
[0105] After stacking the matrix B, fill the t-β rows to get a matrix of shape [t,h]
[0106] Based on standard deviation right Perform position restoration and obtain the matrix The shape is [t,h];
[0107] Using neural network to train matrix Process and generate matrix matrix The shape is [t,r*s*2].
[0108] Specifically, the β fragments are dimensioned up to d dimensions by randomly initializing a fully connected layer for each of the β fragments, and using this fully connected layer to increase the β fragments to d dimensions.
[0109] The step F3. training the channel prediction model based on a preset channel training data set is specifically as follows:
[0110] The channel prediction model is trained until the loss function value converges, and the loss function value is specifically calculated as:
[0111] Loss function value The i-th input is X i , the corresponding output is There are n samples in total, among which, [m,n] is the shape of A and B.
[0112] Specifically, iterate until the loss function value loss no longer decreases.
[0113] The step F4. generating channel data based on the preset channel training data set and decoding module is specifically as follows:
[0114] Randomly call the standard deviation vector obtained from the preset channel training data set And the hidden vector
[0115] Call the trained decoding module to generate the matrix Its shape is [t,r*s*2];
[0116] Pair Matrix Transform it to [t,2,r*s], and the tensor obtained by deformation is recorded as The generated real matrix is recorded as The generated imaginary matrix is recorded as
[0117] Generate complex matrix The shape is [t,r*s];
[0118] right Transform into a tensor The shape is [t, r, s];
[0119] Output Tensor The tensor is the final generated channel data.
[0120] Following the approach of using attention mechanism to process natural language, the number of rows in M is regarded as the length of text, and multiple layers of attention are used to process the data, so that the information of row vectors can be equally divided and interacted.
[0121] The randomly generated latent vector Specifically:
[0122] Sampling d times from the standard Bernoulli distribution, the resulting d 0 or 1 numbers form the latent vector
[0123] Use standard Bernoulli distribution to randomly generate latent vectors
[0124] Example 3
[0125] like Figure 3 According to another aspect of the present invention, a system for constructing a sorting coding module is provided. The system for constructing a sorting coding module includes:
[0126] The channel state information processing module 310 is used to flatten the last two orders of the obtained channel state information tensor T to form a tensor L, wherein the shape of the tensor T is [t, r, s], wherein t is the delay spread number, r is the number of receiving antennas, s is the number of transmitting antennas, and the tensor T = R + I * i, wherein the tensor R represents the real part of the tensor T, and the tensor I represents the imaginary part of the tensor T, then the shape of the tensor L is [t, r * s]; extract the real part of the tensor L to form a real part matrix R r , extract the imaginary part of the tensor L to form the imaginary part matrix I i , R r with I i At the last level, concatenate to get matrix X, the shape of which is [t, r*s*2]; process X to generate matrix M, the shape of which is [t, h], where h is the dimension size set manually;
[0127] The standard deviation calculation module 320 is used to calculate a standard deviation for each row in the matrix X to obtain a vector in, std is the standard deviation calculation function, i: represents the i-th row in the matrix X;
[0128] A reversing module 330 is used to reverse the row vectors of the matrix M to obtain a matrix M_RANKED, and the shape of the matrix M_RANKED is [t, h];
[0129] Example 4
[0130] 4000 examples of channel data from actual scenarios are collected. For each example of data, the number of receiving antennas r is 4, the number of transmitting antennas s is 32, and the number of delay spreads t is 32, that is, the shape of each example of data is [32,4,32].
[0131] The last two orders of the input channel state information tensor are flattened, that is, the shape of the channel state information tensor is flattened from [32, 4, 32] to [32, 4*32], and then the real part is extracted to form the real matrix R, and the imaginary part is extracted to form the imaginary matrix I. R and I are concatenated at the last order to obtain the final matrix X. Obviously, the shape of X is [32, 4*32*2].
[0132] Using a method for constructing a sorting encoding module in Example 1, following the scheme of using an attention mechanism to process natural language, the number of delay extensions in X is regarded as the text length, and the data is processed using a multi-layer attention layer. The specific scheme is as follows:
[0133] Use a trainable fully connected layer to reduce the dimension of matrix X from 4*32*2 to 128 dimensions;
[0134] Initialize the trainable position matrix P, the shape of P is [32,128]. The P matrix is used to make the multi-layer attention layer aware of the position information.
[0135] The reduced X matrix is added to the P matrix and then input into the multi-layer attention layer. The generated output is recorded as M, and the shape of M is [32,128].
[0136] Traverse each row of matrix X, calculate a standard deviation for each row, and get a vector after traversing Obviously Where std is the standard deviation calculation function.
[0137] Reverse the order of the row vectors of M. First, set the correspondence between the row vectors of M and the elements of σ, and set any i-th row vector M i: and The i-th element of There is a one-to-one correspondence. Then the row vectors of M are reordered in the reverse order of the σ elements to obtain the M_RANKED matrix. Obviously, the shape of the M_RANKED matrix is also [t, h].
[0138] Only the first four delay spreads with the largest standard deviation are retained, that is, only the first four rows of the M_RANKED matrix are retained.
[0139] Initialize 4 trainable fully connected modules and reduce the dimensions of the first 4 rows of the M_RANKED matrix to 35, 32, 28, and 25 dimensions respectively. Then concatenate the reduced outputs to form a vector Remember the vector The dimension is d, obviously d=35+32+28+25=120.
[0140] For each matrix X, a vector can be calculated During training, we use the vector As The estimate of the mean of The update method is:
[0141] Generate latent vector Its dimension is 120 and is Has the following relationship:
[0142]
[0143] Output latent vector and standard deviation
[0144] Corresponding to the 4 fully connected modules of the sorting encoding module, the decoding module also has 4 fully connected modules for inverse transformation. Segment it into 4 segments according to 35, 32, 28, and 25, traverse these segments, and use the corresponding fully connected layers to convert their dimensions to 128 dimensions. After traversing, you can get 4 128-dimensional vectors. Stack these 4 vectors to form a stacking matrix with a shape of [4,128], and then initialize a trainable filling vector with a dimension of 128 After stacking the matrices, we fill 28 rows to get a matrix with a shape of [32,128], which is recorded as
[0145] Based on standard deviation Perform position restoration. In the sorting encoding module, according to the standard deviation Reorder the row vectors of the matrix M. Here, we want to perform the opposite operation, according to the standard deviation right Perform position restoration and obtain the matrix Obviously its shape is also [32,128].
[0146] Following the scheme of using attention mechanism to process natural language, the number of rows in M is regarded as the length of text, and multiple layers of attention are used to process the data so that the information of row vectors is equally divided and interacted. The generated output is recorded as The shape is [32,4*32*2].
[0147] Calculate the loss: the i-th sample is X i , the corresponding output is Then the loss function value
[0148] Train the model until the loss converges
[0149] Construct a set of standard deviation vectors: Traverse the 4000 samples in the training set, process each sample in the training set with the input module and then with the sorting and encoding module, and you can get the standard deviation vector corresponding to each sample After the traversal is completed, all the generated standard deviation vectors constitute a standard deviation vector set, and the set size is 4000.
[0150] Randomly generate a standard deviation vector: randomly sample from the standard deviation vector set to obtain a standard deviation vector
[0151] Randomly generate hidden vectors: Sampling d times from the standard Bernoulli distribution, the resulting d 0 or 1 numbers constitute the hidden vector
[0152] Call the decoding module: according to the standard deviation vector obtained in the previous two steps And the hidden vector Call the trained decoding module to generate output Its shape is [32,4*32*2].
[0153] Output post-processing: Transform it to [32,2,4*32], and the tensor obtained by deformation is recorded as The generated real matrix is recorded as The generated imaginary matrix is recorded as Generate complex matrix The shape of is [32,4*32]. Transform and generate a tensor of shape [32,4,32], denoted as is the final generated channel data.
[0154] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the technical solution of the present invention, and are not intended to limit the specific implementation methods of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the claims of the present invention shall be included in the protection scope of the claims of the present invention.
Claims
1. A method for constructing a sorting coding module, characterized in that: The steps include: S1. Flatten the last two orders of the obtained channel state information tensor T to form a tensor L, wherein the shape of the tensor T is [t, r, s], wherein t is the delay spread number, r is the number of receiving antennas, s is the number of transmitting antennas, and the tensor T=R+I*i, wherein the tensor R represents the real part of the tensor T, and the tensor I represents the imaginary part of the tensor T, then the shape of the tensor L is [t, r*s]; S2. Extract the real part of the tensor L to form the real part matrix R r , extract the imaginary part of the tensor L to form the imaginary part matrix I i , R r with I i Concatenate at the last level to get the matrix X, the shape of which is [t, r*s*2]; S3. Process X to generate a matrix M, the shape of which is [t, h], where h is a dimension set manually; S4. Calculate a standard deviation for each row in the matrix X and get the standard deviation vector in, std is the standard deviation calculation function, i: represents the i-th row in the matrix X; S5. Reverse the row vectors of the matrix M to obtain a matrix M_RANKED, where the shape of the matrix M_RANKED is [t, h]; S6. Reduce the dimension of the first β rows of the matrix M_RANKED to form a vector S7. Vector Perform quantization to generate latent vector In step S3., a neural network is used to process X to generate a matrix M, which is specifically: Use a trainable fully connected layer to reduce the dimension of matrix X from r*s*2 to h dimensions, and get matrix X x ; Randomly initialize the trainable position matrix P, the shape of P is [t, h]; The matrix X x Add it to the matrix P, input it into the neural network, and generate the matrix M; In step S5., the row vectors of M are reversed, specifically: Set the row vectors of matrix M to The element correspondence relationship is as follows: any i-th row vector M i: and The i-th element of There is a one-to-one correspondence; Reorder the row vectors of M in reverse order of the elements of σ; In step S6., the first β rows of the M_RANKED matrix are reduced in dimension, specifically: Construct β neural networks; Reduce the dimensions of the first β rows of the matrix M_RANKED to α1, α2, α3, ..., α β dimension; Concatenate the reduced outputs to form a vector Remember the vector The dimension is d, Among them, α1, α2, α3,..., α β is a set hyperparameter.
2. A channel generation method for a variational autoencoder, characterized in that: The steps include: F1. Preset channel training data set; F2. Create a channel prediction model, the channel prediction model comprises a sorting coding module and a decoding module, the sorting coding module is obtained by the method for constructing a sorting coding module according to claim 1; F3. Training the channel prediction model based on a preset channel training data set; F4. Generate channel data based on a preset channel training data set and a decoding module; The construction of the decoding module in step F2 is specifically as follows: The latent vector generated by the sorting encoding module Divided into β fragments; Traverse β fragments, increase their dimensions to d dimensions, and obtain β vectors; Stack β vectors to form a stacking matrix B with a shape of [β, h]; Random Initialization Vector The vector is a trainable filling vector of dimension h; After stacking the matrix B, fill the t-β rows to get a matrix of shape [t, h] According to the standard deviation vector right Perform position restoration and obtain the matrix The shape is [t, h], the standard deviation vector Obtained in the method for constructing a sorting coding module as described in claim 1; Using neural network to train matrix Process and generate matrix matrix The shape is [t, r*s*2]; The step F4. generating channel data based on the preset channel training data set and decoding module is specifically as follows: Randomly call the standard deviation vector obtained from the preset channel training data set And the hidden vector Call the trained decoding module to generate the matrix Its shape is [t, r*s*2]; Pair Matrix Transform it so that its shape becomes [t, 2, r*s], and the tensor obtained by deformation is recorded as The generated real matrix is recorded as The generated imaginary matrix is recorded as in, is the first column of the deformed tensor, is the second column of the tensor obtained by deformation; Generate complex matrix The shape is [t, r*s]; right Transform into a tensor The shape is [t, r, s]; Output Tensor The tensor The final generated channel data.
3. The channel generation method of a variational autoencoder according to claim 2, characterized in that: The step F3. training the channel prediction model based on a preset channel training data set is specifically as follows: The channel prediction model is trained until the loss function value converges, and the loss function value is specifically calculated as: Loss function value The i-th input is X i , the corresponding output is There are n samples in total, among which, [m, n] is the shape of A and B; Among them, X i is the ith input, is the output corresponding to the i-th input, m is the shape of matrix A, A ij is the element in the i-th row and j-th column of matrix A, B ij is the element in the i-th row and j-th column of matrix B.
4. The channel generation method of a variational autoencoder according to claim 2, characterized in that: Randomly generate latent vectors Specifically: Sampling d times from the standard Bernoulli distribution, the resulting d 0 or 1 numbers form the latent vector 5. A system for constructing a sorting coding module according to the method for constructing a sorting coding module as claimed in claim 1, characterized in that: Also includes: A channel state information processing module is used to flatten the last two orders of the obtained channel state information tensor T to form a tensor L, wherein the shape of the tensor T is [t, r, s], wherein t is the delay spread number, r is the number of receiving antennas, s is the number of transmitting antennas, and the tensor T=R+I*i, wherein the tensor R represents the real part of the tensor T, and the tensor I represents the imaginary part of the tensor T, then the shape of the tensor L is [t, r*s]; extract the real part of the tensor L to form a real part matrix R r , extract the imaginary part of the tensor L to form the imaginary part matrix I i , R r with I i At the last level, concatenate to get matrix X, the shape of which is [t, r*s*2]; process X to generate matrix M, the shape of which is [t, h], where h is the dimension size set manually; The standard deviation calculation module is used to calculate a standard deviation for each row in the matrix X and obtain the standard deviation vector in, std is the standard deviation calculation function, i: represents the i-th row in the matrix X; The reversal module is used to reverse the row vectors of the matrix M to obtain the matrix M_RANKED. The shape of the matrix M_RANKED is [t, h]. Dimensionality reduction module, used to reduce the dimension of the first β rows of the matrix M_RANKED to form a vector Hidden vector generation module, used to vector Perform quantization to generate latent vector
Citation Information
Patent Citations
Explicit channel information feedback based on high-order PCA decomposition or PCA composition
CN112514334A
Millimeter wave system channel feedback method based on tensor parallel compression
CN112600596A
Channel prediction method utilizing spatial characteristics of broadband large-scale antenna array
CN113067652A
Data-assisted time-varying channel estimation method based on tensor decomposition
CN114785641A
Method of constructing check matrix for LDPC code, and encoding and decoding device of using the method
CN1960190A
