Training method and device of modulation identification model of wireless signal, medium and equipment

Feature extraction and fusion of the IQ and GAF ​​data of wireless signals are carried out through the deep learning dual-branch structure model, which solves the problem of high complexity of traditional modulation identification methods and achieves high accuracy and strong generalization ability in a noisy environment. Modulation identification.

CN118573532APending Publication Date: 2024-08-30BEIJING FORESTRY UNIVERSITY
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410803363.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The traditional wireless signal modulation identification method is highly complex and has a single identification method, making it difficult to effectively identify the modulation method in a noisy environment.

Method used

A dual-branch structure model based on deep learning is used to process the in-phase-orthogonal IQ data and Gram angle field GAF ​​data of wireless signals respectively. Features are extracted through the backbone network, feature conversion network and transformer network, and feature fusion is performed. Finally Use fully connected layers to identify predictive modulation modes.

Benefits of technology

It improves the accuracy and generalization ability of modulation recognition, can perform better in classifying high- and low-order modulation modes, extracts both local features and global features, and is adaptable to data sets of multiple modulation modes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573532A
    Figure CN118573532A
Patent Text Reader

Abstract

The invention discloses a training method and device for a modulation recognition model of a wireless signal, a medium and equipment, and belongs to the technical field of signal processing. The method comprises the steps that a training data set is acquired, each group of training data comprises IQ data, GAF data and a label of a wireless signal, and the label is used for labeling an actual modulation mode under a corresponding signal-to-noise ratio condition; constructing a modulation identification model; for the training data, processing the IQ data by using an identification branch to obtain a first feature; processing the GAF data by using the other identification branch to obtain a second feature; performing feature fusion on the two features by using a feature fusion layer to obtain a fused feature; processing the fusion features by using a full connection layer to obtain a prediction modulation mode; and performing loss calculation on the prediction modulation mode and the actual modulation mode according to the loss function of the modulation identification model, and training the modulation identification model according to a calculation result. According to the method, the identification accuracy can be improved through the multi-modal data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of signal processing technology, and in particular to a training method, device, medium and equipment for a modulation recognition model of a wireless signal. Background Art

[0002] With the rapid popularization of various wireless devices, the already tight spectrum resources are facing greater pressure. In the signal processing process, automatically identifying the modulation mode of wireless signals is a key step to alleviate spectrum congestion and manage complex electromagnetic environments. It is also the basis for realizing spectrum perception and effective use in non-cooperative communication environments. The premise of anti-interference is to accurately and real-time classify and identify interference signals in received signals. As an important part of wireless communication anti-interference, interference signal identification can provide support for subsequent interference elimination and interference suppression methods, and improve the performance of satellite communication systems. The characteristics of wireless signals, the diversity of waveforms and modulation methods, and their dynamic changes have brought new challenges to the estimation of signal parameters and the classification of modulation methods.

[0003] Deep learning technology has shown its potential in the field of modulation recognition, which reduces the complexity of processing and improves the generalization ability and robustness of the model. Therefore, it is extremely important to develop a modulation recognition algorithm based on deep learning that can work in a multi-noise environment. Summary of the invention

[0004] The present application provides a method, device, medium and equipment for training a modulation recognition model of a wireless signal, which is used to solve the problem that the traditional debugging recognition method is highly complex and the recognition debugging method is single. The technical solution is as follows:

[0005] According to a first aspect of the present application, a method for training a modulation recognition model of a wireless signal is provided, the method comprising:

[0006] Acquire a training data set, where each set of training data in the training data set includes in-phase-quadrature IQ data, Gram angle field GAF ​​data, and a label of a wireless signal, where the label is used to mark an actual modulation mode of the wireless signal under a corresponding signal-to-noise ratio condition;

[0007] Constructing a modulation recognition model, wherein the modulation recognition model includes two recognition branches, a feature fusion layer and a fully connected layer, and each recognition branch includes at least a backbone network, a feature conversion network, and a transformer network;

[0008] For each set of training data, the IQ data is processed by one identification branch to obtain a first feature; the GAF data is processed by another identification branch to obtain a second feature; the first feature and the second feature are fused by the feature fusion layer to obtain a fused feature; the fused feature is fully connected by the fully connected layer to obtain a predicted modulation mode of the wireless signal under a corresponding signal-to-noise ratio condition;

[0009] The predicted modulation mode and the actual modulation mode are subjected to loss calculation according to the loss function of the modulation recognition model, and the modulation recognition model is trained according to the calculation result.

[0010] In a possible implementation manner, the using an identification branch to process the IQ data to obtain a first feature includes:

[0011] Using a plurality of residual basic modules in the backbone network to process the IQ data respectively to obtain a first intermediate feature;

[0012] Processing the first intermediate feature using a convolution module and a transposition module in the feature conversion network to obtain a second intermediate feature;

[0013] The second intermediate feature is processed respectively by using a label embedding module and a position encoding module in the transformer network, the two processing results obtained after the processing are superimposed, and the tensor obtained after the superposition is encoded by using multiple encoding modules in the transformer network to obtain the first feature.

[0014] In a possible implementation, when the backbone network includes r1 residual basic modules, the using of the multiple residual basic modules in the backbone network to process the IQ data respectively to obtain the first intermediate feature includes:

[0015] For a first residual basic module in the backbone network, the IQ data is processed by a batch normalization unit, a convolution unit, a channel attention unit, and a rectified linear unit in the first residual basic module to obtain a first processing result, and the first processing result is output to a second residual basic module;

[0016] For the vth residual basic module in the backbone network, the v-1th processing result output by the v-1th residual basic module is processed by the batch normalization unit, the convolution unit, the channel attention unit and the rectified linear unit in the vth residual basic module to obtain the vth processing result, and the vth processing result is output to the v+1th residual basic module, 2≤v≤r1;

[0017] The processing result output by the r1th residual basic module is determined as the first intermediate feature.

[0018] In a possible implementation, when the transformer includes n encoding modules, encoding the tensor obtained after superposition using multiple encoding modules in the transformer network to obtain the first feature includes:

[0019] For a first encoding module in the transformer network, the tensor is processed by a multi-head attention unit and a feedforward unit in the first encoding module to obtain a first encoding result, and the first encoding result is output to a second encoding module;

[0020] For the u-th encoding module in the transformer network, the u-1-th encoding result is processed by the multi-head attention unit and the feedforward unit in the u-th encoding module to obtain the u-th encoding result, and the u-th encoding result is output to the u+1-th encoding module, 2≤u≤n;

[0021] The encoding result output by the nth encoding module is determined as the first feature.

[0022] In a possible implementation, the recognition branch corresponding to the GAF data further includes a Gaussian blur module and a reshaping module, and the GAF data is processed by another recognition branch to obtain a second feature, including:

[0023] Using the Gaussian blur module to perform Gaussian blur processing on the GAF data to obtain a third intermediate feature;

[0024] Using the reshaping module to perform dimension conversion on the GAF data to obtain a fourth intermediate feature;

[0025] Using a plurality of basic modules in the backbone network to process the fourth intermediate feature respectively to obtain a fifth intermediate feature;

[0026] Processing the fifth intermediate feature using a convolution module and a transposition module in the feature conversion network to obtain a sixth intermediate feature;

[0027] The sixth intermediate feature is processed respectively by using the label embedding module and the position encoding module in the transformer network, the two results obtained after the processing are superimposed, and the tensor obtained after the superposition is encoded by using the encoding module in the transformer module to obtain the second feature.

[0028] In a possible implementation, the using the feature fusion layer to fuse the first feature and the second feature to obtain a fused feature includes:

[0029] Using a splicing unit in the feature fusion layer to splice the first feature and the second feature to obtain a third feature;

[0030] The third feature is convolved using the convolution unit in the feature fusion layer to obtain the fused feature.

[0031] In a possible implementation, the method further includes:

[0032] Acquire a wireless signal to be identified;

[0033] generating IQ data and GAF ​​data according to the wireless signal;

[0034] Processing the IQ data using a recognition branch in a trained modulation recognition model to obtain a first feature;

[0035] Using another recognition branch in the modulation recognition model to process the GAF data to obtain a second feature;

[0036] Using a feature fusion layer in the modulation recognition model to fuse the first feature and the second feature to obtain a fused feature;

[0037] The fusion features are fully connected using the fully connected layer in the modulation recognition model to obtain a predicted modulation mode of the wireless signal under a corresponding signal-to-noise ratio condition.

[0038] According to a second aspect of the present application, a training device for a modulation recognition model of a wireless signal is provided, the device comprising:

[0039] An acquisition module, used to acquire a training data set, each set of training data in the training data set includes in-phase-quadrature IQ data, Gram angle field GAF ​​data and a label of the wireless signal, and the label is used to mark the actual modulation mode of the wireless signal under the corresponding signal-to-noise ratio condition;

[0040] A construction module is used to construct a modulation recognition model, wherein the modulation recognition model includes two recognition branches, a feature fusion layer and a fully connected layer, and each recognition branch includes at least a backbone network, a feature conversion network, and a transformer network;

[0041] A processing module, configured to, for each set of training data, use an identification branch to process the IQ data to obtain a first feature; use another identification branch to process the GAF data to obtain a second feature; use the feature fusion layer to perform feature fusion on the first feature and the second feature to obtain a fusion feature; use the fully connected layer to perform full connection processing on the fusion feature to obtain a predicted modulation mode of the wireless signal under a corresponding signal-to-noise ratio condition;

[0042] The training module is used to calculate the loss of the predicted modulation mode and the actual modulation mode according to the loss function of the modulation recognition model, and train the modulation recognition model according to the calculation result.

[0043] According to a third aspect of the present application, a computer-readable storage medium is provided, in which at least one instruction is stored. The at least one instruction is loaded and executed by a processor to implement the training method of the modulation recognition model of the wireless signal as described above.

[0044] According to a fourth aspect of the present application, a computer device is provided, the computer device comprising a training device for the modulation recognition model of the wireless signal.

[0045] The beneficial effects of the technical solution provided by this application include at least:

[0046] The debugging recognition model based on deep learning adopts a dual-branch structure to process IQ data and GAF ​​data respectively. Since IQ data and GAF ​​data can complement each other, the debugging recognition model can fully extract the feature information of the two and fuse them to improve the recognition accuracy.

[0047] The modulation recognition model has strong generalization ability, and the multi-head attention unit in it performs well when processing data sets containing multiple modulation modes. Compared with other single data modality models, it can perform better in the classification accuracy of high and low order modulation modes.

[0048] First, the backbone network in the recognition branch is used to extract sufficient local features of the data, and then the global information of the data is extracted through the multi-head attention unit. Finally, the extracted features are fused, which can combine local and global features to improve the recognition accuracy.

[0049] The backbone network adopts a deeply separable structure, that is, the number of residual basic modules in the backbone network can be adjusted according to the complexity of the task to balance the network complexity. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0051] Figure 1 is a structural schematic diagram of a debugging identification model according to some exemplary embodiments;

[0052] Figure 2 It is a flowchart of a method for training a modulation recognition model of a wireless signal provided by an embodiment of the present application;

[0053] Figure 3 It is a flowchart of a method for training a modulation recognition model of a wireless signal provided by an embodiment of the present application;

[0054] Figure 4 is a flow chart of a modulation identification method for a wireless signal provided by an embodiment of the present application;

[0055] Figure 5 is a schematic diagram of a signal processing flow provided by an embodiment of the present application;

[0056] Figure 6 It is a structural block diagram of a training device for a modulation recognition model of a wireless signal provided by an embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0058] like Figure 1 As shown, the present application constructs a modulation recognition model, which includes two recognition branches, a feature fusion layer and a fully connected layer, each recognition branch is connected to the feature fusion layer, and the feature fusion layer is connected to the fully connected layer. Among them, one recognition branch is used to process the in-phase quadrature (IQ) data corresponding to the wireless signal to obtain the first feature, and the other recognition branch is used to process the (Gramian Angular Field, GAF) data to obtain the second feature. The feature fusion layer performs feature fusion on the first feature and the second feature obtained by the two recognition branches to obtain a fused feature, and the fully connected layer processes the fused feature to obtain the final recognition result.

[0059] The structures of the recognition branch and feature fusion layer are explained below.

[0060] (1) Identify branches

[0061] The recognition branch includes at least a backbone network, a feature conversion network, and a transformer network.

[0062] ① The backbone network can also be called Convolutional Neural Networks (CNN), which is composed of multiple residual basic modules in series. Each residual basic module includes at least a batch normalization unit (BN), a convolution unit (Conv), a channel attention unit (Squeeze-and-Excitation, SE) and a rectified linear unit (Relu). Among them, the convolution unit includes a depth convolution unit (Dconv) and a point-by-point convolution unit (Pconv).

[0063] First, the input features are normalized by batch normalization units; then, the features are deeply convolved by 1×15 convolution kernels, so that the model can capture local features and interpret these features in a wider context; then, the channel attention unit is introduced to dynamically recalibrate the feature channels of the convolutional neural network, enhance key feature learning and suppress secondary features; then, the output of the deep convolution is combined by 1×1 convolution kernels to achieve information interaction between channels. The number of output channels of each residual basic module is 16, and then the channel splicing operation is performed with the previous residual basic module to finally obtain the first intermediate feature.

[0064] Among them, the backbone network adopts a deeply separable structure, that is, the number of residual basic modules in the backbone network can be adjusted according to the complexity of the task. As the network depth increases, the ability to extract local features is correspondingly enhanced. Figure 1 In the above figure, the recognition branch corresponding to IQ data includes r1 residual basic modules, and the recognition branch corresponding to GAF data includes r2 residual basic modules. By adding channel attention units to the deep separable structure, the weights between channels can be adjusted, thereby improving the performance of the backbone network in extracting features.

[0065] The recognition branch corresponding to the GAF data includes not only the backbone network, feature conversion network and transformer network, but also a Gaussian blur module (Gaussian) and a reshape module (Reshape). The Gaussian blur module is used to reduce the dimension of the GAF data, and the reshape module is used to convert the dimension of the reduced data to the same dimension as the IQ data, so as to serve as the input of the subsequent residual basic module.

[0066] ②The feature conversion network can also be called Feature Transition, which is composed of a convolution module (Conv1D) and a transposition module (Permute) connected in series.

[0067] First, a dimensionality reduction operation is performed on the first intermediate feature through a one-dimensional convolution module with a convolution kernel size of 1 to reduce the dimension of the feature output by the backbone network and reduce the complexity of the model. Then, the feature is dimensionalized to exchange the last two dimensions, and finally the obtained second intermediate feature is output to the transformer network.

[0068] ③The transformer network can also be called Transformer, which is composed of a class token embedding module, a positional encoding module, and multiple encoding modules (Transformer Encoder) in series. The number of encoding modules can be set according to needs. Figure 1 Take n as an example.

[0069] First, an embedding class tag is added to the second intermediate feature through the tag embedding module, and the second intermediate feature is positionally encoded through the position encoding module, and then the results of the two are fused and output to the encoding module. The encoding module is based on the self-attention mechanism and can process the information of all elements in the sequence at the same time. The processing of each element takes into account the information of all other elements, which enables the encoding module to capture the complex dependencies between data.

[0070] The encoding module processes the input tensor through a multi-head attention network (MSH) and a feed-forward neural network layer (FFN), and each layer uses residual connections and layer normalization (Norm), which helps avoid information loss and gradient vanishing problems in multi-layer networks.

[0071] In the present application, the recognition result output by the recognition branch corresponding to the IQ data is referred to as the first feature, and the recognition result output by the recognition branch corresponding to the GAF data is referred to as the second feature.

[0072] (2) Feature Fusion Layer

[0073] The feature fusion layer includes at least a concatenation unit (C) and a convolution unit (Conv).

[0074] First, the first and second features output by the two recognition branches are spliced ​​in the channel dimension through a splicing unit; then, the local features of the third unit obtained after splicing are extracted through a one-dimensional convolution unit to obtain a fused feature.

[0075] The modulation recognition model combines the cross entropy loss function with the SoftMax (regression) function classifier to more accurately measure the difference between the predicted modulation mode and the actual modulation mode, thereby reconstructing more accurate signal values ​​and improving the accuracy of model training.

[0076] The cross entropy loss function is calculated as follows: for a set of data points, we calculate the average information entropy between the probability distribution predicted by the model and the actual label distribution. Its mathematical expression is as follows:

[0077]

[0078] Where m is the number of labels, t[i] is the actual label, and p[i] is the predicted probability of the label, which is calculated as:

[0079]

[0080] Among them, z[i] is the feature map after Relu activation, and s is the number of categories of the classification task.

[0081] After the modulation recognition model is constructed, it needs to be trained. Figure 2 As shown, it shows a method flow chart of a method for training a modulation recognition model of a wireless signal provided by an embodiment of the present application. The method for training a modulation recognition model of a wireless signal may include:

[0082] Step 201, obtaining a training data set, where each set of training data in the training data set includes IQ data, GAF data and labels of wireless signals, where the labels are used to mark actual modulation modes of wireless signals under corresponding signal-to-noise ratio conditions.

[0083] In this embodiment, the data in the public data set RML2016.10B are selected as wireless signals, and IQ data, GAF data and labels are generated according to each wireless signal. Among them, the data set contains 11 standard modulation methods, including digital modulation and analog modulation, and the specific types are as follows:

[0084] (1) Digital modulation: Binary Phase Shift Keying (BPSK), Quadrature Phase Shift Keying (QPSK), 8Phase Shift Keying (8PSK), Quadrature Amplitude Modulation (QAM) 16, Quadrature Amplitude Modulation 64, Gaussian Frequency Shift Keying (GFSK), Continuous-Phase Frequency Shift Keying (CPFSK), Pulse Amplitude Modulation (PAM) 4;

[0085] (2) Analog modulation: Wide-Band Frequency Modulation (WBFM), Amplitude Modulation Double Sideband (AM-DSB), Amplitude Modulation Single Sideband (AM-SSB).

[0086] Under 20 SNR conditions (from -20dB to 18dB, 2dB interval), each modulation mode contains 128 dual-channel IQ data at each SNR value.

[0087] IQ data is time series data, which contains information about the time dimension. However, sometimes we can interpret univariate time series data from other dimensions, such as transforming IQ data into a constellation diagram, so that modulation recognition can be performed in the image field. Inspired by the above, in order to enrich the diversity of data, we introduce GAF into the modulation recognition task. GAF is a technology that can convert time series data into spatial information. It can effectively preserve the temporal dependency of signal sequences through a custom inner product.

[0088] Since the input of GAF is a one-dimensional time series, we take the modulus of the complex IQ data as input to generate a time series X that reflects the amplitude-time relationship. The conversion formula is as follows:

[0089]

[0090] Different wireless signals are converted into corresponding GAF images based on IQ data, that is, the IQ data of each wireless signal is subjected to GAF transformation to obtain the Gram angle sum field (GASF) matrix and the Gram angle difference field (GADF) matrix. Among them, GASF mainly emphasizes the phase relationship of the data, while GADF focuses on the phase difference between the data. Such analysis helps to understand and utilize the intrinsic characteristics of the data at a deeper level when processing complex signals. In this application, we set SGASF=64, SGADF=64. In other words, the GAF data includes the Gram angle sum field (GASF) matrix and the Gram angle difference field (GADF) matrix, and the dimensions of these two matrices are both 64×64.

[0091] We can divide the IQ data and GAF ​​data into training data set, validation data set and test data set in the ratio of 6:2:2, where the IQ data and GAF ​​data of each wireless signal correspond one to one. During the training phase, the validation data set is used to adjust parameters such as batch size, optimizer, learning rate, etc. After the model training is completed, the validation data set is used to evaluate the model.

[0092] Step 202: construct a modulation recognition model.

[0093] The structure of the modulation recognition model is as follows Figure 1 shown.

[0094] Step 203, for each set of training data, use one recognition branch to process the IQ data to obtain the first feature; use another recognition branch to process the GAF data to obtain the second feature; use the feature fusion layer to fuse the first feature and the second feature to obtain a fused feature; use the fully connected layer to fully connect the fused feature to obtain the predicted modulation mode of the wireless signal under the corresponding signal-to-noise ratio condition.

[0095] The IQ data and GAF ​​data in each set of training data are input into the modulation recognition model in a one-to-one correspondence, and the modulation recognition model outputs the predicted modulation mode.

[0096] Step 204 , performing loss calculation on the predicted modulation mode and the actual modulation mode according to the loss function of the modulation recognition model, and training the modulation recognition model according to the calculation result.

[0097] In the training phase, the modulation recognition model based on IQ data and GAF ​​data is trained, and the learning rate is adjusted for multiple iterations until the modulation recognition model reaches stability, and the model parameters are saved. Then, these model parameters are reloaded into the modulation recognition model, and the signal type on the test data set is identified based on the trained modulation recognition model. The accuracy rate under each signal-to-noise ratio and the loss rate and average accuracy rate under the entire signal-to-noise ratio are calculated based on the verification data set, so as to evaluate the model performance and adjust the model parameters until the modulation recognition model reaches stability.

[0098] To summarize, the training method of the modulation recognition model of the wireless signal provided in the embodiment of the present application is based on a deep learning debugging recognition model, and adopts a dual-branch structure to process the IQ data and GAF ​​data respectively. Since the IQ data and GAF ​​data can complement each other, the debugging recognition model can fully extract the feature information of the two and fuse them to improve the recognition accuracy.

[0099] The backbone network adopts a deeply separable structure, that is, the number of residual basic modules in the backbone network can be adjusted according to the complexity of the task to balance the network complexity.

[0100] like Figure 3 As shown, it shows a flow chart of a method for training a modulation recognition model of a wireless signal provided by an embodiment of the present application. The method for training a modulation recognition model of a wireless signal may include:

[0101] Step 301, obtaining a training data set, where each set of training data in the training data set includes in-phase-quadrature IQ data, Gram angle field GAF ​​data and a label of a wireless signal, where the label is used to mark an actual modulation mode of the wireless signal under a corresponding signal-to-noise ratio condition.

[0102] The method for generating the training data set is described in step 201 and will not be described in detail here.

[0103] Step 302: construct a modulation recognition model.

[0104] Step 303: For each set of training data, use a recognition branch to process the IQ data to obtain a first feature.

[0105] Specifically, using an identification branch to process the IQ data to obtain the first feature may include:

[0106] (1) Using multiple residual basic modules in the backbone network to process the IQ data respectively, a first intermediate feature is obtained.

[0107] Among them, when the backbone network includes r1 residual basic modules, the IQ data is processed separately by using multiple residual basic modules in the backbone network to obtain the first intermediate feature, which may include: for the first residual basic module in the backbone network, the IQ data is processed by the batch normalization unit, the convolution unit, the channel attention unit and the rectified linear unit in the first residual basic module to obtain a first processing result, and the first processing result is output to the second residual basic module; for the vth residual basic module in the backbone network, the v-1th processing result output by the v-1th residual basic module is processed by the batch normalization unit, the convolution unit, the channel attention unit and the rectified linear unit in the vth residual basic module to obtain the vth processing result, and the vth processing result is output to the v+1th residual basic module, 2≤v≤r1; the processing result output by the r1th residual basic module is determined as the first intermediate feature.

[0108] First, the input features are normalized by batch normalization units; then, the features are deeply convolved by 1×15 convolution kernels, so that the model can capture local features and interpret these features in a wider context; then, the channel attention unit is introduced to dynamically recalibrate the feature channels of the convolutional neural network, enhance key feature learning and suppress secondary features; then, the output of the deep convolution is combined by 1×1 convolution kernels to achieve information interaction between channels. The number of output channels of each residual basic module is 16, and then the channel splicing operation is performed with the previous residual basic module to finally obtain the first intermediate feature.

[0109] (2) The first intermediate feature is processed using the convolution module and the transposition module in the feature conversion network to obtain the second intermediate feature.

[0110] First, a dimensionality reduction operation is performed on the first intermediate feature through a one-dimensional convolution module with a convolution kernel size of 1 to reduce the dimension of the feature output by the backbone network and reduce the complexity of the model. Then, the feature is dimensionalized to exchange the last two dimensions, and finally the obtained second intermediate feature is output to the transformer network.

[0111] (3) Using the tag embedding module and the position encoding module in the transformer network to process the second intermediate feature respectively, superimposing the two processing results obtained after the processing, and using multiple encoding modules in the transformer network to encode the tensor obtained after the superposition to obtain the first feature.

[0112] First, an embedding class tag is added to the second intermediate feature through the tag embedding module B is the batch size, and the second intermediate feature is positionally encoded through the position encoding module L is the number of feature channels, and the results of the two are fused and output to the encoding module. The fusion formula is as follows:

[0113]

[0114] Among them, concat represents the fusion operation. is the output of the feature conversion network, is the result of embedding class tags and position encoding.

[0115] The encoding module is based on the self-attention mechanism and can process the information of all elements in the sequence at the same time. The processing of each element takes into account the information of all other elements, which enables the encoding module to capture the complex dependencies between data.

[0116] The encoding module processes the input tensor through a multi-head attention network (MSH) and a feed-forward neural network layer (FFN), and each layer uses residual connections and layer normalization (Norm), which helps avoid information loss and gradient vanishing problems in multi-layer networks.

[0117] Specifically, when the transformer includes n encoding modules, multiple encoding modules in the transformer network are used to encode the tensor obtained after superposition to obtain a first feature, which may include: for the first encoding module in the transformer network, the tensor is processed by the multi-head attention unit and the feedforward unit in the first encoding module to obtain a first encoding result, and the first encoding result is output to the second encoding module; for the u-th encoding module in the transformer network, the u-1-th encoding result is processed by the multi-head attention unit and the feedforward unit in the u-th encoding module to obtain the u-th encoding result, and the u-th encoding result is output to the u+1-th encoding module, 2≤u≤n; the encoding result output by the n-th encoding module is determined as the first feature.

[0118] The multi-head attention unit linearly maps the tensor to obtain multiple sets of queries (Q), keys (K), and values ​​(V), as follows:

[0119]

[0120] Where X is the input tensor, W i V is a learnable weight matrix corresponding to the i-th "head". The formula for calculating the attention weight of each head is as follows:

[0121] head i =Attention(Q i ,K i ,V i )

[0122]

[0123] Among them, d k is the dimension of each vector in X, T represents transposition, and the weighted value vectors output by each head are concatenated together to obtain the final multi-head attention weight. The formula is as follows:

[0124] MH(Q,K,V)=Concat(head1,...,head h )W O

[0125] Among them, W O is a learnable weight matrix. The multi-head attention unit uses residual connection to add its output to the input and then normalize it. Subsequently, this tensor is input into the feedforward neural network with the following formula:

[0126] X MH =LayerNorm(X+MutiHead(Q,K,V))

[0127] XOutput =LayerNorm(X MH +FNN(X MH ))

[0128] The output of the transformer network, i.e. the first characteristic, is expressed as

[0129] Step 304: Use another recognition branch to process the GAF data to obtain a second feature.

[0130] Among them, the recognition branch corresponding to the GAF data also includes a Gaussian blur module and a reshaping module, and another recognition branch is used to process the GAF data to obtain the second feature, which may include:

[0131] (1) Use the Gaussian blur module to perform Gaussian blur processing on the GAF data to obtain the third intermediate feature.

[0132] In order to take into account the complexity and classification accuracy of the modulation recognition model, we use the Gaussian blur module to reduce the dimensions of the previously generated GASF matrix and GADF matrix to 16×16.

[0133] (2) Use the reshaping module to transform the dimension of GAF data and obtain the fourth intermediate feature.

[0134] We reshape the GASF matrix and GADF matrix to 2×128 by dimension conversion so that the fourth intermediate feature has the same sequence length as the IQ data.

[0135] (3) Using multiple basic modules in the backbone network to process the fourth intermediate feature respectively, to obtain the fifth intermediate feature.

[0136] (4) The fifth intermediate feature is processed using the convolution module and the transposition module in the feature conversion network to obtain the sixth intermediate feature.

[0137] (5) Using the tag embedding module and the position encoding module in the transformer network to process the sixth intermediate feature respectively, superimposing the two processed results, and using the encoding module in the transformer module to encode the tensor obtained after superposition to obtain the second feature.

[0138] The processing flow of the backbone network, feature conversion network and transformer network on the intermediate features is the same as the processing flow described in step 303, and will not be repeated here.

[0139] The output of the transformer network, i.e. the second characteristic, is expressed as

[0140] Step 305, using the concatenation unit in the feature fusion layer to concatenate the first feature and the second feature to obtain a third feature; using the convolution unit in the feature fusion layer to convolve the third feature to obtain a fused feature.

[0141] The feature fusion layer fuses the IQ data and GAF ​​data to obtain the fused features.

[0142]

[0143] Step 306: Use a fully connected layer to perform full connection processing on the fused features to obtain a predicted modulation mode of the wireless signal under a corresponding signal-to-noise ratio condition.

[0144] Step 307: Calculate the loss of the predicted modulation mode and the actual modulation mode according to the loss function of the modulation recognition model, and train the modulation recognition model according to the calculation result.

[0145] In the training phase, the modulation recognition model based on IQ data and GAF ​​data is trained, and the learning rate is adjusted for multiple iterations until the modulation recognition model reaches stability, and the model parameters are saved. Then, these model parameters are reloaded into the modulation recognition model, and the signal type on the test data set is identified based on the trained modulation recognition model. The accuracy rate under each signal-to-noise ratio and the loss rate and average accuracy rate under the entire signal-to-noise ratio are calculated based on the verification data set, so as to evaluate the model performance and adjust the model parameters until the modulation recognition model reaches stability.

[0146] To summarize, the training method of the modulation recognition model of the wireless signal provided in the embodiment of the present application is based on a deep learning debugging recognition model, and adopts a dual-branch structure to process the IQ data and GAF ​​data respectively. Since the IQ data and GAF ​​data can complement each other, the debugging recognition model can fully extract the feature information of the two and fuse them to improve the recognition accuracy.

[0147] The modulation recognition model has strong generalization ability, and the multi-head attention unit in it performs well when processing data sets containing multiple modulation modes. Compared with other single data modality models, it can perform better in the classification accuracy of high and low order modulation modes.

[0148] First, the backbone network in the recognition branch is used to extract sufficient local features of the data, and then the global information of the data is extracted through the multi-head attention unit. Finally, the extracted features are fused, which can combine local and global features to improve the recognition accuracy.

[0149] The backbone network adopts a deeply separable structure, that is, the number of residual basic modules in the backbone network can be adjusted according to the complexity of the task to balance the network complexity.

[0150] After obtaining the trained modulation recognition model, the modulation recognition model can be used to identify the debugging mode of the wireless signal. Figure 4 As shown, it shows a method flow chart of a modulation identification method for a wireless signal provided by an embodiment of the present application. The modulation identification method for a wireless signal may include:

[0151] Step 401: Acquire a wireless signal to be identified.

[0152] Figure 5 The process of transmitting wireless signals through a single model is shown. The single model includes a transmitter, a wireless channel, and a receiver. The baseband signal generator in the transmitter generates a baseband signal, modulates the baseband signal through IQ modulation, transmits the RF signal through the RF front-end, and the receiver receives the RF signal through the RF front-end. The RF signal is converted into a digital signal through an analog / digital converter, and the wireless signal to be identified is obtained through IQ demodulation.

[0153] Step 402: Generate IQ data and GAF ​​data according to the wireless signal.

[0154] Step 403: Process the IQ data using a recognition branch in the trained modulation recognition model to obtain a first feature.

[0155] Step 404: Use another recognition branch in the modulation recognition model to process the GAF data to obtain a second feature.

[0156] Step 405: Use the feature fusion layer in the modulation recognition model to fuse the first feature and the second feature to obtain a fused feature.

[0157] Step 406, using the fully connected layer in the modulation recognition model to perform fully connected processing on the fused features, to obtain the predicted modulation mode of the wireless signal under the corresponding signal-to-noise ratio condition.

[0158] like Figure 6 As shown, it shows a structural block diagram of a training device for a modulation recognition model of a wireless signal provided by an embodiment of the present application. The training device for a modulation recognition model of a wireless signal may include:

[0159] An acquisition module 610 is used to acquire a training data set, where each set of training data in the training data set includes in-phase-quadrature IQ data, Gram angle field GAF ​​data and a label of the wireless signal, where the label is used to mark an actual modulation mode of the wireless signal under a corresponding signal-to-noise ratio condition;

[0160] A construction module 620 is used to construct a modulation recognition model, the modulation recognition model includes two recognition branches, a feature fusion layer and a fully connected layer, each recognition branch includes at least a backbone network, a feature conversion network, and a transformer network;

[0161] The processing module 630 is used to process the IQ data using one recognition branch to obtain a first feature for each set of training data; process the GAF data using another recognition branch to obtain a second feature; perform feature fusion on the first feature and the second feature using a feature fusion layer to obtain a fusion feature; perform full connection processing on the fusion feature using a full connection layer to obtain a predicted modulation mode of the wireless signal under a corresponding signal-to-noise ratio condition;

[0162] The training module 640 is used to calculate the loss of the predicted modulation mode and the actual modulation mode according to the loss function of the modulation recognition model, and train the modulation recognition model according to the calculation result.

[0163] In an optional embodiment, the processing module 630 is further configured to:

[0164] Using multiple residual basic modules in the backbone network to process the IQ data respectively to obtain the first intermediate features;

[0165] The first intermediate feature is processed by using a convolution module and a transposition module in a feature conversion network to obtain a second intermediate feature;

[0166] The second intermediate feature is processed respectively by using the tag embedding module and the position encoding module in the transformer network, the two processing results obtained after the processing are superimposed, and the tensor obtained after the superposition is encoded by using multiple encoding modules in the transformer network to obtain the first feature.

[0167] In an optional embodiment, when the backbone network includes r1 residual basic modules, the processing module 630 is further configured to:

[0168] For the first residual basic module in the backbone network, the IQ data is processed by the batch normalization unit, the convolution unit, the channel attention unit and the rectified linear unit in the first residual basic module to obtain a first processing result, and the first processing result is output to the second residual basic module;

[0169] For the vth residual basic module in the backbone network, the v-1th processing result output by the v-1th residual basic module is processed by the batch normalization unit, convolution unit, channel attention unit and rectified linear unit in the vth residual basic module to obtain the vth processing result, and the vth processing result is output to the v+1th residual basic module, 2≤v≤r1;

[0170] The processing result output by the r1th residual basic module is determined as the first intermediate feature.

[0171] In an optional embodiment, when the transformer includes n encoding modules, the processing module 630 is further configured to:

[0172] For the first encoding module in the transformer network, the tensor is processed by the multi-head attention unit and the feedforward unit in the first encoding module to obtain the first encoding result, and the first encoding result is output to the second encoding module;

[0173] For the u-th encoding module in the transformer network, the u-1-th encoding result is processed by the multi-head attention unit and the feedforward unit in the u-th encoding module to obtain the u-th encoding result, and the u-th encoding result is output to the u+1-th encoding module, 2≤u≤n;

[0174] The encoding result output by the nth encoding module is determined as the first feature.

[0175] In an optional embodiment, the recognition branch corresponding to the GAF data further includes a Gaussian blur module and a reshaping module, and the processing module 630 is further used to:

[0176] Use the Gaussian blur module to perform Gaussian blur processing on the GAF data to obtain the third intermediate feature;

[0177] The GAF data is transformed using the reshape module to obtain the fourth intermediate feature;

[0178] Using a plurality of basic modules in the backbone network to process the fourth intermediate feature respectively, to obtain a fifth intermediate feature;

[0179] The fifth intermediate feature is processed by using a convolution module and a transposition module in a feature conversion network to obtain a sixth intermediate feature;

[0180] The sixth intermediate feature is processed respectively by the tag embedding module and the position encoding module in the transformer network, the two processed results are superimposed, and the tensor obtained after superposition is encoded by the encoding module in the transformer module to obtain the second feature.

[0181] In an optional embodiment, the processing module 630 is further configured to:

[0182] Using the splicing unit in the feature fusion layer to splice the first feature and the second feature to obtain a third feature;

[0183] The convolution unit in the feature fusion layer is used to perform convolution processing on the third feature to obtain a fused feature.

[0184] In an optional embodiment, the acquisition module 610 is further used to acquire a wireless signal to be identified; generate IQ data and GAF ​​data according to the wireless signal;

[0185] The processing module 630 is also used to use a recognition branch in the trained modulation recognition model to process the IQ data to obtain a first feature; use another recognition branch in the modulation recognition model to process the GAF data to obtain a second feature; use the feature fusion layer in the modulation recognition model to fuse the first feature and the second feature to obtain a fused feature; use the fully connected layer in the modulation recognition model to fully connect the fused feature to obtain the predicted modulation mode of the wireless signal under the corresponding signal-to-noise ratio condition.

[0186] To summarize, the training device for the modulation recognition model of the wireless signal provided in the embodiment of the present application is based on a deep learning debugging recognition model, and adopts a dual-branch structure to process the IQ data and GAF ​​data respectively. Since the IQ data and GAF ​​data can complement each other, the debugging recognition model can fully extract the feature information of the two and fuse them to improve the recognition accuracy.

[0187] The modulation recognition model has strong generalization ability, and the multi-head attention unit in it performs well when processing data sets containing multiple modulation modes. Compared with other single data modality models, it can perform better in the classification accuracy of high and low order modulation modes.

[0188] First, the backbone network in the recognition branch is used to extract sufficient local features of the data, and then the global information of the data is extracted through the multi-head attention unit. Finally, the extracted features are fused, which can combine local and global features to improve the recognition accuracy.

[0189] The backbone network adopts a deeply separable structure, that is, the number of residual basic modules in the backbone network can be adjusted according to the complexity of the task to balance the network complexity.

[0190] An embodiment of the present application provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is loaded and executed by a processor to implement the training method of the modulation recognition model of the wireless signal as described above.

[0191] An embodiment of the present application provides a computer device, which includes a training device for a modulation recognition model of any wireless signal described above.

[0192] It should be noted that: the training device for the modulation recognition model of wireless signals provided in the above-mentioned embodiment only uses the division of the above-mentioned functional modules as an example when training the modulation recognition model of wireless signals. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the training device for the modulation recognition model of wireless signals is divided into different functional modules to complete all or part of the functions described above. In addition, the training device for the modulation recognition model of wireless signals provided in the above-mentioned embodiment and the training method embodiment for the modulation recognition model of wireless signals belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0193] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0194] The above description is not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the embodiments of the present application.

Claims

1. A method for training a modulation recognition model of a wireless signal, characterized in that: The method comprises: Acquire a training data set, where each set of training data in the training data set includes in-phase-quadrature IQ data, Gram angle field GAF ​​data, and a label of a wireless signal, where the label is used to mark an actual modulation mode of the wireless signal under a corresponding signal-to-noise ratio condition; Constructing a modulation recognition model, wherein the modulation recognition model includes two recognition branches, a feature fusion layer and a fully connected layer, and each recognition branch includes at least a backbone network, a feature conversion network, and a transformer network; For each set of training data, the IQ data is processed by one identification branch to obtain a first feature; the GAF data is processed by another identification branch to obtain a second feature; the first feature and the second feature are fused by the feature fusion layer to obtain a fused feature; the fused feature is fully connected by the fully connected layer to obtain a predicted modulation mode of the wireless signal under a corresponding signal-to-noise ratio condition; The predicted modulation mode and the actual modulation mode are subjected to loss calculation according to the loss function of the modulation recognition model, and the modulation recognition model is trained according to the calculation result.

2. The method for training a modulation recognition model for wireless signals according to claim 1, characterized in that: The using an identification branch to process the IQ data to obtain a first feature includes: Using a plurality of residual basic modules in the backbone network to process the IQ data respectively to obtain a first intermediate feature; Processing the first intermediate feature using a convolution module and a transposition module in the feature conversion network to obtain a second intermediate feature; The second intermediate feature is processed respectively by using a label embedding module and a position encoding module in the transformer network, the two processing results obtained after the processing are superimposed, and the tensor obtained after the superposition is encoded by using multiple encoding modules in the transformer network to obtain the first feature.

3. The method for training a modulation recognition model of a wireless signal according to claim 2, characterized in that: When the backbone network includes r1 residual basic modules, the method of using the plurality of residual basic modules in the backbone network to process the IQ data respectively to obtain the first intermediate feature includes: For a first residual basic module in the backbone network, the IQ data is processed by a batch normalization unit, a convolution unit, a channel attention unit, and a rectified linear unit in the first residual basic module to obtain a first processing result, and the first processing result is output to a second residual basic module; For the vth residual basic module in the backbone network, the v-1th processing result output by the v-1th residual basic module is processed by the batch normalization unit, the convolution unit, the channel attention unit and the rectified linear unit in the vth residual basic module to obtain the vth processing result, and the vth processing result is output to the v+1th residual basic module, 2≤v≤r1; The processing result output by the r1th residual basic module is determined as the first intermediate feature.

4. The method for training a modulation recognition model of a wireless signal according to claim 2, characterized in that: When the transformer includes n encoding modules, encoding the tensor obtained after superposition using multiple encoding modules in the transformer network to obtain the first feature includes: For a first encoding module in the transformer network, the tensor is processed by a multi-head attention unit and a feedforward unit in the first encoding module to obtain a first encoding result, and the first encoding result is output to a second encoding module; For the u-th encoding module in the transformer network, the u-1-th encoding result is processed by the multi-head attention unit and the feedforward unit in the u-th encoding module to obtain the u-th encoding result, and the u-th encoding result is output to the u+1-th encoding module, 2≤u≤n; The encoding result output by the nth encoding module is determined as the first feature.

5. The method for training a modulation recognition model for wireless signals according to claim 1, characterized in that: The recognition branch corresponding to the GAF data further includes a Gaussian blur module and a reshaping module, and the GAF data is processed by another recognition branch to obtain a second feature, including: Using the Gaussian blur module to perform Gaussian blur processing on the GAF data to obtain a third intermediate feature; Using the reshaping module to perform dimension conversion on the GAF data to obtain a fourth intermediate feature; Using a plurality of basic modules in the backbone network to process the fourth intermediate feature respectively to obtain a fifth intermediate feature; Processing the fifth intermediate feature using a convolution module and a transposition module in the feature conversion network to obtain a sixth intermediate feature; The sixth intermediate feature is processed respectively by using the label embedding module and the position encoding module in the transformer network, the two results obtained after the processing are superimposed, and the tensor obtained after the superposition is encoded by using the encoding module in the transformer module to obtain the second feature.

6. The method for training a modulation recognition model of a wireless signal according to claim 1, characterized in that: The using the feature fusion layer to fuse the first feature and the second feature to obtain a fused feature includes: Using a splicing unit in the feature fusion layer to splice the first feature and the second feature to obtain a third feature; The third feature is convolved using the convolution unit in the feature fusion layer to obtain the fused feature.

7. The method for training a modulation recognition model of a wireless signal according to claim 1, characterized in that: The method further comprises: Acquire a wireless signal to be identified; generating IQ data and GAF ​​data according to the wireless signal; Processing the IQ data using a recognition branch in a trained modulation recognition model to obtain a first feature; Using another recognition branch in the modulation recognition model to process the GAF data to obtain a second feature; Using a feature fusion layer in the modulation recognition model to fuse the first feature and the second feature to obtain a fused feature; The fusion features are fully connected using the fully connected layer in the modulation recognition model to obtain a predicted modulation mode of the wireless signal under a corresponding signal-to-noise ratio condition.

8. A training device for a modulation recognition model of a wireless signal, characterized in that: The device comprises: An acquisition module, used to acquire a training data set, each set of training data in the training data set includes in-phase-quadrature IQ data, Gram angle field GAF ​​data and a label of the wireless signal, and the label is used to mark the actual modulation mode of the wireless signal under the corresponding signal-to-noise ratio condition; A construction module is used to construct a modulation recognition model, wherein the modulation recognition model includes two recognition branches, a feature fusion layer and a fully connected layer, and each recognition branch includes at least a backbone network, a feature conversion network, and a transformer network; A processing module, configured to, for each set of training data, use an identification branch to process the IQ data to obtain a first feature; use another identification branch to process the GAF data to obtain a second feature; use the feature fusion layer to perform feature fusion on the first feature and the second feature to obtain a fusion feature; use the fully connected layer to perform full connection processing on the fusion feature to obtain a predicted modulation mode of the wireless signal under a corresponding signal-to-noise ratio condition; The training module is used to calculate the loss of the predicted modulation mode and the actual modulation mode according to the loss function of the modulation recognition model, and train the modulation recognition model according to the calculation result.

9. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the training method of the modulation recognition model of the wireless signal as described in any one of claims 1 to 7.

10. A computer device, characterized in that: The computer device comprises: a training device for the modulation recognition model of the wireless signal as described in claim 8.

Citation Information

Cited By

  • Universal carrier modulation method and system

    CN119383044A

  • A universal carrier modulation method and system

    CN119383044B

  • Radio signal identification method based on feature and IQ comparison pre-training

    CN120217112A