Electromagnetic signal open set recognition method and device based on dual-domain mask embedding network

By employing a dual-domain masking embedding network method, combining structured segmented masks of time-domain and frequency-domain signals with lightweight residual networks, the problem of identifying unknown modulation signals is solved. This method enables the rejection of unknown signal categories and the accurate classification of known categories, thereby improving the accuracy and reliability of electromagnetic signal identification.

CN123145109APending Publication Date: 2026-11-20XIAN UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611126513.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-28
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing deep learning models cannot effectively identify unknown modulation types in electromagnetic signal recognition, leading to classification errors, reduced system reliability, and failure to meet the needs of complex communication environments.

Method used

A method based on dual-domain masking embedding network is adopted. By acquiring time-domain and frequency-domain signals, performing structured segmentation masking processing, and inputting the signals into a lightweight residual network, the model parameters are optimized using ternary center loss and boundary loss, and unknown category signals are rejected by adaptive thresholding.

Benefits of technology

It achieves accurate identification of unknown category signals under unlabeled conditions, improving the classification performance of the model and the reliability of the system under low signal-to-noise ratio conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123145109A_ABST
    Figure CN123145109A_ABST
Patent Text Reader

Abstract

The application provides an electromagnetic signal open set recognition method and device based on a dual-domain mask embedding network, and relates to the technical field of signal recognition. The method comprises the following steps: acquiring a time domain signal and a frequency domain signal of an input signal; performing structured segmented masking on the time domain signal and the frequency domain signal respectively to generate a damaged time domain signal of the time domain signal and a damaged frequency domain signal of the frequency domain signal; inputting the damaged time domain signal and the damaged frequency domain signal into a trained lightweight residual network for recognition to obtain a target category corresponding to the input signal; wherein the parameters of the trained lightweight residual network are optimized through a joint loss, and the joint loss comprises a ternary center loss and a boundary loss. In this way, the rejection of unknown category signals can be realized under the condition of complete no label.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of signal recognition technology, and more specifically, to a method and apparatus for electromagnetic signal open set recognition based on a dual-domain mask embedding network. Background Technology

[0002] In complex electromagnetic environments, applications such as radio spectrum monitoring, cognitive communication, and electronic countermeasures require modulation scheme identification of intercepted communication signals as a crucial prerequisite for subsequent signal demodulation, information extraction, and interference decision-making. With the rapid development of communication technology, new modulation schemes are constantly emerging, leading to an increasingly diverse range of signal types faced by actual receivers. A large number of these signals belong to unknown modulation types not covered by the receiving system during its training phase. Therefore, a practical modulation signal identification system not only needs to accurately classify known modulation types but also needs the ability to reject unknown modulation signals—that is, open-set recognition capability.

[0003] Traditional modulation signal recognition methods are mainly divided into likelihood ratio-based decision theory methods and feature extraction-based pattern recognition methods. The former relies on accurate channel models and prior parameter estimation, which is difficult to apply in practical non-cooperative communication scenarios; the latter relies on manually designed expert features such as instantaneous amplitude, instantaneous frequency, and higher-order cumulants, which significantly degrade classification performance under low signal-to-noise ratio conditions, and the generalization ability of feature design is limited.

[0004] In recent years, deep learning methods, represented by convolutional neural networks and recurrent neural networks, have achieved superior classification performance in the field of modulated signal recognition due to their powerful automatic feature extraction capabilities. However, most existing deep learning models follow a closed-set classification paradigm, which assumes that all test samples belong to known categories seen during training and directly assigns samples to a pre-defined set of modulation types during testing. This closed-set assumption is difficult to satisfy in real-world communication environments—when signals with unknown modulation types appear, the closed-set model will still force them to be classified into a known category, resulting in unpredictable classification errors and severely reducing system reliability. Summary of the Invention

[0005] The purpose of this invention is to address the shortcomings of the prior art by providing an electromagnetic signal open set identification method and apparatus based on a dual-domain mask embedding network, so as to achieve the rejection of unknown category signals under completely unlabeled conditions.

[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows: In a first aspect, embodiments of this application provide an open-set electromagnetic signal recognition method based on a dual-domain mask embedding network, comprising: acquiring a time-domain signal and a frequency-domain signal of an input signal; performing structured segmentation masking on the time-domain signal and the frequency-domain signal respectively to generate a damaged time-domain signal of the time-domain signal and a damaged frequency-domain signal of the frequency-domain signal; inputting the damaged time-domain signal and the damaged frequency-domain signal into a trained lightweight residual network for recognition to obtain the target category corresponding to the input signal; wherein, the parameters of the trained lightweight residual network are optimized by a joint loss, the joint loss including a ternary center loss and a boundary loss.

[0007] In one embodiment, acquiring the time-domain signal and frequency-domain signal of the input signal includes: acquiring the time-domain signal of the input signal; generating a replica time-domain signal based on the time-domain signal; and performing a fast Fourier transform on the replica time-domain signal to obtain the frequency-domain signal.

[0008] In one embodiment, the step of performing structured segmentation masking on the time-domain signal and the frequency-domain signal respectively to generate a damaged time-domain signal and a damaged frequency-domain signal includes: determining the total number of masked sampling points based on the lengths of the time-domain signal and the frequency-domain signal, and the target mask ratio; determining the length of each continuous mask block based on the total number of sampling points and the number of target mask segments; and performing masking processing on the time-domain signal and the frequency-domain signal based on the number of target mask segments and the length of the continuous mask blocks to obtain the damaged time-domain signal and the damaged frequency-domain signal.

[0009] In one embodiment, the step of inputting the damaged time-domain signal and the damaged frequency-domain signal into a trained lightweight residual network for identification to obtain the target category corresponding to the input signal includes: inputting the damaged time-domain signal and the damaged frequency-domain signal into the deep convolutional layer of the trained lightweight residual network for feature extraction to obtain intermediate feature vectors; inputting the intermediate feature vectors into the pointwise convolutional layer of the trained lightweight residual network for channel-level dimensionality upscaling to obtain the time-domain feature map and the frequency-domain feature map; inputting the time-domain feature map and the frequency-domain feature map into the channel attention module of the trained lightweight residual network for processing and mapping to a unit hypersphere to obtain unit hypersphere features; determining the Euclidean distance between the unit hypersphere features and all category centers, and determining the target category corresponding to the input signal based on the Euclidean distance.

[0010] In one implementation, the step of inputting the temporal feature map and the frequency domain feature map into the channel attention module of the trained lightweight residual network for processing and mapping to a unit hypersphere to obtain unit hypersphere features includes: concatenating the temporal feature map and the frequency domain feature map to obtain a fused feature map; inputting the fused feature map into a global average pooling layer for channel-level compression to obtain a channel description vector; inputting the channel description vector into a multilayer perceptron to learn the nonlinear dependencies between different channels and generate weights for different channels; recalibrating the different channels of the fused feature map according to the weights of the different channels; and mapping the recalibrated fused feature map to the unit hypersphere to obtain the unit hypersphere features.

[0011] In one embodiment, determining the target category corresponding to the input signal based on the Euclidean distance includes: comparing the Euclidean distance with a corresponding dynamic threshold; when the Euclidean distance is less than the corresponding dynamic threshold, determining the category center corresponding to the Euclidean distance as the target category corresponding to the input signal.

[0012] In one implementation, the dynamic threshold is determined by calculating and sorting the Euclidean distance set between each sample and the class center after training the trained lightweight residual network, and then using the quantile method.

[0013] In one embodiment, the training process of the trained lightweight residual network includes: initializing the parameters of the lightweight residual network to be trained; inputting training samples into the lightweight residual network to be trained for forward propagation to obtain the predicted Euclidean distance between the training samples and their corresponding class centers; calculating the loss value between the predicted Euclidean distance and the true Euclidean distance according to the joint loss function, and backpropagating to calculate the descent gradient of the loss value with respect to the network parameters in the lightweight residual network to be trained; the joint loss function is used to characterize the joint loss; the joint loss includes a triple center loss and a boundary loss; using an optimizer to optimize the lightweight residual network to be trained according to the descent gradient until a preset convergence condition is reached, and ending the training to obtain the trained lightweight residual network.

[0014] Secondly, embodiments of this application also provide an electromagnetic signal open-set identification device based on a dual-domain mask embedding network. The device includes: an acquisition module configured to acquire a time-domain signal and a frequency-domain signal of an input signal; a processing module configured to perform structured segmentation masking on the time-domain signal and the frequency-domain signal respectively to generate a damaged time-domain signal of the time-domain signal and a damaged frequency-domain signal of the frequency-domain signal; and an identification module configured to input the damaged time-domain signal and the damaged frequency-domain signal into a trained lightweight residual network for identification to obtain the target category corresponding to the input signal; wherein the parameters of the trained lightweight residual network are optimized by a joint loss, the joint loss including a ternary center loss and a boundary loss.

[0015] Thirdly, embodiments of this application also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs any of the methods described above.

[0016] Fourthly, embodiments of this application also provide an electronic device, including: a processor, a storage medium, and a bus, wherein the storage medium stores program instructions executable by the processor, and when the computer device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform any of the methods described above.

[0017] The electromagnetic signal open-set recognition method based on a dual-domain masking embedding network provided in this application firstly receives the original time-domain signal and constructs frequency-domain features through Fast Fourier Transform. To enhance the model's understanding of the core structure of the signal and construct feature boundaries, a structured segmented masking strategy is introduced. For the time and frequency dual-domain inputs, independent continuous segmented masking is applied respectively to generate damaged samples. By artificially disrupting the continuity of the signal, fading or interference in actual communication is simulated, enabling the feature extractor to mine robust discriminative features from incomplete information and using the damaged samples to define the physical boundaries of known classes in the latent space. The feature extractor adopts a lightweight LiteResNet structure, using depthwise separable convolutions to decouple spatial and channel features. The extracted time-domain and frequency-domain features are concatenated and mapped to low-dimensional feature embeddings through a fully connected layer. During the training phase, the model is optimized by weighted combination of ternary center loss and boundary loss. Simultaneously, the adaptive threshold rejection module independently calculates dynamic thresholds for each known class based on the statistical features of the training set using the quantile method. During the testing phase, the system calculates the minimum Euclidean distance from the test sample to the center of each known class. If the distance exceeds the dynamic threshold, the sample is rejected as an unknown class; otherwise, it is assigned to the corresponding modulation category. This ultimately achieves accurate classification of known classes and effective rejection of unknown classes. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A flowchart illustrating an electromagnetic signal open set identification method based on a dual-domain mask embedding network, provided in an embodiment of this application; Figure 2 A flowchart illustrating an electromagnetic signal open set identification method based on a dual-domain mask embedding network, provided in an embodiment of this application; Figure 3 A schematic diagram of the structured segmentation mask in an electromagnetic signal open set recognition method based on a dual-domain mask embedding network provided in an embodiment of this application; Figure 4 A flowchart illustrating an electromagnetic signal open set identification method based on a dual-domain mask embedding network, provided in an embodiment of this application; Figure 5 A schematic diagram of the structure of a trained lightweight residual network in an electromagnetic signal open set recognition method based on a dual-domain mask embedding network provided in an embodiment of this application; Figure 6 A flowchart illustrating an electromagnetic signal open set identification method based on a dual-domain mask embedding network, provided in an embodiment of this application; Figure 7 A flowchart illustrating an electromagnetic signal open set identification method based on a dual-domain mask embedding network, provided in an embodiment of this application; Figure 8 A flowchart illustrating an electromagnetic signal open set identification method based on a dual-domain mask embedding network, provided in an embodiment of this application; Figure 9 The classification accuracy variation curves of each comparative model provided in the embodiments of this application in the signal-to-noise ratio range of -20 dB to 18 dB; Figure 10 The AUROC and OSCR performance curves of the model provided in this application embodiment on the RadioML2016.10a dataset under different SNR levels and openness conditions; Figure 11 The AUROC and OSCR performance curves of the model provided in this application embodiment on the RadioML2016.10a dataset under different SNR levels and openness conditions; Figure 12The AUROC and OSCR performance curves of the model provided in this application embodiment on the RadioML2016.10a dataset under different SNR levels and openness conditions; Figure 13 The performance of the LGFSCN method provided in the embodiments of this application in open set modulation recognition; Figure 14 The confusion matrix of DMENet on measured data provided in the embodiments of this application; Figure 15 A comparison of the AUROC performance of the various models provided in the embodiments of this application under different signal-to-noise ratios; Figure 16 Comparative trends of the OSCR index for the various variants provided in the embodiments of this application; Figure 17 A schematic diagram of the structure of an electromagnetic signal open set identification device based on a dual-domain mask embedding network provided in an embodiment of this application; Figure 18 A schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of the present invention, but not all embodiments.

[0021] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0022] In the description of this application, it should be noted that if the terms "upper", "lower", etc. appear to indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, or the orientation or positional relationship that the product of this application is usually placed in, it is only for the convenience of describing this application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application.

[0023] Furthermore, the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Additionally, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0024] It should be noted that, where there is no conflict, the features in the embodiments of this application can be combined with each other.

[0025] Figure 1 A flowchart illustrating an electromagnetic signal open-set identification method based on a dual-domain mask embedding network provided in this application embodiment; as shown... Figure 1 As shown, the method includes: Step S110: Obtain the time domain signal and frequency domain signal of the input signal.

[0026] The modulated signal contains rich information in both the time and frequency domains. Relying solely on the time-domain waveform often fails to fully capture key features such as frequency structure and harmonic distribution. Therefore, this step constructs a frequency-domain signal based on the time-domain signal to enable the model to intuitively capture frequency-selective fading and the differences in spectral energy distribution among different modulation schemes; specifically, such as... Figure 2 As shown, step S110 above may further include the following steps: Step S210: Obtain the time domain signal of the input signal.

[0027] In practice, the in-phase component and the quadrature component are combined to form a time-domain signal, as shown in the following formula (1): (1) in, Represents a time-domain signal; Indicates the input signal; Indicates in-phase components; Indicates orthogonal components; Indicates the length of the sampling sequence of the input signal; Represents the real number field.

[0028] Step S220: Generate a replica time-domain signal based on the time-domain signal, and perform a fast Fourier transform on the replica time-domain signal to obtain the frequency-domain signal.

[0029] In practice, the in-phase and quadrature components are first combined into a complex baseband signal, as shown in the following formula (2): (2) in, denoted as complex baseband signal; j represents the imaginary unit; t represents the sampling time.

[0030] Secondly, the complex baseband signal is subjected to a discrete Fourier transform, as shown in the following formula (3): (3) in, Represents the spectrum of complex numbers; Represents the Discrete Fourier Transform; Represents the complex field.

[0031] Next, the amplitude spectrum and phase spectrum are extracted from the complex spectrum and normalized to eliminate the interference of the absolute energy scale on the representation learning. The normalized amplitude spectrum is shown in formula (4) and the normalized phase spectrum is shown in formula (5). (4) (5) in, Represents the normalized amplitude spectrum; Represents the normalized phase spectrum; This represents the phase of the k-th component after the discrete Fourier transform; This represents a very small constant used to prevent division by zero anomalies. The range of values ​​is .

[0032] Normalization processes map the phase to The interval ensures the stability of the network gradient; the amplitude spectrum reflects the energy distribution of each frequency component and is an important feature for distinguishing the spectral shape of different modulation methods; the phase spectrum preserves the phase information of the signal, which is especially important for phase modulation types such as phase shift keying (PSK).

[0033] Finally, the normalized amplitude spectrum and phase spectrum are concatenated in the channel dimension to obtain the frequency domain signal used by the subsequent encoder, as shown in the following formula (6): (6) in, Represents a frequency domain signal; Represents the normalized amplitude spectrum; Represents the real number field.

[0034] Here, the frequency domain signal is also represented as The signal is presented in a two-channel configuration. The time-domain signal preserves the transient details of the signal envelope and phase, while the frequency-domain signal reveals the global harmonic structure and energy concentration. This dual-domain joint input design provides a complete data foundation for establishing cross-domain consistency metrics in the network.

[0035] Step S120: Perform structured segmentation masking on the time-domain signal and the frequency-domain signal respectively to generate the damaged time-domain signal of the time-domain signal and the damaged frequency-domain signal of the frequency-domain signal.

[0036] In open-set modulation signal recognition scenarios, the core challenge lies in constructing compact feature representations with well-defined boundaries for known categories, thereby effectively rejecting unknown signals. Traditional feature extraction networks are trained directly on the complete signal, often only learning simple mapping relationships, resulting in a lack of clear boundary constraints in the feature space, making it easy for unknown signals to infiltrate known category regions. To address this issue, this step abandons the traditional full-signal mapping strategy and introduces a data augmentation and feature boundary construction mechanism based on structured masks. By artificially masking part of the input data during training, the integrity of the signal is disrupted to construct damaged samples. In the subsequent feature metric space, the model uses these damaged samples to design decision boundaries for known categories, enabling the encoder to learn the core intrinsic patterns of the signal more deeply and improving the model's ability to reject unknown signals.

[0037] The design of the masking strategy directly affects the quality of the model's feature learning. For example... Figure 3 As shown, traditional point-by-point random masking independently sets each sample point of the modulated signal to zero with a certain probability. However, this randomly distributed masking pattern makes it easy for the model to infer missing values ​​through simple interpolation of adjacent points, and the encoder can complete feature mapping without a deep understanding of the signal structure. At the same time, this randomly distributed masking pattern does not conform to the signal impairment patterns in actual communication, limiting the model's generalization ability. Based on the above problems, this step designs a structured segmented masking strategy. This strategy concentrates the sample points to be masked into several continuous mask blocks, making the masked region have significant time-frequency continuity. Specifically, the time-domain continuous masking simulates the loss of continuous signal segment information caused by sudden signal fading or pulse interference, while the frequency-domain band masking simulates frequency-selective fading caused by multipath effects, making the masking pattern more consistent with actual communication scenarios. The structured segmented masking strategy not only effectively avoids the model achieving shortcut learning through local interpolation, but also forces the encoder to learn a more robust deep signal feature representation by simulating real physical impairment patterns. Specifically, as shown... Figure 4 As shown, step S120 above may further include the following steps: Step S410: Determine the total number of masked sampling points based on the lengths of the time-domain signal and the frequency-domain signal, as well as the target mask ratio.

[0038] Among them, for length is input signal Given target mask ratio Number of segments in the mask First, calculate the total number of sampling points that need to be occluded. .

[0039] Step S420: Determine the length of each continuous mask block based on the total number of sampling points and the number of target mask segments.

[0040] Secondly, calculate the length of a single consecutive mask block. .

[0041] Step S430: Based on the number of target mask segments and the length of continuous mask blocks, masking processing is performed on the time domain signal and frequency domain signal to obtain the damaged time domain signal and the damaged frequency domain signal.

[0042] Finally, Within the effective index range, generate independently and randomly. There are several starting positions, and each starting position is moved backward by a length of... The continuous signal segments are set to 0, thereby generating a binary mask matrix with the same dimension as the input.

[0043] Furthermore, since the starting position is independently and randomly sampled each time, multiple mask blocks may overlap, and this random overlap effect further enriches the diversity of damaged samples. The formulas for calculating the mask signal are shown in formulas (7) and (8) below: (7) (8) in, This represents the damaged time-domain signal after being masked. This represents the raw time-domain signal without masking. This indicates element-wise multiplication; Represents the time-domain mask matrix; This represents the damaged frequency domain signal after being masked. This represents the raw frequency domain signal without masking. This represents the frequency domain mask matrix.

[0044] The frequency domain mask is implemented in exactly the same way as the time domain mask, but the random generation processes of the time domain mask matrix and the frequency domain mask matrix are independent of each other. This design effectively avoids the shortcut of direct mapping between the time and frequency domains, further increasing the difficulty of feature extraction and forcing the feature extractor to simultaneously and independently mine deep discriminative features of the signal in different physical domains in a two-stream network.

[0045] Step S130: Input the damaged time-domain signal and the damaged frequency-domain signal into the trained lightweight residual network for identification to obtain the target category corresponding to the input signal.

[0046] The parameters of the trained lightweight residual network are optimized using joint loss, which includes triple center loss and boundary loss.

[0047] Among them, such as Figure 5 As shown, the trained lightweight residual network consists of a feature extractor, an SE attention module, and a residual structure. The feature extractor is a dual-branch feature extractor with identical structures but independent weights, used to extract time-domain and frequency-domain features respectively. Furthermore, to significantly reduce the number of model parameters and computational complexity while maintaining feature extraction capabilities, LiteResNet is used as the core feature extraction module in this step. Specifically, as... Figure 6 As shown, step S130 above may further include the following steps: Step S610: Input the damaged time domain signal and the damaged frequency domain signal into the deep convolutional layer of the trained lightweight residual network to extract features and obtain intermediate feature vectors.

[0048] The lightweight residual network draws on the design principles of classic networks such as MobileNet, decoupling standard convolution into depthwise convolution (DC) and pointwise convolution (PC). Depthwise convolution is mainly used to independently extract spatial or temporal features, while pointwise convolution is used for dimensionality reduction and expansion.

[0049] In practice, this step first involves passing the input signal through a one-dimensional convolutional layer with a stride of 1 and a kernel size of 5 for shallow feature mapping and initial channel dimensionality upscaling. Next, the feature sequence is passed sequentially through three cascaded LiteResNet modules (i.e., deep convolutions): the first two modules use kernels with a receptive field of 5, and the last module uses a small kernel with a receptive field of 3 to extract deep, high-order abstract features. Here, the stride of all three cascaded LiteResNet modules is set to 2, causing the feature sequence length to be halved at each level.

[0050] Step S620: Input the intermediate feature vectors into the pointwise convolutional layers of the trained lightweight residual network to perform channel-level dimensionality upscaling, and obtain the time-domain feature map and the frequency-domain feature map.

[0051] In this step, the number of channels in the intermediate feature vector is progressively expanded from 32 to 128 through pointwise convolution to retain sufficient information capacity. The 3D feature map after multi-level abstraction is fed into a global average pooling layer and a linear projection layer, outputting temporal and frequency domain features with the same dimension of 128.

[0052] Step S630: Input the time-domain feature map and frequency-domain feature map into the channel attention module of the trained lightweight residual network for processing, and map them to the unit hypersphere to obtain the unit hypersphere features.

[0053] This step introduces a global channel attention module. This module utilizes a multilayer perceptron to learn the nonlinear dependencies between channels of different modalities, performs cross-modal channel-level adaptive recalibration of the spliced ​​features, and rigorously projects them onto a unit hypersphere. Specifically, such as... Figure 7 As shown, step S630 above may further include the following steps: Step S710: The time-domain feature map and the frequency-domain feature map are concatenated to obtain the fused feature map.

[0054] To achieve deep collaboration between time-domain and frequency-domain features, the time-domain feature map and the frequency-domain feature map are first spliced ​​together along the channel dimension.

[0055] Step S720: Input the fused feature map into the global average pooling layer for channel-level compression to obtain the channel description vector.

[0056] To address the issues of high feature dimensionality and weak inter-domain correlation after concatenation, a global channel attention module is introduced. Through the Global Average Pooling (GAP) layer within this module, the features across the entire space for each channel are compressed into a single scalar, resulting in a channel-level global description vector. This operation aggregates information from the global receptive field.

[0057] Step S730: Input the channel description vector into the multilayer perceptron to learn the nonlinear dependencies between different channels and generate the weights of different channels.

[0058] This step learns the non-linear dependencies between channels using a multilayer perceptron in the global channel attention module. This process involves dimensionality reduction followed by dimensionality increase, and finally, a sigmoid function is used to generate channel weights between 0 and 1. These weights represent the importance of each channel.

[0059] Step S740: Recalibrate the different channels of the fused feature map according to the weights of the different channels.

[0060] This step multiplies the generated weights channel-by-channel with the original feature map to activate important features and suppress irrelevant features.

[0061] In practice, after this step, the recalibrated fused feature map is fed into the residual structure, and the output of the SE module is added to the input feature map element by element to ensure stable gradient propagation and alleviate the difficulty of training deep networks. Then, the output of the residual structure is fed into the mapping head, which is composed of multiple fully connected layers, batch normalization, ReLU activation and regularization layers stacked alternately, gradually compressing the high-dimensional fused features into the final low-dimensional embedding space.

[0062] Step S750: Map the recalibrated fused feature map to the unit hypersphere to obtain the unit hypersphere feature.

[0063] This step first averages the fused feature map along the sequence length dimension, compressing the entire sequence information of each channel into a scalar to obtain a one-dimensional feature vector. Second, a fully connected layer maps this one-dimensional feature vector to the target embedding dimension (keeping the dimension unchanged, but the feature representation undergoes a non-linear transformation), resulting in a target embedding dimension vector. Finally, the target embedding dimension vector is L2 normalized and rigorously projected onto a unit hypersphere. This improves the stability and generalization of deep metric learning.

[0064] Step S640: Determine the Euclidean distance between the unit hyperspherical feature and the centers of all categories, and determine the target category corresponding to the input signal based on the Euclidean distance.

[0065] In the open set detection stage, due to the inherent differences in intra-class compactness of different modulation signals in the feature space, using a globally uniform rejection threshold can easily lead to severe false rejections for some categories with loosely distributed features. Therefore, to accurately identify and reject unknown class modulation signals, this step designs an Adaptive Threshold Rejection Module (ATRM) based on feature space metrics. ATRM uses training set data to independently construct statistically significant rejection boundaries for each known class.

[0066] The dynamic threshold is determined by calculating and sorting the Euclidean distances between each sample and the class center after training the lightweight residual network, using the quantile method. For example, after network training is complete, all samples belonging to the class center in the training set are extracted. The features of the samples are embedded, and the set of Euclidean distances from them to their respective class centers is calculated. Then, the quantile method is used to select the 95th quantile of this distance distribution as the dynamic threshold for the class. This non-parametric threshold setting method does not rely on the normal distribution assumption, and establishes the physical boundaries of each class while strictly controlling the false rejection rate of known classes.

[0067] In practice, this step compares the Euclidean distance with the corresponding dynamic threshold. When the Euclidean distance is less than the corresponding dynamic threshold, the category center corresponding to the Euclidean distance is determined as the target category corresponding to the input signal.

[0068] Specifically, for the input test sample, the unit hypersphere feature is first obtained through the feature extractor; then, the Euclidean distance from this feature to the centers of all known categories is calculated, as shown in the following formula (9): (9) in, Indicates the characteristics of the test samples With the Known category center The Euclidean distance between them; This represents the normalized feature variables output by the feature extractor after the test sample has passed through it. Indicates the first The class center vector of a known sample; The total number of known categories; This is an L2 norm operation used to calculate the Euclidean distance between two vectors.

[0069] Next, based on this distance metric, the minimum distance and its corresponding candidate category index are extracted. The minimum distance is shown in formula (10), and the candidate category index is shown in formula (11). (10) (11) in, This represents the minimum Euclidean distance between a test sample feature and the center of all classes; Indicates the characteristics of the test samples With the Known category center The Euclidean distance between them; This represents the candidate category index corresponding to the minimum Euclidean distance.

[0070] Finally, dynamic open-set decision is performed by combining the dynamic thresholds of each category pre-calculated by the adaptive threshold rejection module. If the distance of a test sample to its nearest class center exceeds the dynamic threshold of the candidate class, it indicates that the sample is outside the embedding space boundary of all known classes, and the system will determine that it does not belong to any known distribution and reject it as an unknown class sample. Conversely, if the distance falls within the dynamic threshold range, it is accepted as a known class, achieving closed-set accurate classification. The mathematical expression of this open-set decision rule is shown in the following formula (12): (12) in, Indicates test sample The predicted category of the final output; This represents the candidate class index corresponding to the minimum Euclidean distance; Candidate categories The corresponding dynamic rejection threshold; An identifier indicating an unknown category.

[0071] This mechanism enables the model to robustly achieve high-precision open-set modulation recognition without requiring any prior unknown class information, through strict boundary control of the known class feature space.

[0072] In addition, such as Figure 8 As shown, the training process of the above-mentioned trained lightweight residual network includes the following steps: Step S810: Initialize the parameters of the lightweight residual network to be trained.

[0073] The parameters include weights and biases.

[0074] The parameters can be initialized using pre-training initialization, random initialization, or fixed value initialization; no specific method is required here.

[0075] Step S820: Input the training samples into the forward propagation of the lightweight residual network to be trained, and obtain the predicted Euclidean distance between the training samples and their corresponding class centers.

[0076] The training samples include The training set includes known categories; the test samples include test sets for known and unknown categories, inner diameter, and outer diameter.

[0077] In practice, the lightweight residual network to be trained is generally trained first using training samples, and then further tested using test samples. After passing the test, the lightweight residual network to be trained is regarded as the trained lightweight residual network.

[0078] Step S830: Calculate the loss value between the predicted Euclidean distance and the true Euclidean distance based on the joint loss function, and calculate the descent gradient of the network parameters in the lightweight residual network to be trained using backpropagation.

[0079] The joint loss function is used to characterize the joint loss; the joint loss includes the ternary center loss and the boundary loss.

[0080] To ensure that the extracted features effectively help the model distinguish between known and unknown categories, choosing an appropriate loss function to guide the network's feature learning is crucial. Therefore, this paper weights and fuses the triple center loss and boundary loss to construct the total loss function for the DMENet model.

[0081] Traditional three-principle loss, when constructing the triplet of anchor point, positive sample, and negative sample, is limited by single negative sample sampling and is prone to slow convergence and local optimum traps. The joint loss designed in this step replaces the randomly sampled batch samples with learnable global class centers. For the original complete input signal, the network regards the center of its own true class as the positive center and the centers of all other classes as the negative centers. The loss function aims to minimize its Euclidean distance to the positive center of the true label class, while maximizing its distance to the negative centers of all other non-true classes. By calculating the Euclidean distance from the original signal features to each known class center in the feature embedding space and mapping it to the classification probability for cross-entropy optimization, its mathematical expression is shown in the following formula (13): (13) in, Indicates batch size; Indicates the first The unit hyperspherical feature extracted from a raw, complete signal by an encoder; It is the center of all categories; This indicates the true category to which the sample belongs. The center of learnable classes; This represents the total number of known modulation categories.

[0082] By minimizing this loss, the model brings the sample closer to the center of its true class while maximizing the distance between the sample and the centers of all other negative classes. This achieves both intra-class compactness and inter-class separation, ensuring the model's classification accuracy for known classes.

[0083] In resource-constrained environments, to improve the performance of open-set recognition models, it is desirable for signal samples of the same category to be as close as possible in the feature space, while signal samples of different categories should be as far apart as possible. Therefore, a structured segmented masking (SSM) strategy is introduced to generate enhanced samples, and edge loss is used to further optimize the distribution of samples in the feature space.

[0084] By continuously segmenting and masking the time-frequency features, difficult samples that are structurally similar but semantically offset are generated. These samples often fall near the decision boundary in the feature space. Therefore, the boundary loss uses the damaged signal generated by the masking operation to explicitly divide the feature space into internal boundary and embedding boundary. The boundary loss is composed of a weighted sum of the internal boundary loss and the embedding boundary loss, and its mathematical expression is shown in the following formula (14): (14) in, Indicates boundary loss; These represent the weight coefficients of the corresponding embedding boundary loss; Indicates internal boundary loss; This represents the embedding boundary loss.

[0085] Specifically, internal boundary loss Strictly constrain the feature entry radius of the original undamaged sample to be Within the core region, the distribution space of known classes is further compressed. Embedding boundary loss. The hard samples, after being forcibly enhanced, detached from the core region and were pushed to... and Within the embedded spatial boundary band, this design not only prevents the unbounded divergence of damaged samples but also implicitly defines the distance between known and unknown classes. (Internal boundary loss) and embedding boundary loss The format is expressed as shown in formulas (15) and (16): (15) (16) in, Indicates batch size; Indicates the first The unit hyperspherical feature extracted from a raw, complete signal by an encoder; This indicates the true category to which the sample belongs. The center of learnable classes; Represents the region within radius r; This indicates the area outside the radius r.

[0086] By constraining the boundary loss, the intra-class distance is reduced and the inter-class distance is increased during the network update process, thus ensuring that the samples not only have clear categories in the feature space but also leave more unknown space. The total loss function used by the network during the training phase is a weighted sum of the losses of the two modules mentioned above. The mathematical expression of the joint loss is shown in the following formula (17): (17) in, Indicates joint loss; Indicates the loss of the ternary center; Indicates boundary loss; and The weights are the ternary center loss and the boundary loss.

[0087] In summary, the ternary center loss achieves the initial clustering of the latent space, while the boundary loss utilizes damaged samples to construct the physical boundary of the absolute embedding space, forcing known class features to move closer to the center of their true class. The design of the total loss reserves sufficient decision rejection space for potential unknown signals, enhancing the model's ability to reject open-set anomalous modulation signals.

[0088] Step S840: Use an optimizer to optimize the lightweight residual network to be trained based on the descent gradient until the preset convergence condition is reached, then end the training and obtain the trained lightweight residual network.

[0089] The optimizer guides the parameters of the joint loss function to update to appropriate values ​​in the correct direction during the backpropagation process of deep learning, so that the updated parameters make the value of the joint loss function continuously approach the global minimum.

[0090] Optimization mainly considers two aspects: First, the optimization direction is reflected in the optimizer as gradient or momentum; Second, the step size is reflected as the learning rate in the optimizer.

[0091] Generally, the parameters that need to be optimized include the joint loss function, the initial learning rate, and the time to iterate through a batch of training data.

[0092] Optimizers include Stochastic Gradient Descent (SGD), SGD with Momentum, SGD with Nesterov Acceleration, adaptive learning rate algorithms (AdaGrad gradient descent), AdaDelta / RMSProp, Adam gradient descent, etc.

[0093] The preset convergence condition is an iteration number threshold or a joint loss value threshold set based on historical data or experience. Then, when the iteration number threshold or the loss value threshold is reached, the iterative training ends, and the trained lightweight residual network is obtained.

[0094] After this step, adaptive boundary fitting (dynamic threshold determination) is generally performed. Specifically, first, the Euclidean distance from each sample to the corresponding class center is calculated to obtain a distance set, and then the quantiles at the top of the distance set (e.g., the 95th percentile) are set as the dynamic threshold.

[0095] The experiment and results analysis are as follows: I. Dataset and Experimental Parameter Settings (1) Dataset settings To comprehensively evaluate the effectiveness of the proposed algorithm, two publicly available datasets, RadioML2016.10a and HisarMod2019.1, were selected. Both datasets are widely used in the field of modulation signal recognition and can effectively cover modulation signal characteristics in different scenarios. To ensure the rationality and fairness of the experiments, all experiments adopted a unified data partitioning rule. In each experiment, the ratio of the number of samples of the same modulation category in the training set and the test set of the RadioML2016.10a dataset was 3:1, and the HisarMod2019.1 dataset was divided into training and test sets in a 2:1 ratio. Addressing the core requirement of open-set recognition tasks, the model was completely shielded from unknown class signals during the training phase; that is, unknown class samples only appeared in the test set. To ensure the robustness of the feature extractor, only known class samples with a signal-to-noise ratio greater than 0 dB were selected for parameter updates during the training phase.

[0096] To further verify the robustness of the algorithm in real electromagnetic environments and under more complex modulation schemes, a test dataset was designed and collected using LabVIEW and the USRP X310 software radio platform to verify the method's ability to recognize electromagnetic signals with more complex and diverse modulation schemes. This test dataset covers eight typical digital modulation signals: BPSK, QPSK, 8PSK, 16QAM, 64QAM, CPFSK, GFSK, and PAM4, consisting of 8800 samples, with the same number of samples for each modulation signal. The transmitter's output power was set to -10dBm, and the carrier frequency was set to 2GHz.

[0097] (2) Experimental parameter settings During the experiment, the number of training iterations was set to 100, the batch size of training samples was set to 256, and the AdamW optimizer was used for the neural network. Compared with the traditional Adam optimizer, AdamW introduces a weight decay mechanism, which can effectively suppress model overfitting. The initial learning rate was set to 0.001 and dynamically adjusted using a cosine annealing decay learning rate scheduler. All experiments were completed on an NVIDIA RTX 3090 GPU.

[0098] II. Recognition performance in large-sample closed-set scenarios To systematically verify the basic classification performance of the DMENet model under closed-set conditions, a comparative experiment was conducted on the RML2016.10A dataset, comparing it with seven representative deep learning modulation recognition methods, including LSTM-AMC

[23] , ShuffleNetV2

[42] , ResNet18

[72] , ResNet50

[72] , MobileNetV2

[73] , AWN

[74] , and CNN-AMC

[75] . All comparison models used the same experimental parameters, data preprocessing procedures, and evaluation metrics as the DMENet model to ensure the fairness and comparability of the experimental comparison.

[0099] Figure 9 The classification accuracy curves of various comparative models are shown within the signal-to-noise ratio (SNR) range of -20 dB to 18 dB. It can be observed that in the low SNR range of -20 dB to -10 dB, the time-frequency domain features of the modulated signal are severely distorted due to channel noise interference, and the classification accuracy of all comparative models drops below 30%. Experiments show that under this SNR condition, the effective features of the modulated signal are almost completely submerged by noise, making it difficult for various models to extract effective discriminative information. As the SNR gradually increases, the recognition accuracy of each model shows a steady upward trend. When the SNR exceeds 0 dB, the accuracy of most models on the RadioML2016.10a dataset remains consistently above 80%, indicating that under medium-to-high SNR conditions, various deep learning models can effectively extract the features of the modulated signal and complete the classification task. Among all the comparative methods, the DMENet model exhibits the best classification performance overall. Especially in the medium-to-high SNR range above 0 dB, its classification accuracy curve is consistently higher than other comparative models, with the highest recognition accuracy reaching approximately 92%, and the performance fluctuation is relatively small. The advantage of the DMENet model is mainly attributed to its ability to deeply mine the time and frequency domain structural features of the modulated signal through a dual-domain masking embedding network. The deep structural features extracted by this model exhibit stronger discriminative power and robustness. Experimental results show that DMENet achieves a stable and significant improvement in classification performance in closed-set scenarios compared to existing baseline methods. This not only verifies the effectiveness of the method in complex electromagnetic environments but also provides a foundation for accurate classification of known classes in subsequent open-set recognition tasks.

[0100] III. Open set recognition performance under different degrees of openness In real-world communication environments, the complexity of wireless channels and the diversity of communication protocols inevitably lead to the reception of unknown modulation types not covered during the training phase. This places higher demands on the generalization ability and unknown class rejection capability of modulation signal recognition systems. To comprehensively and objectively evaluate the performance of the DMENet method in open-set recognition tasks, comparative experiments were conducted on six representative open-set recognition baseline methods on the RadioML2016.10a and HisarMod2019.1 datasets, including ARPL, OpenMax, LGFSCN, RPL, CSSR, and Open-ICL.

[0101] Openness directly determines the difficulty of open-set tasks, and often increases with the proportion of unknown classes. To delve into the robustness of the DMENet model under different levels of unknowns, three different known / unknown openness configurations were set on the RadioML2016.10a dataset: 20.94%, 11.81%, and 5.13%. The specific known and unknown class partitioning schemes are shown in Table 1. Meanwhile, the openness of the HisarMod2019.1 dataset was uniformly set to 22.74%, with 11 signals classified as known and the remaining 15 as unknown. Through these multiple openness configurations, the system evaluation of the model's open-set recognition and rejection performance under different unknown class proportions was conducted.

[0102] Table 1 Experiments evaluated open-set recognition performance on two datasets with signal-to-noise ratios ranging from -20 dB to 18 dB. The training set consisted only of predefined... The training set consists of samples of known modulation types, with all unknown class samples strictly excluded from the training process. The test set comprises two parts: samples of known modulation types and the remaining samples of unknown modulation types. During the testing phase, the model needs to... Accurate classification is achieved for samples of known categories, and any signal that does not belong to a known category is uniformly identified as a new category with an unknown label, i.e., the first known category. kind.

[0103] like Figure 10 , Figure 11 and Figure 12As shown, the AUROC and OSCR performance curves of each model on the RadioML2016.10a dataset under different SNR levels and openness conditions are presented. Experimental results show that, under different openness levels and high SNR conditions, the AUROC and OSCR scores of the DMENet method consistently outperform mainstream open set adjustment recognition baseline methods such as Open-ICL, ARPL, and OpenMax. This robust performance demonstrates the stability and effectiveness of the DMENet method in open set recognition tasks with varying numbers of unknown categories and different SNR conditions. Furthermore, the experimental results show that the AUROC and OSCR scores of all compared models gradually increase with increasing SNR, indicating that recognition accuracy improves with increasing signal-to-noise ratio. Fundamentally, an increase in SNR means reduced noise interference in the modulated signal samples, making it easier for the model to distinguish the feature differences between different modulated signals. Conversely, when the SNR is below 0 dB, the overall performance of the AUROC and OSCR metrics of all models significantly decreases. The effective features of the modulated signal are severely overwhelmed by strong noise. At this point, the features extracted by the model are more statistical features of additive white Gaussian noise than the essential features of the modulated signal. Therefore, the distributions of known and unknown signal classes in the feature space highly overlap. Neither OpenMax based on extremum theory nor ARPL and RPL based on reciprocal points can define clear decision boundaries in the chaotic feature space. Below 0 dB, the AUROC index of each model exhibits unstable jumps, and the open set recognition performance deteriorates significantly.

[0104] When the SNR is above 0 dB, DMENet achieves optimal AUROC and OSCR performance across all three openness settings. The results validate the synergistic effect of the masked dual-domain feature embedding network and the joint loss function, enabling reliable classification of known modulation types and accurate rejection of unknown signals. The former enhances the separability between categories through deep structural feature extraction, while the latter preserves sufficient feature space for unknown signals by dynamically adjusting the decision boundary. Further analysis of the ARPL method's performance reveals that, under the experimental condition of a dataset openness of 20.94%, AUROC and OSCR show an increasing trend with rising SNR, but a significant decrease in the high SNR region. This is because ARPL uses a single fixed threshold mechanism. Under high SNR conditions, while the features of known signals are clearer, the features of unknown signals are also clear and their distribution partially overlaps with known categories, making accurate differentiation impossible with a fixed threshold. Meanwhile, the LGFSCN model also demonstrated strong competitiveness. At 20.94% openness, its AUROC remained stable at around 88% in the high SNR range, and its OSCR reached 92%, indicating that LGFSCN has good feature extraction capabilities. However, it lacks specific boundary optimization for unknown classes, causing its AUROC performance to be slightly lower than DMENet. Compared to baseline methods, DMENet's adaptive thresholding mechanism can adjust the decision boundary in real time according to the dynamic changes in feature distribution, effectively avoiding the limitations of fixed thresholds, thus maintaining a stable performance advantage in the high SNR range.

[0105] DMENet also demonstrated optimal OSCR performance under different SNR conditions, indicating that the method can not only reliably classify and identify known modulation types, but also accurately reject unknown modulation signals. Furthermore, the performance of the DMENet method remained stable under different openness conditions, demonstrating that the DMENet method does not rely on a specific known / unknown class division method. It can balance the accuracy of known class identification with the robustness of unknown class rejection in scenarios with varying proportions of unknown classes, exhibiting a consistent advantage over other benchmark methods.

[0106] To further quantify and verify the performance of the DMENet method, Table 2 details the specific performance of the RaioML2016.10a dataset under three different openness conditions. and The metrics are the results at signal-to-noise ratios of 6 dB and 0 dB, respectively. Additionally, average results in the range of -16 dB to 18 dB are also listed. and .

[0107] Experimental results show that, under the conditions of overall average performance and specific signal-to-noise ratio, the DMENet method generally outperforms baseline methods such as LGFSCN. For example, at an openness of 20.94%, DMENet... It reached 68.22%, 2.9% higher than LGFSCN. When the openness level decreased to 11.81% and 5.13%, DMENet maintained its core metrics of balancing accuracy for known classes and rejection rate for unknown classes. DMENet maintains its lead, outperforming LGFSCN by 6.13% and 4.94% respectively. This indicates that DMENet can more accurately delineate the known and unknown decision boundaries in most scenarios. However, LGFSCN still demonstrates its unique advantages under certain specific conditions. Although DMENet is superior in most core metrics, LGFSCN's performance is lower at an openness of 11.81%. It reached 83.07%, slightly ahead of DMENet. At a lower openness of 5.13%, LGFSCN... The accuracy reached 82.02%, surpassing DMENet's 79.53%. This is because LGFSCN utilizes a self-attention mechanism, primarily focusing on detailed and global information contained in the signal. This global and local feature matching mechanism can still maintain the clustering effect of known categories well under strong noise interference. Overall, DMENet performs better and is more robust when facing different signal-to-noise ratios and openness.

[0108] Table 2 Table 3 Table 3 shows the performance comparison of each model on the HisarMod2019.1 dataset with an openness of 22.89%. Experimental results show that DMENet significantly outperforms other baseline models in average performance. It reached 80.11%. The accuracy rate reached 70.91%, slightly outperforming the second-best performing LGFSCN. This indicates that DMENet can effectively handle open-set identification tasks in complex channel environments. Under high signal-to-noise ratio conditions, DMENet's advantages are further amplified. Reaching 87.45%, The accuracy reached 84.43%. Compared to classic open-set recognition models, DMENet's lead in OSCR is more significant, exceeding OpenMax by approximately 6.45%. This is because OpenMax, based on extremum theory, or prototype-based RPL and ARPL methods are prone to feature boundary overlap in the high-dimensional feature space of modulated signals. DMENet's 84.43% accuracy... This demonstrates that while maintaining extremely high closed-set classification accuracy, it also retains excellent unknown signal rejection capability. This is particularly evident when evaluating performance at low signal-to-noise ratios. In terms of metrics, LGFSCN reached 78.75%, slightly higher than DMENet, but... In terms of metrics, DMENet outperforms LGFCN, indicating that LGFCN has better ability to distinguish between known and unknown binary classification rejections under low signal-to-noise ratio conditions, but its specific classification accuracy for known classes is poor. Based on the above experiments, the DMENet method demonstrates excellent stability and effectiveness under different openness, signal-to-noise ratio, and real hardware impairment conditions.

[0109] IV. Open set recognition performance under different evaluation metrics To comprehensively verify the overall performance of the DMENet model from multiple dimensions, this section further introduces three supplementary evaluation metrics: KSA, USA, and NA statistical results. The performance of each model under different openness conditions in the RadioML2016.10a dataset is compared, and the results are shown in Table 4.

[0110] Table 4 As shown in Table 4, DMENet demonstrates superior overall performance across different openness levels on the RadioML2016.10a dataset. In the high openness scenario (20.94%), DMENet achieves comprehensive performance leadership, with KSA, USA, and NA scores reaching 96.35%, 95.21%, and 95.78%, respectively, significantly improving upon the second-best LGFSCN method by 4.21%, 3.37%, and 4.25%. This indicates that in complex scenarios with a high proportion of unknown classes, DMENet can most effectively balance accurate classification of known classes with reliable rejection of unknown classes.

[0111] At an openness of 11.81%, DMENet maintains extremely high overall stability, with AKS, AUS, and NA at 93.61%, 90.65%, and 90.55%, respectively. It's worth noting that at this openness, while OpenMax achieves high classification accuracy (AKS of 92.93%), its AUS drops to 54.41%, indicating that this type of method severely sacrifices its ability to reject unknown classes in exchange for fitting known classes. In contrast, DMENet, while maintaining a high AKS, still outperforms all baseline methods in terms of overall NA, exceeding the second-best LGFSCN by 1.49%.

[0112] When the openness decreases to 5.13%, the open set recognition task becomes more similar in distribution to traditional closed set classification. In this scenario, DMENet achieves an AKS of 93.32%, ensuring extremely high accuracy in classifying known signals. Meanwhile, its overall NA reaches 91.08%, slightly higher than LGFSCN. LGFSCN, under this condition, achieves an unknown class rejection rate (AUS) of 90.44%, slightly leading DMENet, but DMENet still maintains its advantage in the NA metric, which characterizes global balanced performance.

[0113] Based on the validation results across multiple metrics, DMENet demonstrates that it constructs a robust feature distribution space using a dual-domain mask embedding network and can adaptively select the rejection threshold to identify unknown modulation types. Overall, DMENet effectively balances the open-space risk of unknown modulation types with the empirical risk of known modulation types, exhibiting strong robustness.

[0114] V. Open set recognition performance under actual test data To verify the open-set recognition capability of the designed network model in the face of unknown signals in a real radio environment, experiments were conducted using measured data collected by a USRP device. Since the measured signals were all collected in a complex electromagnetic environment without prior signal-to-noise ratio information, this experiment focused on examining the model's ability to recognize known classes and reject unknown signals under real physical interference.

[0115] This experiment involved radio signal data of eight modulation types. Under the open-set setting, BPSK, QPSK, 8PSK, PAM4, 16QAM, and 64QAM were classified as known classes, while the remaining two modulation types, CPFSK and GFSK, were classified as unknown classes. Based on the openness commonly used in open-set identification, the openness of this experiment was calculated to be 7.42%. For data partitioning, 75% of the samples from the known classes were randomly selected for model training and threshold fitting, while the remaining 25% of the known class samples, along with all unknown class samples, constituted the test set.

[0116] Under complex electromagnetic interference conditions, the LGFSCN method exhibits an extremely conservative classification tendency in open-set modulation identification. For example... Figure 13 As shown, the model achieves an extremely high rejection rate of 92.77% for unknown signals. However, the diagonal data of the confusion matrix indicates that the recognition accuracy for the six known modulation types is generally low, with a large number of known signals being incorrectly rejected and classified as unknown. This suggests that under strong noise interference, the feature extraction capability of LGFSCN degrades, resulting in poor performance in recognizing known classes. The high rejection rate for unknown signals is achieved at the expense of the accuracy of known class classification.

[0117] Figure 14 The confusion matrix of DMENet on the experimental data is presented. Under the experimental dataset, the model maintains highly stable and excellent recognition performance. In the closed-set classification task of known modulated signals, the overall accuracy of the model is good, with the accuracy of most known classes exceeding 70%. However, as a trade-off for performance improvement, DMENet's overall rejection rate for unknown classes decreases to 69.14%, and 28.05% of unknown signals are incorrectly identified as 8PSK. This phenomenon reflects that under extremely poor signal-to-noise ratio conditions, the feature distribution of some unknown signals locally overlaps with 8PSK. Experimental results show that the DMENet method provided in this application also exhibits good recognition performance on radio signal data generated by USRP transmitters in real-world scenarios, verifying the generalization and effectiveness of the DMENet network model on real radio signal data.

[0118] VI. Ablation Experiment To verify the effectiveness and robustness of the key modules in the DMENet method provided in this application under open electromagnetic environments, ablation experiments were designed on the RadioML2016.10a dataset. A comprehensive comparative analysis was conducted on the complete DMENet model and its two degenerate variants within a signal-to-noise ratio range of -20 dB to 18 dB. DMENet-A removes the mask module; in this case, the model uses the traditional Softmax cross-entropy loss to replace the triple center loss, which is equivalent to boundary loss only, used to evaluate the capabilities of conventional closed-set classification networks. DMENet-B removes the boundary loss, retaining only the triple center loss and the mask structure. The effectiveness of the joint loss function designed in this chapter is demonstrated by removing the loss term.

[0119] Figure 15The AUROC performance of each model under different signal-to-noise ratios (SNRs) is compared. When the SNR is greater than 0 dB, the model performance tends to stabilize. DMENet performs best, with its AUROC stabilizing at around 97%. DMENet-B is second best, while DMENet-A performs worst. This is because DMENet-A relies solely on Softmax loss for classification fitting, lacking boundary constraints on the open space, thus exhibiting poor rejection capability for unknown classes. DMENet-B, by introducing a triple center loss, promotes a compact intra-class and separated inter-class distribution of known class features, improving the detection capability of unknown classes. DMENet achieves optimal performance by combining both losses and adding a masking module, thus achieving optimal feature decoupling and representation. In the low-to-medium SNR range of -6 dB to -2 dB, DMENet-B's AUROC performance is slightly better than the complete model, indicating that in specific low SNR environments, overly stringent decision boundary constraints may cause slight perturbations to the clustering distribution. However, with the improvement of the channel environment, due to the ability to achieve deep decoupling and spatial constraints of dual-domain features through the joint loss function, it has shown better feature representation robustness than the two ablation variants.

[0120] Figure 16 The comparison trend of various variants on the OSCR metric is shown. In the high SNR range above 0dB, the OSCR value of the DMENet model significantly outperforms the two ablation variants, DMENet-A and DMENet-B, maintaining an absolute lead throughout the high SNR range. Since the OSCR metric considers both the classification accuracy of known classes and the rejection rate of unknown classes, the overall superior performance of DMENet-B compared to DMENet-A demonstrates that the triple center loss is better than simple cross-entropy in improving the overall metric. The highest score obtained by the complete DMENet fully verifies that DMENet, through the synergistic work of the joint loss and masking module, maximizes the rejection of unknown classes while ensuring high classification accuracy of known classes, thus achieving the highest comprehensive evaluation metric, OSCR.

[0121] In summary, the ablation experiments demonstrate that removing the ternary center loss significantly reduces open-set recognition capability, confirming that the traditional Softmax loss cannot learn highly discriminative compact clusters and is prone to spatial confusion of unknown classes. Further comparison between DMENet-B and DMENet shows that while the single ternary center loss achieved good results, the overall performance of the model was further improved after introducing the joint constraints of the mask module and boundary loss. The ablation experiment results strongly validate the rationality of the DMENet architecture design, demonstrating its effectiveness and robustness in open electromagnetic environments.

[0122] Table 5 The computational complexity of each model was comprehensively evaluated based on four metrics: parameter count, FLOPs, training time, and inference time. The results are shown in Table 5. Although DMENet has a slightly higher parameter count than LGFSCN, its computational cost is significantly lower than all baseline models, with only 12.45MB of FLOPs. By decoupling standard convolutions into depthwise convolutions and pointwise convolutions, DMENet significantly reduces the computational complexity of forward propagation with only a slight increase in static storage overhead, thus achieving efficient adaptation to the computational resource constraints of edge nodes.

[0123] In terms of running speed, DMENet also exhibits the shortest training and inference times. Its single-sample inference time is only 3.07ms, which is 1.05ms shorter than the faster LGFSCN in the comparison model. This result shows that DMENet maintains high accuracy in open set recognition while also achieving extremely high timeliness, making it highly suitable for practical deployment in embedded edge computing.

[0124] In summary, this application provides an open-set electromagnetic signal recognition method based on a dual-domain masking embedding network. First, the model receives the original time-domain signal and constructs frequency-domain features using Fast Fourier Transform (FFT). To enhance the model's understanding of the signal's core structure and construct feature boundaries, a structured segmented masking strategy is introduced. For the time and frequency dual-domain inputs, independent continuous segmented masking is applied to generate damaged samples. By artificially disrupting the signal's continuity, fading or interference in actual communication is simulated, enabling the feature extractor to mine robust discriminative features from incomplete information and define the physical boundaries of known classes in the latent space using damaged samples. The feature extractor employs a lightweight LiteResNet structure, utilizing depthwise separable convolutions to decouple spatial and channel features. The extracted time-domain and frequency-domain features are concatenated and mapped to a low-dimensional feature embedding through a fully connected layer. During the training phase, the model is optimized by weighted combination of ternary center loss and boundary loss. Simultaneously, ATRM calculates a dynamic threshold independently for each known class based on the statistical features of the training set using the quantile method. During the testing phase, the system calculates the minimum Euclidean distance from the test sample to the center of each known class. If the distance exceeds the dynamic threshold, the sample is rejected as an unknown class; otherwise, it is assigned to the corresponding modulation category. This ultimately achieves accurate classification of known classes and effective rejection of unknown classes.

[0125] Figure 17 A schematic diagram of an electromagnetic signal open-set identification device based on a dual-domain mask embedding network is provided in an embodiment of this application; as shown below. Figure 17 As shown, the device includes: The acquisition module 1710 is configured to acquire the time-domain signal and frequency-domain signal of the input signal; The processing module 1720 is configured to perform structured segmentation masking on the time-domain signal and the frequency-domain signal respectively, to generate a damaged time-domain signal of the time-domain signal and a damaged frequency-domain signal of the frequency-domain signal. The recognition module 1730 is configured to input damaged time-domain signals and damaged frequency-domain signals into a trained lightweight residual network for recognition, thereby obtaining the target category corresponding to the input signal; wherein, the parameters of the trained lightweight residual network are optimized through joint loss, which includes ternary center loss and boundary loss.

[0126] The above-described device is used to execute the method provided in the foregoing embodiments, and its implementation principle and technical effect are similar, so they will not be described again here.

[0127] These modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a system-on-a-chip (SOC).

[0128] Figure 18 This is a schematic diagram of a computer device provided in an embodiment of this application. The device can be integrated into a terminal device or a chip of a terminal device. The terminal can be a computing device with data processing capabilities.

[0129] The device includes: processor 1801, storage medium 1802, and bus 1803.

[0130] Storage medium 1802 stores program instructions executable by processor 1801. When computer device 1800 is running, processor 1801 communicates with storage medium 1802 via bus 1803, and processor 1801 executes the program instructions to perform the above-described method embodiment. The specific implementation method and technical effect are similar, and will not be described again here.

[0131] Optionally, the present invention also provides a program product, such as a computer-readable storage medium, including a program that, when executed by a processor, is used to perform the above-described method embodiments.

[0132] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0133] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0134] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0135] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0136] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for open-set identification of electromagnetic signals based on a dual-domain mask embedding network, characterized in that, include: Acquire the time-domain and frequency-domain signals of the input signal; The time-domain signal and the frequency-domain signal are respectively subjected to structured segmentation masking to generate a damaged time-domain signal of the time-domain signal and a damaged frequency-domain signal of the frequency-domain signal; The damaged time-domain signal and the damaged frequency-domain signal are input into a trained lightweight residual network for identification to obtain the target category corresponding to the input signal; wherein, the parameters of the trained lightweight residual network are optimized by a joint loss, which includes a triple center loss and a boundary loss.

2. The method according to claim 1, characterized in that, The acquisition of the time-domain and frequency-domain signals of the input signal includes: Obtain the time-domain signal of the input signal; A replica time-domain signal is generated based on the time-domain signal, and a fast Fourier transform is performed on the replica time-domain signal to obtain the frequency-domain signal.

3. The method according to claim 1, characterized in that, The step of performing structured segmentation masking on the time-domain signal and the frequency-domain signal respectively to generate a damaged time-domain signal of the time-domain signal and a damaged frequency-domain signal of the frequency-domain signal includes: The total number of masked sampling points is determined based on the lengths of the time-domain signal and the frequency-domain signal, as well as the target mask ratio. The length of each continuous mask block is determined based on the total number of sampling points and the number of target mask segments; Based on the number of target mask segments and the length of the continuous mask block, the time-domain signal and the frequency-domain signal are masked to obtain the damaged time-domain signal and the damaged frequency-domain signal.

4. The method according to claim 1, characterized in that, The step of inputting the damaged time-domain signal and the damaged frequency-domain signal into a trained lightweight residual network for identification to obtain the target category corresponding to the input signal includes: The damaged time-domain signal and the damaged frequency-domain signal are respectively input into the deep convolutional layer of the trained lightweight residual network for feature extraction to obtain an intermediate feature vector; The intermediate feature vectors are respectively input into the pointwise convolutional layers of the trained lightweight residual network for channel-level dimensionality upscaling to obtain the time-domain feature map and the frequency-domain feature map. The time-domain feature map and the frequency-domain feature map are input into the channel attention module of the trained lightweight residual network for processing and mapped to a unit hypersphere to obtain unit hypersphere features. Determine the Euclidean distance between the unit hyperspherical feature and the centers of all categories, and determine the target category corresponding to the input signal based on the Euclidean distance.

5. The method according to claim 4, characterized in that, The step of inputting the temporal feature map and the frequency feature map into the channel attention module of the trained lightweight residual network for processing, and mapping them to a unit hypersphere to obtain unit hypersphere features, includes: The time-domain feature map and the frequency-domain feature map are concatenated to obtain a fused feature map; The fused feature map is input into a global average pooling layer for channel-level compression to obtain a channel description vector; The channel description vector is input into a multilayer perceptron to learn the nonlinear dependencies between different channels and generate weights for different channels. The different channels of the fused feature map are recalibrated according to the weights of the different channels; The recalibrated fused feature map is mapped onto the unit hypersphere to obtain the unit hypersphere feature.

6. The method according to claim 4, characterized in that, Determining the target category corresponding to the input signal based on the Euclidean distance includes: The Euclidean distance is compared with the corresponding dynamic threshold. When the Euclidean distance is less than the corresponding dynamic threshold, the category center corresponding to the Euclidean distance is determined as the target category corresponding to the input signal.

7. The method according to claim 6, characterized in that, The dynamic threshold is determined by calculating and sorting the Euclidean distance set between each sample and the class center after training the trained lightweight residual network, and then using the quantile method.

8. The method according to claim 1, characterized in that, The training process of the trained lightweight residual network includes: Initialize the parameters of the lightweight residual network to be trained; The training samples are input into the lightweight residual network to be trained for forward propagation to obtain the predicted Euclidean distance between the training samples and their corresponding class centers. The loss value between the predicted Euclidean distance and the true Euclidean distance is calculated based on the joint loss function, and the descent gradient of the loss value with respect to the network parameters in the lightweight residual network to be trained is calculated through backpropagation; the joint loss function is used to characterize the joint loss; the joint loss includes triple center loss and boundary loss; An optimizer is used to optimize the lightweight residual network to be trained based on the descent gradient until a preset convergence condition is reached, at which point training ends and the trained lightweight residual network is obtained.

9. An electromagnetic signal open-set identification device based on a dual-domain mask embedding network, characterized in that, The device includes: The acquisition module is configured to acquire the time-domain and frequency-domain signals of the input signal; The processing module is configured to perform structured segmentation masking on the time-domain signal and the frequency-domain signal respectively, to generate a damaged time-domain signal of the time-domain signal and a damaged frequency-domain signal of the frequency-domain signal; The identification module is configured to input the damaged time-domain signal and the damaged frequency-domain signal into a trained lightweight residual network for identification, thereby obtaining the target category corresponding to the input signal; wherein the parameters of the trained lightweight residual network are optimized by a joint loss, which includes a triple center loss and a boundary loss.

10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, performs the steps of the open set identification method as described in any one of claims 1 to 8.