U-Mama-based electromagnetic signal identification method and system
The electromagnetic signal recognition model constructed by the U-Mamba algorithm combines channel attention and feature extraction of Mamba blocks to solve the problem of insufficient identification accuracy and classification capabilities of disturbed signals in complex electromagnetic environments, and realizes efficient noise denoising and classification Joint optimization improves identification accuracy and performance.
Patent Information
- Application Number
- CN202411034092.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-30
AI Technical Summary
The prior art has problems with insufficient accuracy and classification capabilities for identifying disturbed signals in complex electromagnetic environments, especially the recognition accuracy rate is reduced under noise interference, and the separation of denoising and classification training of existing methods may lead to semantics. Feature loss.
Using the electromagnetic signal recognition method based on U-Mamba, an identification model including coding module, multi-scale learning module and classification module is constructed, and features are extracted using the channel attention mechanism and Mamba block, combining reconstruction loss and logarithmic absolute error loss. Denoising processing realizes joint optimization of denoising and classification.
It improves the identification accuracy and classification ability of disturbed electromagnetic signals, reduces computational complexity, avoids overfitting, and maintains efficient identification performance when training data is limited.
Smart Images

Figure CN118965070A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electromagnetic signal modulation recognition, and in particular to an electromagnetic signal recognition method and system based on U-Mamba. Background Art
[0002] As an intermediate step between signal reception and demodulation, electromagnetic signal modulation recognition is essentially a pattern recognition task that aims to automatically identify and distinguish the modulation mode of the received unknown electromagnetic signal without relevant prior information. This has important practical significance for cognitive radio and plays an important role in military and civilian fields such as electronic reconnaissance, interference identification, spectrum monitoring, and signal reconstruction. For example, in the civilian field, signal modulation recognition is often used to monitor and manage the electromagnetic spectrum, identify the behavior of illegal users occupying and interfering with the frequency band, and ensure communication security; in the military field, identifying the category of electromagnetic signals can obtain relevant information, judge the threat level of enemy interference equipment, and provide assistance to our reconnaissance equipment. However, with the rapid development of radio communication technology, the number of electromagnetic devices has increased exponentially, and the electromagnetic environment has become increasingly complex and changeable with the increase in the number of radio signals and modulation methods. Many external factors make the signal more susceptible to various noise interference during transmission. The signal after interference is often quite different from the original signal, which brings great challenges to signal recognition technology. Therefore, effective interference signal recognition technology has received widespread attention. How to accurately identify the modulation category of the interfered signal in such a dense, complex and diverse electromagnetic environment is an urgent problem to be solved.
[0003] With the rapid development of deep learning methods, convolutional neural networks (CNNs) have been widely used due to their powerful feature extraction capabilities, providing new solutions in addition to traditional recognition methods. Convolutional neural networks can automatically learn discriminative features from input signals for recognition and classification, with high recognition accuracy. However, although convolutional neural networks have powerful local feature extraction capabilities, they are lacking in extracting global features and long-range dependencies due to the limited scope of convolution operations. Therefore, transformer-based models have shown potential in computer vision tasks and have also been used in the field of signal modulation recognition. However, due to the use of attention mechanisms, it usually costs a relatively expensive computational cost, especially when processing long sequence data. How to more efficiently extract discriminative features from complex electromagnetic signals, reduce computational memory, and achieve more effective and accurate modulation recognition remains a challenge.
[0004] On the other hand, the electromagnetic environment is complex and changeable, and the modulated signal is interfered during the transmission process. Various noise interferences will cause a large difference between the modulated signal and the original signal. The model trained only with clean signals performs well in an ideal channel environment, but cannot handle the situation where the distribution of test data and training data is different. Directly using it to classify interfered signals will cause the recognition accuracy to gradually decrease. In addition, most existing methods for processing interfered signals train the classifier and denoising network separately, first training the denoising model and then inputting the model denoising results into the classifier. This two-stage processing method may inevitably remove some semantic features that are important to the recognition task during the denoising process, resulting in poor classification performance. Summary of the invention
[0005] In view of the deficiencies in the prior art, the present invention provides an electromagnetic signal recognition method and system based on U-Mamba, which solves the problems of inaccurate recognition and poor classification ability of the existing interference electromagnetic signal recognition and classification methods.
[0006] The objective of the present invention is achieved by the following technical solutions:
[0007] In a first aspect, the present invention provides an electromagnetic signal recognition method based on U-Mamba, comprising:
[0008] Acquire electromagnetic signal data to be identified, input the electromagnetic signal data to be identified into the constructed recognition model, perform modulation identification on the interfered signal in the electromagnetic signal data, and obtain the final classification result;
[0009] The recognition model is constructed based on the U-Mamba algorithm. The recognition model is a model trained using an electromagnetic signal data set. The electromagnetic signal data set includes an interfered signal and an undisturbed signal. The U-Mamba algorithm is constructed using the Mamba algorithm according to the network structure of Unet.
[0010] As a further improvement of the present invention, the recognition model includes an encoding module, a multi-scale learning module, a decoding module and a classification module connected in sequence;
[0011] The encoding module is used to extract the input interfered signal features and perform downsampling operations to obtain encoded deep features;
[0012] The multi-scale learning module is used to process the encoded deep feature map to obtain decoding input features of different scales;
[0013] The decoding module is used to use the decoded input feature maps of different scales to subtract the encoded deep features at symmetrical positions, further extract local-global features from the subtracted features, and perform upsampling operations to obtain decoded output features;
[0014] The classification module is used to perform feature subtraction between the decoded output feature and the input interfered signal to obtain a denoised feature, perform modulation recognition on the denoised feature, and obtain a final classification result.
[0015] As a further improvement of the present invention, the encoding module includes a channel attention block, a Mamba block, a splicing block and a fusion downsampling block connected in sequence:
[0016] The channel attention module is used to perform channel attention processing on the input interfered signal features to obtain a channel attention feature map;
[0017] The Mamba block is used to extract the input interfered signal features to obtain a coded global feature map;
[0018] The splicing block is used to splice the channel attention feature map and the encoding global feature map to obtain the encoding splicing feature map;
[0019] The fusion downsampling block is used to perform feature fusion on the coded splicing feature map and the input interfered signal feature to obtain the coded fusion feature map, and then perform a downsampling operation on the coded fusion feature map to obtain a reduced-size coded deep feature.
[0020] As a further improvement of the present invention, the channel attention block is specifically used for:
[0021] The interfered signal feature is subjected to an adaptive average pooling operation to obtain a first processing result;
[0022] The interfered signal feature is subjected to an adaptive maximum pooling operation to obtain a second processing result;
[0023] The first processing result and the second processing result are concatenated, and then the concatenated output is processed by one-dimensional convolution, ReLU operation, one-dimensional convolution and Sigmoid function in sequence to obtain a third processing result;
[0024] The third processing result is dot-multiplied with the interfered signal feature to obtain the channel attention feature map.
[0025] As a further improvement of the present invention, a convolution block is also included between the splicing block and the fusion downsampling block, and the convolution block is used to perform convolution processing on the encoded splicing feature map so that the number of channels of the encoded splicing feature map is adjusted to be the same as the input interfered signal feature.
[0026] As a further improvement of the present invention, the specific steps of the multi-scale learning module include:
[0027] Performing one-dimensional dilated convolution operation on the encoded deep features, setting the dilation factor to a fixed value, and obtaining feature maps of different scales;
[0028] The feature maps of different scales are spliced to obtain a spliced multi-scale feature map. After the spliced multi-scale feature map is processed by a one-dimensional convolution operation, a multi-scale learning feature map is finally obtained.
[0029] As a further improvement of the present invention, the decoding module includes a subtraction block, a similarity calculation block and an upsampling block;
[0030] The subtraction block subtracts the multi-scale learning feature map output by the multi-scale learning module from the encoded deep feature output by the previous layer encoding module to obtain a subtraction feature map;
[0031] The similarity calculation block extracts the decoding local features and the decoding global features respectively through two one-dimensional convolutions and Mamba blocks on the subtraction feature map, multiplies the decoding local features by the transpose of the decoding global high-level features to obtain a decoding similarity map, further processes the decoding similarity map through a linear layer, adds the residual of the output of the linear layer to the original decoding similarity map, and multiplies the result with the output results of the two one-dimensional convolutions to obtain an enhanced decoding global feature;
[0032] The upsampling block sequentially processes the enhanced decoded global features through one-dimensional deconvolution, ReLU operation and batch normalization layer to obtain a decoded deep feature map.
[0033] As a further improvement of the present invention, the classification module includes a one-dimensional patch embedding block, a Mamba block, and a classification head connected in sequence;
[0034] The one-dimensional patch embedding block is used to convert the input feature map of the classification module into a set of embedded forms and add position encoding to obtain an embedded feature map;
[0035] The Mamba block is used to extract the global information embedded in the feature map to obtain classification features;
[0036] The classification head is used to perform layer normalization on the classification features, flatten the latter two dimensions through the flatten operation, and then input them into the linear layer to map the number of channels to the same as the total number of categories to obtain the final classification result.
[0037] As a further improvement of the present invention, the loss function in the recognition model is a denoising-classification joint loss function, and the expression of the denoising-classification joint loss function is:
[0038] loss Dc =lossrec +loss lae +loss cla
[0039] In the formula, loss rec Represents the reconstruction loss, loss lae Represents log absolute error loss, loss cla represents the cross entropy loss.
[0040] In a second aspect, the present invention further provides an electromagnetic signal recognition system based on U-Mamba, which is used to implement an electromagnetic signal recognition method of U-Mamba, including:
[0041] The signal recognition module is used to obtain the electromagnetic signal data to be recognized, input the electromagnetic signal data to be recognized into the constructed recognition model, perform modulation recognition on the interfered signal in the electromagnetic signal data, and obtain the final classification result;
[0042] The recognition model construction module is used to construct the recognition model based on the U-Mamba algorithm. The recognition model is a model trained using an electromagnetic signal data set. The electromagnetic signal data set includes an interfered signal and an undisturbed signal. The U-Mamba algorithm is used to construct the recognition model based on the network structure of Unet using the Mamba algorithm.
[0043] The beneficial effects of the present invention are as follows: the electromagnetic signal recognition method based on U-Mamba of the present invention constructs a recognition model through the U-Mamba algorithm, thereby realizing the recognition and classification of the interfered electromagnetic signal. Compared with the existing signal recognition model, the U-Mamba algorithm adopted by the present invention has efficient data processing capability, and when processing the interfered electromagnetic signal, it can complete complex calculation or analysis tasks in a shorter time, and can perform adaptive learning in the process of training data, and can automatically adjust its parameters or strategies according to new data or experience to optimize its performance, thereby improving the accuracy of recognition.
[0044] Further, the recognition model in the present invention, i.e., the U-Mamba algorithm model, includes a coding module, a coding module, a multi-scale learning module, a decoding module and a classification module. The input disturbed signal is subjected to feature coding processing by the coding module. By applying the channel attention mechanism, the recognition model is allowed to automatically learn the importance between feature channels, and the feature representation is adjusted according to the importance of each channel to enhance the model's attention to the key information of the input features. The global features of the input signal data are extracted based on the Mamba block. The Mamba block has a better global feature extraction capability than CNN, and the computing memory is less than that of the transformer, and the reasoning is more efficient. The attention mechanism is spliced and fused with the output of the Mamba block, and added to the input of the coding block to prevent information loss in the feature extraction process. Finally, the feature size is reduced by a downsampling operation, thereby further reducing the computational complexity and effectively preventing the recognition model from overfitting due to the limited amount of training data.
[0045] Furthermore, the multi-scale learning module in the recognition model can extract multi-scale features using the encoded deep features output by the encoding block. Considering that upsampling or pooling layers may cause the loss of the internal structure of the features and thus fail to improve the recognition accuracy, the multi-scale learning module uses dilated convolutions with different expansion factors on the encoded deep features of the encoding module to expand the receptive field, and supplements the multi-scale context information in the decoding module, thereby improving the performance of the network.
[0046] Furthermore, the decoder module combines reconstruction loss and log absolute error loss to denoise the disturbed signal. The model predicts the noise distribution, and the final denoised features are obtained by subtracting the noise features predicted by the model from the input features of the disturbed signal. By combining reconstruction loss, log absolute error loss and classification loss, denoising and classification are performed jointly, so that the denoising part can process the disturbed signal in a way that is conducive to classification, and the classification module can better extract the discriminative information of the denoised features, thereby improving the recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 is a structural schematic diagram of a recognition model provided by an embodiment of the present invention;
[0049] Figure 2It is a structural schematic diagram of a method for identifying an interfered electromagnetic signal based on U-Mamba provided by an embodiment of the present invention;
[0050] Figure 3 is a schematic diagram of the structure of a coding module provided by an embodiment of the present invention;
[0051] Figure 4 is a structural diagram of a decoding module provided by an embodiment of the present invention;
[0052] Figure 5 is a structural diagram of a classification module provided by an embodiment of the present invention;
[0053] Figure 6 It is a schematic diagram of comparison curves of modulation recognition of interfered signals using different methods;
[0054] In the figure, 101 is an encoding module, 102 is a multi-scale learning module, 103 is a decoding module, and 104 is a classification module. DETAILED DESCRIPTION
[0055] In order to make the purpose and technical solution of the present invention clearer and easier to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. The specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0056] Terminology explanation:
[0057] U-Mamba: A new selective structural state space model. The network is built using the Mamba algorithm based on the network structure of Unet and performs well in long sequence modeling tasks. Mamba is suitable for processing long sequence data, such as natural language processing (NLP) and other tasks involving sequence modeling. At its core, it introduces a selection mechanism that can efficiently determine whether the relevance information of each tag in the sequence is worth propagating or discarding. Through global receptive field and dynamic weighting, it alleviates the modeling constraints of convolutional neural networks and provides advanced modeling capabilities similar to Transformers.
[0058] RML: Radio Signal Machine Learning;
[0059] ReLU: Activation Function
[0060] Encoder: encoding module;
[0061] Multi-L: multi-scale learning module;
[0062] Decoder: decoding module;
[0063] CBlock: classification module;
[0064] Flatten operation: Converts a multidimensional array (usually two-dimensional or three-dimensional) into a one-dimensional array.
[0065] The idea of the present invention is to provide an electromagnetic signal recognition method and system based on U-Mamba, the method mainly comprising:
[0066] Acquire electromagnetic signal data to be identified, input the electromagnetic signal data to be identified into the constructed recognition model, perform modulation identification on the interfered signal in the electromagnetic signal data, and obtain the final classification result;
[0067] The recognition model is constructed based on the U-Mamba algorithm. The recognition model is a model trained using an electromagnetic signal data set. The electromagnetic signal data set includes an interfered signal and an undisturbed signal. The U-Mamba algorithm is constructed using the Mamba algorithm according to the network structure of Unet.
[0068] Among them, the recognition model includes an encoding module, a multi-scale learning module, a decoding module and a classification module which are connected in sequence.
[0069] The encoding module is used to extract the input interfered signal features and perform downsampling operations to obtain the encoded deep features. The encoding module includes a channel attention block, a Mamba block, a splicing block and a fusion downsampling block connected in sequence. The channel attention module is used to perform channel attention processing on the input interfered signal features to obtain a channel attention feature map. The Mamba block is used to extract features from the input interfered signal features to obtain an encoded global feature map; the splicing block is used to splice the channel attention feature map and the encoded global feature map to obtain an encoded splicing feature map; the fusion downsampling block is used to perform feature fusion on the encoded splicing feature map and the input interfered signal features to obtain an encoded fusion feature map, and then the encoded fusion feature map is downsampled to obtain a reduced size encoded deep feature.
[0070] Specifically, the channel attention block is specifically used to: obtain a first processing result by performing an adaptive average pooling operation on the interfered signal feature; obtain a second processing result by performing an adaptive maximum pooling operation on the interfered signal feature; concatenate the first processing result with the second processing result, and then process the concatenated output in sequence through one-dimensional convolution, ReLU operation, one-dimensional convolution and Sigmoid function to obtain a third processing result; perform a dot multiplication of the third processing result and the interfered signal feature to obtain the channel attention feature map.
[0071] A convolution block is also included between the splicing block and the fusion downsampling block. The convolution block is used to perform convolution processing on the coded splicing feature map so that the number of channels of the coded splicing feature map is adjusted to be the same as the input interfered signal feature.
[0072] The multi-scale learning module is used to process the encoded deep feature map to obtain decoding input features of different scales. The specific steps of the multi-scale learning module include:
[0073] The encoded deep features are processed by a one-dimensional hole convolution operation, and the expansion factor is set to a fixed value to obtain feature maps of different scales; the feature maps of different scales are spliced to obtain a spliced multi-scale feature map, and the spliced multi-scale feature map is finally processed by a one-dimensional convolution operation to obtain a multi-scale learning feature map.
[0074] The decoding module is used to subtract the decoded input feature maps of different scales from the encoded deep features at symmetrical positions, further extract local-global features from the subtracted features, and perform upsampling operations to obtain decoded output features. The decoding module includes a subtraction block, a similarity calculation block, and an upsampling block.
[0075] Specifically, the subtraction block subtracts the multi-scale learning feature map output by the multi-scale learning module from the encoded deep features output by the previous layer encoding module to obtain a subtraction feature map; the similarity calculation block extracts the decoding local features and the decoding global features respectively through two one-dimensional convolutions and Mamba blocks on the subtraction feature map, multiplies the decoding local features by the transpose of the decoding global high-level features to obtain a decoding similarity map, further processes the decoding similarity map through a linear layer, adds the residual of the output of the linear layer to the original decoding similarity map, and multiplies the result with the output results of the two one-dimensional convolutions to obtain an enhanced decoding global feature; the upsampling block processes the enhanced decoding global features through a one-dimensional deconvolution, a ReLU operation and a batch normalization layer in sequence to obtain a decoding deep feature map.
[0076] The classification module is used to perform feature subtraction between the decoded output feature and the input interfered signal to obtain a denoised feature, perform modulation recognition on the denoised feature, and obtain a final classification result. The classification module includes a one-dimensional patch embedding block, a Mamba block, and a classification head connected in sequence.
[0077] Specifically, the one-dimensional patch embedding block is used to convert the input feature map of the classification module into a set of embedded forms and add position encoding to obtain the embedded feature map; the Mamba block is used to extract the global information of the embedded feature map to obtain the classification features; the classification head is used to perform layer normalization on the classification features, flatten the last two dimensions through the flatten operation, and then input them into the linear layer to map the number of channels to the same as the total number of categories to obtain the final classification result.
[0078] In addition, the loss function in the recognition model is a denoising-classification joint loss function, and the expression of the denoising-classification joint loss function is:
[0079] loss DC =loss rec +loss lae +loss cla
[0080] In the formula, loss rec Represents the reconstruction loss, loss lae Represents log absolute error loss, loss cla represents the cross entropy loss.
[0081] The above recognition model can not only avoid the overfitting phenomenon caused by the lack of training data, but also has higher recognition accuracy and classification ability.
[0082] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings and specific embodiments, wherein the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments.
[0083] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants are intended to cover non-exclusive inclusion, so that an article or device including a series of elements includes not only those elements, but also other elements that are not explicitly listed. In the absence of more restrictions, the elements defined by the statement "including one..." do not exclude the existence of other identical elements in the article or device including the elements.
[0084] Example 1
[0085] like Figure 1-6 As shown, this embodiment provides an electromagnetic signal recognition method based on U-Mamba, and the following is a specific implementation method.
[0086] A recognition model is constructed based on the U-Mamba algorithm, and an electromagnetic signal dataset is used to train the recognition model, wherein the electromagnetic signal dataset includes an interfered signal and an undisturbed signal.
[0087] See also Figure 1 and Figure 2 The recognition model includes an encoding module 101, a multi-scale learning module 102, a decoding module 103 and a classification module 104, wherein the encoding module 101 is used to input the interfered signal features, extract the input signal features through the Mamba block and the attention mechanism, and use the downsampling operation to reduce the feature size, so as to capture the deep features of the encoding; the multi-scale learning module 102 uses the features of the encoding module to further obtain features of different scales, and supplements the multi-scale information in the decoding process; the decoding module 103 is used to further extract the global features of the input features of the decoding module through the Mamba block, calculate the similarity in combination with the convolution output to fuse the local information, and increase the feature size through the upsampling operation; the classification module 104 is used to extract information from the decoded output features to obtain the final classification result.
[0088] The original electromagnetic signal data inputted by the recognition model in this embodiment during the training process is obtained based on the electromagnetic signal data set of the RML series, which is a unified size of 2×128, where 2 is the number of channels and 128 is the signal length. The generation of the interfered signal is to randomly select a certain position of the signal length for all signal data of 18dB in the electromagnetic signal data set, and take 20 consecutive data points from this position to simulate the addition of corresponding noise disturbances, including Gaussian noise, Rayleigh noise and periodic noise. Therefore, the electromagnetic signal disturbed by the noise is the interfered signal, and the uninterrupted signal (which can also be a clean signal) is the original data of the data set, thereby obtaining the interfered signal-clean signal data pair for training the recognition model, and the classification category corresponds to the original category in the data set.
[0089] Denoising is essentially the recovery and reconstruction of the interfered signal data. Based on the preset of the additive noise model, the interfered signal can be expressed as the sum of the clean signal and the noise signal. The task of denoising is to remove the noise in the interfered signal and obtain the clean signal data. It is difficult to directly learn the mapping from the interfered signal to the clean signal, which means that the model must not only learn the complex features in the interfered signal and identify the noise, but also restore the clean signal based on the identified noise distribution. The task that the model needs to complete is more complex and requires more computing resources. Therefore, in the denoising process, the model only needs to learn the noise distribution in the interfered signal, which usually has certain statistical characteristics, which can make the model converge faster and improve model performance.
[0090] like Figure 3As shown, the encoding module 101 of this embodiment includes a channel attention block, a Mamba block, a splicing block and a fusion downsampling block. Among them, the channel attention block is used to perform channel attention calculation on the input features of the encoding module to obtain a channel attention map; the Mamba block is used to perform global feature extraction on the input features of the encoding module to obtain a coded global feature map; the splicing block is used to splice the channel attention feature map and the coded global feature map to obtain a coded splicing feature map; the fusion downsampling block is used to perform feature fusion on the coded splicing feature map and the input features of the encoding module to obtain a coded fused feature map, and downsample the coded fused feature map to obtain a coded deep feature map;
[0091] It should be noted that the input interfered signal first passes through a 3×3 one-dimensional convolution to increase the number of channels to 8. The channel attention block obtains channel weights through adaptive maximum pooling and average pooling, concatenates the two channel weights obtained, and the number of channels becomes 16. The number of channels is reduced to one eighth of the number of input channels, that is, 1, through a 1×1 one-dimensional convolution. After calculation, the number of input channels is increased to 8 through a 1×1 one-dimensional convolution. Finally, the contribution of each channel is calculated through the Sigmoid function, and the input of the encoding module is multiplied by the channel weight, and the importance of each channel is combined to enhance the model's attention to useful information.
[0092] Similarly, the number of channels of the encoded global feature map extracted by the Mamba block is still 8. After fusion by the splicing block, the number of channels of the encoded splicing feature map becomes 16, after which a 1×1 one-dimensional convolution is set to readjust the number of channels to 8, and finally passes through the fusion downsampling block.
[0093] Furthermore, if Figure 3 As shown, the fusion downsampling block of this embodiment is specifically used for: adding the encoded splicing feature map and the input feature of the encoding module to perform feature fusion to obtain a first processing result; downsampling the first processing result, first performing 3×3 one-dimensional convolution to increase the dimension, reducing the number of channels to twice the original, and after ReLU operation, the size of the feature map is reduced to one half by maximum pooling, and finally passing through a batch normalization layer to obtain the encoded deep feature map output by the encoding module.
[0094] The processing of the encoding module can also be expressed as:
[0095] f1=CA(Y)
[0096] f2=Mamba(Y)
[0097] f=DS(Conv(Concat(f1,f2))+Y)
[0098] Among them, Y represents the input features of the encoding module, CA(Y) represents the channel attention operation on the input features of the encoding module, and f1 represents the channel attention feature map; Mamba(Y) represents the global feature extraction operation on the input features of the encoding module, and f2 represents the encoded global feature map; Concat represents the concatenation operation, Conv represents the 1×1 one-dimensional convolution, DS represents the downsampling operation, and f represents the encoded deep feature map output by the encoding module.
[0099] The encoding module processes the input feature map through channel attention blocks, Mamba blocks, concatenation blocks, and fusion downsampling blocks. The channel attention block enhances the interaction between channels in the encoding module, allowing the model to pay more attention to and learn from channels with large contributions, and fuses with the global features extracted by the Mamba block, which has richer spatial global features and improves the feature representation ability of the model. The downsampling operation reduces the computational memory by reducing the size of the feature map.
[0100] The multi-scale learning module 102 of this embodiment performs a 1×1 one-dimensional hole convolution operation on the encoded deep features output by the encoding module, sets the expansion factors to fixed values 1, 2, and 4, respectively, to obtain feature maps {f1, f2, f3} of different scales; performs a splicing operation on the feature maps {f1, f2, f3} of different scales to obtain a spliced multi-scale feature map, and then processes the spliced multi-scale feature map through a 1×1 one-dimensional convolution operation to finally obtain a multi-scale learning feature map F.
[0101] Specifically, in this embodiment, a set of feature maps obtained by three dilated convolutions is represented as {f1, f2, f3}. Experience shows that fusing features of different resolutions is better than using only single-scale features. This embodiment uses a simple splicing operation to complete the fusion operation. The multi-scale learning module 102 can also be represented as:
[0102] f1=Dilate_Conv1(f)
[0103] f2=Dilate_Conv2(f)
[0104] f3=Dilate_Conv4(f)
[0105] F = Conv(Concat(f1,f2,f3))
[0106] Among them, f represents the output of the encoding module, Dilate_Conv(·) represents the dilated convolution operation, the lower right subscript of Dilate_Conv represents the dilation factor, Concat represents the concatenation operation, and Conv(·) represents a 1×1 one-dimensional convolution.
[0107] Subsequently, the decoding module 103 further extracts global features and local features from the input features, and obtains a decoded deep feature map through upsampling. Figure 4 The decoding module 103 is specifically used for: processing the multi-scale learning feature map F output by the multi-scale learning module 102 to obtain input features, further extracting global features from the input features through the Mamba block, and calculating similarity in combination with the convolution output to fuse local information, and finally increasing the feature size through upsampling operation to increase detail information.
[0108] Specifically, the decoding module 103 performs a subtraction process on the multi-scale learning feature map F output by the multi-scale learning module 102 and the output of the previous layer decoding module to obtain the input features of the next layer decoding block; further extracts the global features of the input features through the Mamba block to obtain the decoded global features G, and further enriches the global information in the features; the input features are simultaneously enhanced by two 1×1 one-dimensional convolutions to enhance the local information in the features to obtain the decoded local features L; the decoded local features L are multiplied by the transpose of the decoded global features G to obtain a similarity map, and the output of the similarity map processed by the linear layer is residually added to the original similarity map to obtain the final fused similarity map; the final fused similarity map is multiplied by the decoded local features L to obtain the enhanced decoded deep feature map.
[0109] The decoding module 103 improves the performance and representation ability of the model by fusing global features and local features. The fusion method is based on similarity graph calculation and considers the information interaction between global features and local features. We believe that local features contain more local characteristics, while global features mainly focus on the overall properties of features. Fusion of the two can better extract important information from signal features.
[0110] The calculation formula of the decoding module 103 is:
[0111] L = Conv(Conv(FO))
[0112] G=Mamba(FO)
[0113] sim0=L×G T
[0114] sim=linear(sim0)+sim0
[0115] DF=sim×L
[0116] Among them, F represents the multi-scale learning feature map, O represents the output of the previous decoding module, Conv() represents 1×1 one-dimensional convolution, Mamba represents Mamba block, L represents decoded local features, G represents decoded global features, sim represents similarity, and DF represents the decoded deep feature map output by the decoding module.
[0117] Before inputting the classification module, the decoded deep feature map of the last decoding module is subtracted from the input interfered signal feature to obtain a denoised feature map. The classification module 104 uses a one-dimensional patch embedding operation, a Mamba block and a classification head to extract features from the denoised feature map for modulation recognition. After the features are flattened, the linear layer maps the number of channels to the number of categories to obtain the final classification result.
[0118] In addition, the goal of this embodiment is to perform denoising and classification tasks together. Therefore, a denoising-classification joint loss function is introduced. This loss function can help the model optimize the denoising task and the classification task at the same time, thereby reducing the possibility that the denoising result is not conducive to classification due to the separate denoising-classification, so that the model also considers the impact on classification while denoising, improves the recognition accuracy, and denoising-classification complement each other to help improve the performance of the model.
[0119] Specifically, considering that the reconstruction loss achieves uniform processing of noise disturbances of all channels in the disturbed signal, but there is a situation where the noise distribution is uneven, the logarithmic absolute error loss and the reconstruction loss are used together to unevenly process the denoising task. The denoising-classification joint loss function of this embodiment selects the reconstruction loss, the logarithmic absolute error loss and the classification loss (cross entropy loss) as the minimization target.
[0120] Among them, the expression of the total denoising-classification joint loss function is:
[0121] loss DC =Loss rec +Loss lae +Loss cla
[0122] Among them, loss rec Represents the reconstruction loss, loss lae Represents log absolute error loss, loss cla represents the cross entropy loss.
[0123] Specifically, the expression of reconstruction loss is:
[0124]
[0125] Among them, y i represents the i-th clean signal data, f(x i ) represents the i-th input feature of the classification module, and N represents the number of signal data.
[0126] The formula for log absolute error loss is:
[0127]
[0128] Among them, y n,ij represents the jth pixel value of the ith channel of the nth clean signal data, f(x n,ij ) represents the jth pixel value of the ith channel of the nth input feature of the classification module, N represents the number of signal data, C represents the number of channels of the signal data, L represents the length of the signal data, log represents logarithmic operation, and S represents the Sigmoid function.
[0129] The formula for classification loss is:
[0130]
[0131] Among them, Y ik is a symbolic function. If the true category of the i-th sample belongs to the k-th category, the value is 1, otherwise it is 0. ik It represents the probability that the i-th sample belongs to the k-th category, log is the logarithm operation, N represents the number of signal data, and K represents the number of categories.
[0132] The embodiment proposes four feature processing modules, namely, an encoding module, a multi-scale learning module (Multi-L), a decoding module and a classification module. Mamba blocks are used in both the encoding module and the decoding module to replace CNN and transformer to extract features, which has a powerful global feature extraction capability, low computational complexity, and efficient and fast training and reasoning. In the encoding module, the channel attention block and the Mamba block are used in combination to enhance the model's ability to mine and pay attention to important information in the features, and the downsampling operation reduces the computing memory, prevents overfitting, and promotes the model's learning of deep features; in the multi-scale learning module, multi-scale feature extraction is performed on the encoded deep features, enriching the model's understanding of feature information of different scales, which helps to improve the recognition accuracy of the model; in the decoding module, the calculation of the similarity graph enables global features and local features to guide each other, enhances the model's feature representation capability, and improves the performance of the model. Finally, the classification module also takes advantage of Mamba's processing of sequence data, converts the denoising features into an embedded form, and further extracts the discriminant information by the Mamba block to obtain the classification result.
[0133] In order to better verify the practicality of this method, this embodiment also compares the results of recognition with other existing deep learning network models, such as Figure 6 As shown, recognition models are constructed based on CGDNet, DCNNPF, sigformer, transformer, Mamba algorithm and the algorithm of this embodiment, and modulation recognition of the interfered signal is performed based on the recognition model. Figure 6The horizontal axis represents the perturbation rate, and the vertical axis represents the recognition accuracy. The perturbation rate represents the intensity of the noise perturbation added to the original 18dB data set of RML2016.10a. The specific calculation process is to first calculate the root mean square amplitude of all the test data used, control the root mean square amplitude of the noise perturbation to 1-10 times the root mean square amplitude of the original test data according to the signal-to-noise ratio, and randomly select 20 consecutive points at a random position in the 500 sample data in the 18dB data to add perturbations to simulate the signal interfered during transmission. Figure 6 It reflects the changing trend of the recognition accuracy of the model as the disturbance intensity changes from 1 to 10 times. The results show that the interfered signal recognition system of the embodiment of the present invention can more accurately and efficiently identify the modulation recognition of the signal. Compared with the comparison model, the recognition curves of the embodiments of the present invention are all above the other curves.
[0134] Furthermore, Table 1 shows the experimental results of modulation recognition using different recognition methods on the RML2016.10a dataset, where the evaluation index is various types of accuracy, and OA represents the overall accuracy. As can be seen from Table 1, the interfered signal recognition system of the embodiment of the present invention has achieved the best results on the RML2016.10a dataset for modulation recognition, and the interfered signal recognition system of the embodiment of the present invention did not add any data enhancement method during the test.
[0135] Table 1: Results of different models on the RML2016.10a dataset with a perturbation rate of 2
[0136]
[0137]
[0138] As can be seen from Table 1, the interfered signal identification method of the embodiment of the present invention can simultaneously denoise and classify the interfered signal, so that the model can efficiently and quickly identify the modulation mode of the interfered signal. The present invention well ensures that the calculation cost is as small as possible while achieving accurate and fast recognition effect.
[0139] In summary, interference signal recognition can be applied to military and civilian fields such as electronic reconnaissance, spectrum monitoring, and signal reconstruction. By detecting and identifying electromagnetic signals, we can better understand whether there is illegal occupation and interference, and provide technical support for communication security. Secondly, interference signal recognition can be used in the field of military confrontation. By identifying electromagnetic signals, we can analyze enemy interference equipment for our reconnaissance and provide practical support for military security. In general, interference signal recognition has broad application prospects and can provide important technical guarantees and practical support for various fields. With the continuous development and improvement of recognition technology, the application scope and accuracy of interference signal recognition models will continue to improve.
[0140] Example 2
[0141] The electromagnetic signal recognition system based on U-Mamba in this embodiment is used to implement the electromagnetic signal recognition method of U-Mamba described in Example 1, and mainly includes:
[0142] The signal recognition module is used to obtain the electromagnetic signal data to be recognized, input the electromagnetic signal data to be recognized into the constructed recognition model, perform modulation recognition on the interfered signal in the electromagnetic signal data, and obtain the final classification result. The recognition model in the signal recognition module includes an encoding module, a multi-scale learning module, a decoding module, and a classification module connected in sequence.
[0143] The encoding module is used to extract the input interfered signal features and perform downsampling operations to obtain encoded deep features; the multi-scale learning module is used to process the encoded deep feature map to obtain decoded input features of different scales; the decoding module is used to use the decoded input feature maps of different scales to subtract the encoded deep features of the symmetrical position, further extract local-global features from the subtracted features, and perform upsampling operations to obtain decoded output features; the classification module is used to perform feature subtraction between the decoded output features and the input interfered signal to obtain denoising features, perform modulation recognition on the denoising features, and obtain the final classification results.
[0144] The recognition model construction module is used to construct the recognition model based on the U-Mamba algorithm, wherein the recognition model is a model trained using an electromagnetic signal data set, and the electromagnetic signal data set includes an interfered signal and an undisturbed signal.
[0145] Each module and the corresponding principles and implementation steps have been described in detail in the electromagnetic signal recognition method of U-Mamba described in Example 1, and will not be repeated here.
[0146] In the several embodiments provided by the present invention, it should be understood that the apparatus and method disclosed by the present invention can be implemented in other ways. For example, the apparatus embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0147] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0148] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the scope of protection of the present invention.
Claims
1. A method for electromagnetic signal recognition based on U-Mamba, characterized in that: include: Acquire electromagnetic signal data to be identified, input the electromagnetic signal data to be identified into the constructed identification model, perform modulation identification on the interfered signal in the electromagnetic signal data, and obtain the final classification result; The recognition model is constructed based on the U-Mamba algorithm. The recognition model is a model trained using an electromagnetic signal data set. The electromagnetic signal data set includes an interfered signal and an undisturbed signal. The U-Mamba algorithm is constructed using the Mamba algorithm according to the network structure of Unet.
2. The electromagnetic signal recognition method based on U-Mamba according to claim 1, characterized in that: The recognition model includes an encoding module, a multi-scale learning module, a decoding module and a classification module connected in sequence; The encoding module is used to extract the input interfered signal features and perform downsampling operations to obtain encoded deep features; The multi-scale learning module is used to process the encoded deep feature map to obtain decoding input features of different scales; The decoding module is used to subtract the decoded input feature maps of different scales from the encoded deep features at symmetrical positions, further extract local-global features from the subtracted features, and perform upsampling operations to obtain decoded output features; The classification module is used to perform feature subtraction between the decoded output feature and the input interfered signal to obtain a denoised feature, perform modulation recognition on the denoised feature, and obtain a final classification result.
3. The electromagnetic signal recognition method based on U-Mamba according to claim 2 is characterized in that: The encoding module includes a channel attention block, a Mamba block, a splicing block, and a fusion downsampling block connected in sequence: The channel attention module is used to perform channel attention processing on the input interfered signal features to obtain a channel attention feature map; The Mamba block is used to extract the input interfered signal features to obtain a coded global feature map; The splicing block is used to splice the channel attention feature map and the encoding global feature map to obtain the encoding splicing feature map; The fusion downsampling block is used to perform feature fusion on the coded splicing feature map and the input interfered signal feature to obtain the coded fusion feature map, and then perform a downsampling operation on the coded fusion feature map to obtain a reduced-size coded deep feature.
4. The electromagnetic signal recognition method based on U-Mamba according to claim 3 is characterized in that: The channel attention block is specifically used for: The interfered signal feature is subjected to an adaptive average pooling operation to obtain a first processing result; The interfered signal feature is subjected to an adaptive maximum pooling operation to obtain a second processing result; The first processing result and the second processing result are concatenated, and then the concatenated output is processed by one-dimensional convolution, ReLU operation, one-dimensional convolution and Sigmoid function in sequence to obtain a third processing result; The third processing result is dot-multiplied with the interfered signal feature to obtain the channel attention feature map.
5. The electromagnetic signal recognition method based on U-Mamba according to claim 3 is characterized in that: A convolution block is also included between the splicing block and the fusion downsampling block, and the convolution block is used to perform convolution processing on the coded splicing feature map so that the number of channels of the coded splicing feature map is adjusted to be the same as the input interfered signal feature.
6. The electromagnetic signal recognition method based on U-Mamba according to claim 2 is characterized in that: The specific steps of the multi-scale learning module include: Performing one-dimensional dilated convolution operation on the encoded deep features, setting the dilation factor to a fixed value, and obtaining feature maps of different scales; The feature maps of different scales are spliced to obtain a spliced multi-scale feature map. After the spliced multi-scale feature map is processed by a one-dimensional convolution operation, a multi-scale learning feature map is finally obtained.
7. The electromagnetic signal recognition method based on U-Mamba according to claim 2, characterized in that: The decoding module includes a subtraction block, a similarity calculation block and an upsampling block; The subtraction block subtracts the multi-scale learning feature map output by the multi-scale learning module from the encoded deep feature output by the previous layer encoding module to obtain a subtraction feature map; The similarity calculation block extracts the decoding local features and the decoding global features respectively through two one-dimensional convolutions and Mamba blocks on the subtraction feature map, multiplies the decoding local features by the transpose of the decoding global high-level features to obtain a decoding similarity map, further processes the decoding similarity map through a linear layer, adds the residual of the output of the linear layer to the original decoding similarity map, and multiplies the result with the output results of the two one-dimensional convolutions to obtain an enhanced decoding global feature; The upsampling block sequentially processes the enhanced decoded global features through one-dimensional deconvolution, ReLU operation and batch normalization layer to obtain a decoded deep feature map.
8. The electromagnetic signal recognition method based on U-Mamba according to claim 2, characterized in that: The classification module consists of a one-dimensional patch embedding block, a Mamba block, and a classification head connected in sequence; The one-dimensional patch embedding block is used to convert the input feature map of the classification module into a set of embedded forms and add position encoding to obtain an embedded feature map; The Mamba block is used to extract the global information embedded in the feature map to obtain classification features; The classification head is used to perform layer normalization on the classification features, flatten the latter two dimensions through the flatten operation, and then input them into the linear layer to map the number of channels to the same as the total number of categories to obtain the final classification result.
9. The electromagnetic signal recognition method based on U-Mamba according to claim 1, characterized in that: The loss function in the recognition model is a denoising-classification joint loss function, and the expression of the denoising-classification joint loss function is: loose DC =lost rec +us lae +us cla In the formula, loss rec Represents reconstruction loss, loss lae Represents log absolute error loss, loss cla represents the cross entropy loss.
10. An electromagnetic signal recognition system based on U-Mamba, used to implement the electromagnetic signal recognition method of U-Mamba according to any one of claims 1 to 9, characterized in that: include: The signal recognition module is used to obtain the electromagnetic signal data to be recognized, input the electromagnetic signal data to be recognized into the constructed recognition model, perform modulation recognition on the interfered signal in the electromagnetic signal data, and obtain the final classification result; The recognition model construction module is used to construct the recognition model based on the U-Mamba algorithm. The recognition model is a model trained using an electromagnetic signal data set. The electromagnetic signal data set includes an interfered signal and an undisturbed signal. The U-Mamba algorithm is used to construct the recognition model based on the network structure of Unet using the Mamba algorithm.
Citation Information
Patent Citations
Interference type identifying method and system
CN108197545A
Interference identification method and device based on inverse residual deep neural network
CN114866172A
Multi-scale forward feature gain infrared weak and small target detection method for complex environment
CN115661443A
Rotating target detection method fusing optical and SAR image multi-modal information
CN116452936A
Electric signal clustering analysis method based on deep clustering variational auto-encoder with attention mechanism
CN116776172A
Cited By
Electromagnetic signal monitoring method and device based on deep learning
CN119644005A
Modulation signal classification method, device and equipment
CN119740089A
Anti-interference serial port communication method and system of industrial-grade wireless module
CN120567702A
