Small Sample Modulation Signal Recognition Method Based on Spatiotemporal Mixed Feature Extraction Network
Through the spatio-temporal hybrid feature extraction network, the spatial and temporal characteristics of the modulated signal are extracted, and the prediction probability is calculated using class prototype and Euclidean distance, which solves the problem of low efficiency of modulated signal recognition in small samples and achieves recognition with high accuracy and low difficulty training. Effect.
Patent Information
- Application Number
- CN202210416209.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-20
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-04-20
AI Technical Summary
Existing automatic modulation classification methods have low recognition efficiency under small sample conditions and are difficult to effectively identify modulation signal categories, especially when samples are scarce.
Using a method based on spatiotemporal hybrid feature extraction network, the modulated signal features are extracted through spatial feature and temporal feature extractors, the support set is used to calculate the class prototype and the Euclidean distance, combined with the softmax function to convert into predicted probability, and hybrid prediction is performed to update the network weights , identifies the modulation category.
It improves the accuracy of signal modulation category recognition, reduces the difficulty of model training, maintains recognition performance under small samples, and ensures recognition accuracy.
Smart Images

Figure CN114925720B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of signal modulation recognition, and in particular relates to a small sample modulation signal recognition method based on a spatiotemporal hybrid feature extraction network. Background Art
[0002] Automatic Modulation Classification (AMC) is a fundamental signal processing technique that aims to identify the modulation class of received wireless communication signals. It has received a lot of attention due to its military significance and plays an important role in various applications, such as spectrum monitoring, spectrum interference detection, and electronic warfare.
[0003] From the perspective of machine learning, AMC is a multi-class classification task. Traditional AMC algorithms are divided into two categories, namely likelihood-based methods and feature-based methods. Both methods can achieve effective recognition of AMC. Although semi-supervised AMC methods can effectively avoid over-reliance on labeled training samples, they still require a large number of training samples for each category to assist model training. In actual AMC tasks, it may be difficult and costly to collect enough signal samples for certain types of modulated signals. In more extreme cases, only a small number of signal samples of modulation categories can be obtained, and existing AMC methods are no longer effective. The scarcity of samples poses a challenge to existing AMC methods. Summary of the invention
[0004] In order to solve the above problems existing in the prior art, the present invention provides a small sample modulation signal recognition method based on a spatiotemporal hybrid feature extraction network. The technical problem to be solved by the present invention is achieved by the following technical solutions:
[0005] The embodiment of the present invention provides a small sample modulation signal recognition method based on a spatiotemporal hybrid feature extraction network, comprising:
[0006] Construct an initial spatiotemporal hybrid feature extraction network;
[0007] Inputting the training small sample modulation signal set into the initial spatiotemporal mixed feature extraction network for training to obtain a target spatiotemporal mixed feature extraction network;
[0008] Inputting the modulation signal set to be identified into the target spatiotemporal hybrid feature extraction network for identification to obtain the modulation category of each type of modulation signal in the modulation signal set to be identified;
[0009] The modulation category of each type of modulation signal in the modulation signal set to be identified is different from the modulation category of each type of modulation signal in the training small sample modulation signal set; the training small sample modulation signal set includes a training support set and a training query set; the modulation signal set to be identified includes a labeled support set and a query set to be identified; and the corresponding training process and the identification process both include:
[0010] A spatial and temporal feature extraction network is used to extract the spatial and temporal features of a modulation signal set; the class prototypes corresponding to the spatial and temporal features are calculated according to the support set; the Euclidean distances between the class prototypes corresponding to the query set and its spatial and temporal features are calculated respectively; the corresponding Euclidean distances are converted into the probability of the corresponding modulation category using a softmax function; the hybrid prediction probability is jointly calculated according to the converted probability of the modulation category; wherein the modulation signal set includes the training small sample modulation signal set and the modulation signal set to be identified; the support set includes the training support set and the labeled support set; the query set includes the training query set and the query set to be identified;
[0011] The training process also includes: iteratively adjusting the initial spatiotemporal hybrid feature extraction network according to the hybrid prediction probability until an iteration stop condition is met to obtain the target spatiotemporal hybrid feature extraction network;
[0012] The identification process further includes: searching for a maximum probability value in the mixed prediction probability, and using the modulation category corresponding to the maximum probability value as the modulation category of the query set to be identified.
[0013] In one embodiment of the present invention, the spatiotemporal hybrid feature extraction network includes a spatial feature extractor, a temporal feature extractor, a Euclidean classifier and a hybrid reasoning module, wherein:
[0014] The spatial feature extractor is used to extract the spatial features of the modulated signal set;
[0015] The time feature extractor is used to extract the time feature of the modulation signal set;
[0016] The Euclidean classifier is used to calculate the class prototype corresponding to its spatial features and temporal features according to the support set; and calculate the Euclidean distance between the query set and the class prototype corresponding to its spatial features and temporal features respectively;
[0017] The hybrid reasoning module is used to convert the corresponding Euclidean distance into the prediction probability of the corresponding modulation category by using the softmax function; and jointly calculate the hybrid prediction probability according to the converted prediction probability of the modulation category.
[0018] In one embodiment of the present invention, the spatial feature extractor includes a first subspace feature extractor, a second subspace feature extractor and a splicing module, wherein:
[0019] The first subspace feature extractor is used to extract the spatial features of I-channel modulation signals in the modulation signal set;
[0020] The second subspace feature extractor is used to extract the spatial features of the Q-channel modulation signal in the modulation signal set;
[0021] The splicing module is used to splice the spatial features of the I-path modulated signal and the spatial features of the Q-path modulated signal to obtain the spatial features output by the spatial feature extractor.
[0022] In one embodiment of the present invention, the first subspace feature extractor and the second subspace feature extractor each include a plurality of sequentially connected convolutional pooling units, and a fully connected layer connected to the last convolutional pooling unit; wherein,
[0023] Each convolutional pooling unit consists of a convolutional layer, a ReLU activation layer, a batch normalization layer, and a maximum pooling layer connected in sequence.
[0024] In one embodiment of the present invention, the temporal feature extractor comprises a plurality of sequentially connected residual blocks, each residual block comprises a plurality of sequentially connected extended causal convolution activation units, and an adder connected to the last extended causal convolution activation unit; wherein,
[0025] Each extended causal convolution activation unit includes an extended causal convolution layer, a batch normalization layer, a ReLU activation layer and a Dropout layer connected in sequence; wherein the adder input end is connected to the input end of the extended causal convolution layer in the first extended causal convolution activation unit and the output end of the Dropout layer in the last extended causal convolution activation unit.
[0026] In one embodiment of the present invention, the spatial feature extractor extracts spatial features by mapping, and the corresponding mapping function formula is expressed as:
[0027]
[0028] Among them, x i represents the i-th modulation signal in the modulation signal set, f Spatial (x i ) represents x i The spatial feature extractor extracts the mapping function of spatial features, encoder(x i ) represents the function mapping, specifically 2×128 x i In the spatial feature space, the mapping is 1×100
[0029] In one embodiment of the present invention, the time feature extractor extracts the time feature by mapping, and the corresponding mapping function formula is expressed as:
[0030]
[0031] Among them, f Temporal (x i ) represents x i The time feature extractor extracts the mapping function of the time feature, specifically converting the 2×128 x i The time feature space is mapped to 1×16
[0032] In one embodiment of the present invention, the class prototype formula corresponding to the spatial feature calculated according to the support set is expressed as:
[0033]
[0034] The class prototype formula corresponding to the time feature calculated according to the support set is expressed as:
[0035]
[0036] Among them, c k-S represents the class prototype of the k-th modulation signal in the spatial feature space in the support set, S k represents the kth type of modulation signal set in the support set, |S k | indicates S k The total number of modulated signals in Indicates S k The i-th modulation signal in express The corresponding label, express The mapping function of the spatial feature extractor, c k-T represents the class prototype of the k-th modulation signal in the time feature space in the support set, express The mapping function of the temporal feature extractor.
[0037] In one embodiment of the present invention, the corresponding Euclidean distance is converted into the prediction probability formula of the corresponding modulation category using the softmax function as follows:
[0038]
[0039]
[0040] in, represents the predicted probability of the modulation category corresponding to the spatial feature of the k-th modulation signal in the query set, C represents the number of signal modulation categories in the query set, Indicates that the query is focused The Euclidean distance between the class prototype corresponding to the spatial feature of the k-th class modulation signal, ·|| 2 It means to find the 2-norm of a vector. represents the predicted probability of the modulation category corresponding to the temporal feature of the k-th modulation signal in the query set, Indicates that the query is focused The Euclidean distance between the class prototype corresponding to the temporal feature of the k-th modulation signal,
[0041] In one embodiment of the present invention, the formula for jointly calculating the mixed prediction probability based on the prediction probability of the modulation category converted at this time is expressed as:
[0042]
[0043] in, represents the mixed prediction probability,
[0044] α1,α2,…,α C represents the predicted probability of the corresponding modulation category of the C-type modulation signal in the query set after the spatial feature extractor outputs, max{·} represents the maximum value, β1,β2,…,β C represents the predicted probability of the corresponding modulation category output by the temporal feature extractor for the C-type modulation signal in the query set,
[0045]
[0046] Beneficial effects of the present invention:
[0047] The invention proposes a small sample modulation signal recognition method based on a spatiotemporal hybrid feature extraction network, and proposes a new network structure, namely, a spatiotemporal hybrid feature extraction network. The spatiotemporal hybrid feature extraction network is used to extract the spatial features and temporal features of a modulation signal set during training or recognition, and the support set in the modulation signal set is used to calculate the class prototype corresponding to its spatial features and temporal features, and then the Euclidean distance between the query set in the modulation signal set and the class prototype corresponding to its spatial features and temporal features is calculated, and the prediction probability in the spatial feature space and the temporal feature space is calculated by the Euclidean distance, and the prediction probability in the temporal feature space and the spatial feature space is jointly calculated by combining the prediction probability in the temporal feature space and the spatial feature space. In training, the network weight of the spatiotemporal hybrid feature extraction network is updated according to the mixed prediction probability, and in recognition, the modulation category of the modulation signal in the query set to be recognized is determined according to the mixed prediction probability.
[0048] It can be seen that the present invention can fully extract features in the time feature space and the spatial feature space. Compared with the existing method of simply extracting features in the spatial or time feature space, it has excellent automatic feature extraction and feature fusion capabilities, so that more signal features can be used to effectively improve the accuracy of signal modulation category recognition; and based on the new network structure, the present invention also adopts a new reasoning strategy: the prediction probabilities in the time feature space and the spatial feature space are combined to jointly calculate the mixed prediction probability, and the mixed prediction probability is used to update the network weights of the time-space mixed feature extraction network to train a more accurate target time-space mixed feature extraction network for subsequent recognition; in the recognition process, the more accurate target time-space mixed feature extraction network obtained by training is used for recognition, and the category with the largest mixed prediction probability is used as the modulation category of the modulated signal in the query set to be identified, which can ensure the recognition accuracy of the modulated signal in the query set to be identified.
[0049] At the same time, since the present invention adopts a spatiotemporal hybrid feature extraction network, under the condition that the number of modulated signal training samples is relatively scarce, even if the spatial or temporal features are not fully extracted, the class prototype is calculated using the support set, and then the class prototype obtained by the support set calculation is used to calculate the prediction probability of the query set. This small sample learning method can still ensure the recognition accuracy of the signal modulation category by the spatiotemporal hybrid feature extraction network; and using fewer training samples to train the network can reduce the difficulty of training the spatiotemporal hybrid feature extraction network model.
[0050] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is a flow chart of a small sample modulation signal recognition method based on a spatiotemporal hybrid feature extraction network provided by an embodiment of the present invention;
[0052] Figure 2 is a schematic diagram of the network structure of a spatial feature extractor provided by an embodiment of the present invention;
[0053] Figure 3 is a schematic diagram of the network structure of a time feature extractor provided by an embodiment of the present invention;
[0054] Figure 4 Schematic diagram of the training process of the spatiotemporal hybrid feature extraction network provided by an embodiment of the present invention;
[0055] Figure 5 Schematic diagram of the recognition process using a spatiotemporal hybrid feature extraction network provided by an embodiment of the present invention;
[0056] Figure 6It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0057] The present invention is further described in detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.
[0058] Embodiment 1
[0059] In order to ensure the accuracy of signal modulation category recognition under small samples, an embodiment of the present invention provides a small sample modulation signal recognition method based on a spatiotemporal hybrid feature extraction network, which specifically includes the following steps:
[0060] S10, construct an initial spatiotemporal hybrid feature extraction network.
[0061] Specifically, when modulated signal recognition is usually implemented, the recognition signal is mapped to a spatial feature space or a temporal feature space. Since the spatial feature space or the temporal feature space only considers the spatial features or the temporal features of the modulation signal mapping and the characteristics of the limited modulation signal, it is inevitable that the extracted spatial features or the temporal features cannot effectively identify the modulation category of the modulated signal.
[0062] Based on the above analysis, the embodiment of the present invention proposes a new network structure, namely, a spatiotemporal hybrid feature extraction network. Compared with the existing technology, since the modulated signal is simultaneously mapped to the spatial feature space and the temporal feature space, more characteristics of the modulated signal can better understand the modulated signal, and the temporal and spatial features can be fully extracted. Even with a small number of signal samples, the accuracy of signal modulation category recognition can still be effectively improved. Specifically, the embodiment of the present invention proposes a new spatiotemporal hybrid feature extraction network, which includes a spatial feature extractor, a temporal feature extractor, a Euclidean classifier and a hybrid reasoning module, wherein:
[0063] A spatial feature extractor, used to extract spatial features of a modulated signal set;
[0064] A time feature extractor, used to extract the time features of the modulated signal set;
[0065] Euclidean classifier is used to calculate the class prototype corresponding to its spatial and temporal features based on the support set; and calculate the Euclidean distance between the query set and the class prototype corresponding to its spatial and temporal features respectively;
[0066] The hybrid inference module is used to convert the corresponding Euclidean distance into the prediction probability of the corresponding modulation category by using the softmax function; and jointly calculate the hybrid prediction probability according to the converted prediction probability of the modulation category.
[0067] It can be seen that the embodiment of the present invention not only considers the spatial and temporal features of the modulation signal at the same time, but also uses the small sample learning idea and adopts a new reasoning strategy based on the spatial and temporal features. Specifically: the class prototype corresponding to the spatial and temporal features is calculated using the support set, and then the Euclidean distance between the query set and the corresponding class prototype is calculated. The Euclidean distance is converted into a prediction probability using the softmax function. The smaller the Euclidean distance, the greater the prediction probability, so that it can be predicted which class prototype the modulation signal in the query set is closer to, and the classification of the modulation signal in the query set is realized. On this basis, the embodiment of the present invention also proposes a hybrid reasoning strategy, which comprehensively considers the prediction probability under the spatial feature and the prediction probability under the temporal feature, designs a hybrid prediction probability function, and calculates the prediction probability through the function. Similarly, the larger the prediction probability, the corresponding prediction query set modulation signal is closer to which class prototype, and the classification of the modulation signal in the query set is more accurate. It can be seen that using this reasoning strategy, even if the spatial features or temporal features are not fully extracted, the recognition performance of the modulation signal can still be maintained by using a small sample signal. At the same time, due to the use of a small sample signal, the difficulty of training the space-time hybrid feature extraction network can be reduced.
[0068] See also Figure 2 , the spatial feature extractor of the embodiment of the present invention may include a first subspace feature extractor, a second subspace feature extractor and a splicing module, wherein,
[0069] A first subspace feature extractor, used for extracting the spatial features of I-channel modulation signals in the modulation signal set;
[0070] A second subspace feature extractor, used for extracting the spatial features of the Q-path modulation signal in the modulation signal set;
[0071] The splicing module is connected to the first subspace feature extractor and the second subspace feature extractor, and is used to splice the spatial features of the I-channel modulated signal and the spatial features of the Q-channel modulated signal into the spatial features output by the final spatial feature extractor.
[0072] It can be seen that in the spatial feature extraction process, the embodiment of the present invention divides the modulation signals in the support set and the query set into I-path modulation signals and Q-path modulation signals, which are respectively input into the first subspace feature extractor and the second subspace feature extractor, so as to realize mapping the I-path modulation signals and the Q-path modulation signals to two subspace feature spaces. The amplitude and phase of the modulation signals can be better understood through the I and Q modulation signals, thereby effectively improving the accuracy of modulation category recognition of the modulation signals.
[0073] Please see again Figure 2 In the embodiment of the present invention, the first subspace feature extractor and the second subspace feature extractor both include a plurality of sequentially connected convolutional pooling units, and a fully connected layer connected to the last convolutional pooling unit; wherein,
[0074] Each convolutional pooling unit consists of a convolutional layer, a ReLU activation layer, a batch normalization layer, and a maximum pooling layer connected in sequence.
[0075] For example, taking three convolutional pooling units as an example, the specific structure of each convolutional pooling unit is: convolutional layer (Conv) → ReLU activation layer → batch normalization layer (Batch Norm) → maximum pooling layer (Max Pooling) → convolutional layer → ReLU activation layer → batch normalization layer → maximum pooling layer → convolutional layer → ReLU activation layer → batch normalization layer → maximum pooling layer → fully connected layer (Fully Connected).
[0076] In the embodiment of the present invention, the size of the convolution kernel in each convolution pool unit is 2×2, the step size is 3, and the number of convolution kernels in the convolution layer is 16; the size of the maximum pooling layer in each convolution pool unit is 2×2, and the sliding step size is 2; the signal features after passing through the convolution pool unit are flattened in the fully connected layer and connected to 50 nodes; finally, the outputs of the I and Q modulated signals are spliced in one dimension and then input into the Euclidean classifier.
[0077] See also Figure 3 , the temporal feature extractor of the embodiment of the present invention comprises a plurality of sequentially connected residual blocks, each residual block comprises a plurality of sequentially connected extended causal convolution activation units, and an adder connected to the last extended causal convolution activation unit; wherein,
[0078] Each extended causal convolution activation unit includes an extended causal convolution layer, a batch normalization layer, a ReLU activation layer and a Dropout layer connected in sequence; wherein the adder input is connected to the input of the extended causal convolution layer in the first extended causal convolution activation unit and the output of the Dropout layer in the last extended causal convolution activation unit.
[0079] For example, taking three residual blocks as an example, the structures of the three residual blocks are the same. Each residual block includes two extended causal convolution activation units and an adder. The specific structure of each residual block is: extended causal convolution layer (connected to the adder) → batch normalization layer → ReLU activation layer → Dropout layer → extended causal convolution layer → batch normalization layer → ReLU activation layer → Dropout layer → adder. Finally, the outputs of the three residual blocks are input to the Euclidean classifier.
[0080] In the embodiment of the present invention, the random discarding probability parameter of the Dropout layer is 0.2; the expansion amount of the extended causal convolution layer in the first residual block is 1; the expansion amount of the extended causal convolution layer in the second residual block is 2; and the expansion amount of the extended causal convolution layer in the third residual block is 4.
[0081] In the process of time feature extraction in the embodiment of the present invention, the modulated signals in the support set and the query set are input into the time feature extractor as complete IQ modulated signals.
[0082] It should be noted that the spatiotemporal hybrid feature extraction network constructed in S10 is used for training, and the modulation signal set used in the training process specifically corresponds to the training small sample modulation signal set, the support set specifically corresponds to the training support set in the training small sample modulation signal set, and the query set specifically corresponds to the training query set in the training small sample modulation signal set. The modulation signal set used for subsequent identification specifically corresponds to the modulation signal set to be identified, the support set specifically corresponds to the labeled support set in the modulation signal set to be identified, and the query set specifically corresponds to the query set to be identified in the modulation signal set to be identified. S20, the training small sample modulation signal set is input into the initial spatiotemporal hybrid feature extraction network for training to obtain the target spatiotemporal hybrid feature extraction network.
[0083] Specifically, the training process of the embodiment of the present invention is to obtain the target space-time mixed feature extraction network by training the initial space-time mixed feature extraction network. The structures of the initial space-time mixed feature extraction network and the target space-time mixed feature extraction network are as follows: Figure 2 and 3 shown.
[0084] During the training process, the training data is a training small sample modulation signal set, which is divided into a training support set and a training query set. C×m modulation signals are selected from the training small sample modulation signal set as the training support set according to category, and the remaining modulation signals are used as the training query set, C represents the number of signal modulation categories in the training small sample modulation signal set, m represents the number of modulation signals of each modulation category in the training support set, represents the total number of modulation signals of the kth type in the training small sample modulation signal set, The value is greater than m, for example, The value is 1000, the value of m is 100, The value is 900, the support set is a small sample size, and the query set sample size is much larger than the support set. Among them, for the IQ modulated signal, its in-phase part and orthogonal part are independent of each other and are processed into a 2×128 shape; in the training small sample modulation signal set: the labels of the modulation signals of the same category are the same, and the labels of the modulation signals of different categories are different.
[0085] Correspondingly, see Figure 4 , the training process includes the following steps:
[0086] S201, using an initial spatiotemporal hybrid feature extraction network to extract spatial features and temporal features of a training small sample modulation signal set.
[0087] Specifically, in the training process, the space-time mixed feature extraction network described in S201 is an initial space-time mixed feature extraction network, and the initial space-time mixed feature extraction network is used to extract the spatial features and time features of the training small sample modulation signal set, specifically:
[0088] Each modulated signal in the training support set and the training query set is sequentially sent to the spatial feature extractor in the form of a signal with a shape of 2×128, and is divided into I and Q paths to obtain two 50-dimensional mapping expressions. Finally, the two mapping expressions are connected in one dimension to obtain a 1×100 mapping expression. Figure 2 The spatial feature extractor shown extracts spatial features by mapping, and its corresponding mapping function formula is expressed as:
[0089]
[0090] Among them, x i represents the i-th modulation signal in the training small sample modulation signal set, f Spatial (x i ) represents x i The spatial feature extractor extracts the mapping function of spatial features, encoder(x i ) represents the function mapping, specifically 2×128 x i In the spatial feature space, the mapping is 1×100 The modulated signal x in each training support set and training query set i Entering the spatial feature extractor will get a corresponding mapping expression
[0091] At the same time, each modulated signal in the training support set and the training query set is sent to the time feature extractor as an overall IQ signal to map the input signal into the time feature space. Figure 3 The temporal feature extractor shown extracts temporal features by mapping, and its corresponding mapping function formula is expressed as:
[0092]
[0093] Among them, f Temporal (x i ) represents x i The time feature extractor extracts the mapping function of the time feature, specifically converting the 2×128 x i The time feature space is mapped to 1×16
[0094] S202: Calculate the class prototypes corresponding to the spatial features and temporal features according to the training support set.
[0095] Specifically, the class prototype formula corresponding to the spatial feature calculated by the embodiment of the present invention according to the training support set is expressed as:
[0096]
[0097] At the same time, the class prototype formula corresponding to its time feature is calculated according to the training support set as follows:
[0098]
[0099] Among them, c k-S represents the class prototype of the kth (k=1, 2, ..., C) type modulation signal in the spatial feature space in the training support set, S k represents the k-th type of modulation signal set in the training support set, |S k | indicates S k The total number of modulated signals in Indicates S k The i-th modulation signal in express The corresponding label, express The mapping function of the spatial feature extractor, c k-T represents the class prototype of the k-th modulation signal in the time feature space in the training support set, express The mapping function of the temporal feature extractor.
[0100] S203 , respectively calculating the Euclidean distance between the training query set and the class prototypes corresponding to its spatial features and temporal features.
[0101] Specifically, the Euclidean distance formula between the training query set and the class prototype corresponding to its spatial feature is calculated by the embodiment of the present invention as follows:
[0102]
[0103] At the same time, the Euclidean distance formula between the training query set and the class prototype corresponding to its spatial feature is expressed as:
[0104]
[0105] in, Indicates the training query set The Euclidean distance between the class prototype corresponding to the spatial feature of the k-th class modulation signal, Indicates the training query set The Euclidean distance between the class prototype corresponding to the temporal feature of the k-th modulation signal, ||·|| 2 It means to find the 2-norm of a vector.
[0106] By using formula (5) and formula (6), the modulation signal corresponding to the minimum distance between the training query set and the C class prototypes is found, and the category corresponding to the modulation signal can be used as its predicted category.
[0107] In order to further improve the recognition accuracy of small sample modulated signals, the embodiment of the present invention also introduces a hybrid reasoning module in the new spatiotemporal hybrid feature extraction network, and uses the Euclidean distance corresponding to the spatial features and the temporal features to jointly predict the probability of the modulation category to guide the adjustment of the network weights of the spatiotemporal hybrid feature extraction network, and trains the optimal spatiotemporal hybrid feature extraction network as the target spatiotemporal hybrid feature extraction network. The specific corresponding training process includes S204 and S205.
[0108] S204 , using a softmax function to convert the corresponding Euclidean distance into a prediction probability of the corresponding modulation category.
[0109] Specifically, the embodiment of the present invention uses the softmax function to convert the Euclidean distance corresponding to the spatial feature into the prediction probability formula of the corresponding modulation category as follows:
[0110]
[0111] At the same time, the softmax function is used to convert the Euclidean distance corresponding to the time feature into the prediction probability formula of the corresponding modulation category as follows:
[0112]
[0113] in, represents the predicted probability of the spatial feature of the k-th modulation signal in the training query set corresponding to the modulation category, C represents the number of signal modulation categories in the training query set, Indicates the training query set The Euclidean distance between the class prototype corresponding to the spatial feature of the k-th class modulation signal, represents the predicted probability of the modulation category corresponding to the temporal feature of the k-th modulation signal in the training query set, Indicates the training query set The Euclidean distance between the class prototype corresponding to the temporal feature of the k-th class modulation signal.
[0114] S205 . Calculate the mixed prediction probability jointly according to the transformed prediction probabilities of the modulation categories.
[0115] Specifically, the embodiment of the present invention calculates the probability of the spatial feature corresponding to the modulation category converted by formula (7) and the predicted probability of the temporal feature corresponding to the modulation category converted by formula (8) and the formula for jointly calculating the mixed prediction probability is expressed as:
[0116]
[0117] in, represents the mixed prediction probability,
[0118] α1,α2,…,α C represents the predicted probability of the corresponding modulation category of the C-type modulation signal in the training query set after the spatial feature extractor outputs it. The calculation is shown in formula (7). max{·} represents the maximum value, β1,β2,…,β C represents the predicted probability of the corresponding modulation category output by the temporal feature extractor of the C-type modulation signal in the training query set. The calculation is shown in formula (8).
[0119] S206. Iteratively adjust the initial spatiotemporal hybrid feature extraction network according to the hybrid prediction probability until the iteration stop condition is met to obtain the target spatiotemporal hybrid feature extraction network.
[0120] Specifically, in the training process of the embodiment of the present invention, the number of iterations is initialized to 0, and the maximum number of iterations is set to t, for example, t=1000. When the number of iterations t≥1000, the iteration stop condition is met, and the initial spatiotemporal hybrid feature extraction network of the current modulation is used as the target spatiotemporal hybrid feature extraction network. When the number of iterations t<1000, the probability of the spatial feature corresponding to the modulation category is Prediction probability of modulation category corresponding to temporal features and the mixed prediction probability The sum of the maximum likelihood functions of is used as the loss error L of the initial spatiotemporal hybrid feature extraction network Hybrid , the calculation formula is expressed as:
[0121]
[0122] Calculate the loss value L using formula (10): Hybrid Back propagation, update the network weights of the spatial feature extractor and the temporal feature extractor in the iterative process, repeat the above steps S201 to S205 until the maximum number of iterations is met, and use the initial spatiotemporal hybrid feature extraction network adjusted at this time as the target spatiotemporal hybrid feature extraction network. The loss value can be calculated using a cross entropy loss function, and a stochastic gradient descent algorithm is used in the iterative process, but is not limited to such a loss function and iterative algorithm.
[0123] S30, inputting the modulation signal set to be identified into the target spatiotemporal hybrid feature extraction network for identification to obtain the modulation category of each type of modulation signal in the modulation signal set to be identified.
[0124] Specifically, the modulation signal set to be identified in the embodiment of the present invention includes a labeled support set and a query set to be identified. The modulation category of each type of modulation signal in the modulation signal set to be identified in the embodiment of the present invention is different from the modulation category of each type of modulation signal in the training small sample modulation signal set. For example, the training small sample modulation signal set in the embodiment of the present invention selects BPSK, CPFSK, GFSK, PAM4, QAM16, QAM64, QPSK and WBFM in the RML2016.10A data set as training categories, and the modulation signal set to be identified selects 8PSK, AM-DSB and AM-SSB in the RML2016.10A data set as test categories. Among them, a small number of modulation signals are selected from the modulation signal set to be identified corresponding to each test category as the labeled support set, for example, only 5 modulation signals need to be selected from each category, and the remaining modulation signals in the modulation signal set to be identified are used as the query set to be identified; in the modulation signal set to be identified: the labels of the modulation signals of the same category are the same, and the labels of the modulation signals of different categories are different.
[0125] Correspondingly, see Figure 5 , the recognition process includes the following steps:
[0126] S301, extracting the spatial features and temporal features of the modulation signal set to be identified by using a target spatiotemporal hybrid feature extraction network;
[0127] S302, calculating the class prototypes corresponding to the spatial features and the temporal features of the labeled support set respectively;
[0128] S303, respectively calculating the Euclidean distance between the query set to be identified and the class prototypes corresponding to its spatial features and temporal features;
[0129] S304, using a softmax function to convert the corresponding Euclidean distance into a prediction probability of the corresponding modulation category;
[0130] S305 . Calculate the mixed prediction probability jointly according to the transformed prediction probabilities of the modulation categories.
[0131] S306 , searching for a maximum probability value in the mixed prediction probability, and using the modulation category corresponding to the maximum probability value as the modulation category of the query set to be identified.
[0132] The implementation of S301~S305 refers to S201~S205, and the implementation method is similar. The difference is that S201~S205 is aimed at the training small sample modulation signal set. The training support set and the training query set in the training small sample modulation signal set are both labeled signals, while S301~S305 is aimed at the modulation signal set to be identified. The labeled support set in the modulation signal set to be identified is the labeled signal, and the query set to be identified is the unlabeled signal. Finally, the modulation category of the modulation signals in the query set to be identified is also to be identified. After S305 calculates the mixed prediction probability, it searches for the maximum probability value in the mixed prediction probability. Because the maximum probability value corresponds to the minimum Euclidean distance, it means that the probability of identifying the modulation category is the largest, so the modulation category corresponding to the maximum probability value can be used as the modulation category of the query set to be identified. During the recognition process, the sample size of the labeled support set is very small, but the recognition accuracy of the modulation signal in the query set to be identified can still be guaranteed.
[0133] In order to verify the effectiveness of the small sample modulation signal recognition method based on the spatiotemporal mixed feature extraction network provided by the embodiment of the present invention, the following experiments are conducted for verification.
[0134] 1. Experimental conditions
[0135] The hardware platform of the simulation experiment of the present invention is: the GPU is NVIDIA GeForce RTX 2080Ti, 20 cores, the main frequency is 2.2GHz, the memory size is 128GB; the video memory size is 11GB. The software platform of the simulation experiment of the present invention is: the operating system is Windows 10.
[0136] The training sample set of the simulation experiment of the present invention is selected from 8 modulation signals with a signal-to-noise ratio of more than 0 dB in the RML2016.10.a data set, namely BPSK, CPFSK, GFSK, PAM4, QAM16, QAM64, QPSK and WBFM.
[0137] The test sample set of the simulation experiment of the present invention is selected from three modulation signals in the RML2016.10.a data set, namely AM-DSB, AM-SSB and 8PSK.
[0138] The RML2016.10.a dataset involves 10 different SNRs, ranging from 0dB to 18dB, with an interval of 2dB. Each modulation category contains 1000 samples at each SNR. The complex-valued IQ signal samples are processed in a 2×128 shape, and their in-phase and quadrature parts are independent of each other.
[0139] 2. Simulation content
[0140] In order to verify the recognition effect of the method of the present invention under limited sample conditions, the method of the present invention is tested using the labeled support set and the query set to be identified in the recognition process. Table 1 and Table 2 list the detailed information of the data sets used in the training phase and the test phase, respectively. It should be noted that although the network model parameters remain unchanged, different labeled support sets will lead to different classification results. Therefore, each classification result is obtained from an independent Monte Carlo test of 1000 randomly selected labeled support sets.
[0141] Table 1 Datasets in the training phase
[0142]
[0143] Table 2 Datasets for the test phase
[0144]
[0145] The final experimental recognition accuracy can reach 98.49%. The experimental results prove that the new small sample learning method proposed in the present invention can extract spatial features and temporal features from signal samples at the same time by adopting a spatiotemporal hybrid feature extraction network structure, and only a small number of labeled training samples are needed to achieve effective automatic modulation classification. The experimental results on the RadioML dataset show the effectiveness and robustness of the method in a small number of AMC tasks.
[0146] To summarize, the small sample modulation signal recognition method based on the spatiotemporal hybrid feature extraction network proposed in the embodiment of the present invention proposes a new network structure, namely, the spatiotemporal hybrid feature extraction network, which extracts the spatial features and temporal features of the modulation signal set during training or recognition, and uses the support set in the modulation signal set to calculate the class prototype corresponding to its spatial features and temporal features, and then calculates the Euclidean distance between the query set in the modulation signal set and the class prototype corresponding to its spatial features and temporal features, and calculates the prediction probability in the spatial feature space and the temporal feature space through the Euclidean distance, and jointly calculates the mixed prediction probability by combining the prediction probabilities in the temporal feature space and the spatial feature space, and updates the network weights of the spatiotemporal hybrid feature extraction network according to the mixed prediction probability during training, and determines the modulation category of the modulation signal in the query set to be identified according to the mixed prediction probability during recognition.
[0147] It can be seen that the embodiment of the present invention can fully extract features in the time feature space and the spatial feature space. Compared with the existing method of simply extracting features in the spatial or time feature space, it has excellent automatic feature extraction and feature fusion capabilities, so that more signal features can be used to effectively improve the accuracy of signal modulation category recognition; and based on the new network structure, the embodiment of the present invention also adopts a new reasoning strategy: the prediction probabilities in the time feature space and the spatial feature space are combined to jointly calculate the mixed prediction probability, and the mixed prediction probability is used to update the network weights of the time-space mixed feature extraction network to train a more accurate target time-space mixed feature extraction network for subsequent recognition; in the recognition process, the more accurate target time-space mixed feature extraction network obtained by training is used for recognition, and the category with the largest mixed prediction probability is used as the modulation category of the modulated signal in the query set to be identified, which can ensure the recognition accuracy of the modulated signal in the query set to be identified.
[0148] At the same time, since the embodiment of the present invention adopts a spatiotemporal mixed feature extraction network, under the condition that the number of modulated signal training samples is relatively scarce, even if the spatial or temporal features are not fully extracted, the class prototype is calculated using the support set, and then the class prototype obtained by calculating the support set is used to calculate the prediction probability of the query set. This small sample learning method can still ensure the recognition accuracy of the signal modulation category by the spatiotemporal mixed feature extraction network; and using fewer training samples to train the network can reduce the difficulty of training the spatiotemporal mixed feature extraction network model.
[0149] See also Figure 6 , an embodiment of the present invention provides an electronic device, including a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604;
[0150] The memory 603 is used to store computer programs;
[0151] The processor 601 is used to implement the steps of the small sample modulation signal recognition method based on the spatiotemporal hybrid feature extraction network when executing the program stored in the memory 603.
[0152] An embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the small sample modulation signal recognition method based on the spatiotemporal mixed feature extraction network are implemented.
[0153] As for the device / electronic device / storage medium embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0154] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0155] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in a claim. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0156] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A small sample modulation signal recognition method based on a spatiotemporal hybrid feature extraction network, characterized in that: include: Construct an initial spatiotemporal hybrid feature extraction network; Inputting the training small sample modulation signal set into the initial spatiotemporal mixed feature extraction network for training to obtain a target spatiotemporal mixed feature extraction network; Inputting the modulation signal set to be identified into the target spatiotemporal hybrid feature extraction network for identification to obtain the modulation category of each type of modulation signal in the modulation signal set to be identified; The modulation category of each type of modulation signal in the modulation signal set to be identified is different from the modulation category of each type of modulation signal in the training small sample modulation signal set; the training small sample modulation signal set includes a training support set and a training query set; the modulation signal set to be identified includes a labeled support set and a query set to be identified; and the corresponding training process and the identification process both include: A spatial and temporal feature extraction network is used to extract the spatial and temporal features of a modulation signal set; the class prototypes corresponding to the spatial and temporal features are calculated according to the support set; the Euclidean distances between the class prototypes corresponding to the query set and its spatial and temporal features are calculated respectively; the corresponding Euclidean distances are converted into the probability of the corresponding modulation category using a softmax function; the hybrid prediction probability is jointly calculated according to the converted probability of the modulation category; wherein the modulation signal set includes the training small sample modulation signal set and the modulation signal set to be identified; the support set includes the training support set and the labeled support set; the query set includes the training query set and the query set to be identified; The training process also includes: iteratively adjusting the initial spatiotemporal hybrid feature extraction network according to the hybrid prediction probability until the iteration stop condition is met to obtain the target spatiotemporal hybrid feature extraction network; the recognition process also includes: finding the maximum probability value in the hybrid prediction probability, and using the modulation category corresponding to the maximum probability value as the modulation category of the query set to be recognized; The spatiotemporal hybrid feature extraction network includes a spatial feature extractor, a temporal feature extractor, a Euclidean classifier and a hybrid reasoning module, wherein the spatial feature extractor is used to extract the spatial features of the modulation signal set; the temporal feature extractor is used to extract the temporal features of the modulation signal set; the Euclidean classifier is used to calculate the class prototypes corresponding to its spatial features and temporal features according to the support set; the Euclidean distances between the query set and the class prototypes corresponding to its spatial features and temporal features are calculated respectively; the hybrid reasoning module is used to convert the corresponding Euclidean distances into the prediction probabilities of the corresponding modulation categories using a softmax function; and the hybrid prediction probabilities are jointly calculated based on the converted prediction probabilities of the modulation categories.
2. The small sample modulation signal recognition method based on the spatiotemporal hybrid feature extraction network according to claim 1 is characterized in that: The spatial feature extractor includes a first subspace feature extractor, a second subspace feature extractor and a splicing module, wherein: The first subspace feature extractor is used to extract the spatial features of I-channel modulation signals in the modulation signal set; The second subspace feature extractor is used to extract the spatial features of the Q-channel modulation signal in the modulation signal set; The splicing module is used to splice the spatial features of the I-path modulated signal and the spatial features of the Q-path modulated signal to obtain the spatial features output by the spatial feature extractor.
3. The small sample modulation signal recognition method based on the spatiotemporal hybrid feature extraction network according to claim 2 is characterized in that: The first subspace feature extractor and the second subspace feature extractor each include a plurality of sequentially connected convolutional pooling units, and a fully connected layer connected to the last convolutional pooling unit; wherein, Each convolutional pooling unit consists of a convolutional layer, a ReLU activation layer, a batch normalization layer, and a maximum pooling layer connected in sequence.
4. The small sample modulation signal recognition method based on the spatiotemporal hybrid feature extraction network according to claim 1 is characterized in that: The temporal feature extractor comprises a plurality of sequentially connected residual blocks, each of which comprises a plurality of sequentially connected extended causal convolution activation units, and an adder connected to the last extended causal convolution activation unit; wherein, Each extended causal convolution activation unit includes an extended causal convolution layer, a batch normalization layer, a ReLU activation layer and a Dropout layer connected in sequence; wherein the adder input end is connected to the input end of the extended causal convolution layer in the first extended causal convolution activation unit and the output end of the Dropout layer in the last extended causal convolution activation unit.
5. The small sample modulation signal recognition method based on time-space hybrid feature extraction network according to claim 1 is characterized in that: The spatial feature extractor extracts spatial features by mapping, and its corresponding mapping function formula is expressed as: Among them, x i represents the i-th modulation signal in the modulation signal set, f Spatial (x i ) represents x i The spatial feature extractor extracts the mapping function of spatial features, encoder(x i ) represents the function mapping, specifically 2×128 x i The feature space is mapped to 1×100 6. The small sample modulation signal recognition method based on spatiotemporal hybrid feature extraction network according to claim 5 is characterized in that: The time feature extractor extracts time features by mapping, and its corresponding mapping function formula is expressed as: Among them, f Temporal (x i ) represents the mapping function of the time feature extractor of xi to extract the time feature, specifically, the 2×128 x i The time feature space is mapped to 1×16 7. The small sample modulation signal recognition method based on the spatiotemporal hybrid feature extraction network according to claim 6 is characterized in that: The class prototype formula corresponding to the spatial feature calculated according to the support set is expressed as: The class prototype formula corresponding to the time feature calculated according to the support set is expressed as: Among them, c k-S represents the class prototype of the k-th modulation signal in the spatial feature space in the support set, S k represents the kth type of modulation signal set in the support set, |S k | indicates S k The total number of modulated signals in Indicates S k The i-th modulation signal in express The corresponding label, express The mapping function of the spatial feature extractor, c k-T represents the class prototype of the k-th modulation signal in the time feature space in the support set, express The mapping function of the temporal feature extractor.
8. The small sample modulation signal recognition method based on time-space hybrid feature extraction network according to claim 7 is characterized in that: The softmax function is used to convert the corresponding Euclidean distance into the prediction probability formula of the corresponding modulation category: in, represents the predicted probability of the modulation category corresponding to the spatial feature of the k-th modulation signal in the query set, C represents the number of signal modulation categories in the query set, Indicates that the query is focused The Euclidean distance between the class prototype corresponding to the spatial feature of the k-th class modulation signal, ||·|| 2 It means to find the 2-norm of a vector. represents the predicted probability of the modulation category corresponding to the temporal feature of the k-th modulation signal in the query set, Indicates that the query is focused The Euclidean distance between the class prototype corresponding to the temporal feature of the k-th modulation signal, 9. The small sample modulation signal recognition method based on time-space hybrid feature extraction network according to claim 8 is characterized in that: The formula for jointly calculating the mixed prediction probability based on the predicted probability of the modulation category converted at this time is expressed as: in, represents the mixed prediction probability, α1,α2,…,α C represents the predicted probability of the corresponding modulation category of the C-type modulation signal in the query set after the spatial feature extractor outputs, max{·} represents the maximum value, β1,β2,…,β C represents the predicted probability of the corresponding modulation category output by the temporal feature extractor for the C-type modulation signal in the query set,
