Multi-scene channel modeling method and system based on self-attention and adversarial network

Through a multi-scenario channel modeling method based on self-attention and adversarial networks, using the self-attention mechanism and feed-forward network of the Transformer module, the problem of the inability of existing technology to accurately capture the complexity of multi-scenario channels is solved, and the channel parameters are realized. Highly consistent generation and multi-scenario adaptability.

CN118713778APending Publication Date: 2024-09-27SHANDONG NORMAL UNIV
View PDF 0 Cites 10 Cited by

Patent Information

Application Number
CN202410991205.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing deep learning channel modeling methods cannot accurately capture the complexity of multi-scenario channels, especially at the multipath level. They cannot generate multipath parameters that are highly consistent with the real channel distribution, and are mostly limited to single-scenario channel modeling. Adapt to changes in different scenarios.

Method used

A multi-scene channel modeling method based on self-attention and adversarial networks is adopted. By obtaining random vectors and scene labels, position encoding and filling mask processing of the latent space matrix are performed, and the self-attention mechanism and feed-forward network generation of the Transformer module are used. Channel parameters dynamically allocate attention weights to adapt to changes in multipath parameters in different scenarios.

Benefits of technology

It achieves accurate capture of the spatial and time domain characteristics of the channel, and the generated channel parameters are consistent with the real channel parameter distribution. It supports multi-scenario channel generation, overcomes the limitations of the traditional model, and can effectively adapt to multi-scenario data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713778A
    Figure CN118713778A
Patent Text Reader

Abstract

The invention relates to the technical field of wireless communication, and provides a multi-scene channel modeling method and system based on a self-attention and adversarial network, and the method comprises the steps: obtaining a random vector and a scene label of a to-be-generated channel parameter, carrying out the connection and conversion of the random vector and a scene label vector after the label embedding operation, and obtaining a potential space matrix; performing position coding on the potential space matrix; according to the multipath number in the scene, performing zero filling processing on the parameter sequence under the corresponding scene label, filling the parameter sequence to the length corresponding to the maximum value of the multipath number in all scenes, and generating a filling mask matrix; and inputting the position-coded matrix and the filling mask matrix into a conditional generative adversarial network model based on a self-attention mechanism to generate channel parameters. The model disclosed by the invention can generate complete channel multipath component parameter samples of multiple scenes, and has high consistency with real channel distribution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field related to wireless communications, and more specifically, to a multi-scenario channel modeling method and system based on self-attention and adversarial networks. Background Art

[0002] The statements in this section merely provide background information related to the present disclosure and do not necessarily constitute prior art.

[0003] The channel model is a mathematical model used to describe the various influences and changes that wireless communication signals are subject to during transmission. In wireless communication, the signal is affected by various factors such as path loss, shadow fading, multipath effect, delay spread, and angle spread during transmission from the transmitter to the receiver, all of which will cause changes in signal characteristics. By modeling and analyzing these influencing factors, the channel model can simulate the propagation characteristics of the signal in the actual transmission environment, and can be used for the research and development testing of wireless communication technology and the performance evaluation of wireless communication systems. The accuracy and effectiveness of the channel model are crucial to the development of next-generation communication systems.

[0004] However, with the rapid changes in terminal mobility, increased bandwidth, diversified transmission scenarios, and different system configurations, traditional channel modeling methods cannot accurately obtain channel characteristics under specific scenarios and system configurations, and the complexity of channel models has increased significantly. In recent years, the development of artificial intelligence has provided hope for addressing these challenges. Through model training, neural networks and deep learning technologies can theoretically fit arbitrarily complex functions and mine dependencies between data.

[0005] In the current deep learning channel modeling / generation field, classic neural network models are mostly used, such as feedforward neural networks, basis function neural networks, and convolutional neural networks, to predict channel characteristics such as path loss, shadow fading, delay spread, angle spread, and received power; these models are all regression models, which are used to capture the relationship between input data and continuous output values. The inventors found in their research that existing channel generation model studies are mostly generated for channel coefficients or a small number of multipath parameters, and are unable to fully reproduce the channel at the multipath level, nor fully explore the unique properties of channel data, and most models only support channel modeling for a single scenario, and cannot support multi-scenario channel generation. Summary of the invention

[0006] In order to solve the above problems, the present invention proposes a multi-scenario channel modeling method and system based on self-attention and adversarial network, which can generate complete channel multipath component parameter samples for multiple scenes and are highly consistent with the actual channel distribution.

[0007] In order to achieve the above objectives, the present disclosure adopts the following technical solutions:

[0008] One or more embodiments provide a multi-scenario channel modeling method based on self-attention and adversarial network, comprising the following steps:

[0009] Obtain a random vector and a scene label of the channel parameter to be generated, connect and transform the random vector with the scene label vector after the label embedding operation, and obtain a latent space matrix;

[0010] Position encoding of the latent space matrix;

[0011] According to the number of multipaths in the scene, the parameter sequence under the corresponding scene label is zero-filled to the length corresponding to the maximum number of multipaths in all scenes to generate a filling mask matrix;

[0012] The position-encoded matrix and the padding mask matrix are input into the Transformer module of the conditional generative adversarial network model based on the self-attention mechanism. The Transformer module includes a self-attention mechanism layer and a feedforward network. In the attention operation, the attention weight corresponding to the zero-padding position is changed to zero. After the attention operation, it is input into the feedforward network to generate channel parameters.

[0013] One or more embodiments provide a multi-scenario channel modeling system based on self-attention and adversarial network, including:

[0014] Data preprocessing module: configured to obtain a random vector and a scene label of a channel parameter to be generated, connect and transform the random vector with the scene label vector after the label embedding operation, and obtain a latent space matrix;

[0015] Position encoding module: configured to perform position encoding on the latent space matrix;

[0016] A filling mask matrix generation module: configured to perform zero padding processing on the parameter sequence under the corresponding scene label according to the number of multipaths in the scene, fill it to a length corresponding to the maximum value of the number of multipaths in all scenes, and generate a filling mask matrix;

[0017] Generation module: The matrix configured as position encoding and the padding mask matrix are input into the Transformer module of the conditional generative adversarial network model based on the self-attention mechanism. The Transformer module includes a self-attention mechanism layer and a feedforward network. In the attention operation, the attention weight corresponding to the zero-padding position is changed to zero. After the attention operation, it is input into the feedforward network to generate channel parameters.

[0018] An electronic device includes a memory and a processor, and computer instructions stored in the memory and running on the processor. When the computer instructions are run by the processor, the steps in the above-mentioned multi-scenario channel modeling method based on self-attention and adversarial network are completed.

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

[0020] The method disclosed in the present invention can accurately capture the spatial and temporal characteristics of the channel, randomly generate multipath parameters that are consistent with the distribution of real channel parameters, and utilize the temporal modeling capability of Transformer to dynamically allocate attention weights based on the interactions between different multipath parameters, thereby effectively capturing the global dependencies between different multipaths and overcoming the limitation that the convolutional layer can only capture local information using a fixed sliding window. In addition, the proposed model can generate channel parameters for different scenarios based on input conditions, thereby supporting multi-scenario channel generation and overcoming the limitation that existing channel generation models only support a single scenario. Due to the different number of multipaths in different scenarios, the filling and occlusion method can be used to dynamically fill or occlude missing or irrelevant sequence segments, so that the model can effectively adapt to multi-scenario data processing.

[0021] The advantages of the present disclosure and the advantages of additional aspects will be described in detail in the following specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings constituting a part of the present disclosure are used to provide a further understanding of the present disclosure. The exemplary embodiments of the present disclosure and the description thereof are used to explain the present disclosure but do not constitute a limitation of the present disclosure.

[0023] Figure 1 is a flow chart of a multi-scenario channel modeling method according to Embodiment 1 of the present disclosure;

[0024] Figure 2 is a schematic diagram of a conditional generative adversarial network model structure based on a self-attention mechanism according to Embodiment 1 of the present disclosure;

[0025] FIG3( a ) is a schematic diagram of generating a fill mask matrix according to Embodiment 1 of the present disclosure;

[0026] FIG3( b ) is a schematic diagram of calculating the attention weight matrix of Embodiment 1 of the present disclosure;

[0027] FIG4( a ) is a schematic diagram of the cumulative distribution function of the delay spread of the real channel and the generated channel in the indoor scene of Example 1 of the present disclosure;

[0028] FIG4( b ) is a schematic diagram of the cumulative distribution function of the delay spread of the real channel and the generated channel in the urban micro-cell scenario of Example 1 of the present disclosure;

[0029] FIG4( c ) is a schematic diagram of the cumulative distribution function of the delay spread of the real channel and the generated channel in the urban macrocell scenario of Embodiment 1 of the present disclosure;

[0030] FIG4( d ) is a schematic diagram of the cumulative distribution function of the delay spread of the real channel and the generated channel in the suburban scene of Example 1 of the present disclosure;

[0031] FIG5( a ) is a schematic diagram of the horizontal departure angle spread cumulative distribution function of the real channel and the generated channel of the indoor scene of Example 1 of the present disclosure;

[0032] FIG5( b ) is a schematic diagram of the extended cumulative distribution function of the pitch departure angle of the real channel and the generated channel of the indoor scene of Example 1 of the present disclosure;

[0033] FIG5( c ) is a schematic diagram of the horizontal arrival angle spread cumulative distribution function of the real channel and the generated channel of the indoor scene of Example 1 of the present disclosure;

[0034] FIG5( d ) is a schematic diagram of the cumulative distribution function of the pitch arrival angle spread of the real channel and the generated channel of the indoor scene of Example 1 of the present disclosure. DETAILED DESCRIPTION

[0035] The present disclosure is further described below in conjunction with the accompanying drawings and embodiments.

[0036] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present disclosure belongs.

[0037] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present disclosure. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof. It should be noted that, in the absence of conflict, the various embodiments in the present disclosure and the features in the embodiments can be combined with each other. The embodiments will be described in detail below in conjunction with the accompanying drawings.

[0038] Example 1

[0039] In the technical solutions disclosed in one or more embodiments, Figure 1 As shown, a multi-scenario channel modeling method based on self-attention mechanism and generative adversarial network includes the following steps:

[0040] Step 1: Obtain a random vector and a scene label of the channel parameter to be generated, connect and transform the random vector and the scene label vector after the label embedding operation to obtain a latent space matrix;

[0041] Step 2: Positionally encode the latent space matrix;

[0042] Step 3: According to the number of multipaths in the scene, the parameter sequence under the corresponding scene label is zero-filled to a length corresponding to the maximum number of multipaths in all scenes, and a filling mask matrix M is generated;

[0043] Step 4: Input the position-encoded matrix and the padding mask matrix M into the Transformer module of the conditional generative adversarial network model based on the self-attention mechanism. The Transformer module includes a self-attention mechanism layer and a feedforward network. In the attention operation, the attention weight corresponding to the zero-filled position is changed to zero. After the attention operation, it is input into the feedforward network to generate channel parameters.

[0044] In this embodiment, considering the difference in the number of multipaths in different scenarios, a padding mask mechanism is adopted to process sequences of different lengths and ignore the padding position when calculating attention, effectively utilizing the information of variable-length sequences, thereby supporting multi-scenario channel parameter generation;

[0045] The method of this embodiment can accurately capture the spatial and temporal characteristics of the channel, randomly generate multipath parameters that are consistent with the distribution of real channel parameters, and utilize the temporal modeling capability of Transformer to dynamically allocate attention weights based on the interactions between different multipath parameters, thereby effectively capturing the global dependencies between different multipaths. This overcomes the limitation that the convolutional layer can only capture local information using a fixed sliding window. In addition, the proposed model can generate channel parameters for different scenarios based on input conditions, thereby supporting multi-scenario channel generation, overcoming the limitation that existing channel generation models only support a single scenario. Since the number of multipaths is different in different scenarios, the filling and occlusion method can be used to dynamically fill or occlude missing or irrelevant sequence segments, so that the model can effectively adapt to multi-scenario data processing.

[0046] Specifically, the channel multipath parameters include gain, delay, horizontal departure angle, elevation departure angle, horizontal arrival angle, and elevation arrival angle. Therefore, the wireless channel can be represented by a multipath set, and the channel parameter sequence is represented by:

[0047] X=[x1,x2,…,x L ] (1)

[0048] Here, multipath means that the signal travels through multiple different paths from the transmitter to the receiver, which may include direct path, reflection path, refraction path, scattering path, etc. Each path corresponds to certain channel parameters.

[0049] Where L is the number of multipaths in the channel, x l The parameter set representing the lth path can be expressed as:

[0050] x l =[τ l ,α l ,φ s,l ,θ s,l ,φ u,l ,θ u,l ] T ; (2)

[0051] Among them, τ l ,α l ,φ s,l ,θ s,l ,φ u,l ,θ u,l represent the delay, gain, horizontal departure angle, elevation departure angle, horizontal arrival angle, and elevation arrival angle of the lth path respectively, [·] T Represents the transpose of a vector.

[0052] In the above scheme, the channel modeling problem is transformed into a time series generation problem;

[0053] In step 1, if Figure 2 As shown, a random vector and a scene label following a normal distribution are used as input, and the scene label is embedded into a vector of the same dimension as the random vector and concatenated with the random vector to obtain a latent space vector;

[0054] Optionally, the random vector can be set to the latent space vector X e 1 / 2 or 1 / 4 of the dimension;

[0055] Specifically, in this embodiment, the dimension of the random vector is set to 32×1, which is a 32-dimensional column vector; the random vector z∈R 32×1 and scene label c are used as input, where the elements in the random vector z follow a standard normal distribution; the scene label c is embedded into a 32×1 vector and concatenated with z to create a latent space u∈R 64×1 , which is used to generate channel parameters;

[0056] Furthermore, the latent space u is transformed through a linear layer to obtain the latent space matrix X e ∈R L×d; where L is the number of multipaths in the channel and d is an adjustable hyperparameter representing the embedding dimension.

[0057] In step 2, set the position encoding matrix P and the latent space matrix X e Apply position encoding to obtain the fusion matrix X of position information p ,as follows:

[0058] X p =X e +P (3)

[0059] Where P∈R L×d It is a learnable matrix, which is set to zero matrix before training. The parameters in the matrix are gradually updated during the training process and are used to learn the sequence X p The location information in.

[0060] In step 3, the filling mask matrix M is obtained according to the number of multipath components in various scenarios, and compared with the maximum number of multipath components in all scenarios, the filling position and the actual sequence position are obtained, and then the filling mask matrix M is obtained; specifically:

[0061] Step 31: Use a padding mask mechanism to process sequences of different lengths. Zero-fill the scene channel parameter sequence under the corresponding scene label to a length of L, i.e., the maximum value of the number of multipaths in all scenes;

[0062] Optionally, the zero-filling process for the scene channel parameter sequence is: dynamically zero-filling or blocking the missing or irrelevant sequence segments, so that the model can effectively adapt to multi-scene data processing;

[0063] Step 32: dynamically generate a Boolean vector according to the specific scenario, and the length of the Boolean vector is the same as the length of the longest sequence;

[0064] Step 33, in the Boolean vector, the elements corresponding to the filling positions are set to "True" or 1, and the elements corresponding to the actual sequence positions are set to "False" or 0, thereby obtaining the filling mask matrix M;

[0065] Step 4: fused sequence X after position encoding p And a padding mask matrix M is input into the Transformer module. In the self-attention mechanism, when calculating the attention weight matrix, the padding mask matrix M is applied, and the attention weights corresponding to the padding positions are set to negative infinity to eliminate the influence of the padding positions. After calculating the attention weights, they are input into the softmax function for mapping, so that the attention weights corresponding to the padding positions become zero, ensuring that the model ignores the influence of the padding positions.

[0066] Through this padding mask mechanism, sequences of different lengths can be processed and the padding position can be ignored when calculating attention, which effectively utilizes the information of variable-length sequences and supports multi-scenario channel parameter generation.

[0067] Furthermore, the output of the Transformer module is processed through a 2D convolutional layer to reduce the dimensionality of the data, and the tanh activation function is applied to limit it to the range of [-1, 1], and finally the channel parameters are generated by the minimum-maximum scaling operation.

[0068] The above process is realized by building a model, using a conditional generative adversarial network architecture to build a conditional generative adversarial network model based on the self-attention mechanism, including a generator and a discriminator, both of which use a stacked structure of Transformer modules. The above process is implemented in the trained generator.

[0069] The Transformer module is used to implement the method in step 4. During the training of the model, the generator and the discriminator are optimized in an adversarial manner to achieve a Nash equilibrium state.

[0070] The conditional generative adversarial network model based on the self-attention mechanism has the ability to support the generation of channel multipath parameters in multiple scenarios. The channel multipath parameters include gain, delay, horizontal departure angle, pitch departure angle, horizontal arrival angle and pitch arrival angle.

[0071] In a further technical solution, both the generator and the discriminator adopt a stacked structure of Transformer modules. Each Transformer module contains two sub-layers, namely a multi-head self-attention mechanism layer and a feedforward network layer. A residual connection is used to add the input and output of each sub-layer. A normalization layer is set before each sub-layer to perform layer normalization on the input of each sub-layer. The output ends of the two sub-layers are connected to the Dropout layer.

[0072] In the above scheme, in order to solve the gradient vanishing problem, a residual connection is introduced to add the input and output of each sub-layer. At the same time, the input of each sub-layer is layer normalized to improve the stability of training. In addition, the output is passed through a Dropout layer to prevent overfitting and enhance the generalization ability of the model.

[0073] A further technical solution also includes a process of training a conditional generative adversarial network based on a self-attention mechanism, as follows:

[0074] Step S1, constructing a data set for training a conditional generative adversarial network model based on a self-attention mechanism;

[0075] Obtain channel multipath parameter data for preprocessing and construct training sets and test sets in different scenarios;

[0076] Specifically, a channel simulator or a ray tracing method is used to obtain channel multipath parameter data in different scenarios.

[0077] The complete channel multipath parameters include gain (α), delay (τ), horizontal departure angle (φ s ), pitch departure angle (θ s ), horizontal angle of arrival (φ u ) and pitch angle of arrival (θ u ), a channel data set is constructed according to the above multipath parameters; the data set consists of a multipath set of the channel and can be expressed as:

[0078] X=[x1,x2,…,x L ]

[0079] Among them, x l In the figure, the lth multipath is represented, which can be expressed as:

[0080] x l =[τ l ,α l ,φ s,l ,θ s,l ,φ u,l , 0 u,l ] T

[0081] The channel data preprocessing includes the following steps:

[0082] Step S11, performing zero padding on the acquired channel multipath parameters, and setting the padding length to the maximum number of multipath parameters acquired for all scenarios;

[0083] Since the number of multipaths in different scenarios is different, in the initial stage, the parameter sequences in different scenarios are filled with zeros to a length of L, where L is the maximum number of multipaths in all scenarios.

[0084] Step S12, normalizing the multipath parameter values;

[0085] Since different multipath parameters have different numerical ranges, the maximum and minimum method is used to normalize the multipath parameters.

[0086] Step S13, dividing the multipath parameter data in each scene into a training set and a test set, and assigning a unique scene label to each scene; wherein the ratio of the training set to the test set can be selected to be 5:1;

[0087] Step S2: input the data in the data set into a conditional generative adversarial network model based on a self-attention mechanism for training, and optimize the generator and the discriminator in an adversarial learning manner to achieve a Nash equilibrium state, thereby obtaining a trained conditional generative adversarial network model based on a self-attention mechanism;

[0088] Step S21, in the generator, the random vector and the scene label are used as inputs. During the training process, a random vector and a scene label are first input, and the generator uses these inputs to perform the above steps 1 to 4 to generate channel parameter samples;

[0089] Specifically, the elements in the random vector follow a standard normal distribution. The scene label is embedded into a vector and concatenated with the random vector to obtain a latent space vector, which is used to generate channel parameters. The latent space vector is transformed through a linear layer to obtain the matrix X e ∈R L×d , where d is an adjustable hyperparameter representing the embedding dimension. Then, for the matrix X e Apply position encoding, i.e. X p =X e +P, where P∈R L×d For learning sequence X p Then, the sequence X p and a padding mask matrix M are input into the Transformer module. The matrix M is obtained according to the number of multipath components in various scenarios. The output of the final Transformer module is processed by a 2D convolutional layer to reduce the dimensionality of the data and apply the tanh activation function to limit it to the range of [-1,1]. The final generated channel parameters are obtained by the inverse min-max scaling operation. When the generated channel is used as the discriminator input, the inverse min-max scaling operation is omitted.

[0090] Specifically, the tanh activation function can be expressed as:

[0091] In order to eliminate the influence of padding on the results during training, a Boolean vector can be dynamically generated according to the specific scenario and expanded into a mask matrix M. As shown in Figure 3(a), “True” indicates the position of padding, and “False” indicates the position of the actual sequence element.

[0092] In the self-attention mechanism of the Transformer module, the input sequence X p After three linear layers, we get the query matrix, key matrix, and value matrix:

[0093] Query Matrix:

[0094] Key Matrix:

[0095] Value matrix:

[0096] Among them, d k and dv Represents the dimensions of the query / key and value vectors respectively.

[0097] The attention weight matrix T is calculated by evaluating the similarity between Q and K, namely:

[0098]

[0099] in, is a scaling factor to prevent the dot product values ​​from being too large.

[0100] As shown in Figure 3(b), the filling positions in the weight matrix T are set to negative infinity according to the filling mask matrix M and the mask fill(·) function, which is expressed as follows:

[0101]

[0102] In T p After applying the softmax(·) function, the attention weights of the padding positions are set to 0, thereby eliminating the influence of the padding positions on model training.

[0103] The attention matrix calculation of the self-attention mechanism can be expressed as:

[0104] Attention(Q,K,V)=softmax(T p )V; (5)

[0105] The multi-head attention layer is obtained by connecting H self-attention layers, expressed as:

[0106] X m =concat(head1,head2…,head H )W o ; (6)

[0107] Among them, head h =Attention(Q h ,K h ,V h ), is a linear transformation matrix used to transform the multi-head self-attention mechanism results from L×Hd v Convert to L×d dimensions.

[0108] In the above scheme, the multi-head attention mechanism enables the model to learn the attention patterns of multiple paths and focus on different fragments of the input sequence. This ability enables the proposed model to more effectively capture the local and global dependencies between different multipaths.

[0109] Step 22: input the scene label, the real channel parameter and the generated channel parameter into a discriminator to distinguish the real channel parameter from the generated channel parameter;

[0110] The structure of the discriminator is similar to that of the generator, and also uses positional encoding and Transformer modules. The difference is that the discriminator takes the real channel and the generated channel as input instead of random vectors.

[0111] Specifically, the discriminator processing includes the following steps:

[0112] Step 221: connect the acquired real channel parameters or generated channel parameters with the scene labels to form a matrix X c ;

[0113] Step 222, for the matrix X c Through the linear layer, the dimension is transformed to obtain the matrix X c ∈R L×7 ;

[0114] Step 223, set the position encoding vector P, and the latent space matrix X c Apply positional encoding;

[0115] Step 224, according to the number of multipaths in the scene, the parameter sequence under the corresponding scene label is zero-filled to a length corresponding to the maximum number of multipaths in all scenes, and a filling mask matrix M is generated;

[0116] Considering the differences in the number of multipaths in different scenarios, a padding mask mechanism is used to process sequences of different lengths.

[0117] In step 224, the filling mask matrix M is generated by:

[0118] In the initial stage, all channel parameter sequences in the dataset are padded with zeros to a length of L, which is the maximum value of the number of multipaths in all scenarios in the dataset;

[0119] For each specific scenario in the data set, a Boolean vector is dynamically generated, the length of which is the same as the length L of the longest sequence;

[0120] In the Boolean vector, the elements corresponding to the filled positions are set to "True", while the elements corresponding to the actual sequence positions are set to "False". The filling mask matrix M is obtained;

[0121] Step 225: Input the matrix obtained after position encoding and the filling mask matrix M into the Transformer module for processing, and output the matrix X o ; Process the output of the last Transformer module through the classification head layer;

[0122] The self-attention mechanism processing method of the Transformer module is the same as in step 21;

[0123] In the self-attention mechanism, the padding mask matrix is ​​applied when calculating the attention weight matrix. The attention weight corresponding to the padding position is set to negative infinity to exclude the influence of the padding position. After the attention weight is calculated, it is input into the softmax function to make the attention weight corresponding to the padding position zero, ensuring that the model ignores the influence of the padding position. Through this mechanism, the model can process sequences of different lengths and ignore the padding position when calculating attention, effectively utilizing the information of variable-length sequences, thereby supporting multi-scenario channel parameter generation;

[0124] Specifically, the classification head layer consists of layer normalization and linear layers.

[0125] Step 226, the discriminator distinguishes the real channel from the generated channel by calculating the Wasserstein distance;

[0126] Specifically, the scene label c is embedded into a vector of size L×1 and concatenated with the real or generated channels to form the matrix X c ∈R L×7 ; The matrix passes through a linear layer to obtain the matrix X e ; For the matrix X e Perform position encoding, the position encoding method is the same as mentioned above.

[0127] Step 23, the goal of the generator is to make the discriminator unable to distinguish the real channel from the generated channel through the generated channel; the goal of the discriminator is to accurately distinguish the real channel from the generated channel; during the training process, the generator and the discriminator play an adversarial game to optimize the parameters of the generator and the discriminator; the loss function of the generator and the discriminator is minimized to obtain the trained conditional generative adversarial network model based on the self-attention mechanism;

[0128] Specifically, the adversarial game adopts the min-max game;

[0129] Optionally, the parameters of the generator and discriminator are updated based on the Wasserstein distance, which helps to improve the stability of training and the quality of generated data;

[0130] The goal of model training is to minimize the loss function of the generator and the discriminator. Furthermore, the loss function consists of three parts:

[0131] The first part is the output of the real channel in the discriminator;

[0132] The second part is to generate the output of the channel in the discriminator;

[0133] The third part is the gradient penalty term, which aims to enhance the stability of training.

[0134] In this embodiment, by minimizing the loss function, the model can gradually improve the quality of the channels generated by the generator while enhancing the accuracy of the discriminator.

[0135] Specifically, during the model training process, the parameters of the discriminator and the generator are iteratively updated according to the gradient descent of the cost function. The objective function of the proposed model can be expressed as:

[0136]

[0137] in, It means to find the statistical average.

[0138] ε~U[0,1], which means that ε is a uniformly distributed random number between 0 and 1;

[0139] G(·) represents the generator, D(·) represents the discriminator, c and ξ represent the scene label and gradient penalty coefficient respectively, and p r 、p f and p c Represent the real channel X and the generated channel respectively. and combined channels Distribution of

[0140] Therefore, the loss function of the discriminator can be expressed as:

[0141]

[0142] The loss function of the generator can be expressed as:

[0143]

[0144] The goal of model training is to minimize the loss function to achieve optimal performance, that is, close to Nash equilibrium.

[0145] Based on the above loss function, through repeated training iterations, the model continuously adjusts the parameters of the generator and discriminator to achieve the goal of generating realistic generated channels and accurately distinguishing real and generated channels, minimizing the loss function to zero and achieving optimal performance.

[0146] In the above training process, due to the different number of multipaths in different scenarios, the filling and occlusion technology is used to dynamically fill or occlude missing or irrelevant sequence segments during the model training process, so that the model can effectively adapt to multi-scenario data processing.

[0147] Furthermore, after step 4, based on the generated channel parameters, the channel can be reconstructed to obtain a channel impulse response that complies with the 3GPP evaluation method;

[0148] The channel impulse response from the sth transmit antenna to the uth receive antenna can be expressed as:

[0149]

[0150] Where λ is the wavelength, α l and τ l denote the gain and delay of the lth path respectively;

[0151] r s,l is the departure angle unit vector, expressed as follows:

[0152]

[0153] r u,l is the arrival angle unit vector, expressed as:

[0154]

[0155] Vector d s and d u They represent the local coordinates of the sth transmitting antenna and the uth receiving antenna, respectively, with the center of the antenna array as the origin. The mobile station velocity vector v MS It can be expressed as:

[0156]

[0157] Among them, v MS represents the speed of the mobile station, φ v is the azimuth of motion, θ v is the pitch angle of the motion.

[0158] The channel statistics are obtained based on the generated channel samples and compared with the real channel statistics to verify the model. Typical channel statistics include delay spread, angle spread, etc. The channel delay spread is calculated as follows:

[0159]

[0160] Among them, P l =α l 2 is the power of the lth path, is the total power of all multipaths.

[0161] like Figure 4(a) to Figure 4(d) As shown in the figure, it shows the comparison of the cumulative distribution function of the generated channel and the real channel delay spread in indoor (a), urban microcell (b), urban macrocell (c) and suburban (d) scenarios. It can be seen that the two are highly consistent, which indicates that the proposed channel modeling method can capture the delay spread characteristics of the real channel in different scenarios.

[0162] The angular spread of the channel is calculated as follows:

[0163]

[0164] in, represents the normalized horizontal angle of arrival of the lth path, which can be expressed as arg(·) is used to obtain the phase of the complex number. The horizontal departure angle spread, the pitch departure angle spread, and the pitch arrival angle spread can be converted into u,l Replace with φ s,l ,θ s,l and θ u,l Obtained by calculation.

[0165] like Figure 5(a) to Figure 5(d) The figure shows the cumulative distribution functions of the horizontal departure, pitch departure, horizontal arrival, and pitch arrival angles of the real channel and the generated channel in the indoor scene. It can be seen that the two have a high similarity, indicating that the proposed modeling method can accurately obtain the spatial angle distribution characteristics of the channel in a specific scene.

[0166] Example 2

[0167] Based on Example 1, this embodiment provides a multi-scenario channel parameter generation system based on self-attention and adversarial network, including:

[0168] Data preprocessing module: configured to obtain a random vector and a scene label of a channel parameter to be generated, connect and transform the random vector with the scene label vector after the label embedding operation, and obtain a latent space matrix;

[0169] Position encoding module: configured to perform position encoding on the latent space matrix;

[0170] A filling mask matrix generation module: configured to perform zero padding processing on the parameter sequence under the corresponding scene label according to the number of multipaths in the scene, fill it to a length corresponding to the maximum value of the number of multipaths in all scenes, and generate a filling mask matrix;

[0171] Generation module: The matrix configured as position encoding and the padding mask matrix are input into the Transformer module of the conditional generative adversarial network model based on the self-attention mechanism. The Transformer module includes a self-attention mechanism layer and a feedforward network. In the attention operation, the attention weight corresponding to the zero-padding position is changed to zero. After the attention operation, it is input into the feedforward network to generate channel parameters.

[0172] It should be noted here that the various modules in this embodiment correspond one-to-one to the various steps in Example 1, and the specific implementation process is the same, which will not be repeated here.

[0173] Example 3

[0174] This embodiment provides an electronic device, including a memory and a processor, and computer instructions stored in the memory and running on the processor. When the computer instructions are executed by the processor, the steps in the above-mentioned multi-scenario channel modeling method based on self-attention and adversarial network are completed.

[0175] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

[0176] Although the above describes the specific implementation methods of the present disclosure in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present disclosure. Technical personnel in the relevant field should understand that on the basis of the technical solution of the present disclosure, various modifications or variations that can be made by those skilled in the art without creative work are still within the scope of protection of the present disclosure.

Claims

1. A multi-scenario channel modeling method based on self-attention and adversarial network, characterized in that: The steps include: Obtain a random vector and a scene label of the channel parameter to be generated, connect and transform the random vector with the scene label vector after the label embedding operation, and obtain a latent space matrix; Transform the dimension and position of the latent space matrix; According to the number of multipaths in the scene, the parameter sequence under the corresponding scene label is zero-filled to the length corresponding to the maximum number of multipaths in all scenes to generate a filling mask matrix; The position-encoded matrix and the padding mask matrix are input into the Transformer module of the conditional generative adversarial network model based on the self-attention mechanism. The Transformer module includes a self-attention mechanism layer and a feedforward network. In the attention operation, the attention weight corresponding to the zero-padding position is changed to zero. After the attention operation, it is input into the feedforward network to generate channel parameters.

2. The multi-scenario channel modeling method based on self-attention and adversarial network according to claim 1, characterized in that: The random vector and the scene label are used as input. The scene label is embedded into a vector of the same dimension as the random vector and concatenated with the random vector to obtain the latent space. The latent space is transformed in dimension through a linear layer to obtain the latent space matrix.

3. The multi-scenario channel modeling method based on self-attention and adversarial network according to claim 1, characterized in that: Set the position encoding vector P to the latent space matrix X e Apply position encoding to obtain the fusion matrix X of position information p ; The filling mask matrix is ​​obtained according to the number of multipath components in various scenarios, specifically: The padding mask mechanism is used to zero-fill the scene channel parameter sequence under the corresponding scene label to a length of L, where L is the maximum value of the corresponding multipath number in all scenes; According to the specific scenario, a Boolean vector is dynamically generated, and the length of the Boolean vector is the same as the length of the sequence corresponding to the maximum value of the corresponding multipath number in all scenarios; In the Boolean vector, the elements corresponding to the filled positions are set to "True", while the elements corresponding to the actual sequence positions are set to "False", resulting in the filling mask matrix M.

4. The multi-scenario channel modeling method based on self-attention and adversarial network according to claim 1, characterized in that: The position-encoded fusion sequence and padding mask matrix are input into the Transformer module. In the self-attention mechanism, when calculating the attention weight matrix, the padding mask matrix is ​​applied, and the attention weight corresponding to the padding position is set to negative infinity to eliminate the influence on the padding position. After calculating the attention weight, it is mapped through the softmax function to make the attention weight corresponding to the padding position zero.

5. The multi-scenario channel modeling method based on self-attention and adversarial network according to claim 1, characterized in that: The output of the Transformer module is processed through a two-dimensional convolutional layer to reduce the dimension of the data, and the tanh activation function is used to generate the channel parameters through the minimum-maximum scaling operation.

6. The multi-scenario channel modeling method based on self-attention and adversarial network according to claim 1, characterized in that: The conditional generative adversarial network model based on the self-attention mechanism includes a generator and a discriminator. Both the generator and the discriminator adopt a stacked structure of Transformer modules. Each Transformer module contains two sublayers, and each sublayer includes a multi-head self-attention mechanism layer and a feedforward network layer. Residual connection is used to add the input and output of each sublayer. A normalization layer is set before each sublayer, and the output ends of the two sublayers are connected to the Dropout layer.

7. The multi-scenario channel modeling method based on self-attention and adversarial network according to claim 6, characterized in that: It also includes steps for training a conditional generative adversarial network model based on a self-attention mechanism, including: Obtain channel multipath parameter data for preprocessing and construct training sets and test sets in different scenarios; The data in the dataset is input into the conditional generative adversarial network model based on the self-attention mechanism for training. The generator and discriminator are optimized in an adversarial learning manner to achieve the Nash equilibrium state, and the trained conditional generative adversarial network model based on the self-attention mechanism is obtained. Specifically: In the generator, random vectors and scene labels are used as input. The scene label is embedded into a vector and concatenated with the random vector to obtain a latent space vector. The latent space vector is transformed by a linear layer to obtain the matrix X e ; Apply position encoding to the matrix; fused matrix sequence X after position encoding p And the padding mask matrix M is input into the Transformer module to generate channel parameters; The scene label, the real channel parameter and the generated channel parameter are input into the discriminator to distinguish the real channel parameter from the generated channel parameter.

8. The multi-scenario channel modeling method based on self-attention and adversarial network as claimed in claim 7, characterized in that: The preprocessing includes zero padding the acquired channel multipath parameters, with the padding length set to the maximum number of multipath parameters of all acquired scenarios; normalizing the multipath parameter values, and dividing the multipath parameter data in each scenario into a training set and a test set; Alternatively, the goal of model training is to minimize the loss function of the generator and the discriminator, where the loss function includes the output of the true channel in the discriminator, the output of the generated channel in the discriminator, and the gradient penalty term.

9. A multi-scenario channel modeling system based on self-attention mechanism and generative adversarial network, characterized by: include: Data preprocessing module: configured to obtain a random vector and a scene label of a channel parameter to be generated, connect and transform the random vector with the scene label vector after the label embedding operation, and obtain a latent space matrix; Position encoding module: configured to perform position encoding on the latent space matrix; A filling mask matrix generation module: configured to perform zero padding processing on the parameter sequence under the corresponding scene label according to the number of multipaths in the scene, fill it to a length corresponding to the maximum value of the number of multipaths in all scenes, and generate a filling mask matrix; Generation module: The matrix configured as position encoding and the padding mask matrix are input into the Transformer module of the conditional generative adversarial network model based on the self-attention mechanism. The Transformer module includes a self-attention mechanism layer and a feedforward network. In the attention operation, the attention weight corresponding to the zero-padding position is changed to zero. After the attention operation, it is input into the feedforward network to generate channel parameters.

10. An electronic device, characterized in that: The method comprises a memory and a processor and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the steps in the multi-scenario channel modeling method based on self-attention and adversarial network described in any one of claims 1 to 8 are completed.

Citation Information

Cited By

  • Wireless channel modeling method and device

    CN119363254A

  • Wireless channel modeling method and apparatus

    CN119363254B

  • Conditional generative adversarial network-based photon terahertz communication system channel modeling method

    CN121056046A

  • Unmanned aerial vehicle communication intensity calculation method and system based on data driving

    CN121098423A

  • Data-driven method and system for calculating UAV communication strength

    CN121098423B